orizon 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +101 -0
- package/dist/components/affix/Affix.d.ts +4 -0
- package/dist/components/affix/index.d.ts +2 -0
- package/dist/components/affix/types.d.ts +10 -0
- package/dist/components/alert/Alert.d.ts +4 -0
- package/dist/components/alert/ErrorBoundary.d.ts +12 -0
- package/dist/components/alert/index.d.ts +8 -0
- package/dist/components/alert/types.d.ts +45 -0
- package/dist/components/anchor/Anchor.d.ts +4 -0
- package/dist/components/anchor/index.d.ts +2 -0
- package/dist/components/anchor/types.d.ts +47 -0
- package/dist/components/app/App.d.ts +13 -0
- package/dist/components/app/index.d.ts +7 -0
- package/dist/components/app/types.d.ts +9 -0
- package/dist/components/auto-complete/AutoComplete.d.ts +4 -0
- package/dist/components/auto-complete/index.d.ts +3 -0
- package/dist/components/auto-complete/types.d.ts +36 -0
- package/dist/components/avatar/Avatar.d.ts +5 -0
- package/dist/components/avatar/index.d.ts +7 -0
- package/dist/components/avatar/types.d.ts +49 -0
- package/dist/components/badge/Badge.d.ts +5 -0
- package/dist/components/badge/index.d.ts +7 -0
- package/dist/components/badge/types.d.ts +45 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +4 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/breadcrumb/types.d.ts +35 -0
- package/dist/components/button/Button.d.ts +4 -0
- package/dist/components/button/ButtonGroup.d.ts +4 -0
- package/dist/components/button/index.d.ts +8 -0
- package/dist/components/button/types.d.ts +35 -0
- package/dist/components/calendar/Calendar.d.ts +4 -0
- package/dist/components/calendar/index.d.ts +3 -0
- package/dist/components/calendar/types.d.ts +45 -0
- package/dist/components/card/Card.d.ts +6 -0
- package/dist/components/card/index.d.ts +8 -0
- package/dist/components/card/types.d.ts +53 -0
- package/dist/components/carousel/Carousel.d.ts +4 -0
- package/dist/components/carousel/index.d.ts +3 -0
- package/dist/components/carousel/types.d.ts +41 -0
- package/dist/components/cascader/Cascader.d.ts +4 -0
- package/dist/components/cascader/index.d.ts +3 -0
- package/dist/components/cascader/types.d.ts +42 -0
- package/dist/components/checkbox/Checkbox.d.ts +4 -0
- package/dist/components/checkbox/CheckboxGroup.d.ts +10 -0
- package/dist/components/checkbox/index.d.ts +8 -0
- package/dist/components/checkbox/types.d.ts +55 -0
- package/dist/components/collapse/Collapse.d.ts +4 -0
- package/dist/components/collapse/index.d.ts +3 -0
- package/dist/components/collapse/types.d.ts +58 -0
- package/dist/components/color-picker/ColorPicker.d.ts +4 -0
- package/dist/components/color-picker/index.d.ts +3 -0
- package/dist/components/color-picker/types.d.ts +30 -0
- package/dist/components/date-picker/DatePicker.d.ts +9 -0
- package/dist/components/date-picker/RangePicker.d.ts +4 -0
- package/dist/components/date-picker/index.d.ts +8 -0
- package/dist/components/date-picker/types.d.ts +60 -0
- package/dist/components/descriptions/Descriptions.d.ts +4 -0
- package/dist/components/descriptions/index.d.ts +3 -0
- package/dist/components/descriptions/types.d.ts +55 -0
- package/dist/components/divider/Divider.d.ts +4 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/types.d.ts +19 -0
- package/dist/components/drawer/Drawer.d.ts +4 -0
- package/dist/components/drawer/index.d.ts +3 -0
- package/dist/components/drawer/types.d.ts +49 -0
- package/dist/components/dropdown/Dropdown.d.ts +4 -0
- package/dist/components/dropdown/DropdownButton.d.ts +4 -0
- package/dist/components/dropdown/index.d.ts +8 -0
- package/dist/components/dropdown/types.d.ts +76 -0
- package/dist/components/empty/Empty.d.ts +12 -0
- package/dist/components/empty/index.d.ts +8 -0
- package/dist/components/empty/types.d.ts +15 -0
- package/dist/components/flex/Flex.d.ts +4 -0
- package/dist/components/flex/index.d.ts +2 -0
- package/dist/components/flex/types.d.ts +21 -0
- package/dist/components/float-button/BackTop.d.ts +4 -0
- package/dist/components/float-button/FloatButton.d.ts +4 -0
- package/dist/components/float-button/FloatButtonGroup.d.ts +4 -0
- package/dist/components/float-button/index.d.ts +10 -0
- package/dist/components/float-button/types.d.ts +42 -0
- package/dist/components/form/Form.d.ts +7 -0
- package/dist/components/form/FormContext.d.ts +3 -0
- package/dist/components/form/FormErrorList.d.ts +6 -0
- package/dist/components/form/FormItem.d.ts +7 -0
- package/dist/components/form/FormList.d.ts +6 -0
- package/dist/components/form/index.d.ts +16 -0
- package/dist/components/form/types.d.ts +148 -0
- package/dist/components/form/useForm.d.ts +21 -0
- package/dist/components/grid/Col.d.ts +4 -0
- package/dist/components/grid/Row.d.ts +4 -0
- package/dist/components/grid/RowContext.d.ts +4 -0
- package/dist/components/grid/index.d.ts +3 -0
- package/dist/components/grid/types.d.ts +53 -0
- package/dist/components/image/Image.d.ts +5 -0
- package/dist/components/image/index.d.ts +7 -0
- package/dist/components/image/types.d.ts +48 -0
- package/dist/components/input/Input.d.ts +4 -0
- package/dist/components/input/OTP.d.ts +4 -0
- package/dist/components/input/Password.d.ts +4 -0
- package/dist/components/input/Search.d.ts +4 -0
- package/dist/components/input/TextArea.d.ts +4 -0
- package/dist/components/input/index.d.ts +14 -0
- package/dist/components/input/types.d.ts +126 -0
- package/dist/components/input-number/InputNumber.d.ts +4 -0
- package/dist/components/input-number/index.d.ts +3 -0
- package/dist/components/input-number/types.d.ts +42 -0
- package/dist/components/layout/Layout.d.ts +7 -0
- package/dist/components/layout/Sider.d.ts +4 -0
- package/dist/components/layout/index.d.ts +11 -0
- package/dist/components/layout/types.d.ts +52 -0
- package/dist/components/list/List.d.ts +9 -0
- package/dist/components/list/index.d.ts +11 -0
- package/dist/components/list/types.d.ts +83 -0
- package/dist/components/masonry/Masonry.d.ts +4 -0
- package/dist/components/masonry/index.d.ts +3 -0
- package/dist/components/masonry/types.d.ts +11 -0
- package/dist/components/mentions/Mentions.d.ts +4 -0
- package/dist/components/mentions/index.d.ts +3 -0
- package/dist/components/mentions/types.d.ts +33 -0
- package/dist/components/menu/Menu.d.ts +4 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/types.d.ts +66 -0
- package/dist/components/message/MessageContainer.d.ts +7 -0
- package/dist/components/message/index.d.ts +8 -0
- package/dist/components/message/messageManager.d.ts +3 -0
- package/dist/components/message/types.d.ts +52 -0
- package/dist/components/message/useMessage.d.ts +3 -0
- package/dist/components/modal/ConfirmModal.d.ts +7 -0
- package/dist/components/modal/Modal.d.ts +4 -0
- package/dist/components/modal/index.d.ts +9 -0
- package/dist/components/modal/staticMethods.d.ts +6 -0
- package/dist/components/modal/types.d.ts +92 -0
- package/dist/components/modal/useModal.d.ts +3 -0
- package/dist/components/notification/NotificationContainer.d.ts +10 -0
- package/dist/components/notification/index.d.ts +8 -0
- package/dist/components/notification/notificationManager.d.ts +3 -0
- package/dist/components/notification/types.d.ts +69 -0
- package/dist/components/notification/useNotification.d.ts +3 -0
- package/dist/components/pagination/Pagination.d.ts +4 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/types.d.ts +34 -0
- package/dist/components/popconfirm/Popconfirm.d.ts +4 -0
- package/dist/components/popconfirm/index.d.ts +3 -0
- package/dist/components/popconfirm/types.d.ts +39 -0
- package/dist/components/popover/Popover.d.ts +4 -0
- package/dist/components/popover/index.d.ts +3 -0
- package/dist/components/popover/types.d.ts +31 -0
- package/dist/components/progress/Progress.d.ts +4 -0
- package/dist/components/progress/index.d.ts +3 -0
- package/dist/components/progress/types.d.ts +39 -0
- package/dist/components/qrcode/QRCode.d.ts +4 -0
- package/dist/components/qrcode/index.d.ts +3 -0
- package/dist/components/qrcode/types.d.ts +32 -0
- package/dist/components/radio/Radio.d.ts +4 -0
- package/dist/components/radio/RadioButton.d.ts +4 -0
- package/dist/components/radio/RadioGroup.d.ts +12 -0
- package/dist/components/radio/index.d.ts +10 -0
- package/dist/components/radio/types.d.ts +72 -0
- package/dist/components/rate/Rate.d.ts +4 -0
- package/dist/components/rate/index.d.ts +3 -0
- package/dist/components/rate/types.d.ts +18 -0
- package/dist/components/result/Result.d.ts +4 -0
- package/dist/components/result/index.d.ts +3 -0
- package/dist/components/result/types.d.ts +20 -0
- package/dist/components/segmented/Segmented.d.ts +4 -0
- package/dist/components/segmented/index.d.ts +3 -0
- package/dist/components/segmented/types.d.ts +30 -0
- package/dist/components/select/Select.d.ts +4 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/types.d.ts +65 -0
- package/dist/components/skeleton/Skeleton.d.ts +4 -0
- package/dist/components/skeleton/SkeletonElements.d.ts +8 -0
- package/dist/components/skeleton/index.d.ts +12 -0
- package/dist/components/skeleton/types.d.ts +76 -0
- package/dist/components/slider/Slider.d.ts +4 -0
- package/dist/components/slider/index.d.ts +3 -0
- package/dist/components/slider/types.d.ts +29 -0
- package/dist/components/space/Compact.d.ts +4 -0
- package/dist/components/space/Space.d.ts +4 -0
- package/dist/components/space/index.d.ts +8 -0
- package/dist/components/space/types.d.ts +30 -0
- package/dist/components/spin/Spin.d.ts +4 -0
- package/dist/components/spin/index.d.ts +3 -0
- package/dist/components/spin/types.d.ts +28 -0
- package/dist/components/splitter/Panel.d.ts +4 -0
- package/dist/components/splitter/Splitter.d.ts +4 -0
- package/dist/components/splitter/index.d.ts +8 -0
- package/dist/components/splitter/types.d.ts +25 -0
- package/dist/components/statistic/Statistic.d.ts +5 -0
- package/dist/components/statistic/index.d.ts +7 -0
- package/dist/components/statistic/types.d.ts +37 -0
- package/dist/components/steps/Steps.d.ts +4 -0
- package/dist/components/steps/index.d.ts +2 -0
- package/dist/components/steps/types.d.ts +54 -0
- package/dist/components/switch/Switch.d.ts +4 -0
- package/dist/components/switch/index.d.ts +3 -0
- package/dist/components/switch/types.d.ts +25 -0
- package/dist/components/table/Table.d.ts +6 -0
- package/dist/components/table/index.d.ts +4 -0
- package/dist/components/table/types.d.ts +162 -0
- package/dist/components/tabs/Tabs.d.ts +4 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/types.d.ts +51 -0
- package/dist/components/tag/Tag.d.ts +5 -0
- package/dist/components/tag/index.d.ts +7 -0
- package/dist/components/tag/types.d.ts +32 -0
- package/dist/components/time-picker/TimePicker.d.ts +5 -0
- package/dist/components/time-picker/TimeRangePicker.d.ts +4 -0
- package/dist/components/time-picker/index.d.ts +8 -0
- package/dist/components/time-picker/types.d.ts +48 -0
- package/dist/components/timeline/Timeline.d.ts +4 -0
- package/dist/components/timeline/index.d.ts +3 -0
- package/dist/components/timeline/types.d.ts +35 -0
- package/dist/components/tooltip/Tooltip.d.ts +4 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/components/tooltip/types.d.ts +33 -0
- package/dist/components/tour/Tour.d.ts +4 -0
- package/dist/components/tour/index.d.ts +3 -0
- package/dist/components/tour/types.d.ts +63 -0
- package/dist/components/transfer/Transfer.d.ts +4 -0
- package/dist/components/transfer/index.d.ts +3 -0
- package/dist/components/transfer/types.d.ts +40 -0
- package/dist/components/tree/Tree.d.ts +5 -0
- package/dist/components/tree/index.d.ts +7 -0
- package/dist/components/tree/types.d.ts +103 -0
- package/dist/components/tree-select/TreeSelect.d.ts +4 -0
- package/dist/components/tree-select/index.d.ts +3 -0
- package/dist/components/tree-select/types.d.ts +48 -0
- package/dist/components/typography/Typography.d.ts +12 -0
- package/dist/components/typography/index.d.ts +10 -0
- package/dist/components/typography/types.d.ts +92 -0
- package/dist/components/upload/Dragger.d.ts +4 -0
- package/dist/components/upload/Upload.d.ts +4 -0
- package/dist/components/upload/index.d.ts +8 -0
- package/dist/components/upload/types.d.ts +59 -0
- package/dist/components/watermark/Watermark.d.ts +4 -0
- package/dist/components/watermark/index.d.ts +3 -0
- package/dist/components/watermark/types.d.ts +43 -0
- package/dist/config-provider/ConfigProvider.d.ts +5 -0
- package/dist/config-provider/context.d.ts +7 -0
- package/dist/config-provider/index.d.ts +3 -0
- package/dist/config-provider/theme.d.ts +7 -0
- package/dist/config-provider/types.d.ts +23 -0
- package/dist/hooks/useComponentSize.d.ts +2 -0
- package/dist/hooks/useConfig.d.ts +1 -0
- package/dist/index.d.ts +138 -0
- package/dist/orizon.cjs.js +244 -0
- package/dist/orizon.es.js +61213 -0
- package/dist/preset.css +160 -0
- package/dist/vite.svg +1 -0
- package/package.json +96 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),Qe=require("react"),yN=require("react-dom"),rf=require("react-hook-form"),L6=require("@hookform/resolvers/zod");function RD(n){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const s in n)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(o,s,i.get?i:{enumerable:!0,get:()=>n[s]})}}return o.default=n,Object.freeze(o)}const S=RD(Qe),Bl=RD(yN);const OD=(...n)=>n.filter((o,s,i)=>!!o&&o.trim()!==""&&i.indexOf(o)===s).join(" ").trim();const V6=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const H6=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,s,i)=>i?i.toUpperCase():s.toLowerCase());const SO=n=>{const o=H6(n);return o.charAt(0).toUpperCase()+o.slice(1)};var I6={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Y6=n=>{for(const o in n)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const q6=Qe.forwardRef(({color:n="currentColor",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:i,className:d="",children:f,iconNode:h,...y},v)=>Qe.createElement("svg",{ref:v,...I6,width:o,height:o,stroke:n,strokeWidth:i?Number(s)*24/Number(o):s,className:OD("lucide",d),...!f&&!Y6(y)&&{"aria-hidden":"true"},...y},[...h.map(([x,C])=>Qe.createElement(x,C)),...Array.isArray(f)?f:[f]]));const En=(n,o)=>{const s=Qe.forwardRef(({className:i,...d},f)=>Qe.createElement(q6,{ref:f,iconNode:o,className:OD(`lucide-${V6(SO(n))}`,`lucide-${n}`,i),...d}));return s.displayName=SO(n),s};const G6=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],jD=En("calendar-days",G6);const X6=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],DD=En("check",X6);const P6=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],py=En("chevron-down",P6);const $6=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],vu=En("chevron-left",$6);const Q6=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],xr=En("chevron-right",Q6);const Z6=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],bN=En("chevron-up",Z6);const K6=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],F6=En("chevrons-up-down",K6);const W6=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],J6=En("circle-check-big",W6);const e8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],cf=En("circle-check",e8);const t8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],kD=En("circle-question-mark",t8);const n8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],uf=En("circle-x",n8);const a8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],AD=En("clock",a8);const o8=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],l8=En("ellipsis",o8);const r8=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],s8=En("eye-off",r8);const i8=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],zD=En("eye",i8);const c8=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]],u8=En("file-search",c8);const d8=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],f8=En("file",d8);const m8=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],p8=En("folder-open",m8);const h8=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],g8=En("folder",h8);const y8=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],b8=En("image",y8);const v8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],hy=En("info",v8);const x8=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Zs=En("loader-circle",x8);const S8=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],w8=En("refresh-cw",S8);const C8=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],E8=En("rotate-cw",C8);const N8=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],wO=En("search",N8);const T8=[["path",{d:"M6 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2",key:"4b9dqc"}],["path",{d:"M6 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2",key:"22nnkd"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m13 6-4 6h6l-4 6",key:"14hqih"}]],M8=En("server-crash",T8);const R8=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],O8=En("shield-x",R8);const j8=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],VS=En("star",j8);const D8=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],gy=En("triangle-alert",D8);const k8=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],go=En("x",k8);const A8=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],z8=En("zoom-in",A8);const _8=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],U8=En("zoom-out",_8);function Pw(){return typeof window<"u"}function df(n){return vN(n)?(n.nodeName||"").toLowerCase():"#document"}function wa(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Ki(n){var o;return(o=(vN(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function vN(n){return Pw()?n instanceof Node||n instanceof wa(n).Node:!1}function bn(n){return Pw()?n instanceof Element||n instanceof wa(n).Element:!1}function aa(n){return Pw()?n instanceof HTMLElement||n instanceof wa(n).HTMLElement:!1}function G2(n){return!Pw()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof wa(n).ShadowRoot}function ff(n){const{overflow:o,overflowX:s,overflowY:i,display:d}=br(n);return/auto|scroll|overlay|hidden|clip/.test(o+i+s)&&d!=="inline"&&d!=="contents"}function B8(n){return/^(table|td|th)$/.test(df(n))}function $w(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const L8=/transform|translate|scale|rotate|perspective|filter/,V8=/paint|layout|strict|content/,ap=n=>!!n&&n!=="none";let n2;function xN(n){const o=bn(n)?br(n):n;return ap(o.transform)||ap(o.translate)||ap(o.scale)||ap(o.rotate)||ap(o.perspective)||!Qw()&&(ap(o.backdropFilter)||ap(o.filter))||L8.test(o.willChange||"")||V8.test(o.contain||"")}function H8(n){let o=Pi(n);for(;aa(o)&&!Gi(o);){if(xN(o))return o;if($w(o))return null;o=Pi(o)}return null}function Qw(){return n2==null&&(n2=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n2}function Gi(n){return/^(html|body|#document)$/.test(df(n))}function br(n){return wa(n).getComputedStyle(n)}function Zw(n){return bn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Pi(n){if(df(n)==="html")return n;const o=n.assignedSlot||n.parentNode||G2(n)&&n.host||Ki(n);return G2(o)?o.host:o}function _D(n){const o=Pi(n);return Gi(o)?n.ownerDocument?n.ownerDocument.body:n.body:aa(o)&&ff(o)?o:_D(o)}function nf(n,o,s){var i;o===void 0&&(o=[]),s===void 0&&(s=!0);const d=_D(n),f=d===((i=n.ownerDocument)==null?void 0:i.body),h=wa(d);if(f){const y=X2(h);return o.concat(h,h.visualViewport||[],ff(d)?d:[],y&&s?nf(y):[])}else return o.concat(d,nf(d,[],s))}function X2(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}const CO={};function Qa(n,o){const s=S.useRef(CO);return s.current===CO&&(s.current=n(o)),s}const a2=S[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],I8=a2&&a2!==S.useLayoutEffect?a2:n=>n();function Ke(n){const o=Qa(Y8).current;return o.next=n,I8(o.effect),o.trampoline}function Y8(){const n={next:void 0,callback:q8,trampoline:(...o)=>n.callback?.(...o),effect:()=>{n.callback=n.next}};return n}function q8(){if(process.env.NODE_ENV!=="production")throw new Error("Base UI: Cannot call an event handler while rendering.")}let P2;process.env.NODE_ENV!=="production"&&(P2=new Set);function EO(...n){if(process.env.NODE_ENV!=="production"){const o=n.join(" ");P2.has(o)||(P2.add(o),console.error(`Base UI: ${o}`))}}const $2={...S},G8=()=>{},Fe=typeof document<"u"?S.useLayoutEffect:G8;function Q2(n,o){if(n&&!o)return n;if(!n&&o)return o;if(n||o)return{...n,...o}}const _v={};function $i(n,o,s,i,d){let f={...Z2(n,_v)};return o&&(f=kv(f,o)),s&&(f=kv(f,s)),i&&(f=kv(f,i)),d&&(f=kv(f,d)),f}function X8(n){if(n.length===0)return _v;if(n.length===1)return Z2(n[0],_v);let o={...Z2(n[0],_v)};for(let s=1;s<n.length;s+=1)o=kv(o,n[s]);return o}function kv(n,o){return UD(o)?o(n):P8(n,o)}function P8(n,o){if(!o)return n;for(const s in o){const i=o[s];switch(s){case"style":{n[s]=Q2(n.style,i);break}case"className":{n[s]=BD(n.className,i);break}default:$8(s,i)?n[s]=Q8(n[s],i):n[s]=i}}return n}function $8(n,o){const s=n.charCodeAt(0),i=n.charCodeAt(1),d=n.charCodeAt(2);return s===111&&i===110&&d>=65&&d<=90&&(typeof o=="function"||typeof o>"u")}function UD(n){return typeof n=="function"}function Z2(n,o){return UD(n)?n(o):n??_v}function Q8(n,o){return o?n?s=>{if(Z8(s)){const d=s;K2(d);const f=o(d);return d.baseUIHandlerPrevented||n?.(d),f}const i=o(s);return n?.(s),i}:o:n}function K2(n){return n.preventBaseUIHandler=()=>{n.baseUIHandlerPrevented=!0},n}function BD(n,o){return o?n?o+" "+n:o:n}function Z8(n){return n!=null&&typeof n=="object"&&"nativeEvent"in n}function Nn(n,...o){const s=new URL("https://base-ui.com/production-error");return s.searchParams.set("code",n.toString()),o.forEach(i=>s.searchParams.append("args[]",i)),`Base UI error #${n}; visit ${s} for the full message.`}const SN=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(SN.displayName="CompositeRootContext");function wN(n=!1){const o=S.useContext(SN);if(o===void 0&&!n)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.":Nn(16));return o}function K8(n){const{focusableWhenDisabled:o,disabled:s,composite:i=!1,tabIndex:d=0,isNativeButton:f}=n,h=i&&o!==!1,y=i&&o===!1;return{props:S.useMemo(()=>{const x={onKeyDown(C){s&&o&&C.key!=="Tab"&&C.preventDefault()}};return i||(x.tabIndex=d,!f&&s&&(x.tabIndex=o?d:-1)),(f&&(o||h)||!f&&s)&&(x["aria-disabled"]=s),f&&(!o||y)&&(x.disabled=s),x},[i,s,o,h,y,f,d])}}function Fs(n={}){const{disabled:o=!1,focusableWhenDisabled:s,tabIndex:i=0,native:d=!0}=n,f=S.useRef(null),h=wN(!0)!==void 0,y=Ke(()=>{const N=f.current;return!!(N?.tagName==="A"&&N?.href)}),{props:v}=K8({focusableWhenDisabled:s,disabled:o,composite:h,tabIndex:i,isNativeButton:d});process.env.NODE_ENV!=="production"&&S.useEffect(()=>{if(!f.current)return;const N=f.current.tagName==="BUTTON";if(d){if(!N){const R=$2.captureOwnerStack?.()||"";EO(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${R}`)}}else if(N){const R=$2.captureOwnerStack?.()||"";EO(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${R}`)}},[d]);const x=S.useCallback(()=>{const N=f.current;F8(N)&&h&&o&&v.disabled===void 0&&N.disabled&&(N.disabled=!1)},[o,v.disabled,h]);Fe(x,[x]);const C=S.useCallback((N={})=>{const{onClick:R,onMouseDown:O,onKeyUp:j,onKeyDown:D,onPointerDown:A,...z}=N;return $i({type:d?"button":void 0,onClick(U){if(o){U.preventDefault();return}R?.(U)},onMouseDown(U){o||O?.(U)},onKeyDown(U){if(o||(K2(U),D?.(U)),U.baseUIHandlerPrevented)return;const L=U.target===U.currentTarget&&!d&&!y()&&!o,k=U.key==="Enter",V=U.key===" ";L&&((V||k)&&U.preventDefault(),k&&R?.(U))},onKeyUp(U){o||(K2(U),j?.(U)),!U.baseUIHandlerPrevented&&U.target===U.currentTarget&&!d&&!o&&U.key===" "&&R?.(U)},onPointerDown(U){if(o){U.preventDefault();return}A?.(U)}},d?void 0:{role:"button"},v,z)},[o,v,d,y]),w=Ke(N=>{f.current=N,x()});return{getButtonProps:C,buttonRef:w}}function F8(n){return aa(n)&&n.tagName==="BUTTON"}function ps(n,o,s,i){const d=Qa(LD).current;return J8(d,n,o,s,i)&&VD(d,[n,o,s,i]),d.callback}function W8(n){const o=Qa(LD).current;return eU(o,n)&&VD(o,n),o.callback}function LD(){return{callback:null,cleanup:null,refs:[]}}function J8(n,o,s,i,d){return n.refs[0]!==o||n.refs[1]!==s||n.refs[2]!==i||n.refs[3]!==d}function eU(n,o){return n.refs.length!==o.length||n.refs.some((s,i)=>s!==o[i])}function VD(n,o){if(n.refs=o,o.every(s=>s==null)){n.callback=null;return}n.callback=s=>{if(n.cleanup&&(n.cleanup(),n.cleanup=null),s!=null){const i=Array(o.length).fill(null);for(let d=0;d<o.length;d+=1){const f=o[d];if(f!=null)switch(typeof f){case"function":{const h=f(s);typeof h=="function"&&(i[d]=h);break}case"object":{f.current=s;break}}}n.cleanup=()=>{for(let d=0;d<o.length;d+=1){const f=o[d];if(f!=null)switch(typeof f){case"function":{const h=i[d];typeof h=="function"?h():f(null);break}case"object":{f.current=null;break}}}}}}}const tU=parseInt(S.version,10);function CN(n){return tU>=n}function NO(n){if(!S.isValidElement(n))return null;const o=n,s=o.props;return(CN(19)?s?.ref:o.ref)??null}function nU(n,o){const s={};for(const i in n){const d=n[i];if(o?.hasOwnProperty(i)){const f=o[i](d);f!=null&&Object.assign(s,f);continue}d===!0?s[`data-${i.toLowerCase()}`]="":d&&(s[`data-${i.toLowerCase()}`]=d.toString())}return s}function aU(n,o){return typeof n=="function"?n(o):n}function oU(n,o){return typeof n=="function"?n(o):n}function ja(){}const sf=Object.freeze([]),Fn=Object.freeze({}),lU=500,HD=500,rU={style:{transition:"none"}},ID="data-base-ui-click-trigger",YD={fallbackAxisSide:"none"},EN={fallbackAxisSide:"end"},sU={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function zt(n,o,s={}){const i=o.render,d=iU(o,s);if(s.enabled===!1)return null;const f=s.state??Fn;return uU(n,i,d,f)}function iU(n,o={}){const{className:s,style:i,render:d}=n,{state:f=Fn,ref:h,props:y,stateAttributesMapping:v,enabled:x=!0}=o,C=x?aU(s,f):void 0,w=x?oU(i,f):void 0,N=x?nU(f,v):Fn,R=x?Q2(N,Array.isArray(y)?X8(y):y)??Fn:Fn;return typeof document<"u"&&(x?Array.isArray(h)?R.ref=W8([R.ref,NO(d),...h]):R.ref=ps(R.ref,NO(d),h):ps(null,null)),x?(C!==void 0&&(R.className=BD(R.className,C)),w!==void 0&&(R.style=Q2(R.style,w)),R):Fn}const cU=Symbol.for("react.lazy");function uU(n,o,s,i){if(o){if(typeof o=="function")return o(s,i);const d=$i(s,o.props);d.ref=s.ref;let f=o;if(f?.$$typeof===cU&&(f=S.Children.toArray(o)[0]),process.env.NODE_ENV!=="production"&&!S.isValidElement(f))throw new Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.","A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.","https://base-ui.com/r/invalid-render-prop"].join(`
|
|
2
|
+
`));return S.cloneElement(f,d)}if(n&&typeof n=="string")return dU(n,s);throw new Error(process.env.NODE_ENV!=="production"?"Base UI: Render element or function are not defined.":Nn(8))}function dU(n,o){return n==="button"?Qe.createElement("button",{type:"button",...o,key:o.key}):n==="img"?Qe.createElement("img",{alt:"",...o,key:o.key}):S.createElement(n,o)}const qD=S.forwardRef(function(o,s){const{render:i,className:d,disabled:f=!1,focusableWhenDisabled:h=!1,nativeButton:y=!0,...v}=o,{getButtonProps:x,buttonRef:C}=Fs({disabled:f,focusableWhenDisabled:h,native:y});return zt("button",o,{state:{disabled:f},ref:[s,C],props:[v,x]})});process.env.NODE_ENV!=="production"&&(qD.displayName="Button");function GD(n){var o,s,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var d=n.length;for(o=0;o<d;o++)n[o]&&(s=GD(n[o]))&&(i&&(i+=" "),i+=s)}else for(s in n)n[s]&&(i&&(i+=" "),i+=s);return i}function XD(){for(var n,o,s=0,i="",d=arguments.length;s<d;s++)(n=arguments[s])&&(o=GD(n))&&(i&&(i+=" "),i+=o);return i}const TO=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,MO=XD,Zv=(n,o)=>s=>{var i;if(o?.variants==null)return MO(n,s?.class,s?.className);const{variants:d,defaultVariants:f}=o,h=Object.keys(d).map(x=>{const C=s?.[x],w=f?.[x];if(C===null)return null;const N=TO(C)||TO(w);return d[x][N]}),y=s&&Object.entries(s).reduce((x,C)=>{let[w,N]=C;return N===void 0||(x[w]=N),x},{}),v=o==null||(i=o.compoundVariants)===null||i===void 0?void 0:i.reduce((x,C)=>{let{class:w,className:N,...R}=C;return Object.entries(R).every(O=>{let[j,D]=O;return Array.isArray(D)?D.includes({...f,...y}[j]):{...f,...y}[j]===D})?[...x,w,N]:x},[]);return MO(n,h,v,s?.class,s?.className)},fU=(n,o)=>{const s=new Array(n.length+o.length);for(let i=0;i<n.length;i++)s[i]=n[i];for(let i=0;i<o.length;i++)s[n.length+i]=o[i];return s},mU=(n,o)=>({classGroupId:n,validator:o}),PD=(n=new Map,o=null,s)=>({nextPart:n,validators:o,classGroupId:s}),Ew="-",RO=[],pU="arbitrary..",hU=n=>{const o=yU(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return gU(h);const y=h.split(Ew),v=y[0]===""&&y.length>1?1:0;return $D(y,v,o)},getConflictingClassGroupIds:(h,y)=>{if(y){const v=i[h],x=s[h];return v?x?fU(x,v):v:x||RO}return s[h]||RO}}},$D=(n,o,s)=>{if(n.length-o===0)return s.classGroupId;const d=n[o],f=s.nextPart.get(d);if(f){const x=$D(n,o+1,f);if(x)return x}const h=s.validators;if(h===null)return;const y=o===0?n.join(Ew):n.slice(o).join(Ew),v=h.length;for(let x=0;x<v;x++){const C=h[x];if(C.validator(y))return C.classGroupId}},gU=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=n.slice(1,-1),s=o.indexOf(":"),i=o.slice(0,s);return i?pU+i:void 0})(),yU=n=>{const{theme:o,classGroups:s}=n;return bU(s,o)},bU=(n,o)=>{const s=PD();for(const i in n){const d=n[i];NN(d,s,i,o)}return s},NN=(n,o,s,i)=>{const d=n.length;for(let f=0;f<d;f++){const h=n[f];vU(h,o,s,i)}},vU=(n,o,s,i)=>{if(typeof n=="string"){xU(n,o,s);return}if(typeof n=="function"){SU(n,o,s,i);return}wU(n,o,s,i)},xU=(n,o,s)=>{const i=n===""?o:QD(o,n);i.classGroupId=s},SU=(n,o,s,i)=>{if(CU(n)){NN(n(i),o,s,i);return}o.validators===null&&(o.validators=[]),o.validators.push(mU(s,n))},wU=(n,o,s,i)=>{const d=Object.entries(n),f=d.length;for(let h=0;h<f;h++){const[y,v]=d[h];NN(v,QD(o,y),s,i)}},QD=(n,o)=>{let s=n;const i=o.split(Ew),d=i.length;for(let f=0;f<d;f++){const h=i[f];let y=s.nextPart.get(h);y||(y=PD(),s.nextPart.set(h,y)),s=y}return s},CU=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,EU=n=>{if(n<1)return{get:()=>{},set:()=>{}};let o=0,s=Object.create(null),i=Object.create(null);const d=(f,h)=>{s[f]=h,o++,o>n&&(o=0,i=s,s=Object.create(null))};return{get(f){let h=s[f];if(h!==void 0)return h;if((h=i[f])!==void 0)return d(f,h),h},set(f,h){f in s?s[f]=h:d(f,h)}}},F2="!",OO=":",NU=[],jO=(n,o,s,i,d)=>({modifiers:n,hasImportantModifier:o,baseClassName:s,maybePostfixModifierPosition:i,isExternal:d}),TU=n=>{const{prefix:o,experimentalParseClassName:s}=n;let i=d=>{const f=[];let h=0,y=0,v=0,x;const C=d.length;for(let j=0;j<C;j++){const D=d[j];if(h===0&&y===0){if(D===OO){f.push(d.slice(v,j)),v=j+1;continue}if(D==="/"){x=j;continue}}D==="["?h++:D==="]"?h--:D==="("?y++:D===")"&&y--}const w=f.length===0?d:d.slice(v);let N=w,R=!1;w.endsWith(F2)?(N=w.slice(0,-1),R=!0):w.startsWith(F2)&&(N=w.slice(1),R=!0);const O=x&&x>v?x-v:void 0;return jO(f,R,N,O)};if(o){const d=o+OO,f=i;i=h=>h.startsWith(d)?f(h.slice(d.length)):jO(NU,!1,h,void 0,!0)}if(s){const d=i;i=f=>s({className:f,parseClassName:d})}return i},MU=n=>{const o=new Map;return n.orderSensitiveModifiers.forEach((s,i)=>{o.set(s,1e6+i)}),s=>{const i=[];let d=[];for(let f=0;f<s.length;f++){const h=s[f],y=h[0]==="[",v=o.has(h);y||v?(d.length>0&&(d.sort(),i.push(...d),d=[]),i.push(h)):d.push(h)}return d.length>0&&(d.sort(),i.push(...d)),i}},RU=n=>({cache:EU(n.cacheSize),parseClassName:TU(n),sortModifiers:MU(n),...hU(n)}),OU=/\s+/,jU=(n,o)=>{const{parseClassName:s,getClassGroupId:i,getConflictingClassGroupIds:d,sortModifiers:f}=o,h=[],y=n.trim().split(OU);let v="";for(let x=y.length-1;x>=0;x-=1){const C=y[x],{isExternal:w,modifiers:N,hasImportantModifier:R,baseClassName:O,maybePostfixModifierPosition:j}=s(C);if(w){v=C+(v.length>0?" "+v:v);continue}let D=!!j,A=i(D?O.substring(0,j):O);if(!A){if(!D){v=C+(v.length>0?" "+v:v);continue}if(A=i(O),!A){v=C+(v.length>0?" "+v:v);continue}D=!1}const z=N.length===0?"":N.length===1?N[0]:f(N).join(":"),B=R?z+F2:z,U=B+A;if(h.indexOf(U)>-1)continue;h.push(U);const L=d(A,D);for(let k=0;k<L.length;++k){const V=L[k];h.push(B+V)}v=C+(v.length>0?" "+v:v)}return v},DU=(...n)=>{let o=0,s,i,d="";for(;o<n.length;)(s=n[o++])&&(i=ZD(s))&&(d&&(d+=" "),d+=i);return d},ZD=n=>{if(typeof n=="string")return n;let o,s="";for(let i=0;i<n.length;i++)n[i]&&(o=ZD(n[i]))&&(s&&(s+=" "),s+=o);return s},kU=(n,...o)=>{let s,i,d,f;const h=v=>{const x=o.reduce((C,w)=>w(C),n());return s=RU(x),i=s.cache.get,d=s.cache.set,f=y,y(v)},y=v=>{const x=i(v);if(x)return x;const C=jU(v,s);return d(v,C),C};return f=h,(...v)=>f(DU(...v))},AU=[],no=n=>{const o=s=>s[n]||AU;return o.isThemeGetter=!0,o},KD=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,FD=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zU=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_U=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,UU=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,BU=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,LU=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,VU=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wd=n=>zU.test(n),en=n=>!!n&&!Number.isNaN(Number(n)),Jd=n=>!!n&&Number.isInteger(Number(n)),o2=n=>n.endsWith("%")&&en(n.slice(0,-1)),cu=n=>_U.test(n),WD=()=>!0,HU=n=>UU.test(n)&&!BU.test(n),TN=()=>!1,IU=n=>LU.test(n),YU=n=>VU.test(n),qU=n=>!dt(n)&&!ft(n),GU=n=>mf(n,tk,TN),dt=n=>KD.test(n),op=n=>mf(n,nk,HU),DO=n=>mf(n,WU,en),XU=n=>mf(n,ok,WD),PU=n=>mf(n,ak,TN),kO=n=>mf(n,JD,TN),$U=n=>mf(n,ek,YU),HS=n=>mf(n,lk,IU),ft=n=>FD.test(n),vv=n=>xp(n,nk),QU=n=>xp(n,ak),AO=n=>xp(n,JD),ZU=n=>xp(n,tk),KU=n=>xp(n,ek),IS=n=>xp(n,lk,!0),FU=n=>xp(n,ok,!0),mf=(n,o,s)=>{const i=KD.exec(n);return i?i[1]?o(i[1]):s(i[2]):!1},xp=(n,o,s=!1)=>{const i=FD.exec(n);return i?i[1]?o(i[1]):s:!1},JD=n=>n==="position"||n==="percentage",ek=n=>n==="image"||n==="url",tk=n=>n==="length"||n==="size"||n==="bg-size",nk=n=>n==="length",WU=n=>n==="number",ak=n=>n==="family-name",ok=n=>n==="number"||n==="weight",lk=n=>n==="shadow",JU=()=>{const n=no("color"),o=no("font"),s=no("text"),i=no("font-weight"),d=no("tracking"),f=no("leading"),h=no("breakpoint"),y=no("container"),v=no("spacing"),x=no("radius"),C=no("shadow"),w=no("inset-shadow"),N=no("text-shadow"),R=no("drop-shadow"),O=no("blur"),j=no("perspective"),D=no("aspect"),A=no("ease"),z=no("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...U(),ft,dt],k=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],H=()=>[ft,dt,v],K=()=>[Wd,"full","auto",...H()],Z=()=>[Jd,"none","subgrid",ft,dt],Q=()=>["auto",{span:["full",Jd,ft,dt]},Jd,ft,dt],G=()=>[Jd,"auto",ft,dt],q=()=>["auto","min","max","fr",ft,dt],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...H()],P=()=>[Wd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],F=()=>[Wd,"screen","full","dvw","lvw","svw","min","max","fit",...H()],ee=()=>[Wd,"screen","full","lh","dvh","lvh","svh","min","max","fit",...H()],oe=()=>[n,ft,dt],we=()=>[...U(),AO,kO,{position:[ft,dt]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ce=()=>["auto","cover","contain",ZU,GU,{size:[ft,dt]}],re=()=>[o2,vv,op],he=()=>["","none","full",x,ft,dt],le=()=>["",en,vv,op],Se=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],je=()=>[en,o2,AO,kO],ve=()=>["","none",O,ft,dt],fe=()=>["none",en,ft,dt],ce=()=>["none",en,ft,dt],ae=()=>[en,ft,dt],ue=()=>[Wd,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[cu],breakpoint:[cu],color:[WD],container:[cu],"drop-shadow":[cu],ease:["in","out","in-out"],font:[qU],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[cu],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[cu],shadow:[cu],spacing:["px",en],text:[cu],"text-shadow":[cu],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Wd,dt,ft,D]}],container:["container"],columns:[{columns:[en,dt,ft,y]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[Jd,"auto",ft,dt]}],basis:[{basis:[Wd,"full","auto",y,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[en,Wd,"auto","initial","none",dt]}],grow:[{grow:["",en,ft,dt]}],shrink:[{shrink:["",en,ft,dt]}],order:[{order:[Jd,"first","last","none",ft,dt]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pbs:[{pbs:H()}],pbe:[{pbe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mbs:[{mbs:Y()}],mbe:[{mbe:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...ee()]}],"min-block-size":[{"min-block":["auto",...ee()]}],"max-block-size":[{"max-block":["none",...ee()]}],w:[{w:[y,"screen",...P()]}],"min-w":[{"min-w":[y,"screen","none",...P()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[h]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",s,vv,op]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,FU,XU]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",o2,dt]}],"font-family":[{font:[QU,PU,o]}],"font-features":[{"font-features":[dt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[d,ft,dt]}],"line-clamp":[{"line-clamp":[en,"none",ft,DO]}],leading:[{leading:[f,...H()]}],"list-image":[{"list-image":["none",ft,dt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ft,dt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:oe()}],"text-color":[{text:oe()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[en,"from-font","auto",ft,op]}],"text-decoration-color":[{decoration:oe()}],"underline-offset":[{"underline-offset":[en,"auto",ft,dt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ft,dt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ft,dt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:we()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:Ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Jd,ft,dt],radial:["",ft,dt],conic:[Jd,ft,dt]},KU,$U]}],"bg-color":[{bg:oe()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:oe()}],"gradient-via":[{via:oe()}],"gradient-to":[{to:oe()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:oe()}],"border-color-x":[{"border-x":oe()}],"border-color-y":[{"border-y":oe()}],"border-color-s":[{"border-s":oe()}],"border-color-e":[{"border-e":oe()}],"border-color-bs":[{"border-bs":oe()}],"border-color-be":[{"border-be":oe()}],"border-color-t":[{"border-t":oe()}],"border-color-r":[{"border-r":oe()}],"border-color-b":[{"border-b":oe()}],"border-color-l":[{"border-l":oe()}],"divide-color":[{divide:oe()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[en,ft,dt]}],"outline-w":[{outline:["",en,vv,op]}],"outline-color":[{outline:oe()}],shadow:[{shadow:["","none",C,IS,HS]}],"shadow-color":[{shadow:oe()}],"inset-shadow":[{"inset-shadow":["none",w,IS,HS]}],"inset-shadow-color":[{"inset-shadow":oe()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:oe()}],"ring-offset-w":[{"ring-offset":[en,op]}],"ring-offset-color":[{"ring-offset":oe()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":oe()}],"text-shadow":[{"text-shadow":["none",N,IS,HS]}],"text-shadow-color":[{"text-shadow":oe()}],opacity:[{opacity:[en,ft,dt]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[en]}],"mask-image-linear-from-pos":[{"mask-linear-from":je()}],"mask-image-linear-to-pos":[{"mask-linear-to":je()}],"mask-image-linear-from-color":[{"mask-linear-from":oe()}],"mask-image-linear-to-color":[{"mask-linear-to":oe()}],"mask-image-t-from-pos":[{"mask-t-from":je()}],"mask-image-t-to-pos":[{"mask-t-to":je()}],"mask-image-t-from-color":[{"mask-t-from":oe()}],"mask-image-t-to-color":[{"mask-t-to":oe()}],"mask-image-r-from-pos":[{"mask-r-from":je()}],"mask-image-r-to-pos":[{"mask-r-to":je()}],"mask-image-r-from-color":[{"mask-r-from":oe()}],"mask-image-r-to-color":[{"mask-r-to":oe()}],"mask-image-b-from-pos":[{"mask-b-from":je()}],"mask-image-b-to-pos":[{"mask-b-to":je()}],"mask-image-b-from-color":[{"mask-b-from":oe()}],"mask-image-b-to-color":[{"mask-b-to":oe()}],"mask-image-l-from-pos":[{"mask-l-from":je()}],"mask-image-l-to-pos":[{"mask-l-to":je()}],"mask-image-l-from-color":[{"mask-l-from":oe()}],"mask-image-l-to-color":[{"mask-l-to":oe()}],"mask-image-x-from-pos":[{"mask-x-from":je()}],"mask-image-x-to-pos":[{"mask-x-to":je()}],"mask-image-x-from-color":[{"mask-x-from":oe()}],"mask-image-x-to-color":[{"mask-x-to":oe()}],"mask-image-y-from-pos":[{"mask-y-from":je()}],"mask-image-y-to-pos":[{"mask-y-to":je()}],"mask-image-y-from-color":[{"mask-y-from":oe()}],"mask-image-y-to-color":[{"mask-y-to":oe()}],"mask-image-radial":[{"mask-radial":[ft,dt]}],"mask-image-radial-from-pos":[{"mask-radial-from":je()}],"mask-image-radial-to-pos":[{"mask-radial-to":je()}],"mask-image-radial-from-color":[{"mask-radial-from":oe()}],"mask-image-radial-to-color":[{"mask-radial-to":oe()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":U()}],"mask-image-conic-pos":[{"mask-conic":[en]}],"mask-image-conic-from-pos":[{"mask-conic-from":je()}],"mask-image-conic-to-pos":[{"mask-conic-to":je()}],"mask-image-conic-from-color":[{"mask-conic-from":oe()}],"mask-image-conic-to-color":[{"mask-conic-to":oe()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:we()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:Ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ft,dt]}],filter:[{filter:["","none",ft,dt]}],blur:[{blur:ve()}],brightness:[{brightness:[en,ft,dt]}],contrast:[{contrast:[en,ft,dt]}],"drop-shadow":[{"drop-shadow":["","none",R,IS,HS]}],"drop-shadow-color":[{"drop-shadow":oe()}],grayscale:[{grayscale:["",en,ft,dt]}],"hue-rotate":[{"hue-rotate":[en,ft,dt]}],invert:[{invert:["",en,ft,dt]}],saturate:[{saturate:[en,ft,dt]}],sepia:[{sepia:["",en,ft,dt]}],"backdrop-filter":[{"backdrop-filter":["","none",ft,dt]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[en,ft,dt]}],"backdrop-contrast":[{"backdrop-contrast":[en,ft,dt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",en,ft,dt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[en,ft,dt]}],"backdrop-invert":[{"backdrop-invert":["",en,ft,dt]}],"backdrop-opacity":[{"backdrop-opacity":[en,ft,dt]}],"backdrop-saturate":[{"backdrop-saturate":[en,ft,dt]}],"backdrop-sepia":[{"backdrop-sepia":["",en,ft,dt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ft,dt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[en,"initial",ft,dt]}],ease:[{ease:["linear","initial",A,ft,dt]}],delay:[{delay:[en,ft,dt]}],animate:[{animate:["none",z,ft,dt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,ft,dt]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:ce()}],"scale-x":[{"scale-x":ce()}],"scale-y":[{"scale-y":ce()}],"scale-z":[{"scale-z":ce()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[ft,dt,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ue()}],"translate-x":[{"translate-x":ue()}],"translate-y":[{"translate-y":ue()}],"translate-z":[{"translate-z":ue()}],"translate-none":["translate-none"],accent:[{accent:oe()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:oe()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ft,dt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mbs":[{"scroll-mbs":H()}],"scroll-mbe":[{"scroll-mbe":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pbs":[{"scroll-pbs":H()}],"scroll-pbe":[{"scroll-pbe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ft,dt]}],fill:[{fill:["none",...oe()]}],"stroke-w":[{stroke:[en,vv,op,DO]}],stroke:[{stroke:["none",...oe()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},eB=kU(JU);function $(...n){return eB(XD(n))}const W2=Zv("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function pf({className:n,variant:o="default",size:s="default",...i}){return m.jsx(qD,{"data-slot":"button",className:$(W2({variant:o,size:s,className:n})),...i})}const MN=Qe.createContext({});function tB(){return Qe.useContext(MN)}function Ws(n){const{componentSize:o}=tB();return n??o??"middle"}const nB={primary:"default",default:"outline",dashed:"outline",link:"link",text:"ghost"},aB={small:"sm",middle:"default",large:"lg"},rk=S.forwardRef((n,o)=>{const{type:s="default",size:i,shape:d="default",loading:f=!1,danger:h=!1,ghost:y=!1,block:v=!1,icon:x,iconPosition:C="start",htmlType:w="button",className:N,children:R,disabled:O,...j}=n,D=Ws(i),A=h?"destructive":nB[s],z=aB[D],B=f?m.jsx(Zs,{className:"h-4 w-4 animate-spin"}):x?m.jsx("span",{className:"inline-flex items-center",children:x}):null;return m.jsxs(pf,{ref:o,variant:A,size:z,type:w,disabled:O||f,className:$(s==="dashed"&&"border-dashed",y&&"bg-transparent border-current hover:bg-transparent hover:opacity-80",v&&"w-full",d==="circle"&&"rounded-full aspect-square p-0",d==="round"&&"rounded-full px-6",N),...j,children:[C==="start"&&B,R,C==="end"&&B]})});rk.displayName="Button";const sk=({size:n,className:o,children:s})=>m.jsx("div",{"data-slot":"button-group",className:$("inline-flex items-center",o),children:S.Children.map(s,i=>S.isValidElement(i)?S.cloneElement(i,{size:n??i.props.size}):i)});sk.displayName="ButtonGroup";const Qi=rk;Qi.Group=sk;const ik=S.forwardRef(({icon:n,description:o,tooltip:s,type:i="default",shape:d="circle",badge:f,href:h,target:y,onClick:v,className:x,style:C},w)=>{const[N,R]=S.useState(!1),D=$("relative inline-flex items-center justify-center shadow-lg transition-all duration-200 hover:shadow-xl",d==="circle"?o?"h-auto min-h-10 w-auto min-w-10 rounded-full px-3 py-2":"size-10 rounded-full":o?"h-auto min-h-10 w-auto min-w-10 rounded-lg px-3 py-2":"size-10 rounded-lg",i==="primary"?"bg-primary text-primary-foreground hover:bg-primary/90":"border border-border bg-background text-foreground hover:bg-accent","cursor-pointer select-none",x),A=m.jsxs(m.Fragment,{children:[f&&(f.dot||f.count!==void 0&&f.count>0)&&m.jsx("span",{className:$("absolute z-10 rounded-full",f.dot?"-right-0.5 -top-0.5 size-2":"-right-1.5 -top-1.5 min-w-4 px-1 text-center text-[10px] font-medium leading-4 text-white"),style:{backgroundColor:f.color??"#ff4d4f"},children:f.dot?null:f.count}),m.jsxs("span",{className:"inline-flex flex-col items-center gap-0.5",children:[n&&m.jsx("span",{className:"inline-flex items-center justify-center text-lg",children:n}),o&&m.jsx("span",{className:"text-xs leading-tight",children:o})]}),s&&N&&m.jsx("span",{className:"pointer-events-none absolute -left-2 top-1/2 -translate-x-full -translate-y-1/2 whitespace-nowrap rounded-md bg-foreground px-2 py-1 text-xs text-background shadow-md",children:s})]}),z={onClick:v,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1)};return h?m.jsx("a",{ref:w,href:h,target:y,rel:y==="_blank"?"noopener noreferrer":void 0,className:D,style:C,...z,children:A}):m.jsx("button",{ref:w,type:"button",className:D,style:C,...z,children:A})});ik.displayName="FloatButton";const ck=({shape:n="circle",trigger:o,icon:s,closeIcon:i,open:d,onOpenChange:f,children:h,className:y,style:v})=>{const[x,C]=S.useState(!1),w=d!==void 0,N=w?d:x,R=S.useRef(null),O=S.useCallback(k=>{w||C(k),f?.(k)},[w,f]),j=S.useCallback(()=>{O(!N)},[N,O]),D=S.useCallback(()=>{o==="hover"&&(R.current&&(clearTimeout(R.current),R.current=null),O(!0))},[o,O]),A=S.useCallback(()=>{o==="hover"&&(R.current=setTimeout(()=>{O(!1)},150))},[o,O]);S.useEffect(()=>()=>{R.current&&clearTimeout(R.current)},[]);const z=n==="circle",L=N?i??m.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5",children:[m.jsx("path",{d:"M18 6 6 18"}),m.jsx("path",{d:"m6 6 12 12"})]}):s??m.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5",children:[m.jsx("path",{d:"M5 12h14"}),m.jsx("path",{d:"M12 5v14"})]});return o?m.jsxs("div",{className:$("fixed bottom-6 right-6 z-[999] flex flex-col-reverse items-center gap-3",y),style:v,onMouseEnter:D,onMouseLeave:A,children:[m.jsx("button",{type:"button",className:$("inline-flex size-10 items-center justify-center shadow-lg transition-all duration-200 hover:shadow-xl",z?"rounded-full":"rounded-lg","border border-border bg-background text-foreground hover:bg-accent","cursor-pointer select-none"),onClick:o==="click"?j:void 0,children:m.jsx("span",{className:$("inline-flex items-center justify-center transition-transform duration-200",N&&"rotate-0"),children:L})}),m.jsx("div",{className:$("flex flex-col-reverse items-center gap-3 transition-all duration-200",N?"pointer-events-auto translate-y-0 opacity-100":"pointer-events-none translate-y-2 opacity-0"),children:h})]}):m.jsx("div",{className:$("fixed bottom-6 right-6 z-[999] flex flex-col-reverse items-center gap-3",y),style:v,children:h})};ck.displayName="FloatButton.Group";const uk=({visibilityHeight:n=400,target:o,duration:s=450,onClick:i,icon:d,className:f,style:h})=>{const[y,v]=S.useState(!1);S.useEffect(()=>{const w=o?o():window,N=()=>w instanceof Window?window.pageYOffset||document.documentElement.scrollTop:w.scrollTop,R=()=>{v(N()>=n)};return R(),w.addEventListener("scroll",R,{passive:!0}),()=>{w.removeEventListener("scroll",R)}},[n,o]);const x=S.useCallback(w=>{const N=o?o():window;if(N instanceof Window){const R=window.pageYOffset||document.documentElement.scrollTop,O=performance.now(),j=D=>{const A=D-O,z=Math.min(A/s,1),B=z<.5?2*z*z:1-Math.pow(-2*z+2,2)/2;window.scrollTo(0,R*(1-B)),z<1&&requestAnimationFrame(j)};requestAnimationFrame(j)}else{const R=N,O=R.scrollTop,j=performance.now(),D=A=>{const z=A-j,B=Math.min(z/s,1),U=B<.5?2*B*B:1-Math.pow(-2*B+2,2)/2;R.scrollTop=O*(1-U),B<1&&requestAnimationFrame(D)};requestAnimationFrame(D)}i?.(w)},[o,s,i]),C=m.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-5",children:m.jsx("path",{d:"m18 15-6-6-6 6"})});return m.jsx("button",{type:"button",className:$("fixed bottom-6 right-6 z-[999] inline-flex size-10 items-center justify-center rounded-full border border-border bg-background text-foreground shadow-lg transition-all duration-300 hover:bg-accent hover:shadow-xl","cursor-pointer select-none",y?"pointer-events-auto translate-y-0 opacity-100":"pointer-events-none translate-y-4 opacity-0",f),style:h,onClick:x,"aria-label":"Back to top",children:d??C})};uk.displayName="FloatButton.BackTop";const RN=ik;RN.Group=ck;RN.BackTop=uk;const gp={secondary:"text-muted-foreground",success:"text-green-600",warning:"text-yellow-600",danger:"text-destructive"},zO={1:"text-4xl font-bold tracking-tight",2:"text-3xl font-semibold tracking-tight",3:"text-2xl font-semibold",4:"text-xl font-semibold",5:"text-lg font-semibold"},oB=()=>m.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-3.5",children:[m.jsx("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),m.jsx("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]}),lB=()=>m.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-3.5 text-green-500",children:m.jsx("path",{d:"M20 6 9 17l-5-5"})}),ON=()=>m.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"size-3.5",children:[m.jsx("path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"}),m.jsx("path",{d:"m15 5 4 4"})]});function Kw({textToCopy:n,config:o}){const[s,i]=S.useState(!1),d=S.useCallback(x=>{x.stopPropagation();const C=o.text??n;navigator.clipboard.writeText(C).then(()=>{i(!0),o.onCopy?.(x),setTimeout(()=>i(!1),2e3)})},[o,n]),f=o.icon,h=o.tooltips,y=s?f?.[1]??m.jsx(lB,{}):f?.[0]??m.jsx(oB,{}),v=s?h?.[1]??"Copied":h?.[0]??"Copy";return m.jsxs("button",{type:"button",className:"group/copy relative ml-1 inline-flex cursor-pointer items-center text-muted-foreground transition-colors hover:text-foreground",onClick:d,"aria-label":"Copy",children:[y,m.jsx("span",{className:"pointer-events-none absolute -top-8 left-1/2 -translate-x-1/2 whitespace-nowrap rounded bg-foreground px-1.5 py-0.5 text-xs text-background opacity-0 transition-opacity group-hover/copy:opacity-100",children:v})]})}function jN({value:n,config:o}){const[s,i]=S.useState(n),d=S.useRef(null);S.useEffect(()=>{d.current?.focus(),d.current?.select()},[]);const f=S.useCallback(x=>{x.key==="Enter"&&!x.shiftKey?(x.preventDefault(),o.onChange?.(s),o.onEnd?.()):x.key==="Escape"&&o.onCancel?.()},[s,o]),h=S.useCallback(()=>{o.onChange?.(s),o.onEnd?.()},[s,o]),y=()=>typeof o.autoSize=="object"&&o.autoSize?{minRows:o.autoSize.minRows??1,maxRows:o.autoSize.maxRows??6}:{minRows:1,maxRows:o.autoSize?999:1},{minRows:v}=y();return m.jsxs("span",{className:"inline-flex items-center gap-1",children:[m.jsx("textarea",{ref:d,className:"inline-block w-full resize-none rounded border border-primary bg-background px-1.5 py-0.5 text-inherit outline-none ring-1 ring-primary/20",value:s,onChange:x=>i(x.target.value),onKeyDown:f,onBlur:h,rows:v,maxLength:o.maxLength}),o.enterIcon!==void 0?o.enterIcon:m.jsx("span",{className:"text-xs text-muted-foreground",children:"Enter"})]})}function DN(n,o){let s=n;return o.strong&&(s=m.jsx("strong",{children:s})),o.italic&&(s=m.jsx("em",{children:s})),o.underline&&(s=m.jsx("u",{children:s})),o.del&&(s=m.jsx("del",{children:s})),o.mark&&(s=m.jsx("mark",{className:"bg-yellow-200 px-0.5 dark:bg-yellow-800",children:s})),o.code&&(s=m.jsx("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[0.875em]",children:s})),o.keyboard&&(s=m.jsx("kbd",{className:"rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-[0.875em] shadow-sm",children:s})),s}function Fw(n){if(!n)return{};const o=typeof n=="object"?n.rows??1:1;return o===1?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:o,WebkitBoxOrient:"vertical"}}function hu(n){return typeof n=="string"?n:typeof n=="number"?String(n):Array.isArray(n)?n.map(hu).join(""):S.isValidElement(n)&&n.props?hu(n.props.children):""}const dk=({level:n=1,type:o,copyable:s,editable:i,ellipsis:d,mark:f,code:h,underline:y,delete:v,strong:x,italic:C,disabled:w,children:N,className:R,style:O})=>{const[j,D]=S.useState(!1),[A,z]=S.useState(!1),B=`h${n}`,U=i===!0?{}:i===!1?void 0:i,L=s===!0?{}:s===!1?void 0:s,k=d===!0?{}:d===!1?void 0:d,V=U?.editing!==void 0,H=S.useCallback(()=>{V||D(!0),U?.onStart?.()},[V,U]),K=U?{...U,onEnd:()=>{V||D(!1),U.onEnd?.()},onCancel:()=>{V||D(!1),U.onCancel?.()}}:void 0,Z=V?U?.editing:j,Q=U?.triggerType??["icon"];if(Z&&K)return m.jsx(B,{className:$(zO[n],o&&gp[o],R),style:O,children:m.jsx(jN,{value:hu(N),config:K})});const G=A?{}:Fw(d),q=hu(N),W=DN(N,{mark:f,code:h,underline:y,del:v,strong:x,italic:C});return m.jsxs(B,{className:$(zO[n],o&&gp[o],w&&"pointer-events-none cursor-not-allowed opacity-50",R),style:{...G,...O},onClick:U&&Q.includes("text")?H:void 0,children:[W,k?.suffix,k?.expandable&&!A&&m.jsx("button",{type:"button",className:"ml-1 cursor-pointer text-primary",onClick:te=>{z(!0),k.onExpand?.(te)},children:"...expand"}),U&&Q.includes("icon")&&m.jsx("button",{type:"button",className:"ml-1 inline-flex cursor-pointer items-center text-muted-foreground transition-colors hover:text-foreground",onClick:H,"aria-label":"Edit",children:U.icon??m.jsx(ON,{})}),L&&m.jsx(Kw,{textToCopy:q,config:L})]})};dk.displayName="Typography.Title";const fk=({type:n,copyable:o,editable:s,ellipsis:i,mark:d,code:f,keyboard:h,underline:y,delete:v,strong:x,italic:C,disabled:w,children:N,className:R,style:O})=>{const[j,D]=S.useState(!1),[A,z]=S.useState(!1),B=s===!0?{}:s===!1?void 0:s,U=o===!0?{}:o===!1?void 0:o,L=i===!0?{}:i===!1?void 0:i,k=B?.editing!==void 0,V=S.useCallback(()=>{k||D(!0),B?.onStart?.()},[k,B]),H=B?{...B,onEnd:()=>{k||D(!1),B.onEnd?.()},onCancel:()=>{k||D(!1),B.onCancel?.()}}:void 0,K=k?B?.editing:j,Z=B?.triggerType??["icon"];if(K&&H)return m.jsx("span",{className:$("text-sm",n&&gp[n],R),style:O,children:m.jsx(jN,{value:hu(N),config:H})});const Q=A?{}:Fw(i),G=hu(N),q=DN(N,{mark:d,code:f,keyboard:h,underline:y,del:v,strong:x,italic:C});return m.jsxs("span",{className:$(n&&gp[n],w&&"pointer-events-none cursor-not-allowed opacity-50",R),style:{...Q,...O},onClick:B&&Z.includes("text")?V:void 0,children:[q,L?.suffix,L?.expandable&&!A&&m.jsx("button",{type:"button",className:"ml-1 cursor-pointer text-primary",onClick:W=>{z(!0),L.onExpand?.(W)},children:"...expand"}),B&&Z.includes("icon")&&m.jsx("button",{type:"button",className:"ml-1 inline-flex cursor-pointer items-center text-muted-foreground transition-colors hover:text-foreground",onClick:V,"aria-label":"Edit",children:B.icon??m.jsx(ON,{})}),U&&m.jsx(Kw,{textToCopy:G,config:U})]})};fk.displayName="Typography.Text";const mk=({type:n,copyable:o,editable:s,ellipsis:i,mark:d,code:f,underline:h,delete:y,strong:v,italic:x,disabled:C,children:w,className:N,style:R})=>{const[O,j]=S.useState(!1),[D,A]=S.useState(!1),z=s===!0?{}:s===!1?void 0:s,B=o===!0?{}:o===!1?void 0:o,U=i===!0?{}:i===!1?void 0:i,L=z?.editing!==void 0,k=S.useCallback(()=>{L||j(!0),z?.onStart?.()},[L,z]),V=z?{...z,onEnd:()=>{L||j(!1),z.onEnd?.()},onCancel:()=>{L||j(!1),z.onCancel?.()}}:void 0,H=L?z?.editing:O,K=z?.triggerType??["icon"];if(H&&V)return m.jsx("div",{className:$(n&&gp[n],N),style:R,children:m.jsx(jN,{value:hu(w),config:V})});const Z=D?{}:Fw(i),Q=hu(w),G=DN(w,{mark:d,code:f,underline:h,del:y,strong:v,italic:x});return m.jsxs("div",{className:$(n&&gp[n],C&&"pointer-events-none cursor-not-allowed opacity-50",N),style:{...Z,...R},onClick:z&&K.includes("text")?k:void 0,children:[G,U?.suffix,U?.expandable&&!D&&m.jsx("button",{type:"button",className:"ml-1 cursor-pointer text-primary",onClick:q=>{A(!0),U.onExpand?.(q)},children:"...expand"}),z&&K.includes("icon")&&m.jsx("button",{type:"button",className:"ml-1 inline-flex cursor-pointer items-center text-muted-foreground transition-colors hover:text-foreground",onClick:k,"aria-label":"Edit",children:z.icon??m.jsx(ON,{})}),B&&m.jsx(Kw,{textToCopy:Q,config:B})]})};mk.displayName="Typography.Paragraph";const pk=({type:n,copyable:o,ellipsis:s,href:i,target:d,children:f,className:h,style:y})=>{const[v,x]=S.useState(!1),C=o===!0?{}:o===!1?void 0:o,w=s===!0?{}:s===!1?void 0:s,N=v?{}:Fw(s),R=hu(f);return m.jsxs("a",{href:i,target:d,rel:d==="_blank"?"noopener noreferrer":void 0,className:$("text-primary underline-offset-4 hover:underline",n&&gp[n],h),style:{...N,...y},children:[f,w?.suffix,w?.expandable&&!v&&m.jsx("button",{type:"button",className:"ml-1 cursor-pointer text-primary",onClick:O=>{O.preventDefault(),x(!0),w.onExpand?.(O)},children:"...expand"}),C&&m.jsx(Kw,{textToCopy:R,config:C})]})};pk.displayName="Typography.Link";const hk=({children:n,className:o,style:s})=>m.jsx("article",{className:$(o),style:s,children:n});hk.displayName="Typography";const Kv=hk;Kv.Title=dk;Kv.Text=fk;Kv.Paragraph=mk;Kv.Link=pk;const rB={small:8,middle:16,large:24};function YS(n){return typeof n=="number"?n:rB[n]??8}const sB={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline"},gk=S.forwardRef((n,o)=>{const{align:s,size:i="small",direction:d="horizontal",wrap:f=!1,split:h,className:y,children:v,style:x,...C}=n,[w,N]=Array.isArray(i)?[YS(i[0]),YS(i[1])]:[YS(i),YS(i)],R=S.Children.toArray(v).filter(j=>j!=null),O=s??(d==="horizontal"?"center":void 0);return m.jsx("div",{ref:o,"data-slot":"space",className:$("inline-flex",d==="vertical"?"flex-col":"flex-row",f&&"flex-wrap",O&&sB[O],y),style:{columnGap:w,rowGap:N,...x},...C,children:R.map((j,D)=>m.jsxs(S.Fragment,{children:[h&&D>0&&m.jsx("span",{"data-slot":"space-split",className:"inline-flex items-center",children:h}),j]},D))})});gk.displayName="Space";const yk=S.forwardRef((n,o)=>{const{direction:s="horizontal",size:i,block:d=!1,className:f,children:h,...y}=n;return m.jsx("div",{ref:o,"data-slot":"space-compact",className:$("inline-flex",s==="vertical"?"flex-col":"flex-row",d&&"flex w-full",s==="horizontal"&&"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none [&>*:not(:first-child)]:-ml-px",s==="vertical"&&"[&>*:not(:first-child)]:rounded-t-none [&>*:not(:last-child)]:rounded-b-none [&>*:not(:first-child)]:-mt-px",f),...y,children:S.Children.map(h,v=>S.isValidElement(v)&&i?S.cloneElement(v,{size:i??v.props.size}):v)})});yk.displayName="Space.Compact";const bk=gk;bk.Compact=yk;const _O={small:8,middle:16,large:24};function iB(n){if(n!==void 0)return typeof n=="number"?n:n in _O?_O[n]:n}const vk=S.forwardRef((n,o)=>{const{vertical:s=!1,wrap:i,justify:d,align:f,gap:h,flex:y,component:v="div",className:x,style:C,children:w,...N}=n,R=iB(h),O=i===!0?"wrap":i===!1?"nowrap":i;return m.jsx(v,{ref:o,"data-slot":"flex",className:$("flex",x),style:{flexDirection:s?"column":"row",flexWrap:O,justifyContent:d,alignItems:f,gap:R,flex:y,...C},...N,children:w})});vk.displayName="Flex";const xk=Qe.createContext({gutter:[0,0]}),xv={sm:576,md:768,lg:992,xl:1200,xxl:1600},cB={top:"items-start",middle:"items-center",bottom:"items-end",stretch:"items-stretch"},uB={start:"justify-start",end:"justify-end",center:"justify-center","space-around":"justify-around","space-between":"justify-between","space-evenly":"justify-evenly"};function dB(){const[n,o]=S.useState("xxl");return S.useEffect(()=>{function s(){const i=window.innerWidth;i<xv.sm?o("xs"):i<xv.md?o("sm"):i<xv.lg?o("md"):i<xv.xl?o("lg"):i<xv.xxl?o("xl"):o("xxl")}return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),n}function l2(n,o){if(typeof n=="number")return n;const s=["xxl","xl","lg","md","sm","xs"],i=s.indexOf(o);for(let d=i;d<s.length;d++){const f=n[s[d]];if(f!==void 0)return f}return 0}const Sk=S.forwardRef((n,o)=>{const{gutter:s=0,align:i,justify:d,wrap:f=!0,className:h,children:y,style:v,...x}=n,C=dB(),[w,N]=S.useMemo(()=>Array.isArray(s)?[l2(s[0],C),l2(s[1],C)]:[l2(s,C),0],[s,C]),R=w/2,O={...w>0?{marginLeft:-R,marginRight:-R}:{},...N>0?{rowGap:N}:{},...v};return m.jsx(xk.Provider,{value:{gutter:[w,N]},children:m.jsx("div",{ref:o,"data-slot":"row",className:$("flex",f?"flex-wrap":"flex-nowrap",i&&cB[i],d&&uB[d],h),style:O,...x,children:y})})});Sk.displayName="Row";function fB(n){if(n!==void 0)return typeof n=="number"?{span:n}:n}const UO={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"};function mB(){const[n,o]=S.useState(new Set);return S.useEffect(()=>{const s=[];function i(){const d=new Set;for(const{bp:f,mql:h}of s)h.matches&&d.add(f);o(d)}for(const d of Object.keys(UO)){const f=window.matchMedia(UO[d]);s.push({bp:d,mql:f}),f.addEventListener("change",i)}return i(),()=>{for(const{mql:d}of s)d.removeEventListener("change",i)}},[]),n}const wk=S.forwardRef((n,o)=>{const{span:s,offset:i,push:d,pull:f,order:h,flex:y,xs:v,sm:x,md:C,lg:w,xl:N,xxl:R,className:O,children:j,style:D,...A}=n,{gutter:z}=S.useContext(xk),B=mB(),U=["xxl","xl","lg","md","sm","xs"],L={xs:v,sm:x,md:C,lg:w,xl:N,xxl:R};let k={span:s,offset:i,push:d,pull:f,order:h};const V=U.reverse().filter(te=>B.has(te));for(const te of V){const Y=fB(L[te]);Y&&(k={...k,...Y})}const{span:H,offset:K=0,push:Z=0,pull:Q=0,order:G}=k,q=z[0]/2,W={...q>0?{paddingLeft:q,paddingRight:q}:{},...H!==void 0&&H>0?{flex:`0 0 ${H/24*100}%`,maxWidth:`${H/24*100}%`}:H===0?{display:"none"}:{},...y!==void 0?{flex:typeof y=="number"?`${y} ${y} auto`:y}:{},...K>0?{marginLeft:`${K/24*100}%`}:{},...Z>0?{left:`${Z/24*100}%`}:{},...Q>0?{right:`${Q/24*100}%`}:{},...G!==void 0?{order:G}:{},...D};return H===void 0&&y===void 0&&(W.flex="1"),m.jsx("div",{ref:o,"data-slot":"col",className:$("relative min-h-[1px]",(Z>0||Q>0)&&"relative",O),style:W,...A,children:j})});wk.displayName="Col";const kN=S.forwardRef(function(o,s){const{className:i,render:d,orientation:f="horizontal",...h}=o;return zt("div",o,{state:{orientation:f},ref:s,props:[{role:"separator","aria-orientation":f},h]})});process.env.NODE_ENV!=="production"&&(kN.displayName="Separator");function pB({className:n,orientation:o="horizontal",...s}){return m.jsx(kN,{"data-slot":"separator",orientation:o,className:$("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",n),...s})}const Ck=S.forwardRef((n,o)=>{const{type:s="horizontal",dashed:i=!1,orientation:d="center",orientationMargin:f,children:h,plain:y=!1,className:v,style:x,...C}=n,w=h!=null;if(s==="vertical")return m.jsx("span",{ref:o,"data-slot":"divider",role:"separator",className:$("relative mx-2 inline-block h-[0.9em] w-px self-center align-middle",i?"border-l border-dashed border-border":"bg-border",v),style:x,...C});if(!w)return m.jsx("div",{ref:o,"data-slot":"divider",role:"separator",className:$("my-4",v),style:x,...C,children:m.jsx(pB,{orientation:"horizontal",className:$(i&&"border-t border-dashed border-border bg-transparent")})});const N=d==="left"?f!==void 0?void 0:"5%":d==="right"?"95%":"50%",R=d==="right"?f!==void 0?void 0:"5%":d==="left"?"95%":"50%",O=$("flex-1 self-center",i?"border-t border-dashed border-border":"h-px bg-border");return m.jsxs("div",{ref:o,"data-slot":"divider",role:"separator",className:$("my-4 flex items-center text-sm",v),style:x,...C,children:[m.jsx("div",{className:O,style:{...N?{width:N,flexGrow:0,flexShrink:0}:{},...d==="left"&&f!==void 0?{width:f,flexGrow:0,flexShrink:0}:{}}}),m.jsx("span",{className:$("inline-block px-3 whitespace-nowrap",y?"font-normal text-foreground":"font-medium text-foreground"),children:h}),m.jsx("div",{className:O,style:{...R?d==="center"?{}:{width:R,flexGrow:0,flexShrink:0}:{},...d==="right"&&f!==void 0?{width:f,flexGrow:0,flexShrink:0}:{},...d!=="right"?{flexGrow:1}:{}}})]})});Ck.displayName="Divider";const Ek=S.forwardRef((n,o)=>{const{hasSider:s,className:i,children:d,...f}=n,[h,y]=S.useState(!1),v=s??h;return S.useEffect(()=>{let x=!1;S.Children.forEach(d,C=>{S.isValidElement(C)&&C.type?.displayName==="Layout.Sider"&&(x=!0)}),y(x)},[d]),m.jsx("section",{ref:o,"data-slot":"layout",className:$("flex min-h-0",v?"flex-row":"flex-col","bg-background",i),...f,children:d})});Ek.displayName="Layout";const Nk=S.forwardRef((n,o)=>{const{className:s,children:i,...d}=n;return m.jsx("header",{ref:o,"data-slot":"layout-header",className:$("flex h-16 items-center px-6 shrink-0","bg-background border-b border-border",s),...d,children:i})});Nk.displayName="Layout.Header";const Tk=S.forwardRef((n,o)=>{const{className:s,children:i,...d}=n;return m.jsx("main",{ref:o,"data-slot":"layout-content",className:$("flex-1 min-h-0 p-6",s),...d,children:i})});Tk.displayName="Layout.Content";const Mk=S.forwardRef((n,o)=>{const{className:s,children:i,...d}=n;return m.jsx("footer",{ref:o,"data-slot":"layout-footer",className:$("flex items-center px-6 py-4 shrink-0","bg-background border-t border-border text-sm text-muted-foreground",s),...d,children:i})});Mk.displayName="Layout.Footer";const hB={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},qS=()=>m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"m15 18-6-6 6-6"})}),GS=()=>m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"m9 18 6-6-6-6"})}),Rk=S.forwardRef((n,o)=>{const{collapsed:s,collapsible:i=!1,collapsedWidth:d=80,width:f=200,breakpoint:h,theme:y="light",trigger:v,onCollapse:x,onBreakpoint:C,reverseArrow:w=!1,zeroWidthTriggerStyle:N,className:R,children:O,style:j,...D}=n,[A,z]=S.useState(!1),B=s!==void 0,U=B?s:A;S.useEffect(()=>{if(!h)return;const K=window.matchMedia(`(max-width: ${hB[h]}px)`);function Z(Q){const G=("matches"in Q,Q.matches);C?.(G),G&&!U?(B||z(!0),x?.(!0,"responsive")):!G&&U&&(B||z(!1),x?.(!1,"responsive"))}return Z(K),K.addEventListener("change",Z),()=>K.removeEventListener("change",Z)},[h]);const L=()=>{const K=!U;B||z(K),x?.(K,"clickTrigger")},k=U?d:f,H=!i||v===null?null:v!==void 0?m.jsx("div",{"data-slot":"layout-sider-trigger",className:"flex h-12 cursor-pointer items-center justify-center border-t border-border transition-colors hover:bg-accent",onClick:L,children:v}):U&&d===0?m.jsx("span",{"data-slot":"layout-sider-zero-trigger",className:$("absolute top-16 z-10 flex h-10 w-9 cursor-pointer items-center justify-center rounded-r-md",y==="dark"?"bg-zinc-800 text-zinc-100 hover:bg-zinc-700":"bg-background text-foreground shadow-md border border-border hover:bg-accent",w?"-left-9 rounded-r-none rounded-l-md":"-right-9"),style:N,onClick:L,children:U?w?m.jsx(qS,{}):m.jsx(GS,{}):w?m.jsx(GS,{}):m.jsx(qS,{})}):m.jsx("div",{"data-slot":"layout-sider-trigger",className:$("flex h-12 cursor-pointer items-center justify-center border-t transition-colors",y==="dark"?"border-zinc-700 text-zinc-100 hover:bg-zinc-700":"border-border text-foreground hover:bg-accent"),onClick:L,children:U?w?m.jsx(qS,{}):m.jsx(GS,{}):w?m.jsx(GS,{}):m.jsx(qS,{})});return m.jsxs("aside",{ref:o,"data-slot":"layout-sider","data-collapsed":U,"data-theme":y,className:$("relative flex flex-col shrink-0 transition-all duration-200",y==="dark"?"bg-zinc-900 text-zinc-100":"bg-background border-r border-border",R),style:{width:k,minWidth:k,maxWidth:k,...j},...D,children:[m.jsx("div",{className:"flex-1 overflow-hidden",children:O}),H]})});Rk.displayName="Layout.Sider";const Fv=Ek;Fv.Header=Nk;Fv.Sider=Rk;Fv.Content=Tk;Fv.Footer=Mk;function yp({controlled:n,default:o,name:s,state:i="value"}){const{current:d}=S.useRef(n!==void 0),[f,h]=S.useState(o),y=d?n:f;if(process.env.NODE_ENV!=="production"){S.useEffect(()=>{d!==(n!==void 0)&&console.error([`Base UI: A component is changing the ${d?"":"un"}controlled ${i} state of ${s} to be ${d?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${s} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
3
|
+
`))},[i,s,n]);const{current:x}=S.useRef(o);S.useEffect(()=>{!d&&JSON.stringify(x)!==JSON.stringify(o)&&console.error([`Base UI: A component is changing the default ${i} state of an uncontrolled ${s} after being initialized. To suppress this warning opt to use a controlled ${s}.`].join(`
|
|
4
|
+
`))},[JSON.stringify(o)])}const v=S.useCallback(x=>{d||h(x)},[]);return[y,v]}const AN=S.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});process.env.NODE_ENV!=="production"&&(AN.displayName="CompositeListContext");function gB(){return S.useContext(AN)}function Ww(n){const{children:o,elementsRef:s,labelsRef:i,onMapChange:d}=n,f=Ke(d),h=S.useRef(0),y=Qa(bB).current,v=Qa(yB).current,[x,C]=S.useState(0),w=S.useRef(x),N=Ke((A,z)=>{v.set(A,z??null),w.current+=1,C(w.current)}),R=Ke(A=>{v.delete(A),w.current+=1,C(w.current)}),O=S.useMemo(()=>{const A=new Map;return Array.from(v.keys()).filter(B=>B.isConnected).sort(vB).forEach((B,U)=>{const L=v.get(B)??{};A.set(B,{...L,index:U})}),A},[v,x]);Fe(()=>{if(typeof MutationObserver!="function"||O.size===0)return;const A=new MutationObserver(z=>{const B=new Set,U=L=>B.has(L)?B.delete(L):B.add(L);z.forEach(L=>{L.removedNodes.forEach(U),L.addedNodes.forEach(U)}),B.size===0&&(w.current+=1,C(w.current))});return O.forEach((z,B)=>{B.parentElement&&A.observe(B.parentElement,{childList:!0})}),()=>{A.disconnect()}},[O]),Fe(()=>{w.current===x&&(s.current.length!==O.size&&(s.current.length=O.size),i&&i.current.length!==O.size&&(i.current.length=O.size),h.current=O.size),f(O)},[f,O,s,i,x]),Fe(()=>()=>{s.current=[]},[s]),Fe(()=>()=>{i&&(i.current=[])},[i]);const j=Ke(A=>(y.add(A),()=>{y.delete(A)}));Fe(()=>{y.forEach(A=>A(O))},[y,O]);const D=S.useMemo(()=>({register:N,unregister:R,subscribeMapChange:j,elementsRef:s,labelsRef:i,nextIndexRef:h}),[N,R,j,s,i,h]);return m.jsx(AN.Provider,{value:D,children:o})}function yB(){return new Map}function bB(){return new Set}function vB(n,o){const s=n.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING||s&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:s&Node.DOCUMENT_POSITION_PRECEDING||s&Node.DOCUMENT_POSITION_CONTAINS?1:0}const Ok=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ok.displayName="DirectionContext");function Jw(){return S.useContext(Ok)?.direction??"ltr"}const zN=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(zN.displayName="TabsRootContext");function _N(){const n=S.useContext(zN);if(n===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.":Nn(64));return n}let xB=(function(n){return n.activationDirection="data-activation-direction",n.orientation="data-orientation",n})({});const UN={tabActivationDirection:n=>({[xB.activationDirection]:n})},jk=S.forwardRef(function(o,s){const{className:i,defaultValue:d=0,onValueChange:f,orientation:h="horizontal",render:y,value:v,...x}=o,C=Jw(),w=Object.hasOwn(o,"defaultValue"),N=S.useRef([]),[R,O]=S.useState(()=>new Map),[j,D]=yp({controlled:v,default:d,name:"Tabs",state:"value"}),A=v!==void 0,[z,B]=S.useState(()=>new Map),[U,L]=S.useState("none"),k=Ke((P,F)=>{f?.(P,F),!F.isCanceled&&(D(P),L(F.activationDirection))}),V=Ke((P,F)=>{O(ee=>{if(ee.get(P)===F)return ee;const oe=new Map(ee);return oe.set(P,F),oe})}),H=Ke((P,F)=>{O(ee=>{if(!ee.has(P)||ee.get(P)!==F)return ee;const oe=new Map(ee);return oe.delete(P),oe})}),K=S.useCallback(P=>R.get(P),[R]),Z=S.useCallback(P=>{for(const F of z.values())if(P===F?.value)return F?.id},[z]),Q=S.useCallback(P=>{if(P===void 0)return null;for(const[F,ee]of z.entries())if(ee!=null&&P===(ee.value??ee.index))return F;return null},[z]),G=S.useMemo(()=>({direction:C,getTabElementBySelectedValue:Q,getTabIdByPanelValue:Z,getTabPanelIdByValue:K,onValueChange:k,orientation:h,registerMountedTabPanel:V,setTabMap:B,unregisterMountedTabPanel:H,tabActivationDirection:U,value:j}),[C,Q,Z,K,k,h,V,B,H,U,j]),q=S.useMemo(()=>{for(const P of z.values())if(P!=null&&P.value===j)return P},[z,j]),W=S.useMemo(()=>{for(const P of z.values())if(P!=null&&!P.disabled)return P.value},[z]);Fe(()=>{if(A||z.size===0)return;const P=q?.disabled,F=q==null&&j!==null;if(w&&P&&j===d||!P&&!F)return;const oe=W??null;j!==oe&&(D(oe),L("none"))},[d,W,w,A,q,L,D,z,j]);const Y=zt("div",o,{state:{orientation:h,tabActivationDirection:U},ref:s,props:x,stateAttributesMapping:UN});return m.jsx(zN.Provider,{value:G,children:m.jsx(Ww,{elementsRef:N,children:Y})})});process.env.NODE_ENV!=="production"&&(jk.displayName="TabsRoot");function sn(n){return n?.ownerDocument||document}let BO=0;function SB(n,o="mui"){const[s,i]=S.useState(n),d=n||s;return S.useEffect(()=>{s==null&&(BO+=1,i(`${o}-${BO}`))},[s,o]),d}const LO=$2.useId;function Sp(n,o){if(LO!==void 0){const s=LO();return n??(o?`${o}-${s}`:s)}return SB(n,o)}function vl(n){return Sp(n,"base-ui")}const BN="data-composite-item-active";let Dk=(function(n){return n[n.None=0]="None",n[n.GuessFromOrder=1]="GuessFromOrder",n})({});function eC(n={}){const{label:o,metadata:s,textRef:i,indexGuessBehavior:d,index:f}=n,{register:h,unregister:y,subscribeMapChange:v,elementsRef:x,labelsRef:C,nextIndexRef:w}=gB(),N=S.useRef(-1),[R,O]=S.useState(f??(d===Dk.GuessFromOrder?()=>{if(N.current===-1){const A=w.current;w.current+=1,N.current=A}return N.current}:-1)),j=S.useRef(null),D=S.useCallback(A=>{if(j.current=A,R!==-1&&A!==null&&(x.current[R]=A,C)){const z=o!==void 0;C.current[R]=z?o:i?.current?.textContent??A.textContent}},[R,x,C,o,i]);return Fe(()=>{if(f!=null)return;const A=j.current;if(A)return h(A,s),()=>{y(A)}},[f,h,y,s]),Fe(()=>{if(f==null)return v(A=>{const z=j.current?A.get(j.current)?.index:null;z!=null&&O(z)})},[f,v,O]),S.useMemo(()=>({ref:D,index:R}),[R,D])}function kk(n={}){const{highlightItemOnHover:o,highlightedIndex:s,onHighlightedIndexChange:i}=wN(),{ref:d,index:f}=eC(n),h=s===f,y=S.useRef(null),v=ps(d,y);return{compositeProps:S.useMemo(()=>({tabIndex:h?0:-1,onFocus(){i(f)},onMouseMove(){const C=y.current;if(!o||!C)return;const w=C.hasAttribute("disabled")||C.ariaDisabled==="true";!h&&!w&&C.focus()}}),[h,i,f,o]),compositeRef:v,index:f}}const LN=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(LN.displayName="TabsListContext");function wB(){const n=S.useContext(LN);if(n===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.":Nn(65));return n}const hs="none",gu="trigger-press",ao="trigger-hover",Jg="trigger-focus",tC="outside-press",Uv="item-press",CB="close-press",Zi="focus-out",Wv="escape-key",pw="list-navigation",Ak="cancel-open",hw="sibling-open",EB="disabled",nC="imperative-action",NB="window-resize";function vt(n,o,s,i){let d=!1,f=!1;const h=i??Fn;return{reason:n,event:o??new Event("base-ui"),cancel(){d=!0},allowPropagation(){f=!0},get isCanceled(){return d},get isPropagationAllowed(){return f},trigger:s,...h}}const yy=typeof navigator<"u",r2=MB(),zk=OB(),_k=RB(),VN=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),Uk=r2.platform==="MacIntel"&&r2.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(r2.platform),Bk=yy&&/apple/i.test(navigator.vendor),J2=yy&&/android/i.test(zk)||/android/i.test(_k),TB=yy&&zk.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,Lk=_k.includes("jsdom/");function MB(){if(!yy)return{platform:"",maxTouchPoints:-1};const n=navigator.userAgentData;return n?.platform?{platform:n.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function RB(){if(!yy)return"";const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?n.brands.map(({brand:o,version:s})=>`${o}/${s}`).join(" "):navigator.userAgent}function OB(){if(!yy)return"";const n=navigator.userAgentData;return n?.platform?n.platform:navigator.platform??""}const eN="data-base-ui-focusable",Vk="active",Hk="selected",Ik="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",af="ArrowLeft",of="ArrowRight",HN="ArrowUp",Jv="ArrowDown";function gr(n){let o=n.activeElement;for(;o?.shadowRoot?.activeElement!=null;)o=o.shadowRoot.activeElement;return o}function Ut(n,o){if(!n||!o)return!1;const s=o.getRootNode?.();if(n.contains(o))return!0;if(s&&G2(s)){let i=o;for(;i;){if(n===i)return!0;i=i.parentNode||i.host}}return!1}function Nw(n,o){if(!bn(n))return!1;const s=n;if(o.hasElement(s))return!s.hasAttribute("data-trigger-disabled");for(const[,i]of o.entries())if(Ut(i,s))return!i.hasAttribute("data-trigger-disabled");return!1}function bl(n){return"composedPath"in n?n.composedPath()[0]:n.target}function Ps(n,o){if(o==null)return!1;if("composedPath"in n)return n.composedPath().includes(o);const s=n;return s.target!=null&&o.contains(s.target)}function jB(n){return n.matches("html,body")}function aC(n){return aa(n)&&n.matches(Ik)}function tN(n){return n?n.getAttribute("role")==="combobox"&&aC(n):!1}function DB(n){if(!n||Lk)return!0;try{return n.matches(":focus-visible")}catch{return!0}}function Yv(n){return n?n.hasAttribute(eN)?n:n.querySelector(`[${eN}]`)||n:null}function fp(n,o,s=!0){return n.filter(d=>d.parentId===o&&(!s||d.context?.open)).flatMap(d=>[d,...fp(n,d.id,s)])}function VO(n,o){let s=[],i=n.find(d=>d.id===o)?.parentId;for(;i;){const d=n.find(f=>f.id===i);i=d?.parentId,d&&(s=s.concat(d))}return s}function Po(n){n.preventDefault(),n.stopPropagation()}function kB(n){return"nativeEvent"in n}function Yk(n){return n.pointerType===""&&n.isTrusted?!0:J2&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function qk(n){return Lk?!1:!J2&&n.width===0&&n.height===0||J2&&n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType==="mouse"||n.width<1&&n.height<1&&n.pressure===0&&n.detail===0&&n.pointerType==="touch"}function bp(n,o){const s=["mouse","pen"];return o||s.push("",void 0),s.includes(n)}function Gk(n){const o=n.type;return o==="click"||o==="mousedown"||o==="keydown"||o==="keyup"}const AB=["top","right","bottom","left"],ry=Math.min,yr=Math.max,Tw=Math.round,Fg=Math.floor,Xi=n=>({x:n,y:n}),zB={left:"right",right:"left",bottom:"top",top:"bottom"};function nN(n,o,s){return yr(n,ry(o,s))}function yu(n,o){return typeof n=="function"?n(o):n}function Ul(n){return n.split("-")[0]}function hf(n){return n.split("-")[1]}function IN(n){return n==="x"?"y":"x"}function YN(n){return n==="y"?"height":"width"}function ms(n){const o=n[0];return o==="t"||o==="b"?"y":"x"}function qN(n){return IN(ms(n))}function _B(n,o,s){s===void 0&&(s=!1);const i=hf(n),d=qN(n),f=YN(d);let h=d==="x"?i===(s?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[f]>o.floating[f]&&(h=Mw(h)),[h,Mw(h)]}function UB(n){const o=Mw(n);return[aN(n),o,aN(o)]}function aN(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const HO=["left","right"],IO=["right","left"],BB=["top","bottom"],LB=["bottom","top"];function VB(n,o,s){switch(n){case"top":case"bottom":return s?o?IO:HO:o?HO:IO;case"left":case"right":return o?BB:LB;default:return[]}}function HB(n,o,s,i){const d=hf(n);let f=VB(Ul(n),s==="start",i);return d&&(f=f.map(h=>h+"-"+d),o&&(f=f.concat(f.map(aN)))),f}function Mw(n){const o=Ul(n);return zB[o]+n.slice(o.length)}function IB(n){return{top:0,right:0,bottom:0,left:0,...n}}function Xk(n){return typeof n!="number"?IB(n):{top:n,right:n,bottom:n,left:n}}function Rw(n){const{x:o,y:s,width:i,height:d}=n;return{width:i,height:d,top:s,left:o,right:o+i,bottom:s+d,x:o,y:s}}function XS(n,o,s){return Math.floor(n/o)!==s}function ey(n,o){return o<0||o>=n.current.length}function gw(n,o){return Uo(n,{disabledIndices:o})}function oN(n,o){return Uo(n,{decrement:!0,startingIndex:n.current.length,disabledIndices:o})}function Uo(n,{startingIndex:o=-1,decrement:s=!1,disabledIndices:i,amount:d=1}={}){let f=o;do f+=s?-d:d;while(f>=0&&f<=n.current.length-1&&lf(n,f,i));return f}function Pk(n,{event:o,orientation:s,loopFocus:i,rtl:d,cols:f,disabledIndices:h,minIndex:y,maxIndex:v,prevIndex:x,stopEvent:C=!1}){let w=x;const N=[],R={};let O=!1;{let A=null,z=-1;n.current.forEach((B,U)=>{if(B==null)return;const L=B.closest('[role="row"]');L&&(O=!0),(L!==A||z===-1)&&(A=L,z+=1,N[z]=[]),N[z].push(U),R[U]=z})}const j=O&&N.length>0&&N.some(A=>A.length!==f);function D(A){if(!j||x===-1)return;const z=R[x];if(z==null)return;const B=N[z].indexOf(x);let U=A==="up"?z-1:z+1;i&&(U<0?U=N.length-1:U>=N.length&&(U=0));const L=new Set;for(;U>=0&&U<N.length&&!L.has(U);){L.add(U);const k=N[U];if(k.length===0){U=A==="up"?U-1:U+1;continue}const V=Math.min(B,k.length-1);for(let H=V;H>=0;H-=1){const K=k[H];if(!lf(n,K,h))return K}U=A==="up"?U-1:U+1,i&&(U<0?U=N.length-1:U>=N.length&&(U=0))}}if(o.key===HN){const A=D("up");if(A!==void 0)C&&Po(o),w=A;else{if(C&&Po(o),x===-1)w=v;else if(w=Uo(n,{startingIndex:w,amount:f,decrement:!0,disabledIndices:h}),i&&(x-f<y||w<0)){const z=x%f,B=v%f,U=v-(B-z);B===z?w=v:w=B>z?U:U-f}ey(n,w)&&(w=x)}}if(o.key===Jv){const A=D("down");A!==void 0?(C&&Po(o),w=A):(C&&Po(o),x===-1?w=y:(w=Uo(n,{startingIndex:x,amount:f,disabledIndices:h}),i&&x+f>v&&(w=Uo(n,{startingIndex:x%f-f,amount:f,disabledIndices:h}))),ey(n,w)&&(w=x))}if(s==="both"){const A=Fg(x/f);o.key===(d?af:of)&&(C&&Po(o),x%f!==f-1?(w=Uo(n,{startingIndex:x,disabledIndices:h}),i&&XS(w,f,A)&&(w=Uo(n,{startingIndex:x-x%f-1,disabledIndices:h}))):i&&(w=Uo(n,{startingIndex:x-x%f-1,disabledIndices:h})),XS(w,f,A)&&(w=x)),o.key===(d?of:af)&&(C&&Po(o),x%f!==0?(w=Uo(n,{startingIndex:x,decrement:!0,disabledIndices:h}),i&&XS(w,f,A)&&(w=Uo(n,{startingIndex:x+(f-x%f),decrement:!0,disabledIndices:h}))):i&&(w=Uo(n,{startingIndex:x+(f-x%f),decrement:!0,disabledIndices:h})),XS(w,f,A)&&(w=x));const z=Fg(v/f)===A;ey(n,w)&&(i&&z?w=o.key===(d?of:af)?v:Uo(n,{startingIndex:x-x%f-1,disabledIndices:h}):w=x)}return w}function $k(n,o,s){const i=[];let d=0;return n.forEach(({width:f,height:h},y)=>{if(f>o&&process.env.NODE_ENV!=="production")throw new Error(`[Floating UI]: Invalid grid - item width at index ${y} is greater than grid columns`);let v=!1;for(s&&(d=0);!v;){const x=[];for(let C=0;C<f;C+=1)for(let w=0;w<h;w+=1)x.push(d+C+w*o);d%o+f<=o&&x.every(C=>i[C]==null)?(x.forEach(C=>{i[C]=y}),v=!0):d+=1}}),[...i]}function Qk(n,o,s,i,d){if(n===-1)return-1;const f=s.indexOf(n),h=o[n];switch(d){case"tl":return f;case"tr":return h?f+h.width-1:f;case"bl":return h?f+(h.height-1)*i:f;case"br":return s.lastIndexOf(n);default:return-1}}function Zk(n,o){return o.flatMap((s,i)=>n.includes(s)?[i]:[])}function lf(n,o,s){if(typeof s=="function")return s(o);if(s)return s.includes(o);const i=n.current[o];return i?i.hasAttribute("disabled")||i.getAttribute("aria-disabled")==="true":!1}var YB=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Ow=YB.join(","),Kk=typeof Element>"u",sy=Kk?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,jw=!Kk&&Element.prototype.getRootNode?function(n){var o;return n==null||(o=n.getRootNode)===null||o===void 0?void 0:o.call(n)}:function(n){return n?.ownerDocument},Dw=function(o,s){var i;s===void 0&&(s=!0);var d=o==null||(i=o.getAttribute)===null||i===void 0?void 0:i.call(o,"inert"),f=d===""||d==="true",h=f||s&&o&&(typeof o.closest=="function"?o.closest("[inert]"):Dw(o.parentNode));return h},qB=function(o){var s,i=o==null||(s=o.getAttribute)===null||s===void 0?void 0:s.call(o,"contenteditable");return i===""||i==="true"},Fk=function(o,s,i){if(Dw(o))return[];var d=Array.prototype.slice.apply(o.querySelectorAll(Ow));return s&&sy.call(o,Ow)&&d.unshift(o),d=d.filter(i),d},kw=function(o,s,i){for(var d=[],f=Array.from(o);f.length;){var h=f.shift();if(!Dw(h,!1))if(h.tagName==="SLOT"){var y=h.assignedElements(),v=y.length?y:h.children,x=kw(v,!0,i);i.flatten?d.push.apply(d,x):d.push({scopeParent:h,candidates:x})}else{var C=sy.call(h,Ow);C&&i.filter(h)&&(s||!o.includes(h))&&d.push(h);var w=h.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(h),N=!Dw(w,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(h));if(w&&N){var R=kw(w===!0?h.children:w.children,!0,i);i.flatten?d.push.apply(d,R):d.push({scopeParent:h,candidates:R})}else f.unshift.apply(f,h.children)}}return d},Wk=function(o){return!isNaN(parseInt(o.getAttribute("tabindex"),10))},Jk=function(o){if(!o)throw new Error("No node provided");return o.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(o.tagName)||qB(o))&&!Wk(o)?0:o.tabIndex},GB=function(o,s){var i=Jk(o);return i<0&&s&&!Wk(o)?0:i},XB=function(o,s){return o.tabIndex===s.tabIndex?o.documentOrder-s.documentOrder:o.tabIndex-s.tabIndex},eA=function(o){return o.tagName==="INPUT"},PB=function(o){return eA(o)&&o.type==="hidden"},$B=function(o){var s=o.tagName==="DETAILS"&&Array.prototype.slice.apply(o.children).some(function(i){return i.tagName==="SUMMARY"});return s},QB=function(o,s){for(var i=0;i<o.length;i++)if(o[i].checked&&o[i].form===s)return o[i]},ZB=function(o){if(!o.name)return!0;var s=o.form||jw(o),i=function(y){return s.querySelectorAll('input[type="radio"][name="'+y+'"]')},d;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")d=i(window.CSS.escape(o.name));else try{d=i(o.name)}catch(h){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",h.message),!1}var f=QB(d,o.form);return!f||f===o},KB=function(o){return eA(o)&&o.type==="radio"},FB=function(o){return KB(o)&&!ZB(o)},WB=function(o){var s,i=o&&jw(o),d=(s=i)===null||s===void 0?void 0:s.host,f=!1;if(i&&i!==o){var h,y,v;for(f=!!((h=d)!==null&&h!==void 0&&(y=h.ownerDocument)!==null&&y!==void 0&&y.contains(d)||o!=null&&(v=o.ownerDocument)!==null&&v!==void 0&&v.contains(o));!f&&d;){var x,C,w;i=jw(d),d=(x=i)===null||x===void 0?void 0:x.host,f=!!((C=d)!==null&&C!==void 0&&(w=C.ownerDocument)!==null&&w!==void 0&&w.contains(d))}}return f},YO=function(o){var s=o.getBoundingClientRect(),i=s.width,d=s.height;return i===0&&d===0},JB=function(o,s){var i=s.displayCheck,d=s.getShadowRoot;if(i==="full-native"&&"checkVisibility"in o){var f=o.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!f}if(getComputedStyle(o).visibility==="hidden")return!0;var h=sy.call(o,"details>summary:first-of-type"),y=h?o.parentElement:o;if(sy.call(y,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="full-native"||i==="legacy-full"){if(typeof d=="function"){for(var v=o;o;){var x=o.parentElement,C=jw(o);if(x&&!x.shadowRoot&&d(x)===!0)return YO(o);o.assignedSlot?o=o.assignedSlot:!x&&C!==o.ownerDocument?o=C.host:o=x}o=v}if(WB(o))return!o.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return YO(o);return!1},eL=function(o){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(o.tagName))for(var s=o.parentElement;s;){if(s.tagName==="FIELDSET"&&s.disabled){for(var i=0;i<s.children.length;i++){var d=s.children.item(i);if(d.tagName==="LEGEND")return sy.call(s,"fieldset[disabled] *")?!0:!d.contains(o)}return!0}s=s.parentElement}return!1},lN=function(o,s){return!(s.disabled||PB(s)||JB(s,o)||$B(s)||eL(s))},rN=function(o,s){return!(FB(s)||Jk(s)<0||!lN(o,s))},tL=function(o){var s=parseInt(o.getAttribute("tabindex"),10);return!!(isNaN(s)||s>=0)},tA=function(o){var s=[],i=[];return o.forEach(function(d,f){var h=!!d.scopeParent,y=h?d.scopeParent:d,v=GB(y,h),x=h?tA(d.candidates):y;v===0?h?s.push.apply(s,x):s.push(y):i.push({documentOrder:f,tabIndex:v,item:d,isScope:h,content:x})}),i.sort(XB).reduce(function(d,f){return f.isScope?d.push.apply(d,f.content):d.push(f.content),d},[]).concat(s)},ex=function(o,s){s=s||{};var i;return s.getShadowRoot?i=kw([o],s.includeContainer,{filter:rN.bind(null,s),flatten:!1,getShadowRoot:s.getShadowRoot,shadowRootFilter:tL}):i=Fk(o,s.includeContainer,rN.bind(null,s)),tA(i)},nL=function(o,s){s=s||{};var i;return s.getShadowRoot?i=kw([o],s.includeContainer,{filter:lN.bind(null,s),flatten:!0,getShadowRoot:s.getShadowRoot}):i=Fk(o,s.includeContainer,lN.bind(null,s)),i},nA=function(o,s){if(s=s||{},!o)throw new Error("No node provided");return sy.call(o,Ow)===!1?!1:rN(s,o)};const by=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function aA(n,o){const s=ex(n,by()),i=s.length;if(i===0)return;const d=gr(sn(n)),f=s.indexOf(d),h=f===-1?o===1?0:i-1:f+o;return s[h]}function oC(n){return aA(sn(n).body,1)||n}function oA(n){return aA(sn(n).body,-1)||n}function lA(n,o){if(!n)return null;const s=ex(sn(n).body,by()),i=s.length;if(i===0)return null;const d=s.indexOf(n);if(d===-1)return null;const f=(d+o+i)%i;return s[f]}function rA(n){return lA(n,1)}function sA(n){return lA(n,-1)}function mp(n,o){const s=o||n.currentTarget,i=n.relatedTarget;return!i||!Ut(s,i)}function aL(n){ex(n,by()).forEach(s=>{s.dataset.tabindex=s.getAttribute("tabindex")||"",s.setAttribute("tabindex","-1")})}function qO(n){n.querySelectorAll("[data-tabindex]").forEach(s=>{const i=s.dataset.tabindex;delete s.dataset.tabindex,i?s.setAttribute("tabindex",i):s.removeAttribute("tabindex")})}const iA=S.forwardRef(function(o,s){const{className:i,disabled:d=!1,render:f,value:h,id:y,nativeButton:v=!0,...x}=o,{value:C,getTabPanelIdByValue:w,orientation:N}=_N(),{activateOnFocus:R,highlightedTabIndex:O,onTabActivation:j,setHighlightedTabIndex:D,tabsListElement:A}=wB(),z=vl(y),B=S.useMemo(()=>({disabled:d,id:z,value:h}),[d,z,h]),{compositeProps:U,compositeRef:L,index:k}=kk({metadata:B}),V=h===C,H=S.useRef(!1);Fe(()=>{if(H.current){H.current=!1;return}if(!(V&&k>-1&&O!==k))return;const ee=A;if(ee!=null){const oe=gr(sn(ee));if(oe&&Ut(ee,oe))return}d||D(k)},[V,k,O,D,d,A]);const{getButtonProps:K,buttonRef:Z}=Fs({disabled:d,native:v,focusableWhenDisabled:!0}),Q=w(h),G=S.useRef(!1),q=S.useRef(!1);function W(ee){V||d||j(h,vt(hs,ee.nativeEvent,void 0,{activationDirection:"none"}))}function te(ee){V||(k>-1&&!d&&D(k),!d&&R&&(!G.current||G.current&&q.current)&&j(h,vt(hs,ee.nativeEvent,void 0,{activationDirection:"none"})))}function Y(ee){if(V||d)return;G.current=!0;function oe(){G.current=!1,q.current=!1}(!ee.button||ee.button===0)&&(q.current=!0,sn(ee.currentTarget).addEventListener("pointerup",oe,{once:!0}))}return zt("button",o,{state:{disabled:d,active:V,orientation:N},ref:[s,Z,L],props:[U,{role:"tab","aria-controls":Q,"aria-selected":V,id:z,onClick:W,onFocus:te,onPointerDown:Y,[BN]:V?"":void 0,onKeyDownCapture(){H.current=!0}},x,K]})});process.env.NODE_ENV!=="production"&&(iA.displayName="TabsTab");const oL=[];function lC(n){S.useEffect(n,oL)}const cA=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(cA.displayName="CSPContext");const lL={disableStyleElements:!1};function rL(){return S.useContext(cA)??lL}function tx(n){return CN(19)?n:n?"true":void 0}let qv=(function(n){return n.startingStyle="data-starting-style",n.endingStyle="data-ending-style",n})({});const sL={[qv.startingStyle]:""},iL={[qv.endingStyle]:""},gs={transitionStatus(n){return n==="starting"?sL:n==="ending"?iL:null}},PS=null;let GO=globalThis.requestAnimationFrame;class cL{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=o=>{this.isScheduled=!1;const s=this.callbacks,i=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,i>0)for(let d=0;d<s.length;d+=1)s[d]?.(o)};request(o){const s=this.nextId;this.nextId+=1,this.callbacks.push(o),this.callbacksCount+=1;const i=process.env.NODE_ENV!=="production"&&GO!==requestAnimationFrame&&(GO=requestAnimationFrame,!0);return(!this.isScheduled||i)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),s}cancel(o){const s=o-this.startId;s<0||s>=this.callbacks.length||(this.callbacks[s]=null,this.callbacksCount-=1)}}const $S=new cL;class Ii{static create(){return new Ii}static request(o){return $S.request(o)}static cancel(o){return $S.cancel(o)}currentId=PS;request(o){this.cancel(),this.currentId=$S.request(()=>{this.currentId=PS,o()})}cancel=()=>{this.currentId!==PS&&($S.cancel(this.currentId),this.currentId=PS)};disposeEffect=()=>this.cancel}function rC(){const n=Qa(Ii.create).current;return lC(n.disposeEffect),n}function uu(n){return n==null?n:"current"in n?n.current:n}function uA(n,o=!1,s=!0){const i=rC();return Ke((d,f=null)=>{i.cancel();function h(){Bl.flushSync(d)}const y=uu(n);if(y==null)return;const v=y;if(typeof v.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)d();else{let x=function(){const w=qv.startingStyle;if(!v.hasAttribute(w)){i.request(C);return}const N=new MutationObserver(()=>{v.hasAttribute(w)||(N.disconnect(),C())});N.observe(v,{attributes:!0,attributeFilter:[w]}),f?.addEventListener("abort",()=>N.disconnect(),{once:!0})},C=function(){Promise.all(v.getAnimations().map(w=>w.finished)).then(()=>{f?.aborted||h()}).catch(()=>{const w=v.getAnimations();if(s){if(f?.aborted)return;h()}else w.length>0&&w.some(N=>N.pending||N.playState!=="finished")&&C()})};if(o){x();return}i.request(C)}})}function Ll(n){const{enabled:o=!0,open:s,ref:i,onComplete:d}=n,f=Ke(d),h=uA(i,s,!1);S.useEffect(()=>{if(!o)return;const y=new AbortController;return h(f,y.signal),()=>{y.abort()}},[o,s,f,h])}function xu(n,o=!1,s=!1){const[i,d]=S.useState(n&&o?"idle":void 0),[f,h]=S.useState(n);return n&&!f&&(h(!0),d("starting")),!n&&f&&i!=="ending"&&!s&&d("ending"),!n&&!f&&i==="ending"&&d(void 0),Fe(()=>{if(!n&&f&&i!=="ending"&&s){const y=Ii.request(()=>{d("ending")});return()=>{Ii.cancel(y)}}},[n,f,i,s]),Fe(()=>{if(!n||o)return;const y=Ii.request(()=>{d(void 0)});return()=>{Ii.cancel(y)}},[o,n]),Fe(()=>{if(!n||!o)return;n&&f&&i!=="idle"&&d("starting");const y=Ii.request(()=>{d("idle")});return()=>{Ii.cancel(y)}},[o,n,f,d,i]),S.useMemo(()=>({mounted:f,setMounted:h,transitionStatus:i}),[f,i])}let uL=(function(n){return n.index="data-index",n.activationDirection="data-activation-direction",n.orientation="data-orientation",n.hidden="data-hidden",n})({});const dL={...UN,...gs},dA=S.forwardRef(function(o,s){const{className:i,value:d,render:f,keepMounted:h=!1,...y}=o,{value:v,getTabIdByPanelValue:x,orientation:C,tabActivationDirection:w,registerMountedTabPanel:N,unregisterMountedTabPanel:R}=_N(),O=vl(),j=S.useMemo(()=>({id:O,value:d}),[O,d]),{ref:D,index:A}=eC({metadata:j}),z=d===v,{mounted:B,transitionStatus:U,setMounted:L}=xu(z),k=!B,V=x(d),H={hidden:k,orientation:C,tabActivationDirection:w,transitionStatus:U},K=S.useRef(null),Z=zt("div",o,{state:H,ref:[s,D,K],props:[{"aria-labelledby":V,hidden:k,id:O,role:"tabpanel",tabIndex:z?0:-1,inert:tx(!z),[uL.index]:A},y],stateAttributesMapping:dL});return Ll({open:z,ref:K,onComplete(){z||L(!1)}}),Fe(()=>{if(!(k&&!h)&&O!=null)return N(d,O),()=>{R(d,O)}},[k,h,d,O,N,R]),h||B?Z:null});process.env.NODE_ENV!=="production"&&(dA.displayName="TabsPanel");function fL(n){return n==null||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"}const ty="ArrowUp",cp="ArrowDown",Gv="ArrowLeft",ny="ArrowRight",nx="Home",ax="End",fA=new Set([Gv,ny]),mL=new Set([Gv,ny,nx,ax]),mA=new Set([ty,cp]),pL=new Set([ty,cp,nx,ax]),pA=new Set([...fA,...mA]),hL=new Set([...pA,nx,ax]),sC=new Set([ty,cp,Gv,ny,nx,ax]),hA="Shift",gL="Control",yL="Alt",bL="Meta",vL=new Set([hA,gL,yL,bL]);function xL(n){return aa(n)&&n.tagName==="INPUT"}function XO(n){return!!(xL(n)&&n.selectionStart!=null||aa(n)&&n.tagName==="TEXTAREA")}function PO(n,o,s,i){if(!n||!o||!o.scrollTo)return;let d=n.scrollLeft,f=n.scrollTop;const h=n.clientWidth<n.scrollWidth,y=n.clientHeight<n.scrollHeight;if(h&&i!=="vertical"){const v=$O(n,o,"left"),x=QS(n),C=QS(o);s==="ltr"&&(v+o.offsetWidth+C.scrollMarginRight>n.scrollLeft+n.clientWidth-x.scrollPaddingRight?d=v+o.offsetWidth+C.scrollMarginRight-n.clientWidth+x.scrollPaddingRight:v-C.scrollMarginLeft<n.scrollLeft+x.scrollPaddingLeft&&(d=v-C.scrollMarginLeft-x.scrollPaddingLeft)),s==="rtl"&&(v-C.scrollMarginRight<n.scrollLeft+x.scrollPaddingLeft?d=v-C.scrollMarginLeft-x.scrollPaddingLeft:v+o.offsetWidth+C.scrollMarginRight>n.scrollLeft+n.clientWidth-x.scrollPaddingRight&&(d=v+o.offsetWidth+C.scrollMarginRight-n.clientWidth+x.scrollPaddingRight))}if(y&&i!=="horizontal"){const v=$O(n,o,"top"),x=QS(n),C=QS(o);v-C.scrollMarginTop<n.scrollTop+x.scrollPaddingTop?f=v-C.scrollMarginTop-x.scrollPaddingTop:v+o.offsetHeight+C.scrollMarginBottom>n.scrollTop+n.clientHeight-x.scrollPaddingBottom&&(f=v+o.offsetHeight+C.scrollMarginBottom-n.clientHeight+x.scrollPaddingBottom)}n.scrollTo({left:d,top:f,behavior:"auto"})}function $O(n,o,s){const i=s==="left"?"offsetLeft":"offsetTop";let d=0;for(;o.offsetParent&&(d+=o[i],o.offsetParent!==n);)o=o.offsetParent;return d}function QS(n){const o=getComputedStyle(n);return{scrollMarginTop:parseFloat(o.scrollMarginTop)||0,scrollMarginRight:parseFloat(o.scrollMarginRight)||0,scrollMarginBottom:parseFloat(o.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(o.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(o.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(o.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(o.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(o.scrollPaddingLeft)||0}}const SL=[];function wL(n){const{itemSizes:o,cols:s=1,loopFocus:i=!0,dense:d=!1,orientation:f="both",direction:h,highlightedIndex:y,onHighlightedIndexChange:v,rootRef:x,enableHomeAndEndKeys:C=!1,stopEventPropagation:w=!1,disabledIndices:N,modifierKeys:R=SL}=n,[O,j]=S.useState(0),D=s>1,A=S.useRef(null),z=ps(A,x),B=S.useRef([]),U=S.useRef(!1),L=y??O,k=Ke((K,Z=!1)=>{if((v??j)(K),Z){const Q=B.current[K];PO(A.current,Q,h,f)}}),V=Ke(K=>{if(K.size===0||U.current)return;U.current=!0;const Z=Array.from(K.keys()),Q=Z.find(q=>q?.hasAttribute(BN))??null,G=Q?Z.indexOf(Q):-1;G!==-1&&k(G),PO(A.current,Q,h,f)}),H=S.useMemo(()=>({"aria-orientation":f==="both"?void 0:f,ref:z,onFocus(K){!A.current||!XO(K.target)||K.target.setSelectionRange(0,K.target.value.length??0)},onKeyDown(K){const Z=C?hL:pA;if(!Z.has(K.key)||CL(K,R)||!A.current)return;const G=h==="rtl",q=G?Gv:ny,W={horizontal:q,vertical:cp,both:q}[f],te=G?ny:Gv,Y={horizontal:te,vertical:ty,both:te}[f];if(XO(K.target)&&!fL(K.target)){const Ce=K.target.selectionStart,re=K.target.selectionEnd,he=K.target.value??"";if(Ce==null||K.shiftKey||Ce!==re||K.key!==Y&&Ce<he.length||K.key!==W&&Ce>0)return}let P=L;const F=gw(B,N),ee=oN(B,N);if(D){const Ce=o||Array.from({length:B.current.length},()=>({width:1,height:1})),re=$k(Ce,s,d),he=re.findIndex(Se=>Se!=null&&!lf(B,Se,N)),le=re.reduce((Se,ze,je)=>ze!=null&&!lf(B,ze,N)?je:Se,-1);P=re[Pk({current:re.map(Se=>Se?B.current[Se]:null)},{event:K,orientation:f,loopFocus:i,cols:s,disabledIndices:Zk([...N||B.current.map((Se,ze)=>lf(B,ze)?ze:void 0),void 0],re),minIndex:he,maxIndex:le,prevIndex:Qk(L>ee?F:L,Ce,re,s,K.key===cp?"bl":K.key===ny?"tr":"tl"),rtl:G})]}const oe={horizontal:[q],vertical:[cp],both:[q,cp]}[f],we={horizontal:[te],vertical:[ty],both:[te,ty]}[f],se=D?Z:{horizontal:C?mL:fA,vertical:C?pL:mA,both:Z}[f];C&&(K.key===nx?P=F:K.key===ax&&(P=ee)),P===L&&(oe.includes(K.key)||we.includes(K.key))&&(i&&P===ee&&oe.includes(K.key)?P=F:i&&P===F&&we.includes(K.key)?P=ee:P=Uo(B,{startingIndex:P,decrement:we.includes(K.key),disabledIndices:N})),P!==L&&!ey(B,P)&&(w&&K.stopPropagation(),se.has(K.key)&&K.preventDefault(),k(P,!0),queueMicrotask(()=>{B.current[P]?.focus()}))}}),[s,d,h,N,B,C,L,D,o,i,z,R,k,f,w]);return S.useMemo(()=>({props:H,highlightedIndex:L,onHighlightedIndexChange:k,elementsRef:B,disabledIndices:N,onMapChange:V,relayKeyboardEvent:H.onKeyDown}),[H,L,k,B,N,V])}function CL(n,o){for(const s of vL.values())if(!o.includes(s)&&n.getModifierState(s))return!0;return!1}function gA(n){const{render:o,className:s,refs:i=sf,props:d=sf,state:f=Fn,stateAttributesMapping:h,highlightedIndex:y,onHighlightedIndexChange:v,orientation:x,dense:C,itemSizes:w,loopFocus:N,cols:R,enableHomeAndEndKeys:O,onMapChange:j,stopEventPropagation:D=!0,rootRef:A,disabledIndices:z,modifierKeys:B,highlightItemOnHover:U=!1,tag:L="div",...k}=n,V=Jw(),{props:H,highlightedIndex:K,onHighlightedIndexChange:Z,elementsRef:Q,onMapChange:G,relayKeyboardEvent:q}=wL({itemSizes:w,cols:R,loopFocus:N,dense:C,orientation:x,highlightedIndex:y,onHighlightedIndexChange:v,rootRef:A,stopEventPropagation:D,enableHomeAndEndKeys:O,direction:V,disabledIndices:z,modifierKeys:B}),W=zt(L,n,{state:f,ref:i,props:[H,...d,k],stateAttributesMapping:h}),te=S.useMemo(()=>({highlightedIndex:K,onHighlightedIndexChange:Z,highlightItemOnHover:U,relayKeyboardEvent:q}),[K,Z,U,q]);return m.jsx(SN.Provider,{value:te,children:m.jsx(Ww,{elementsRef:Q,onMapChange:Y=>{j?.(Y),G(Y)},children:W})})}const yA=S.forwardRef(function(o,s){const{activateOnFocus:i=!1,className:d,loopFocus:f=!0,render:h,...y}=o,{getTabElementBySelectedValue:v,onValueChange:x,orientation:C,value:w,setTabMap:N,tabActivationDirection:R}=_N(),[O,j]=S.useState(0),[D,A]=S.useState(null),z=EL(w,C,D,v),B=Ke((V,H)=>{if(V!==w){const K=z(V);H.activationDirection=K,x(V,H)}}),U={orientation:C,tabActivationDirection:R},L={"aria-orientation":C==="vertical"?"vertical":void 0,role:"tablist"},k=S.useMemo(()=>({activateOnFocus:i,highlightedTabIndex:O,onTabActivation:B,setHighlightedTabIndex:j,tabsListElement:D,value:w}),[i,O,B,j,D,w]);return m.jsx(LN.Provider,{value:k,children:m.jsx(gA,{render:h,className:d,state:U,refs:[s,A],props:[L,y],stateAttributesMapping:UN,highlightedIndex:O,enableHomeAndEndKeys:!0,loopFocus:f,orientation:C,onHighlightedIndexChange:j,onMapChange:N,disabledIndices:sf})})});process.env.NODE_ENV!=="production"&&(yA.displayName="TabsList");function QO(n,o){const{left:s,top:i}=n.getBoundingClientRect(),{left:d,top:f}=o.getBoundingClientRect(),h=s-d,y=i-f;return{left:h,top:y}}function EL(n,o,s,i){const[d,f]=S.useState(null);return Fe(()=>{if(n==null||s==null){f(null);return}const h=i(n);if(h==null){f(null);return}const{left:y,top:v}=QO(h,s);f(o==="horizontal"?y:v)},[o,i,s,n]),S.useCallback(h=>{if(h===n)return"none";if(h==null)return f(null),"none";if(h!=null&&s!=null){const y=i(h);if(y!=null){const{left:v,top:x}=QO(y,s);if(d==null)return f(o==="horizontal"?v:x),"none";if(o==="horizontal"){if(v<d)return f(v),"left";if(v>d)return f(v),"right"}else{if(x<d)return f(x),"up";if(x>d)return f(x),"down"}}}return"none"},[i,o,d,s,n])}function NL({className:n,orientation:o="horizontal",...s}){return m.jsx(jk,{"data-slot":"tabs","data-orientation":o,className:$("group/tabs flex gap-2 data-horizontal:flex-col",n),...s})}const TL=Zv("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function ML({className:n,variant:o="default",...s}){return m.jsx(yA,{"data-slot":"tabs-list","data-variant":o,className:$(TL({variant:o}),n),...s})}function RL({className:n,...o}){return m.jsx(iA,{"data-slot":"tabs-trigger",className:$("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",n),...o})}function OL({className:n,...o}){return m.jsx(dA,{"data-slot":"tabs-content",className:$("flex-1 text-sm outline-none",n),...o})}const ZO={small:"text-xs",middle:"text-sm",large:"text-base"},jL=()=>m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M18 6 6 18"}),m.jsx("path",{d:"m6 6 12 12"})]}),DL=()=>m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M5 12h14"}),m.jsx("path",{d:"M12 5v14"})]}),bA=S.forwardRef((n,o)=>{const{activeKey:s,defaultActiveKey:i,items:d=[],type:f="line",size:h,tabPosition:y="top",onChange:v,onEdit:x,tabBarExtraContent:C,centered:w=!1,destroyInactiveTabPane:N=!1,className:R,style:O}=n,j=Ws(h),[D,A]=S.useState(i??d[0]?.key??""),z=s!==void 0,B=z?s:D,U=Q=>{z||A(Q),v?.(Q)},L=(Q,G)=>{Q.stopPropagation(),x?.(G,"remove")},k=Q=>{x?.(Q,"add")},V=y==="left"||y==="right"?"vertical":"horizontal",H=f==="line"?"line":"default",K=C&&typeof C=="object"&&"left"in C?C.left:null,Z=C&&typeof C=="object"&&"right"in C?C.right:S.isValidElement(C)||typeof C=="string"?C:null;return m.jsxs(NL,{ref:o,value:B,onValueChange:U,orientation:V,className:$(y==="bottom"&&"flex-col-reverse",y==="right"&&"flex-row-reverse",R),style:O,children:[m.jsxs("div",{"data-slot":"tabs-bar",className:$("flex items-center gap-2",V==="vertical"?"flex-col":"flex-row"),children:[K&&m.jsx("div",{"data-slot":"tabs-extra-left",className:"shrink-0",children:K}),m.jsxs(ML,{variant:H,className:$(w&&"mx-auto",f==="card"&&"bg-transparent gap-0.5",f==="editable-card"&&"bg-transparent gap-0.5",ZO[j]),children:[d.map(Q=>m.jsxs(RL,{value:Q.key,disabled:Q.disabled,className:$(ZO[j],f==="card"&&"rounded-t-lg rounded-b-none border border-b-0 border-border bg-muted/40 data-active:bg-background data-active:border-border",f==="editable-card"&&"rounded-t-lg rounded-b-none border border-b-0 border-border bg-muted/40 data-active:bg-background data-active:border-border"),children:[Q.icon&&m.jsx("span",{className:"mr-1 inline-flex items-center [&_svg]:size-4",children:Q.icon}),Q.label,f==="editable-card"&&Q.closable!==!1&&m.jsx("span",{className:"ml-1 inline-flex cursor-pointer rounded-sm p-0.5 opacity-60 hover:opacity-100 hover:bg-accent",onClick:G=>L(G,Q.key),role:"button","aria-label":"Remove tab",tabIndex:0,onKeyDown:G=>{(G.key==="Enter"||G.key===" ")&&(G.preventDefault(),x?.(Q.key,"remove"))},children:m.jsx(jL,{})})]},Q.key)),f==="editable-card"&&m.jsx("button",{type:"button","data-slot":"tabs-add-button",className:"ml-1 inline-flex h-7 w-7 items-center justify-center rounded-md border border-dashed border-border text-muted-foreground hover:text-foreground hover:border-foreground/30 transition-colors",onClick:k,"aria-label":"Add tab",children:m.jsx(DL,{})})]}),Z&&m.jsx("div",{"data-slot":"tabs-extra-right",className:"shrink-0 ml-auto",children:Z})]}),d.map(Q=>m.jsx(OL,{value:Q.key,className:$(N&&B!==Q.key&&"hidden"),children:Q.children},Q.key))]})});bA.displayName="Tabs";function kL(n){return zt(n.defaultTagName??"div",n,n)}function AL({className:n,...o}){return m.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:$(n),...o})}function zL({className:n,...o}){return m.jsx("ol",{"data-slot":"breadcrumb-list",className:$("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground",n),...o})}function _L({className:n,...o}){return m.jsx("li",{"data-slot":"breadcrumb-item",className:$("inline-flex items-center gap-1",n),...o})}function KO({className:n,render:o,...s}){return kL({defaultTagName:"a",props:$i({className:$("transition-colors hover:text-foreground",n)},s),render:o,state:{slot:"breadcrumb-link"}})}function FO({className:n,...o}){return m.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:$("font-normal text-foreground",n),...o})}function UL({children:n,className:o,...s}){return m.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:$("[&>svg]:size-3.5",o),...s,children:n??m.jsx(xr,{})})}const GN=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(GN.displayName="MenuPositionerContext");function vA(n){const o=S.useContext(GN);if(o===void 0&&!n)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>.":Nn(33));return o}const XN=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(XN.displayName="MenuRootContext");function wp(n){const o=S.useContext(XN);if(o===void 0&&!n)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>.":Nn(36));return o}let up=(function(n){return n.open="data-open",n.closed="data-closed",n[n.startingStyle=qv.startingStyle]="startingStyle",n[n.endingStyle=qv.endingStyle]="endingStyle",n.anchorHidden="data-anchor-hidden",n.side="data-side",n.align="data-align",n})({}),Aw=(function(n){return n.popupOpen="data-popup-open",n.pressed="data-pressed",n})({});const BL={[Aw.popupOpen]:""},LL={[Aw.popupOpen]:"",[Aw.pressed]:""},VL={[up.open]:""},HL={[up.closed]:""},IL={[up.anchorHidden]:""},PN={open(n){return n?BL:null}},zw={open(n){return n?LL:null}},Js={open(n){return n?VL:HL},anchorHidden(n){return n?IL:null}},xA=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(xA.displayName="ContextMenuRootContext");function iC(n=!0){const o=S.useContext(xA);if(o===void 0&&!n)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within <ContextMenu.Root>.":Nn(25));return o}function YL(n){const{closeOnClick:o,highlighted:s,id:i,nodeId:d,store:f,itemRef:h,itemMetadata:y}=n,{events:v}=f.useState("floatingTreeRoot"),x=iC(!0),C=x!==void 0;return S.useMemo(()=>({id:i,role:"menuitem",tabIndex:s?0:-1,onMouseMove(w){d&&v.emit("itemhover",{nodeId:d,target:w.currentTarget})},onClick(w){o&&v.emit("close",{domEvent:w,reason:Uv})},onMouseUp(w){if(x){const N=x.initialCursorPointRef.current;if(x.initialCursorPointRef.current=null,C&&N&&Math.abs(w.clientX-N.x)<=1&&Math.abs(w.clientY-N.y)<=1)return}h.current&&f.context.allowMouseUpTriggerRef.current&&(!C||w.button===2)&&(!y||y.type==="regular-item")&&h.current.click()}}),[o,s,i,v,d,f,h,x,C,y])}const qL={type:"regular-item"};function GL(n){const{closeOnClick:o,disabled:s=!1,highlighted:i,id:d,store:f,nativeButton:h,itemMetadata:y,nodeId:v}=n,x=S.useRef(null),{getButtonProps:C,buttonRef:w}=Fs({disabled:s,focusableWhenDisabled:!0,native:h}),N=YL({closeOnClick:o,highlighted:i,id:d,nodeId:v,store:f,itemRef:x,itemMetadata:y}),R=S.useCallback(j=>$i(N,{onMouseEnter(){y.type==="submenu-trigger"&&y.setActive()},onKeyUp(D){D.key===" "&&f.context.typingRef.current&&D.preventBaseUIHandler()}},j,C),[N,C,f,y]),O=ps(x,w);return S.useMemo(()=>({getItemProps:R,itemRef:O}),[R,O])}const $N=S.createContext(void 0);process.env.NODE_ENV!=="production"&&($N.displayName="MenuGroupContext");function XL(){const n=S.useContext($N);if(n===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: MenuGroupRootContext is missing. Menu group parts must be used within <Menu.Group>.":Nn(31));return n}const SA=S.forwardRef(function(o,s){const{render:i,className:d,...f}=o,[h,y]=S.useState(void 0),v=S.useMemo(()=>({setLabelId:y}),[y]),x=zt("div",o,{ref:s,props:{role:"group","aria-labelledby":h,...f}});return m.jsx($N.Provider,{value:v,children:x})});process.env.NODE_ENV!=="production"&&(SA.displayName="MenuGroup");const wA=S.forwardRef(function(o,s){const{className:i,render:d,id:f,...h}=o,y=vl(f),{setLabelId:v}=XL();return Fe(()=>(v(y),()=>{v(void 0)}),[v,y]),zt("div",o,{ref:s,props:{id:y,role:"presentation",...h}})});process.env.NODE_ENV!=="production"&&(wA.displayName="MenuGroupLabel");const CA=S.forwardRef(function(o,s){const{render:i,className:d,id:f,label:h,nativeButton:y=!1,disabled:v=!1,closeOnClick:x=!0,...C}=o,w=eC({label:h}),N=vA(!0),R=vl(f),{store:O}=wp(),j=O.useState("isActive",w.index),D=O.useState("itemProps"),{getItemProps:A,itemRef:z}=GL({closeOnClick:x,disabled:v,highlighted:j,id:R,store:O,nativeButton:y,nodeId:N?.nodeId,itemMetadata:qL});return zt("div",o,{state:{disabled:v,highlighted:j},props:[D,C,A],ref:[z,s,w.ref]})});process.env.NODE_ENV!=="production"&&(CA.displayName="MenuItem");const Sv=0;class Ks{static create(){return new Ks}currentId=Sv;start(o,s){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Sv,s()},o)}isStarted(){return this.currentId!==Sv}clear=()=>{this.currentId!==Sv&&(clearTimeout(this.currentId),this.currentId=Sv)};disposeEffect=()=>this.clear}function $a(){const n=Qa(Ks.create).current;return lC(n.disposeEffect),n}function ho(n){const o=Qa(PL,n).current;return o.next=n,Fe(o.effect),o}function PL(n){const o={current:n,next:n,effect:()=>{o.current=o.next}};return o}function EA(){const n=new Map;return{emit(o,s){n.get(o)?.forEach(i=>i(s))},on(o,s){n.has(o)||n.set(o,new Set),n.get(o).add(s)},off(o,s){n.get(o)?.delete(s)}}}class QN{nodesRef={current:[]};events=EA();addNode(o){this.nodesRef.current.push(o)}removeNode(o){const s=this.nodesRef.current.findIndex(i=>i===o);s!==-1&&this.nodesRef.current.splice(s,1)}}const ZN=S.createContext(null);process.env.NODE_ENV!=="production"&&(ZN.displayName="FloatingNodeContext");const KN=S.createContext(null);process.env.NODE_ENV!=="production"&&(KN.displayName="FloatingTreeContext");const Fi=()=>S.useContext(ZN)?.id||null,gf=n=>{const o=S.useContext(KN);return n??o};function FN(n){const o=Sp(),s=gf(n),i=Fi();return Fe(()=>{if(!o)return;const d={id:o,parentId:i};return s?.addNode(d),()=>{s?.removeNode(d)}},[s,o,i]),o}function NA(n){const{children:o,id:s}=n,i=Fi();return m.jsx(ZN.Provider,{value:S.useMemo(()=>({id:s,parentId:i}),[s,i]),children:o})}function TA(n){const{children:o,externalTree:s}=n,i=Qa(()=>s??new QN).current;return m.jsx(KN.Provider,{value:i,children:o})}function iy(n){return`data-base-ui-${n}`}function yw(n,o,s){if(s&&!bp(s))return 0;if(typeof n=="number")return n;if(typeof n=="function"){const i=n();return typeof i=="number"?i:i?.[o]}return n?.[o]}const WN=S.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Ks,currentIdRef:{current:null},currentContextRef:{current:null}});process.env.NODE_ENV!=="production"&&(WN.displayName="FloatingDelayGroupContext");function $L(n){const{children:o,delay:s,timeoutMs:i=0}=n,d=S.useRef(s),f=S.useRef(s),h=S.useRef(null),y=S.useRef(null),v=$a();return m.jsx(WN.Provider,{value:S.useMemo(()=>({hasProvider:!0,delayRef:d,initialDelayRef:f,currentIdRef:h,timeoutMs:i,currentContextRef:y,timeout:v}),[i,v]),children:o})}function QL(n,o={open:!1}){const s="rootStore"in n?n.rootStore:n,i=s.useState("floatingId"),{open:d}=o,f=S.useContext(WN),{currentIdRef:h,delayRef:y,timeoutMs:v,initialDelayRef:x,currentContextRef:C,hasProvider:w,timeout:N}=f,[R,O]=S.useState(!1);return Fe(()=>{function j(){O(!1),C.current?.setIsInstantPhase(!1),h.current=null,C.current=null,y.current=x.current}if(h.current&&!d&&h.current===i){if(O(!1),v){const D=i;return N.start(v,()=>{s.select("open")||h.current&&h.current!==D||j()}),()=>{N.clear()}}j()}},[d,i,h,y,v,x,C,N,s]),Fe(()=>{if(!d)return;const j=C.current,D=h.current;N.clear(),C.current={onOpenChange:s.setOpen,setIsInstantPhase:O},h.current=i,y.current={open:0,close:yw(x.current,"close")},D!==null&&D!==i?(O(!0),j?.setIsInstantPhase(!0),j?.onOpenChange(!1,vt(hs))):(O(!1),j?.setIsInstantPhase(!1))},[d,i,s,h,y,v,x,C,N]),Fe(()=>()=>{C.current=null},[C]),S.useMemo(()=>({hasProvider:w,delayRef:y,isInstantPhase:R}),[w,y,R])}const MA={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},vy={...MA,position:"fixed",top:0,left:0},cC={...MA,position:"absolute"},bu=S.forwardRef(function(o,s){const[i,d]=S.useState();Fe(()=>{Bk&&d("button")},[]);const f={tabIndex:0,role:i};return m.jsx("span",{...o,ref:s,style:vy,"aria-hidden":i?void 0:!0,...f,"data-base-ui-focus-guard":""})});process.env.NODE_ENV!=="production"&&(bu.displayName="FocusGuard");let WO=0;function Bv(n,o={}){const{preventScroll:s=!1,cancelPrevious:i=!0,sync:d=!1}=o;i&&cancelAnimationFrame(WO);const f=()=>n?.focus({preventScroll:s});d?f():WO=requestAnimationFrame(f)}const ay={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function JO(n){return n==="inert"?ay.inert:n==="aria-hidden"?ay["aria-hidden"]:ay.none}let ZS=new WeakSet,KS={},s2=0;const RA=n=>n&&(n.host||RA(n.parentNode)),ZL=(n,o)=>o.map(s=>{if(n.contains(s))return s;const i=RA(s);return n.contains(i)?i:null}).filter(s=>s!=null);function KL(n,o,s,i){const d="data-base-ui-inert",f=i?"inert":s?"aria-hidden":null,h=ZL(o,n),y=new Set,v=new Set(h),x=[];KS[d]||(KS[d]=new WeakMap);const C=KS[d];h.forEach(w),N(o),y.clear();function w(R){!R||y.has(R)||(y.add(R),R.parentNode&&w(R.parentNode))}function N(R){!R||v.has(R)||[].forEach.call(R.children,O=>{if(df(O)!=="script")if(y.has(O))N(O);else{const j=f?O.getAttribute(f):null,D=j!==null&&j!=="false",A=JO(f),z=(A.get(O)||0)+1,B=(C.get(O)||0)+1;A.set(O,z),C.set(O,B),x.push(O),z===1&&D&&ZS.add(O),B===1&&O.setAttribute(d,""),!D&&f&&O.setAttribute(f,f==="inert"?"":"true")}})}return s2+=1,()=>{x.forEach(R=>{const O=JO(f),D=(O.get(R)||0)-1,A=(C.get(R)||0)-1;O.set(R,D),C.set(R,A),D||(!ZS.has(R)&&f&&R.removeAttribute(f),ZS.delete(R)),A||R.removeAttribute(d)}),s2-=1,s2||(ay.inert=new WeakMap,ay["aria-hidden"]=new WeakMap,ay.none=new WeakMap,ZS=new WeakSet,KS={})}}function FL(n,o=!1,s=!1){const i=sn(n[0]).body;return KL(n.concat(Array.from(i.querySelectorAll("[aria-live]"))),i,o,s)}const JN=S.createContext(null);process.env.NODE_ENV!=="production"&&(JN.displayName="PortalContext");const OA=()=>S.useContext(JN),WL=iy("portal");function jA(n={}){const{ref:o,container:s,componentProps:i=Fn,elementProps:d}=n,f=Sp(),y=OA()?.portalNode,[v,x]=S.useState(null),[C,w]=S.useState(null),N=Ke(D=>{D!==null&&w(D)}),R=S.useRef(null);Fe(()=>{if(s===null){R.current&&(R.current=null,w(null),x(null));return}if(f==null)return;const D=(s&&(vN(s)?s:s.current))??y??document.body;if(D==null){R.current&&(R.current=null,w(null),x(null));return}R.current!==D&&(R.current=D,w(null),x(D))},[s,y,f]);const O=zt("div",i,{ref:[o,N],props:[{id:f,[WL]:""},d]});return{portalNode:C,portalSubtree:v&&O?Bl.createPortal(O,v):null}}const ox=S.forwardRef(function(o,s){const{children:i,container:d,className:f,render:h,renderGuards:y,...v}=o,{portalNode:x,portalSubtree:C}=jA({container:d,ref:s,componentProps:o,elementProps:v}),w=S.useRef(null),N=S.useRef(null),R=S.useRef(null),O=S.useRef(null),[j,D]=S.useState(null),A=j?.modal,z=j?.open,B=typeof y=="boolean"?y:!!j&&!j.modal&&j.open&&!!x;S.useEffect(()=>{if(!x||A)return;function L(k){x&&k.relatedTarget&&mp(k)&&(k.type==="focusin"?qO:aL)(x)}return x.addEventListener("focusin",L,!0),x.addEventListener("focusout",L,!0),()=>{x.removeEventListener("focusin",L,!0),x.removeEventListener("focusout",L,!0)}},[x,A]),S.useEffect(()=>{!x||z||qO(x)},[z,x]);const U=S.useMemo(()=>({beforeOutsideRef:w,afterOutsideRef:N,beforeInsideRef:R,afterInsideRef:O,portalNode:x,setFocusManagerState:D}),[x]);return m.jsxs(S.Fragment,{children:[C,m.jsxs(JN.Provider,{value:U,children:[B&&x&&m.jsx(bu,{"data-type":"outside",ref:w,onFocus:L=>{if(mp(L,x))R.current?.focus();else{const k=j?j.domReference:null;oA(k)?.focus()}}}),B&&x&&m.jsx("span",{"aria-owns":x.id,style:sU}),x&&Bl.createPortal(i,x),B&&x&&m.jsx(bu,{"data-type":"outside",ref:N,onFocus:L=>{if(mp(L,x))O.current?.focus();else{const k=j?j.domReference:null;oC(k)?.focus(),j?.closeOnFocusOut&&j?.onOpenChange(!1,vt(Zi,L.nativeEvent))}}})]})]})});process.env.NODE_ENV!=="production"&&(ox.displayName="FloatingPortal");function JL(n,o){const s=wa(n.target);return n instanceof s.KeyboardEvent?"keyboard":n instanceof s.FocusEvent?o||"keyboard":"pointerType"in n?n.pointerType||"keyboard":"touches"in n?"touch":n instanceof s.MouseEvent?o||(n.detail===0?"keyboard":"mouse"):""}const ej=20;let tf=[];function eT(){tf=tf.filter(n=>n.deref()?.isConnected)}function eV(n){eT(),n&&df(n)!=="body"&&(tf.push(new WeakRef(n)),tf.length>ej&&(tf=tf.slice(-ej)))}function i2(){return eT(),tf[tf.length-1]?.deref()}function tV(n){if(!n)return null;const o=by();return nA(n,o)?n:ex(n,o)[0]||n}function nV(n){return!n||!n.isConnected?!1:typeof n.checkVisibility=="function"?n.checkVisibility():br(n).display!=="none"}function tj(n,o){if(!o.current.includes("floating")&&!n.getAttribute("role")?.includes("dialog"))return;const s=by(),d=nL(n,s).filter(h=>{const y=h.getAttribute("data-tabindex")||"";return nA(h,s)||h.hasAttribute("data-tabindex")&&!y.startsWith("-")}),f=n.getAttribute("tabindex");o.current.includes("floating")||d.length===0?f!=="0"&&n.setAttribute("tabindex","0"):(f!=="-1"||n.hasAttribute("data-tabindex")&&n.getAttribute("data-tabindex")!=="-1")&&(n.setAttribute("tabindex","-1"),n.setAttribute("data-tabindex","-1"))}function uC(n){const{context:o,children:s,disabled:i=!1,initialFocus:d=!0,returnFocus:f=!0,restoreFocus:h=!1,modal:y=!0,closeOnFocusOut:v=!0,openInteractionType:x="",nextFocusableElement:C,previousFocusableElement:w,beforeContentFocusGuardRef:N,externalTree:R}=n,O="rootStore"in o?o.rootStore:o,j=O.useState("open"),D=O.useState("domReferenceElement"),A=O.useState("floatingElement"),{events:z,dataRef:B}=O.context,U=Ke(()=>B.current.floatingContext?.nodeId),L=d===!1,k=tN(D)&&L,V=S.useRef(["content"]),H=ho(d),K=ho(f),Z=ho(x),Q=gf(R),G=OA(),q=S.useRef(null),W=S.useRef(null),te=S.useRef(!1),Y=S.useRef(!1),P=S.useRef(!1),F=S.useRef(-1),ee=S.useRef(""),oe=S.useRef(""),we=S.useRef(null),se=S.useRef(null),Ce=ps(we,N,G?.beforeInsideRef),re=ps(se,G?.afterInsideRef),he=$a(),le=$a(),Se=rC(),ze=G!=null,je=Yv(A),ve=Ke((ae=je)=>ae?ex(ae,by()):[]),fe=Ke(ae=>{const ue=ve(ae);return V.current.map(()=>ue).filter(Boolean).flat()});S.useEffect(()=>{if(i||!y)return;function ae(be){be.key==="Tab"&&Ut(je,gr(sn(je)))&&ve().length===0&&!k&&Po(be)}const ue=sn(je);return ue.addEventListener("keydown",ae),()=>{ue.removeEventListener("keydown",ae)}},[i,D,je,y,V,k,ve,fe]),S.useEffect(()=>{if(i||!j)return;const ae=sn(je);function ue(){P.current=!1}function be(Oe){const de=bl(Oe),Me=Ut(A,de)||Ut(D,de)||Ut(G?.portalNode,de);P.current=!Me,oe.current=Oe.pointerType||"keyboard",de?.closest(`[${ID}]`)&&(Y.current=!0)}function ie(){oe.current="keyboard"}return ae.addEventListener("pointerdown",be,!0),ae.addEventListener("pointerup",ue,!0),ae.addEventListener("pointercancel",ue,!0),ae.addEventListener("keydown",ie,!0),()=>{ae.removeEventListener("pointerdown",be,!0),ae.removeEventListener("pointerup",ue,!0),ae.removeEventListener("pointercancel",ue,!0),ae.removeEventListener("keydown",ie,!0)}},[i,A,D,je,j,G]),S.useEffect(()=>{if(i||!v)return;const ae=sn(je);function ue(){Y.current=!0,le.start(0,()=>{Y.current=!1})}function be(Re){const De=bl(Re),We=ve().indexOf(De);We!==-1&&(F.current=We)}function ie(Re){const De=Re.relatedTarget,Ie=Re.currentTarget,We=bl(Re);queueMicrotask(()=>{const $e=U(),st=O.context.triggerElements,nn=De?.hasAttribute(iy("focus-guard"))&&[we.current,se.current,G?.beforeInsideRef.current,G?.afterInsideRef.current,G?.beforeOutsideRef.current,G?.afterOutsideRef.current,uu(w),uu(C)].includes(De),ln=!(Ut(D,De)||Ut(A,De)||Ut(De,A)||Ut(G?.portalNode,De)||De!=null&&st.hasElement(De)||st.hasMatchingElement(Tt=>Ut(Tt,De))||nn||Q&&(fp(Q.nodesRef.current,$e).find(Tt=>Ut(Tt.context?.elements.floating,De)||Ut(Tt.context?.elements.domReference,De))||VO(Q.nodesRef.current,$e).find(Tt=>[Tt.context?.elements.floating,Yv(Tt.context?.elements.floating)].includes(De)||Tt.context?.elements.domReference===De)));if(Ie===D&&je&&tj(je,V),h&&Ie!==D&&!nV(We)&&gr(ae)===ae.body){if(aa(je)&&(je.focus(),h==="popup")){Se.request(()=>{je.focus()});return}const Tt=F.current,Lt=ve(),Kt=Lt[Tt]||Lt[Lt.length-1]||je;aa(Kt)&&Kt.focus()}if(B.current.insideReactTree){B.current.insideReactTree=!1;return}(k||!y)&&De&&ln&&!Y.current&&(k||De!==i2())&&(te.current=!0,O.setOpen(!1,vt(Zi,Re)))})}function Oe(){P.current||(B.current.insideReactTree=!0,he.start(0,()=>{B.current.insideReactTree=!1}))}const de=aa(D)?D:null,Me=[];if(!(!A&&!de))return de&&(de.addEventListener("focusout",ie),de.addEventListener("pointerdown",ue),Me.push(()=>{de.removeEventListener("focusout",ie),de.removeEventListener("pointerdown",ue)})),A&&(A.addEventListener("focusin",be),A.addEventListener("focusout",ie),G&&(A.addEventListener("focusout",Oe,!0),Me.push(()=>{A.removeEventListener("focusout",Oe,!0)})),Me.push(()=>{A.removeEventListener("focusin",be),A.removeEventListener("focusout",ie)})),()=>{Me.forEach(Re=>{Re()})}},[i,D,A,je,y,Q,G,O,v,h,ve,k,U,V,B,he,le,Se,C,w]),S.useEffect(()=>{if(i||!A||!j)return;const ae=Array.from(G?.portalNode?.querySelectorAll(`[${iy("portal")}]`)||[]),be=(Q?VO(Q.nodesRef.current,U()):[]).find(Oe=>tN(Oe.context?.elements.domReference||null))?.context?.elements.domReference,ie=[A,be,...ae,q.current,W.current,we.current,se.current,G?.beforeOutsideRef.current,G?.afterOutsideRef.current,uu(w),uu(C),k?D:null].filter(Oe=>Oe!=null);return FL(ie,y||k)},[j,i,D,A,y,V,G,k,Q,U,C,w]),Fe(()=>{if(!j||i||!aa(je))return;const ae=sn(je),ue=gr(ae);queueMicrotask(()=>{const be=fe(je),ie=H.current,Oe=typeof ie=="function"?ie(Z.current||""):ie;if(Oe===void 0||Oe===!1)return;let de;Oe===!0||Oe===null?de=be[0]||je:de=uu(Oe),de=de||be[0]||je,!Ut(je,ue)&&Bv(de,{preventScroll:de===je})})},[i,j,je,L,fe,H,Z]),Fe(()=>{if(i||!je)return;const ae=sn(je),ue=gr(ae);eV(ue);function be(de){if(de.open||(ee.current=JL(de.nativeEvent,oe.current)),de.reason===ao&&de.nativeEvent.type==="mouseleave"&&(te.current=!0),de.reason===tC)if(de.nested)te.current=!1;else if(Yk(de.nativeEvent)||qk(de.nativeEvent))te.current=!1;else{let Me=!1;document.createElement("div").focus({get preventScroll(){return Me=!0,!1}}),Me?te.current=!1:te.current=!0}}z.on("openchange",be);const ie=ae.createElement("span");ie.setAttribute("tabindex","-1"),ie.setAttribute("aria-hidden","true"),Object.assign(ie.style,vy),ze&&D&&D.insertAdjacentElement("afterend",ie);function Oe(){const de=K.current;let Me=typeof de=="function"?de(ee.current):de;if(Me===void 0||Me===!1)return null;if(Me===null&&(Me=!0),typeof Me=="boolean"){const De=D||i2();return De&&De.isConnected?De:ie}const Re=D||i2()||ie;return uu(Me)||Re}return()=>{z.off("openchange",be);const de=gr(ae),Me=Ut(A,de)||Q&&fp(Q.nodesRef.current,U(),!1).some(De=>Ut(De.context?.elements.floating,de)),Re=Oe();queueMicrotask(()=>{const De=tV(Re),Ie=typeof K.current!="boolean";K.current&&!te.current&&aa(De)&&(!(!Ie&&De!==de&&de!==ae.body)||Me)&&De.focus({preventScroll:!0}),ie.remove(),te.current=!1})}},[i,A,je,K,B,z,Q,ze,D,U]),Fe(()=>{if(!VN||j||!A)return;const ae=gr(sn(A));!aa(ae)||!aC(ae)||Ut(A,ae)&&ae.blur()},[j,A]),Fe(()=>{if(!(i||!G))return G.setFocusManagerState({modal:y,closeOnFocusOut:v,open:j,onOpenChange:O.setOpen,domReference:D}),()=>{G.setFocusManagerState(null)}},[i,G,y,j,O,v,D]),Fe(()=>{if(!(i||!je))return tj(je,V),()=>{queueMicrotask(eT)}},[i,je,V]);const ce=!i&&(y?!k:!0)&&(ze||y);return m.jsxs(S.Fragment,{children:[ce&&m.jsx(bu,{"data-type":"inside",ref:Ce,onFocus:ae=>{if(y){const ue=fe();Bv(ue[ue.length-1])}else G?.portalNode&&(te.current=!1,mp(ae,G.portalNode)?oC(D)?.focus():uu(w??G.beforeOutsideRef)?.focus())}}),s,ce&&m.jsx(bu,{"data-type":"inside",ref:re,onFocus:ae=>{y?Bv(fe()[0]):G?.portalNode&&(v&&(te.current=!0),mp(ae,G.portalNode)?oA(D)?.focus():uu(C??G.afterOutsideRef)?.focus())}})]})}function tT(n,o={}){const s="rootStore"in n?n.rootStore:n,i=s.context.dataRef,{enabled:d=!0,event:f="click",toggle:h=!0,ignoreMouse:y=!1,stickIfOpen:v=!0,touchOpenDelay:x=0,reason:C=gu}=o,w=S.useRef(void 0),N=rC(),R=$a(),O=S.useMemo(()=>({onPointerDown(j){w.current=j.pointerType},onMouseDown(j){const D=w.current,A=j.nativeEvent,z=s.select("open");if(j.button!==0||f==="click"||bp(D,!0)&&y)return;const B=i.current.openEvent,U=B?.type,L=s.select("domReferenceElement")!==j.currentTarget,k=z&&L||!(z&&h&&(!(B&&v)||U==="click"||U==="mousedown"));if(aC(A.target)){const H=vt(C,A,A.target);k&&D==="touch"&&x>0?R.start(x,()=>{s.setOpen(!0,H)}):s.setOpen(k,H);return}const V=j.currentTarget;N.request(()=>{const H=vt(C,A,V);k&&D==="touch"&&x>0?R.start(x,()=>{s.setOpen(!0,H)}):s.setOpen(k,H)})},onClick(j){if(f==="mousedown-only")return;const D=w.current;if(f==="mousedown"&&D){w.current=void 0;return}if(bp(D,!0)&&y)return;const A=s.select("open"),z=i.current.openEvent,B=s.select("domReferenceElement")!==j.currentTarget,U=A&&B||!(A&&h&&(!(z&&v)||Gk(z))),L=vt(C,j.nativeEvent,j.currentTarget);U&&D==="touch"&&x>0?R.start(x,()=>{s.setOpen(!0,L)}):s.setOpen(U,L)},onKeyDown(){w.current=void 0}}),[i,f,y,s,v,h,N,R,x,C]);return S.useMemo(()=>d?{reference:O}:Fn,[d,O])}function aV(n,o){let s=null,i=null,d=!1;return{contextElement:n||void 0,getBoundingClientRect(){const f=n?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},h=o.axis==="x"||o.axis==="both",y=o.axis==="y"||o.axis==="both",v=["mouseenter","mousemove"].includes(o.dataRef.current.openEvent?.type||"")&&o.pointerType!=="touch";let x=f.width,C=f.height,w=f.x,N=f.y;return s==null&&o.x&&h&&(s=f.x-o.x),i==null&&o.y&&y&&(i=f.y-o.y),w-=s||0,N-=i||0,x=0,C=0,!d||v?(x=o.axis==="y"?f.width:0,C=o.axis==="x"?f.height:0,w=h&&o.x!=null?o.x:w,N=y&&o.y!=null?o.y:N):d&&!v&&(C=o.axis==="x"?f.height:C,x=o.axis==="y"?f.width:x),d=!0,{width:x,height:C,x:w,y:N,top:N,right:w+x,bottom:N+C,left:w}}}}function nj(n){return n!=null&&n.clientX!=null}function oV(n,o={}){const s="rootStore"in n?n.rootStore:n,i=s.useState("open"),d=s.useState("floatingElement"),f=s.useState("domReferenceElement"),h=s.context.dataRef,{enabled:y=!0,axis:v="both"}=o,x=S.useRef(!1),C=S.useRef(null),[w,N]=S.useState(),[R,O]=S.useState([]),j=Ke((U,L,k)=>{x.current||h.current.openEvent&&!nj(h.current.openEvent)||s.set("positionReference",aV(k??f,{x:U,y:L,axis:v,dataRef:h,pointerType:w}))}),D=Ke(U=>{i?C.current||O([]):j(U.clientX,U.clientY,U.currentTarget)}),A=bp(w)?d:i,z=S.useCallback(()=>{if(!A||!y)return;const U=wa(d);function L(k){const V=bl(k);Ut(d,V)?(U.removeEventListener("mousemove",L),C.current=null):j(k.clientX,k.clientY)}if(!h.current.openEvent||nj(h.current.openEvent)){U.addEventListener("mousemove",L);const k=()=>{U.removeEventListener("mousemove",L),C.current=null};return C.current=k,k}s.set("positionReference",f)},[A,y,d,h,f,s,j]);S.useEffect(()=>z(),[z,R]),S.useEffect(()=>{y&&!d&&(x.current=!1)},[y,d]),S.useEffect(()=>{!y&&i&&(x.current=!0)},[y,i]);const B=S.useMemo(()=>{function U(L){N(L.pointerType)}return{onPointerDown:U,onPointerEnter:U,onMouseMove:D,onMouseEnter:D}},[D]);return S.useMemo(()=>y?{reference:B,trigger:B}:{},[y,B])}function aj(n,o,s){let{reference:i,floating:d}=n;const f=ms(o),h=qN(o),y=YN(h),v=Ul(o),x=f==="y",C=i.x+i.width/2-d.width/2,w=i.y+i.height/2-d.height/2,N=i[y]/2-d[y]/2;let R;switch(v){case"top":R={x:C,y:i.y-d.height};break;case"bottom":R={x:C,y:i.y+i.height};break;case"right":R={x:i.x+i.width,y:w};break;case"left":R={x:i.x-d.width,y:w};break;default:R={x:i.x,y:i.y}}switch(hf(o)){case"start":R[h]-=N*(s&&x?-1:1);break;case"end":R[h]+=N*(s&&x?-1:1);break}return R}async function lV(n,o){var s;o===void 0&&(o={});const{x:i,y:d,platform:f,rects:h,elements:y,strategy:v}=n,{boundary:x="clippingAncestors",rootBoundary:C="viewport",elementContext:w="floating",altBoundary:N=!1,padding:R=0}=yu(o,n),O=Xk(R),D=y[N?w==="floating"?"reference":"floating":w],A=Rw(await f.getClippingRect({element:(s=await(f.isElement==null?void 0:f.isElement(D)))==null||s?D:D.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(y.floating)),boundary:x,rootBoundary:C,strategy:v})),z=w==="floating"?{x:i,y:d,width:h.floating.width,height:h.floating.height}:h.reference,B=await(f.getOffsetParent==null?void 0:f.getOffsetParent(y.floating)),U=await(f.isElement==null?void 0:f.isElement(B))?await(f.getScale==null?void 0:f.getScale(B))||{x:1,y:1}:{x:1,y:1},L=Rw(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:y,rect:z,offsetParent:B,strategy:v}):z);return{top:(A.top-L.top+O.top)/U.y,bottom:(L.bottom-A.bottom+O.bottom)/U.y,left:(A.left-L.left+O.left)/U.x,right:(L.right-A.right+O.right)/U.x}}const rV=50,sV=async(n,o,s)=>{const{placement:i="bottom",strategy:d="absolute",middleware:f=[],platform:h}=s,y=h.detectOverflow?h:{...h,detectOverflow:lV},v=await(h.isRTL==null?void 0:h.isRTL(o));let x=await h.getElementRects({reference:n,floating:o,strategy:d}),{x:C,y:w}=aj(x,i,v),N=i,R=0;const O={};for(let j=0;j<f.length;j++){const D=f[j];if(!D)continue;const{name:A,fn:z}=D,{x:B,y:U,data:L,reset:k}=await z({x:C,y:w,initialPlacement:i,placement:N,strategy:d,middlewareData:O,rects:x,platform:y,elements:{reference:n,floating:o}});C=B??C,w=U??w,O[A]={...O[A],...L},k&&R<rV&&(R++,typeof k=="object"&&(k.placement&&(N=k.placement),k.rects&&(x=k.rects===!0?await h.getElementRects({reference:n,floating:o,strategy:d}):k.rects),{x:C,y:w}=aj(x,N,v)),j=-1)}return{x:C,y:w,placement:N,strategy:d,middlewareData:O}},iV=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var s,i;const{placement:d,middlewareData:f,rects:h,initialPlacement:y,platform:v,elements:x}=o,{mainAxis:C=!0,crossAxis:w=!0,fallbackPlacements:N,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:j=!0,...D}=yu(n,o);if((s=f.arrow)!=null&&s.alignmentOffset)return{};const A=Ul(d),z=ms(y),B=Ul(y)===y,U=await(v.isRTL==null?void 0:v.isRTL(x.floating)),L=N||(B||!j?[Mw(y)]:UB(y)),k=O!=="none";!N&&k&&L.push(...HB(y,j,O,U));const V=[y,...L],H=await v.detectOverflow(o,D),K=[];let Z=((i=f.flip)==null?void 0:i.overflows)||[];if(C&&K.push(H[A]),w){const W=_B(d,h,U);K.push(H[W[0]],H[W[1]])}if(Z=[...Z,{placement:d,overflows:K}],!K.every(W=>W<=0)){var Q,G;const W=(((Q=f.flip)==null?void 0:Q.index)||0)+1,te=V[W];if(te&&(!(w==="alignment"?z!==ms(te):!1)||Z.every(F=>ms(F.placement)===z?F.overflows[0]>0:!0)))return{data:{index:W,overflows:Z},reset:{placement:te}};let Y=(G=Z.filter(P=>P.overflows[0]<=0).sort((P,F)=>P.overflows[1]-F.overflows[1])[0])==null?void 0:G.placement;if(!Y)switch(R){case"bestFit":{var q;const P=(q=Z.filter(F=>{if(k){const ee=ms(F.placement);return ee===z||ee==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(ee=>ee>0).reduce((ee,oe)=>ee+oe,0)]).sort((F,ee)=>F[1]-ee[1])[0])==null?void 0:q[0];P&&(Y=P);break}case"initialPlacement":Y=y;break}if(d!==Y)return{reset:{placement:Y}}}return{}}}};function oj(n,o){return{top:n.top-o.height,right:n.right-o.width,bottom:n.bottom-o.height,left:n.left-o.width}}function lj(n){return AB.some(o=>n[o]>=0)}const cV=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(o){const{rects:s,platform:i}=o,{strategy:d="referenceHidden",...f}=yu(n,o);switch(d){case"referenceHidden":{const h=await i.detectOverflow(o,{...f,elementContext:"reference"}),y=oj(h,s.reference);return{data:{referenceHiddenOffsets:y,referenceHidden:lj(y)}}}case"escaped":{const h=await i.detectOverflow(o,{...f,altBoundary:!0}),y=oj(h,s.floating);return{data:{escapedOffsets:y,escaped:lj(y)}}}default:return{}}}}},DA=new Set(["left","top"]);async function uV(n,o){const{placement:s,platform:i,elements:d}=n,f=await(i.isRTL==null?void 0:i.isRTL(d.floating)),h=Ul(s),y=hf(s),v=ms(s)==="y",x=DA.has(h)?-1:1,C=f&&v?-1:1,w=yu(o,n);let{mainAxis:N,crossAxis:R,alignmentAxis:O}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return y&&typeof O=="number"&&(R=y==="end"?O*-1:O),v?{x:R*C,y:N*x}:{x:N*x,y:R*C}}const dV=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var s,i;const{x:d,y:f,placement:h,middlewareData:y}=o,v=await uV(o,n);return h===((s=y.offset)==null?void 0:s.placement)&&(i=y.arrow)!=null&&i.alignmentOffset?{}:{x:d+v.x,y:f+v.y,data:{...v,placement:h}}}}},fV=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){const{x:s,y:i,placement:d,platform:f}=o,{mainAxis:h=!0,crossAxis:y=!1,limiter:v={fn:A=>{let{x:z,y:B}=A;return{x:z,y:B}}},...x}=yu(n,o),C={x:s,y:i},w=await f.detectOverflow(o,x),N=ms(Ul(d)),R=IN(N);let O=C[R],j=C[N];if(h){const A=R==="y"?"top":"left",z=R==="y"?"bottom":"right",B=O+w[A],U=O-w[z];O=nN(B,O,U)}if(y){const A=N==="y"?"top":"left",z=N==="y"?"bottom":"right",B=j+w[A],U=j-w[z];j=nN(B,j,U)}const D=v.fn({...o,[R]:O,[N]:j});return{...D,data:{x:D.x-s,y:D.y-i,enabled:{[R]:h,[N]:y}}}}}},mV=function(n){return n===void 0&&(n={}),{options:n,fn(o){const{x:s,y:i,placement:d,rects:f,middlewareData:h}=o,{offset:y=0,mainAxis:v=!0,crossAxis:x=!0}=yu(n,o),C={x:s,y:i},w=ms(d),N=IN(w);let R=C[N],O=C[w];const j=yu(y,o),D=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(v){const B=N==="y"?"height":"width",U=f.reference[N]-f.floating[B]+D.mainAxis,L=f.reference[N]+f.reference[B]-D.mainAxis;R<U?R=U:R>L&&(R=L)}if(x){var A,z;const B=N==="y"?"width":"height",U=DA.has(Ul(d)),L=f.reference[w]-f.floating[B]+(U&&((A=h.offset)==null?void 0:A[w])||0)+(U?0:D.crossAxis),k=f.reference[w]+f.reference[B]+(U?0:((z=h.offset)==null?void 0:z[w])||0)-(U?D.crossAxis:0);O<L?O=L:O>k&&(O=k)}return{[N]:R,[w]:O}}}},pV=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var s,i;const{placement:d,rects:f,platform:h,elements:y}=o,{apply:v=()=>{},...x}=yu(n,o),C=await h.detectOverflow(o,x),w=Ul(d),N=hf(d),R=ms(d)==="y",{width:O,height:j}=f.floating;let D,A;w==="top"||w==="bottom"?(D=w,A=N===(await(h.isRTL==null?void 0:h.isRTL(y.floating))?"start":"end")?"left":"right"):(A=w,D=N==="end"?"top":"bottom");const z=j-C.top-C.bottom,B=O-C.left-C.right,U=ry(j-C[D],z),L=ry(O-C[A],B),k=!o.middlewareData.shift;let V=U,H=L;if((s=o.middlewareData.shift)!=null&&s.enabled.x&&(H=B),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(V=z),k&&!N){const Z=yr(C.left,0),Q=yr(C.right,0),G=yr(C.top,0),q=yr(C.bottom,0);R?H=O-2*(Z!==0||Q!==0?Z+Q:yr(C.left,C.right)):V=j-2*(G!==0||q!==0?G+q:yr(C.top,C.bottom))}await v({...o,availableWidth:H,availableHeight:V});const K=await h.getDimensions(y.floating);return O!==K.width||j!==K.height?{reset:{rects:!0}}:{}}}};function kA(n){const o=br(n);let s=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const d=aa(n),f=d?n.offsetWidth:s,h=d?n.offsetHeight:i,y=Tw(s)!==f||Tw(i)!==h;return y&&(s=f,i=h),{width:s,height:i,$:y}}function nT(n){return bn(n)?n:n.contextElement}function oy(n){const o=nT(n);if(!aa(o))return Xi(1);const s=o.getBoundingClientRect(),{width:i,height:d,$:f}=kA(o);let h=(f?Tw(s.width):s.width)/i,y=(f?Tw(s.height):s.height)/d;return(!h||!Number.isFinite(h))&&(h=1),(!y||!Number.isFinite(y))&&(y=1),{x:h,y}}const hV=Xi(0);function AA(n){const o=wa(n);return!Qw()||!o.visualViewport?hV:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function gV(n,o,s){return o===void 0&&(o=!1),!s||o&&s!==wa(n)?!1:o}function vp(n,o,s,i){o===void 0&&(o=!1),s===void 0&&(s=!1);const d=n.getBoundingClientRect(),f=nT(n);let h=Xi(1);o&&(i?bn(i)&&(h=oy(i)):h=oy(n));const y=gV(f,s,i)?AA(f):Xi(0);let v=(d.left+y.x)/h.x,x=(d.top+y.y)/h.y,C=d.width/h.x,w=d.height/h.y;if(f){const N=wa(f),R=i&&bn(i)?wa(i):i;let O=N,j=X2(O);for(;j&&i&&R!==O;){const D=oy(j),A=j.getBoundingClientRect(),z=br(j),B=A.left+(j.clientLeft+parseFloat(z.paddingLeft))*D.x,U=A.top+(j.clientTop+parseFloat(z.paddingTop))*D.y;v*=D.x,x*=D.y,C*=D.x,w*=D.y,v+=B,x+=U,O=wa(j),j=X2(O)}}return Rw({width:C,height:w,x:v,y:x})}function dC(n,o){const s=Zw(n).scrollLeft;return o?o.left+s:vp(Ki(n)).left+s}function zA(n,o){const s=n.getBoundingClientRect(),i=s.left+o.scrollLeft-dC(n,s),d=s.top+o.scrollTop;return{x:i,y:d}}function yV(n){let{elements:o,rect:s,offsetParent:i,strategy:d}=n;const f=d==="fixed",h=Ki(i),y=o?$w(o.floating):!1;if(i===h||y&&f)return s;let v={scrollLeft:0,scrollTop:0},x=Xi(1);const C=Xi(0),w=aa(i);if((w||!w&&!f)&&((df(i)!=="body"||ff(h))&&(v=Zw(i)),w)){const R=vp(i);x=oy(i),C.x=R.x+i.clientLeft,C.y=R.y+i.clientTop}const N=h&&!w&&!f?zA(h,v):Xi(0);return{width:s.width*x.x,height:s.height*x.y,x:s.x*x.x-v.scrollLeft*x.x+C.x+N.x,y:s.y*x.y-v.scrollTop*x.y+C.y+N.y}}function bV(n){return Array.from(n.getClientRects())}function vV(n){const o=Ki(n),s=Zw(n),i=n.ownerDocument.body,d=yr(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),f=yr(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let h=-s.scrollLeft+dC(n);const y=-s.scrollTop;return br(i).direction==="rtl"&&(h+=yr(o.clientWidth,i.clientWidth)-d),{width:d,height:f,x:h,y}}const rj=25;function xV(n,o){const s=wa(n),i=Ki(n),d=s.visualViewport;let f=i.clientWidth,h=i.clientHeight,y=0,v=0;if(d){f=d.width,h=d.height;const C=Qw();(!C||C&&o==="fixed")&&(y=d.offsetLeft,v=d.offsetTop)}const x=dC(i);if(x<=0){const C=i.ownerDocument,w=C.body,N=getComputedStyle(w),R=C.compatMode==="CSS1Compat"&&parseFloat(N.marginLeft)+parseFloat(N.marginRight)||0,O=Math.abs(i.clientWidth-w.clientWidth-R);O<=rj&&(f-=O)}else x<=rj&&(f+=x);return{width:f,height:h,x:y,y:v}}function SV(n,o){const s=vp(n,!0,o==="fixed"),i=s.top+n.clientTop,d=s.left+n.clientLeft,f=aa(n)?oy(n):Xi(1),h=n.clientWidth*f.x,y=n.clientHeight*f.y,v=d*f.x,x=i*f.y;return{width:h,height:y,x:v,y:x}}function sj(n,o,s){let i;if(o==="viewport")i=xV(n,s);else if(o==="document")i=vV(Ki(n));else if(bn(o))i=SV(o,s);else{const d=AA(n);i={x:o.x-d.x,y:o.y-d.y,width:o.width,height:o.height}}return Rw(i)}function _A(n,o){const s=Pi(n);return s===o||!bn(s)||Gi(s)?!1:br(s).position==="fixed"||_A(s,o)}function wV(n,o){const s=o.get(n);if(s)return s;let i=nf(n,[],!1).filter(y=>bn(y)&&df(y)!=="body"),d=null;const f=br(n).position==="fixed";let h=f?Pi(n):n;for(;bn(h)&&!Gi(h);){const y=br(h),v=xN(h);!v&&y.position==="fixed"&&(d=null),(f?!v&&!d:!v&&y.position==="static"&&!!d&&(d.position==="absolute"||d.position==="fixed")||ff(h)&&!v&&_A(n,h))?i=i.filter(C=>C!==h):d=y,h=Pi(h)}return o.set(n,i),i}function CV(n){let{element:o,boundary:s,rootBoundary:i,strategy:d}=n;const h=[...s==="clippingAncestors"?$w(o)?[]:wV(o,this._c):[].concat(s),i],y=sj(o,h[0],d);let v=y.top,x=y.right,C=y.bottom,w=y.left;for(let N=1;N<h.length;N++){const R=sj(o,h[N],d);v=yr(R.top,v),x=ry(R.right,x),C=ry(R.bottom,C),w=yr(R.left,w)}return{width:x-w,height:C-v,x:w,y:v}}function EV(n){const{width:o,height:s}=kA(n);return{width:o,height:s}}function NV(n,o,s){const i=aa(o),d=Ki(o),f=s==="fixed",h=vp(n,!0,f,o);let y={scrollLeft:0,scrollTop:0};const v=Xi(0);function x(){v.x=dC(d)}if(i||!i&&!f)if((df(o)!=="body"||ff(d))&&(y=Zw(o)),i){const R=vp(o,!0,f,o);v.x=R.x+o.clientLeft,v.y=R.y+o.clientTop}else d&&x();f&&!i&&d&&x();const C=d&&!i&&!f?zA(d,y):Xi(0),w=h.left+y.scrollLeft-v.x-C.x,N=h.top+y.scrollTop-v.y-C.y;return{x:w,y:N,width:h.width,height:h.height}}function c2(n){return br(n).position==="static"}function ij(n,o){if(!aa(n)||br(n).position==="fixed")return null;if(o)return o(n);let s=n.offsetParent;return Ki(n)===s&&(s=s.ownerDocument.body),s}function UA(n,o){const s=wa(n);if($w(n))return s;if(!aa(n)){let d=Pi(n);for(;d&&!Gi(d);){if(bn(d)&&!c2(d))return d;d=Pi(d)}return s}let i=ij(n,o);for(;i&&B8(i)&&c2(i);)i=ij(i,o);return i&&Gi(i)&&c2(i)&&!xN(i)?s:i||H8(n)||s}const TV=async function(n){const o=this.getOffsetParent||UA,s=this.getDimensions,i=await s(n.floating);return{reference:NV(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function MV(n){return br(n).direction==="rtl"}const RV={convertOffsetParentRelativeRectToViewportRelativeRect:yV,getDocumentElement:Ki,getClippingRect:CV,getOffsetParent:UA,getElementRects:TV,getClientRects:bV,getDimensions:EV,getScale:oy,isElement:bn,isRTL:MV};function BA(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function OV(n,o){let s=null,i;const d=Ki(n);function f(){var y;clearTimeout(i),(y=s)==null||y.disconnect(),s=null}function h(y,v){y===void 0&&(y=!1),v===void 0&&(v=1),f();const x=n.getBoundingClientRect(),{left:C,top:w,width:N,height:R}=x;if(y||o(),!N||!R)return;const O=Fg(w),j=Fg(d.clientWidth-(C+N)),D=Fg(d.clientHeight-(w+R)),A=Fg(C),B={rootMargin:-O+"px "+-j+"px "+-D+"px "+-A+"px",threshold:yr(0,ry(1,v))||1};let U=!0;function L(k){const V=k[0].intersectionRatio;if(V!==v){if(!U)return h();V?h(!1,V):i=setTimeout(()=>{h(!1,1e-7)},1e3)}V===1&&!BA(x,n.getBoundingClientRect())&&h(),U=!1}try{s=new IntersectionObserver(L,{...B,root:d.ownerDocument})}catch{s=new IntersectionObserver(L,B)}s.observe(n)}return h(!0),f}function cj(n,o,s,i){i===void 0&&(i={});const{ancestorScroll:d=!0,ancestorResize:f=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:y=typeof IntersectionObserver=="function",animationFrame:v=!1}=i,x=nT(n),C=d||f?[...x?nf(x):[],...o?nf(o):[]]:[];C.forEach(A=>{d&&A.addEventListener("scroll",s,{passive:!0}),f&&A.addEventListener("resize",s)});const w=x&&y?OV(x,s):null;let N=-1,R=null;h&&(R=new ResizeObserver(A=>{let[z]=A;z&&z.target===x&&R&&o&&(R.unobserve(o),cancelAnimationFrame(N),N=requestAnimationFrame(()=>{var B;(B=R)==null||B.observe(o)})),s()}),x&&!v&&R.observe(x),o&&R.observe(o));let O,j=v?vp(n):null;v&&D();function D(){const A=vp(n);j&&!BA(j,A)&&s(),j=A,O=requestAnimationFrame(D)}return s(),()=>{var A;C.forEach(z=>{d&&z.removeEventListener("scroll",s),f&&z.removeEventListener("resize",s)}),w?.(),(A=R)==null||A.disconnect(),R=null,v&&cancelAnimationFrame(O)}}const jV=dV,DV=fV,kV=iV,AV=pV,zV=cV,_V=mV,UV=(n,o,s)=>{const i=new Map,d={platform:RV,...s},f={...d.platform,_c:i};return sV(n,o,{...d,platform:f})};var BV=typeof document<"u",LV=function(){},bw=BV?Qe.useLayoutEffect:LV;function _w(n,o){if(n===o)return!0;if(typeof n!=typeof o)return!1;if(typeof n=="function"&&n.toString()===o.toString())return!0;let s,i,d;if(n&&o&&typeof n=="object"){if(Array.isArray(n)){if(s=n.length,s!==o.length)return!1;for(i=s;i--!==0;)if(!_w(n[i],o[i]))return!1;return!0}if(d=Object.keys(n),s=d.length,s!==Object.keys(o).length)return!1;for(i=s;i--!==0;)if(!{}.hasOwnProperty.call(o,d[i]))return!1;for(i=s;i--!==0;){const f=d[i];if(!(f==="_owner"&&n.$$typeof)&&!_w(n[f],o[f]))return!1}return!0}return n!==n&&o!==o}function LA(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function uj(n,o){const s=LA(n);return Math.round(o*s)/s}function u2(n){const o=S.useRef(n);return bw(()=>{o.current=n}),o}function VV(n){n===void 0&&(n={});const{placement:o="bottom",strategy:s="absolute",middleware:i=[],platform:d,elements:{reference:f,floating:h}={},transform:y=!0,whileElementsMounted:v,open:x}=n,[C,w]=S.useState({x:0,y:0,strategy:s,placement:o,middlewareData:{},isPositioned:!1}),[N,R]=S.useState(i);_w(N,i)||R(i);const[O,j]=S.useState(null),[D,A]=S.useState(null),z=S.useCallback(F=>{F!==k.current&&(k.current=F,j(F))},[]),B=S.useCallback(F=>{F!==V.current&&(V.current=F,A(F))},[]),U=f||O,L=h||D,k=S.useRef(null),V=S.useRef(null),H=S.useRef(C),K=v!=null,Z=u2(v),Q=u2(d),G=u2(x),q=S.useCallback(()=>{if(!k.current||!V.current)return;const F={placement:o,strategy:s,middleware:N};Q.current&&(F.platform=Q.current),UV(k.current,V.current,F).then(ee=>{const oe={...ee,isPositioned:G.current!==!1};W.current&&!_w(H.current,oe)&&(H.current=oe,Bl.flushSync(()=>{w(oe)}))})},[N,o,s,Q,G]);bw(()=>{x===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,w(F=>({...F,isPositioned:!1})))},[x]);const W=S.useRef(!1);bw(()=>(W.current=!0,()=>{W.current=!1}),[]),bw(()=>{if(U&&(k.current=U),L&&(V.current=L),U&&L){if(Z.current)return Z.current(U,L,q);q()}},[U,L,q,Z,K]);const te=S.useMemo(()=>({reference:k,floating:V,setReference:z,setFloating:B}),[z,B]),Y=S.useMemo(()=>({reference:U,floating:L}),[U,L]),P=S.useMemo(()=>{const F={position:s,left:0,top:0};if(!Y.floating)return F;const ee=uj(Y.floating,C.x),oe=uj(Y.floating,C.y);return y?{...F,transform:"translate("+ee+"px, "+oe+"px)",...LA(Y.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:ee,top:oe}},[s,y,Y.floating,C.x,C.y]);return S.useMemo(()=>({...C,update:q,refs:te,elements:Y,floatingStyles:P}),[C,q,te,Y,P])}const HV=(n,o)=>{const s=jV(n);return{name:s.name,fn:s.fn,options:[n,o]}},IV=(n,o)=>{const s=DV(n);return{name:s.name,fn:s.fn,options:[n,o]}},YV=(n,o)=>({fn:_V(n).fn,options:[n,o]}),qV=(n,o)=>{const s=kV(n);return{name:s.name,fn:s.fn,options:[n,o]}},GV=(n,o)=>{const s=AV(n);return{name:s.name,fn:s.fn,options:[n,o]}},XV=(n,o)=>{const s=zV(n);return{name:s.name,fn:s.fn,options:[n,o]}},PV={intentional:"onClick",sloppy:"onPointerDown"};function $V(n){return{escapeKey:typeof n=="boolean"?n:n?.escapeKey??!1,outsidePress:typeof n=="boolean"?n:n?.outsidePress??!0}}function lx(n,o={}){const s="rootStore"in n?n.rootStore:n,i=s.useState("open"),d=s.useState("floatingElement"),f=s.useState("referenceElement"),h=s.useState("domReferenceElement"),{onOpenChange:y,dataRef:v}=s.context,{enabled:x=!0,escapeKey:C=!0,outsidePress:w=!0,outsidePressEvent:N="sloppy",referencePress:R=!1,referencePressEvent:O="sloppy",ancestorScroll:j=!1,bubbles:D,externalTree:A}=o,z=gf(A),B=Ke(typeof w=="function"?w:()=>!1),U=typeof w=="function"?B:w,L=S.useRef(!1),{escapeKey:k,outsidePress:V}=$V(D),H=S.useRef(null),K=$a(),Z=$a(),Q=Ke(()=>{Z.clear(),v.current.insideReactTree=!1}),G=S.useRef(!1),q=S.useRef(""),W=Ke(ce=>{q.current=ce.pointerType}),te=Ke(()=>{const ce=q.current,ae=ce==="pen"||!ce?"mouse":ce,ue=typeof N=="function"?N():N;return typeof ue=="string"?ue:ue[ae]}),Y=Ke(ce=>{if(!i||!x||!C||ce.key!=="Escape"||G.current)return;const ae=v.current.floatingContext?.nodeId,ue=z?fp(z.nodesRef.current,ae):[];if(!k&&ue.length>0){let Oe=!0;if(ue.forEach(de=>{de.context?.open&&!de.context.dataRef.current.__escapeKeyBubbles&&(Oe=!1)}),!Oe)return}const be=kB(ce)?ce.nativeEvent:ce,ie=vt(Wv,be);s.setOpen(!1,ie),!k&&!ie.isPropagationAllowed&&ce.stopPropagation()}),P=Ke(ce=>{const ae=te();return ae==="intentional"&&ce.type!=="click"||ae==="sloppy"&&ce.type==="click"}),F=Ke(()=>{v.current.insideReactTree=!0,Z.start(0,Q)}),ee=Ke((ce,ae=!1)=>{if(P(ce)){Q();return}if(v.current.insideReactTree){Q();return}if(te()==="intentional"&&ae||typeof U=="function"&&!U(ce))return;const ue=bl(ce),be=`[${iy("inert")}]`,ie=sn(s.select("floatingElement")).querySelectorAll(be),Oe=s.context.triggerElements;if(ue&&(Oe.hasElement(ue)||Oe.hasMatchingElement(Ie=>Ut(Ie,ue))))return;let de=bn(ue)?ue:null;for(;de&&!Gi(de);){const Ie=Pi(de);if(Gi(Ie)||!bn(Ie))break;de=Ie}if(ie.length&&bn(ue)&&!jB(ue)&&!Ut(ue,s.select("floatingElement"))&&Array.from(ie).every(Ie=>!Ut(de,Ie)))return;if(aa(ue)&&!("touches"in ce)){const Ie=Gi(ue),We=br(ue),$e=/auto|scroll/,st=Ie||$e.test(We.overflowX),nn=Ie||$e.test(We.overflowY),ln=st&&ue.clientWidth>0&&ue.scrollWidth>ue.clientWidth,Tt=nn&&ue.clientHeight>0&&ue.scrollHeight>ue.clientHeight,Lt=We.direction==="rtl",Kt=Tt&&(Lt?ce.offsetX<=ue.offsetWidth-ue.clientWidth:ce.offsetX>ue.clientWidth),Ft=ln&&ce.offsetY>ue.clientHeight;if(Kt||Ft)return}const Me=v.current.floatingContext?.nodeId,Re=z&&fp(z.nodesRef.current,Me).some(Ie=>Ps(ce,Ie.context?.elements.floating));if(Ps(ce,s.select("floatingElement"))||Ps(ce,s.select("domReferenceElement"))||Re)return;const De=z?fp(z.nodesRef.current,Me):[];if(De.length>0){let Ie=!0;if(De.forEach(We=>{We.context?.open&&!We.context.dataRef.current.__outsidePressBubbles&&(Ie=!1)}),!Ie)return}s.setOpen(!1,vt(tC,ce)),Q()}),oe=Ke(ce=>{te()!=="sloppy"||ce.pointerType==="touch"||!s.select("open")||!x||Ps(ce,s.select("floatingElement"))||Ps(ce,s.select("domReferenceElement"))||ee(ce)}),we=Ke(ce=>{if(te()!=="sloppy"||!s.select("open")||!x||Ps(ce,s.select("floatingElement"))||Ps(ce,s.select("domReferenceElement")))return;const ae=ce.touches[0];ae&&(H.current={startTime:Date.now(),startX:ae.clientX,startY:ae.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},K.start(1e3,()=>{H.current&&(H.current.dismissOnTouchEnd=!1,H.current.dismissOnMouseDown=!1)}))}),se=Ke(ce=>{const ae=bl(ce);function ue(){we(ce),ae?.removeEventListener(ce.type,ue)}ae?.addEventListener(ce.type,ue)}),Ce=Ke(ce=>{const ae=L.current;if(L.current=!1,K.clear(),ce.type==="mousedown"&&H.current&&!H.current.dismissOnMouseDown)return;const ue=bl(ce);function be(){ce.type==="pointerdown"?oe(ce):ee(ce,ae),ue?.removeEventListener(ce.type,be)}ue?.addEventListener(ce.type,be)}),re=Ke(ce=>{if(te()!=="sloppy"||!H.current||Ps(ce,s.select("floatingElement"))||Ps(ce,s.select("domReferenceElement")))return;const ae=ce.touches[0];if(!ae)return;const ue=Math.abs(ae.clientX-H.current.startX),be=Math.abs(ae.clientY-H.current.startY),ie=Math.sqrt(ue*ue+be*be);ie>5&&(H.current.dismissOnTouchEnd=!0),ie>10&&(ee(ce),K.clear(),H.current=null)}),he=Ke(ce=>{const ae=bl(ce);function ue(){re(ce),ae?.removeEventListener(ce.type,ue)}ae?.addEventListener(ce.type,ue)}),le=Ke(ce=>{te()!=="sloppy"||!H.current||Ps(ce,s.select("floatingElement"))||Ps(ce,s.select("domReferenceElement"))||(H.current.dismissOnTouchEnd&&ee(ce),K.clear(),H.current=null)}),Se=Ke(ce=>{const ae=bl(ce);function ue(){le(ce),ae?.removeEventListener(ce.type,ue)}ae?.addEventListener(ce.type,ue)});S.useEffect(()=>{if(!i||!x)return;v.current.__escapeKeyBubbles=k,v.current.__outsidePressBubbles=V;const ce=new Ks;function ae(de){s.setOpen(!1,vt(hs,de))}function ue(){ce.clear(),G.current=!0}function be(){ce.start(Qw()?5:0,()=>{G.current=!1})}const ie=sn(d);ie.addEventListener("pointerdown",W,!0),C&&(ie.addEventListener("keydown",Y),ie.addEventListener("compositionstart",ue),ie.addEventListener("compositionend",be)),U&&(ie.addEventListener("click",Ce,!0),ie.addEventListener("pointerdown",Ce,!0),ie.addEventListener("touchstart",se,!0),ie.addEventListener("touchmove",he,!0),ie.addEventListener("touchend",Se,!0),ie.addEventListener("mousedown",Ce,!0));let Oe=[];return j&&(bn(h)&&(Oe=nf(h)),bn(d)&&(Oe=Oe.concat(nf(d))),!bn(f)&&f&&f.contextElement&&(Oe=Oe.concat(nf(f.contextElement)))),Oe=Oe.filter(de=>de!==ie.defaultView?.visualViewport),Oe.forEach(de=>{de.addEventListener("scroll",ae,{passive:!0})}),()=>{ie.removeEventListener("pointerdown",W,!0),C&&(ie.removeEventListener("keydown",Y),ie.removeEventListener("compositionstart",ue),ie.removeEventListener("compositionend",be)),U&&(ie.removeEventListener("click",Ce,!0),ie.removeEventListener("pointerdown",Ce,!0),ie.removeEventListener("touchstart",se,!0),ie.removeEventListener("touchmove",he,!0),ie.removeEventListener("touchend",Se,!0),ie.removeEventListener("mousedown",Ce,!0)),Oe.forEach(de=>{de.removeEventListener("scroll",ae)}),ce.clear(),L.current=!1}},[v,d,f,h,C,U,i,y,j,x,k,V,Y,ee,Ce,oe,se,he,Se,W,s]),S.useEffect(Q,[U,Q]);const ze=S.useMemo(()=>({onKeyDown:Y,...R&&{[PV[O]]:ce=>{s.setOpen(!1,vt(gu,ce.nativeEvent))},...O!=="intentional"&&{onClick(ce){s.setOpen(!1,vt(gu,ce.nativeEvent))}}}}),[Y,s,R,O]),je=Ke(ce=>{const ae=bl(ce.nativeEvent);!Ut(s.select("floatingElement"),ae)||ce.button!==0||(L.current=!0)}),ve=Ke(ce=>{!i||!x||ce.button!==0||(L.current=!0)}),fe=S.useMemo(()=>({onKeyDown:Y,onPointerDown:je,onMouseDown:je,onMouseUp:je,onClickCapture:F,onMouseDownCapture(ce){F(),ve(ce)},onPointerDownCapture(ce){F(),ve(ce)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[Y,je,F,ve]);return S.useMemo(()=>x?{reference:ze,floating:fe,trigger:ze}:{},[x,ze,fe])}var QV=(n,o,s)=>{if(o.length===1&&o[0]===s){let i=!1;try{const d={};n(d)===d&&(i=!0)}catch{}if(i){let d;try{throw new Error}catch(f){({stack:d}=f)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
5
|
+
\`createSelector([state => state.todos], todos => todos)\`
|
|
6
|
+
This could lead to inefficient memoization and unnecessary re-renders.
|
|
7
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:d})}}},ZV=(n,o,s)=>{const{memoize:i,memoizeOptions:d}=o,{inputSelectorResults:f,inputSelectorResultsCopy:h}=n,y=i(()=>({}),...d);if(!(y.apply(null,f)===y.apply(null,h))){let x;try{throw new Error}catch(C){({stack:x}=C)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
8
|
+
This means your output selector will likely run more frequently than intended.
|
|
9
|
+
Avoid returning a new reference inside your input selector, e.g.
|
|
10
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:s,firstInputs:f,secondInputs:h,stack:x})}},KV={inputStabilityCheck:"once",identityFunctionCheck:"once"},Uw=Symbol("NOT_FOUND");function FV(n,o=`expected a function, instead received ${typeof n}`){if(typeof n!="function")throw new TypeError(o)}function WV(n,o=`expected an object, instead received ${typeof n}`){if(typeof n!="object")throw new TypeError(o)}function JV(n,o="expected all items to be functions, instead received the following types: "){if(!n.every(s=>typeof s=="function")){const s=n.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${o}[${s}]`)}}var dj=n=>Array.isArray(n)?n:[n];function eH(n){const o=Array.isArray(n[0])?n[0]:n;return JV(o,"createSelector expects all input-selectors to be functions, but received the following types: "),o}function fj(n,o){const s=[],{length:i}=n;for(let d=0;d<i;d++)s.push(n[d].apply(null,o));return s}var tH=(n,o)=>{const{identityFunctionCheck:s,inputStabilityCheck:i}={...KV,...o};return{identityFunctionCheck:{shouldRun:s==="always"||s==="once"&&n,run:QV},inputStabilityCheck:{shouldRun:i==="always"||i==="once"&&n,run:ZV}}};function nH(n){let o;return{get(s){return o&&n(o.key,s)?o.value:Uw},put(s,i){o={key:s,value:i}},getEntries(){return o?[o]:[]},clear(){o=void 0}}}function aH(n,o){let s=[];function i(y){const v=s.findIndex(x=>o(y,x.key));if(v>-1){const x=s[v];return v>0&&(s.splice(v,1),s.unshift(x)),x.value}return Uw}function d(y,v){i(y)===Uw&&(s.unshift({key:y,value:v}),s.length>n&&s.pop())}function f(){return s}function h(){s=[]}return{get:i,put:d,getEntries:f,clear:h}}var oH=(n,o)=>n===o;function lH(n){return function(s,i){if(s===null||i===null||s.length!==i.length)return!1;const{length:d}=s;for(let f=0;f<d;f++)if(!n(s[f],i[f]))return!1;return!0}}function rH(n,o){const s=typeof o=="object"?o:{equalityCheck:o},{equalityCheck:i=oH,maxSize:d=1,resultEqualityCheck:f}=s,h=lH(i);let y=0;const v=d<=1?nH(h):aH(d,h);function x(){let C=v.get(arguments);if(C===Uw){if(C=n.apply(null,arguments),y++,f){const N=v.getEntries().find(R=>f(R.value,C));N&&(C=N.value,y!==0&&y--)}v.put(arguments,C)}return C}return x.clearCache=()=>{v.clear(),x.resetResultsCount()},x.resultsCount=()=>y,x.resetResultsCount=()=>{y=0},x}var sH=class{constructor(n){this.value=n}deref(){return this.value}},iH=typeof WeakRef<"u"?WeakRef:sH,cH=0,mj=1;function FS(){return{s:cH,v:void 0,o:null,p:null}}function VA(n,o={}){let s=FS();const{resultEqualityCheck:i}=o;let d,f=0;function h(){let y=s;const{length:v}=arguments;for(let w=0,N=v;w<N;w++){const R=arguments[w];if(typeof R=="function"||typeof R=="object"&&R!==null){let O=y.o;O===null&&(y.o=O=new WeakMap);const j=O.get(R);j===void 0?(y=FS(),O.set(R,y)):y=j}else{let O=y.p;O===null&&(y.p=O=new Map);const j=O.get(R);j===void 0?(y=FS(),O.set(R,y)):y=j}}const x=y;let C;if(y.s===mj)C=y.v;else if(C=n.apply(null,arguments),f++,i){const w=d?.deref?.()??d;w!=null&&i(w,C)&&(C=w,f!==0&&f--),d=typeof C=="object"&&C!==null||typeof C=="function"?new iH(C):C}return x.s=mj,x.v=C,C}return h.clearCache=()=>{s=FS(),h.resetResultsCount()},h.resultsCount=()=>f,h.resetResultsCount=()=>{f=0},h}function HA(n,...o){const s=typeof n=="function"?{memoize:n,memoizeOptions:o}:n,i=(...d)=>{let f=0,h=0,y,v={},x=d.pop();typeof x=="object"&&(v=x,x=d.pop()),FV(x,`createSelector expects an output function after the inputs, but received: [${typeof x}]`);const C={...s,...v},{memoize:w,memoizeOptions:N=[],argsMemoize:R=VA,argsMemoizeOptions:O=[],devModeChecks:j={}}=C,D=dj(N),A=dj(O),z=eH(d),B=w(function(){return f++,x.apply(null,arguments)},...D);let U=!0;const L=R(function(){h++;const V=fj(z,arguments);if(y=B.apply(null,V),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:H,inputStabilityCheck:K}=tH(U,j);if(H.shouldRun&&H.run(x,V,y),K.shouldRun){const Z=fj(z,arguments);K.run({inputSelectorResults:V,inputSelectorResultsCopy:Z},{memoize:w,memoizeOptions:D},arguments)}U&&(U=!1)}return y},...A);return Object.assign(L,{resultFunc:x,memoizedResultFunc:B,dependencies:z,dependencyRecomputations:()=>h,resetDependencyRecomputations:()=>{h=0},lastResult:()=>y,recomputations:()=>f,resetRecomputations:()=>{f=0},memoize:w,argsMemoize:R})};return Object.assign(i,{withTypes:()=>i}),i}var uH=HA(VA),dH=Object.assign((n,o=uH)=>{WV(n,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof n}`);const s=Object.keys(n),i=s.map(f=>n[f]);return o(i,(...f)=>f.reduce((h,y,v)=>(h[s[v]]=y,h),{}))},{withTypes:()=>dH});HA({memoize:rH,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const Ze=(n,o,s,i,d,f,...h)=>{if(h.length>0)throw new Error(process.env.NODE_ENV!=="production"?"Unsupported number of selectors":Nn(1));let y;if(n)y=n;else throw new Error("Missing arguments");return y};var WS={exports:{}},d2={};var pj;function fH(){if(pj)return d2;pj=1;var n=Qe;function o(w,N){return w===N&&(w!==0||1/w===1/N)||w!==w&&N!==N}var s=typeof Object.is=="function"?Object.is:o,i=n.useState,d=n.useEffect,f=n.useLayoutEffect,h=n.useDebugValue;function y(w,N){var R=N(),O=i({inst:{value:R,getSnapshot:N}}),j=O[0].inst,D=O[1];return f(function(){j.value=R,j.getSnapshot=N,v(j)&&D({inst:j})},[w,R,N]),d(function(){return v(j)&&D({inst:j}),w(function(){v(j)&&D({inst:j})})},[w]),h(R),R}function v(w){var N=w.getSnapshot;w=w.value;try{var R=N();return!s(w,R)}catch{return!0}}function x(w,N){return N()}var C=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?x:y;return d2.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:C,d2}var f2={};var hj;function mH(){return hj||(hj=1,process.env.NODE_ENV!=="production"&&(function(){function n(R,O){return R===O&&(R!==0||1/R===1/O)||R!==R&&O!==O}function o(R,O){C||d.startTransition===void 0||(C=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var j=O();if(!w){var D=O();f(j,D)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),w=!0)}D=h({inst:{value:j,getSnapshot:O}});var A=D[0].inst,z=D[1];return v(function(){A.value=j,A.getSnapshot=O,s(A)&&z({inst:A})},[R,j,O]),y(function(){return s(A)&&z({inst:A}),R(function(){s(A)&&z({inst:A})})},[R]),x(j),j}function s(R){var O=R.getSnapshot;R=R.value;try{var j=O();return!f(R,j)}catch{return!0}}function i(R,O){return O()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var d=Qe,f=typeof Object.is=="function"?Object.is:n,h=d.useState,y=d.useEffect,v=d.useLayoutEffect,x=d.useDebugValue,C=!1,w=!1,N=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:o;f2.useSyncExternalStore=d.useSyncExternalStore!==void 0?d.useSyncExternalStore:N,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),f2}var gj;function aT(){return gj||(gj=1,process.env.NODE_ENV==="production"?WS.exports=fH():WS.exports=mH()),WS.exports}var IA=aT(),JS={exports:{}},m2={};var yj;function pH(){if(yj)return m2;yj=1;var n=Qe,o=aT();function s(x,C){return x===C&&(x!==0||1/x===1/C)||x!==x&&C!==C}var i=typeof Object.is=="function"?Object.is:s,d=o.useSyncExternalStore,f=n.useRef,h=n.useEffect,y=n.useMemo,v=n.useDebugValue;return m2.useSyncExternalStoreWithSelector=function(x,C,w,N,R){var O=f(null);if(O.current===null){var j={hasValue:!1,value:null};O.current=j}else j=O.current;O=y(function(){function A(k){if(!z){if(z=!0,B=k,k=N(k),R!==void 0&&j.hasValue){var V=j.value;if(R(V,k))return U=V}return U=k}if(V=U,i(B,k))return V;var H=N(k);return R!==void 0&&R(V,H)?(B=k,V):(B=k,U=H)}var z=!1,B,U,L=w===void 0?null:w;return[function(){return A(C())},L===null?void 0:function(){return A(L())}]},[C,w,N,R]);var D=d(x,O[0],O[1]);return h(function(){j.hasValue=!0,j.value=D},[D]),v(D),D},m2}var p2={};var bj;function hH(){return bj||(bj=1,process.env.NODE_ENV!=="production"&&(function(){function n(x,C){return x===C&&(x!==0||1/x===1/C)||x!==x&&C!==C}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Qe,s=aT(),i=typeof Object.is=="function"?Object.is:n,d=s.useSyncExternalStore,f=o.useRef,h=o.useEffect,y=o.useMemo,v=o.useDebugValue;p2.useSyncExternalStoreWithSelector=function(x,C,w,N,R){var O=f(null);if(O.current===null){var j={hasValue:!1,value:null};O.current=j}else j=O.current;O=y(function(){function A(k){if(!z){if(z=!0,B=k,k=N(k),R!==void 0&&j.hasValue){var V=j.value;if(R(V,k))return U=V}return U=k}if(V=U,i(B,k))return V;var H=N(k);return R!==void 0&&R(V,H)?(B=k,V):(B=k,U=H)}var z=!1,B,U,L=w===void 0?null:w;return[function(){return A(C())},L===null?void 0:function(){return A(L())}]},[C,w,N,R]);var D=d(x,O[0],O[1]);return h(function(){j.hasValue=!0,j.value=D},[D]),v(D),D},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),p2}var vj;function gH(){return vj||(vj=1,process.env.NODE_ENV==="production"?JS.exports=pH():JS.exports=hH()),JS.exports}var yH=gH();const sN=[];let iN;function bH(){return iN}function vH(n){sN.push(n)}function oT(n){const o=(s,i)=>{const d=Qa(xH).current;let f;try{iN=d;for(const h of sN)h.before(d);f=n(s,i);for(const h of sN)h.after(d);d.didInitialize=!0}finally{iN=void 0}return f};return o.displayName=n.displayName||n.name,o}function YA(n){return S.forwardRef(oT(n))}function xH(){return{didInitialize:!1}}const SH=CN(19),wH=SH?EH:NH;function jt(n,o,s,i,d){return wH(n,o,s,i,d)}function CH(n,o,s,i,d){const f=S.useCallback(()=>o(n.getSnapshot(),s,i,d),[n,o,s,i,d]);return IA.useSyncExternalStore(n.subscribe,f,f)}vH({before(n){n.syncIndex=0,n.didInitialize||(n.syncTick=1,n.syncHooks=[],n.didChangeStore=!0,n.getSnapshot=()=>{let o=!1;for(let s=0;s<n.syncHooks.length;s+=1){const i=n.syncHooks[s],d=i.selector(i.store.state,i.a1,i.a2,i.a3);(i.didChange||!Object.is(i.value,d))&&(o=!0,i.value=d,i.didChange=!1)}return o&&(n.syncTick+=1),n.syncTick})},after(n){n.syncHooks.length>0&&(n.didChangeStore&&(n.didChangeStore=!1,n.subscribe=o=>{const s=new Set;for(const d of n.syncHooks)s.add(d.store);const i=[];for(const d of s)i.push(d.subscribe(o));return()=>{for(const d of i)d()}}),IA.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot))}});function EH(n,o,s,i,d){const f=bH();if(!f)return CH(n,o,s,i,d);const h=f.syncIndex;f.syncIndex+=1;let y;return f.didInitialize?(y=f.syncHooks[h],(y.store!==n||y.selector!==o||!Object.is(y.a1,s)||!Object.is(y.a2,i)||!Object.is(y.a3,d))&&(y.store!==n&&(f.didChangeStore=!0),y.store=n,y.selector=o,y.a1=s,y.a2=i,y.a3=d,y.didChange=!0)):(y={store:n,selector:o,a1:s,a2:i,a3:d,value:o(n.getSnapshot(),s,i,d),didChange:!1},f.syncHooks.push(y)),y.value}function NH(n,o,s,i,d){return yH.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getSnapshot,f=>o(f,s,i,d))}class qA{constructor(o){this.state=o,this.listeners=new Set,this.updateTick=0}subscribe=o=>(this.listeners.add(o),()=>{this.listeners.delete(o)});getSnapshot=()=>this.state;setState(o){if(this.state===o)return;this.state=o,this.updateTick+=1;const s=this.updateTick;for(const i of this.listeners){if(s!==this.updateTick)return;i(o)}}update(o){for(const s in o)if(!Object.is(this.state[s],o[s])){this.setState({...this.state,...o});return}}set(o,s){Object.is(this.state[o],s)||this.setState({...this.state,[o]:s})}notifyAll(){const o={...this.state};this.setState(o)}use(o,s,i,d){return jt(this,o,s,i,d)}}class rx extends qA{constructor(o,s={},i){super(o),this.context=s,this.selectors=i}useSyncedValue(o,s){S.useDebugValue(o),Fe(()=>{this.state[o]!==s&&this.set(o,s)},[o,s])}useSyncedValueWithCleanup(o,s){const i=this;Fe(()=>(i.state[o]!==s&&i.set(o,s),()=>{i.set(o,void 0)}),[i,o,s])}useSyncedValues(o){const s=this;if(process.env.NODE_ENV!=="production"){S.useDebugValue(o,h=>Object.keys(h));const d=S.useRef(Object.keys(o)).current,f=Object.keys(o);(d.length!==f.length||d.some((h,y)=>h!==f[y]))&&console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.")}const i=Object.values(o);Fe(()=>{s.update(o)},[s,...i])}useControlledProp(o,s){S.useDebugValue(o);const i=s!==void 0;if(Fe(()=>{i&&!Object.is(this.state[o],s)&&super.setState({...this.state,[o]:s})},[o,s,i]),process.env.NODE_ENV!=="production"){const d=this.controlledValues??=new Map;d.has(o)||d.set(o,i);const f=d.get(o);f!==void 0&&f!==i&&console.error(`A component is changing the ${i?"":"un"}controlled state of ${o.toString()} to be ${i?"un":""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`)}}select(o,s,i,d){const f=this.selectors[o];return f(this.state,s,i,d)}useState(o,s,i,d){return S.useDebugValue(o),jt(this,this.selectors[o],s,i,d)}useContextCallback(o,s){S.useDebugValue(o);const i=Ke(s??ja);this.context[o]=i}useStateSetter(o){const s=S.useRef(void 0);return s.current===void 0&&(s.current=i=>{this.set(o,i)}),s.current}observe(o,s){let i;typeof o=="function"?i=o:i=this.selectors[o];let d=i(this.state);return s(d,d,this),this.subscribe(f=>{const h=i(f);if(!Object.is(d,h)){const y=d;d=h,s(h,y,this)}})}}const TH={open:Ze(n=>n.open),domReferenceElement:Ze(n=>n.domReferenceElement),referenceElement:Ze(n=>n.positionReference??n.referenceElement),floatingElement:Ze(n=>n.floatingElement),floatingId:Ze(n=>n.floatingId)};class lT extends rx{constructor(o){const{nested:s,noEmit:i,onOpenChange:d,triggerElements:f,...h}=o;super({...h,positionReference:h.referenceElement,domReferenceElement:h.referenceElement},{onOpenChange:d,dataRef:{current:{}},events:EA(),nested:s,noEmit:i,triggerElements:f},TH)}setOpen=(o,s)=>{if((!o||!this.state.open||Gk(s.event))&&(this.context.dataRef.current.openEvent=o?s.event:void 0),!this.context.noEmit){const i={open:o,reason:s.reason,nativeEvent:s.event,nested:this.context.nested,triggerElement:s.trigger};this.context.events.emit("openchange",i)}this.context.onOpenChange?.(o,s)}}function MH(n,o){const s=S.useRef(null),i=S.useRef(null);return S.useCallback(d=>{if(n!==void 0){if(s.current!==null){const f=s.current,h=i.current,y=o.context.triggerElements.getById(f);h&&y===h&&o.context.triggerElements.delete(f),s.current=null,i.current=null}d!==null&&(s.current=n,i.current=d,o.context.triggerElements.add(n,d))}},[o,n])}function rT(n,o,s,i){const d=s.useState("isMountedByTrigger",n),f=MH(n,s),h=Ke(y=>{if(f(y),!y||!s.select("open"))return;const v=s.select("activeTriggerId");if(v===n){s.update({activeTriggerElement:y,...i});return}v==null&&s.update({activeTriggerId:n,activeTriggerElement:y,...i})});return Fe(()=>{d&&s.update({activeTriggerElement:o.current,...i})},[d,s,o,...Object.values(i)]),{registerTrigger:h,isMountedByThisTrigger:d}}function fC(n){const o=n.useState("open");Fe(()=>{if(o&&!n.select("activeTriggerId")&&n.context.triggerElements.size===1){const s=n.context.triggerElements.entries().next();if(!s.done){const[i,d]=s.value;n.update({activeTriggerId:i,activeTriggerElement:d})}}},[o,n])}function mC(n,o,s){const{mounted:i,setMounted:d,transitionStatus:f}=xu(n);o.useSyncedValues({mounted:i,transitionStatus:f});const h=Ke(()=>{d(!1),o.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),s?.(),o.context.onOpenChangeComplete?.(!1)}),y=o.useState("preventUnmountingOnClose");return Ll({enabled:!y,open:n,ref:o.context.popupRef,onComplete(){n||h()}}),{forceUnmount:h,transitionStatus:f}}class xy{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(o,s){const i=this.idMap.get(o);if(i!==s&&(i!==void 0&&this.elementsSet.delete(i),this.elementsSet.add(s),this.idMap.set(o,s),process.env.NODE_ENV!=="production"&&this.elementsSet.size!==this.idMap.size))throw new Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.")}delete(o){const s=this.idMap.get(o);s&&(this.elementsSet.delete(s),this.idMap.delete(o))}hasElement(o){return this.elementsSet.has(o)}hasMatchingElement(o){for(const s of this.elementsSet)if(o(s))return!0;return!1}getById(o){return this.idMap.get(o)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function RH(){return new lT({open:!1,floatingElement:null,referenceElement:null,triggerElements:new xy,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function pC(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:"idle",floatingRootContext:RH(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Fn,inactiveTriggerProps:Fn,popupProps:Fn}}const ew=Ze(n=>n.triggerIdProp??n.activeTriggerId),hC={open:Ze(n=>n.openProp??n.open),mounted:Ze(n=>n.mounted),transitionStatus:Ze(n=>n.transitionStatus),floatingRootContext:Ze(n=>n.floatingRootContext),preventUnmountingOnClose:Ze(n=>n.preventUnmountingOnClose),payload:Ze(n=>n.payload),activeTriggerId:ew,activeTriggerElement:Ze(n=>n.mounted?n.activeTriggerElement:null),isTriggerActive:Ze((n,o)=>o!==void 0&&ew(n)===o),isOpenedByTrigger:Ze((n,o)=>o!==void 0&&ew(n)===o&&n.open),isMountedByTrigger:Ze((n,o)=>o!==void 0&&ew(n)===o&&n.mounted),triggerProps:Ze((n,o)=>o?n.activeTriggerProps:n.inactiveTriggerProps),popupProps:Ze(n=>n.popupProps),popupElement:Ze(n=>n.popupElement),positionerElement:Ze(n=>n.positionerElement)};function GA(n){const{open:o=!1,onOpenChange:s,elements:i={}}=n,d=Sp(),f=Fi()!=null;if(process.env.NODE_ENV!=="production"){const y=i.reference;y&&!bn(y)&&console.error("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `context.setPositionReference()`","instead.")}const h=Qa(()=>new lT({open:o,onOpenChange:s,referenceElement:i.reference??null,floatingElement:i.floating??null,triggerElements:new xy,floatingId:d,nested:f,noEmit:!1})).current;return Fe(()=>{const y={open:o,floatingId:d};i.reference!==void 0&&(y.referenceElement=i.reference,y.domReferenceElement=bn(i.reference)?i.reference:null),i.floating!==void 0&&(y.floatingElement=i.floating),h.update(y)},[o,d,i.reference,i.floating,h]),h.context.onOpenChange=s,h.context.nested=f,h.context.noEmit=!1,h}function OH(n={}){const{nodeId:o,externalTree:s}=n,i=GA(n),d=n.rootContext||i,f={reference:d.useState("referenceElement"),floating:d.useState("floatingElement"),domReference:d.useState("domReferenceElement")},[h,y]=S.useState(null),v=S.useRef(null),x=gf(s);Fe(()=>{f.domReference&&(v.current=f.domReference)},[f.domReference]);const C=VV({...n,elements:{...f,...h&&{reference:h}}}),w=S.useCallback(V=>{const H=bn(V)?{getBoundingClientRect:()=>V.getBoundingClientRect(),getClientRects:()=>V.getClientRects(),contextElement:V}:V;y(H),C.refs.setReference(H)},[C.refs]),[N,R]=S.useState(null),[O,j]=S.useState(null);d.useSyncedValue("referenceElement",N),d.useSyncedValue("domReferenceElement",bn(N)?N:null),d.useSyncedValue("floatingElement",O);const D=S.useCallback(V=>{(bn(V)||V===null)&&(v.current=V,R(V)),(bn(C.refs.reference.current)||C.refs.reference.current===null||V!==null&&!bn(V))&&C.refs.setReference(V)},[C.refs,R]),A=S.useCallback(V=>{j(V),C.refs.setFloating(V)},[C.refs]),z=S.useMemo(()=>({...C.refs,setReference:D,setFloating:A,setPositionReference:w,domReference:v}),[C.refs,D,A,w]),B=S.useMemo(()=>({...C.elements,domReference:f.domReference}),[C.elements,f.domReference]),U=d.useState("open"),L=d.useState("floatingId"),k=S.useMemo(()=>({...C,dataRef:d.context.dataRef,open:U,onOpenChange:d.setOpen,events:d.context.events,floatingId:L,refs:z,elements:B,nodeId:o,rootStore:d}),[C,z,B,o,d,U,L]);return Fe(()=>{d.context.dataRef.current.floatingContext=k;const V=x?.nodesRef.current.find(H=>H.id===o);V&&(V.context=k)}),S.useMemo(()=>({...C,context:k,refs:z,elements:B,rootStore:d}),[C,z,B,k,d])}function gC(n){const{popupStore:o,noEmit:s=!1,treatPopupAsFloatingElement:i=!1,onOpenChange:d}=n,f=Sp(),h=Fi()!=null,y=o.useState("open"),v=o.useState("activeTriggerElement"),x=o.useState(i?"popupElement":"positionerElement"),C=o.context.triggerElements,w=Qa(()=>new lT({open:y,referenceElement:v,floatingElement:x,triggerElements:C,onOpenChange:d,floatingId:f,nested:h,noEmit:s})).current;return Fe(()=>{const N={open:y,floatingId:f,referenceElement:v,floatingElement:x};bn(v)&&(N.domReferenceElement=v),w.state.positionReference===w.state.referenceElement&&(N.positionReference=v),w.update(N)},[y,f,v,x,w]),w.context.onOpenChange=d,w.context.nested=h,w.context.noEmit=s,w}const h2=TB&&Bk;function XA(n,o={}){const s="rootStore"in n?n.rootStore:n,{events:i,dataRef:d}=s.context,{enabled:f=!0,delay:h}=o,y=S.useRef(!1),v=S.useRef(null),x=$a(),C=S.useRef(!0);S.useEffect(()=>{const N=s.select("domReferenceElement");if(!f)return;const R=wa(N);function O(){const A=s.select("domReferenceElement");!s.select("open")&&aa(A)&&A===gr(sn(A))&&(y.current=!0)}function j(){C.current=!0}function D(){C.current=!1}return R.addEventListener("blur",O),h2&&(R.addEventListener("keydown",j,!0),R.addEventListener("pointerdown",D,!0)),()=>{R.removeEventListener("blur",O),h2&&(R.removeEventListener("keydown",j,!0),R.removeEventListener("pointerdown",D,!0))}},[s,f]),S.useEffect(()=>{if(!f)return;function N(R){if(R.reason===gu||R.reason===Wv){const O=s.select("domReferenceElement");bn(O)&&(v.current=O,y.current=!0)}}return i.on("openchange",N),()=>{i.off("openchange",N)}},[i,f,s]);const w=S.useMemo(()=>({onMouseLeave(){y.current=!1,v.current=null},onFocus(N){const R=N.currentTarget;if(y.current){if(v.current===R)return;y.current=!1,v.current=null}const O=bl(N.nativeEvent);if(bn(O)){if(h2&&!N.relatedTarget){if(!C.current&&!aC(O))return}else if(!DB(O))return}const j=Nw(N.relatedTarget,s.context.triggerElements),{nativeEvent:D,currentTarget:A}=N,z=typeof h=="function"?h():h;if(s.select("open")&&j||z===0||z===void 0){s.setOpen(!0,vt(Jg,D,A));return}x.start(z,()=>{y.current||s.setOpen(!0,vt(Jg,D,A))})},onBlur(N){y.current=!1,v.current=null;const R=N.relatedTarget,O=N.nativeEvent,j=bn(R)&&R.hasAttribute(iy("focus-guard"))&&R.getAttribute("data-type")==="outside";x.start(0,()=>{const D=s.select("domReferenceElement"),A=gr(D?D.ownerDocument:document);!R&&A===D||Ut(d.current.floatingContext?.refs.floating.current,A)||Ut(D,A)||j||Nw(R??A,s.context.triggerElements)||s.setOpen(!1,vt(Jg,O))})}}),[d,s,x,h]);return S.useMemo(()=>f?{reference:w,trigger:w}:{},[f,w])}const cN=iy("safe-polygon"),jH=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${Ik}`;function DH(n){return n?!!n.closest(jH):!1}class sT{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.unbindMouseMove=()=>{},this.restTimeoutPending=!1,this.openChangeTimeout=new Ks,this.restTimeout=new Ks,this.handleCloseOptions=void 0}static create(){return new sT}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}function PA(n){const o=Qa(sT.create).current,s=n.context.dataRef.current;return s.hoverInteractionState||(s.hoverInteractionState=o),lC(s.hoverInteractionState.disposeEffect),s.hoverInteractionState}const kH=new Set(["click","mousedown"]);function iT(n,o={}){const s="rootStore"in n?n.rootStore:n,i=s.useState("open"),d=s.useState("floatingElement"),f=s.useState("domReferenceElement"),{dataRef:h}=s.context,{enabled:y=!0,closeDelay:v=0}=o,x=PA(s),C=gf(),w=Fi(),N=Ke(()=>x.interactedInside?!0:h.current.openEvent?kH.has(h.current.openEvent.type):!1),R=Ke(()=>{const B=h.current.openEvent?.type;return B?.includes("mouse")&&B!=="mousedown"}),O=Ke(B=>Nw(B,s.context.triggerElements)),j=S.useCallback((B,U=!0)=>{const L=AH(v,x.pointerType);L&&!x.handler?x.openChangeTimeout.start(L,()=>s.setOpen(!1,vt(ao,B))):U&&(x.openChangeTimeout.clear(),s.setOpen(!1,vt(ao,B)))},[v,s,x]),D=Ke(()=>{x.unbindMouseMove(),x.handler=void 0}),A=Ke(()=>{if(x.performedPointerEventsMutation){const B=sn(d).body;B.style.pointerEvents="",B.removeAttribute(cN),x.performedPointerEventsMutation=!1}}),z=Ke(B=>{const U=bl(B);if(!DH(U)){x.interactedInside=!1;return}x.interactedInside=!0});Fe(()=>{i||(x.pointerType=void 0,x.restTimeoutPending=!1,x.interactedInside=!1,D(),A())},[i,x,D,A]),S.useEffect(()=>()=>{D()},[D]),S.useEffect(()=>A,[A]),Fe(()=>{if(y&&i&&x.handleCloseOptions?.blockPointerEvents&&R()&&bn(f)&&d){x.performedPointerEventsMutation=!0;const B=sn(d).body;B.setAttribute(cN,"");const U=f,L=d,k=C?.nodesRef.current.find(V=>V.id===w)?.context?.elements.floating;return k&&(k.style.pointerEvents=""),B.style.pointerEvents="none",U.style.pointerEvents="auto",L.style.pointerEvents="auto",()=>{B.style.pointerEvents="",U.style.pointerEvents="",L.style.pointerEvents=""}}},[y,i,f,d,x,R,C,w]),S.useEffect(()=>{if(!y)return;function B(V){N()||!h.current.floatingContext||!s.select("open")||O(V.relatedTarget)||(A(),D(),N()||j(V))}function U(V){x.openChangeTimeout.clear(),A(),x.handler?.(V),D()}function L(V){N()||j(V,!1)}const k=d;return k&&(k.addEventListener("mouseleave",B),k.addEventListener("mouseenter",U),k.addEventListener("mouseleave",L),k.addEventListener("pointerdown",z,!0)),()=>{k&&(k.removeEventListener("mouseleave",B),k.removeEventListener("mouseenter",U),k.removeEventListener("mouseleave",L),k.removeEventListener("pointerdown",z,!0))}},[y,d,s,h,N,O,j,A,D,z,x])}function AH(n,o){return o&&!bp(o)?0:typeof n=="function"?n():n}function g2(n){return typeof n=="function"?n():n}const zH={current:null};function cT(n,o={}){const s="rootStore"in n?n.rootStore:n,{dataRef:i,events:d}=s.context,{enabled:f=!0,delay:h=0,handleClose:y=null,mouseOnly:v=!1,restMs:x=0,move:C=!0,triggerElementRef:w=zH,externalTree:N,isActiveTrigger:R=!0}=o,O=gf(N),j=PA(s),D=ho(y),A=ho(h),z=ho(x),B=ho(f);R&&(j.handleCloseOptions=D.current?.__options);const U=Ke(()=>j.interactedInside?!0:i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1),L=Ke(Z=>Nw(Z,s.context.triggerElements)),k=S.useCallback((Z,Q=!0)=>{const G=yw(A.current,"close",j.pointerType);G&&!j.handler?j.openChangeTimeout.start(G,()=>s.setOpen(!1,vt(ao,Z))):Q&&(j.openChangeTimeout.clear(),s.setOpen(!1,vt(ao,Z)))},[A,s,j]),V=Ke(()=>{j.unbindMouseMove(),j.handler=void 0}),H=Ke(()=>{if(j.performedPointerEventsMutation){const Z=sn(s.select("domReferenceElement")).body;Z.style.pointerEvents="",Z.removeAttribute(cN),j.performedPointerEventsMutation=!1}});S.useEffect(()=>{if(!f)return;function Z(Q){Q.open||(j.openChangeTimeout.clear(),j.restTimeout.clear(),j.blockMouseMove=!0,j.restTimeoutPending=!1)}return d.on("openchange",Z),()=>{d.off("openchange",Z)}},[f,d,j]);const K=Ke(Z=>{if(U()||!i.current.floatingContext||L(Z.relatedTarget))return;const Q=w.current;D.current?.({...i.current.floatingContext,tree:O,x:Z.clientX,y:Z.clientY,onClose(){H(),V(),!U()&&Q===s.select("domReferenceElement")&&k(Z)}})(Z)});return S.useEffect(()=>{if(!f)return;const Z=w.current??(R?s.select("domReferenceElement"):null);if(!bn(Z))return;function Q(W){if(j.openChangeTimeout.clear(),j.blockMouseMove=!1,v&&!bp(j.pointerType)||g2(z.current)>0&&!yw(A.current,"open"))return;const te=yw(A.current,"open",j.pointerType),Y=s.select("domReferenceElement"),P=s.context.triggerElements,F=(P.hasElement(W.target)||P.hasMatchingElement(se=>Ut(se,W.target)))&&(!Y||!Ut(Y,W.target)),ee=W.currentTarget??null,oe=s.select("open"),we=!oe||F;F&&oe?s.setOpen(!0,vt(ao,W,ee)):te?j.openChangeTimeout.start(te,()=>{we&&s.setOpen(!0,vt(ao,W,ee))}):we&&s.setOpen(!0,vt(ao,W,ee))}function G(W){if(U()){H();return}j.unbindMouseMove();const te=s.select("domReferenceElement"),Y=sn(te);if(j.restTimeout.clear(),j.restTimeoutPending=!1,L(W.relatedTarget))return;if(D.current&&i.current.floatingContext){s.select("open")||j.openChangeTimeout.clear();const F=w.current;j.handler=D.current({...i.current.floatingContext,tree:O,x:W.clientX,y:W.clientY,onClose(){H(),V(),B.current&&!U()&&F===s.select("domReferenceElement")&&k(W,!0)}});const ee=j.handler;ee(W),Y.addEventListener("mousemove",ee),j.unbindMouseMove=()=>{Y.removeEventListener("mousemove",ee)};return}(j.pointerType!=="touch"||!Ut(s.select("floatingElement"),W.relatedTarget))&&k(W)}function q(W){K(W)}return s.select("open")&&Z.addEventListener("mouseleave",q),C&&Z.addEventListener("mousemove",Q,{once:!0}),Z.addEventListener("mouseenter",Q),Z.addEventListener("mouseleave",G),()=>{Z.removeEventListener("mouseleave",q),C&&Z.removeEventListener("mousemove",Q),Z.removeEventListener("mouseenter",Q),Z.removeEventListener("mouseleave",G)}},[V,H,i,A,k,s,f,D,K,j,R,U,L,v,C,z,w,O,B]),S.useMemo(()=>{if(!f)return;function Z(Q){j.pointerType=Q.pointerType}return{onPointerDown:Z,onPointerEnter:Z,onMouseMove(Q){const{nativeEvent:G}=Q,q=Q.currentTarget,W=s.select("domReferenceElement"),te=s.context.triggerElements,Y=s.select("open"),P=(te.hasElement(Q.target)||te.hasMatchingElement(ee=>Ut(ee,Q.target)))&&(!W||!Ut(W,Q.target));if(v&&!bp(j.pointerType)||Y&&!P||g2(z.current)===0||!P&&j.restTimeoutPending&&Q.movementX**2+Q.movementY**2<2)return;j.restTimeout.clear();function F(){if(j.restTimeoutPending=!1,U())return;const ee=s.select("open");!j.blockMouseMove&&(!ee||P)&&s.setOpen(!0,vt(ao,G,q))}j.pointerType==="touch"?Bl.flushSync(()=>{F()}):P&&Y?F():(j.restTimeoutPending=!0,j.restTimeout.start(g2(z.current),F))}}},[f,j,U,v,s,z])}function Cp(n=[]){const o=n.map(x=>x?.reference),s=n.map(x=>x?.floating),i=n.map(x=>x?.item),d=n.map(x=>x?.trigger),f=S.useCallback(x=>tw(x,n,"reference"),o),h=S.useCallback(x=>tw(x,n,"floating"),s),y=S.useCallback(x=>tw(x,n,"item"),i),v=S.useCallback(x=>tw(x,n,"trigger"),d);return S.useMemo(()=>({getReferenceProps:f,getFloatingProps:h,getItemProps:y,getTriggerProps:v}),[f,h,y,v])}function tw(n,o,s){const i=new Map,d=s==="item",f={};s==="floating"&&(f.tabIndex=-1,f[eN]="");for(const h in n)d&&n&&(h===Vk||h===Hk)||(f[h]=n[h]);for(let h=0;h<o.length;h+=1){let y;const v=o[h]?.[s];typeof v=="function"?y=n?v(n):null:y=v,y&&xj(f,y,d,i)}return xj(f,n,d,i),f}function xj(n,o,s,i){for(const d in o){const f=o[d];s&&(d===Vk||d===Hk)||(d.startsWith("on")?(i.has(d)||i.set(d,[]),typeof f=="function"&&(i.get(d)?.push(f),n[d]=(...h)=>i.get(d)?.map(y=>y(...h)).find(y=>y!==void 0))):n[d]=f)}}const _H="Escape";function yC(n,o,s){switch(n){case"vertical":return o;case"horizontal":return s;default:return o||s}}function nw(n,o){return yC(o,n===HN||n===Jv,n===af||n===of)}function y2(n,o,s){return yC(o,n===Jv,s?n===af:n===of)||n==="Enter"||n===" "||n===""}function UH(n,o,s){return yC(o,s?n===af:n===of,n===Jv)}function BH(n,o,s,i){const d=s?n===of:n===af,f=n===HN;return o==="both"||o==="horizontal"&&i&&i>1?n===_H:yC(o,d,f)}function $A(n,o){const s="rootStore"in n?n.rootStore:n,i=s.useState("open"),d=s.useState("floatingElement"),f=s.useState("domReferenceElement"),h=s.context.dataRef,{listRef:y,activeIndex:v,onNavigate:x=()=>{},enabled:C=!0,selectedIndex:w=null,allowEscape:N=!1,loopFocus:R=!1,nested:O=!1,rtl:j=!1,virtual:D=!1,focusItemOnOpen:A="auto",focusItemOnHover:z=!0,openOnArrowKeyDown:B=!0,disabledIndices:U=void 0,orientation:L="vertical",parentOrientation:k,cols:V=1,id:H,resetOnPointerLeave:K=!0,externalTree:Z}=o;process.env.NODE_ENV!=="production"&&(N&&(R||console.warn("`useListNavigation` looping must be enabled to allow escaping."),D||console.warn("`useListNavigation` must be virtual to allow escaping.")),L==="vertical"&&V>1&&console.warn("In grid list navigation mode (`cols` > 1), the `orientation` should",'be either "horizontal" or "both".'));const Q=Yv(d),G=ho(Q),q=Fi(),W=gf(Z);Fe(()=>{h.current.orientation=L},[h,L]);const te=tN(f),Y=S.useRef(A),P=S.useRef(w??-1),F=S.useRef(null),ee=S.useRef(!0),oe=Ke(Me=>{x(P.current===-1?null:P.current,Me)}),we=S.useRef(oe),se=S.useRef(!!d),Ce=S.useRef(i),re=S.useRef(!1),he=S.useRef(!1),le=ho(U),Se=ho(i),ze=ho(w),je=ho(K),ve=Ke(()=>{function Me(We){D?W?.events.emit("virtualfocus",We):Bv(We,{sync:re.current,preventScroll:!0})}const Re=y.current[P.current],De=he.current;Re&&Me(Re),(re.current?We=>We():requestAnimationFrame)(()=>{const We=y.current[P.current]||Re;if(!We)return;Re||Me(We),ce&&(De||!ee.current)&&We.scrollIntoView?.({block:"nearest",inline:"nearest"})})});Fe(()=>{C&&(i&&d?(P.current=w??-1,Y.current&&w!=null&&(he.current=!0,oe())):se.current&&(P.current=-1,we.current()))},[C,i,d,w,oe]),Fe(()=>{if(C){if(!i){re.current=!1;return}if(d)if(v==null){if(re.current=!1,ze.current!=null)return;if(se.current&&(P.current=-1,ve()),(!Ce.current||!se.current)&&Y.current&&(F.current!=null||Y.current===!0&&F.current==null)){let Me=0;const Re=()=>{y.current[0]==null?(Me<2&&(Me?requestAnimationFrame:queueMicrotask)(Re),Me+=1):(P.current=F.current==null||y2(F.current,L,j)||O?gw(y):oN(y),F.current=null,oe())};Re()}}else ey(y,v)||(P.current=v,ve(),he.current=!1)}},[C,i,d,v,ze,O,y,L,j,oe,ve,le]),Fe(()=>{if(!C||d||!W||D||!se.current)return;const Me=W.nodesRef.current,Re=Me.find(We=>We.id===q)?.context?.elements.floating,De=gr(sn(d)),Ie=Me.some(We=>We.context&&Ut(We.context.elements.floating,De));Re&&!Ie&&ee.current&&Re.focus({preventScroll:!0})},[C,d,W,q,D]),Fe(()=>{we.current=oe,Ce.current=i,se.current=!!d}),Fe(()=>{i||(F.current=null,Y.current=A)},[i,A]);const fe=v!=null,ce=S.useMemo(()=>{function Me(De){if(!Se.current)return;const Ie=y.current.indexOf(De.currentTarget);Ie!==-1&&P.current!==Ie&&(P.current=Ie,oe(De))}return{onFocus(De){re.current=!0,Me(De)},onClick:({currentTarget:De})=>De.focus({preventScroll:!0}),onMouseMove(De){re.current=!0,he.current=!1,z&&Me(De)},onPointerLeave(De){if(!Se.current||!ee.current||De.pointerType==="touch")return;re.current=!0;const Ie=De.relatedTarget;!z||y.current.includes(Ie)||je.current&&(Bv(null,{sync:!0}),P.current=-1,oe(De),D||G.current?.focus({preventScroll:!0}))}}},[Se,G,z,y,oe,je,D]),ae=S.useCallback(()=>k??W?.nodesRef.current.find(Me=>Me.id===q)?.context?.dataRef?.current.orientation,[q,W,k]),ue=Ke(Me=>{if(ee.current=!1,re.current=!0,Me.which===229||!Se.current&&Me.currentTarget===G.current)return;if(O&&BH(Me.key,L,j,V)){nw(Me.key,ae())||Po(Me),s.setOpen(!1,vt(pw,Me.nativeEvent)),aa(f)&&(D?W?.events.emit("virtualfocus",f):f.focus());return}const Re=P.current,De=gw(y,U),Ie=oN(y,U);if(te||(Me.key==="Home"&&(Po(Me),P.current=De,oe(Me)),Me.key==="End"&&(Po(Me),P.current=Ie,oe(Me))),V>1){const We=Array.from({length:y.current.length},()=>({width:1,height:1})),$e=$k(We,V,!1),st=$e.findIndex(Tt=>Tt!=null&&!lf(y,Tt,U)),nn=$e.reduce((Tt,Lt,Kt)=>Lt!=null&&!lf(y,Lt,U)?Kt:Tt,-1),ln=$e[Pk({current:$e.map(Tt=>Tt!=null?y.current[Tt]:null)},{event:Me,orientation:L,loopFocus:R,rtl:j,cols:V,disabledIndices:Zk([...(typeof U!="function"?U:null)||y.current.map((Tt,Lt)=>lf(y,Lt,U)?Lt:void 0),void 0],$e),minIndex:st,maxIndex:nn,prevIndex:Qk(P.current>Ie?De:P.current,We,$e,V,Me.key===Jv?"bl":Me.key===(j?af:of)?"tr":"tl"),stopEvent:!0})];if(ln!=null&&(P.current=ln,oe(Me)),L==="both")return}if(nw(Me.key,L)){if(Po(Me),i&&!D&&gr(Me.currentTarget.ownerDocument)===Me.currentTarget){P.current=y2(Me.key,L,j)?De:Ie,oe(Me);return}y2(Me.key,L,j)?R?Re>=Ie?N&&Re!==y.current.length?P.current=-1:(re.current=!1,P.current=De):P.current=Uo(y,{startingIndex:Re,disabledIndices:U}):P.current=Math.min(Ie,Uo(y,{startingIndex:Re,disabledIndices:U})):R?Re<=De?N&&Re!==-1?P.current=y.current.length:(re.current=!1,P.current=Ie):P.current=Uo(y,{startingIndex:Re,decrement:!0,disabledIndices:U}):P.current=Math.max(De,Uo(y,{startingIndex:Re,decrement:!0,disabledIndices:U})),ey(y,P.current)&&(P.current=-1),oe(Me)}}),be=S.useMemo(()=>D&&i&&fe&&{"aria-activedescendant":`${H}-${v}`},[D,i,fe,H,v]),ie=S.useMemo(()=>({"aria-orientation":L==="both"?void 0:L,...te?{}:be,onKeyDown(Me){if(Me.key==="Tab"&&Me.shiftKey&&i&&!D){const Re=bl(Me.nativeEvent);if(Re&&!Ut(G.current,Re))return;Po(Me),s.setOpen(!1,vt(Zi,Me.nativeEvent)),aa(f)&&f.focus();return}ue(Me)},onPointerMove(){ee.current=!0}}),[be,ue,G,L,te,s,i,D,f]),Oe=S.useMemo(()=>{function Me(De){A==="auto"&&Yk(De.nativeEvent)&&(Y.current=!D)}function Re(De){Y.current=A,A==="auto"&&qk(De.nativeEvent)&&(Y.current=!0)}return{onKeyDown(De){const Ie=s.select("open");ee.current=!1;const We=De.key.startsWith("Arrow"),$e=UH(De.key,ae(),j),st=nw(De.key,L),nn=(O?$e:st)||De.key==="Enter"||De.key.trim()==="";if(D&&Ie)return ue(De);if(!(!Ie&&!B&&We)){if(nn){const ln=nw(De.key,ae());F.current=O&&ln?null:De.key}if(O){$e&&(Po(De),Ie?(P.current=gw(y,le.current),oe(De)):s.setOpen(!0,vt(pw,De.nativeEvent,De.currentTarget)));return}st&&(ze.current!=null&&(P.current=ze.current),Po(De),!Ie&&B?s.setOpen(!0,vt(pw,De.nativeEvent,De.currentTarget)):ue(De),Ie&&oe(De))}},onFocus(De){s.select("open")&&!D&&(P.current=-1,oe(De))},onPointerDown:Re,onPointerEnter:Re,onMouseDown:Me,onClick:Me}},[ue,le,A,y,O,oe,s,B,L,ae,j,ze,D]),de=S.useMemo(()=>({...be,...Oe}),[be,Oe]);return S.useMemo(()=>C?{reference:de,floating:ie,item:ce,trigger:Oe}:{},[C,de,ie,Oe,ce])}const LH=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function uT(n,o={}){const s="rootStore"in n?n.rootStore:n,i=s.useState("open"),d=s.useState("floatingId"),f=s.useState("domReferenceElement"),h=s.useState("floatingElement"),{role:y="dialog"}=o,v=Sp(),x=f?.id||v,C=S.useMemo(()=>Yv(h)?.id||d,[h,d]),w=LH.get(y)??y,R=Fi()!=null,O=S.useMemo(()=>w==="tooltip"||y==="label"?Fn:{"aria-haspopup":w==="alertdialog"?"dialog":w,"aria-expanded":"false",...w==="listbox"&&{role:"combobox"},...w==="menu"&&R&&{role:"menuitem"},...y==="select"&&{"aria-autocomplete":"none"},...y==="combobox"&&{"aria-autocomplete":"list"}},[w,R,y]),j=S.useMemo(()=>w==="tooltip"||y==="label"?{[`aria-${y==="label"?"labelledby":"describedby"}`]:i?C:void 0}:{...O,"aria-expanded":i?"true":"false","aria-controls":i?C:void 0,...w==="menu"&&{id:x}},[w,C,i,x,y,O]),D=S.useMemo(()=>{const z={id:C,...w&&{role:w}};return w==="tooltip"||y==="label"?z:{...z,...w==="menu"&&{"aria-labelledby":x}}},[w,C,x,y]),A=S.useCallback(({active:z,selected:B})=>{const U={role:"option",...z&&{id:`${C}-fui-option`}};switch(y){case"select":case"combobox":return{...U,"aria-selected":B}}return{}},[C,y]);return S.useMemo(()=>({reference:j,floating:D,item:A,trigger:O}),[j,D,O,A])}function QA(n,o){const s="rootStore"in n?n.rootStore:n,i=s.context.dataRef,d=s.useState("open"),{listRef:f,activeIndex:h,onMatch:y,onTypingChange:v,enabled:x=!0,resetMs:C=750,selectedIndex:w=null}=o,N=$a(),R=S.useRef(""),O=S.useRef(w??h??-1),j=S.useRef(null);Fe(()=>{!d&&w!==null||(N.clear(),j.current=null,R.current!==""&&(R.current=""))},[d,w,N]),Fe(()=>{d&&R.current===""&&(O.current=w??h??-1)},[d,w,h]);const D=Ke(L=>{L?i.current.typing||(i.current.typing=L,v?.(L)):i.current.typing&&(i.current.typing=L,v?.(L))}),A=Ke(L=>{function k(G,q,W){const te=q.find(Y=>Y?.toLocaleLowerCase().indexOf(W.toLocaleLowerCase())===0);return te?G.indexOf(te):-1}const V=f.current;if(R.current.length>0&&R.current[0]!==" "&&(k(V,V,R.current)===-1?D(!1):L.key===" "&&Po(L)),V==null||L.key.length!==1||L.ctrlKey||L.metaKey||L.altKey)return;d&&L.key!==" "&&(Po(L),D(!0));const H=R.current==="";H&&(O.current=w??h??-1),V.every(G=>G?G[0]?.toLocaleLowerCase()!==G[1]?.toLocaleLowerCase():!0)&&R.current===L.key&&(R.current="",O.current=j.current),R.current+=L.key,N.start(C,()=>{R.current="",O.current=j.current,D(!1)});const Z=H?w??h??-1:O.current,Q=k(V,[...V.slice((Z||0)+1),...V.slice(0,(Z||0)+1)],R.current);Q!==-1?(y?.(Q),j.current=Q):L.key!==" "&&(R.current="",D(!1))}),z=Ke(L=>{const k=L.relatedTarget,V=s.select("domReferenceElement"),H=s.select("floatingElement"),K=Ut(V,k),Z=Ut(H,k);K||Z||(N.clear(),R.current="",O.current=j.current,D(!1))}),B=S.useMemo(()=>({onKeyDown:A,onBlur:z}),[A,z]),U=S.useMemo(()=>({onKeyDown:A,onKeyUp(L){L.key===" "&&D(!1)},onBlur:z}),[A,z,D]);return S.useMemo(()=>x?{reference:B,floating:U}:{},[x,B,U])}function Sj(n,o){const[s,i]=n;let d=!1;const f=o.length;for(let h=0,y=f-1;h<f;y=h++){const[v,x]=o[h]||[0,0],[C,w]=o[y]||[0,0];x>=i!=w>=i&&s<=(C-v)*(i-x)/(w-x)+v&&(d=!d)}return d}function VH(n,o){return n[0]>=o.x&&n[0]<=o.x+o.width&&n[1]>=o.y&&n[1]<=o.y+o.height}function dT(n={}){const{buffer:o=.5,blockPointerEvents:s=!1,requireIntent:i=!0}=n,d=new Ks;let f=!1,h=null,y=null,v=typeof performance<"u"?performance.now():0;function x(w,N){const R=performance.now(),O=R-v;if(h===null||y===null||O===0)return h=w,y=N,v=R,null;const j=w-h,D=N-y,z=Math.sqrt(j*j+D*D)/O;return h=w,y=N,v=R,z}const C=({x:w,y:N,placement:R,elements:O,onClose:j,nodeId:D,tree:A})=>function(B){function U(){d.clear(),j()}if(d.clear(),!O.domReference||!O.floating||R==null||w==null||N==null)return;const{clientX:L,clientY:k}=B,V=[L,k],H=bl(B),K=B.type==="mouseleave",Z=Ut(O.floating,H),Q=Ut(O.domReference,H),G=O.domReference.getBoundingClientRect(),q=O.floating.getBoundingClientRect(),W=R.split("-")[0],te=w>q.right-q.width/2,Y=N>q.bottom-q.height/2,P=VH(V,G),F=q.width>G.width,ee=q.height>G.height,oe=(F?G:q).left,we=(F?G:q).right,se=(ee?G:q).top,Ce=(ee?G:q).bottom;if(Z&&(f=!0,!K))return;if(Q&&(f=!1),Q&&!K){f=!0;return}if(K&&bn(B.relatedTarget)&&Ut(O.floating,B.relatedTarget)||A&&fp(A.nodesRef.current,D).some(({context:le})=>le?.open))return;if(W==="top"&&N>=G.bottom-1||W==="bottom"&&N<=G.top+1||W==="left"&&w>=G.right-1||W==="right"&&w<=G.left+1)return U();let re=[];switch(W){case"top":re=[[oe,G.top+1],[oe,q.bottom-1],[we,q.bottom-1],[we,G.top+1]];break;case"bottom":re=[[oe,q.top+1],[oe,G.bottom-1],[we,G.bottom-1],[we,q.top+1]];break;case"left":re=[[q.right-1,Ce],[q.right-1,se],[G.left+1,se],[G.left+1,Ce]];break;case"right":re=[[G.right-1,Ce],[G.right-1,se],[q.left+1,se],[q.left+1,Ce]];break}function he([le,Se]){switch(W){case"top":{const ze=[F?le+o/2:te?le+o*4:le-o*4,Se+o+1],je=[F?le-o/2:te?le+o*4:le-o*4,Se+o+1],ve=[[q.left,te||F?q.bottom-o:q.top],[q.right,te?F?q.bottom-o:q.top:q.bottom-o]];return[ze,je,...ve]}case"bottom":{const ze=[F?le+o/2:te?le+o*4:le-o*4,Se-o],je=[F?le-o/2:te?le+o*4:le-o*4,Se-o],ve=[[q.left,te||F?q.top+o:q.bottom],[q.right,te?F?q.top+o:q.bottom:q.top+o]];return[ze,je,...ve]}case"left":{const ze=[le+o+1,ee?Se+o/2:Y?Se+o*4:Se-o*4],je=[le+o+1,ee?Se-o/2:Y?Se+o*4:Se-o*4];return[...[[Y||ee?q.right-o:q.left,q.top],[Y?ee?q.right-o:q.left:q.right-o,q.bottom]],ze,je]}case"right":{const ze=[le-o,ee?Se+o/2:Y?Se+o*4:Se-o*4],je=[le-o,ee?Se-o/2:Y?Se+o*4:Se-o*4],ve=[[Y||ee?q.left+o:q.right,q.top],[Y?ee?q.left+o:q.right:q.left+o,q.bottom]];return[ze,je,...ve]}default:return[]}}if(!Sj([L,k],re)){if(f&&!P)return U();if(!K&&i){const le=x(B.clientX,B.clientY);if(le!==null&&le<.1)return U()}Sj([L,k],he([w,N]))?!f&&i&&d.start(40,U):U()}};return C.__options={blockPointerEvents:s},C}const ZA=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(ZA.displayName="ToolbarRootContext");function fT(n){return S.useContext(ZA)}function yf(n){return n==="starting"?rU:Fn}const HH={...Js,...gs},KA=S.forwardRef(function(o,s){const{render:i,className:d,finalFocus:f,...h}=o,{store:y}=wp(),{side:v,align:x}=vA(),C=fT()!=null,w=y.useState("open"),N=y.useState("transitionStatus"),R=y.useState("popupProps"),O=y.useState("mounted"),j=y.useState("instantType"),D=y.useState("activeTriggerElement"),A=y.useState("parent"),z=y.useState("lastOpenChangeReason"),B=y.useState("rootId"),U=y.useState("floatingRootContext"),L=y.useState("floatingTreeRoot"),k=y.useState("closeDelay"),V=y.useState("activeTriggerElement"),H=A.type==="context-menu";Ll({open:w,ref:y.context.popupRef,onComplete(){w&&y.context.onOpenChangeComplete?.(!0)}}),S.useEffect(()=>{function W(te){y.setOpen(!1,vt(te.reason,te.domEvent))}return L.events.on("close",W),()=>{L.events.off("close",W)}},[L.events,y]);const K=y.useState("hoverEnabled"),Z=y.useState("disabled");iT(U,{enabled:K&&!Z&&!H&&A.type!=="menubar",closeDelay:k});const Q={transitionStatus:N,side:v,align:x,open:w,nested:A.type==="menu",instant:j},G=zt("div",o,{state:Q,ref:[s,y.context.popupRef],stateAttributesMapping:HH,props:[R,{onKeyDown(W){C&&sC.has(W.key)&&W.stopPropagation()}},yf(N),h,{"data-rootownerid":B}]});let q=A.type===void 0||H;return(D||A.type==="menubar"&&z!==tC)&&(q=!0),m.jsx(uC,{context:U,modal:H,disabled:!O,returnFocus:f===void 0?q:f,initialFocus:A.type!=="menu",restoreFocus:!0,externalTree:A.type!=="menubar"?L:void 0,previousFocusableElement:V,nextFocusableElement:A.type===void 0?y.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:A.type===void 0?y.context.beforeContentFocusGuardRef:void 0,children:G})});process.env.NODE_ENV!=="production"&&(KA.displayName="MenuPopup");const mT=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(mT.displayName="MenuPortalContext");function IH(){const n=S.useContext(mT);if(n===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Menu.Portal> is missing.":Nn(32));return n}const FA=S.forwardRef(function(o,s){const{keepMounted:i=!1,...d}=o,{store:f}=wp();return f.useState("mounted")||i?m.jsx(mT.Provider,{value:i,children:m.jsx(ox,{ref:s,...d})}):null});process.env.NODE_ENV!=="production"&&(FA.displayName="MenuPortal");const YH=n=>({name:"arrow",options:n,async fn(o){const{x:s,y:i,placement:d,rects:f,platform:h,elements:y,middlewareData:v}=o,{element:x,padding:C=0,offsetParent:w="real"}=yu(n,o)||{};if(x==null)return{};const N=Xk(C),R={x:s,y:i},O=qN(d),j=YN(O),D=await h.getDimensions(x),A=O==="y",z=A?"top":"left",B=A?"bottom":"right",U=A?"clientHeight":"clientWidth",L=f.reference[j]+f.reference[O]-R[O]-f.floating[j],k=R[O]-f.reference[O],V=w==="real"?await h.getOffsetParent?.(x):y.floating;let H=y.floating[U]||f.floating[j];(!H||!await h.isElement?.(V))&&(H=y.floating[U]||f.floating[j]);const K=L/2-k/2,Z=H/2-D[j]/2-1,Q=Math.min(N[z],Z),G=Math.min(N[B],Z),q=Q,W=H-D[j]-G,te=H/2-D[j]/2+K,Y=nN(q,te,W),P=!v.arrow&&hf(d)!=null&&te!==Y&&f.reference[j]/2-(te<q?Q:G)-D[j]/2<0,F=P?te<q?te-q:te-W:0;return{[O]:R[O]+F,data:{[O]:Y,centerOffset:te-Y-F,...P&&{alignmentOffset:F}},reset:P}}}),qH=(n,o)=>({...YH(n),options:[n,o]}),GH={name:"hide",async fn(n){const{width:o,height:s,x:i,y:d}=n.rects.reference,f=o===0&&s===0&&i===0&&d===0;return{data:{referenceHidden:(await XV().fn(n)).data?.referenceHidden||f}}}},vw={sideX:"left",sideY:"top"},WA={name:"adaptiveOrigin",async fn(n){const{x:o,y:s,rects:{floating:i},elements:{floating:d},platform:f,strategy:h,placement:y}=n,v=wa(d),x=v.getComputedStyle(d);if(!(x.transitionDuration!=="0s"&&x.transitionDuration!==""))return{x:o,y:s,data:vw};const w=await f.getOffsetParent?.(d);let N={width:0,height:0};if(h==="fixed"&&v?.visualViewport)N={width:v.visualViewport.width,height:v.visualViewport.height};else if(w===v){const z=sn(d);N={width:z.documentElement.clientWidth,height:z.documentElement.clientHeight}}else await f.isElement?.(w)&&(N=await f.getDimensions(w));const R=Ul(y);let O=o,j=s;R==="left"&&(O=N.width-(o+i.width)),R==="top"&&(j=N.height-(s+i.height));const D=R==="left"?"right":vw.sideX,A=R==="top"?"bottom":vw.sideY;return{x:O,y:j,data:{sideX:D,sideY:A}}}};function JA(n,o,s){const i=n==="inline-start"||n==="inline-end";return{top:"top",right:i?s?"inline-start":"inline-end":"right",bottom:"bottom",left:i?s?"inline-end":"inline-start":"left"}[o]}function wj(n,o,s){const{rects:i,placement:d}=n;return{side:JA(o,Ul(d),s),align:hf(d)||"center",anchor:{width:i.reference.width,height:i.reference.height},positioner:{width:i.floating.width,height:i.floating.height}}}function bC(n){const{anchor:o,positionMethod:s="absolute",side:i="bottom",sideOffset:d=0,align:f="center",alignOffset:h=0,collisionBoundary:y,collisionPadding:v=5,sticky:x=!1,arrowPadding:C=5,disableAnchorTracking:w=!1,keepMounted:N=!1,floatingRootContext:R,mounted:O,collisionAvoidance:j,shiftCrossAxis:D=!1,nodeId:A,adaptiveOrigin:z,lazyFlip:B=!1,externalTree:U}=n,[L,k]=S.useState(null);!O&&L!==null&&k(null);const V=j.side||"flip",H=j.align||"flip",K=j.fallbackAxisSide||"end",Z=typeof o=="function"?o:void 0,Q=Ke(Z),G=Z?Q:o,q=ho(o),te=Jw()==="rtl",Y=L||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":te?"left":"right","inline-start":te?"right":"left"}[i],P=f==="center"?Y:`${Y}-${f}`;let F=v;const ee=1,oe=i==="bottom"?ee:0,we=i==="top"?ee:0,se=i==="right"?ee:0,Ce=i==="left"?ee:0;typeof F=="number"?F={top:F+oe,right:F+Ce,bottom:F+we,left:F+se}:F&&(F={top:(F.top||0)+oe,right:(F.right||0)+Ce,bottom:(F.bottom||0)+we,left:(F.left||0)+se});const re={boundary:y==="clipping-ancestors"?"clippingAncestors":y,padding:F},he=S.useRef(null),le=ho(d),Se=ho(h),ve=[HV(Mt=>{const mn=wj(Mt,i,te),at=typeof le.current=="function"?le.current(mn):le.current,lt=typeof Se.current=="function"?Se.current(mn):Se.current;return{mainAxis:at,crossAxis:lt,alignmentAxis:lt}},[typeof d!="function"?d:0,typeof h!="function"?h:0,te,i])],fe=H==="none"&&V!=="shift",ce=!fe&&(x||D||V==="shift"),ae=V==="none"?null:qV({...re,padding:{top:F.top+ee,right:F.right+ee,bottom:F.bottom+ee,left:F.left+ee},mainAxis:!D&&V==="flip",crossAxis:H==="flip"?"alignment":!1,fallbackAxisSideDirection:K}),ue=fe?null:IV(Mt=>{const mn=sn(Mt.elements.floating).documentElement;return{...re,rootBoundary:D?{x:0,y:0,width:mn.clientWidth,height:mn.clientHeight}:void 0,mainAxis:H!=="none",crossAxis:ce,limiter:x||D?void 0:YV(at=>{if(!he.current)return{};const{width:lt,height:tt}=he.current.getBoundingClientRect(),ht=ms(Ul(at.placement)),Yt=ht==="y"?lt:tt,it=ht==="y"?F.left+F.right:F.top+F.bottom;return{offset:Yt/2+it/2}})}},[re,x,D,F,H]);V==="shift"||H==="shift"||f==="center"?ve.push(ue,ae):ve.push(ae,ue),ve.push(GV({...re,apply({elements:{floating:Mt},rects:{reference:mn},availableWidth:at,availableHeight:lt}){const tt=Mt.style;tt.setProperty("--available-width",`${at}px`),tt.setProperty("--available-height",`${lt}px`),tt.setProperty("--anchor-width",`${mn.width}px`),tt.setProperty("--anchor-height",`${mn.height}px`)}}),qH(()=>({element:he.current||document.createElement("div"),padding:C,offsetParent:"floating"}),[C]),{name:"transformOrigin",fn(Mt){const{elements:mn,middlewareData:at,placement:lt,rects:tt,y:ht}=Mt,Yt=Ul(lt),it=ms(Yt),oa=he.current,yo=at.arrow?.x||0,oo=at.arrow?.y||0,bo=oa?.clientWidth||0,lo=oa?.clientHeight||0,Rt=yo+bo/2,pn=oo+lo/2,Hn=Math.abs(at.shift?.y||0),Tn=tt.reference.height/2,qn=typeof d=="function"?d(wj(Mt,i,te)):d,Sr=Hn>qn,ec={top:`${Rt}px calc(100% + ${qn}px)`,bottom:`${Rt}px ${-qn}px`,left:`calc(100% + ${qn}px) ${pn}px`,right:`${-qn}px ${pn}px`}[Yt],bf=`${Rt}px ${tt.reference.y+Tn-ht}px`;return mn.floating.style.setProperty("--transform-origin",ce&&it==="y"&&Sr?bf:ec),{}}},GH,z),Fe(()=>{!O&&R&&R.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[O,R]);const be=S.useMemo(()=>({elementResize:!w&&typeof ResizeObserver<"u",layoutShift:!w&&typeof IntersectionObserver<"u"}),[w]),{refs:ie,elements:Oe,x:de,y:Me,middlewareData:Re,update:De,placement:Ie,context:We,isPositioned:$e,floatingStyles:st}=OH({rootContext:R,placement:P,middleware:ve,strategy:s,whileElementsMounted:N?void 0:(...Mt)=>cj(...Mt,be),nodeId:A,externalTree:U}),{sideX:nn,sideY:ln}=Re.adaptiveOrigin||vw,Tt=$e?s:"fixed",Lt=S.useMemo(()=>{const Mt=z?{position:Tt,[nn]:de,[ln]:Me}:{position:Tt,...st};return $e||(Mt.opacity=0),Mt},[z,Tt,nn,de,ln,Me,st,$e]),Kt=S.useRef(null);Fe(()=>{if(!O)return;const Mt=q.current,mn=typeof Mt=="function"?Mt():Mt,lt=(Cj(mn)?mn.current:mn)||null||null;lt!==Kt.current&&(ie.setPositionReference(lt),Kt.current=lt)},[O,ie,G,q]),S.useEffect(()=>{if(!O)return;const Mt=q.current;typeof Mt!="function"&&Cj(Mt)&&Mt.current!==Kt.current&&(ie.setPositionReference(Mt.current),Kt.current=Mt.current)},[O,ie,G,q]),S.useEffect(()=>{if(N&&O&&Oe.domReference&&Oe.floating)return cj(Oe.domReference,Oe.floating,De,be)},[N,O,Oe,De,be]);const Ft=Ul(Ie),ya=JA(i,Ft,te),Wn=hf(Ie)||"center",ct=!!Re.hide?.referenceHidden;Fe(()=>{B&&O&&$e&&k(Ft)},[B,O,$e,Ft]);const ot=S.useMemo(()=>({position:"absolute",top:Re.arrow?.y,left:Re.arrow?.x}),[Re.arrow]),xt=Re.arrow?.centerOffset!==0;return S.useMemo(()=>({positionerStyles:Lt,arrowStyles:ot,arrowRef:he,arrowUncentered:xt,side:ya,align:Wn,physicalSide:Ft,anchorHidden:ct,refs:ie,context:We,isPositioned:$e,update:De}),[Lt,ot,he,xt,ya,Wn,Ft,ct,ie,We,$e,De])}function Cj(n){return n!=null&&"current"in n}const sx=S.forwardRef(function(o,s){const{cutout:i,...d}=o;let f;if(i){const h=i?.getBoundingClientRect();f=`polygon(
|
|
11
|
+
0% 0%,
|
|
12
|
+
100% 0%,
|
|
13
|
+
100% 100%,
|
|
14
|
+
0% 100%,
|
|
15
|
+
0% 0%,
|
|
16
|
+
${h.left}px ${h.top}px,
|
|
17
|
+
${h.left}px ${h.bottom}px,
|
|
18
|
+
${h.right}px ${h.bottom}px,
|
|
19
|
+
${h.right}px ${h.top}px,
|
|
20
|
+
${h.left}px ${h.top}px
|
|
21
|
+
)`}return m.jsx("div",{ref:s,role:"presentation","data-base-ui-inert":"",...d,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:f}})});process.env.NODE_ENV!=="production"&&(sx.displayName="InternalBackdrop");const ez=S.forwardRef(function(o,s){const{anchor:i,positionMethod:d="absolute",className:f,render:h,side:y,align:v,sideOffset:x=0,alignOffset:C=0,collisionBoundary:w="clipping-ancestors",collisionPadding:N=5,arrowPadding:R=5,sticky:O=!1,disableAnchorTracking:j=!1,collisionAvoidance:D=YD,...A}=o,{store:z}=wp(),B=IH(),U=iC(!0),L=z.useState("parent"),k=z.useState("floatingRootContext"),V=z.useState("floatingTreeRoot"),H=z.useState("mounted"),K=z.useState("open"),Z=z.useState("modal"),Q=z.useState("activeTriggerElement"),G=z.useState("transitionStatus"),q=z.useState("lastOpenChangeReason"),W=z.useState("floatingNodeId"),te=z.useState("floatingParentNodeId");let Y=i,P=x,F=C,ee=v,oe=D;L.type==="context-menu"&&(Y=i??L.context?.anchor,ee=ee??"start",!y&&ee!=="center"&&(F=o.alignOffset??2,P=o.sideOffset??-5));let we=y,se=ee;L.type==="menu"?(we=we??"inline-end",se=se??"start",oe=o.collisionAvoidance??EN):L.type==="menubar"&&(we=we??"bottom",se=se??"start");const Ce=L.type==="context-menu",re=bC({anchor:Y,floatingRootContext:k,positionMethod:U?"fixed":d,mounted:H,side:we,sideOffset:P,align:se,alignOffset:F,arrowPadding:Ce?0:R,collisionBoundary:w,collisionPadding:N,sticky:O,nodeId:W,keepMounted:B,disableAnchorTracking:j,collisionAvoidance:oe,shiftCrossAxis:Ce&&!("side"in oe&&oe.side==="flip"),externalTree:V}),he=S.useMemo(()=>{const fe={};return K||(fe.pointerEvents="none"),{role:"presentation",hidden:!H,style:{...re.positionerStyles,...fe}}},[K,H,re.positionerStyles]);S.useEffect(()=>{function fe(ce){ce.open&&(ce.parentNodeId===W&&z.set("hoverEnabled",!1),ce.nodeId!==W&&ce.parentNodeId===z.select("floatingParentNodeId")&&z.setOpen(!1,vt(hw)))}return V.events.on("menuopenchange",fe),()=>{V.events.off("menuopenchange",fe)}},[z,V.events,W]),S.useEffect(()=>{if(z.select("floatingParentNodeId")==null)return;function fe(ce){if(ce.open||ce.nodeId!==z.select("floatingParentNodeId"))return;const ae=ce.reason??hw;z.setOpen(!1,vt(ae))}return V.events.on("menuopenchange",fe),()=>{V.events.off("menuopenchange",fe)}},[V.events,z]),S.useEffect(()=>{function fe(ce){!K||ce.nodeId!==z.select("floatingParentNodeId")||ce.target&&Q&&Q!==ce.target&&z.setOpen(!1,vt(hw))}return V.events.on("itemhover",fe),()=>{V.events.off("itemhover",fe)}},[V.events,K,Q,z]),S.useEffect(()=>{const fe={open:K,nodeId:W,parentNodeId:te,reason:z.select("lastOpenChangeReason")};V.events.emit("menuopenchange",fe)},[V.events,K,z,W,te]);const le={open:K,side:re.side,align:re.align,anchorHidden:re.anchorHidden,nested:L.type==="menu"},Se=S.useMemo(()=>({side:re.side,align:re.align,arrowRef:re.arrowRef,arrowUncentered:re.arrowUncentered,arrowStyles:re.arrowStyles,nodeId:re.context.nodeId}),[re.side,re.align,re.arrowRef,re.arrowUncentered,re.arrowStyles,re.context.nodeId]),ze=zt("div",o,{state:le,stateAttributesMapping:Js,ref:[s,z.useStateSetter("positionerElement")],props:[he,yf(G),A]}),je=H&&L.type!=="menu"&&(L.type!=="menubar"&&Z&&q!==ao||L.type==="menubar"&&L.context.modal);let ve=null;return L.type==="menubar"?ve=L.context.contentElement:L.type===void 0&&(ve=Q),m.jsxs(GN.Provider,{value:Se,children:[je&&m.jsx(sx,{ref:L.type==="context-menu"||L.type==="nested-context-menu"?L.context.internalBackdropRef:null,inert:tx(!K),cutout:ve}),m.jsx(NA,{id:W,children:m.jsx(Ww,{elementsRef:z.context.itemDomElements,labelsRef:z.context.itemLabels,children:ze})})]})});process.env.NODE_ENV!=="production"&&(ez.displayName="MenuPositioner");function ix(n){const o=S.useRef(!0);o.current&&(o.current=!1,n())}let Ej={},Nj={},Tj="";function XH(n){if(typeof document>"u")return!1;const o=sn(n);return wa(o).innerWidth-o.documentElement.clientWidth>0}function PH(n){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const s=sn(n),i=s.documentElement,d=s.body,f=ff(i)?i:d,h=f.style.overflowY,y=i.style.scrollbarGutter;i.style.scrollbarGutter="stable",f.style.overflowY="scroll";const v=f.offsetWidth;f.style.overflowY="hidden";const x=f.offsetWidth;return f.style.overflowY=h,i.style.scrollbarGutter=y,v===x}function $H(n){const o=sn(n),s=o.documentElement,i=o.body,d=ff(s)?s:i,f={overflowY:d.style.overflowY,overflowX:d.style.overflowX};return Object.assign(d.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(d.style,f)}}function QH(n){const o=sn(n),s=o.documentElement,i=o.body,d=wa(s);let f=0,h=0,y=!1;const v=Ii.create();if(VN&&(d.visualViewport?.scale??1)!==1)return()=>{};function x(){const N=d.getComputedStyle(s),R=d.getComputedStyle(i),D=(N.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";f=s.scrollTop,h=s.scrollLeft,Ej={scrollbarGutter:s.style.scrollbarGutter,overflowY:s.style.overflowY,overflowX:s.style.overflowX},Tj=s.style.scrollBehavior,Nj={position:i.style.position,height:i.style.height,width:i.style.width,boxSizing:i.style.boxSizing,overflowY:i.style.overflowY,overflowX:i.style.overflowX,scrollBehavior:i.style.scrollBehavior};const A=s.scrollHeight>s.clientHeight,z=s.scrollWidth>s.clientWidth,B=N.overflowY==="scroll"||R.overflowY==="scroll",U=N.overflowX==="scroll"||R.overflowX==="scroll",L=Math.max(0,d.innerWidth-i.clientWidth),k=Math.max(0,d.innerHeight-i.clientHeight),V=parseFloat(R.marginTop)+parseFloat(R.marginBottom),H=parseFloat(R.marginLeft)+parseFloat(R.marginRight),K=ff(s)?s:i;if(y=PH(n),y){s.style.scrollbarGutter=D,K.style.overflowY="hidden",K.style.overflowX="hidden";return}Object.assign(s.style,{scrollbarGutter:D,overflowY:"hidden",overflowX:"hidden"}),(A||B)&&(s.style.overflowY="scroll"),(z||U)&&(s.style.overflowX="scroll"),Object.assign(i.style,{position:"relative",height:V||k?`calc(100dvh - ${V+k}px)`:"100dvh",width:H||L?`calc(100vw - ${H+L}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),i.scrollTop=f,i.scrollLeft=h,s.setAttribute("data-base-ui-scroll-locked",""),s.style.scrollBehavior="unset"}function C(){Object.assign(s.style,Ej),Object.assign(i.style,Nj),y||(s.scrollTop=f,s.scrollLeft=h,s.removeAttribute("data-base-ui-scroll-locked"),s.style.scrollBehavior=Tj)}function w(){C(),v.request(x)}return x(),d.addEventListener("resize",w),()=>{v.cancel(),C(),typeof d.removeEventListener=="function"&&d.removeEventListener("resize",w)}}class ZH{lockCount=0;restore=null;timeoutLock=Ks.create();timeoutUnlock=Ks.create();acquire(o){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(o)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(o){if(this.lockCount===0||this.restore!==null)return;const i=sn(o).documentElement,d=wa(i).getComputedStyle(i).overflowY;if(d==="hidden"||d==="clip"){this.restore=ja;return}const f=Uk||!XH(o);this.restore=f?$H(o):QH(o)}}const KH=new ZH;function vC(n=!0,o=null){Fe(()=>{if(n)return KH.acquire(o)},[n,o])}const tz=S.createContext(null);process.env.NODE_ENV!=="production"&&(tz.displayName="MenubarContext");function nz(n){return S.useContext(tz)}function FH(n){const o=S.useRef(""),s=S.useCallback(d=>{d.defaultPrevented||(o.current=d.pointerType,n(d,d.pointerType))},[n]);return{onClick:S.useCallback(d=>{if(d.detail===0){n(d,"keyboard");return}"pointerType"in d?n(d,d.pointerType):n(d,o.current),o.current=""},[n]),onPointerDown:s}}function xC(n){const[o,s]=S.useState(null),i=Ke((y,v)=>{n||s(v||(Uk?"touch":""))}),d=S.useCallback(()=>{s(null)},[]),{onClick:f,onPointerDown:h}=FH(i);return S.useMemo(()=>({openMethod:o,reset:d,triggerProps:{onClick:f,onPointerDown:h}}),[o,d,f,h])}const WH={...hC,disabled:Ze(n=>n.parent.type==="menubar"&&n.parent.context.disabled||n.disabled),modal:Ze(n=>(n.parent.type===void 0||n.parent.type==="context-menu")&&(n.modal??!0)),allowMouseEnter:Ze(n=>n.allowMouseEnter),stickIfOpen:Ze(n=>n.stickIfOpen),parent:Ze(n=>n.parent),rootId:Ze(n=>n.parent.type==="menu"?n.parent.store.select("rootId"):n.parent.type!==void 0?n.parent.context.rootId:n.rootId),activeIndex:Ze(n=>n.activeIndex),isActive:Ze((n,o)=>n.activeIndex===o),hoverEnabled:Ze(n=>n.hoverEnabled),instantType:Ze(n=>n.instantType),lastOpenChangeReason:Ze(n=>n.openChangeReason),floatingTreeRoot:Ze(n=>n.parent.type==="menu"?n.parent.store.select("floatingTreeRoot"):n.floatingTreeRoot),floatingNodeId:Ze(n=>n.floatingNodeId),floatingParentNodeId:Ze(n=>n.floatingParentNodeId),itemProps:Ze(n=>n.itemProps),closeDelay:Ze(n=>n.closeDelay),keyboardEventRelay:Ze(n=>{if(n.keyboardEventRelay)return n.keyboardEventRelay;if(n.parent.type==="menu")return n.parent.store.select("keyboardEventRelay")})};class pT extends rx{constructor(o){super({...JH(),...o},{positionerRef:S.createRef(),popupRef:S.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:S.createRef(),beforeContentFocusGuardRef:S.createRef(),onOpenChangeComplete:void 0,triggerElements:new xy},WH),this.unsubscribeParentListener=this.observe("parent",s=>{if(this.unsubscribeParentListener?.(),s.type==="menu"){this.unsubscribeParentListener=s.store.subscribe(()=>{this.notifyAll()}),this.context.allowMouseUpTriggerRef=s.store.context.allowMouseUpTriggerRef;return}s.type!==void 0&&(this.context.allowMouseUpTriggerRef=s.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(o,s){this.state.floatingRootContext.context.events.emit("setOpen",{open:o,eventDetails:s})}static useStore(o,s){const i=Qa(()=>new pT(s)).current;return o??i}unsubscribeParentListener=null}function JH(){return{...pC(),disabled:!1,modal:!0,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new QN,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:Fn,keyboardEventRelay:void 0,closeDelay:0}}const az=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(az.displayName="MenuSubmenuRootContext");function e7(){return S.useContext(az)}const oz=oT(function(o){const{children:s,open:i,onOpenChange:d,onOpenChangeComplete:f,defaultOpen:h=!1,disabled:y=!1,modal:v,loopFocus:x=!0,orientation:C="vertical",actionsRef:w,closeParentOnEsc:N=!1,handle:R,triggerId:O,defaultTriggerId:j=null,highlightItemOnHover:D=!0}=o,A=iC(!0),z=wp(!0),B=nz(!0),U=e7(),L=S.useMemo(()=>U&&z?{type:"menu",store:z.store}:B?{type:"menubar",context:B}:A&&!z?{type:"context-menu",context:A}:{type:void 0},[A,z,B,U]),k=pT.useStore(R?.store,{open:h,openProp:i,activeTriggerId:j,triggerIdProp:O,parent:L});ix(()=>{i===void 0&&k.state.open===!1&&h===!0&&k.update({open:!0,activeTriggerId:j})}),k.useControlledProp("openProp",i),k.useControlledProp("triggerIdProp",O),k.useContextCallback("onOpenChangeComplete",f);const V=k.useState("floatingTreeRoot"),H=FN(V),K=Fi();Fe(()=>{A&&!z?k.update({parent:{type:"context-menu",context:A},floatingNodeId:H,floatingParentNodeId:K}):z&&k.update({floatingNodeId:H,floatingParentNodeId:K})},[A,z,H,K,k]);const Z=k.useState("open"),Q=k.useState("activeTriggerElement"),G=k.useState("positionerElement"),q=k.useState("hoverEnabled"),W=k.useState("modal"),te=k.useState("disabled"),Y=k.useState("lastOpenChangeReason"),P=k.useState("parent"),F=k.useState("activeIndex"),ee=k.useState("payload"),oe=k.useState("floatingParentNodeId"),we=S.useRef(null),se=oe!=null;let Ce;process.env.NODE_ENV!=="production"&&P.type!==void 0&&v!==void 0&&console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored."),k.useSyncedValues({disabled:y,modal:P.type===void 0?v:void 0,rootId:Sp()});const{openMethod:re,triggerProps:he,reset:le}=xC(Z);fC(k);const{forceUnmount:Se}=mC(Z,k,()=>{k.update({allowMouseEnter:!1,stickIfOpen:!0}),le()}),ze=S.useRef(P.type!=="context-menu"),je=$a();S.useEffect(()=>{if(Z||(we.current=null),P.type==="context-menu"){if(!Z){je.clear(),ze.current=!1;return}je.start(500,()=>{ze.current=!0})}},[je,Z,P.type]),vC(Z&&W&&Y!==ao&&re!=="touch",G),Fe(()=>{!Z&&!q&&k.set("hoverEnabled",!0)},[Z,q,k]);const ve=S.useRef(!0),fe=$a(),ce=Ke((ct,ot)=>{const xt=ot.reason;if(Z===ct&&ot.trigger===Q&&Y===xt||(ot.preventUnmountOnClose=()=>{k.set("preventUnmountingOnClose",!0)},!ct&&ot.trigger==null&&(ot.trigger=Q??void 0),d?.(ct,ot),ot.isCanceled))return;const Mt={open:ct,nativeEvent:ot.event,reason:ot.reason,nested:se};Ce?.emit("openchange",Mt);const mn=ot.event;if(ct===!1&&mn?.type==="click"&&mn.pointerType==="touch"&&!ve.current)return;if(!ct&&F!==null){const Yt=k.context.itemDomElements.current[F];queueMicrotask(()=>{Yt?.setAttribute("tabindex","-1")})}ct&&xt===Jg?(ve.current=!1,fe.start(300,()=>{ve.current=!0})):(ve.current=!0,fe.clear());const at=(xt===gu||xt===Uv)&&mn.detail===0&&mn?.isTrusted,lt=!ct&&(xt===Wv||xt==null),tt={open:ct,openChangeReason:xt};we.current=ot.event??null;const ht=ot.trigger?.id??null;(ht||ct)&&(tt.activeTriggerId=ht,tt.activeTriggerElement=ot.trigger??null),k.update(tt),P.type==="menubar"&&(xt===Jg||xt===Zi||xt===ao||xt===pw||xt===hw)?k.set("instantType","group"):at||lt?k.set("instantType",at?"click":"dismiss"):k.set("instantType",void 0)}),ae=S.useCallback(ct=>{const ot=vt(ct);return ot.preventUnmountOnClose=()=>{k.set("preventUnmountingOnClose",!0)},ot},[k]),ue=S.useCallback(()=>{k.setOpen(!1,ae(nC))},[k,ae]);S.useImperativeHandle(w,()=>({unmount:Se,close:ue}),[Se,ue]);let be;P.type==="context-menu"&&(be=P.context),S.useImperativeHandle(be?.positionerRef,()=>G,[G]),S.useImperativeHandle(be?.actionsRef,()=>({setOpen:ce}),[ce]);const ie=gC({popupStore:k,onOpenChange:ce});Ce=ie.context.events,S.useEffect(()=>{const ct=({open:ot,eventDetails:xt})=>ce(ot,xt);return Ce.on("setOpen",ct),()=>{Ce?.off("setOpen",ct)}},[Ce,ce]);const Oe=lx(ie,{enabled:!te,bubbles:{escapeKey:N&&P.type==="menu"},outsidePress(){return P.type!=="context-menu"||we.current?.type==="contextmenu"?!0:ze.current},externalTree:se?V:void 0}),de=uT(ie,{role:"menu"}),Me=Jw(),Re=S.useCallback(ct=>{k.select("activeIndex")!==ct&&k.set("activeIndex",ct)},[k]),De=$A(ie,{enabled:!te,listRef:k.context.itemDomElements,activeIndex:F,nested:P.type!==void 0,loopFocus:x,orientation:C,parentOrientation:P.type==="menubar"?P.context.orientation:void 0,rtl:Me==="rtl",disabledIndices:sf,onNavigate:Re,openOnArrowKeyDown:P.type!=="context-menu",externalTree:se?V:void 0,focusItemOnHover:D}),Ie=S.useCallback(ct=>{k.context.typingRef.current=ct},[k]),We=QA(ie,{listRef:k.context.itemLabels,activeIndex:F,resetMs:lU,onMatch:ct=>{Z&&ct!==F&&k.set("activeIndex",ct)},onTypingChange:Ie}),{getReferenceProps:$e,getFloatingProps:st,getItemProps:nn,getTriggerProps:ln}=Cp([Oe,de,De,We]),Tt=S.useMemo(()=>{const ct=$i($e(),{onMouseMove(){k.set("allowMouseEnter",!0)}},he);return delete ct.role,ct},[$e,k,he]),Lt=S.useMemo(()=>{const ct=ln();if(!ct)return ct;const ot=$i(ct,he);return delete ot.role,delete ot["aria-controls"],ot},[ln,he]),Kt=S.useMemo(()=>st({onMouseMove(){k.set("allowMouseEnter",!0),P.type==="menu"&&k.set("hoverEnabled",!1)},onClick(){k.select("hoverEnabled")&&k.set("hoverEnabled",!1)},onKeyDown(ct){const ot=k.select("keyboardEventRelay");ot&&!ct.isPropagationStopped()&&ot(ct)}}),[st,P.type,k]),Ft=S.useMemo(()=>nn(),[nn]);k.useSyncedValues({floatingRootContext:ie,activeTriggerProps:Tt,inactiveTriggerProps:Lt,popupProps:Kt,itemProps:Ft});const ya=S.useMemo(()=>({store:k,parent:L}),[k,L]),Wn=m.jsx(XN.Provider,{value:ya,children:typeof s=="function"?s({payload:ee}):s});return P.type===void 0||P.type==="context-menu"?m.jsx(TA,{externalTree:V,children:Wn}):Wn});process.env.NODE_ENV!=="production"&&(oz.displayName="MenuRoot");function lz(n){const o=n.getBoundingClientRect();if(process.env.NODE_ENV!=="production")return o;const s=window.getComputedStyle(n,"::before"),i=window.getComputedStyle(n,"::after");if(!(s.content!=="none"||i.content!=="none"))return o;const f=parseFloat(s.width)||0,h=parseFloat(s.height)||0,y=parseFloat(i.width)||0,v=parseFloat(i.height)||0,x=Math.max(o.width,f,y),C=Math.max(o.height,h,v),w=x-o.width,N=C-o.height;return{left:o.left-w/2,right:o.right+w/2,top:o.top-N/2,bottom:o.bottom+N/2}}function rz(n){const{render:o,className:s,state:i=Fn,props:d=sf,refs:f=sf,metadata:h,stateAttributesMapping:y,tag:v="div",...x}=n,{compositeProps:C,compositeRef:w}=kk({metadata:h});return zt(v,n,{state:i,ref:[...f,w],props:[C,...d,x],stateAttributesMapping:y})}function sz(n){if(aa(n)&&n.hasAttribute("data-rootownerid"))return n.getAttribute("data-rootownerid")??void 0;if(!Gi(n))return sz(Pi(n))}function t7(n){const{enabled:o=!0,mouseDownAction:s,open:i}=n,d=S.useRef(!1);return S.useMemo(()=>o?{onMouseDown:f=>{(s==="open"&&!i||s==="close"&&i)&&(d.current=!0,sn(f.currentTarget).addEventListener("click",()=>{d.current=!1},{once:!0}))},onClick:f=>{d.current&&(d.current=!1,f.preventBaseUIHandler())}}:Fn,[o,s,i])}const aw=2,iz=YA(function(o,s){const{render:i,className:d,disabled:f=!1,nativeButton:h=!0,id:y,openOnHover:v,delay:x=100,closeDelay:C=0,handle:w,payload:N,...R}=o,O=wp(!0),j=w?.store??O?.store;if(!j)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle.":Nn(85));const D=vl(y),A=j.useState("isTriggerActive",D),z=j.useState("floatingRootContext"),B=j.useState("isOpenedByTrigger",D),U=S.useRef(null),L=a7(),k=wN(!0),V=gf(),H=S.useMemo(()=>V??new QN,[V]),K=FN(H),Z=Fi(),{registerTrigger:Q,isMountedByThisTrigger:G}=rT(D,U,j,{payload:N,closeDelay:C,parent:L,floatingTreeRoot:H,floatingNodeId:K,floatingParentNodeId:Z,keyboardEventRelay:k?.relayKeyboardEvent}),q=L.type==="menubar",W=j.useState("disabled"),te=f||W||q&&L.context.disabled,{getButtonProps:Y,buttonRef:P}=Fs({disabled:te,native:h});S.useEffect(()=>{!B&&L.type===void 0&&(j.context.allowMouseUpTriggerRef.current=!1)},[j,B,L.type]);const F=S.useRef(null),ee=$a(),oe=Ke(Oe=>{if(!F.current)return;ee.clear(),j.context.allowMouseUpTriggerRef.current=!1;const de=Oe.target;if(Ut(F.current,de)||Ut(j.select("positionerElement"),de)||de===F.current||de!=null&&sz(de)===j.select("rootId"))return;const Me=lz(F.current);Oe.clientX>=Me.left-aw&&Oe.clientX<=Me.right+aw&&Oe.clientY>=Me.top-aw&&Oe.clientY<=Me.bottom+aw||H.events.emit("close",{domEvent:Oe,reason:Ak})});S.useEffect(()=>{B&&j.select("lastOpenChangeReason")===ao&&sn(F.current).addEventListener("mouseup",oe,{once:!0})},[B,oe,j]);const we=q&&L.context.hasSubmenuOpen,Ce=cT(z,{enabled:(v??we)&&!te&&L.type!=="context-menu"&&(!q||we&&!G),handleClose:dT({blockPointerEvents:!q}),mouseOnly:!0,move:!1,restMs:L.type===void 0?x:void 0,delay:{close:C},triggerElementRef:U,externalTree:H,isActiveTrigger:A}),re=n7(B,j.select("lastOpenChangeReason")),he=tT(z,{enabled:!te&&L.type!=="context-menu",event:B&&q?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:L.type===void 0?re:!1}),le=XA(z,{enabled:!te&&we}),Se=t7({open:B,enabled:q,mouseDownAction:"open"}),ze=Cp([he,le]),je={disabled:te,open:B},ve=j.useState("triggerProps",G),fe=[F,s,P,Q,U],ce=[ze.getReferenceProps(),Ce??Fn,ve,{"aria-haspopup":"menu",id:D,onMouseDown:Oe=>{if(j.select("open"))return;ee.start(200,()=>{j.context.allowMouseUpTriggerRef.current=!0}),sn(Oe.currentTarget).addEventListener("mouseup",oe,{once:!0})}},q?{role:"menuitem"}:{},Se,R,Y],ae=S.useRef(null),ue=Ke(Oe=>{Bl.flushSync(()=>{j.setOpen(!1,vt(Zi,Oe.nativeEvent,Oe.currentTarget))}),sA(ae.current)?.focus()}),be=Ke(Oe=>{const de=j.select("positionerElement");if(de&&mp(Oe,de))j.context.beforeContentFocusGuardRef.current?.focus();else{Bl.flushSync(()=>{j.setOpen(!1,vt(Zi,Oe.nativeEvent,Oe.currentTarget))});let Me=rA(j.context.triggerFocusTargetRef.current||U.current);for(;Me!==null&&Ut(de,Me);){const Re=Me;if(Me=oC(Me),Me===Re)break}Me?.focus()}}),ie=zt("button",o,{enabled:!q,stateAttributesMapping:zw,state:je,ref:fe,props:ce});return q?m.jsx(rz,{tag:"button",render:i,className:d,state:je,refs:fe,props:ce,stateAttributesMapping:zw}):B?m.jsxs(S.Fragment,{children:[m.jsx(bu,{ref:ae,onFocus:ue},`${D}-pre-focus-guard`),m.jsx(S.Fragment,{children:ie},D),m.jsx(bu,{ref:j.context.triggerFocusTargetRef,onFocus:be},`${D}-post-focus-guard`)]}):m.jsx(S.Fragment,{children:ie},D)});process.env.NODE_ENV!=="production"&&(iz.displayName="MenuTrigger");function n7(n,o){const s=$a(),[i,d]=S.useState(!1);return Fe(()=>{n&&o==="trigger-hover"?(d(!0),s.start(HD,()=>{d(!1)})):n||(s.clear(),d(!1))},[n,o,s]),i}function a7(){const n=iC(!0),o=wp(!0),s=nz();return S.useMemo(()=>s?{type:"menubar",context:s}:n&&!o?{type:"context-menu",context:n}:{type:void 0},[n,o,s])}function cz({...n}){return m.jsx(oz,{"data-slot":"dropdown-menu",...n})}function uz({...n}){return m.jsx(iz,{"data-slot":"dropdown-menu-trigger",...n})}function dz({align:n="start",alignOffset:o=0,side:s="bottom",sideOffset:i=4,className:d,...f}){return m.jsx(FA,{children:m.jsx(ez,{className:"isolate z-50 outline-none",align:n,alignOffset:o,side:s,sideOffset:i,children:m.jsx(KA,{"data-slot":"dropdown-menu-content",className:$("z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95",d),...f})})})}function o7({...n}){return m.jsx(SA,{"data-slot":"dropdown-menu-group",...n})}function l7({className:n,inset:o,...s}){return m.jsx(wA,{"data-slot":"dropdown-menu-label","data-inset":o,className:$("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",n),...s})}function fz({className:n,inset:o,variant:s="default",...i}){return m.jsx(CA,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":s,className:$("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",n),...i})}function r7({className:n,...o}){return m.jsx(kN,{"data-slot":"dropdown-menu-separator",className:$("-mx-1 my-1 h-px bg-border",n),...o})}const s7=()=>m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-1",children:m.jsx("path",{d:"m6 9 6 6 6-6"})}),mz=S.forwardRef((n,o)=>{const{items:s=[],separator:i,className:d}=n;return m.jsx(AL,{ref:o,className:$(d),children:m.jsx(zL,{children:s.map((f,h)=>{const y=h===s.length-1;return m.jsxs(S.Fragment,{children:[m.jsx(_L,{className:f.className,children:f.menu?m.jsxs(cz,{children:[m.jsxs(uz,{className:"flex items-center gap-1 cursor-pointer transition-colors hover:text-foreground",children:[f.href?m.jsx(KO,{href:f.href,onClick:f.onClick,children:f.title}):y?m.jsx(FO,{children:f.title}):m.jsx("span",{className:"cursor-pointer transition-colors hover:text-foreground",onClick:f.onClick,children:f.title}),m.jsx(s7,{})]}),m.jsx(dz,{align:"start",children:f.menu.items.map(v=>m.jsx(fz,{onClick:v.onClick,children:v.href?m.jsx("a",{href:v.href,children:v.label}):v.label},v.key))})]}):y?m.jsx(FO,{children:f.title}):f.href?m.jsx(KO,{href:f.href,onClick:f.onClick,children:f.title}):m.jsx("span",{className:$(f.onClick&&"cursor-pointer transition-colors hover:text-foreground"),onClick:f.onClick,children:f.title})}),!y&&m.jsx(UL,{children:i})]},h)})})})});mz.displayName="Breadcrumb";function Mj({className:n,...o}){return m.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:$("mx-auto flex w-full justify-center",n),...o})}function Rj({className:n,...o}){return m.jsx("ul",{"data-slot":"pagination-content",className:$("flex items-center gap-0.5",n),...o})}function lp({...n}){return m.jsx("li",{"data-slot":"pagination-item",...n})}function hT({className:n,isActive:o,size:s="icon",...i}){return m.jsx(pf,{variant:o?"outline":"ghost",size:s,className:$(n),nativeButton:!1,render:m.jsx("a",{"aria-current":o?"page":void 0,"data-slot":"pagination-link","data-active":o,...i})})}function Oj({className:n,text:o="Previous",...s}){return m.jsxs(hT,{"aria-label":"Go to previous page",size:"default",className:$("pl-1.5!",n),...s,children:[m.jsx(vu,{"data-icon":"inline-start"}),m.jsx("span",{className:"hidden sm:block",children:o})]})}function jj({className:n,text:o="Next",...s}){return m.jsxs(hT,{"aria-label":"Go to next page",size:"default",className:$("pr-1.5!",n),...s,children:[m.jsx("span",{className:"hidden sm:block",children:o}),m.jsx(xr,{"data-icon":"inline-end"})]})}function i7({className:n,...o}){return m.jsxs("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:$("flex size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4",n),...o,children:[m.jsx(l8,{}),m.jsx("span",{className:"sr-only",children:"More pages"})]})}function c7(n,o){if(o<=7)return Array.from({length:o},(f,h)=>h+1);const s=[1];n>3&&s.push("ellipsis-start");const i=Math.max(2,n-1),d=Math.min(o-1,n+1);for(let f=i;f<=d;f++)s.push(f);return n<o-2&&s.push("ellipsis-end"),s[s.length-1]!==o&&s.push(o),s}const pz=S.forwardRef((n,o)=>{const{current:s,defaultCurrent:i=1,pageSize:d,defaultPageSize:f=10,total:h,showSizeChanger:y=!1,pageSizeOptions:v=[10,20,50,100],showQuickJumper:x=!1,showTotal:C,simple:w=!1,onChange:N,onShowSizeChange:R,disabled:O=!1,size:j="default",className:D}=n,[A,z]=S.useState(i),[B,U]=S.useState(f),L=s!==void 0,k=d!==void 0,V=L?s:A,H=k?d:B,K=Math.max(1,Math.ceil(h/H)),[Z,Q]=S.useState(""),G=ee=>{if(O)return;const oe=Math.max(1,Math.min(K,ee));L||z(oe),N?.(oe,H)},q=ee=>{if(O)return;k||U(ee);const oe=Math.max(1,Math.ceil(h/ee)),we=Math.min(V,oe);L||z(we),R?.(we,ee),N?.(we,ee)},W=ee=>{if(ee.key==="Enter"){const oe=parseInt(Z,10);isNaN(oe)||G(oe),Q("")}},te=(V-1)*H+1,Y=Math.min(V*H,h),P=j==="small";if(w)return m.jsx(Mj,{ref:o,className:$(D),children:m.jsxs(Rj,{children:[m.jsx(lp,{children:m.jsx(Oj,{text:"",onClick:()=>G(V-1),className:$(O||V<=1?"pointer-events-none opacity-50":"cursor-pointer",P&&"h-7 w-7")})}),m.jsx(lp,{children:m.jsxs("span",{className:$("mx-2 text-sm",P&&"text-xs"),children:[V," / ",K]})}),m.jsx(lp,{children:m.jsx(jj,{text:"",onClick:()=>G(V+1),className:$(O||V>=K?"pointer-events-none opacity-50":"cursor-pointer",P&&"h-7 w-7")})})]})});const F=c7(V,K);return m.jsxs("div",{"data-slot":"pagination-wrapper",className:$("flex items-center gap-2",D),children:[C&&m.jsx("span",{className:$("text-sm text-muted-foreground whitespace-nowrap",P&&"text-xs"),children:C(h,[te,Y])}),m.jsx(Mj,{ref:o,children:m.jsxs(Rj,{children:[m.jsx(lp,{children:m.jsx(Oj,{text:"",onClick:()=>G(V-1),className:$(O||V<=1?"pointer-events-none opacity-50":"cursor-pointer",P&&"h-7 w-7")})}),F.map((ee,oe)=>ee==="ellipsis-start"||ee==="ellipsis-end"?m.jsx(lp,{children:m.jsx(i7,{className:$(P&&"h-7 w-7")})},ee):m.jsx(lp,{children:m.jsx(hT,{isActive:ee===V,onClick:()=>G(ee),className:$(O?"pointer-events-none opacity-50":"cursor-pointer",P&&"h-7 w-7 text-xs"),children:ee})},ee)),m.jsx(lp,{children:m.jsx(jj,{text:"",onClick:()=>G(V+1),className:$(O||V>=K?"pointer-events-none opacity-50":"cursor-pointer",P&&"h-7 w-7")})})]})}),y&&m.jsx("select",{"data-slot":"pagination-size-changer",value:H,onChange:ee=>q(Number(ee.target.value)),disabled:O,className:$("rounded-md border border-input bg-background px-2 py-1 text-sm outline-none focus:ring-2 focus:ring-ring/50",P&&"text-xs h-7",O&&"opacity-50 cursor-not-allowed"),children:v.map(ee=>m.jsxs("option",{value:ee,children:[ee," / page"]},ee))}),x&&m.jsxs("div",{"data-slot":"pagination-quick-jumper",className:$("flex items-center gap-1 text-sm",P&&"text-xs"),children:[m.jsx("span",{className:"text-muted-foreground",children:"Go to"}),m.jsx("input",{type:"text",value:Z,onChange:ee=>Q(ee.target.value),onKeyDown:W,disabled:O,className:$("w-12 rounded-md border border-input bg-background px-2 py-1 text-center text-sm outline-none focus:ring-2 focus:ring-ring/50",P&&"w-10 h-7 text-xs",O&&"opacity-50 cursor-not-allowed")})]})]})});pz.displayName="Pagination";function u7(n){return{top:{side:"top",align:"center"},topLeft:{side:"top",align:"start"},topRight:{side:"top",align:"end"},bottom:{side:"bottom",align:"center"},bottomLeft:{side:"bottom",align:"start"},bottomRight:{side:"bottom",align:"end"}}[n??"bottomLeft"]??{side:"bottom",align:"start"}}function hz(n,o){return n.map((s,i)=>s.type==="divider"?m.jsx(r7,{},s.key||`divider-${i}`):s.type==="group"?m.jsxs(o7,{children:[m.jsx(l7,{children:s.label}),s.children&&hz(s.children,o)]},s.key):m.jsxs(fz,{disabled:s.disabled,variant:s.danger?"destructive":"default",onClick:d=>{s.onClick?.({key:s.key,domEvent:d}),o?.({key:s.key,domEvent:d})},children:[s.icon&&m.jsx("span",{className:"mr-1.5 inline-flex items-center [&_svg]:size-4",children:s.icon}),s.label]},s.key))}const gT=S.forwardRef((n,o)=>{const{menu:s,trigger:i=["hover"],placement:d="bottomLeft",open:f,onOpenChange:h,disabled:y=!1,children:v,overlayClassName:x,className:C}=n,[w,N]=S.useState(!1),R=f!==void 0,O=R?f:w,j=U=>{y||(R||N(U),h?.(U))},{side:D,align:A}=u7(d),z=i.includes("contextMenu"),B=i.includes("click")||z;return m.jsxs(cz,{open:O,onOpenChange:j,modal:!1,children:[m.jsx(uz,{ref:o,disabled:y,className:$("outline-none",C),...B?{}:{onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1)},...z?{onContextMenu:U=>{U.preventDefault(),j(!0)}}:{},children:v}),m.jsx(dz,{side:D,align:A,className:$(x),...B?{}:{onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1)},children:s?.items&&hz(s.items,s.onClick)})]})});gT.displayName="Dropdown";const d7=()=>m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("circle",{cx:"12",cy:"12",r:"1"}),m.jsx("circle",{cx:"19",cy:"12",r:"1"}),m.jsx("circle",{cx:"5",cy:"12",r:"1"})]}),gz=S.forwardRef((n,o)=>{const{icon:s,size:i="middle",type:d="default",onClick:f,danger:h=!1,loading:y=!1,children:v,menu:x,trigger:C,placement:w,open:N,onOpenChange:R,disabled:O=!1,overlayClassName:j}=n;return m.jsxs("div",{ref:o,"data-slot":"dropdown-button",className:"inline-flex",children:[m.jsx(Qi,{type:d,size:i,danger:h,loading:y,disabled:O,onClick:f,className:"rounded-r-none border-r-0",children:v}),m.jsx(gT,{menu:x,trigger:C,placement:w,open:N,onOpenChange:R,disabled:O||y,overlayClassName:j,children:m.jsx(Qi,{type:d,size:i,danger:h,disabled:O||y,className:"rounded-l-none px-2",icon:s??m.jsx(d7,{})})})]})});gz.displayName="Dropdown.Button";const yz=gT;yz.Button=gz;const f7=({className:n})=>m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:n,children:m.jsx("path",{d:"m6 9 6 6 6-6"})}),m7=({className:n})=>m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:n,children:m.jsx("path",{d:"m9 18 6-6-6-6"})}),SC=S.createContext({mode:"vertical",theme:"light",selectedKeys:[],openKeys:[],inlineIndent:24,inlineCollapsed:!1,onItemClick:()=>{},onSubmenuToggle:()=>{}});function p7({item:n,level:o,keyPath:s}){const{mode:i,theme:d,selectedKeys:f,inlineIndent:h,inlineCollapsed:y,onItemClick:v}=S.useContext(SC),x=f.includes(n.key),w=i==="inline"&&!y?o*h:void 0;return m.jsxs("li",{"data-slot":"menu-item","data-selected":x||void 0,"data-disabled":n.disabled||void 0,role:"menuitem",tabIndex:n.disabled?-1:0,className:$("relative flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors","outline-none select-none",x?d==="dark"?"bg-blue-600/20 text-blue-400":"bg-primary/10 text-primary":d==="dark"?"text-zinc-300 hover:bg-zinc-700 hover:text-zinc-100":"text-foreground hover:bg-accent hover:text-accent-foreground",n.disabled&&"pointer-events-none opacity-50",n.danger&&!x&&"text-destructive hover:bg-destructive/10 hover:text-destructive",y&&"justify-center px-0",n.className),style:{paddingLeft:w},onClick:N=>{n.disabled||v({key:n.key,keyPath:s,domEvent:N})},onKeyDown:N=>{n.disabled||(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),v({key:n.key,keyPath:s,domEvent:N}))},children:[n.icon&&m.jsx("span",{className:"inline-flex shrink-0 items-center [&_svg]:size-4",children:n.icon}),(!y||o>1)&&m.jsx("span",{className:"truncate",children:n.label})]})}function h7({item:n,level:o,keyPath:s}){const{mode:i,theme:d,openKeys:f,inlineIndent:h,inlineCollapsed:y,onSubmenuToggle:v}=S.useContext(SC),x=f.includes(n.key),C=i==="inline",w=i==="horizontal",[N,R]=S.useState(!1),O=S.useRef(null),j=!C,D=j?N:x,A=()=>{j&&(O.current&&clearTimeout(O.current),R(!0))},z=()=>{j&&(O.current=setTimeout(()=>R(!1),150))};S.useEffect(()=>()=>{O.current&&clearTimeout(O.current)},[]);const B=C&&!y?o*h:void 0;return m.jsxs("li",{"data-slot":"menu-submenu","data-open":D||void 0,role:"none",className:$("relative",w&&o===1&&"inline-flex"),onMouseEnter:A,onMouseLeave:z,children:[m.jsxs("div",{role:"menuitem","aria-haspopup":"true","aria-expanded":D,tabIndex:n.disabled?-1:0,className:$("flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors","outline-none select-none",d==="dark"?"text-zinc-300 hover:bg-zinc-700 hover:text-zinc-100":"text-foreground hover:bg-accent hover:text-accent-foreground",n.disabled&&"pointer-events-none opacity-50",y&&"justify-center px-0",n.className),style:{paddingLeft:B},onClick:U=>{n.disabled||C&&v(n.key)},onKeyDown:U=>{n.disabled||(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),C&&v(n.key))},children:[n.icon&&m.jsx("span",{className:"inline-flex shrink-0 items-center [&_svg]:size-4",children:n.icon}),(!y||o>1)&&m.jsx("span",{className:"flex-1 truncate",children:n.label}),(!y||o>1)&&m.jsx("span",{className:"ml-auto inline-flex shrink-0 items-center",children:C?m.jsx(f7,{className:$("transition-transform duration-200",D&&"rotate-180")}):m.jsx(m7,{})})]}),D&&n.children&&m.jsx("ul",{role:"menu",className:$(j?$("absolute z-50 min-w-[160px] rounded-lg border bg-popover p-1 shadow-md",w&&o===1?"left-0 top-full mt-1":"left-full top-0 ml-1",d==="dark"&&"border-zinc-700 bg-zinc-800"):$("overflow-hidden transition-all duration-200",!D&&"max-h-0")),children:yT(n.children,o+1,[...s,n.key])})]})}function g7({item:n,level:o,keyPath:s}){const{theme:i,inlineIndent:d,inlineCollapsed:f}=S.useContext(SC),h=f?void 0:o*d;return m.jsxs("li",{"data-slot":"menu-group",role:"none",className:"my-1",children:[m.jsx("div",{className:$("px-3 py-1.5 text-xs font-medium",i==="dark"?"text-zinc-500":"text-muted-foreground"),style:{paddingLeft:h},children:n.label}),m.jsx("ul",{role:"group",children:n.children&&yT(n.children,o,s)})]})}function yT(n,o,s){return n.map((i,d)=>i.type==="divider"?m.jsx("li",{"data-slot":"menu-divider",role:"separator",className:"my-1 h-px bg-border"},i.key||`divider-${d}`):i.type==="group"?m.jsx(g7,{item:i,level:o,keyPath:[...s,i.key]},i.key):i.children&&i.children.length>0?m.jsx(h7,{item:i,level:o,keyPath:[...s,i.key]},i.key):m.jsx(p7,{item:i,level:o,keyPath:[...s,i.key]},i.key))}const bz=S.forwardRef((n,o)=>{const{mode:s="vertical",items:i=[],selectedKeys:d,defaultSelectedKeys:f=[],openKeys:h,defaultOpenKeys:y=[],onClick:v,onOpenChange:x,onSelect:C,onDeselect:w,theme:N="light",multiple:R=!1,inlineIndent:O=24,inlineCollapsed:j=!1,className:D,style:A}=n,[z,B]=S.useState(f),U=d!==void 0,L=U?d:z,[k,V]=S.useState(y),H=h!==void 0,K=H?h:k,G={mode:s,theme:N,selectedKeys:L,openKeys:K,inlineIndent:O,inlineCollapsed:j,onItemClick:q=>{v?.(q);const W=q.key;let te;R?L.indexOf(W)>=0?(te=L.filter(P=>P!==W),U||B(te),w?.({...q,selectedKeys:te})):(te=[...L,W],U||B(te),C?.({...q,selectedKeys:te})):(te=[W],U||B(te),C?.({...q,selectedKeys:te}))},onSubmenuToggle:q=>{const W=K.includes(q)?K.filter(te=>te!==q):[...K,q];H||V(W),x?.(W)}};return m.jsx(SC.Provider,{value:G,children:m.jsx("ul",{ref:o,"data-slot":"menu","data-mode":s,"data-theme":N,role:"menu",className:$("list-none p-1",s==="horizontal"?"flex flex-row items-center gap-0.5":"flex flex-col gap-0.5",N==="dark"?"bg-zinc-900 text-zinc-100":"bg-background text-foreground",j&&s==="inline"&&"w-fit",D),style:A,children:yT(i,1,[])})})});bz.displayName="Menu";const vz=()=>m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M20 6 9 17l-5-5"})}),y7=()=>m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M18 6 6 18"}),m.jsx("path",{d:"m6 6 12 12"})]}),Dj={wait:"border-border bg-background text-muted-foreground",process:"border-primary bg-primary text-primary-foreground",finish:"border-primary bg-background text-primary",error:"border-destructive bg-background text-destructive"},kj={wait:"bg-border",process:"bg-border",finish:"bg-primary",error:"bg-destructive"},b7={wait:"text-muted-foreground",process:"text-foreground font-medium",finish:"text-foreground",error:"text-destructive"},v7={wait:"text-muted-foreground",process:"text-muted-foreground",finish:"text-muted-foreground",error:"text-destructive/80"};function x7({status:n,index:o,icon:s,isSmall:i,isDot:d}){if(d)return m.jsx("span",{"data-slot":"step-dot",className:$("block rounded-full",i?"h-2 w-2":"h-2.5 w-2.5",n==="process"&&"bg-primary",n==="finish"&&"bg-primary",n==="error"&&"bg-destructive",n==="wait"&&"bg-border")});const f=i?"h-6 w-6 text-xs":"h-8 w-8 text-sm";return s?m.jsx("span",{"data-slot":"step-icon",className:$("inline-flex items-center justify-center rounded-full",f,Dj[n]),children:m.jsx("span",{className:"[&_svg]:size-4",children:s})}):m.jsx("span",{"data-slot":"step-icon",className:$("inline-flex items-center justify-center rounded-full border-2 font-medium",f,Dj[n]),children:n==="finish"?m.jsx(vz,{}):n==="error"?m.jsx(y7,{}):m.jsx("span",{children:o+1})})}const xz=S.forwardRef((n,o)=>{const{current:s=0,items:i=[],direction:d="horizontal",type:f="default",status:h="process",size:y="default",onChange:v,initial:x=0,className:C,style:w}=n,N=y==="small",R=f==="dot",O=f==="navigation",j=f==="inline",D=d==="vertical"&&!j;function A(z,B){if(B.status)return B.status;const U=z+x;return U<s?"finish":U===s?h:"wait"}return j?m.jsx("div",{ref:o,"data-slot":"steps","data-type":"inline",className:$("flex items-center gap-1 text-xs",C),style:w,children:i.map((z,B)=>{const U=A(B,z);return m.jsxs(S.Fragment,{children:[m.jsxs("span",{className:$("inline-flex items-center gap-1 rounded-full px-2 py-0.5",U==="process"&&"bg-primary/10 text-primary font-medium",U==="finish"&&"text-primary",U==="wait"&&"text-muted-foreground",U==="error"&&"text-destructive",v&&!z.disabled&&"cursor-pointer hover:bg-accent"),onClick:()=>{v&&!z.disabled&&v(B)},children:[U==="finish"?m.jsx(vz,{}):m.jsx("span",{className:"inline-flex h-4 w-4 items-center justify-center rounded-full border text-[10px]",children:B+1}),m.jsx("span",{children:z.title})]}),B<i.length-1&&m.jsx("span",{className:"text-border",children:"/"})]},B)})}):m.jsx("div",{ref:o,"data-slot":"steps","data-direction":d,"data-type":f,className:$("flex",D?"flex-col gap-0":"flex-row items-start",C),style:w,children:i.map((z,B)=>{const U=A(B,z),L=B===i.length-1,k=!!v&&!z.disabled;return m.jsxs("div",{"data-slot":"step","data-status":U,className:$("flex",D?"flex-row":"flex-1 flex-col items-center",k&&"cursor-pointer",O&&!D&&$("relative flex-1 px-4 py-3","after:absolute after:bottom-0 after:left-1/2 after:h-0.5 after:w-0 after:-translate-x-1/2 after:transition-all after:duration-200",U==="process"&&"after:w-full after:bg-primary",U==="finish"&&"after:w-full after:bg-primary")),onClick:()=>k&&v(B),children:[m.jsxs("div",{className:$("flex items-center",D?"flex-col":"w-full"),children:[!O&&m.jsx("div",{className:$("shrink-0",D&&"flex flex-col items-center"),children:m.jsx(x7,{status:U,index:B,icon:z.icon,isSmall:N,isDot:R})}),!L&&!O&&m.jsx("div",{"data-slot":"step-connector",className:$($(D?"ml-0 mt-1 mb-1 w-0.5 flex-1 min-h-[24px]":"mx-2 h-0.5 flex-1",kj[U==="finish"?"finish":"wait"]))})]}),m.jsxs("div",{className:$(D?"ml-3 pb-6":"mt-2 text-center",O&&"text-center"),children:[m.jsx("div",{className:$("text-sm leading-tight",N&&"text-xs",b7[U]),children:z.title}),z.description&&m.jsx("div",{className:$("mt-0.5 text-xs leading-tight",v7[U]),children:z.description})]})]},B)})})});xz.displayName="Steps";function Sz(n){const o=[];for(const s of n)o.push(s),s.children&&o.push(...Sz(s.children));return o}function Aj(n,o){if(o===window)return n.getBoundingClientRect().top+window.scrollY;const s=o;return n.offsetTop-s.offsetTop}function wz({item:n,activeKey:o,level:s,direction:i,onClick:d,onActivate:f}){const h=o===n.key,y=i==="vertical",v=x=>{d?.(x,{title:n.title,href:n.href}),f(n.key)};return m.jsxs("div",{"data-slot":"anchor-link",className:$(n.className),children:[m.jsx("a",{href:n.href,target:n.target,"data-active":h||void 0,className:$("block text-sm transition-colors",y?$("py-1",s>0&&`pl-${s*3}`,h?"text-primary font-medium":"text-muted-foreground hover:text-foreground"):$("px-3 py-1.5 whitespace-nowrap",h?"text-primary font-medium":"text-muted-foreground hover:text-foreground")),style:y&&s>0?{paddingLeft:s*12}:void 0,onClick:v,children:n.title}),n.children&&y&&m.jsx("div",{className:"ml-0",children:n.children.map(x=>m.jsx(wz,{item:x,activeKey:o,level:s+1,direction:i,onClick:d,onActivate:f},x.key))})]})}const Cz=S.forwardRef((n,o)=>{const{items:s=[],direction:i="vertical",getCurrentAnchor:d,targetOffset:f=0,affix:h=!0,offsetTop:y=0,onChange:v,onClick:x,bounds:C=5,replace:w=!1,getContainer:N,className:R,style:O}=n,[j,D]=S.useState(""),A=S.useRef(!1),z=i==="vertical",B=S.useMemo(()=>Sz(s),[s]);S.useEffect(()=>{const H=N?.()??window;function K(){if(A.current)return;if(d){const W=d(j);W!==j&&(D(W),v?.(W));return}const Z=H===window?window.scrollY:H.scrollTop,Q=H===window?window.innerHeight:H.clientHeight,G=C/100*Q;let q="";for(const W of B){const te=W.href;if(!te.startsWith("#"))continue;const Y=te.slice(1),P=document.getElementById(Y);if(!P)continue;Aj(P,H)<=Z+f+G&&(q=W.key)}q!==j&&(D(q),v?.(q))}return K(),H.addEventListener("scroll",K,{passive:!0}),()=>H.removeEventListener("scroll",K)},[B,j,f,C,d,v,N]);const U=H=>{D(H),v?.(H);const K=B.find(te=>te.key===H);if(!K)return;const Z=K.href;if(!Z.startsWith("#"))return;const Q=Z.slice(1),G=document.getElementById(Q);if(!G)return;A.current=!0;const q=N?.()??window,W=Aj(G,q)-f;q===window?window.scrollTo({top:W,behavior:"smooth"}):q.scrollTo({top:W,behavior:"smooth"}),w?window.history.replaceState(null,"",Z):window.history.pushState(null,"",Z),setTimeout(()=>{A.current=!1},500)},L=S.useRef(null),[k,V]=S.useState({});return S.useEffect(()=>{if(!L.current)return;const H=L.current.querySelector('[data-active="true"]');if(!H){V({opacity:0});return}const K=L.current.getBoundingClientRect(),Z=H.getBoundingClientRect();V(z?{opacity:1,top:Z.top-K.top,height:Z.height}:{opacity:1,left:Z.left-K.left,width:Z.width})},[j,z]),m.jsx("div",{ref:o,"data-slot":"anchor","data-direction":i,className:$("relative",h&&"sticky",R),style:{...h?{top:y}:{},...O},children:m.jsxs("div",{ref:L,className:$("relative",z?"flex flex-col border-l border-border pl-2":"flex flex-row items-center border-b border-border"),children:[m.jsx("span",{"data-slot":"anchor-indicator",className:$("absolute transition-all duration-200",z?"left-0 w-0.5 bg-primary rounded-full":"bottom-0 h-0.5 bg-primary rounded-full"),style:k}),s.map(H=>m.jsx(wz,{item:H,activeKey:j,level:0,direction:i,onClick:x,onActivate:U},H.key))]})})});Cz.displayName="Anchor";const b2={xs:0,sm:640,md:768,lg:1024,xl:1280,xxl:1536};function S7(n){const[o,s]=S.useState(()=>n==null?3:typeof n=="number"?n:Object.entries(n).sort((d,f)=>(b2[d[0]]??0)-(b2[f[0]]??0))[0]?.[1]??3);return S.useEffect(()=>{if(typeof n=="number"||n==null){s(n??3);return}const i=Object.entries(n).map(([f,h])=>[b2[f]??parseInt(f,10),h]).sort((f,h)=>f[0]-h[0]),d=()=>{const f=window.innerWidth;let h=i[0]?.[1]??3;for(const[y,v]of i)f>=y&&(h=v);s(h)};return d(),window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[n]),o}const Ez=S.forwardRef((n,o)=>{const{columns:s,gutter:i=16,items:d,itemRender:f,className:h,style:y,children:v}=n,x=S7(s),[C,w]=Array.isArray(i)?i:[i,i],N=S.useMemo(()=>d&&d.length>0?d.map((O,j)=>{const D=f?f(O,j):O;return m.jsx("div",{style:{breakInside:"avoid",marginBottom:`${w}px`},children:D},j)}):S.Children.toArray(v).map((O,j)=>m.jsx("div",{style:{breakInside:"avoid",marginBottom:`${w}px`},children:O},j)),[d,f,v,w]);return m.jsx("div",{ref:o,className:$("w-full",h),style:{columnCount:x,columnGap:`${C}px`,...y},children:N})});Ez.displayName="Masonry";const w7=Ez;function Bw(n,o){if(n==null)return o;if(typeof n=="number")return n;if(n.endsWith("%"))return parseFloat(n);const s=parseFloat(n);return isNaN(s)?o:s}function zj(n,o,s){let i=n;if(o!=null){const d=Bw(o,0);i=Math.max(i,d)}if(s!=null){const d=Bw(s,100);i=Math.min(i,d)}return i}function ow(n,o){return n===!0?!0:typeof n=="object"?o==="start"?n.start===!0:n.end===!0:!1}const Nz=({layout:n,onDragStart:o,onDrag:s,onDragEnd:i,onDoubleClick:d,collapseStart:f,collapseEnd:h,onCollapseStart:y,onCollapseEnd:v})=>{const x=n==="horizontal",C=S.useRef(null),w=S.useCallback(R=>{R.preventDefault(),o();const O=x?R.clientX:R.clientY,j=A=>{const z=x?A.clientX:A.clientY;s(z-O)},D=()=>{document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",D),i()};document.addEventListener("mousemove",j),document.addEventListener("mouseup",D)},[x,o,s,i]),N=x?m.jsxs("svg",{width:"6",height:"24",viewBox:"0 0 6 24",fill:"currentColor",className:"text-muted-foreground/60",children:[m.jsx("circle",{cx:"1.5",cy:"5",r:"1.5"}),m.jsx("circle",{cx:"1.5",cy:"12",r:"1.5"}),m.jsx("circle",{cx:"1.5",cy:"19",r:"1.5"}),m.jsx("circle",{cx:"4.5",cy:"5",r:"1.5"}),m.jsx("circle",{cx:"4.5",cy:"12",r:"1.5"}),m.jsx("circle",{cx:"4.5",cy:"19",r:"1.5"})]}):m.jsxs("svg",{width:"24",height:"6",viewBox:"0 0 24 6",fill:"currentColor",className:"text-muted-foreground/60",children:[m.jsx("circle",{cx:"5",cy:"1.5",r:"1.5"}),m.jsx("circle",{cx:"12",cy:"1.5",r:"1.5"}),m.jsx("circle",{cx:"19",cy:"1.5",r:"1.5"}),m.jsx("circle",{cx:"5",cy:"4.5",r:"1.5"}),m.jsx("circle",{cx:"12",cy:"4.5",r:"1.5"}),m.jsx("circle",{cx:"19",cy:"4.5",r:"1.5"})]});return m.jsxs("div",{ref:C,"data-slot":"splitter-handle",className:$("relative flex shrink-0 items-center justify-center bg-border transition-colors hover:bg-primary/10",x?"w-2 cursor-col-resize":"h-2 cursor-row-resize"),onMouseDown:w,onDoubleClick:d,role:"separator","aria-orientation":x?"vertical":"horizontal",tabIndex:0,onKeyDown:R=>{x?R.key==="ArrowLeft"?(R.preventDefault(),o(),s(-2),i()):R.key==="ArrowRight"&&(R.preventDefault(),o(),s(2),i()):R.key==="ArrowUp"?(R.preventDefault(),o(),s(-2),i()):R.key==="ArrowDown"&&(R.preventDefault(),o(),s(2),i())},children:[N,f&&m.jsx("button",{type:"button",className:$("absolute z-10 flex size-4 items-center justify-center rounded-sm bg-border text-muted-foreground hover:bg-primary/20 hover:text-foreground",x?"-left-2 top-1/2 -translate-y-1/2 -translate-x-full":"-top-2 left-1/2 -translate-x-1/2 -translate-y-full"),onClick:R=>{R.stopPropagation(),y?.()},"aria-label":"Collapse previous panel",children:m.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:x?m.jsx("polyline",{points:"5,1 2,4 5,7"}):m.jsx("polyline",{points:"1,5 4,2 7,5"})})}),h&&m.jsx("button",{type:"button",className:$("absolute z-10 flex size-4 items-center justify-center rounded-sm bg-border text-muted-foreground hover:bg-primary/20 hover:text-foreground",x?"-right-2 top-1/2 -translate-y-1/2 translate-x-full":"-bottom-2 left-1/2 -translate-x-1/2 translate-y-full"),onClick:R=>{R.stopPropagation(),v?.()},"aria-label":"Collapse next panel",children:m.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:x?m.jsx("polyline",{points:"3,1 6,4 3,7"}):m.jsx("polyline",{points:"1,3 4,6 7,3"})})})]})};Nz.displayName="SplitterResizeHandle";const Tz=S.forwardRef((n,o)=>{const{layout:s="horizontal",onResize:i,onResizeStart:d,onResizeEnd:f,children:h,className:y,style:v}=n,x=S.useRef(null),C=S.useMemo(()=>{const k=[];return S.Children.forEach(h,V=>{S.isValidElement(V)&&k.push(V)}),k},[h]),w=S.useMemo(()=>C.map(k=>({defaultSize:k.props.defaultSize,min:k.props.min,max:k.props.max,collapsible:k.props.collapsible,resizable:k.props.resizable})),[C]),[N,R]=S.useState(()=>{const k=w.length;if(k===0)return[];const V=100/k;return w.map(H=>Bw(H.defaultSize,V))}),O=S.useRef([]),j=S.useCallback(()=>N,[N]),D=S.useCallback(k=>(O.current=[...N],d?.(N),k),[N,d]),A=S.useCallback((k,V)=>{const H=x.current;if(!H)return;const Z=s==="horizontal"?H.offsetWidth:H.offsetHeight;if(Z===0)return;const Q=V/Z*100,G=O.current;if(G.length===0)return;const q=[...G],W=k,te=k+1;let Y=G[W]+Q,P=G[te]-Q;Y=zj(Y,w[W]?.min,w[W]?.max),P=zj(P,w[te]?.min,w[te]?.max);const F=G[W]+G[te];Y+P>F&&(Q>0?P=F-Y:Y=F-P),q[W]=Y,q[te]=P,R(q),i?.(q)},[s,w,i]),z=S.useCallback(()=>{const k=j();f?.(k),O.current=[]},[j,f]),B=S.useCallback((k,V)=>{const H=w[k];if(!H)return;const K=Bw(H.min,0),Q=N[k]-K,G=k===V?V+1:V,q=[...N];q[k]=K,q[G]=N[G]+Q,R(q),i?.(q)},[w,N,i]),U=S.useCallback(k=>{const V=w[k],H=w[k+1];ow(V?.collapsible,"end")?B(k,k):ow(H?.collapsible,"start")&&B(k+1,k)},[w,B]),L=s==="horizontal";return m.jsx("div",{ref:k=>{x.current=k,typeof o=="function"?o(k):o&&(o.current=k)},"data-slot":"splitter",className:$("flex h-full w-full overflow-hidden rounded-lg border",L?"flex-row":"flex-col",y),style:v,children:C.map((k,V)=>{const H=N[V]??0,K=w[V],Z=K?.resizable!==!1,Q={...k.props.style??{},flexBasis:`${H}%`,flexGrow:0,flexShrink:0,overflow:"auto"};return m.jsxs(S.Fragment,{children:[S.cloneElement(k,{style:Q}),V<C.length-1&&Z&&m.jsx(Nz,{layout:s,onDragStart:()=>D(V),onDrag:G=>A(V,G),onDragEnd:z,onDoubleClick:()=>U(V),collapseStart:ow(K?.collapsible,"end"),collapseEnd:ow(w[V+1]?.collapsible,"start"),onCollapseStart:()=>B(V,V),onCollapseEnd:()=>B(V+1,V)})]},V)})})});Tz.displayName="Splitter";const Mz=S.forwardRef((n,o)=>{const{children:s,className:i,style:d}=n;return m.jsx("div",{ref:o,"data-slot":"splitter-panel",className:$("overflow-auto",i),style:d,children:s})});Mz.displayName="Splitter.Panel";const Rz=Tz;Rz.Panel=Mz;function C7({className:n,...o}){return m.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:m.jsx("table",{"data-slot":"table",className:$("w-full caption-bottom text-sm",n),...o})})}function E7({className:n,...o}){return m.jsx("thead",{"data-slot":"table-header",className:$("[&_tr]:border-b",n),...o})}function N7({className:n,...o}){return m.jsx("tbody",{"data-slot":"table-body",className:$("[&_tr:last-child]:border-0",n),...o})}function wv({className:n,...o}){return m.jsx("tr",{"data-slot":"table-row",className:$("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",n),...o})}function v2({className:n,...o}){return m.jsx("th",{"data-slot":"table-head",className:$("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",n),...o})}function Gg({className:n,...o}){return m.jsx("td",{"data-slot":"table-cell",className:$("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",n),...o})}function Pa({className:n,...o}){return m.jsx("div",{"data-slot":"skeleton",className:$("animate-pulse rounded-md bg-muted",n),...o})}function Cv(n,o,s){return typeof o=="function"?o(n):typeof o=="string"?n[o]:s}function x2(n,o){if(!o)return;if(typeof o=="string")return n[o];let s=n;for(const i of o){if(s==null)return;s=s[i]}return s}const T7={large:"[&_th]:h-12 [&_th]:px-4 [&_td]:px-4 [&_td]:py-3",middle:"[&_th]:h-10 [&_th]:px-3 [&_td]:px-3 [&_td]:py-2",small:"[&_th]:h-8 [&_th]:px-2 [&_td]:px-2 [&_td]:py-1 text-xs"};function M7({pagination:n,total:o,onChange:s}){const{current:i=1,pageSize:d=10,showTotal:f,showSizeChanger:h,pageSizeOptions:y=[10,20,50,100],showQuickJumper:v,simple:x,size:C}=n,w=Math.max(1,Math.ceil(o/d)),[N,R]=S.useState(""),O=[Math.min((i-1)*d+1,o),Math.min(i*d,o)],j=()=>{const A=[];if(w<=7)for(let z=1;z<=w;z++)A.push(z);else{A.push(1),i>3&&A.push("ellipsis");const z=Math.max(2,i-1),B=Math.min(w-1,i+1);for(let U=z;U<=B;U++)A.push(U);i<w-2&&A.push("ellipsis"),A.push(w)}return A},D=C==="small";return m.jsxs("div",{className:"flex items-center justify-between gap-4 px-2 py-3",children:[m.jsx("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:f&&f(o,O)}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("button",{className:$("inline-flex items-center justify-center rounded-md border border-input bg-background transition-colors hover:bg-muted disabled:pointer-events-none disabled:opacity-50",D?"size-7":"size-8"),disabled:i<=1,onClick:()=>s(i-1,d),"aria-label":"Previous page",children:m.jsx(vu,{className:"size-4"})}),!x&&j().map((A,z)=>A==="ellipsis"?m.jsx("span",{className:"flex size-8 items-center justify-center text-muted-foreground",children:"..."},`e-${z}`):m.jsx("button",{className:$("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors",D?"size-7":"size-8",A===i?"border border-primary bg-primary text-primary-foreground":"border border-input bg-background hover:bg-muted"),onClick:()=>s(A,d),children:A},A)),x&&m.jsxs("span",{className:"flex items-center gap-1 text-sm",children:[m.jsx("span",{className:"font-medium",children:i}),m.jsx("span",{className:"text-muted-foreground",children:"/"}),m.jsx("span",{className:"text-muted-foreground",children:w})]}),m.jsx("button",{className:$("inline-flex items-center justify-center rounded-md border border-input bg-background transition-colors hover:bg-muted disabled:pointer-events-none disabled:opacity-50",D?"size-7":"size-8"),disabled:i>=w,onClick:()=>s(i+1,d),"aria-label":"Next page",children:m.jsx(xr,{className:"size-4"})}),h&&m.jsx("select",{className:"ml-2 h-8 rounded-md border border-input bg-background px-2 text-sm",value:d,onChange:A=>s(1,Number(A.target.value)),children:y.map(A=>m.jsxs("option",{value:A,children:[A," / page"]},A))}),v&&m.jsxs("div",{className:"ml-2 flex items-center gap-1 text-sm",children:[m.jsx("span",{children:"Go to"}),m.jsx("input",{className:"h-8 w-12 rounded-md border border-input bg-background px-2 text-center text-sm",value:N,onChange:A=>R(A.target.value),onKeyDown:A=>{if(A.key==="Enter"){const z=Number(N);!isNaN(z)&&z>=1&&z<=w&&(s(z,d),R(""))}}})]})]})]})}function Oz(n){const{columns:o=[],dataSource:s=[],rowKey:i="key",loading:d=!1,size:f,pagination:h,rowSelection:y,scroll:v,bordered:x=!1,onChange:C,sortDirections:w=["ascend","descend",null],expandable:N,className:R,style:O,title:j,footer:D,rowClassName:A,onRow:z,showHeader:B=!0,locale:U,sticky:L=!1}=n,k=f??"middle",[V,H]=S.useState(()=>{for(const ae of o)if(ae.defaultSortOrder)return{key:ae.key??ae.dataIndex,order:ae.defaultSortOrder};return{key:void 0,order:null}}),[K]=S.useState({}),Z=h!==!1,[Q,G]=S.useState(h&&typeof h=="object"&&h.defaultCurrent||1),[q,W]=S.useState(h&&typeof h=="object"&&h.defaultPageSize||10),te=Z?{...typeof h=="object"?h:{},current:typeof h=="object"&&h.current!=null?h.current:Q,pageSize:typeof h=="object"&&h.pageSize!=null?h.pageSize:q}:!1,[Y,P]=S.useState(y?.selectedRowKeys??[]);S.useEffect(()=>{y?.selectedRowKeys&&P(y.selectedRowKeys)},[y?.selectedRowKeys]);const[F,ee]=S.useState(N?.expandedRowKeys??N?.defaultExpandedRowKeys??[]);S.useEffect(()=>{N?.expandedRowKeys&&ee(N.expandedRowKeys)},[N?.expandedRowKeys]);const oe=S.useMemo(()=>{let ae=[...s];for(const ue of o){const be=String(ue.key??ue.dataIndex??""),ie=K[be];ie&&ie.length>0&&ue.onFilter&&(ae=ae.filter(Oe=>ie.some(de=>ue.onFilter(de,Oe))))}if(V.key&&V.order){const ue=o.find(be=>(be.key??be.dataIndex)===V.key);if(ue&&typeof ue.sorter=="function"){const be=V.order==="ascend"?1:-1;ae.sort((ie,Oe)=>be*ue.sorter(ie,Oe))}else if(ue&&ue.sorter===!0){const be=ue.dataIndex,ie=V.order==="ascend"?1:-1;ae.sort((Oe,de)=>{const Me=String(x2(Oe,be)??""),Re=String(x2(de,be)??"");return ie*Me.localeCompare(Re)})}}return ae},[s,o,K,V]),we=typeof h=="object"&&h.total||oe.length,se=S.useMemo(()=>{if(!Z||te===!1)return oe;const{current:ae=1,pageSize:ue=10}=te;if(typeof h=="object"&&h.total!=null&&h.total!==oe.length)return oe;const be=(ae-1)*ue;return oe.slice(be,be+ue)},[oe,te,Z,h]),Ce=S.useMemo(()=>o.filter(ae=>!ae.hidden),[o]),re=ae=>{const ue=ae.key??ae.dataIndex,be=ae.sortDirections??w,ie=be.indexOf(V.key===ue?V.order:null),Oe=be[(ie+1)%be.length]??null;H({key:ue,order:Oe});const Me={column:ae,order:Oe,field:ae.dataIndex,columnKey:ue};C?.(te||{},K,Me)},he=(ae,ue)=>{G(ae),W(ue),typeof h=="object"&&h.onChange?.(ae,ue),C?.({...te||{},current:ae,pageSize:ue},K,{order:V.order,field:void 0,columnKey:V.key})},le=(ae,ue)=>{const be=y?.type==="radio";let ie,Oe;be?(ie=[ue],Oe=!0):Y.includes(ue)?(ie=Y.filter(Me=>Me!==ue),Oe=!1):(ie=[...Y,ue],Oe=!0),P(ie);const de=s.filter((Me,Re)=>ie.includes(Cv(Me,i,Re)));y?.onChange?.(ie,de),y?.onSelect?.(ae,Oe,de)},Se=ae=>{let ue;ae?ue=s.map((Oe,de)=>Cv(Oe,i,de)):ue=[],P(ue);const be=ae?[...s]:[],ie=ae?s.filter((Oe,de)=>!Y.includes(Cv(Oe,i,de))):s.filter((Oe,de)=>Y.includes(Cv(Oe,i,de)));y?.onChange?.(ue,be),y?.onSelectAll?.(ae,be,ie)},ze=(ae,ue)=>{const be=F.includes(ue),ie=be?F.filter(Oe=>Oe!==ue):[...F,ue];ee(ie),N?.onExpand?.(!be,ae),N?.onExpandedRowsChange?.(ie)},je=typeof d=="boolean"?d:d?.spinning??!1,ve=typeof d=="object"?d.tip:void 0,fe=Ce.length+(y?1:0)+(N?.showExpandColumn!==!1&&N?.expandedRowRender?1:0),ce=m.jsxs("div",{className:"relative",children:[je&&m.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-background/60",children:m.jsxs("div",{className:"flex flex-col items-center gap-2",children:[m.jsx("div",{className:"size-6 animate-spin rounded-full border-2 border-primary border-t-transparent"}),ve&&m.jsx("span",{className:"text-sm text-muted-foreground",children:ve})]})}),m.jsx("div",{className:$(v?.x&&"overflow-x-auto",v?.y&&"overflow-y-auto"),style:{maxHeight:v?.y},children:m.jsxs(C7,{className:$(T7[k],x&&"border [&_td]:border [&_th]:border",R),style:{minWidth:v?.x===!0?"100%":v?.x,...O},children:[B&&m.jsx(E7,{className:$(L&&"sticky top-0 z-[5] bg-background"),children:m.jsxs(wv,{children:[y&&m.jsx(v2,{style:{width:y.columnWidth??48},className:"text-center",children:y.columnTitle??(y.type!=="radio"&&!y.hideSelectAll&&m.jsx("input",{type:"checkbox",className:"size-4 rounded border-input accent-primary",checked:s.length>0&&Y.length===s.length,ref:ae=>{ae&&(ae.indeterminate=Y.length>0&&Y.length<s.length)},onChange:ae=>Se(ae.target.checked)}))}),N?.showExpandColumn!==!1&&N?.expandedRowRender&&m.jsx(v2,{style:{width:N.columnWidth??48},className:"text-center"}),Ce.map((ae,ue)=>{const be=String(ae.key??ae.dataIndex??ue),ie=!!ae.sorter,de=V.key===(ae.key??ae.dataIndex)?V.order:null,Me=ae.onHeaderCell?.()??{};return m.jsx(v2,{style:{width:ae.width,minWidth:ae.minWidth,textAlign:ae.align,...ae.fixed?{position:"sticky",[ae.fixed==="right"?"right":"left"]:0,zIndex:2,background:"var(--color-background, white)"}:{}},className:$(ie&&"cursor-pointer select-none",ae.className),onClick:ie?()=>re(ae):void 0,...Me,children:m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("span",{className:$(ae.align==="right"&&"ml-auto"),children:ae.title}),ie&&m.jsx("span",{className:"ml-1 inline-flex flex-col",children:de==="ascend"?m.jsx(bN,{className:"size-3.5 text-primary"}):de==="descend"?m.jsx(py,{className:"size-3.5 text-primary"}):m.jsx(F6,{className:"size-3.5 text-muted-foreground"})})]})},be)})]})}),m.jsx(N7,{children:se.length===0&&!je?m.jsx(wv,{children:m.jsx(Gg,{colSpan:fe,className:"h-24 text-center",children:m.jsx("div",{className:"flex flex-col items-center justify-center gap-1 py-8 text-muted-foreground",children:U?.emptyText??"No data"})})}):je&&se.length===0?Array.from({length:3}).map((ae,ue)=>m.jsx(wv,{children:Array.from({length:fe}).map((be,ie)=>m.jsx(Gg,{children:m.jsx(Pa,{className:"h-4 w-full"})},ie))},`skeleton-${ue}`)):se.map((ae,ue)=>{const be=Cv(ae,i,ue),ie=Y.includes(be),Oe=F.includes(be),de=z?.(ae,ue)??{},Me=typeof A=="function"?A(ae,ue):A,Re=N?.expandedRowRender&&(N.rowExpandable?.(ae)??!0);return m.jsxs(S.Fragment,{children:[m.jsxs(wv,{"data-state":ie?"selected":void 0,className:$(Me),onClick:N?.expandRowByClick&&Re?()=>ze(ae,be):void 0,...de,children:[y&&m.jsx(Gg,{className:"text-center",children:m.jsx("input",{type:y.type==="radio"?"radio":"checkbox",className:"size-4 rounded border-input accent-primary",checked:ie,onChange:()=>le(ae,be),...y.getCheckboxProps?.(ae)})}),N?.showExpandColumn!==!1&&N?.expandedRowRender&&m.jsx(Gg,{className:"text-center",children:Re&&(N.expandIcon?N.expandIcon({expanded:Oe,onExpand:()=>ze(ae,be),record:ae}):m.jsx("button",{className:"inline-flex size-6 items-center justify-center rounded transition-transform",onClick:De=>{De.stopPropagation(),ze(ae,be)},children:m.jsx(xr,{className:$("size-4 transition-transform",Oe&&"rotate-90")})}))}),Ce.map((De,Ie)=>{const We=String(De.key??De.dataIndex??Ie),$e=x2(ae,De.dataIndex),st=De.render?De.render($e,ae,ue):$e,nn=De.onCell?.(ae,ue)??{};return m.jsx(Gg,{style:{textAlign:De.align,...De.fixed?{position:"sticky",[De.fixed==="right"?"right":"left"]:0,zIndex:1,background:"var(--color-background, white)"}:{}},className:$(De.ellipsis&&"max-w-0 truncate",De.className),title:De.ellipsis&&typeof De.ellipsis!="object"&&typeof $e=="string"?$e:void 0,...nn,children:st},We)})]}),Re&&Oe&&m.jsx(wv,{children:m.jsx(Gg,{colSpan:fe,className:"bg-muted/30 p-4",children:N.expandedRowRender(ae,ue,N.indentSize??15,!0)})})]},be)})})]})})]});return m.jsxs("div",{className:"w-full",children:[j&&m.jsx("div",{className:"border-b px-4 py-3 text-sm font-medium",children:j(se)}),ce,D&&m.jsx("div",{className:"border-t px-4 py-3 text-sm",children:D(se)}),Z&&te!==!1&&m.jsx(M7,{pagination:te,total:we,onChange:he})]})}Oz.displayName="Table";const R7=Oz;function O7({className:n,size:o="default",...s}){return m.jsx("div",{"data-slot":"card","data-size":o,className:$("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",n),...s})}function j7({className:n,...o}){return m.jsx("div",{"data-slot":"card-header",className:$("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",n),...o})}function D7({className:n,...o}){return m.jsx("div",{"data-slot":"card-title",className:$("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",n),...o})}function k7({className:n,...o}){return m.jsx("div",{"data-slot":"card-content",className:$("px-4 group-data-[size=sm]/card:px-3",n),...o})}function A7({className:n,...o}){return m.jsx("div",{"data-slot":"card-footer",className:$("flex items-center rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/card:p-3",n),...o})}const jz=({avatar:n,title:o,description:s,className:i,style:d})=>m.jsxs("div",{className:$("flex items-start gap-3",i),style:d,children:[n&&m.jsx("div",{className:"shrink-0",children:n}),m.jsxs("div",{className:"min-w-0 flex-1",children:[o&&m.jsx("div",{className:"text-sm font-medium leading-snug text-foreground",children:o}),s&&m.jsx("div",{className:"mt-0.5 text-sm text-muted-foreground",children:s})]})]});jz.displayName="Card.Meta";const Dz=({hoverable:n=!0,className:o,style:s,children:i,...d})=>m.jsx("div",{className:$("border-r border-b p-4",n&&"cursor-pointer transition-shadow hover:shadow-md",o),style:s,...d,children:i});Dz.displayName="Card.Grid";function z7(){return m.jsxs("div",{className:"space-y-3 p-4",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(Pa,{className:"size-8 rounded-full"}),m.jsxs("div",{className:"flex-1 space-y-2",children:[m.jsx(Pa,{className:"h-3 w-3/4"}),m.jsx(Pa,{className:"h-3 w-1/2"})]})]}),m.jsx(Pa,{className:"h-3 w-full"}),m.jsx(Pa,{className:"h-3 w-5/6"}),m.jsx(Pa,{className:"h-3 w-4/6"})]})}const kz=S.forwardRef(({title:n,extra:o,cover:s,actions:i,bordered:d=!0,hoverable:f=!1,loading:h=!1,size:y="default",type:v,bodyStyle:x,headStyle:C,className:w,style:N,children:R,...O},j)=>{const D=y==="small",A=v==="inner";return m.jsxs(O7,{ref:j,size:D?"sm":"default",className:$(!d&&"ring-0 shadow-none",f&&"cursor-pointer transition-shadow hover:shadow-lg",A&&"bg-muted/30",w),style:N,...O,children:[s&&m.jsx("div",{className:"overflow-hidden rounded-t-xl [&>img]:w-full [&>img]:object-cover",children:s}),(n||o)&&m.jsx(j7,{className:$(A&&"bg-muted/50"),style:C,children:m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[n&&m.jsx(D7,{children:n}),o&&m.jsx("div",{className:"ml-auto shrink-0",children:o})]})}),m.jsx(k7,{style:x,children:h?m.jsx(z7,{}):R}),i&&i.length>0&&m.jsx(A7,{className:"justify-evenly gap-0 p-0",children:i.map((z,B)=>m.jsx("div",{className:$("flex flex-1 items-center justify-center py-3",B<i.length-1&&"border-r"),children:z},B))})]})});kz.displayName="Card";const bT=kz;bT.Meta=jz;bT.Grid=Dz;const vT=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(vT.displayName="AvatarRootContext");function Az(){const n=S.useContext(vT);if(n===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>.":Nn(13));return n}const xT={imageLoadingStatus:()=>null},zz=S.forwardRef(function(o,s){const{className:i,render:d,...f}=o,[h,y]=S.useState("idle"),v={imageLoadingStatus:h},x=S.useMemo(()=>({imageLoadingStatus:h,setImageLoadingStatus:y}),[h,y]),C=zt("span",o,{state:v,ref:s,props:f,stateAttributesMapping:xT});return m.jsx(vT.Provider,{value:x,children:C})});process.env.NODE_ENV!=="production"&&(zz.displayName="AvatarRoot");function _7(n,{referrerPolicy:o,crossOrigin:s}){const[i,d]=S.useState("idle");return Fe(()=>{if(!n)return d("error"),ja;let f=!0;const h=new window.Image,y=v=>()=>{f&&d(v)};return d("loading"),h.onload=y("loaded"),h.onerror=y("error"),o&&(h.referrerPolicy=o),h.crossOrigin=s??null,h.src=n,()=>{f=!1}},[n,s,o]),i}const U7={...xT,...gs},_z=S.forwardRef(function(o,s){const{className:i,render:d,onLoadingStatusChange:f,referrerPolicy:h,crossOrigin:y,...v}=o,x=Az(),C=_7(o.src,{referrerPolicy:h,crossOrigin:y}),w=C==="loading"||C==="loaded",{mounted:N,transitionStatus:R,setMounted:O}=xu(w),j=S.useRef(null),D=Ke(U=>{f?.(U),x.setImageLoadingStatus(U)});Fe(()=>{C!=="idle"&&D(C)},[C,D]);const z={imageLoadingStatus:C,transitionStatus:C==="loading"?"starting":R};Ll({open:w,ref:j,onComplete(){w||O(!1)}});const B=zt("img",o,{state:z,ref:[s,j],props:v,stateAttributesMapping:U7,enabled:N});return N?B:null});process.env.NODE_ENV!=="production"&&(_z.displayName="AvatarImage");const B7={...xT,...gs},Uz=S.forwardRef(function(o,s){const{className:i,render:d,delay:f,...h}=o,{imageLoadingStatus:y}=Az(),[v,x]=S.useState(f===void 0),C=$a(),w=y!=="loaded"&&v,{mounted:N,transitionStatus:R,setMounted:O}=xu(w),j=S.useRef(null);S.useEffect(()=>(f!==void 0&&C.start(f,()=>x(!0)),C.clear),[C,f]);const D={imageLoadingStatus:y,transitionStatus:R};Ll({open:w,ref:j,onComplete(){w||O(!1)}});const A=zt("span",o,{state:D,ref:[s,j],props:h,stateAttributesMapping:B7,enabled:N});return N?A:null});process.env.NODE_ENV!=="production"&&(Uz.displayName="AvatarFallback");function L7({className:n,size:o="default",...s}){return m.jsx(zz,{"data-slot":"avatar","data-size":o,className:$("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",n),...s})}function V7({className:n,...o}){return m.jsx(_z,{"data-slot":"avatar-image",className:$("aspect-square size-full rounded-full object-cover",n),...o})}function H7({className:n,...o}){return m.jsx(Uz,{"data-slot":"avatar-fallback",className:$("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",n),...o})}function I7({className:n,...o}){return m.jsx("div",{"data-slot":"avatar-group",className:$("group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background",n),...o})}function Y7({className:n,...o}){return m.jsx("div",{"data-slot":"avatar-group-count",className:$("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3",n),...o})}function q7(n){switch(n){case"small":return"size-6 text-xs";case"large":return"size-10 text-base";default:return"size-8 text-sm"}}function G7(n){if(typeof n=="number")return"default";switch(n){case"small":return"sm";case"large":return"lg";default:return"default"}}const Bz=S.forwardRef(({src:n,size:o="middle",shape:s="circle",icon:i,alt:d,gap:f=4,srcSet:h,draggable:y,crossOrigin:v,children:x,className:C,style:w,onError:N,...R},O)=>{const[j,D]=S.useState(!1),A=S.useRef(null),z=S.useRef(null),[B,U]=S.useState(1),L=typeof o=="number";S.useEffect(()=>{if(A.current&&z.current&&!n&&!i){const K=A.current.offsetWidth,Q=z.current.offsetWidth-f*2;K>0&&Q>0&&U(Math.min(Q/K,1))}},[x,f,n,i]);const k=()=>{N?.()!==!1&&D(!0)},V={...w,...L?{width:o,height:o,fontSize:o*.5}:{}},H=n&&!j;return m.jsxs(L7,{ref:K=>{z.current=K,typeof O=="function"?O(K):O&&(O.current=K)},size:G7(o),className:$(L&&q7(void 0),s==="square"&&"rounded-lg after:rounded-lg",C),style:V,...R,children:[H?m.jsx(V7,{src:n,alt:d,srcSet:h,draggable:y,crossOrigin:v,onError:k,className:$(s==="square"&&"rounded-lg")}):null,m.jsx(H7,{className:$(s==="square"&&"rounded-lg"),children:i?m.jsx("span",{className:"inline-flex items-center justify-center",children:i}):x?m.jsx("span",{ref:A,style:{transform:`scale(${B})`,transformOrigin:"center"},children:x}):null})]})});Bz.displayName="Avatar";const Lz=({max:n,size:o,shape:s,className:i,style:d,children:f})=>{const h=S.Children.toArray(f),y=n?.count??h.length,v=h.slice(0,y),x=h.length-y;return m.jsxs(I7,{className:i,style:d,children:[v.map((C,w)=>S.isValidElement(C)?S.cloneElement(C,{key:w,size:o??C.props.size,shape:s??C.props.shape}):C),x>0&&m.jsxs(Y7,{style:n?.style,children:["+",x]})]})};Lz.displayName="Avatar.Group";const Vz=Bz;Vz.Group=Lz;const S2={success:"bg-green-500",processing:"bg-blue-500",default:"bg-muted-foreground",error:"bg-destructive",warning:"bg-yellow-500"},Hz={blue:"bg-blue-500",purple:"bg-purple-500",cyan:"bg-cyan-500",green:"bg-green-500",magenta:"bg-pink-600",pink:"bg-pink-500",red:"bg-red-500",orange:"bg-orange-500",yellow:"bg-yellow-500",volcano:"bg-orange-600",geekblue:"bg-blue-600",lime:"bg-lime-500",gold:"bg-amber-500"};function xw(n){if(n)return Hz[n]}function Sw(n){if(n&&!Hz[n])return{backgroundColor:n}}const Iz=S.forwardRef(({count:n,dot:o=!1,status:s,color:i,size:d="default",showZero:f=!1,overflowCount:h=99,offset:y,title:v,text:x,className:C,style:w,children:N,...R},O)=>{if(s&&!N)return m.jsxs("span",{ref:O,className:$("inline-flex items-center gap-1.5",C),style:w,...R,children:[m.jsx("span",{className:$("inline-block size-1.5 rounded-full",i?xw(i):S2[s]),style:i?Sw(i):void 0}),x&&m.jsx("span",{className:"text-sm",children:x})]});const j=S.useMemo(()=>o||n==null?null:typeof n=="number"?n===0&&!f?null:n>h?`${h}+`:n:n,[n,o,f,h]);if(!(j!==null||o||s))return m.jsx("span",{ref:O,className:$("relative inline-flex",C),style:w,...R,children:N});const z=y?{right:-y[0],top:y[1]}:{},B=d==="small";return m.jsxs("span",{ref:O,className:$("relative inline-flex",C),style:w,...R,children:[N,o?m.jsx("span",{className:$("absolute -right-1 -top-1 z-10 rounded-full ring-2 ring-background",B?"size-1.5":"size-2",s?S2[s]:i?xw(i):"bg-destructive"),style:{...z,...i?Sw(i):{}},title:v}):m.jsx("span",{className:$("absolute -right-2 -top-2 z-10 inline-flex items-center justify-center rounded-full font-medium text-white ring-2 ring-background",B?"min-w-4 px-1 text-[10px] leading-4":"min-w-5 px-1.5 text-xs leading-5",s?S2[s]:i?xw(i):"bg-destructive"),style:{...z,...i?Sw(i):{}},title:v??(typeof j=="number"?String(j):void 0),children:j})]})});Iz.displayName="Badge";const Yz=({text:n,color:o,placement:s="end",className:i,style:d,children:f})=>{const h=o?xw(o):"bg-primary",y=o?Sw(o):void 0;return m.jsxs("div",{className:$("relative",i),style:d,children:[f,m.jsxs("div",{className:$("absolute top-2 z-10 whitespace-nowrap rounded-sm px-2 py-0.5 text-xs font-medium text-white",h,s==="end"?"-right-2":"-left-2"),style:y,children:[n,m.jsx("div",{className:$("absolute top-full h-0 w-0 border-t-4",s==="end"?"right-0 border-r-0 border-l-8 border-t-current border-l-transparent opacity-60":"left-0 border-l-0 border-r-8 border-t-current border-r-transparent opacity-60")})]})]})};Yz.displayName="Badge.Ribbon";const qz=Iz;qz.Ribbon=Yz;const Gz={blue:"bg-blue-50 text-blue-600 border-blue-200 dark:bg-blue-950 dark:text-blue-400 dark:border-blue-800",purple:"bg-purple-50 text-purple-600 border-purple-200 dark:bg-purple-950 dark:text-purple-400 dark:border-purple-800",cyan:"bg-cyan-50 text-cyan-600 border-cyan-200 dark:bg-cyan-950 dark:text-cyan-400 dark:border-cyan-800",green:"bg-green-50 text-green-600 border-green-200 dark:bg-green-950 dark:text-green-400 dark:border-green-800",magenta:"bg-pink-50 text-pink-600 border-pink-200 dark:bg-pink-950 dark:text-pink-400 dark:border-pink-800",pink:"bg-pink-50 text-pink-600 border-pink-200 dark:bg-pink-950 dark:text-pink-400 dark:border-pink-800",red:"bg-red-50 text-red-600 border-red-200 dark:bg-red-950 dark:text-red-400 dark:border-red-800",orange:"bg-orange-50 text-orange-600 border-orange-200 dark:bg-orange-950 dark:text-orange-400 dark:border-orange-800",yellow:"bg-yellow-50 text-yellow-600 border-yellow-200 dark:bg-yellow-950 dark:text-yellow-400 dark:border-yellow-800",volcano:"bg-orange-50 text-orange-700 border-orange-200 dark:bg-orange-950 dark:text-orange-400 dark:border-orange-800",geekblue:"bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-950 dark:text-blue-400 dark:border-blue-800",lime:"bg-lime-50 text-lime-600 border-lime-200 dark:bg-lime-950 dark:text-lime-400 dark:border-lime-800",gold:"bg-amber-50 text-amber-600 border-amber-200 dark:bg-amber-950 dark:text-amber-400 dark:border-amber-800",success:"bg-green-50 text-green-600 border-green-200 dark:bg-green-950 dark:text-green-400 dark:border-green-800",processing:"bg-blue-50 text-blue-600 border-blue-200 dark:bg-blue-950 dark:text-blue-400 dark:border-blue-800",error:"bg-red-50 text-red-600 border-red-200 dark:bg-red-950 dark:text-red-400 dark:border-red-800",warning:"bg-yellow-50 text-yellow-600 border-yellow-200 dark:bg-yellow-950 dark:text-yellow-400 dark:border-yellow-800",default:"bg-muted text-foreground border-border"};function X7(n){return!!n&&n in Gz}const Xz=S.forwardRef(({color:n,closable:o=!1,icon:s,bordered:i=!0,onClose:d,closeIcon:f,className:h,style:y,children:v,...x},C)=>{const[w,N]=S.useState(!0),R=A=>{A.stopPropagation(),d?.(A),A.defaultPrevented||N(!1)};if(!w)return null;const O=X7(n),j=O?Gz[n]:void 0,D={...y,...n&&!O?{backgroundColor:n,borderColor:n,color:"white"}:{}};return m.jsxs("span",{ref:C,className:$("inline-flex items-center gap-1 rounded-md px-2 py-0.5 text-xs font-medium",i&&"border",j??"bg-muted text-foreground border-border",h),style:D,...x,children:[s&&m.jsx("span",{className:"inline-flex items-center [&>svg]:size-3",children:s}),v,o&&m.jsx("span",{className:"ml-0.5 inline-flex cursor-pointer items-center opacity-60 transition-opacity hover:opacity-100",onClick:R,role:"button",tabIndex:0,"aria-label":"Close",children:f??m.jsx(go,{className:"size-3"})})]})});Xz.displayName="Tag";const Pz=({checked:n,onChange:o,className:s,style:i,children:d,...f})=>m.jsx("span",{className:$("inline-flex cursor-pointer items-center gap-1 rounded-md border px-2 py-0.5 text-xs font-medium transition-colors",n?"border-primary bg-primary text-primary-foreground":"border-border bg-background text-foreground hover:bg-muted",s),style:i,onClick:()=>o?.(!n),role:"checkbox","aria-checked":n,tabIndex:0,...f,children:d});Pz.displayName="Tag.CheckableTag";const $z=Xz;$z.CheckableTag=Pz;const ST=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(ST.displayName="TooltipRootContext");function cx(n){const o=S.useContext(ST);if(o===void 0&&!n)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.":Nn(72));return o}const P7={...hC,disabled:Ze(n=>n.disabled),instantType:Ze(n=>n.instantType),isInstantPhase:Ze(n=>n.isInstantPhase),trackCursorAxis:Ze(n=>n.trackCursorAxis),disableHoverablePopup:Ze(n=>n.disableHoverablePopup),lastOpenChangeReason:Ze(n=>n.openChangeReason),closeDelay:Ze(n=>n.closeDelay),hasViewport:Ze(n=>n.hasViewport)};class wT extends rx{constructor(o){super({...$7(),...o},{popupRef:S.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new xy},P7)}setOpen=(o,s)=>{const i=s.reason,d=i===ao,f=o&&i===Jg,h=!o&&(i===gu||i===Wv);if(s.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(o,s),s.isCanceled)return;const y=()=>{const v={open:o,openChangeReason:i};f?v.instantType="focus":h?v.instantType="dismiss":i===ao&&(v.instantType=void 0);const x=s.trigger?.id??null;(x||o)&&(v.activeTriggerId=x,v.activeTriggerElement=s.trigger??null),this.update(v)};d?Bl.flushSync(y):y()};static useStore(o,s){const i=Qa(()=>new wT(s)).current,d=o??i,f=gC({popupStore:d,onOpenChange:d.setOpen});return d.state.floatingRootContext=f,d}}function $7(){return{...pC(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0,hasViewport:!1}}const Qz=oT(function(o){const{disabled:s=!1,defaultOpen:i=!1,open:d,disableHoverablePopup:f=!1,trackCursorAxis:h="none",actionsRef:y,onOpenChange:v,onOpenChangeComplete:x,handle:C,triggerId:w,defaultTriggerId:N=null,children:R}=o,O=wT.useStore(C?.store,{open:i,openProp:d,activeTriggerId:N,triggerIdProp:w});ix(()=>{d===void 0&&O.state.open===!1&&i===!0&&O.update({open:!0,activeTriggerId:N})}),O.useControlledProp("openProp",d),O.useControlledProp("triggerIdProp",w),O.useContextCallback("onOpenChange",v),O.useContextCallback("onOpenChangeComplete",x);const j=O.useState("open"),D=!s&&j,A=O.useState("activeTriggerId"),z=O.useState("payload");O.useSyncedValues({trackCursorAxis:h,disableHoverablePopup:f}),Fe(()=>{j&&s&&O.setOpen(!1,vt(EB))},[j,s,O]),O.useSyncedValue("disabled",s),fC(O);const{forceUnmount:B,transitionStatus:U}=mC(D,O),L=O.useState("isInstantPhase"),k=O.useState("instantType"),V=O.useState("lastOpenChangeReason"),H=S.useRef(null);Fe(()=>{U==="ending"&&V===hs||U!=="ending"&&L?(k!=="delay"&&(H.current=k),O.set("instantType","delay")):H.current!==null&&(O.set("instantType",H.current),H.current=null)},[U,L,V,k,O]),Fe(()=>{D&&A==null&&O.set("payload",void 0)},[O,A,D]);const K=S.useCallback(()=>{O.setOpen(!1,Q7(O,nC))},[O]);S.useImperativeHandle(y,()=>({unmount:B,close:K}),[B,K]);const Z=O.useState("floatingRootContext"),Q=lx(Z,{enabled:!s,referencePress:!0}),G=oV(Z,{enabled:!s&&h!=="none",axis:h==="none"?void 0:h}),{getReferenceProps:q,getFloatingProps:W,getTriggerProps:te}=Cp([Q,G]),Y=S.useMemo(()=>q(),[q]),P=S.useMemo(()=>te(),[te]),F=S.useMemo(()=>W(),[W]);return O.useSyncedValues({activeTriggerProps:Y,inactiveTriggerProps:P,popupProps:F}),m.jsx(ST.Provider,{value:O,children:typeof R=="function"?R({payload:z}):R})});process.env.NODE_ENV!=="production"&&(Qz.displayName="TooltipRoot");function Q7(n,o){const s=vt(o);return s.preventUnmountOnClose=()=>{n.set("preventUnmountingOnClose",!0)},s}const CT=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(CT.displayName="TooltipProviderContext");function Z7(){return S.useContext(CT)}let K7=(function(n){return n[n.popupOpen=Aw.popupOpen]="popupOpen",n.triggerDisabled="data-trigger-disabled",n})({});const F7=600,Zz=YA(function(o,s){const{className:i,render:d,handle:f,payload:h,disabled:y,delay:v,closeDelay:x,id:C,...w}=o,N=cx(!0),R=f?.store??N;if(!R)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.":Nn(82));const O=vl(C),j=R.useState("isTriggerActive",O),D=R.useState("isOpenedByTrigger",O),A=R.useState("floatingRootContext"),z=S.useRef(null),B=v??F7,U=x??0,{registerTrigger:L,isMountedByThisTrigger:k}=rT(O,z,R,{payload:h,closeDelay:U}),V=Z7(),{delayRef:H,isInstantPhase:K,hasProvider:Z}=QL(A,{open:D});R.useSyncedValue("isInstantPhase",K);const Q=R.useState("disabled"),G=y??Q,q=R.useState("trackCursorAxis"),W=R.useState("disableHoverablePopup"),te=cT(A,{enabled:!G,mouseOnly:!0,move:!1,handleClose:!W&&q!=="both"?dT():null,restMs(){const oe=V?.delay,we=typeof H.current=="object"?H.current.open:void 0;let se=B;return Z&&(we!==0?se=v??oe??B:se=0),se},delay(){const oe=typeof H.current=="object"?H.current.close:void 0;let we=U;return x==null&&Z&&(we=oe),{close:we}},triggerElementRef:z,isActiveTrigger:j}),Y=XA(A,{enabled:!G}).reference,P={open:D},F=R.useState("triggerProps",k);return zt("button",o,{state:P,ref:[s,L,z],props:[te,Y,F,{id:O,[K7.triggerDisabled]:G?"":void 0},w],stateAttributesMapping:PN})});process.env.NODE_ENV!=="production"&&(Zz.displayName="TooltipTrigger");const ET=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(ET.displayName="TooltipPortalContext");function W7(){const n=S.useContext(ET);if(n===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Tooltip.Portal> is missing.":Nn(70));return n}const Kz=S.forwardRef(function(o,s){const{children:i,container:d,className:f,render:h,...y}=o,{portalNode:v,portalSubtree:x}=jA({container:d,ref:s,componentProps:o,elementProps:y});return!x&&!v?null:m.jsxs(S.Fragment,{children:[x,v&&Bl.createPortal(i,v)]})});process.env.NODE_ENV!=="production"&&(Kz.displayName="FloatingPortalLite");const Fz=S.forwardRef(function(o,s){const{keepMounted:i=!1,...d}=o;return cx().useState("mounted")||i?m.jsx(ET.Provider,{value:i,children:m.jsx(Kz,{ref:s,...d})}):null});process.env.NODE_ENV!=="production"&&(Fz.displayName="TooltipPortal");const NT=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(NT.displayName="TooltipPositionerContext");function Wz(){const n=S.useContext(NT);if(n===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.":Nn(71));return n}const Jz=S.forwardRef(function(o,s){const{render:i,className:d,anchor:f,positionMethod:h="absolute",side:y="top",align:v="center",sideOffset:x=0,alignOffset:C=0,collisionBoundary:w="clipping-ancestors",collisionPadding:N=5,arrowPadding:R=5,sticky:O=!1,disableAnchorTracking:j=!1,collisionAvoidance:D=EN,...A}=o,z=cx(),B=W7(),U=z.useState("open"),L=z.useState("mounted"),k=z.useState("trackCursorAxis"),V=z.useState("disableHoverablePopup"),H=z.useState("floatingRootContext"),K=z.useState("instantType"),Z=z.useState("transitionStatus"),Q=z.useState("hasViewport"),G=bC({anchor:f,positionMethod:h,floatingRootContext:H,mounted:L,side:y,sideOffset:x,align:v,alignOffset:C,collisionBoundary:w,collisionPadding:N,sticky:O,arrowPadding:R,disableAnchorTracking:j,keepMounted:B,collisionAvoidance:D,adaptiveOrigin:Q?WA:void 0}),q=S.useMemo(()=>{const P={};return(!U||k==="both"||V)&&(P.pointerEvents="none"),{role:"presentation",hidden:!L,style:{...G.positionerStyles,...P}}},[U,k,V,L,G.positionerStyles]),W=S.useMemo(()=>({open:U,side:G.side,align:G.align,anchorHidden:G.anchorHidden,instant:k!=="none"?"tracking-cursor":K}),[U,G.side,G.align,G.anchorHidden,k,K]),te=S.useMemo(()=>({...W,arrowRef:G.arrowRef,arrowStyles:G.arrowStyles,arrowUncentered:G.arrowUncentered}),[W,G.arrowRef,G.arrowStyles,G.arrowUncentered]),Y=zt("div",o,{state:W,props:[q,yf(Z),A],ref:[s,z.useStateSetter("positionerElement")],stateAttributesMapping:Js});return m.jsx(NT.Provider,{value:te,children:Y})});process.env.NODE_ENV!=="production"&&(Jz.displayName="TooltipPositioner");const J7={...Js,...gs},e5=S.forwardRef(function(o,s){const{className:i,render:d,...f}=o,h=cx(),{side:y,align:v}=Wz(),x=h.useState("open"),C=h.useState("instantType"),w=h.useState("transitionStatus"),N=h.useState("popupProps"),R=h.useState("floatingRootContext");Ll({open:x,ref:h.context.popupRef,onComplete(){x&&h.context.onOpenChangeComplete?.(!0)}});const O=h.useState("disabled"),j=h.useState("closeDelay");return iT(R,{enabled:!O,closeDelay:j}),zt("div",o,{state:{open:x,side:y,align:v,instant:C,transitionStatus:w},ref:[s,h.context.popupRef,h.useStateSetter("popupElement")],props:[N,yf(w),f],stateAttributesMapping:J7})});process.env.NODE_ENV!=="production"&&(e5.displayName="TooltipPopup");const t5=S.forwardRef(function(o,s){const{className:i,render:d,...f}=o,y=cx().useState("instantType"),{open:v,arrowRef:x,side:C,align:w,arrowUncentered:N,arrowStyles:R}=Wz();return zt("div",o,{state:{open:v,side:C,align:w,uncentered:N,instant:y},ref:[s,x],props:[{style:R,"aria-hidden":!0},f],stateAttributesMapping:Js})});process.env.NODE_ENV!=="production"&&(t5.displayName="TooltipArrow");const n5=function(o){const{delay:s,closeDelay:i,timeout:d=400}=o,f=S.useMemo(()=>({delay:s,closeDelay:i}),[s,i]),h=S.useMemo(()=>({open:s,close:i}),[s,i]);return m.jsx(CT.Provider,{value:f,children:m.jsx($L,{delay:h,timeoutMs:d,children:o.children})})};process.env.NODE_ENV!=="production"&&(n5.displayName="TooltipProvider");function e9({delay:n=0,...o}){return m.jsx(n5,{"data-slot":"tooltip-provider",delay:n,...o})}function t9({...n}){return m.jsx(Qz,{"data-slot":"tooltip",...n})}function n9({...n}){return m.jsx(Zz,{"data-slot":"tooltip-trigger",...n})}function a9({className:n,side:o="top",sideOffset:s=4,align:i="center",alignOffset:d=0,children:f,...h}){return m.jsx(Fz,{children:m.jsx(Jz,{align:i,alignOffset:d,side:o,sideOffset:s,className:"isolate z-50",children:m.jsxs(e5,{"data-slot":"tooltip-content",className:$("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n),...h,children:[f,m.jsx(t5,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}function o9(n){return{top:{side:"top",align:"center"},topLeft:{side:"top",align:"start"},topRight:{side:"top",align:"end"},bottom:{side:"bottom",align:"center"},bottomLeft:{side:"bottom",align:"start"},bottomRight:{side:"bottom",align:"end"},left:{side:"left",align:"center"},leftTop:{side:"left",align:"start"},leftBottom:{side:"left",align:"end"},right:{side:"right",align:"center"},rightTop:{side:"right",align:"start"},rightBottom:{side:"right",align:"end"}}[n]}const a5=({title:n,placement:o="top",open:s,defaultOpen:i=!1,onOpenChange:d,color:f,overlayClassName:h,overlayStyle:y,mouseEnterDelay:v=.1,children:x})=>{const[C,w]=S.useState(i),N=s!==void 0,R=N?s:C,O=z=>{N||w(z),d?.(z)},{side:j,align:D}=o9(o),A=typeof n=="function"?n():n;return!A&&A!==0?m.jsx(m.Fragment,{children:x}):m.jsx(e9,{delay:v*1e3,children:m.jsxs(t9,{open:R,onOpenChange:O,children:[m.jsx(n9,{render:S.isValidElement(x)?x:void 0,children:S.isValidElement(x)?void 0:x}),m.jsx(a9,{side:j,align:D,className:$(h),style:{...y,...f?{backgroundColor:f}:{}},children:A})]})})};a5.displayName="Tooltip";const l9=a5,TT=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(TT.displayName="PopoverRootContext");function Sy(n){const o=S.useContext(TT);if(o===void 0&&!n)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>.":Nn(47));return o}function r9(){return{...pC(),disabled:!1,modal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1}}const s9={...hC,disabled:Ze(n=>n.disabled),instantType:Ze(n=>n.instantType),openMethod:Ze(n=>n.openMethod),openChangeReason:Ze(n=>n.openChangeReason),modal:Ze(n=>n.modal),stickIfOpen:Ze(n=>n.stickIfOpen),titleElementId:Ze(n=>n.titleElementId),descriptionElementId:Ze(n=>n.descriptionElementId),openOnHover:Ze(n=>n.openOnHover),closeDelay:Ze(n=>n.closeDelay),hasViewport:Ze(n=>n.hasViewport)};class MT extends rx{constructor(o){const s={...r9(),...o};s.open&&o?.mounted===void 0&&(s.mounted=!0),super(s,{popupRef:S.createRef(),backdropRef:S.createRef(),internalBackdropRef:S.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:S.createRef(),beforeContentFocusGuardRef:S.createRef(),stickIfOpenTimeout:new Ks,triggerElements:new xy},s9)}setOpen=(o,s)=>{const i=s.reason===ao,d=s.reason===gu&&s.event.detail===0,f=!o&&(s.reason===Wv||s.reason==null);if(s.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(o,s),s.isCanceled)return;const h={open:o,nativeEvent:s.event,reason:s.reason,nested:this.state.nested,triggerElement:s.trigger};this.state.floatingRootContext.context.events?.emit("openchange",h);const v=()=>{const x={open:o,openChangeReason:s.reason},C=s.trigger?.id??null;(C||o)&&(x.activeTriggerId=C,x.activeTriggerElement=s.trigger??null),this.update(x)};i?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(HD,()=>{this.set("stickIfOpen",!1)}),Bl.flushSync(v)):v(),d||f?this.set("instantType",d?"click":"dismiss"):s.reason===Zi?this.set("instantType","focus"):this.set("instantType",void 0)};static useStore(o,s){const i=Qa(()=>new MT(s)).current,d=o??i;return lC(i.disposeEffect),d}disposeEffect=()=>this.context.stickIfOpenTimeout.disposeEffect()}function _j({props:n}){const{children:o,open:s,defaultOpen:i=!1,onOpenChange:d,onOpenChangeComplete:f,modal:h=!1,handle:y,triggerId:v,defaultTriggerId:x=null}=n,C=MT.useStore(y?.store,{modal:h,open:i,openProp:s,activeTriggerId:x,triggerIdProp:v});ix(()=>{s===void 0&&C.state.open===!1&&i===!0&&C.update({open:!0,activeTriggerId:x})}),C.useControlledProp("openProp",s),C.useControlledProp("triggerIdProp",v);const w=C.useState("open"),N=C.useState("positionerElement"),R=C.useState("payload"),O=C.useState("openChangeReason");C.useContextCallback("onOpenChange",d),C.useContextCallback("onOpenChangeComplete",f);const{openMethod:j,triggerProps:D,reset:A}=xC(w);fC(C);const{forceUnmount:z}=mC(w,C,()=>{C.update({stickIfOpen:!0,openChangeReason:null}),A()});vC(w&&h===!0&&O!==ao&&j!=="touch",N),S.useEffect(()=>{w||C.context.stickIfOpenTimeout.clear()},[C,w]);const B=S.useCallback(te=>{const Y=vt(te);return Y.preventUnmountOnClose=()=>{C.set("preventUnmountingOnClose",!0)},Y},[C]),U=S.useCallback(()=>{C.setOpen(!1,B(nC))},[C,B]);S.useImperativeHandle(n.actionsRef,()=>({unmount:z,close:U}),[z,U]);const L=gC({popupStore:C,onOpenChange:C.setOpen}),k=lx(L,{outsidePressEvent:{mouse:h==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),V=uT(L),{getReferenceProps:H,getFloatingProps:K,getTriggerProps:Z}=Cp([k,V]),Q=S.useMemo(()=>H(D),[H,D]),G=S.useMemo(()=>Z(D),[Z,D]),q=S.useMemo(()=>K(),[K]);C.useSyncedValues({modal:h,openMethod:j,activeTriggerProps:Q,inactiveTriggerProps:G,popupProps:q,floatingRootContext:L,nested:Fi()!=null});const W=S.useMemo(()=>({store:C}),[C]);return m.jsx(TT.Provider,{value:W,children:typeof o=="function"?o({payload:R}):o})}function i9(n){return Sy(!0)?m.jsx(_j,{props:n}):m.jsx(TA,{children:m.jsx(_j,{props:n})})}const c9=300,o5=S.forwardRef(function(o,s){const{render:i,className:d,disabled:f=!1,nativeButton:h=!0,handle:y,payload:v,openOnHover:x=!1,delay:C=c9,closeDelay:w=0,id:N,...R}=o,O=Sy(!0),j=y?.store??O?.store;if(!j)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle.":Nn(74));const D=vl(N),A=j.useState("isTriggerActive",D),z=j.useState("floatingRootContext"),B=j.useState("isOpenedByTrigger",D),U=S.useRef(null),{registerTrigger:L,isMountedByThisTrigger:k}=rT(D,U,j,{payload:v,disabled:f,openOnHover:x,closeDelay:w}),V=j.useState("openChangeReason"),H=j.useState("stickIfOpen"),K=j.useState("openMethod"),Z=cT(z,{enabled:z!=null&&x&&(K!=="touch"||V!==gu),mouseOnly:!0,move:!1,handleClose:dT(),restMs:C,delay:{close:w},triggerElementRef:U,isActiveTrigger:A}),Q=tT(z,{enabled:z!=null,stickIfOpen:H}),G=Cp([Q]),q=j.useState("triggerProps",k),W={disabled:f,open:B},{getButtonProps:te,buttonRef:Y}=Fs({disabled:f,native:h}),P=S.useMemo(()=>({open(se){return se&&V===gu?zw.open(se):PN.open(se)}}),[V]),F=zt("button",o,{state:W,ref:[Y,s,L,U],props:[G.getReferenceProps(),Z,q,{[ID]:"",id:D},R,te],stateAttributesMapping:P}),ee=S.useRef(null),oe=Ke(se=>{Bl.flushSync(()=>{j.setOpen(!1,vt(Zi,se.nativeEvent,se.currentTarget))}),sA(ee.current)?.focus()}),we=Ke(se=>{const Ce=j.select("positionerElement");if(Ce&&mp(se,Ce))j.context.beforeContentFocusGuardRef.current?.focus();else{Bl.flushSync(()=>{j.setOpen(!1,vt(Zi,se.nativeEvent,se.currentTarget))});let re=rA(j.context.triggerFocusTargetRef.current||U.current);for(;re!==null&&Ut(Ce,re);){const he=re;if(re=oC(re),re===he)break}re?.focus()}});return A?m.jsxs(S.Fragment,{children:[m.jsx(bu,{ref:ee,onFocus:oe}),m.jsx(S.Fragment,{children:F},D),m.jsx(bu,{ref:j.context.triggerFocusTargetRef,onFocus:we})]}):m.jsx(S.Fragment,{children:F},D)});process.env.NODE_ENV!=="production"&&(o5.displayName="PopoverTrigger");const RT=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(RT.displayName="PopoverPortalContext");function u9(){const n=S.useContext(RT);if(n===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Popover.Portal> is missing.":Nn(45));return n}const l5=S.forwardRef(function(o,s){const{keepMounted:i=!1,...d}=o,{store:f}=Sy();return f.useState("mounted")||i?m.jsx(RT.Provider,{value:i,children:m.jsx(ox,{ref:s,...d})}):null});process.env.NODE_ENV!=="production"&&(l5.displayName="PopoverPortal");const OT=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(OT.displayName="PopoverPositionerContext");function d9(){const n=S.useContext(OT);if(!n)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>.":Nn(46));return n}const r5=S.forwardRef(function(o,s){const{render:i,className:d,anchor:f,positionMethod:h="absolute",side:y="bottom",align:v="center",sideOffset:x=0,alignOffset:C=0,collisionBoundary:w="clipping-ancestors",collisionPadding:N=5,arrowPadding:R=5,sticky:O=!1,disableAnchorTracking:j=!1,collisionAvoidance:D=EN,...A}=o,{store:z}=Sy(),B=u9(),U=FN(),L=z.useState("floatingRootContext"),k=z.useState("mounted"),V=z.useState("open"),H=z.useState("openChangeReason"),K=z.useState("activeTriggerElement"),Z=z.useState("modal"),Q=z.useState("positionerElement"),G=z.useState("instantType"),q=z.useState("transitionStatus"),W=z.useState("hasViewport"),te=S.useRef(null),Y=uA(Q,!1,!1),P=bC({anchor:f,floatingRootContext:L,positionMethod:h,mounted:k,side:y,sideOffset:x,align:v,alignOffset:C,arrowPadding:R,collisionBoundary:w,collisionPadding:N,sticky:O,disableAnchorTracking:j,keepMounted:B,nodeId:U,collisionAvoidance:D,adaptiveOrigin:W?WA:void 0}),F=S.useMemo(()=>{const re={};return V||(re.pointerEvents="none"),{role:"presentation",hidden:!k,style:{...P.positionerStyles,...re}}},[V,k,P.positionerStyles]),ee=S.useMemo(()=>({props:F,...P}),[F,P]),oe=L.useState("domReferenceElement");Fe(()=>{const re=oe,he=te.current;if(re&&(te.current=re),he&&re&&re!==he){z.set("instantType",void 0);const le=new AbortController;return Y(()=>{z.set("instantType","trigger-change")},le.signal),()=>{le.abort()}}},[oe,Y,z]);const we={open:V,side:ee.side,align:ee.align,anchorHidden:ee.anchorHidden,instant:G},se=S.useCallback(re=>{z.set("positionerElement",re)},[z]),Ce=zt("div",o,{state:we,props:[ee.props,yf(q),A],ref:[s,se],stateAttributesMapping:Js});return m.jsxs(OT.Provider,{value:ee,children:[k&&Z===!0&&H!==ao&&m.jsx(sx,{ref:z.context.internalBackdropRef,inert:tx(!V),cutout:K}),m.jsx(NA,{id:U,children:Ce})]})});process.env.NODE_ENV!=="production"&&(r5.displayName="PopoverPositioner");const f9={...Js,...gs},s5=S.forwardRef(function(o,s){const{className:i,render:d,initialFocus:f,finalFocus:h,...y}=o,{store:v}=Sy(),x=d9(),C=fT()!=null,w=v.useState("open"),N=v.useState("openMethod"),R=v.useState("instantType"),O=v.useState("transitionStatus"),j=v.useState("popupProps"),D=v.useState("titleElementId"),A=v.useState("descriptionElementId"),z=v.useState("modal"),B=v.useState("mounted"),U=v.useState("openChangeReason"),L=v.useState("activeTriggerElement"),k=v.useState("floatingRootContext");Ll({open:w,ref:v.context.popupRef,onComplete(){w&&v.context.onOpenChangeComplete?.(!0)}});const V=v.useState("disabled"),H=v.useState("openOnHover"),K=v.useState("closeDelay");iT(k,{enabled:H&&!V,closeDelay:K});function Z(te){return te==="touch"?v.context.popupRef.current:!0}const Q=f===void 0?Z:f,G={open:w,side:x.side,align:x.align,instant:R,transitionStatus:O},q=S.useCallback(te=>{v.set("popupElement",te)},[v]),W=zt("div",o,{state:G,ref:[s,v.context.popupRef,q],props:[j,{"aria-labelledby":D,"aria-describedby":A,onKeyDown(te){C&&sC.has(te.key)&&te.stopPropagation()}},yf(O),y],stateAttributesMapping:f9});return m.jsx(uC,{context:k,openInteractionType:N,modal:z==="trap-focus",disabled:!B||U===ao,initialFocus:Q,returnFocus:h,restoreFocus:"popup",previousFocusableElement:aa(L)?L:void 0,nextFocusableElement:v.context.triggerFocusTargetRef,beforeContentFocusGuardRef:v.context.beforeContentFocusGuardRef,children:W})});process.env.NODE_ENV!=="production"&&(s5.displayName="PopoverPopup");const i5=S.forwardRef(function(o,s){const{render:i,className:d,...f}=o,{store:h}=Sy(),y=vl(f.id);return Fe(()=>(h.set("titleElementId",y),()=>{h.set("titleElementId",void 0)}),[h,y]),zt("h2",o,{ref:s,props:[{id:y},f]})});process.env.NODE_ENV!=="production"&&(i5.displayName="PopoverTitle");function c5({...n}){return m.jsx(i9,{"data-slot":"popover",...n})}function u5({...n}){return m.jsx(o5,{"data-slot":"popover-trigger",...n})}function d5({className:n,align:o="center",alignOffset:s=0,side:i="bottom",sideOffset:d=4,...f}){return m.jsx(l5,{children:m.jsx(r5,{align:o,alignOffset:s,side:i,sideOffset:d,className:"isolate z-50",children:m.jsx(s5,{"data-slot":"popover-content",className:$("z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n),...f})})})}function m9({className:n,...o}){return m.jsx("div",{"data-slot":"popover-header",className:$("flex flex-col gap-0.5 text-sm",n),...o})}function p9({className:n,...o}){return m.jsx(i5,{"data-slot":"popover-title",className:$("font-medium",n),...o})}function h9(n){return{top:{side:"top",align:"center"},topLeft:{side:"top",align:"start"},topRight:{side:"top",align:"end"},bottom:{side:"bottom",align:"center"},bottomLeft:{side:"bottom",align:"start"},bottomRight:{side:"bottom",align:"end"},left:{side:"left",align:"center"},leftTop:{side:"left",align:"start"},leftBottom:{side:"left",align:"end"},right:{side:"right",align:"center"},rightTop:{side:"right",align:"start"},rightBottom:{side:"right",align:"end"}}[n]}const f5=({content:n,title:o,placement:s="top",open:i,defaultOpen:d=!1,onOpenChange:f,overlayClassName:h,overlayStyle:y,children:v})=>{const[x,C]=S.useState(d),w=i!==void 0,N=w?i:x,R=A=>{w||C(A),f?.(A)},{side:O,align:j}=h9(s),D=typeof n=="function"?n():n;return m.jsxs(c5,{open:N,onOpenChange:R,children:[m.jsx(u5,{render:S.isValidElement(v)?v:void 0,children:S.isValidElement(v)?void 0:v}),m.jsxs(d5,{side:O,align:j,className:$(h),style:y,children:[o&&m.jsx(m9,{children:m.jsx(p9,{children:o})}),D&&m.jsx("div",{children:D})]})]})};f5.displayName="Popover";const g9=f5,y9={large:"[&_[data-slot=accordion-trigger]]:py-4 [&_[data-slot=accordion-trigger]]:text-base",middle:"[&_[data-slot=accordion-trigger]]:py-3",small:"[&_[data-slot=accordion-trigger]]:py-2 [&_[data-slot=accordion-trigger]]:text-xs"};function Uj(n){return n?Array.isArray(n)?n:[n]:[]}const m5=({items:n=[],activeKey:o,defaultActiveKey:s,accordion:i=!1,bordered:d=!0,expandIconPosition:f="start",ghost:h=!1,size:y="middle",onChange:v,collapsible:x,expandIcon:C,className:w,style:N,destroyInactivePanel:R=!1})=>{const[O,j]=S.useState(Uj(s)),D=o!==void 0,A=D?Uj(o):O,z=U=>{D||j(U),v?.(i?U[0]??null:U)},B=U=>{if(i){const L=A.includes(U)?[]:[U];z(L)}else{const L=A.includes(U)?A.filter(k=>k!==U):[...A,U];z(L)}};return m.jsx("div",{"data-slot":"collapse",className:$("w-full overflow-hidden rounded-lg",d&&!h&&"border",h&&"border-0",y9[y],w),style:N,children:n.map(U=>{const L=A.includes(U.key),k=U.collapsible??x,V=k==="disabled",H=U.showArrow!==!1,K=()=>{V||k!=="icon"&&B(U.key)},Z=G=>{G.stopPropagation(),!V&&B(U.key)},Q=C?C({isActive:L}):m.jsx(xr,{className:$("size-4 shrink-0 text-muted-foreground transition-transform",L&&"rotate-90")});return m.jsxs("div",{className:$("not-last:border-b",h&&"border-0",U.className),style:U.style,children:[m.jsxs("div",{className:$("flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors",!V&&"cursor-pointer hover:bg-muted/50",V&&"cursor-not-allowed opacity-50",!h&&L&&"bg-muted/30",f==="end"&&"flex-row-reverse justify-between",U.headerClass),onClick:K,role:"button",tabIndex:V?-1:0,"aria-expanded":L,onKeyDown:G=>{(G.key==="Enter"||G.key===" ")&&(G.preventDefault(),K())},children:[H&&m.jsx("span",{className:"inline-flex shrink-0",onClick:k==="icon"?Z:void 0,children:Q}),m.jsx("span",{className:"flex-1",children:U.label}),U.extra&&m.jsx("span",{className:"ml-auto shrink-0",onClick:G=>G.stopPropagation(),children:U.extra})]}),(L||U.forceRender||!R)&&m.jsx("div",{className:$("overflow-hidden transition-all",L?"max-h-[2000px] opacity-100":"max-h-0 opacity-0"),children:m.jsx("div",{className:"px-4 pb-4 pt-0 text-sm",children:U.children})})]},U.key)})})};m5.displayName="Collapse";const b9=m5,v9={default:{cell:"py-3 px-4 text-sm",label:"text-sm"},middle:{cell:"py-2.5 px-3 text-sm",label:"text-sm"},small:{cell:"py-2 px-3 text-xs",label:"text-xs"}};function x9(n,o){const s=[];let i=[],d=0;for(const f of n){const h=f.span??1;d+h>o&&i.length>0&&(s.push(i),i=[],d=0),i.push(f),d+=h,d>=o&&(s.push(i),i=[],d=0)}return i.length>0&&s.push(i),s}const p5=({items:n=[],bordered:o=!1,column:s=3,layout:i="horizontal",size:d="default",title:f,extra:h,colon:y=!0,className:v,style:x,labelStyle:C,contentStyle:w})=>{const N=typeof s=="number"?s:3,R=v9[d],O=x9(n,N);return o?m.jsxs("div",{className:$("w-full",v),style:x,children:[(f||h)&&m.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[f&&m.jsx("div",{className:"text-base font-semibold",children:f}),h&&m.jsx("div",{className:"ml-auto",children:h})]}),m.jsx("table",{className:"w-full border-collapse overflow-hidden rounded-lg border text-sm",children:m.jsx("tbody",{children:O.map((j,D)=>i==="vertical"?m.jsxs(S.Fragment,{children:[m.jsx("tr",{children:j.map((A,z)=>m.jsxs("th",{colSpan:A.span??1,className:$("border bg-muted/50 text-left font-medium text-muted-foreground",R.cell),style:{...C,...A.labelStyle},children:[A.label,y&&":"]},A.key??z))}),m.jsx("tr",{children:j.map((A,z)=>m.jsx("td",{colSpan:A.span??1,className:$("border",R.cell),style:{...w,...A.contentStyle},children:A.children},A.key??z))})]},D):m.jsx("tr",{children:j.map((A,z)=>m.jsxs(S.Fragment,{children:[m.jsxs("th",{className:$("border bg-muted/50 text-left font-medium text-muted-foreground",R.cell),style:{...C,...A.labelStyle},children:[A.label,y&&":"]}),m.jsx("td",{colSpan:(A.span??1)*2-1,className:$("border",R.cell),style:{...w,...A.contentStyle},children:A.children})]},A.key??z))},D))})})]}):m.jsxs("div",{className:$("w-full",v),style:x,children:[(f||h)&&m.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[f&&m.jsx("div",{className:"text-base font-semibold",children:f}),h&&m.jsx("div",{className:"ml-auto",children:h})]}),m.jsx("div",{className:"space-y-0",children:O.map((j,D)=>i==="vertical"?m.jsx("div",{className:$("grid border-b pb-3 pt-3",`grid-cols-${N}`),style:{gridTemplateColumns:`repeat(${N}, 1fr)`},children:j.map((A,z)=>m.jsxs("div",{className:$(R.cell,"py-1"),style:{gridColumn:A.span?`span ${A.span}`:void 0},children:[m.jsxs("div",{className:$("mb-1 text-muted-foreground",R.label),style:{...C,...A.labelStyle},children:[A.label,y&&":"]}),m.jsx("div",{style:{...w,...A.contentStyle},children:A.children})]},A.key??z))},D):m.jsx("div",{className:"grid border-b py-3",style:{gridTemplateColumns:`repeat(${N}, 1fr)`},children:j.map((A,z)=>m.jsxs("div",{className:$("flex gap-2",R.cell,"py-0"),style:{gridColumn:A.span?`span ${A.span}`:void 0},children:[m.jsxs("span",{className:$("shrink-0 text-muted-foreground",R.label),style:{...C,...A.labelStyle},children:[A.label,y&&":"]}),m.jsx("span",{style:{...w,...A.contentStyle},children:A.children})]},A.key??z))},D))})]})};p5.displayName="Descriptions";const S9=p5,w2={default:"py-3 px-4",large:"py-4 px-6",small:"py-2 px-3 text-sm"},h5=({avatar:n,title:o,description:s,className:i,style:d})=>m.jsxs("div",{className:$("flex items-start gap-3",i),style:d,children:[n&&m.jsx("div",{className:"shrink-0",children:n}),m.jsxs("div",{className:"min-w-0 flex-1",children:[o&&m.jsx("div",{className:"text-sm font-medium leading-snug",children:o}),s&&m.jsx("div",{className:"mt-0.5 text-sm text-muted-foreground",children:s})]})]});h5.displayName="List.Item.Meta";const g5=S.forwardRef(({actions:n,extra:o,className:s,style:i,children:d},f)=>m.jsxs("div",{ref:f,className:$("flex items-center gap-4",s),style:i,children:[m.jsx("div",{className:"min-w-0 flex-1",children:d}),o&&m.jsx("div",{className:"shrink-0",children:o}),n&&n.length>0&&m.jsx("div",{className:"flex shrink-0 items-center gap-2",children:n.map((h,y)=>m.jsxs(S.Fragment,{children:[y>0&&m.jsx("span",{className:"text-muted-foreground/40",children:"|"}),h]},y))})]}));g5.displayName="List.Item";function w9({config:n,total:o,onChange:s}){const{current:i=1,pageSize:d=10,align:f="end",simple:h,size:y}=n,v=Math.max(1,Math.ceil(o/d)),x=y==="small";return m.jsxs("div",{className:$("flex items-center gap-1 py-3",f==="center"&&"justify-center",f==="end"&&"justify-end",f==="start"&&"justify-start"),children:[m.jsx("button",{className:$("inline-flex items-center justify-center rounded-md border border-input bg-background hover:bg-muted disabled:pointer-events-none disabled:opacity-50",x?"size-7":"size-8"),disabled:i<=1,onClick:()=>s(i-1,d),children:m.jsx(vu,{className:"size-4"})}),h?m.jsxs("span",{className:"flex items-center gap-1 px-2 text-sm",children:[i," / ",v]}):Array.from({length:v},(C,w)=>w+1).slice(0,7).map(C=>m.jsx("button",{className:$("inline-flex items-center justify-center rounded-md text-sm font-medium",x?"size-7":"size-8",C===i?"border border-primary bg-primary text-primary-foreground":"border border-input bg-background hover:bg-muted"),onClick:()=>s(C,d),children:C},C)),m.jsx("button",{className:$("inline-flex items-center justify-center rounded-md border border-input bg-background hover:bg-muted disabled:pointer-events-none disabled:opacity-50",x?"size-7":"size-8"),disabled:i>=v,onClick:()=>s(i+1,d),children:m.jsx(xr,{className:"size-4"})})]})}function y5({dataSource:n=[],renderItem:o,header:s,footer:i,bordered:d=!1,loading:f=!1,pagination:h,size:y="default",grid:v,itemLayout:x="horizontal",split:C=!0,locale:w,className:N,style:R,rowKey:O}){const[j,D]=S.useState(1),[A,z]=S.useState(10),B=h!==!1&&h!==void 0,U=B?{...h,current:h.current??j,pageSize:h.pageSize??A}:{},L=U.total??n.length,k=S.useMemo(()=>{if(!B)return n;const{current:G=1,pageSize:q=10}=U;if(U.total!=null&&U.total!==n.length)return n;const W=(G-1)*q;return n.slice(W,W+q)},[n,B,U]),V=(G,q)=>{D(G),z(q),h&&typeof h=="object"&&h.onChange?.(G,q)},H=(G,q)=>typeof O=="function"?O(G):String(typeof O=="string"?G[O]:q),K=!!v,Z=K?{display:"grid",gridTemplateColumns:`repeat(${v.column??1}, 1fr)`,gap:v.gutter??0}:{},Q=B?m.jsx(w9,{config:U,total:L,onChange:V}):null;return m.jsxs("div",{className:$("w-full",d&&"rounded-lg border",N),style:R,children:[s&&m.jsx("div",{className:$("border-b",w2[y]),children:s}),h&&typeof h=="object"&&(h.position==="top"||h.position==="both")&&Q,f?m.jsx("div",{className:"space-y-3 p-4",children:Array.from({length:3}).map((G,q)=>m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(Pa,{className:"size-10 rounded-full"}),m.jsxs("div",{className:"flex-1 space-y-2",children:[m.jsx(Pa,{className:"h-3 w-3/4"}),m.jsx(Pa,{className:"h-3 w-1/2"})]})]},q))}):k.length===0?m.jsx("div",{className:"flex items-center justify-center py-12 text-sm text-muted-foreground",children:w?.emptyText??"No data"}):m.jsx("div",{style:Z,children:k.map((G,q)=>m.jsx("div",{className:$(w2[y],!K&&C&&"border-b last:border-b-0",x==="vertical"&&"flex flex-col"),children:o?.(G,q)},H(G,q)))}),(!h||typeof h!="object"||!h.position||h.position==="bottom"||h.position==="both")&&Q,i&&m.jsx("div",{className:$("border-t",w2[y]),children:i})]})}y5.displayName="List";const b5=g5;b5.Meta=h5;const v5=y5;v5.Item=b5;const x5=({className:n,style:o})=>m.jsxs("svg",{className:$("text-muted-foreground/30",n),style:o,width:"64",height:"41",viewBox:"0 0 64 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("ellipse",{cx:"32",cy:"33",rx:"32",ry:"7",fill:"currentColor",opacity:"0.3"}),m.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",opacity:"0.6",children:[m.jsx("path",{d:"M14 4.5h36a2 2 0 012 2v22a2 2 0 01-2 2H14a2 2 0 01-2-2v-22a2 2 0 012-2z"}),m.jsx("path",{d:"M22 14h20M22 19h12",strokeLinecap:"round"})]})]}),C9=({className:n,style:o})=>m.jsxs("svg",{className:$("text-muted-foreground/20",n),style:o,width:"64",height:"41",viewBox:"0 0 64 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("g",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",opacity:"0.5",children:m.jsx("path",{d:"M32 8v16M24 16h16",strokeLinecap:"round"})}),m.jsx("ellipse",{cx:"32",cy:"33",rx:"24",ry:"5",fill:"currentColor",opacity:"0.2"})]}),S5=S.forwardRef(({description:n,image:o,imageStyle:s,className:i,style:d,children:f},h)=>{const y=o===void 0?m.jsx(x5,{style:s}):typeof o=="string"?m.jsx("img",{src:o,alt:"empty",style:s}):m.jsx("div",{style:s,children:o});return m.jsxs("div",{ref:h,className:$("flex flex-col items-center justify-center py-8 text-center",i),style:d,children:[m.jsx("div",{className:"mb-2",children:y}),n!==null&&m.jsx("div",{className:"mb-4 text-sm text-muted-foreground",children:n??"No data"}),f&&m.jsx("div",{children:f})]})});S5.displayName="Empty";const E9=x5,N9=C9,jT=S5;jT.PRESENTED_IMAGE_DEFAULT=E9;jT.PRESENTED_IMAGE_SIMPLE=N9;function T9(n,o,s=",",i="."){if(typeof n=="string")return n;const f=(o!==void 0?n.toFixed(o):String(n)).split("."),h=f[0],y=f[1],v=h.replace(/\B(?=(\d{3})+(?!\d))/g,s);return y!==void 0?`${v}${i}${y}`:v}function Xg(n,o=2){return String(n).padStart(o,"0")}function M9(n,o){if(n<=0)return o.replace(/D+/g,"0").replace(/H+/g,"00").replace(/m+/g,"00").replace(/s+/g,"00");const s=Math.floor(n/1e3),i=Math.floor(s/86400),d=Math.floor(s%86400/3600),f=Math.floor(s%3600/60),h=s%60;let y=o;if(/D/.test(y))y=y.replace(/D+/g,String(i));else{const v=i*24+d;return y=y.replace(/H+/g,Xg(v)),y=y.replace(/m+/g,Xg(f)),y=y.replace(/s+/g,Xg(h)),y}return y=y.replace(/H+/g,Xg(d)),y=y.replace(/m+/g,Xg(f)),y=y.replace(/s+/g,Xg(h)),y}const w5=({title:n,value:o,precision:s,prefix:i,suffix:d,valueStyle:f,formatter:h,groupSeparator:y=",",loading:v=!1,decimalSeparator:x=".",className:C,style:w})=>{const N=S.useMemo(()=>o==null?"-":h?h(o):T9(o,s,y,x),[o,s,h,y,x]);return v?m.jsxs("div",{className:$("space-y-2",C),style:w,children:[m.jsx(Pa,{className:"h-4 w-20"}),m.jsx(Pa,{className:"h-8 w-32"})]}):m.jsxs("div",{className:$("space-y-1",C),style:w,children:[n&&m.jsx("div",{className:"text-sm text-muted-foreground",children:n}),m.jsxs("div",{className:"flex items-baseline gap-1",style:f,children:[i&&m.jsx("span",{className:"text-2xl font-semibold",children:i}),m.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:N}),d&&m.jsx("span",{className:"text-sm text-muted-foreground",children:d})]})]})};w5.displayName="Statistic";const C5=({value:n,format:o="HH:mm:ss",onFinish:s,onChange:i,title:d,prefix:f,suffix:h,valueStyle:y,className:v,style:x})=>{const C=n instanceof Date?n.getTime():n,[w,N]=S.useState(()=>Math.max(0,C-Date.now()));S.useEffect(()=>{const O=setInterval(()=>{const j=Math.max(0,C-Date.now());N(j),i?.(j),j<=0&&(clearInterval(O),s?.())},1e3);return()=>clearInterval(O)},[C,i,s]);const R=M9(w,o);return m.jsxs("div",{className:$("space-y-1",v),style:x,children:[d&&m.jsx("div",{className:"text-sm text-muted-foreground",children:d}),m.jsxs("div",{className:"flex items-baseline gap-1",style:y,children:[f&&m.jsx("span",{className:"text-2xl font-semibold",children:f}),m.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:R}),h&&m.jsx("span",{className:"text-sm text-muted-foreground",children:h})]})]})};C5.displayName="Statistic.Countdown";const E5=w5;E5.Countdown=C5;function R9(n){return typeof n=="string"||typeof n=="number"?{label:String(n),value:n}:n}const O9={large:{container:"h-10 p-1",item:"px-3 text-sm"},middle:{container:"h-8 p-1",item:"px-2.5 text-sm"},small:{container:"h-7 p-0.5",item:"px-2 text-xs"}},N5=({options:n,value:o,defaultValue:s,onChange:i,block:d=!1,disabled:f=!1,size:h="middle",className:y,style:v})=>{const x=S.useMemo(()=>n.map(R9),[n]),[C,w]=S.useState(()=>s??x[0]?.value??""),N=o!==void 0,R=N?o:C,O=D=>{f||(N||w(D),i?.(D))},j=O9[h];return m.jsx("div",{className:$("inline-flex items-center rounded-lg bg-muted",j.container,d&&"w-full",f&&"pointer-events-none opacity-50",y),style:v,role:"radiogroup",children:x.map(D=>{const A=D.value===R,z=f||D.disabled;return m.jsxs("button",{type:"button",role:"radio","aria-checked":A,disabled:z,className:$("inline-flex flex-1 items-center justify-center gap-1.5 rounded-md font-medium transition-all",j.item,d&&"flex-1",A?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground",z&&"pointer-events-none opacity-50",D.className),onClick:()=>O(D.value),children:[D.icon&&m.jsx("span",{className:"inline-flex items-center [&>svg]:size-4",children:D.icon}),D.label]},D.value)})})};N5.displayName="Segmented";const j9=N5,Bj={blue:"bg-blue-500 border-blue-500",red:"bg-red-500 border-red-500",green:"bg-green-500 border-green-500",gray:"bg-gray-400 border-gray-400"};function D9(n){return n?Bj[n]?{className:Bj[n]}:{style:{backgroundColor:n,borderColor:n}}:{className:"border-primary bg-primary"}}const T5=({items:n=[],mode:o="left",pending:s,pendingDot:i,reverse:d=!1,className:f,style:h})=>{const y=S.useMemo(()=>{let x=[...n];return s!==void 0&&x.push({children:s===!0?"Loading...":s,dot:i??m.jsx("span",{className:"inline-block size-2.5 animate-pulse rounded-full bg-primary"})}),d&&(x=x.reverse()),x},[n,s,i,d]),v=o==="alternate";return m.jsx("div",{className:$("relative",f),style:h,children:y.map((x,C)=>{const N=(v?x.position??(C%2===0?"left":"right"):o==="right"?"right":"left")==="right",R=D9(x.color),O=C===y.length-1;return v?m.jsxs("div",{className:$("relative flex",x.className),style:x.style,children:[m.jsx("div",{className:$("w-1/2 pr-6 text-right",N&&"text-left pl-6 pr-0"),children:N?x.label&&m.jsx("div",{className:"pb-6 text-sm text-muted-foreground",children:x.label}):m.jsx("div",{className:"pb-6",children:x.children})}),m.jsxs("div",{className:"relative flex flex-col items-center",children:[x.dot?m.jsx("div",{className:"z-10 flex items-center justify-center",children:x.dot}):m.jsx("div",{className:$("z-10 size-2.5 rounded-full border-2",R.className),style:R.style}),!O&&m.jsx("div",{className:"w-px flex-1 bg-border"})]}),m.jsx("div",{className:$("w-1/2 pl-6",N&&"pr-6 pl-0 text-right"),children:N?m.jsx("div",{className:"pb-6",children:x.children}):x.label&&m.jsx("div",{className:"pb-6 text-sm text-muted-foreground",children:x.label})})]},C):m.jsxs("div",{className:$("relative flex",N&&"flex-row-reverse",x.className),style:x.style,children:[x.label&&m.jsx("div",{className:$("shrink-0 text-sm text-muted-foreground",N?"pl-4 text-left":"pr-4 text-right","w-24"),children:x.label}),m.jsxs("div",{className:"relative flex flex-col items-center",children:[x.dot?m.jsx("div",{className:"z-10 flex items-center justify-center",children:x.dot}):m.jsx("div",{className:$("z-10 size-2.5 rounded-full border-2",R.className),style:R.style}),!O&&m.jsx("div",{className:"w-px flex-1 bg-border"})]}),m.jsx("div",{className:$("flex-1 pb-6",N?"pr-4 text-right":"pl-4"),children:x.children})]},C)})})};T5.displayName="Timeline";const k9=T5;function A9(n){const o=[],s=i=>{for(const d of i)o.push(d.key),d.children&&s(d.children)};return s(n),o}function uN(n){const o=[],s=i=>{for(const d of i)!d.disabled&&!d.disableCheckbox&&o.push(d.key),d.children&&s(d.children)};return n.children&&s(n.children),o}function z9(n,o,s){const i=new Set(s);if(o){i.add(n.key);for(const d of uN(n))i.add(d)}else{i.delete(n.key);for(const d of uN(n))i.delete(d)}return i}function C2(n,o){const s=[],i=d=>{for(const f of d)if(f.children&&f.children.length>0){i(f.children);const h=uN(f),y=h.length>0&&h.every(x=>o.has(x)),v=h.some(x=>o.has(x));y?o.add(f.key):v&&(s.push(f.key),o.delete(f.key))}};return i(n),s}const _9=({node:n,level:o,expanded:s,selected:i,checked:d,halfChecked:f,checkable:h,showLine:y,showIcon:v,blockNode:x,loading:C,isDirectory:w,onExpand:N,onSelect:R,onCheck:O,onDoubleClick:j,switcherIcon:D,titleRender:A,globalIcon:z,filterTreeNode:B,renderChildren:U})=>{const L=n.isLeaf??(!n.children||n.children.length===0),k=!L,V=B?B(n):!1,H=q=>{q.stopPropagation(),(k||C)&&N(n.key)},K=()=>{n.disabled||n.selectable!==!1&&R(n.key)},Z=()=>{n.disabled||n.disableCheckbox||O(n.key,!d)},Q=()=>{if(!v)return null;if(n.icon)return m.jsx("span",{className:"mr-1 inline-flex items-center [&>svg]:size-4",children:n.icon});if(z){const q=typeof z=="function"?z(n):z;return m.jsx("span",{className:"mr-1 inline-flex items-center [&>svg]:size-4",children:q})}return w?m.jsx("span",{className:"mr-1 inline-flex items-center text-muted-foreground",children:s?m.jsx(p8,{className:"size-4"}):m.jsx(g8,{className:"size-4"})}):L?m.jsx("span",{className:"mr-1 inline-flex items-center text-muted-foreground",children:m.jsx(f8,{className:"size-4"})}):null},G=()=>{if(L)return y?m.jsx("span",{className:"inline-flex size-6 items-center justify-center text-muted-foreground",children:"-"}):m.jsx("span",{className:"inline-block size-6"});if(C)return m.jsx("span",{className:"inline-flex size-6 items-center justify-center",children:m.jsx(Zs,{className:"size-3.5 animate-spin text-muted-foreground"})});if(D){const q=typeof D=="function"?D({expanded:s}):D;return m.jsx("span",{className:"inline-flex size-6 cursor-pointer items-center justify-center",onClick:H,children:q})}return m.jsx("span",{className:"inline-flex size-6 cursor-pointer items-center justify-center text-muted-foreground transition-transform hover:text-foreground",onClick:H,children:s?m.jsx(py,{className:"size-4"}):m.jsx(xr,{className:"size-4"})})};return m.jsxs("div",{className:$(n.className),style:n.style,children:[m.jsxs("div",{className:$("group flex items-center gap-0.5 rounded-md py-0.5",x&&"w-full",i&&"bg-primary/10",V&&"bg-yellow-100 dark:bg-yellow-900/30",n.disabled&&"pointer-events-none opacity-50",!n.disabled&&"hover:bg-muted/50"),style:{paddingLeft:o*24},onClick:K,onDoubleClick:j?()=>j(n.key):void 0,children:[G(),h&&n.checkable!==!1&&m.jsx("span",{className:"mr-1 inline-flex items-center",children:m.jsx("input",{type:"checkbox",className:"size-4 rounded border-input accent-primary",checked:d,ref:q=>{q&&(q.indeterminate=f)},onChange:Z,disabled:n.disabled||n.disableCheckbox,onClick:q=>q.stopPropagation()})}),Q(),m.jsx("span",{className:$("cursor-pointer select-none text-sm",i&&"font-medium text-primary"),children:A?A(n):n.title})]}),k&&s&&n.children&&m.jsx("div",{className:$(y&&"border-l border-border ml-3"),children:U(n.children,o+1)})]})},DT=({treeData:n=[],checkable:o=!1,selectedKeys:s,defaultSelectedKeys:i=[],checkedKeys:d,defaultCheckedKeys:f=[],expandedKeys:h,defaultExpandedKeys:y=[],defaultExpandAll:v=!1,onSelect:x,onCheck:C,onExpand:w,showLine:N=!1,showIcon:R=!1,loadData:O,multiple:j=!1,checkStrictly:D=!1,switcherIcon:A,blockNode:z=!1,className:B,style:U,titleRender:L,filterTreeNode:k,icon:V})=>{const[H,K]=S.useState(()=>v?A9(n):y),Z=h??H,[Q,G]=S.useState(i),q=s??Q,[W,te]=S.useState(()=>d?Array.isArray(d)?d:d.checked:f),Y=d?Array.isArray(d)?d:d.checked:W,P=S.useMemo(()=>new Set(Y),[Y]),F=S.useMemo(()=>{if(D)return[];const le=new Set(P);return C2(n,le)},[P,n,D]),ee=S.useMemo(()=>new Set(F),[F]),[oe,we]=S.useState(new Set),se=async le=>{const Se=Z.includes(le),ze=Se?Z.filter(fe=>fe!==le):[...Z,le];h||K(ze);const je=fe=>{for(const ce of fe){if(ce.key===le)return ce;if(ce.children){const ae=je(ce.children);if(ae)return ae}}},ve=je(n);if(w?.(ze,{node:ve,expanded:!Se}),!Se&&O&&ve&&!ve.isLeaf&&(!ve.children||ve.children.length===0)){we(fe=>new Set(fe).add(le));try{await O(ve)}finally{we(fe=>{const ce=new Set(fe);return ce.delete(le),ce})}}},Ce=le=>{let Se;j?Se=q.includes(le)?q.filter(ve=>ve!==le):[...q,le]:Se=q.includes(le)?[]:[le],s||G(Se);const ze=ve=>{for(const fe of ve){if(fe.key===le)return fe;if(fe.children){const ce=ze(fe.children);if(ce)return ce}}},je=ze(n);x?.(Se,{node:je,selected:Se.includes(le)})},re=(le,Se)=>{const ze=ae=>{for(const ue of ae){if(ue.key===le)return ue;if(ue.children){const be=ze(ue.children);if(be)return be}}},je=ze(n);if(!je)return;let ve;D?(ve=new Set(P),Se?ve.add(le):ve.delete(le)):(ve=z9(je,Se,P),C2(n,ve));const fe=Array.from(ve);d||te(fe);const ce=D?[]:C2(n,new Set(fe));C?.(D?{checked:fe,halfChecked:[]}:fe,{node:je,checked:Se,halfCheckedKeys:ce})},he=(le,Se)=>le.map(ze=>m.jsx(_9,{node:ze,level:Se,expanded:Z.includes(ze.key),selected:q.includes(ze.key),checked:P.has(ze.key),halfChecked:ee.has(ze.key),checkable:o,showLine:N,showIcon:R,blockNode:z,loading:oe.has(ze.key),isDirectory:!1,onExpand:se,onSelect:Ce,onCheck:re,switcherIcon:A,titleRender:L,globalIcon:V,filterTreeNode:k,renderChildren:he},ze.key));return m.jsx("div",{className:$("w-full py-1",B),style:U,role:"tree",children:he(n,0)})};DT.displayName="Tree";const M5=({expandAction:n="click",showIcon:o=!0,blockNode:s=!0,...i})=>m.jsx(DT,{showIcon:o,blockNode:s,...i});M5.displayName="Tree.DirectoryTree";const R5=DT;R5.DirectoryTree=M5;const O5=({visible:n,src:o,alt:s,onClose:i,onPrev:d,onNext:f,hasPrev:h,hasNext:y,scaleStep:v=.5,minScale:x=.25,maxScale:C=5})=>{const[w,N]=S.useState(1),[R,O]=S.useState(0);return S.useEffect(()=>{n&&(N(1),O(0))},[n,o]),S.useEffect(()=>{if(!n)return;const j=D=>{D.key==="Escape"&&i(),D.key==="ArrowLeft"&&d&&h&&d(),D.key==="ArrowRight"&&f&&y&&f()};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[n,i,d,f,h,y]),n?m.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center",children:[m.jsx("div",{className:"absolute inset-0 bg-black/70",onClick:i}),m.jsxs("div",{className:"absolute top-4 right-4 z-10 flex items-center gap-2",children:[m.jsx("button",{className:"rounded-full bg-black/50 p-2 text-white hover:bg-black/70",onClick:()=>N(Math.max(x,w-v)),title:"Zoom out",children:m.jsx(U8,{className:"size-5"})}),m.jsx("button",{className:"rounded-full bg-black/50 p-2 text-white hover:bg-black/70",onClick:()=>N(Math.min(C,w+v)),title:"Zoom in",children:m.jsx(z8,{className:"size-5"})}),m.jsx("button",{className:"rounded-full bg-black/50 p-2 text-white hover:bg-black/70",onClick:()=>O(R+90),title:"Rotate",children:m.jsx(E8,{className:"size-5"})}),m.jsx("button",{className:"rounded-full bg-black/50 p-2 text-white hover:bg-black/70",onClick:i,title:"Close",children:m.jsx(go,{className:"size-5"})})]}),d&&h&&m.jsx("button",{className:"absolute left-4 z-10 rounded-full bg-black/50 p-2 text-white hover:bg-black/70",onClick:d,children:m.jsx(vu,{className:"size-6"})}),f&&y&&m.jsx("button",{className:"absolute right-4 z-10 rounded-full bg-black/50 p-2 text-white hover:bg-black/70",onClick:f,children:m.jsx(xr,{className:"size-6"})}),m.jsx("img",{src:o,alt:s,className:"relative z-[1] max-h-[85vh] max-w-[85vw] object-contain transition-transform",style:{transform:`scale(${w}) rotate(${R}deg)`},draggable:!1})]}):null},j5=S.forwardRef(({src:n,alt:o,width:s,height:i,preview:d=!0,fallback:f,placeholder:h,rootClassName:y,className:v,style:x,...C},w)=>{const[N,R]=S.useState(!1),[O,j]=S.useState(!1),[D,A]=S.useState(!1),z=d===!1?!1:d===!0?{}:d,B=z!==!1&&z.visible!==void 0,U=z!==!1&&(B?z.visible:D),L=K=>{z!==!1&&z.onVisibleChange&&z.onVisibleChange(K),B||A(K)},k=N&&f?f:n,V=z!==!1&&z.src?z.src:k,H=h&&!O&&!N;return m.jsxs(m.Fragment,{children:[m.jsxs("div",{ref:w,className:$("relative inline-block overflow-hidden",y),style:{width:s,height:i},children:[H&&m.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted",children:h===!0?m.jsx("div",{className:"animate-pulse bg-muted",style:{width:s,height:i}}):h}),m.jsx("img",{src:k,alt:o,width:s,height:i,className:$("block",!O&&"opacity-0",O&&"opacity-100 transition-opacity",v),style:x,onLoad:()=>j(!0),onError:()=>{R(!0),j(!0)},...C}),z!==!1&&m.jsx("div",{className:"absolute inset-0 flex cursor-pointer items-center justify-center bg-black/0 opacity-0 transition-opacity hover:bg-black/40 hover:opacity-100",onClick:()=>L(!0),children:z.mask??m.jsxs("span",{className:"flex items-center gap-1 text-sm text-white",children:[m.jsx(zD,{className:"size-4"}),"Preview"]})})]}),z!==!1&&m.jsx(O5,{visible:!!U,src:V??"",alt:o,onClose:()=>L(!1),scaleStep:z.scaleStep,minScale:z.minScale,maxScale:z.maxScale})]})});j5.displayName="Image";const D5=({preview:n=!0,items:o,className:s,children:i})=>{const[d,f]=S.useState(0),[h,y]=S.useState(!1),v=n===!1?!1:n===!0?{}:n,x=v!==!1&&v.visible!==void 0,C=x?v.visible:h,w=O=>{v!==!1&&v.onVisibleChange&&v.onVisibleChange(O),x||y(O)},N=o??[],R=S.Children.map(i,(O,j)=>{if(S.isValidElement(O)){const D=O.props.onClick;return S.cloneElement(O,{onClick:()=>{f(j),w(!0),D?.()},preview:!1})}return O});return m.jsxs("div",{className:$("inline-flex flex-wrap gap-2",s),children:[R,v!==!1&&m.jsx(O5,{visible:!!C,src:N[d]??"",onClose:()=>w(!1),onPrev:()=>f(Math.max(0,d-1)),onNext:()=>f(Math.min(N.length-1,d+1)),hasPrev:d>0,hasNext:d<N.length-1,scaleStep:v.scaleStep,minScale:v.minScale,maxScale:v.maxScale})]})};D5.displayName="Image.PreviewGroup";const k5=j5;k5.PreviewGroup=D5;function U9(n,o,s="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:n,timeZoneName:s}).format(o).split(/\s/g).slice(2).join(" ")}const B9={},Av={};function dp(n,o){try{const i=(B9[n]||=new Intl.DateTimeFormat("en-US",{timeZone:n,timeZoneName:"longOffset"}).format)(o).split("GMT")[1];return i in Av?Av[i]:Lj(i,i.split(":"))}catch{if(n in Av)return Av[n];const s=n?.match(L9);return s?Lj(n,s.slice(1)):NaN}}const L9=/([+-]\d\d):?(\d\d)?/;function Lj(n,o){const s=+(o[0]||0),i=+(o[1]||0),d=+(o[2]||0)/60;return Av[n]=s*60+i>0?s*60+i+d:s*60-i-d}class qi extends Date{constructor(...o){super(),o.length>1&&typeof o[o.length-1]=="string"&&(this.timeZone=o.pop()),this.internal=new Date,isNaN(dp(this.timeZone,this))?this.setTime(NaN):o.length?typeof o[0]=="number"&&(o.length===1||o.length===2&&typeof o[1]!="number")?this.setTime(o[0]):typeof o[0]=="string"?this.setTime(+new Date(o[0])):o[0]instanceof Date?this.setTime(+o[0]):(this.setTime(+new Date(...o)),A5(this),dN(this)):this.setTime(Date.now())}static tz(o,...s){return s.length?new qi(...s,o):new qi(Date.now(),o)}withTimeZone(o){return new qi(+this,o)}getTimezoneOffset(){const o=-dp(this.timeZone,this);return o>0?Math.floor(o):Math.ceil(o)}setTime(o){return Date.prototype.setTime.apply(this,arguments),dN(this),+this}[Symbol.for("constructDateFrom")](o){return new qi(+new Date(o),this.timeZone)}}const Vj=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(n=>{if(!Vj.test(n))return;const o=n.replace(Vj,"$1UTC");qi.prototype[o]&&(n.startsWith("get")?qi.prototype[n]=function(){return this.internal[o]()}:(qi.prototype[n]=function(){return Date.prototype[o].apply(this.internal,arguments),V9(this),+this},qi.prototype[o]=function(){return Date.prototype[o].apply(this,arguments),dN(this),+this}))});function dN(n){n.internal.setTime(+n),n.internal.setUTCSeconds(n.internal.getUTCSeconds()-Math.round(-dp(n.timeZone,n)*60))}function V9(n){Date.prototype.setFullYear.call(n,n.internal.getUTCFullYear(),n.internal.getUTCMonth(),n.internal.getUTCDate()),Date.prototype.setHours.call(n,n.internal.getUTCHours(),n.internal.getUTCMinutes(),n.internal.getUTCSeconds(),n.internal.getUTCMilliseconds()),A5(n)}function A5(n){const o=dp(n.timeZone,n),s=o>0?Math.floor(o):Math.ceil(o),i=new Date(+n);i.setUTCHours(i.getUTCHours()-1);const d=-new Date(+n).getTimezoneOffset(),f=-new Date(+i).getTimezoneOffset(),h=d-f,y=Date.prototype.getHours.apply(n)!==n.internal.getUTCHours();h&&y&&n.internal.setUTCMinutes(n.internal.getUTCMinutes()+h);const v=d-s;v&&Date.prototype.setUTCMinutes.call(n,Date.prototype.getUTCMinutes.call(n)+v);const x=new Date(+n);x.setUTCSeconds(0);const C=d>0?x.getSeconds():(x.getSeconds()-60)%60,w=Math.round(-(dp(n.timeZone,n)*60))%60;(w||C)&&(n.internal.setUTCSeconds(n.internal.getUTCSeconds()+w),Date.prototype.setUTCSeconds.call(n,Date.prototype.getUTCSeconds.call(n)+w+C));const N=dp(n.timeZone,n),R=N>0?Math.floor(N):Math.ceil(N),j=-new Date(+n).getTimezoneOffset()-R,D=R!==s,A=j-v;if(D&&A){Date.prototype.setUTCMinutes.call(n,Date.prototype.getUTCMinutes.call(n)+A);const z=dp(n.timeZone,n),B=z>0?Math.floor(z):Math.ceil(z),U=R-B;U&&(n.internal.setUTCMinutes(n.internal.getUTCMinutes()+U),Date.prototype.setUTCMinutes.call(n,Date.prototype.getUTCMinutes.call(n)+U))}}class $o extends qi{static tz(o,...s){return s.length?new $o(...s,o):new $o(Date.now(),o)}toISOString(){const[o,s,i]=this.tzComponents(),d=`${o}${s}:${i}`;return this.internal.toISOString().slice(0,-1)+d}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[o,s,i,d]=this.internal.toUTCString().split(" ");return`${o?.slice(0,-1)} ${i} ${s} ${d}`}toTimeString(){const o=this.internal.toUTCString().split(" ")[4],[s,i,d]=this.tzComponents();return`${o} GMT${s}${i}${d} (${U9(this.timeZone,this)})`}toLocaleString(o,s){return Date.prototype.toLocaleString.call(this,o,{...s,timeZone:s?.timeZone||this.timeZone})}toLocaleDateString(o,s){return Date.prototype.toLocaleDateString.call(this,o,{...s,timeZone:s?.timeZone||this.timeZone})}toLocaleTimeString(o,s){return Date.prototype.toLocaleTimeString.call(this,o,{...s,timeZone:s?.timeZone||this.timeZone})}tzComponents(){const o=this.getTimezoneOffset(),s=o>0?"-":"+",i=String(Math.floor(Math.abs(o)/60)).padStart(2,"0"),d=String(Math.abs(o)%60).padStart(2,"0");return[s,i,d]}withTimeZone(o){return new $o(+this,o)}[Symbol.for("constructDateFrom")](o){return new $o(+new Date(o),this.timeZone)}}const z5=6048e5,H9=864e5,Hj=Symbol.for("constructDateFrom");function Za(n,o){return typeof n=="function"?n(o):n&&typeof n=="object"&&Hj in n?n[Hj](o):n instanceof Date?new n.constructor(o):new Date(o)}function Vn(n,o){return Za(o||n,n)}function _5(n,o,s){const i=Vn(n,s?.in);return isNaN(o)?Za(n,NaN):(o&&i.setDate(i.getDate()+o),i)}function U5(n,o,s){const i=Vn(n,s?.in);if(isNaN(o))return Za(n,NaN);if(!o)return i;const d=i.getDate(),f=Za(n,i.getTime());f.setMonth(i.getMonth()+o+1,0);const h=f.getDate();return d>=h?f:(i.setFullYear(f.getFullYear(),f.getMonth(),d),i)}let I9={};function ux(){return I9}function cy(n,o){const s=ux(),i=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,d=Vn(n,o?.in),f=d.getDay(),h=(f<i?7:0)+f-i;return d.setDate(d.getDate()-h),d.setHours(0,0,0,0),d}function Xv(n,o){return cy(n,{...o,weekStartsOn:1})}function B5(n,o){const s=Vn(n,o?.in),i=s.getFullYear(),d=Za(s,0);d.setFullYear(i+1,0,4),d.setHours(0,0,0,0);const f=Xv(d),h=Za(s,0);h.setFullYear(i,0,4),h.setHours(0,0,0,0);const y=Xv(h);return s.getTime()>=f.getTime()?i+1:s.getTime()>=y.getTime()?i:i-1}function Ij(n){const o=Vn(n),s=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return s.setUTCFullYear(o.getFullYear()),+n-+s}function wy(n,...o){const s=Za.bind(null,o.find(i=>typeof i=="object"));return o.map(s)}function Pv(n,o){const s=Vn(n,o?.in);return s.setHours(0,0,0,0),s}function kT(n,o,s){const[i,d]=wy(s?.in,n,o),f=Pv(i),h=Pv(d),y=+f-Ij(f),v=+h-Ij(h);return Math.round((y-v)/H9)}function Y9(n,o){const s=B5(n,o),i=Za(n,0);return i.setFullYear(s,0,4),i.setHours(0,0,0,0),Xv(i)}function q9(n,o,s){return _5(n,o*7,s)}function G9(n,o,s){return U5(n,o*12,s)}function X9(n,o){let s,i=o?.in;return n.forEach(d=>{!i&&typeof d=="object"&&(i=Za.bind(null,d));const f=Vn(d,i);(!s||s<f||isNaN(+f))&&(s=f)}),Za(i,s||NaN)}function P9(n,o){let s,i=o?.in;return n.forEach(d=>{!i&&typeof d=="object"&&(i=Za.bind(null,d));const f=Vn(d,i);(!s||s>f||isNaN(+f))&&(s=f)}),Za(i,s||NaN)}function $9(n,o,s){const[i,d]=wy(s?.in,n,o);return+Pv(i)==+Pv(d)}function L5(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Q9(n){return!(!L5(n)&&typeof n!="number"||isNaN(+Vn(n)))}function V5(n,o,s){const[i,d]=wy(s?.in,n,o),f=i.getFullYear()-d.getFullYear(),h=i.getMonth()-d.getMonth();return f*12+h}function Z9(n,o){const s=Vn(n,o?.in),i=s.getMonth();return s.setFullYear(s.getFullYear(),i+1,0),s.setHours(23,59,59,999),s}function H5(n,o){const[s,i]=wy(n,o.start,o.end);return{start:s,end:i}}function K9(n,o){const{start:s,end:i}=H5(o?.in,n);let d=+s>+i;const f=d?+s:+i,h=d?i:s;h.setHours(0,0,0,0),h.setDate(1);let y=1;const v=[];for(;+h<=f;)v.push(Za(s,h)),h.setMonth(h.getMonth()+y);return d?v.reverse():v}function F9(n,o){const s=Vn(n,o?.in);return s.setDate(1),s.setHours(0,0,0,0),s}function W9(n,o){const s=Vn(n,o?.in),i=s.getFullYear();return s.setFullYear(i+1,0,0),s.setHours(23,59,59,999),s}function I5(n,o){const s=Vn(n,o?.in);return s.setFullYear(s.getFullYear(),0,1),s.setHours(0,0,0,0),s}function J9(n,o){const{start:s,end:i}=H5(o?.in,n);let d=+s>+i;const f=d?+s:+i,h=d?i:s;h.setHours(0,0,0,0),h.setMonth(0,1);let y=1;const v=[];for(;+h<=f;)v.push(Za(s,h)),h.setFullYear(h.getFullYear()+y);return d?v.reverse():v}function Y5(n,o){const s=ux(),i=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,d=Vn(n,o?.in),f=d.getDay(),h=(f<i?-7:0)+6-(f-i);return d.setDate(d.getDate()+h),d.setHours(23,59,59,999),d}function eI(n,o){return Y5(n,{...o,weekStartsOn:1})}const tI={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},nI=(n,o,s)=>{let i;const d=tI[n];return typeof d=="string"?i=d:o===1?i=d.one:i=d.other.replace("{{count}}",o.toString()),s?.addSuffix?s.comparison&&s.comparison>0?"in "+i:i+" ago":i};function E2(n){return(o={})=>{const s=o.width?String(o.width):n.defaultWidth;return n.formats[s]||n.formats[n.defaultWidth]}}const aI={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},oI={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lI={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},rI={date:E2({formats:aI,defaultWidth:"full"}),time:E2({formats:oI,defaultWidth:"full"}),dateTime:E2({formats:lI,defaultWidth:"full"})},sI={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},iI=(n,o,s,i)=>sI[n];function Ev(n){return(o,s)=>{const i=s?.context?String(s.context):"standalone";let d;if(i==="formatting"&&n.formattingValues){const h=n.defaultFormattingWidth||n.defaultWidth,y=s?.width?String(s.width):h;d=n.formattingValues[y]||n.formattingValues[h]}else{const h=n.defaultWidth,y=s?.width?String(s.width):n.defaultWidth;d=n.values[y]||n.values[h]}const f=n.argumentCallback?n.argumentCallback(o):o;return d[f]}}const cI={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},uI={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},dI={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},fI={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},mI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},pI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},hI=(n,o)=>{const s=Number(n),i=s%100;if(i>20||i<10)switch(i%10){case 1:return s+"st";case 2:return s+"nd";case 3:return s+"rd"}return s+"th"},gI={ordinalNumber:hI,era:Ev({values:cI,defaultWidth:"wide"}),quarter:Ev({values:uI,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Ev({values:dI,defaultWidth:"wide"}),day:Ev({values:fI,defaultWidth:"wide"}),dayPeriod:Ev({values:mI,defaultWidth:"wide",formattingValues:pI,defaultFormattingWidth:"wide"})};function Nv(n){return(o,s={})=>{const i=s.width,d=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],f=o.match(d);if(!f)return null;const h=f[0],y=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],v=Array.isArray(y)?bI(y,w=>w.test(h)):yI(y,w=>w.test(h));let x;x=n.valueCallback?n.valueCallback(v):v,x=s.valueCallback?s.valueCallback(x):x;const C=o.slice(h.length);return{value:x,rest:C}}}function yI(n,o){for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)&&o(n[s]))return s}function bI(n,o){for(let s=0;s<n.length;s++)if(o(n[s]))return s}function vI(n){return(o,s={})=>{const i=o.match(n.matchPattern);if(!i)return null;const d=i[0],f=o.match(n.parsePattern);if(!f)return null;let h=n.valueCallback?n.valueCallback(f[0]):f[0];h=s.valueCallback?s.valueCallback(h):h;const y=o.slice(d.length);return{value:h,rest:y}}}const xI=/^(\d+)(th|st|nd|rd)?/i,SI=/\d+/i,wI={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},CI={any:[/^b/i,/^(a|c)/i]},EI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},NI={any:[/1/i,/2/i,/3/i,/4/i]},TI={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},MI={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},RI={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},OI={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},jI={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},DI={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kI={ordinalNumber:vI({matchPattern:xI,parsePattern:SI,valueCallback:n=>parseInt(n,10)}),era:Nv({matchPatterns:wI,defaultMatchWidth:"wide",parsePatterns:CI,defaultParseWidth:"any"}),quarter:Nv({matchPatterns:EI,defaultMatchWidth:"wide",parsePatterns:NI,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Nv({matchPatterns:TI,defaultMatchWidth:"wide",parsePatterns:MI,defaultParseWidth:"any"}),day:Nv({matchPatterns:RI,defaultMatchWidth:"wide",parsePatterns:OI,defaultParseWidth:"any"}),dayPeriod:Nv({matchPatterns:jI,defaultMatchWidth:"any",parsePatterns:DI,defaultParseWidth:"any"})},Zg={code:"en-US",formatDistance:nI,formatLong:rI,formatRelative:iI,localize:gI,match:kI,options:{weekStartsOn:0,firstWeekContainsDate:1}};function AI(n,o){const s=Vn(n,o?.in);return kT(s,I5(s))+1}function AT(n,o){const s=Vn(n,o?.in),i=+Xv(s)-+Y9(s);return Math.round(i/z5)+1}function q5(n,o){const s=Vn(n,o?.in),i=s.getFullYear(),d=ux(),f=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,h=Za(o?.in||n,0);h.setFullYear(i+1,0,f),h.setHours(0,0,0,0);const y=cy(h,o),v=Za(o?.in||n,0);v.setFullYear(i,0,f),v.setHours(0,0,0,0);const x=cy(v,o);return+s>=+y?i+1:+s>=+x?i:i-1}function zI(n,o){const s=ux(),i=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,d=q5(n,o),f=Za(o?.in||n,0);return f.setFullYear(d,0,i),f.setHours(0,0,0,0),cy(f,o)}function zT(n,o){const s=Vn(n,o?.in),i=+cy(s,o)-+zI(s,o);return Math.round(i/z5)+1}function An(n,o){const s=n<0?"-":"",i=Math.abs(n).toString().padStart(o,"0");return s+i}const ef={y(n,o){const s=n.getFullYear(),i=s>0?s:1-s;return An(o==="yy"?i%100:i,o.length)},M(n,o){const s=n.getMonth();return o==="M"?String(s+1):An(s+1,2)},d(n,o){return An(n.getDate(),o.length)},a(n,o){const s=n.getHours()/12>=1?"pm":"am";switch(o){case"a":case"aa":return s.toUpperCase();case"aaa":return s;case"aaaaa":return s[0];default:return s==="am"?"a.m.":"p.m."}},h(n,o){return An(n.getHours()%12||12,o.length)},H(n,o){return An(n.getHours(),o.length)},m(n,o){return An(n.getMinutes(),o.length)},s(n,o){return An(n.getSeconds(),o.length)},S(n,o){const s=o.length,i=n.getMilliseconds(),d=Math.trunc(i*Math.pow(10,s-3));return An(d,o.length)}},Pg={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Yj={G:function(n,o,s){const i=n.getFullYear()>0?1:0;switch(o){case"G":case"GG":case"GGG":return s.era(i,{width:"abbreviated"});case"GGGGG":return s.era(i,{width:"narrow"});default:return s.era(i,{width:"wide"})}},y:function(n,o,s){if(o==="yo"){const i=n.getFullYear(),d=i>0?i:1-i;return s.ordinalNumber(d,{unit:"year"})}return ef.y(n,o)},Y:function(n,o,s,i){const d=q5(n,i),f=d>0?d:1-d;if(o==="YY"){const h=f%100;return An(h,2)}return o==="Yo"?s.ordinalNumber(f,{unit:"year"}):An(f,o.length)},R:function(n,o){const s=B5(n);return An(s,o.length)},u:function(n,o){const s=n.getFullYear();return An(s,o.length)},Q:function(n,o,s){const i=Math.ceil((n.getMonth()+1)/3);switch(o){case"Q":return String(i);case"QQ":return An(i,2);case"Qo":return s.ordinalNumber(i,{unit:"quarter"});case"QQQ":return s.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return s.quarter(i,{width:"narrow",context:"formatting"});default:return s.quarter(i,{width:"wide",context:"formatting"})}},q:function(n,o,s){const i=Math.ceil((n.getMonth()+1)/3);switch(o){case"q":return String(i);case"qq":return An(i,2);case"qo":return s.ordinalNumber(i,{unit:"quarter"});case"qqq":return s.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return s.quarter(i,{width:"narrow",context:"standalone"});default:return s.quarter(i,{width:"wide",context:"standalone"})}},M:function(n,o,s){const i=n.getMonth();switch(o){case"M":case"MM":return ef.M(n,o);case"Mo":return s.ordinalNumber(i+1,{unit:"month"});case"MMM":return s.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return s.month(i,{width:"narrow",context:"formatting"});default:return s.month(i,{width:"wide",context:"formatting"})}},L:function(n,o,s){const i=n.getMonth();switch(o){case"L":return String(i+1);case"LL":return An(i+1,2);case"Lo":return s.ordinalNumber(i+1,{unit:"month"});case"LLL":return s.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return s.month(i,{width:"narrow",context:"standalone"});default:return s.month(i,{width:"wide",context:"standalone"})}},w:function(n,o,s,i){const d=zT(n,i);return o==="wo"?s.ordinalNumber(d,{unit:"week"}):An(d,o.length)},I:function(n,o,s){const i=AT(n);return o==="Io"?s.ordinalNumber(i,{unit:"week"}):An(i,o.length)},d:function(n,o,s){return o==="do"?s.ordinalNumber(n.getDate(),{unit:"date"}):ef.d(n,o)},D:function(n,o,s){const i=AI(n);return o==="Do"?s.ordinalNumber(i,{unit:"dayOfYear"}):An(i,o.length)},E:function(n,o,s){const i=n.getDay();switch(o){case"E":case"EE":case"EEE":return s.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return s.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(i,{width:"short",context:"formatting"});default:return s.day(i,{width:"wide",context:"formatting"})}},e:function(n,o,s,i){const d=n.getDay(),f=(d-i.weekStartsOn+8)%7||7;switch(o){case"e":return String(f);case"ee":return An(f,2);case"eo":return s.ordinalNumber(f,{unit:"day"});case"eee":return s.day(d,{width:"abbreviated",context:"formatting"});case"eeeee":return s.day(d,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(d,{width:"short",context:"formatting"});default:return s.day(d,{width:"wide",context:"formatting"})}},c:function(n,o,s,i){const d=n.getDay(),f=(d-i.weekStartsOn+8)%7||7;switch(o){case"c":return String(f);case"cc":return An(f,o.length);case"co":return s.ordinalNumber(f,{unit:"day"});case"ccc":return s.day(d,{width:"abbreviated",context:"standalone"});case"ccccc":return s.day(d,{width:"narrow",context:"standalone"});case"cccccc":return s.day(d,{width:"short",context:"standalone"});default:return s.day(d,{width:"wide",context:"standalone"})}},i:function(n,o,s){const i=n.getDay(),d=i===0?7:i;switch(o){case"i":return String(d);case"ii":return An(d,o.length);case"io":return s.ordinalNumber(d,{unit:"day"});case"iii":return s.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return s.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return s.day(i,{width:"short",context:"formatting"});default:return s.day(i,{width:"wide",context:"formatting"})}},a:function(n,o,s){const d=n.getHours()/12>=1?"pm":"am";switch(o){case"a":case"aa":return s.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"aaa":return s.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return s.dayPeriod(d,{width:"narrow",context:"formatting"});default:return s.dayPeriod(d,{width:"wide",context:"formatting"})}},b:function(n,o,s){const i=n.getHours();let d;switch(i===12?d=Pg.noon:i===0?d=Pg.midnight:d=i/12>=1?"pm":"am",o){case"b":case"bb":return s.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"bbb":return s.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return s.dayPeriod(d,{width:"narrow",context:"formatting"});default:return s.dayPeriod(d,{width:"wide",context:"formatting"})}},B:function(n,o,s){const i=n.getHours();let d;switch(i>=17?d=Pg.evening:i>=12?d=Pg.afternoon:i>=4?d=Pg.morning:d=Pg.night,o){case"B":case"BB":case"BBB":return s.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"BBBBB":return s.dayPeriod(d,{width:"narrow",context:"formatting"});default:return s.dayPeriod(d,{width:"wide",context:"formatting"})}},h:function(n,o,s){if(o==="ho"){let i=n.getHours()%12;return i===0&&(i=12),s.ordinalNumber(i,{unit:"hour"})}return ef.h(n,o)},H:function(n,o,s){return o==="Ho"?s.ordinalNumber(n.getHours(),{unit:"hour"}):ef.H(n,o)},K:function(n,o,s){const i=n.getHours()%12;return o==="Ko"?s.ordinalNumber(i,{unit:"hour"}):An(i,o.length)},k:function(n,o,s){let i=n.getHours();return i===0&&(i=24),o==="ko"?s.ordinalNumber(i,{unit:"hour"}):An(i,o.length)},m:function(n,o,s){return o==="mo"?s.ordinalNumber(n.getMinutes(),{unit:"minute"}):ef.m(n,o)},s:function(n,o,s){return o==="so"?s.ordinalNumber(n.getSeconds(),{unit:"second"}):ef.s(n,o)},S:function(n,o){return ef.S(n,o)},X:function(n,o,s){const i=n.getTimezoneOffset();if(i===0)return"Z";switch(o){case"X":return Gj(i);case"XXXX":case"XX":return ip(i);default:return ip(i,":")}},x:function(n,o,s){const i=n.getTimezoneOffset();switch(o){case"x":return Gj(i);case"xxxx":case"xx":return ip(i);default:return ip(i,":")}},O:function(n,o,s){const i=n.getTimezoneOffset();switch(o){case"O":case"OO":case"OOO":return"GMT"+qj(i,":");default:return"GMT"+ip(i,":")}},z:function(n,o,s){const i=n.getTimezoneOffset();switch(o){case"z":case"zz":case"zzz":return"GMT"+qj(i,":");default:return"GMT"+ip(i,":")}},t:function(n,o,s){const i=Math.trunc(+n/1e3);return An(i,o.length)},T:function(n,o,s){return An(+n,o.length)}};function qj(n,o=""){const s=n>0?"-":"+",i=Math.abs(n),d=Math.trunc(i/60),f=i%60;return f===0?s+String(d):s+String(d)+o+An(f,2)}function Gj(n,o){return n%60===0?(n>0?"-":"+")+An(Math.abs(n)/60,2):ip(n,o)}function ip(n,o=""){const s=n>0?"-":"+",i=Math.abs(n),d=An(Math.trunc(i/60),2),f=An(i%60,2);return s+d+o+f}const Xj=(n,o)=>{switch(n){case"P":return o.date({width:"short"});case"PP":return o.date({width:"medium"});case"PPP":return o.date({width:"long"});default:return o.date({width:"full"})}},G5=(n,o)=>{switch(n){case"p":return o.time({width:"short"});case"pp":return o.time({width:"medium"});case"ppp":return o.time({width:"long"});default:return o.time({width:"full"})}},_I=(n,o)=>{const s=n.match(/(P+)(p+)?/)||[],i=s[1],d=s[2];if(!d)return Xj(n,o);let f;switch(i){case"P":f=o.dateTime({width:"short"});break;case"PP":f=o.dateTime({width:"medium"});break;case"PPP":f=o.dateTime({width:"long"});break;default:f=o.dateTime({width:"full"});break}return f.replace("{{date}}",Xj(i,o)).replace("{{time}}",G5(d,o))},UI={p:G5,P:_I},BI=/^D+$/,LI=/^Y+$/,VI=["D","DD","YY","YYYY"];function HI(n){return BI.test(n)}function II(n){return LI.test(n)}function YI(n,o,s){const i=qI(n,o,s);if(console.warn(i),VI.includes(n))throw new RangeError(i)}function qI(n,o,s){const i=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${o}\`) for formatting ${i} to the input \`${s}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const GI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,XI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,PI=/^'([^]*?)'?$/,$I=/''/g,QI=/[a-zA-Z]/;function zv(n,o,s){const i=ux(),d=s?.locale??i.locale??Zg,f=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,h=s?.weekStartsOn??s?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,y=Vn(n,s?.in);if(!Q9(y))throw new RangeError("Invalid time value");let v=o.match(XI).map(C=>{const w=C[0];if(w==="p"||w==="P"){const N=UI[w];return N(C,d.formatLong)}return C}).join("").match(GI).map(C=>{if(C==="''")return{isToken:!1,value:"'"};const w=C[0];if(w==="'")return{isToken:!1,value:ZI(C)};if(Yj[w])return{isToken:!0,value:C};if(w.match(QI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:C}});d.localize.preprocessor&&(v=d.localize.preprocessor(y,v));const x={firstWeekContainsDate:f,weekStartsOn:h,locale:d};return v.map(C=>{if(!C.isToken)return C.value;const w=C.value;(!s?.useAdditionalWeekYearTokens&&II(w)||!s?.useAdditionalDayOfYearTokens&&HI(w))&&YI(w,o,String(n));const N=Yj[w[0]];return N(y,w,d.localize,x)}).join("")}function ZI(n){const o=n.match(PI);return o?o[1].replace($I,"'"):n}function KI(n,o){const s=Vn(n,o?.in),i=s.getFullYear(),d=s.getMonth(),f=Za(s,0);return f.setFullYear(i,d+1,0),f.setHours(0,0,0,0),f.getDate()}function FI(n,o){return Vn(n,o?.in).getMonth()}function WI(n,o){return Vn(n,o?.in).getFullYear()}function JI(n,o){return+Vn(n)>+Vn(o)}function eY(n,o){return+Vn(n)<+Vn(o)}function tY(n,o,s){const[i,d]=wy(s?.in,n,o);return i.getFullYear()===d.getFullYear()&&i.getMonth()===d.getMonth()}function nY(n,o,s){const[i,d]=wy(s?.in,n,o);return i.getFullYear()===d.getFullYear()}function aY(n,o,s){const i=Vn(n,s?.in),d=i.getFullYear(),f=i.getDate(),h=Za(n,0);h.setFullYear(d,o,15),h.setHours(0,0,0,0);const y=KI(h);return i.setMonth(o,Math.min(f,y)),i}function oY(n,o,s){const i=Vn(n,s?.in);return isNaN(+i)?Za(n,NaN):(i.setFullYear(o),i)}const Pj=5,lY=4;function rY(n,o){const s=o.startOfMonth(n),i=s.getDay()>0?s.getDay():7,d=o.addDays(n,-i+1),f=o.addDays(d,Pj*7-1);return o.getMonth(n)===o.getMonth(f)?Pj:lY}function X5(n,o){const s=o.startOfMonth(n),i=s.getDay();return i===1?s:i===0?o.addDays(s,-6):o.addDays(s,-1*(i-1))}function sY(n,o){const s=X5(n,o),i=rY(n,o);return o.addDays(s,i*7-1)}const P5={...Zg,labels:{labelDayButton:(n,o,s,i)=>{let d;i&&typeof i.format=="function"?d=i.format.bind(i):d=(h,y)=>zv(h,y,{locale:Zg,...s});let f=d(n,"PPPP");return o.today&&(f=`Today, ${f}`),o.selected&&(f=`${f}, selected`),f},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:n=>`Week ${n}`,labelYearDropdown:"Choose the Year",labelGrid:(n,o,s)=>{let i;return s&&typeof s.format=="function"?i=s.format.bind(s):i=(d,f)=>zv(d,f,{locale:Zg,...o}),i(n,"LLLL yyyy")},labelGridcell:(n,o,s,i)=>{let d;i&&typeof i.format=="function"?d=i.format.bind(i):d=(h,y)=>zv(h,y,{locale:Zg,...s});let f=d(n,"PPPP");return o?.today&&(f=`Today, ${f}`),f},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(n,o,s)=>{let i;return s&&typeof s.format=="function"?i=s.format.bind(s):i=(d,f)=>zv(d,f,{locale:Zg,...o}),i(n,"cccc")}}};class vr{constructor(o,s){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?$o.tz(this.options.timeZone):new this.Date,this.newDate=(i,d,f)=>this.overrides?.newDate?this.overrides.newDate(i,d,f):this.options.timeZone?new $o(i,d,f,this.options.timeZone):new Date(i,d,f),this.addDays=(i,d)=>this.overrides?.addDays?this.overrides.addDays(i,d):_5(i,d),this.addMonths=(i,d)=>this.overrides?.addMonths?this.overrides.addMonths(i,d):U5(i,d),this.addWeeks=(i,d)=>this.overrides?.addWeeks?this.overrides.addWeeks(i,d):q9(i,d),this.addYears=(i,d)=>this.overrides?.addYears?this.overrides.addYears(i,d):G9(i,d),this.differenceInCalendarDays=(i,d)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(i,d):kT(i,d),this.differenceInCalendarMonths=(i,d)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(i,d):V5(i,d),this.eachMonthOfInterval=i=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(i):K9(i),this.eachYearOfInterval=i=>{const d=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(i):J9(i),f=new Set(d.map(y=>this.getYear(y)));if(f.size===d.length)return d;const h=[];return f.forEach(y=>{h.push(new Date(y,0,1))}),h},this.endOfBroadcastWeek=i=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(i):sY(i,this),this.endOfISOWeek=i=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(i):eI(i),this.endOfMonth=i=>this.overrides?.endOfMonth?this.overrides.endOfMonth(i):Z9(i),this.endOfWeek=(i,d)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(i,d):Y5(i,this.options),this.endOfYear=i=>this.overrides?.endOfYear?this.overrides.endOfYear(i):W9(i),this.format=(i,d,f)=>{const h=this.overrides?.format?this.overrides.format(i,d,this.options):zv(i,d,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(h):h},this.getISOWeek=i=>this.overrides?.getISOWeek?this.overrides.getISOWeek(i):AT(i),this.getMonth=(i,d)=>this.overrides?.getMonth?this.overrides.getMonth(i,this.options):FI(i,this.options),this.getYear=(i,d)=>this.overrides?.getYear?this.overrides.getYear(i,this.options):WI(i,this.options),this.getWeek=(i,d)=>this.overrides?.getWeek?this.overrides.getWeek(i,this.options):zT(i,this.options),this.isAfter=(i,d)=>this.overrides?.isAfter?this.overrides.isAfter(i,d):JI(i,d),this.isBefore=(i,d)=>this.overrides?.isBefore?this.overrides.isBefore(i,d):eY(i,d),this.isDate=i=>this.overrides?.isDate?this.overrides.isDate(i):L5(i),this.isSameDay=(i,d)=>this.overrides?.isSameDay?this.overrides.isSameDay(i,d):$9(i,d),this.isSameMonth=(i,d)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(i,d):tY(i,d),this.isSameYear=(i,d)=>this.overrides?.isSameYear?this.overrides.isSameYear(i,d):nY(i,d),this.max=i=>this.overrides?.max?this.overrides.max(i):X9(i),this.min=i=>this.overrides?.min?this.overrides.min(i):P9(i),this.setMonth=(i,d)=>this.overrides?.setMonth?this.overrides.setMonth(i,d):aY(i,d),this.setYear=(i,d)=>this.overrides?.setYear?this.overrides.setYear(i,d):oY(i,d),this.startOfBroadcastWeek=(i,d)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(i,this):X5(i,this),this.startOfDay=i=>this.overrides?.startOfDay?this.overrides.startOfDay(i):Pv(i),this.startOfISOWeek=i=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(i):Xv(i),this.startOfMonth=i=>this.overrides?.startOfMonth?this.overrides.startOfMonth(i):F9(i),this.startOfWeek=(i,d)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(i,this.options):cy(i,this.options),this.startOfYear=i=>this.overrides?.startOfYear?this.overrides.startOfYear(i):I5(i),this.options={locale:P5,...o},this.overrides=s}getDigitMap(){const{numerals:o="latn"}=this.options,s=new Intl.NumberFormat("en-US",{numberingSystem:o}),i={};for(let d=0;d<10;d++)i[d.toString()]=s.format(d);return i}replaceDigits(o){const s=this.getDigitMap();return o.replace(/\d/g,i=>s[i]||i)}formatNumber(o){return this.replaceDigits(o.toString())}getMonthYearOrder(){const o=this.options.locale?.code;return o&&vr.yearFirstLocales.has(o)?"year-first":"month-first"}formatMonthYear(o){const{locale:s,timeZone:i,numerals:d}=this.options,f=s?.code;if(f&&vr.yearFirstLocales.has(f))try{return new Intl.DateTimeFormat(f,{month:"long",year:"numeric",timeZone:i,numberingSystem:d}).format(o)}catch{}const h=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(o,h)}}vr.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Wi=new vr;class $5{constructor(o,s,i=Wi){this.date=o,this.displayMonth=s,this.outside=!!(s&&!i.isSameMonth(o,s)),this.dateLib=i,this.isoDate=i.format(o,"yyyy-MM-dd"),this.displayMonthId=i.format(s,"yyyy-MM"),this.dateMonthId=i.format(o,"yyyy-MM")}isEqualTo(o){return this.dateLib.isSameDay(o.date,this.date)&&this.dateLib.isSameMonth(o.displayMonth,this.displayMonth)}}class iY{constructor(o,s){this.date=o,this.weeks=s}}class cY{constructor(o,s){this.days=s,this.weekNumber=o}}function uY(n){return Qe.createElement("button",{...n})}function dY(n){return Qe.createElement("span",{...n})}function fY(n){const{size:o=24,orientation:s="left",className:i}=n;return Qe.createElement("svg",{className:i,width:o,height:o,viewBox:"0 0 24 24"},s==="up"&&Qe.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),s==="down"&&Qe.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),s==="left"&&Qe.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),s==="right"&&Qe.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function mY(n){const{day:o,modifiers:s,...i}=n;return Qe.createElement("td",{...i})}function pY(n){const{day:o,modifiers:s,...i}=n,d=Qe.useRef(null);return Qe.useEffect(()=>{s.focused&&d.current?.focus()},[s.focused]),Qe.createElement("button",{ref:d,...i})}var bt;(function(n){n.Root="root",n.Chevron="chevron",n.Day="day",n.DayButton="day_button",n.CaptionLabel="caption_label",n.Dropdowns="dropdowns",n.Dropdown="dropdown",n.DropdownRoot="dropdown_root",n.Footer="footer",n.MonthGrid="month_grid",n.MonthCaption="month_caption",n.MonthsDropdown="months_dropdown",n.Month="month",n.Months="months",n.Nav="nav",n.NextMonthButton="button_next",n.PreviousMonthButton="button_previous",n.Week="week",n.Weeks="weeks",n.Weekday="weekday",n.Weekdays="weekdays",n.WeekNumber="week_number",n.WeekNumberHeader="week_number_header",n.YearsDropdown="years_dropdown"})(bt||(bt={}));var ga;(function(n){n.disabled="disabled",n.hidden="hidden",n.outside="outside",n.focused="focused",n.today="today"})(ga||(ga={}));var Qs;(function(n){n.range_end="range_end",n.range_middle="range_middle",n.range_start="range_start",n.selected="selected"})(Qs||(Qs={}));var hr;(function(n){n.weeks_before_enter="weeks_before_enter",n.weeks_before_exit="weeks_before_exit",n.weeks_after_enter="weeks_after_enter",n.weeks_after_exit="weeks_after_exit",n.caption_after_enter="caption_after_enter",n.caption_after_exit="caption_after_exit",n.caption_before_enter="caption_before_enter",n.caption_before_exit="caption_before_exit"})(hr||(hr={}));function hY(n){const{options:o,className:s,components:i,classNames:d,...f}=n,h=[d[bt.Dropdown],s].join(" "),y=o?.find(({value:v})=>v===f.value);return Qe.createElement("span",{"data-disabled":f.disabled,className:d[bt.DropdownRoot]},Qe.createElement(i.Select,{className:h,...f},o?.map(({value:v,label:x,disabled:C})=>Qe.createElement(i.Option,{key:v,value:v,disabled:C},x))),Qe.createElement("span",{className:d[bt.CaptionLabel],"aria-hidden":!0},y?.label,Qe.createElement(i.Chevron,{orientation:"down",size:18,className:d[bt.Chevron]})))}function gY(n){return Qe.createElement("div",{...n})}function yY(n){return Qe.createElement("div",{...n})}function bY(n){const{calendarMonth:o,displayIndex:s,...i}=n;return Qe.createElement("div",{...i},n.children)}function vY(n){const{calendarMonth:o,displayIndex:s,...i}=n;return Qe.createElement("div",{...i})}function xY(n){return Qe.createElement("table",{...n})}function SY(n){return Qe.createElement("div",{...n})}const Q5=Qe.createContext(void 0);function dx(){const n=Qe.useContext(Q5);if(n===void 0)throw new Error("useDayPicker() must be used within a custom component.");return n}function wY(n){const{components:o}=dx();return Qe.createElement(o.Dropdown,{...n})}function CY(n){const{onPreviousClick:o,onNextClick:s,previousMonth:i,nextMonth:d,...f}=n,{components:h,classNames:y,labels:{labelPrevious:v,labelNext:x}}=dx(),C=Qe.useCallback(N=>{d&&s?.(N)},[d,s]),w=Qe.useCallback(N=>{i&&o?.(N)},[i,o]);return Qe.createElement("nav",{...f},Qe.createElement(h.PreviousMonthButton,{type:"button",className:y[bt.PreviousMonthButton],tabIndex:i?void 0:-1,"aria-disabled":i?void 0:!0,"aria-label":v(i),onClick:w},Qe.createElement(h.Chevron,{disabled:i?void 0:!0,className:y[bt.Chevron],orientation:"left"})),Qe.createElement(h.NextMonthButton,{type:"button",className:y[bt.NextMonthButton],tabIndex:d?void 0:-1,"aria-disabled":d?void 0:!0,"aria-label":x(d),onClick:C},Qe.createElement(h.Chevron,{disabled:d?void 0:!0,orientation:"right",className:y[bt.Chevron]})))}function EY(n){const{components:o}=dx();return Qe.createElement(o.Button,{...n})}function NY(n){return Qe.createElement("option",{...n})}function TY(n){const{components:o}=dx();return Qe.createElement(o.Button,{...n})}function MY(n){const{rootRef:o,...s}=n;return Qe.createElement("div",{...s,ref:o})}function RY(n){return Qe.createElement("select",{...n})}function OY(n){const{week:o,...s}=n;return Qe.createElement("tr",{...s})}function jY(n){return Qe.createElement("th",{...n})}function DY(n){return Qe.createElement("thead",{"aria-hidden":!0},Qe.createElement("tr",{...n}))}function kY(n){const{week:o,...s}=n;return Qe.createElement("th",{...s})}function AY(n){return Qe.createElement("th",{...n})}function zY(n){return Qe.createElement("tbody",{...n})}function _Y(n){const{components:o}=dx();return Qe.createElement(o.Dropdown,{...n})}const UY=Object.freeze(Object.defineProperty({__proto__:null,Button:uY,CaptionLabel:dY,Chevron:fY,Day:mY,DayButton:pY,Dropdown:hY,DropdownNav:gY,Footer:yY,Month:bY,MonthCaption:vY,MonthGrid:xY,Months:SY,MonthsDropdown:wY,Nav:CY,NextMonthButton:EY,Option:NY,PreviousMonthButton:TY,Root:MY,Select:RY,Week:OY,WeekNumber:kY,WeekNumberHeader:AY,Weekday:jY,Weekdays:DY,Weeks:zY,YearsDropdown:_Y},Symbol.toStringTag,{value:"Module"}));function mu(n,o,s=!1,i=Wi){let{from:d,to:f}=n;const{differenceInCalendarDays:h,isSameDay:y}=i;return d&&f?(h(f,d)<0&&([d,f]=[f,d]),h(o,d)>=(s?1:0)&&h(f,o)>=(s?1:0)):!s&&f?y(f,o):!s&&d?y(d,o):!1}function _T(n){return!!(n&&typeof n=="object"&&"before"in n&&"after"in n)}function wC(n){return!!(n&&typeof n=="object"&&"from"in n)}function UT(n){return!!(n&&typeof n=="object"&&"after"in n)}function BT(n){return!!(n&&typeof n=="object"&&"before"in n)}function Z5(n){return!!(n&&typeof n=="object"&&"dayOfWeek"in n)}function K5(n,o){return Array.isArray(n)&&n.every(o.isDate)}function pu(n,o,s=Wi){const i=Array.isArray(o)?o:[o],{isSameDay:d,differenceInCalendarDays:f,isAfter:h}=s;return i.some(y=>{if(typeof y=="boolean")return y;if(s.isDate(y))return d(n,y);if(K5(y,s))return y.some(v=>d(n,v));if(wC(y))return mu(y,n,!1,s);if(Z5(y))return Array.isArray(y.dayOfWeek)?y.dayOfWeek.includes(n.getDay()):y.dayOfWeek===n.getDay();if(_T(y)){const v=f(y.before,n),x=f(y.after,n),C=v>0,w=x<0;return h(y.before,y.after)?w&&C:C||w}return UT(y)?f(n,y.after)>0:BT(y)?f(y.before,n)>0:typeof y=="function"?y(n):!1})}function BY(n,o,s,i,d){const{disabled:f,hidden:h,modifiers:y,showOutsideDays:v,broadcastCalendar:x,today:C=d.today()}=o,{isSameDay:w,isSameMonth:N,startOfMonth:R,isBefore:O,endOfMonth:j,isAfter:D}=d,A=s&&R(s),z=i&&j(i),B={[ga.focused]:[],[ga.outside]:[],[ga.disabled]:[],[ga.hidden]:[],[ga.today]:[]},U={};for(const L of n){const{date:k,displayMonth:V}=L,H=!!(V&&!N(k,V)),K=!!(A&&O(k,A)),Z=!!(z&&D(k,z)),Q=!!(f&&pu(k,f,d)),G=!!(h&&pu(k,h,d))||K||Z||!x&&!v&&H||x&&v===!1&&H,q=w(k,C);H&&B.outside.push(L),Q&&B.disabled.push(L),G&&B.hidden.push(L),q&&B.today.push(L),y&&Object.keys(y).forEach(W=>{const te=y?.[W];te&&pu(k,te,d)&&(U[W]?U[W].push(L):U[W]=[L])})}return L=>{const k={[ga.focused]:!1,[ga.disabled]:!1,[ga.hidden]:!1,[ga.outside]:!1,[ga.today]:!1},V={};for(const H in B){const K=B[H];k[H]=K.some(Z=>Z===L)}for(const H in U)V[H]=U[H].some(K=>K===L);return{...k,...V}}}function LY(n,o,s={}){return Object.entries(n).filter(([,d])=>d===!0).reduce((d,[f])=>(s[f]?d.push(s[f]):o[ga[f]]?d.push(o[ga[f]]):o[Qs[f]]&&d.push(o[Qs[f]]),d),[o[bt.Day]])}function VY(n){return{...UY,...n}}function HY(n){const o={"data-mode":n.mode??void 0,"data-required":"required"in n?n.required:void 0,"data-multiple-months":n.numberOfMonths&&n.numberOfMonths>1||void 0,"data-week-numbers":n.showWeekNumber||void 0,"data-broadcast-calendar":n.broadcastCalendar||void 0,"data-nav-layout":n.navLayout||void 0};return Object.entries(n).forEach(([s,i])=>{s.startsWith("data-")&&(o[s]=i)}),o}function LT(){const n={};for(const o in bt)n[bt[o]]=`rdp-${bt[o]}`;for(const o in ga)n[ga[o]]=`rdp-${ga[o]}`;for(const o in Qs)n[Qs[o]]=`rdp-${Qs[o]}`;for(const o in hr)n[hr[o]]=`rdp-${hr[o]}`;return n}function F5(n,o,s){return(s??new vr(o)).formatMonthYear(n)}const IY=F5;function YY(n,o,s){return(s??new vr(o)).format(n,"d")}function qY(n,o=Wi){return o.format(n,"LLLL")}function GY(n,o,s){return(s??new vr(o)).format(n,"cccccc")}function XY(n,o=Wi){return n<10?o.formatNumber(`0${n.toLocaleString()}`):o.formatNumber(`${n.toLocaleString()}`)}function PY(){return""}function W5(n,o=Wi){return o.format(n,"yyyy")}const $Y=W5,QY=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:F5,formatDay:YY,formatMonthCaption:IY,formatMonthDropdown:qY,formatWeekNumber:XY,formatWeekNumberHeader:PY,formatWeekdayName:GY,formatYearCaption:$Y,formatYearDropdown:W5},Symbol.toStringTag,{value:"Module"}));function ZY(n){return n?.formatMonthCaption&&!n.formatCaption&&(n.formatCaption=n.formatMonthCaption),n?.formatYearCaption&&!n.formatYearDropdown&&(n.formatYearDropdown=n.formatYearCaption),{...QY,...n}}function VT(n,o,s,i){let d=(i??new vr(s)).format(n,"PPPP");return o.today&&(d=`Today, ${d}`),o.selected&&(d=`${d}, selected`),d}const KY=VT;function HT(n,o,s){return(s??new vr(o)).formatMonthYear(n)}const FY=HT;function J5(n,o,s,i){let d=(i??new vr(s)).format(n,"PPPP");return o?.today&&(d=`Today, ${d}`),d}function e3(n){return"Choose the Month"}function t3(){return""}const WY="Go to the Next Month";function n3(n,o){return WY}function a3(n){return"Go to the Previous Month"}function o3(n,o,s){return(s??new vr(o)).format(n,"cccc")}function l3(n,o){return`Week ${n}`}function r3(n){return"Week Number"}function s3(n){return"Choose the Year"}const JY=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:FY,labelDay:KY,labelDayButton:VT,labelGrid:HT,labelGridcell:J5,labelMonthDropdown:e3,labelNav:t3,labelNext:n3,labelPrevious:a3,labelWeekNumber:l3,labelWeekNumberHeader:r3,labelWeekday:o3,labelYearDropdown:s3},Symbol.toStringTag,{value:"Module"})),$s=(n,o,s)=>o||(s?typeof s=="function"?s:(...i)=>s:n);function eq(n,o){const s=o.locale?.labels??{};return{...JY,...n??{},labelDayButton:$s(VT,n?.labelDayButton,s.labelDayButton),labelMonthDropdown:$s(e3,n?.labelMonthDropdown,s.labelMonthDropdown),labelNext:$s(n3,n?.labelNext,s.labelNext),labelPrevious:$s(a3,n?.labelPrevious,s.labelPrevious),labelWeekNumber:$s(l3,n?.labelWeekNumber,s.labelWeekNumber),labelYearDropdown:$s(s3,n?.labelYearDropdown,s.labelYearDropdown),labelGrid:$s(HT,n?.labelGrid,s.labelGrid),labelGridcell:$s(J5,n?.labelGridcell,s.labelGridcell),labelNav:$s(t3,n?.labelNav,s.labelNav),labelWeekNumberHeader:$s(r3,n?.labelWeekNumberHeader,s.labelWeekNumberHeader),labelWeekday:$s(o3,n?.labelWeekday,s.labelWeekday)}}function tq(n,o,s,i,d){const{startOfMonth:f,startOfYear:h,endOfYear:y,eachMonthOfInterval:v,getMonth:x}=d;return v({start:h(n),end:y(n)}).map(N=>{const R=i.formatMonthDropdown(N,d),O=x(N),j=o&&N<f(o)||s&&N>f(s)||!1;return{value:O,label:R,disabled:j}})}function nq(n,o={},s={}){let i={...o?.[bt.Day]};return Object.entries(n).filter(([,d])=>d===!0).forEach(([d])=>{i={...i,...s?.[d]}}),i}function aq(n,o,s,i){const d=i??n.today(),f=s?n.startOfBroadcastWeek(d,n):o?n.startOfISOWeek(d):n.startOfWeek(d),h=[];for(let y=0;y<7;y++){const v=n.addDays(f,y);h.push(v)}return h}function oq(n,o,s,i,d=!1){if(!n||!o)return;const{startOfYear:f,endOfYear:h,eachYearOfInterval:y,getYear:v}=i,x=f(n),C=h(o),w=y({start:x,end:C});return d&&w.reverse(),w.map(N=>{const R=s.formatYearDropdown(N,i);return{value:v(N),label:R,disabled:!1}})}function lq(n,o={}){const{weekStartsOn:s,locale:i}=o,d=s??i?.options?.weekStartsOn??0,f=y=>{const v=typeof y=="number"||typeof y=="string"?new Date(y):y;return new $o(v.getFullYear(),v.getMonth(),v.getDate(),12,0,0,n)},h=y=>{const v=f(y);return new Date(v.getFullYear(),v.getMonth(),v.getDate(),0,0,0,0)};return{today:()=>f($o.tz(n)),newDate:(y,v,x)=>new $o(y,v,x,12,0,0,n),startOfDay:y=>f(y),startOfWeek:(y,v)=>{const x=f(y),C=v?.weekStartsOn??d,w=(x.getDay()-C+7)%7;return x.setDate(x.getDate()-w),x},startOfISOWeek:y=>{const v=f(y),x=(v.getDay()-1+7)%7;return v.setDate(v.getDate()-x),v},startOfMonth:y=>{const v=f(y);return v.setDate(1),v},startOfYear:y=>{const v=f(y);return v.setMonth(0,1),v},endOfWeek:(y,v)=>{const x=f(y),N=(((v?.weekStartsOn??d)+6)%7-x.getDay()+7)%7;return x.setDate(x.getDate()+N),x},endOfISOWeek:y=>{const v=f(y),x=(7-v.getDay())%7;return v.setDate(v.getDate()+x),v},endOfMonth:y=>{const v=f(y);return v.setMonth(v.getMonth()+1,0),v},endOfYear:y=>{const v=f(y);return v.setMonth(11,31),v},eachMonthOfInterval:y=>{const v=f(y.start),x=f(y.end),C=[],w=new $o(v.getFullYear(),v.getMonth(),1,12,0,0,n),N=x.getFullYear()*12+x.getMonth();for(;w.getFullYear()*12+w.getMonth()<=N;)C.push(new $o(w,n)),w.setMonth(w.getMonth()+1,1);return C},addDays:(y,v)=>{const x=f(y);return x.setDate(x.getDate()+v),x},addWeeks:(y,v)=>{const x=f(y);return x.setDate(x.getDate()+v*7),x},addMonths:(y,v)=>{const x=f(y);return x.setMonth(x.getMonth()+v),x},addYears:(y,v)=>{const x=f(y);return x.setFullYear(x.getFullYear()+v),x},eachYearOfInterval:y=>{const v=f(y.start),x=f(y.end),C=[],w=new $o(v.getFullYear(),0,1,12,0,0,n);for(;w.getFullYear()<=x.getFullYear();)C.push(new $o(w,n)),w.setFullYear(w.getFullYear()+1,0,1);return C},getWeek:(y,v)=>{const x=h(y);return zT(x,{weekStartsOn:v?.weekStartsOn??d,firstWeekContainsDate:v?.firstWeekContainsDate??i?.options?.firstWeekContainsDate??1})},getISOWeek:y=>{const v=h(y);return AT(v)},differenceInCalendarDays:(y,v)=>{const x=h(y),C=h(v);return kT(x,C)},differenceInCalendarMonths:(y,v)=>{const x=h(y),C=h(v);return V5(x,C)}}}const fx=n=>n instanceof HTMLElement?n:null,N2=n=>[...n.querySelectorAll("[data-animated-month]")??[]],rq=n=>fx(n.querySelector("[data-animated-month]")),T2=n=>fx(n.querySelector("[data-animated-caption]")),M2=n=>fx(n.querySelector("[data-animated-weeks]")),sq=n=>fx(n.querySelector("[data-animated-nav]")),iq=n=>fx(n.querySelector("[data-animated-weekdays]"));function cq(n,o,{classNames:s,months:i,focused:d,dateLib:f}){const h=Qe.useRef(null),y=Qe.useRef(i),v=Qe.useRef(!1);Qe.useLayoutEffect(()=>{const x=y.current;if(y.current=i,!o||!n.current||!(n.current instanceof HTMLElement)||i.length===0||x.length===0||i.length!==x.length)return;const C=f.isSameMonth(i[0].date,x[0].date),w=f.isAfter(i[0].date,x[0].date),N=w?s[hr.caption_after_enter]:s[hr.caption_before_enter],R=w?s[hr.weeks_after_enter]:s[hr.weeks_before_enter],O=h.current,j=n.current.cloneNode(!0);if(j instanceof HTMLElement?(N2(j).forEach(B=>{if(!(B instanceof HTMLElement))return;const U=rq(B);U&&B.contains(U)&&B.removeChild(U);const L=T2(B);L&&L.classList.remove(N);const k=M2(B);k&&k.classList.remove(R)}),h.current=j):h.current=null,v.current||C||d)return;const D=O instanceof HTMLElement?N2(O):[],A=N2(n.current);if(A?.every(z=>z instanceof HTMLElement)&&D&&D.every(z=>z instanceof HTMLElement)){v.current=!0,n.current.style.isolation="isolate";const z=sq(n.current);z&&(z.style.zIndex="1"),A.forEach((B,U)=>{const L=D[U];if(!L)return;B.style.position="relative",B.style.overflow="hidden";const k=T2(B);k&&k.classList.add(N);const V=M2(B);V&&V.classList.add(R);const H=()=>{v.current=!1,n.current&&(n.current.style.isolation=""),z&&(z.style.zIndex=""),k&&k.classList.remove(N),V&&V.classList.remove(R),B.style.position="",B.style.overflow="",B.contains(L)&&B.removeChild(L)};L.style.pointerEvents="none",L.style.position="absolute",L.style.overflow="hidden",L.setAttribute("aria-hidden","true");const K=iq(L);K&&(K.style.opacity="0");const Z=T2(L);Z&&(Z.classList.add(w?s[hr.caption_before_exit]:s[hr.caption_after_exit]),Z.addEventListener("animationend",H));const Q=M2(L);Q&&Q.classList.add(w?s[hr.weeks_before_exit]:s[hr.weeks_after_exit]),B.insertBefore(L,B.firstChild)})}})}function uq(n,o,s,i){const d=n[0],f=n[n.length-1],{ISOWeek:h,fixedWeeks:y,broadcastCalendar:v}=s??{},{addDays:x,differenceInCalendarDays:C,differenceInCalendarMonths:w,endOfBroadcastWeek:N,endOfISOWeek:R,endOfMonth:O,endOfWeek:j,isAfter:D,startOfBroadcastWeek:A,startOfISOWeek:z,startOfWeek:B}=i,U=v?A(d,i):h?z(d):B(d),L=v?N(f):h?R(O(f)):j(O(f)),k=o&&(v?N(o):h?R(o):j(o)),V=k&&D(L,k)?k:L,H=C(V,U),K=w(f,d)+1,Z=[];for(let q=0;q<=H;q++){const W=x(U,q);Z.push(W)}const G=(v?35:42)*K;if(y&&Z.length<G){const q=G-Z.length;for(let W=0;W<q;W++){const te=x(Z[Z.length-1],1);Z.push(te)}}return Z}function dq(n){const o=[];return n.reduce((s,i)=>{const d=i.weeks.reduce((f,h)=>f.concat(h.days.slice()),o.slice());return s.concat(d.slice())},o.slice())}function fq(n,o,s,i){const{numberOfMonths:d=1}=s,f=[];for(let h=0;h<d;h++){const y=i.addMonths(n,h);if(o&&y>o)break;f.push(y)}return f}function $j(n,o,s,i){const{month:d,defaultMonth:f,today:h=i.today(),numberOfMonths:y=1}=n;let v=d||f||h;const{differenceInCalendarMonths:x,addMonths:C,startOfMonth:w}=i;if(s&&x(s,v)<y-1){const N=-1*(y-1);v=C(s,N)}return o&&x(v,o)<0&&(v=o),w(v)}function mq(n,o,s,i){const{addDays:d,endOfBroadcastWeek:f,endOfISOWeek:h,endOfMonth:y,endOfWeek:v,getISOWeek:x,getWeek:C,startOfBroadcastWeek:w,startOfISOWeek:N,startOfWeek:R}=i,O=n.reduce((j,D)=>{const A=s.broadcastCalendar?w(D,i):s.ISOWeek?N(D):R(D),z=s.broadcastCalendar?f(D):s.ISOWeek?h(y(D)):v(y(D)),B=o.filter(V=>V>=A&&V<=z),U=s.broadcastCalendar?35:42;if(s.fixedWeeks&&B.length<U){const V=o.filter(H=>{const K=U-B.length;return H>z&&H<=d(z,K)});B.push(...V)}const L=B.reduce((V,H)=>{const K=s.ISOWeek?x(H):C(H),Z=V.find(G=>G.weekNumber===K),Q=new $5(H,D,i);return Z?Z.days.push(Q):V.push(new cY(K,[Q])),V},[]),k=new iY(D,L);return j.push(k),j},[]);return s.reverseMonths?O.reverse():O}function pq(n,o){let{startMonth:s,endMonth:i}=n;const{startOfYear:d,startOfDay:f,startOfMonth:h,endOfMonth:y,addYears:v,endOfYear:x,newDate:C,today:w}=o,{fromYear:N,toYear:R,fromMonth:O,toMonth:j}=n;!s&&O&&(s=O),!s&&N&&(s=o.newDate(N,0,1)),!i&&j&&(i=j),!i&&R&&(i=C(R,11,31));const D=n.captionLayout==="dropdown"||n.captionLayout==="dropdown-years";return s?s=h(s):N?s=C(N,0,1):!s&&D&&(s=d(v(n.today??w(),-100))),i?i=y(i):R?i=C(R,11,31):!i&&D&&(i=x(n.today??w())),[s&&f(s),i&&f(i)]}function hq(n,o,s,i){if(s.disableNavigation)return;const{pagedNavigation:d,numberOfMonths:f=1}=s,{startOfMonth:h,addMonths:y,differenceInCalendarMonths:v}=i,x=d?f:1,C=h(n);if(!o)return y(C,x);if(!(v(o,n)<f))return y(C,x)}function gq(n,o,s,i){if(s.disableNavigation)return;const{pagedNavigation:d,numberOfMonths:f}=s,{startOfMonth:h,addMonths:y,differenceInCalendarMonths:v}=i,x=d?f??1:1,C=h(n);if(!o)return y(C,-x);if(!(v(C,o)<=0))return y(C,-x)}function yq(n){const o=[];return n.reduce((s,i)=>s.concat(i.weeks.slice()),o.slice())}function CC(n,o){const[s,i]=Qe.useState(n);return[o===void 0?s:o,i]}function bq(n,o){const[s,i]=pq(n,o),{startOfMonth:d,endOfMonth:f}=o,h=$j(n,s,i,o),[y,v]=CC(h,n.month?h:void 0);Qe.useEffect(()=>{const U=$j(n,s,i,o);v(U)},[n.timeZone]);const{months:x,weeks:C,days:w,previousMonth:N,nextMonth:R}=Qe.useMemo(()=>{const U=fq(y,i,{numberOfMonths:n.numberOfMonths},o),L=uq(U,n.endMonth?f(n.endMonth):void 0,{ISOWeek:n.ISOWeek,fixedWeeks:n.fixedWeeks,broadcastCalendar:n.broadcastCalendar},o),k=mq(U,L,{broadcastCalendar:n.broadcastCalendar,fixedWeeks:n.fixedWeeks,ISOWeek:n.ISOWeek,reverseMonths:n.reverseMonths},o),V=yq(k),H=dq(k),K=gq(y,s,n,o),Z=hq(y,i,n,o);return{months:k,weeks:V,days:H,previousMonth:K,nextMonth:Z}},[o,y.getTime(),i?.getTime(),s?.getTime(),n.disableNavigation,n.broadcastCalendar,n.endMonth?.getTime(),n.fixedWeeks,n.ISOWeek,n.numberOfMonths,n.pagedNavigation,n.reverseMonths]),{disableNavigation:O,onMonthChange:j}=n,D=U=>C.some(L=>L.days.some(k=>k.isEqualTo(U))),A=U=>{if(O)return;let L=d(U);s&&L<d(s)&&(L=d(s)),i&&L>d(i)&&(L=d(i)),v(L),j?.(L)};return{months:x,weeks:C,days:w,navStart:s,navEnd:i,previousMonth:N,nextMonth:R,goToMonth:A,goToDay:U=>{D(U)||A(U.date)}}}var Hi;(function(n){n[n.Today=0]="Today",n[n.Selected=1]="Selected",n[n.LastFocused=2]="LastFocused",n[n.FocusedModifier=3]="FocusedModifier"})(Hi||(Hi={}));function Qj(n){return!n[ga.disabled]&&!n[ga.hidden]&&!n[ga.outside]}function vq(n,o,s,i){let d,f=-1;for(const h of n){const y=o(h);Qj(y)&&(y[ga.focused]&&f<Hi.FocusedModifier?(d=h,f=Hi.FocusedModifier):i?.isEqualTo(h)&&f<Hi.LastFocused?(d=h,f=Hi.LastFocused):s(h.date)&&f<Hi.Selected?(d=h,f=Hi.Selected):y[ga.today]&&f<Hi.Today&&(d=h,f=Hi.Today))}return d||(d=n.find(h=>Qj(o(h)))),d}function xq(n,o,s,i,d,f,h){const{ISOWeek:y,broadcastCalendar:v}=f,{addDays:x,addMonths:C,addWeeks:w,addYears:N,endOfBroadcastWeek:R,endOfISOWeek:O,endOfWeek:j,max:D,min:A,startOfBroadcastWeek:z,startOfISOWeek:B,startOfWeek:U}=h;let k={day:x,week:w,month:C,year:N,startOfWeek:V=>v?z(V,h):y?B(V):U(V),endOfWeek:V=>v?R(V):y?O(V):j(V)}[n](s,o==="after"?1:-1);return o==="before"&&i?k=D([i,k]):o==="after"&&d&&(k=A([d,k])),k}function i3(n,o,s,i,d,f,h,y=0){if(y>365)return;const v=xq(n,o,s.date,i,d,f,h),x=!!(f.disabled&&pu(v,f.disabled,h)),C=!!(f.hidden&&pu(v,f.hidden,h)),w=v,N=new $5(v,w,h);return!x&&!C?N:i3(n,o,N,i,d,f,h,y+1)}function Sq(n,o,s,i,d){const{autoFocus:f}=n,[h,y]=Qe.useState(),v=vq(o.days,s,i||(()=>!1),h),[x,C]=Qe.useState(f?v:void 0);return{isFocusTarget:j=>!!v?.isEqualTo(j),setFocused:C,focused:x,blur:()=>{y(x),C(void 0)},moveFocus:(j,D)=>{if(!x)return;const A=i3(j,D,x,o.navStart,o.navEnd,n,d);A&&(n.disableNavigation&&!o.days.some(B=>B.isEqualTo(A))||(o.goToDay(A),C(A)))}}}function wq(n,o){const{selected:s,required:i,onSelect:d}=n,[f,h]=CC(s,d?s:void 0),y=d?s:f,{isSameDay:v}=o,x=R=>y?.some(O=>v(O,R))??!1,{min:C,max:w}=n;return{selected:y,select:(R,O,j)=>{let D=[...y??[]];if(x(R)){if(y?.length===C||i&&y?.length===1)return;D=y?.filter(A=>!v(A,R))}else y?.length===w?D=[R]:D=[...D,R];return d||h(D),d?.(D,R,O,j),D},isSelected:x}}function Cq(n,o,s=0,i=0,d=!1,f=Wi){const{from:h,to:y}=o||{},{isSameDay:v,isAfter:x,isBefore:C}=f;let w;if(!h&&!y)w={from:n,to:s>0?void 0:n};else if(h&&!y)v(h,n)?s===0?w={from:h,to:n}:d?w={from:h,to:void 0}:w=void 0:C(n,h)?w={from:n,to:h}:w={from:h,to:n};else if(h&&y)if(v(h,n)&&v(y,n))d?w={from:h,to:y}:w=void 0;else if(v(h,n))w={from:h,to:s>0?void 0:n};else if(v(y,n))w={from:n,to:s>0?void 0:n};else if(C(n,h))w={from:n,to:y};else if(x(n,h))w={from:h,to:n};else if(x(n,y))w={from:h,to:n};else throw new Error("Invalid range");if(w?.from&&w?.to){const N=f.differenceInCalendarDays(w.to,w.from);i>0&&N>i?w={from:n,to:void 0}:s>1&&N<s&&(w={from:n,to:void 0})}return w}function Eq(n,o,s=Wi){const i=Array.isArray(o)?o:[o];let d=n.from;const f=s.differenceInCalendarDays(n.to,n.from),h=Math.min(f,6);for(let y=0;y<=h;y++){if(i.includes(d.getDay()))return!0;d=s.addDays(d,1)}return!1}function Zj(n,o,s=Wi){return mu(n,o.from,!1,s)||mu(n,o.to,!1,s)||mu(o,n.from,!1,s)||mu(o,n.to,!1,s)}function Nq(n,o,s=Wi){const i=Array.isArray(o)?o:[o];if(i.filter(y=>typeof y!="function").some(y=>typeof y=="boolean"?y:s.isDate(y)?mu(n,y,!1,s):K5(y,s)?y.some(v=>mu(n,v,!1,s)):wC(y)?y.from&&y.to?Zj(n,{from:y.from,to:y.to},s):!1:Z5(y)?Eq(n,y.dayOfWeek,s):_T(y)?s.isAfter(y.before,y.after)?Zj(n,{from:s.addDays(y.after,1),to:s.addDays(y.before,-1)},s):pu(n.from,y,s)||pu(n.to,y,s):UT(y)||BT(y)?pu(n.from,y,s)||pu(n.to,y,s):!1))return!0;const h=i.filter(y=>typeof y=="function");if(h.length){let y=n.from;const v=s.differenceInCalendarDays(n.to,n.from);for(let x=0;x<=v;x++){if(h.some(C=>C(y)))return!0;y=s.addDays(y,1)}}return!1}function Tq(n,o){const{disabled:s,excludeDisabled:i,resetOnSelect:d,selected:f,required:h,onSelect:y}=n,[v,x]=CC(f,y?f:void 0),C=y?f:v;return{selected:C,select:(R,O,j)=>{const{min:D,max:A}=n;let z;if(R){const B=C?.from,U=C?.to,L=!!B&&!!U,k=!!B&&!!U&&o.isSameDay(B,U)&&o.isSameDay(R,B);d&&(L||!C?.from)?!h&&k?z=void 0:z={from:R,to:void 0}:z=Cq(R,C,D,A,h,o)}return i&&s&&z?.from&&z.to&&Nq({from:z.from,to:z.to},s,o)&&(z.from=R,z.to=void 0),y||x(z),y?.(z,R,O,j),z},isSelected:R=>C&&mu(C,R,!1,o)}}function Mq(n,o){const{selected:s,required:i,onSelect:d}=n,[f,h]=CC(s,d?s:void 0),y=d?s:f,{isSameDay:v}=o;return{selected:y,select:(w,N,R)=>{let O=w;return!i&&y&&y&&v(w,y)&&(O=void 0),d||h(O),d?.(O,w,N,R),O},isSelected:w=>y?v(y,w):!1}}function Rq(n,o){const s=Mq(n,o),i=wq(n,o),d=Tq(n,o);switch(n.mode){case"single":return s;case"multiple":return i;case"range":return d;default:return}}function ds(n,o){return n instanceof $o&&n.timeZone===o?n:new $o(n,o)}function $g(n,o,s){return ds(n,o)}function Kj(n,o,s){return typeof n=="boolean"||typeof n=="function"?n:n instanceof Date?$g(n,o):Array.isArray(n)?n.map(i=>i instanceof Date?$g(i,o):i):wC(n)?{...n,from:n.from?ds(n.from,o):n.from,to:n.to?ds(n.to,o):n.to}:_T(n)?{before:$g(n.before,o),after:$g(n.after,o)}:UT(n)?{after:$g(n.after,o)}:BT(n)?{before:$g(n.before,o)}:n}function R2(n,o,s){return n&&(Array.isArray(n)?n.map(i=>Kj(i,o)):Kj(n,o))}function Oq(n){let o=n;const s=o.timeZone;if(s&&(o={...n,timeZone:s},o.today&&(o.today=ds(o.today,s)),o.month&&(o.month=ds(o.month,s)),o.defaultMonth&&(o.defaultMonth=ds(o.defaultMonth,s)),o.startMonth&&(o.startMonth=ds(o.startMonth,s)),o.endMonth&&(o.endMonth=ds(o.endMonth,s)),o.mode==="single"&&o.selected?o.selected=ds(o.selected,s):o.mode==="multiple"&&o.selected?o.selected=o.selected?.map(at=>ds(at,s)):o.mode==="range"&&o.selected&&(o.selected={from:o.selected.from?ds(o.selected.from,s):o.selected.from,to:o.selected.to?ds(o.selected.to,s):o.selected.to}),o.disabled!==void 0&&(o.disabled=R2(o.disabled,s)),o.hidden!==void 0&&(o.hidden=R2(o.hidden,s)),o.modifiers)){const at={};Object.keys(o.modifiers).forEach(lt=>{at[lt]=R2(o.modifiers?.[lt],s)}),o.modifiers=at}const{components:i,formatters:d,labels:f,dateLib:h,locale:y,classNames:v}=Qe.useMemo(()=>{const at={...P5,...o.locale},lt=o.broadcastCalendar?1:o.weekStartsOn,tt=o.noonSafe&&o.timeZone?lq(o.timeZone,{weekStartsOn:lt,locale:at}):void 0,ht=o.dateLib&&tt?{...tt,...o.dateLib}:o.dateLib??tt,Yt=new vr({locale:at,weekStartsOn:lt,firstWeekContainsDate:o.firstWeekContainsDate,useAdditionalWeekYearTokens:o.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:o.useAdditionalDayOfYearTokens,timeZone:o.timeZone,numerals:o.numerals},ht);return{dateLib:Yt,components:VY(o.components),formatters:ZY(o.formatters),labels:eq(o.labels,Yt.options),locale:at,classNames:{...LT(),...o.classNames}}},[o.locale,o.broadcastCalendar,o.weekStartsOn,o.firstWeekContainsDate,o.useAdditionalWeekYearTokens,o.useAdditionalDayOfYearTokens,o.timeZone,o.numerals,o.dateLib,o.noonSafe,o.components,o.formatters,o.labels,o.classNames]);o.today||(o={...o,today:h.today()});const{captionLayout:x,mode:C,navLayout:w,numberOfMonths:N=1,onDayBlur:R,onDayClick:O,onDayFocus:j,onDayKeyDown:D,onDayMouseEnter:A,onDayMouseLeave:z,onNextClick:B,onPrevClick:U,showWeekNumber:L,styles:k}=o,{formatCaption:V,formatDay:H,formatMonthDropdown:K,formatWeekNumber:Z,formatWeekNumberHeader:Q,formatWeekdayName:G,formatYearDropdown:q}=d,W=bq(o,h),{days:te,months:Y,navStart:P,navEnd:F,previousMonth:ee,nextMonth:oe,goToMonth:we}=W,se=BY(te,o,P,F,h),{isSelected:Ce,select:re,selected:he}=Rq(o,h)??{},{blur:le,focused:Se,isFocusTarget:ze,moveFocus:je,setFocused:ve}=Sq(o,W,se,Ce??(()=>!1),h),{labelDayButton:fe,labelGridcell:ce,labelGrid:ae,labelMonthDropdown:ue,labelNav:be,labelPrevious:ie,labelNext:Oe,labelWeekday:de,labelWeekNumber:Me,labelWeekNumberHeader:Re,labelYearDropdown:De}=f,Ie=Qe.useMemo(()=>aq(h,o.ISOWeek,o.broadcastCalendar,o.today),[h,o.ISOWeek,o.broadcastCalendar,o.today]),We=C!==void 0||O!==void 0,$e=Qe.useCallback(()=>{ee&&(we(ee),U?.(ee))},[ee,we,U]),st=Qe.useCallback(()=>{oe&&(we(oe),B?.(oe))},[we,oe,B]),nn=Qe.useCallback((at,lt)=>tt=>{tt.preventDefault(),tt.stopPropagation(),ve(at),!lt.disabled&&(re?.(at.date,lt,tt),O?.(at.date,lt,tt))},[re,O,ve]),ln=Qe.useCallback((at,lt)=>tt=>{ve(at),j?.(at.date,lt,tt)},[j,ve]),Tt=Qe.useCallback((at,lt)=>tt=>{le(),R?.(at.date,lt,tt)},[le,R]),Lt=Qe.useCallback((at,lt)=>tt=>{const ht={ArrowLeft:[tt.shiftKey?"month":"day",o.dir==="rtl"?"after":"before"],ArrowRight:[tt.shiftKey?"month":"day",o.dir==="rtl"?"before":"after"],ArrowDown:[tt.shiftKey?"year":"week","after"],ArrowUp:[tt.shiftKey?"year":"week","before"],PageUp:[tt.shiftKey?"year":"month","before"],PageDown:[tt.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(ht[tt.key]){tt.preventDefault(),tt.stopPropagation();const[Yt,it]=ht[tt.key];je(Yt,it)}D?.(at.date,lt,tt)},[je,D,o.dir]),Kt=Qe.useCallback((at,lt)=>tt=>{A?.(at.date,lt,tt)},[A]),Ft=Qe.useCallback((at,lt)=>tt=>{z?.(at.date,lt,tt)},[z]),ya=Qe.useCallback(at=>lt=>{const tt=Number(lt.target.value),ht=h.setMonth(h.startOfMonth(at),tt);we(ht)},[h,we]),Wn=Qe.useCallback(at=>lt=>{const tt=Number(lt.target.value),ht=h.setYear(h.startOfMonth(at),tt);we(ht)},[h,we]),{className:ct,style:ot}=Qe.useMemo(()=>({className:[v[bt.Root],o.className].filter(Boolean).join(" "),style:{...k?.[bt.Root],...o.style}}),[v,o.className,o.style,k]),xt=HY(o),Mt=Qe.useRef(null);cq(Mt,!!o.animate,{classNames:v,months:Y,focused:Se,dateLib:h});const mn={dayPickerProps:o,selected:he,select:re,isSelected:Ce,months:Y,nextMonth:oe,previousMonth:ee,goToMonth:we,getModifiers:se,components:i,classNames:v,styles:k,labels:f,formatters:d};return Qe.createElement(Q5.Provider,{value:mn},Qe.createElement(i.Root,{rootRef:o.animate?Mt:void 0,className:ct,style:ot,dir:o.dir,id:o.id,lang:o.lang??y.code,nonce:o.nonce,title:o.title,role:o.role,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],...xt},Qe.createElement(i.Months,{className:v[bt.Months],style:k?.[bt.Months]},!o.hideNavigation&&!w&&Qe.createElement(i.Nav,{"data-animated-nav":o.animate?"true":void 0,className:v[bt.Nav],style:k?.[bt.Nav],"aria-label":be(),onPreviousClick:$e,onNextClick:st,previousMonth:ee,nextMonth:oe}),Y.map((at,lt)=>Qe.createElement(i.Month,{"data-animated-month":o.animate?"true":void 0,className:v[bt.Month],style:k?.[bt.Month],key:lt,displayIndex:lt,calendarMonth:at},w==="around"&&!o.hideNavigation&<===0&&Qe.createElement(i.PreviousMonthButton,{type:"button",className:v[bt.PreviousMonthButton],tabIndex:ee?void 0:-1,"aria-disabled":ee?void 0:!0,"aria-label":ie(ee),onClick:$e,"data-animated-button":o.animate?"true":void 0},Qe.createElement(i.Chevron,{disabled:ee?void 0:!0,className:v[bt.Chevron],orientation:o.dir==="rtl"?"right":"left"})),Qe.createElement(i.MonthCaption,{"data-animated-caption":o.animate?"true":void 0,className:v[bt.MonthCaption],style:k?.[bt.MonthCaption],calendarMonth:at,displayIndex:lt},x?.startsWith("dropdown")?Qe.createElement(i.DropdownNav,{className:v[bt.Dropdowns],style:k?.[bt.Dropdowns]},(()=>{const tt=x==="dropdown"||x==="dropdown-months"?Qe.createElement(i.MonthsDropdown,{key:"month",className:v[bt.MonthsDropdown],"aria-label":ue(),classNames:v,components:i,disabled:!!o.disableNavigation,onChange:ya(at.date),options:tq(at.date,P,F,d,h),style:k?.[bt.Dropdown],value:h.getMonth(at.date)}):Qe.createElement("span",{key:"month"},K(at.date,h)),ht=x==="dropdown"||x==="dropdown-years"?Qe.createElement(i.YearsDropdown,{key:"year",className:v[bt.YearsDropdown],"aria-label":De(h.options),classNames:v,components:i,disabled:!!o.disableNavigation,onChange:Wn(at.date),options:oq(P,F,d,h,!!o.reverseYears),style:k?.[bt.Dropdown],value:h.getYear(at.date)}):Qe.createElement("span",{key:"year"},q(at.date,h));return h.getMonthYearOrder()==="year-first"?[ht,tt]:[tt,ht]})(),Qe.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},V(at.date,h.options,h))):Qe.createElement(i.CaptionLabel,{className:v[bt.CaptionLabel],role:"status","aria-live":"polite"},V(at.date,h.options,h))),w==="around"&&!o.hideNavigation&<===N-1&&Qe.createElement(i.NextMonthButton,{type:"button",className:v[bt.NextMonthButton],tabIndex:oe?void 0:-1,"aria-disabled":oe?void 0:!0,"aria-label":Oe(oe),onClick:st,"data-animated-button":o.animate?"true":void 0},Qe.createElement(i.Chevron,{disabled:oe?void 0:!0,className:v[bt.Chevron],orientation:o.dir==="rtl"?"left":"right"})),lt===N-1&&w==="after"&&!o.hideNavigation&&Qe.createElement(i.Nav,{"data-animated-nav":o.animate?"true":void 0,className:v[bt.Nav],style:k?.[bt.Nav],"aria-label":be(),onPreviousClick:$e,onNextClick:st,previousMonth:ee,nextMonth:oe}),Qe.createElement(i.MonthGrid,{role:"grid","aria-multiselectable":C==="multiple"||C==="range","aria-label":ae(at.date,h.options,h)||void 0,className:v[bt.MonthGrid],style:k?.[bt.MonthGrid]},!o.hideWeekdays&&Qe.createElement(i.Weekdays,{"data-animated-weekdays":o.animate?"true":void 0,className:v[bt.Weekdays],style:k?.[bt.Weekdays]},L&&Qe.createElement(i.WeekNumberHeader,{"aria-label":Re(h.options),className:v[bt.WeekNumberHeader],style:k?.[bt.WeekNumberHeader],scope:"col"},Q()),Ie.map(tt=>Qe.createElement(i.Weekday,{"aria-label":de(tt,h.options,h),className:v[bt.Weekday],key:String(tt),style:k?.[bt.Weekday],scope:"col"},G(tt,h.options,h)))),Qe.createElement(i.Weeks,{"data-animated-weeks":o.animate?"true":void 0,className:v[bt.Weeks],style:k?.[bt.Weeks]},at.weeks.map(tt=>Qe.createElement(i.Week,{className:v[bt.Week],key:tt.weekNumber,style:k?.[bt.Week],week:tt},L&&Qe.createElement(i.WeekNumber,{week:tt,style:k?.[bt.WeekNumber],"aria-label":Me(tt.weekNumber,{locale:y}),className:v[bt.WeekNumber],scope:"row",role:"rowheader"},Z(tt.weekNumber,h)),tt.days.map(ht=>{const{date:Yt}=ht,it=se(ht);if(it[ga.focused]=!it.hidden&&!!Se?.isEqualTo(ht),it[Qs.selected]=Ce?.(Yt)||it.selected,wC(he)){const{from:bo,to:lo}=he;it[Qs.range_start]=!!(bo&&lo&&h.isSameDay(Yt,bo)),it[Qs.range_end]=!!(bo&&lo&&h.isSameDay(Yt,lo)),it[Qs.range_middle]=mu(he,Yt,!0,h)}const oa=nq(it,k,o.modifiersStyles),yo=LY(it,v,o.modifiersClassNames),oo=!We&&!it.hidden?ce(Yt,it,h.options,h):void 0;return Qe.createElement(i.Day,{key:`${ht.isoDate}_${ht.displayMonthId}`,day:ht,modifiers:it,className:yo.join(" "),style:oa,role:"gridcell","aria-selected":it.selected||void 0,"aria-label":oo,"data-day":ht.isoDate,"data-month":ht.outside?ht.dateMonthId:void 0,"data-selected":it.selected||void 0,"data-disabled":it.disabled||void 0,"data-hidden":it.hidden||void 0,"data-outside":ht.outside||void 0,"data-focused":it.focused||void 0,"data-today":it.today||void 0},!it.hidden&&We?Qe.createElement(i.DayButton,{className:v[bt.DayButton],style:k?.[bt.DayButton],type:"button",day:ht,modifiers:it,disabled:!it.focused&&it.disabled||void 0,"aria-disabled":it.focused&&it.disabled||void 0,tabIndex:ze(ht)?0:-1,"aria-label":fe(Yt,it,h.options,h),onClick:nn(ht,it),onBlur:Tt(ht,it),onFocus:ln(ht,it),onKeyDown:Lt(ht,it),onMouseEnter:Kt(ht,it),onMouseLeave:Ft(ht,it)},H(Yt,h.options,h)):!it.hidden&&H(ht.date,h.options,h))})))))))),o.footer&&Qe.createElement(i.Footer,{className:v[bt.Footer],style:k?.[bt.Footer],role:"status","aria-live":"polite"},o.footer)))}function jq({className:n,classNames:o,showOutsideDays:s=!0,captionLayout:i="label",buttonVariant:d="ghost",locale:f,formatters:h,components:y,...v}){const x=LT();return m.jsx(Oq,{showOutsideDays:s,className:$("group/calendar bg-background p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,n),captionLayout:i,locale:f,formatters:{formatMonthDropdown:C=>C.toLocaleString(f?.code,{month:"short"}),...h},classNames:{root:$("w-fit",x.root),months:$("relative flex flex-col gap-4 md:flex-row",x.months),month:$("flex w-full flex-col gap-4",x.month),nav:$("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",x.nav),button_previous:$(W2({variant:d}),"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",x.button_previous),button_next:$(W2({variant:d}),"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",x.button_next),month_caption:$("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",x.month_caption),dropdowns:$("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",x.dropdowns),dropdown_root:$("relative rounded-(--cell-radius)",x.dropdown_root),dropdown:$("absolute inset-0 bg-popover opacity-0",x.dropdown),caption_label:$("font-medium select-none",i==="label"?"text-sm":"flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground",x.caption_label),table:"w-full border-collapse",weekdays:$("flex",x.weekdays),weekday:$("flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none",x.weekday),week:$("mt-2 flex w-full",x.week),week_number_header:$("w-(--cell-size) select-none",x.week_number_header),week_number:$("text-[0.8rem] text-muted-foreground select-none",x.week_number),day:$("group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius)",v.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)":"[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",x.day),range_start:$("relative isolate z-0 rounded-l-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:right-0 after:w-4 after:bg-muted",x.range_start),range_middle:$("rounded-none",x.range_middle),range_end:$("relative isolate z-0 rounded-r-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:left-0 after:w-4 after:bg-muted",x.range_end),today:$("rounded-(--cell-radius) bg-muted text-foreground data-[selected=true]:rounded-none",x.today),outside:$("text-muted-foreground aria-selected:text-muted-foreground",x.outside),disabled:$("text-muted-foreground opacity-50",x.disabled),hidden:$("invisible",x.hidden),...o},components:{Root:({className:C,rootRef:w,...N})=>m.jsx("div",{"data-slot":"calendar",ref:w,className:$(C),...N}),Chevron:({className:C,orientation:w,...N})=>w==="left"?m.jsx(vu,{className:$("size-4",C),...N}):w==="right"?m.jsx(xr,{className:$("size-4",C),...N}):m.jsx(py,{className:$("size-4",C),...N}),DayButton:({...C})=>m.jsx(Dq,{locale:f,...C}),WeekNumber:({children:C,...w})=>m.jsx("td",{...w,children:m.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:C})}),...y},...v})}function Dq({className:n,day:o,modifiers:s,locale:i,...d}){const f=LT(),h=S.useRef(null);return S.useEffect(()=>{s.focused&&h.current?.focus()},[s.focused]),m.jsx(pf,{variant:"ghost",size:"icon","data-day":o.date.toLocaleDateString(i?.code),"data-selected-single":s.selected&&!s.range_start&&!s.range_end&&!s.range_middle,"data-range-start":s.range_start,"data-range-end":s.range_end,"data-range-middle":s.range_middle,className:$("relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-foreground [&>span]:text-xs [&>span]:opacity-70",f.day,n),...d})}const Fj=["January","February","March","April","May","June","July","August","September","October","November","December"];function kq(n,o){return new Date(n,o+1,0).getDate()}function Aq(n,o){return new Date(n,o,1).getDay()}function c3(n,o){return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()&&n.getDate()===o.getDate()}function zq(n){return c3(n,new Date)}const _q=({value:n,defaultValue:o,mode:s="month",cellRender:i,headerRender:d,disabledDate:f,onChange:h,onPanelChange:y,onSelect:v,className:x,style:C})=>{const[w,N]=S.useState(n??o??new Date),[R,O]=S.useState(s),j=n!==void 0,D=j?n:w;S.useEffect(()=>{s!==void 0&&O(s)},[s]);const A=Q=>{j||N(Q),h?.(Q)},z=Q=>{O(Q),y?.(D,Q)},B=D.getFullYear(),U=D.getMonth(),L=Q=>{const G=new Date(B,U+Q,1);A(G),y?.(G,R)},k=Q=>{const G=new Date(B+Q,U,1);A(G),y?.(G,R)},V=m.jsxs("div",{className:"flex items-center justify-between pb-4",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("button",{className:"inline-flex size-8 items-center justify-center rounded-md border border-input bg-background hover:bg-muted",onClick:()=>R==="month"?L(-1):k(-1),children:m.jsx(vu,{className:"size-4"})}),m.jsx("span",{className:"min-w-[140px] text-center text-base font-semibold",children:R==="month"?`${Fj[U]} ${B}`:`${B}`}),m.jsx("button",{className:"inline-flex size-8 items-center justify-center rounded-md border border-input bg-background hover:bg-muted",onClick:()=>R==="month"?L(1):k(1),children:m.jsx(xr,{className:"size-4"})})]}),m.jsxs("div",{className:"flex items-center rounded-md border border-input",children:[m.jsx("button",{className:$("px-3 py-1.5 text-sm transition-colors",R==="month"&&"bg-primary text-primary-foreground"),onClick:()=>z("month"),children:"Month"}),m.jsx("button",{className:$("px-3 py-1.5 text-sm transition-colors",R==="year"&&"bg-primary text-primary-foreground"),onClick:()=>z("year"),children:"Year"})]})]}),H=d?d({value:D,type:R,onChange:A,onTypeChange:z}):V,K=()=>{const Q=kq(B,U),G=Aq(B,U),q=[];for(let te=0;te<G;te++)q.push(null);for(let te=1;te<=Q;te++)q.push(new Date(B,U,te));const W=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];return m.jsxs("div",{children:[m.jsx("div",{className:"grid grid-cols-7",children:W.map(te=>m.jsx("div",{className:"border-b py-2 text-center text-sm font-medium text-muted-foreground",children:te},te))}),m.jsx("div",{className:"grid grid-cols-7",children:q.map((te,Y)=>{if(!te)return m.jsx("div",{className:"min-h-[80px] border-b border-r p-2"},`empty-${Y}`);const P=f?.(te)??!1,F=c3(te,D),ee=zq(te),oe=m.jsx("span",{children:te.getDate()});return i&&i(te,{originNode:oe,type:"date"}),m.jsxs("div",{className:$("min-h-[80px] cursor-pointer border-b border-r p-2 transition-colors hover:bg-muted/50",P&&"pointer-events-none opacity-40",F&&"bg-primary/5"),onClick:()=>{P||(A(te),v?.(te,{source:"date"}))},children:[m.jsx("div",{className:$("inline-flex size-6 items-center justify-center rounded-full text-sm",ee&&"bg-primary text-primary-foreground",F&&!ee&&"bg-primary/20 font-medium"),children:te.getDate()}),i&&m.jsx("div",{className:"mt-1",children:i(te,{originNode:oe,type:"date"})})]},te.toISOString())})})]})},Z=()=>m.jsx("div",{className:"grid grid-cols-3 gap-4 p-4",children:Fj.map((Q,G)=>{const q=new Date(B,G,1),W=G===new Date().getMonth()&&B===new Date().getFullYear(),te=G===D.getMonth(),Y=m.jsx("span",{children:Q});return m.jsxs("div",{className:$("cursor-pointer rounded-lg p-4 text-center transition-colors hover:bg-muted/50",te&&"bg-primary/5 font-medium",W&&"ring-1 ring-primary"),onClick:()=>{A(q),v?.(q,{source:"month"})},children:[m.jsx("div",{className:"text-sm font-medium",children:Q}),i&&m.jsx("div",{className:"mt-1",children:i(q,{originNode:Y,type:"month"})})]},G)})});return m.jsxs("div",{className:$("w-full",x),style:C,children:[H,R==="month"?K():Z()]})},u3=({value:n,defaultValue:o,mode:s="month",fullscreen:i=!0,cellRender:d,headerRender:f,disabledDate:h,onChange:y,onPanelChange:v,onSelect:x,className:C,style:w})=>i?m.jsx(_q,{value:n,defaultValue:o,mode:s,cellRender:d,headerRender:f,disabledDate:h,onChange:y,onPanelChange:v,onSelect:x,className:C,style:w}):m.jsx("div",{className:$("w-fit",C),style:w,children:m.jsx(jq,{mode:"single",selected:n??o,onSelect:N=>{N&&(y?.(N),x?.(N,{source:"date"}))},disabled:h})});u3.displayName="Calendar";const Uq=u3,d3=S.forwardRef(({autoplay:n=!1,dots:o=!0,dotPosition:s="bottom",effect:i="scrollx",slidesToShow:d=1,beforeChange:f,afterChange:h,arrows:y=!1,initialSlide:v=0,infinite:x=!0,className:C,style:w,children:N},R)=>{const O=S.Children.toArray(N),j=O.length,[D,A]=S.useState(v),[z,B]=S.useState(!1),U=S.useRef(void 0),L=S.useRef(null),k=n===!1?!1:n===!0?{interval:3e3,pauseOnHover:!0}:{interval:3e3,pauseOnHover:!0,...n},V=S.useCallback(W=>{if(z)return;const te=x?(W%j+j)%j:Math.max(0,Math.min(W,j-d));f?.(D,te),B(!0),A(te),setTimeout(()=>{B(!1),h?.(te)},300)},[D,j,d,x,f,h,z]),H=S.useCallback(()=>V(D+1),[V,D]),K=S.useCallback(()=>V(D-1),[V,D]);S.useImperativeHandle(R,()=>({goTo:V,next:H,prev:K})),S.useEffect(()=>k===!1||j<=1?void 0:(U.current=setInterval(H,k.interval),()=>{U.current&&clearInterval(U.current)}),[k,H,j]);const Z=()=>{k&&k.pauseOnHover&&U.current&&clearInterval(U.current)},Q=()=>{k&&k.pauseOnHover&&(U.current=setInterval(H,k.interval))},G=s==="left"||s==="right",q=o&&j>1&&m.jsx("div",{className:$("flex gap-1",G?"flex-col":"flex-row",s==="bottom"&&"mt-3 justify-center",s==="top"&&"mb-3 justify-center",s==="left"&&"mr-3 items-center",s==="right"&&"ml-3 items-center"),children:O.map((W,te)=>m.jsx("button",{className:$("rounded-full transition-all",te===D?"bg-primary":"bg-muted-foreground/30 hover:bg-muted-foreground/50",G?te===D?"h-4 w-2":"h-2 w-2":te===D?"h-2 w-4":"h-2 w-2",typeof o=="object"&&o.className),onClick:()=>V(te),"aria-label":`Go to slide ${te+1}`},te))});return m.jsxs("div",{className:$("relative",G&&"flex",s==="left"&&"flex-row-reverse",C),style:w,onMouseEnter:Z,onMouseLeave:Q,children:[(s==="top"||s==="left")&&q,m.jsxs("div",{ref:L,className:"relative flex-1 overflow-hidden",children:[i==="scrollx"?m.jsx("div",{className:"flex transition-transform duration-300 ease-in-out",style:{transform:`translateX(-${D*(100/d)}%)`},children:O.map((W,te)=>m.jsx("div",{className:"shrink-0",style:{width:`${100/d}%`},children:W},te))}):m.jsx("div",{className:"relative",children:O.map((W,te)=>m.jsx("div",{className:$("transition-opacity duration-300",te===0?"relative":"absolute inset-0",te===D?"opacity-100":"opacity-0 pointer-events-none"),children:W},te))}),y&&j>1&&m.jsxs(m.Fragment,{children:[m.jsx("button",{className:"absolute left-2 top-1/2 z-10 -translate-y-1/2 rounded-full bg-black/30 p-1.5 text-white hover:bg-black/50",onClick:K,"aria-label":"Previous slide",children:m.jsx(vu,{className:"size-5"})}),m.jsx("button",{className:"absolute right-2 top-1/2 z-10 -translate-y-1/2 rounded-full bg-black/30 p-1.5 text-white hover:bg-black/50",onClick:H,"aria-label":"Next slide",children:m.jsx(xr,{className:"size-5"})})]})]}),(s==="bottom"||s==="right")&&q]})});d3.displayName="Carousel";const Bq=d3;function Lq({status:n,onRefresh:o}){return n==="active"?null:m.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-2 bg-background/80",children:[n==="loading"&&m.jsx(Zs,{className:"size-6 animate-spin text-muted-foreground"}),n==="expired"&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-xs text-muted-foreground",children:"QR code expired"}),o&&m.jsxs("button",{className:"inline-flex items-center gap-1 rounded-md bg-primary px-3 py-1 text-xs text-primary-foreground hover:bg-primary/90",onClick:o,children:[m.jsx(w8,{className:"size-3"}),"Refresh"]})]}),n==="scanned"&&m.jsxs(m.Fragment,{children:[m.jsx(J6,{className:"size-6 text-green-500"}),m.jsx("span",{className:"text-xs text-muted-foreground",children:"Scanned"})]})]})}function Vq({size:n,color:o,bgColor:s,value:i}){const f=n/21,h=S.useMemo(()=>{const y=[];let v=0;for(let x=0;x<i.length;x++)v=(v<<5)-v+i.charCodeAt(x)|0;for(let x=0;x<21;x++){y[x]=[];for(let C=0;C<21;C++){const w=x<7&&C<7,N=x<7&&C>=14,R=x>=14&&C<7;if(w||N||R){const O=x===0||x===6||C===0||C===6||x<7&&(C===14||C===20)||C>=14&&(x===0||x===6)||x>=14&&(C===0||C===6)||C<7&&(x===14||x===20),j=x>=2&&x<=4&&C>=2&&C<=4||x>=2&&x<=4&&C>=16&&C<=18||x>=16&&x<=18&&C>=2&&C<=4;y[x][C]=O||j}else{const O=(v*(x*21+C+1)>>>0)%100;y[x][C]=O<40}}}return y},[i,21]);return m.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,children:[m.jsx("rect",{width:n,height:n,fill:s}),h.map((y,v)=>y.map((x,C)=>x?m.jsx("rect",{x:C*f,y:v*f,width:f,height:f,fill:o},`${v}-${C}`):null))]})}const f3=({value:n,size:o=160,color:s="#000000",bgColor:i="#ffffff",bordered:d=!0,icon:f,iconSize:h=40,status:y="active",onRefresh:v,className:x,style:C})=>m.jsxs("div",{className:$("relative inline-flex items-center justify-center overflow-hidden rounded-lg",d&&"border p-3",x),style:C,children:[m.jsx(Vq,{size:o,color:s,bgColor:i,value:n}),f&&y==="active"&&m.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded bg-white p-0.5",style:{width:h,height:h},children:m.jsx("img",{src:f,alt:"QR icon",className:"size-full object-contain"})}),m.jsx(Lq,{status:y,onRefresh:v})]});f3.displayName="QRCode";const Hq=f3;function Iq(n){return n?typeof n=="function"?n():"current"in n?n.current:null:null}function Yq(n,o="bottom",s=320,i=200){if(!n||o==="center")return{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)"};const d=12,f={position:"fixed"};switch(o){case"top":case"topLeft":case"topRight":f.bottom=window.innerHeight-n.top+d,o==="topLeft"?f.left=n.left:o==="topRight"?f.right=window.innerWidth-n.right:f.left=n.left+n.width/2-s/2;break;case"bottom":case"bottomLeft":case"bottomRight":f.top=n.bottom+d,o==="bottomLeft"?f.left=n.left:o==="bottomRight"?f.right=window.innerWidth-n.right:f.left=n.left+n.width/2-s/2;break;case"left":case"leftTop":case"leftBottom":f.right=window.innerWidth-n.left+d,o==="leftTop"?f.top=n.top:o==="leftBottom"?f.bottom=window.innerHeight-n.bottom:f.top=n.top+n.height/2-i/2;break;case"right":case"rightTop":case"rightBottom":f.left=n.right+d,o==="rightTop"?f.top=n.top:o==="rightBottom"?f.bottom=window.innerHeight-n.bottom:f.top=n.top+n.height/2-i/2;break}return f}function qq({targetRect:n,zIndex:o,onClick:s}){if(!n)return m.jsx("div",{className:"fixed inset-0 bg-black/50",style:{zIndex:o},onClick:s});const i=4,d=4;return m.jsx("div",{className:"fixed inset-0",style:{zIndex:o},onClick:s,children:m.jsxs("svg",{className:"absolute inset-0 size-full",children:[m.jsx("defs",{children:m.jsxs("mask",{id:"tour-mask",children:[m.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"white"}),m.jsx("rect",{x:n.left-i,y:n.top-i,width:n.width+i*2,height:n.height+i*2,rx:d,ry:d,fill:"black"})]})}),m.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"rgba(0,0,0,0.5)",mask:"url(#tour-mask)"})]})})}const m3=({steps:n,open:o,current:s,onChange:i,onClose:d,onFinish:f,type:h="default",mask:y=!0,indicatorsRender:v,className:x,style:C,zIndex:w=1070})=>{const[N,R]=S.useState(0),[O,j]=S.useState(!1),D=o!==void 0,A=s!==void 0,z=D?o:O,B=A?s:N,[U,L]=S.useState(null);if(S.useEffect(()=>{if(!z||!n[B]){L(null);return}const P=Iq(n[B].target);if(P){L(P.getBoundingClientRect()),P.scrollIntoView({behavior:"smooth",block:"center"});const F=()=>L(P.getBoundingClientRect());return window.addEventListener("resize",F),window.addEventListener("scroll",F,!0),()=>{window.removeEventListener("resize",F),window.removeEventListener("scroll",F,!0)}}else L(null)},[z,B,n]),S.useEffect(()=>{if(z)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}},[z]),!z||!n.length)return null;const k=n[B];if(!k)return null;const V=k.type??h,H=k.mask??y,K=B===0,Z=B===n.length-1,Q=P=>{A||R(P),i?.(P)},G=()=>{Z?(W(),f?.()):Q(B+1)},q=()=>{K||Q(B-1)},W=()=>{D||j(!1),d?.(),A||R(0)},te=Yq(U,k.placement),Y=m.jsx("div",{className:"flex items-center gap-1",children:n.map((P,F)=>m.jsx("span",{className:$("size-1.5 rounded-full",F===B?"bg-current":"bg-current/30")},F))});return m.jsxs(m.Fragment,{children:[H&&m.jsx(qq,{targetRect:U,zIndex:w,onClick:W}),m.jsxs("div",{className:$("z-[1071] w-80 rounded-lg border bg-background p-4 shadow-lg",V==="primary"&&"border-primary bg-primary text-primary-foreground",k.className,x),style:{...te,zIndex:w+1,...C,...k.style},onClick:P=>P.stopPropagation(),children:[m.jsx("button",{className:$("absolute right-2 top-2 rounded-sm p-1 transition-colors",V==="primary"?"text-primary-foreground/70 hover:text-primary-foreground":"text-muted-foreground hover:text-foreground"),onClick:W,children:m.jsx(go,{className:"size-4"})}),k.cover&&m.jsx("div",{className:"mb-3",children:k.cover}),k.title&&m.jsx("div",{className:"mb-1 pr-6 text-sm font-semibold",children:k.title}),k.description&&m.jsx("div",{className:$("mb-4 text-sm",V==="primary"?"text-primary-foreground/80":"text-muted-foreground"),children:k.description}),m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[v?v(B,n.length):Y,m.jsxs("div",{className:"flex items-center gap-2",children:[!K&&m.jsx("button",{className:$("rounded-md border px-3 py-1 text-xs font-medium transition-colors",V==="primary"?"border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10":"border-border hover:bg-muted"),onClick:()=>{k.prevButtonProps?.onClick?.(),q()},children:k.prevButtonProps?.children??"Previous"}),m.jsx("button",{className:$("rounded-md px-3 py-1 text-xs font-medium transition-colors",V==="primary"?"bg-primary-foreground text-primary hover:bg-primary-foreground/90":"bg-primary text-primary-foreground hover:bg-primary/90"),onClick:()=>{k.nextButtonProps?.onClick?.(),G()},children:k.nextButtonProps?.children??(Z?"Finish":"Next")})]})]})]})]})};m3.displayName="Tour";const Gq=m3;let Wj=(function(n){return n.disabled="data-disabled",n.valid="data-valid",n.invalid="data-invalid",n.touched="data-touched",n.dirty="data-dirty",n.filled="data-filled",n.focused="data-focused",n})({});const Xq={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Ep={valid(n){return n===null?null:n?{[Wj.valid]:""}:{[Wj.invalid]:""}}},p3=S.createContext({invalid:void 0,name:void 0,validityData:{state:Xq,errors:[],error:"",value:"",initialValue:null},setValidityData:ja,disabled:void 0,touched:!1,setTouched:ja,dirty:!1,setDirty:ja,filled:!1,setFilled:ja,focused:!1,setFocused:ja,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1},validation:{getValidationProps:(n=Fn)=>n,getInputValidationProps:(n=Fn)=>n,inputRef:{current:null},commit:async()=>{}}});process.env.NODE_ENV!=="production"&&(p3.displayName="FieldRootContext");function Su(n=!0){const o=S.useContext(p3);if(o.setValidityData===ja&&!n)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.":Nn(28));return o}const h3=S.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});process.env.NODE_ENV!=="production"&&(h3.displayName="FieldsetRootContext");function Pq(n=!1){const o=S.useContext(h3);if(!o&&!n)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>.":Nn(86));return o}const g3=S.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:ja,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});process.env.NODE_ENV!=="production"&&(g3.displayName="FormContext");function mx(){return S.useContext(g3)}const y3=S.createContext({controlId:void 0,registerControlId:ja,labelId:void 0,setLabelId:ja,messageIds:[],setMessageIds:ja,getDescriptionProps:n=>n});process.env.NODE_ENV!=="production"&&(y3.displayName="LabelableContext");function Np(){return S.useContext(y3)}function $q(n,o){return{...n,state:{...n.state,valid:!o&&n.state.valid}}}function px(n={}){const{id:o,implicit:s=!1,controlRef:i}=n,{controlId:d,registerControlId:f}=Np(),h=vl(o),y=s?d:void 0,v=Qa(()=>Symbol("labelable-control")),x=S.useRef(!1),C=S.useRef(o!=null),w=Ke(()=>{!x.current||f===ja||(x.current=!1,f(v.current,void 0))});return Fe(()=>{if(f===ja)return;let N;if(s){const R=i?.current;bn(R)&&R.closest("label")!=null?N=o??null:N=y??h}else if(o!=null)C.current=!0,N=o;else if(C.current)N=h;else{w();return}if(N===void 0){w();return}x.current=!0,f(v.current,N)},[o,i,y,f,s,h,v,w]),S.useEffect(()=>w,[w]),d??h}function hx(n){const{enabled:o=!0,value:s,id:i,name:d,controlRef:f,commit:h}=n,{formRef:y}=mx(),{invalid:v,markedDirtyRef:x,validityData:C,setValidityData:w}=Su(),N=Ke(n.getValue);Fe(()=>{if(!o)return;let R=s;R===void 0&&(R=N()),C.initialValue===null&&R!==null&&w(O=>({...O,initialValue:R}))},[o,w,s,C.initialValue,N]),Fe(()=>{!o||!i||y.current.fields.set(i,{getValue:N,name:d,controlRef:f,validityData:$q(C,v),validate(R=!0){let O=s;O===void 0&&(O=N()),x.current=!0,R?Bl.flushSync(()=>h(O)):h(O)}})},[h,f,o,y,N,i,v,x,d,C,s]),Fe(()=>{const R=y.current.fields;return()=>{i&&R.delete(i)}},[y,i])}const b3=S.forwardRef(function(o,s){const{render:i,className:d,id:f,name:h,value:y,disabled:v=!1,onValueChange:x,defaultValue:C,autoFocus:w=!1,...N}=o,{state:R,name:O,disabled:j,setTouched:D,setDirty:A,validityData:z,setFocused:B,setFilled:U,validationMode:L,validation:k}=Su(),V=j||v,H=O??h,K={...R,disabled:V},{labelId:Z}=Np(),Q=px({id:f});Fe(()=>{const P=y!=null;k.inputRef.current?.value||P&&y!==""?U(!0):P&&y===""&&U(!1)},[k.inputRef,U,y]);const G=S.useRef(null);Fe(()=>{w&&G.current===gr(sn(G.current))&&B(!0)},[w,B]);const[q]=yp({controlled:y,default:C,name:"FieldControl",state:"value"}),W=y!==void 0,te=W?q:void 0;return hx({id:Q,name:H,commit:k.commit,value:te,getValue:()=>k.inputRef.current?.value,controlRef:k.inputRef}),zt("input",o,{ref:[s,G],state:K,props:[{id:Q,disabled:V,name:H,ref:k.inputRef,"aria-labelledby":Z,autoFocus:w,...W?{value:te}:{defaultValue:C},onChange(P){const F=P.currentTarget.value;x?.(F,vt(hs,P.nativeEvent)),A(F!==z.initialValue),U(F!=="")},onFocus(){B(!0)},onBlur(P){D(!0),B(!1),L==="onBlur"&&k.commit(P.currentTarget.value)},onKeyDown(P){P.currentTarget.tagName==="INPUT"&&P.key==="Enter"&&(D(!0),k.commit(P.currentTarget.value))}},k.getInputValidationProps(),N],stateAttributesMapping:Ep})});process.env.NODE_ENV!=="production"&&(b3.displayName="FieldControl");const v3=S.createContext({disabled:!1});process.env.NODE_ENV!=="production"&&(v3.displayName="FieldItemContext");function x3(){return S.useContext(v3)}const S3=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(S3.displayName="CheckboxGroupContext");function Qq(n=!0){const o=S.useContext(S3);if(o===void 0&&!n)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: CheckboxGroupContext is missing. CheckboxGroup parts must be placed within <CheckboxGroup>.":Nn(3));return o}const w3=S.forwardRef(function(o,s){return m.jsx(b3,{ref:s,...o})});process.env.NODE_ENV!=="production"&&(w3.displayName="Input");function IT({className:n,type:o,...s}){return m.jsx(w3,{type:o,"data-slot":"input",className:$("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",n),...s})}function Zq({className:n,...o}){return m.jsx("textarea",{"data-slot":"textarea",className:$("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",n),...o})}function YT({className:n,...o}){return m.jsx("div",{"data-slot":"input-group",role:"group",className:$("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",n),...o})}const Kq=Zv("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function uy({className:n,align:o="inline-start",...s}){return m.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":o,className:$(Kq({align:o}),n),onClick:i=>{i.target.closest("button")||i.currentTarget.parentElement?.querySelector("input")?.focus()},...s})}const Fq=Zv("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function fN({className:n,type:o="button",variant:s="ghost",size:i="xs",...d}){return m.jsx(pf,{type:o,"data-size":i,variant:s,className:$(Fq({size:i}),n),...d})}function dy({className:n,...o}){return m.jsx("span",{className:$("flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",n),...o})}function qT({className:n,...o}){return m.jsx(IT,{"data-slot":"input-group-control",className:$("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",n),...o})}const Jj={small:"h-7 text-xs",middle:"h-8 text-sm",large:"h-10 text-base"},O2={small:"h-7",middle:"h-8",large:"h-10"},lw={error:"border-destructive focus-within:border-destructive focus-within:ring-destructive/20",warning:"border-warning focus-within:border-warning focus-within:ring-warning/20"},eD={outlined:"",borderless:"border-0 shadow-none focus-within:ring-0",filled:"border-transparent bg-muted focus-within:border-ring",underlined:"border-0 border-b rounded-none focus-within:ring-0 focus-within:border-ring"},C3=S.forwardRef((n,o)=>{const{value:s,defaultValue:i,onChange:d,size:f,prefix:h,suffix:y,addonBefore:v,addonAfter:x,allowClear:C=!1,status:w,variant:N="outlined",showCount:R=!1,maxLength:O,disabled:j=!1,readOnly:D=!1,placeholder:A,onPressEnter:z,onClear:B,className:U,...L}=n,k=Ws(f),[V,H]=S.useState(i??""),K=s!==void 0,Z=K?s:V,Q=oe=>{K||H(oe.target.value),d?.(oe)},G=oe=>{oe.key==="Enter"&&z?.(oe),L.onKeyDown?.(oe)},q=()=>{K||H("");const we={...new Event("input",{bubbles:!0}),target:{value:""},currentTarget:{value:""}};d?.(we),B?.()},W=C&&!j&&!D&&Z&&String(Z).length>0,te=typeof C=="object"&&C.clearIcon?C.clearIcon:m.jsx(go,{className:"size-3.5 text-muted-foreground hover:text-foreground"}),Y=(()=>{if(!R)return null;const oe=String(Z??"").length;return typeof R=="function"?m.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:R({value:String(Z??""),count:oe,maxLength:O})}):m.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:O!==void 0?`${oe} / ${O}`:oe})})(),P={...L,value:Z,onChange:Q,onKeyDown:G,disabled:j,readOnly:D,placeholder:A,maxLength:O},F=h||y||W||v||x,ee="inline-flex items-center justify-center border-input bg-muted px-3 text-sm text-muted-foreground";return F?m.jsxs("div",{className:"inline-flex w-full flex-col",children:[m.jsxs("div",{className:"flex items-stretch",children:[v&&m.jsx("span",{className:$(ee,"rounded-l-lg border border-r-0",O2[k],w&&lw[w]?.split(" ")[0]),children:v}),m.jsxs(YT,{className:$(O2[k],w&&lw[w],eD[N],v&&"rounded-l-none",x&&"rounded-r-none",U),children:[h&&m.jsx(uy,{align:"inline-start",children:m.jsx(dy,{children:h})}),m.jsx(qT,{ref:o,className:$(Jj[k],"border-0 ring-0 focus-visible:ring-0"),...P}),(W||y)&&m.jsxs(uy,{align:"inline-end",children:[W&&m.jsx(fN,{size:"icon-xs",variant:"ghost",onClick:q,"aria-label":"Clear input",className:"size-5 shrink-0",tabIndex:-1,children:te}),y&&m.jsx(dy,{children:y})]})]}),x&&m.jsx("span",{className:$(ee,"rounded-r-lg border border-l-0",O2[k],w&&lw[w]?.split(" ")[0]),children:x})]}),Y&&m.jsx("div",{className:"mt-1 flex justify-end",children:Y})]}):m.jsxs("div",{className:"inline-flex w-full flex-col",children:[m.jsx(IT,{ref:o,className:$(Jj[k],w&&lw[w],eD[N],U),...P}),Y&&m.jsx("div",{className:"mt-1 flex justify-end",children:Y})]})});C3.displayName="Input";const Wq={small:"h-7 text-xs",middle:"h-8 text-sm",large:"h-10 text-base"},j2={small:"h-7",middle:"h-8",large:"h-10"},Jq={error:"border-destructive focus-within:border-destructive focus-within:ring-destructive/20",warning:"border-warning focus-within:border-warning focus-within:ring-warning/20"},eG={outlined:"",borderless:"border-0 shadow-none focus-within:ring-0",filled:"border-transparent bg-muted focus-within:border-ring",underlined:"border-0 border-b rounded-none focus-within:ring-0 focus-within:border-ring"},E3=S.forwardRef((n,o)=>{const{value:s,defaultValue:i,onChange:d,size:f,prefix:h,suffix:y,addonBefore:v,addonAfter:x,allowClear:C=!1,status:w,variant:N="outlined",disabled:R=!1,readOnly:O=!1,placeholder:j,onPressEnter:D,onClear:A,visibilityToggle:z=!0,visible:B,onVisibleChange:U,iconRender:L,className:k,...V}=n,H=Ws(f),[K,Z]=S.useState(i??""),Q=s!==void 0,G=Q?s:K,q=re=>{Q||Z(re.target.value),d?.(re)},[W,te]=S.useState(!1),Y=B!==void 0,P=Y?B:W,F=()=>{const re=!P;Y||te(re),U?.(re)},ee=re=>{re.key==="Enter"&&D?.(re),V.onKeyDown?.(re)},oe=()=>{Q||Z("");const he={...new Event("input",{bubbles:!0}),target:{value:""},currentTarget:{value:""}};d?.(he),A?.()},we=C&&!R&&!O&&G&&String(G).length>0,se=L?L(P):P?m.jsx(zD,{className:"size-4 text-muted-foreground"}):m.jsx(s8,{className:"size-4 text-muted-foreground"}),Ce="inline-flex items-center justify-center border-input bg-muted px-3 text-sm text-muted-foreground";return m.jsxs("div",{className:"flex items-stretch",children:[v&&m.jsx("span",{className:$(Ce,"rounded-l-lg border border-r-0",j2[H]),children:v}),m.jsxs(YT,{className:$(j2[H],w&&Jq[w],eG[N],v&&"rounded-l-none",x&&"rounded-r-none",k),children:[h&&m.jsx(uy,{align:"inline-start",children:m.jsx(dy,{children:h})}),m.jsx(qT,{ref:o,type:P?"text":"password",value:G,onChange:q,onKeyDown:ee,disabled:R,readOnly:O,placeholder:j,className:$(Wq[H],"border-0 ring-0 focus-visible:ring-0"),...V}),m.jsxs(uy,{align:"inline-end",children:[we&&m.jsx(fN,{size:"icon-xs",variant:"ghost",onClick:oe,"aria-label":"Clear input",className:"size-5 shrink-0",tabIndex:-1,children:m.jsx("span",{className:"size-3.5 text-muted-foreground hover:text-foreground",children:"×"})}),y&&m.jsx(dy,{children:y}),z&&m.jsx(fN,{size:"icon-xs",variant:"ghost",onClick:F,"aria-label":P?"Hide password":"Show password",className:"size-5 shrink-0",tabIndex:-1,children:se})]})]}),x&&m.jsx("span",{className:$(Ce,"rounded-r-lg border border-l-0",j2[H]),children:x})]})});E3.displayName="Password";const tG={small:"text-xs px-2 py-1",middle:"text-sm px-2.5 py-1.5",large:"text-base px-3 py-2"},nG={error:"border-destructive focus-visible:border-destructive focus-visible:ring-destructive/20",warning:"border-warning focus-visible:border-warning focus-visible:ring-warning/20"},aG={outlined:"",borderless:"border-0 shadow-none focus-visible:ring-0",filled:"border-transparent bg-muted focus-visible:border-ring",underlined:"border-0 border-b rounded-none focus-visible:ring-0 focus-visible:border-ring"};function oG(n){if(!n)return{};if(n===!0)return{};const o={},s=1.5715,i=10;return n.minRows&&(o.minHeight=`${n.minRows*14*s+i}px`),n.maxRows&&(o.maxHeight=`${n.maxRows*14*s+i}px`,o.overflowY="auto"),o}const N3=S.forwardRef((n,o)=>{const{value:s,defaultValue:i,onChange:d,autoSize:f,showCount:h=!1,maxLength:y,size:v,status:x,variant:C="outlined",onPressEnter:w,onClear:N,allowClear:R=!1,disabled:O,readOnly:j,className:D,style:A,...z}=n,B=Ws(v),[U,L]=S.useState(i??""),k=s!==void 0,V=k?s:U,H=te=>{k||L(te.target.value),d?.(te)},K=te=>{te.key==="Enter"&&w?.(te),z.onKeyDown?.(te)},Z=()=>{k||L("");const Y={...new Event("input",{bubbles:!0}),target:{value:""},currentTarget:{value:""}};d?.(Y),N?.()},Q=R&&!O&&!j&&V&&String(V).length>0,G=typeof R=="object"&&R.clearIcon?R.clearIcon:m.jsx(go,{className:"size-3.5 text-muted-foreground hover:text-foreground"}),q=(()=>{if(!h)return null;const te=String(V??"").length;return typeof h=="function"?m.jsx("span",{className:"text-xs text-muted-foreground",children:h({value:String(V??""),count:te,maxLength:y})}):m.jsx("span",{className:"text-xs text-muted-foreground",children:y!==void 0?`${te} / ${y}`:te})})(),W=oG(f);return m.jsxs("div",{className:"relative inline-flex w-full flex-col",children:[m.jsxs("div",{className:"relative",children:[m.jsx(Zq,{ref:o,value:V,onChange:H,onKeyDown:K,disabled:O,readOnly:j,maxLength:y,className:$(tG[B],x&&nG[x],aG[C],Q&&"pr-8",D),style:{...W,...A},...z}),Q&&m.jsx("button",{type:"button",onClick:Z,"aria-label":"Clear input",tabIndex:-1,className:"absolute right-2 top-2 inline-flex items-center justify-center rounded-sm p-0.5 hover:bg-muted",children:G})]}),(q||h)&&m.jsx("div",{className:"mt-1 flex justify-end",children:q})]})});N3.displayName="TextArea";const lG={small:"h-7 text-xs",middle:"h-8 text-sm",large:"h-10 text-base"},rG={small:"h-7",middle:"h-8",large:"h-10"},sG={small:"sm",middle:"default",large:"lg"},iG={error:"border-destructive focus-within:border-destructive focus-within:ring-destructive/20",warning:"border-warning focus-within:border-warning focus-within:ring-warning/20"},cG={outlined:"",borderless:"border-0 shadow-none focus-within:ring-0",filled:"border-transparent bg-muted focus-within:border-ring",underlined:"border-0 border-b rounded-none focus-within:ring-0 focus-within:border-ring"},T3=S.forwardRef((n,o)=>{const{value:s,defaultValue:i,onChange:d,size:f,prefix:h,suffix:y,status:v,variant:x="outlined",disabled:C=!1,readOnly:w=!1,placeholder:N,onPressEnter:R,enterButton:O,loading:j=!1,onSearch:D,className:A,...z}=n,B=Ws(f),[U,L]=S.useState(i??""),k=s!==void 0,V=k?s:U,H=W=>{k||L(W.target.value),d?.(W)},K=W=>{D?.(String(V??""),W)},Z=W=>{W.key==="Enter"&&(R?.(W),K(W)),z.onKeyDown?.(W)},Q=O!==void 0&&O!==!1,G=()=>{if(!Q)return null;const W=j?m.jsx(Zs,{className:"size-4 animate-spin"}):O===!0?m.jsx(wO,{className:"size-4"}):O;return m.jsx(pf,{type:"button",size:sG[B],disabled:C||j,onClick:K,className:"rounded-l-none border-l-0",children:W})},q=Q?null:j?m.jsx(Zs,{className:"size-4 animate-spin text-muted-foreground"}):m.jsx("button",{type:"button",onClick:K,disabled:C,tabIndex:-1,"aria-label":"Search",className:"inline-flex items-center text-muted-foreground hover:text-foreground",children:m.jsx(wO,{className:"size-4"})});return m.jsxs("div",{className:"flex items-stretch",children:[m.jsxs(YT,{className:$(rG[B],v&&iG[v],cG[x],Q&&"rounded-r-none",A),children:[h&&m.jsx(uy,{align:"inline-start",children:m.jsx(dy,{children:h})}),m.jsx(qT,{ref:o,value:V,onChange:H,onKeyDown:Z,disabled:C,readOnly:w,placeholder:N,className:$(lG[B],"border-0 ring-0 focus-visible:ring-0"),...z}),(q||y)&&m.jsxs(uy,{align:"inline-end",children:[y&&m.jsx(dy,{children:y}),q]})]}),G()]})});T3.displayName="Search";const uG={small:"h-7 w-7 text-xs",middle:"h-9 w-9 text-sm",large:"h-11 w-11 text-base"},dG={error:"border-destructive focus-visible:border-destructive focus-visible:ring-destructive/20",warning:"border-warning focus-visible:border-warning focus-visible:ring-warning/20"},M3=S.forwardRef((n,o)=>{const{length:s=6,value:i,defaultValue:d,onChange:f,mask:h,size:y,status:v,disabled:x=!1,autoFocus:C=!1,className:w,...N}=n,R=Ws(y),O=S.useRef([]),[j,D]=S.useState(()=>(d??"").padEnd(s,"").slice(0,s)),A=i!==void 0,B=(A?(i??"").padEnd(s,"").slice(0,s):j).split(""),U=G=>{const q=G.padEnd(s,"").slice(0,s);A||D(q),f?.(q.trimEnd())},L=G=>{const q=Math.max(0,Math.min(G,s-1));O.current[q]?.focus(),O.current[q]?.select()};S.useEffect(()=>{C&&L(0)},[]);const k=(G,q)=>{const te=q.currentTarget.value;if(te.length===0)return;if(te.length>1){const P=[...B],F=te.slice(0,s-G);for(let ee=0;ee<F.length;ee++)P[G+ee]=F[ee];U(P.join("")),L(Math.min(G+F.length,s-1));return}const Y=[...B];Y[G]=te,U(Y.join("")),G<s-1&&L(G+1)},V=(G,q)=>{if(q.key==="Backspace"){q.preventDefault();const W=[...B];B[G]&&B[G]!==" "?(W[G]=" ",U(W.join(""))):G>0&&(W[G-1]=" ",U(W.join("")),L(G-1))}else if(q.key==="ArrowLeft")q.preventDefault(),L(G-1);else if(q.key==="ArrowRight")q.preventDefault(),L(G+1);else if(q.key==="Delete"){q.preventDefault();const W=[...B];W[G]=" ",U(W.join(""))}},H=(G,q)=>{q.preventDefault();const W=q.clipboardData.getData("text/plain").replace(/\s/g,"");if(!W)return;const te=[...B],Y=W.slice(0,s-G);for(let P=0;P<Y.length;P++)te[G+P]=Y[P];U(te.join("")),L(Math.min(G+Y.length,s-1))},K=G=>{G.currentTarget.select()},Q=h===!0?"•":typeof h=="string"?h:null;return m.jsx("div",{ref:o,"data-slot":"input-otp",className:$("inline-flex items-center gap-2",w),role:"group","aria-label":"One-time password input",children:Array.from({length:s},(G,q)=>{const W=B[q]??"",te=Q&&W.trim()?Q:W.trim()?W:"";return m.jsx(IT,{ref:Y=>{O.current[q]=Y},type:"text",inputMode:"numeric",autoComplete:"one-time-code",pattern:"[0-9]*",maxLength:s,value:te,disabled:x,"aria-label":`Digit ${q+1} of ${s}`,className:$(uG[R],"text-center font-mono","p-0",v&&dG[v]),onInput:Y=>k(q,Y),onKeyDown:Y=>V(q,Y),onPaste:Y=>H(q,Y),onFocus:K,...N},q)})})});M3.displayName="OTP";const gx=C3;gx.Password=E3;gx.TextArea=N3;gx.Search=T3;gx.OTP=M3;const GT=S.createContext(null);process.env.NODE_ENV!=="production"&&(GT.displayName="SelectRootContext");const XT=S.createContext(null);process.env.NODE_ENV!=="production"&&(XT.displayName="SelectFloatingContext");function Ji(){const n=S.useContext(GT);if(n===null)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.":Nn(60));return n}function R3(){const n=S.useContext(XT);if(n===null)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.":Nn(61));return n}const fG=(n,o)=>Object.is(n,o);function fy(n,o,s){return n==null||o==null?Object.is(n,o):s(n,o)}function mG(n,o,s){return!n||n.length===0?!1:n.some(i=>i===void 0?!1:fy(o,i,s))}function Lv(n,o,s){return!n||n.length===0?-1:n.findIndex(i=>i===void 0?!1:fy(i,o,s))}function pG(n,o,s){return n.filter(i=>!fy(o,i,s))}function Lw(n){if(n==null)return"";if(typeof n=="string")return n;try{return JSON.stringify(n)}catch{return String(n)}}function O3(n){return n!=null&&n.length>0&&typeof n[0]=="object"&&n[0]!=null&&"items"in n[0]}function hG(n){if(!Array.isArray(n))return n!=null&&!("null"in n);if(O3(n)){for(const o of n)for(const s of o.items)if(s&&s.value==null&&s.label!=null)return!0;return!1}for(const o of n)if(o&&o.value==null&&o.label!=null)return!0;return!1}function gG(n,o){if(o&&n!=null)return o(n)??"";if(n&&typeof n=="object"){if("label"in n&&n.label!=null)return String(n.label);if("value"in n)return String(n.value)}return Lw(n)}function Kg(n,o){return o&&n!=null?o(n)??"":n&&typeof n=="object"&&"value"in n&&"label"in n?Lw(n.value):Lw(n)}function j3(n,o,s){function i(){return gG(n,s)}if(s&&n!=null)return s(n);if(n&&typeof n=="object"&&"label"in n&&n.label!=null)return n.label;if(o&&!Array.isArray(o))return o[n]??i();if(Array.isArray(o)){const d=O3(o)?o.flatMap(f=>f.items):o;if(n==null||typeof n!="object"){const f=d.find(h=>h.value===n);return f&&f.label!=null?f.label:i()}if("value"in n){const f=d.find(h=>h&&h.value===n.value);if(f&&f.label!=null)return f.label}}return i()}function yG(n,o,s){return n.reduce((i,d,f)=>(f>0&&i.push(", "),i.push(m.jsx(S.Fragment,{children:j3(d,o,s)},f)),i),[])}const Nt={id:Ze(n=>n.id),modal:Ze(n=>n.modal),multiple:Ze(n=>n.multiple),items:Ze(n=>n.items),itemToStringLabel:Ze(n=>n.itemToStringLabel),itemToStringValue:Ze(n=>n.itemToStringValue),isItemEqualToValue:Ze(n=>n.isItemEqualToValue),value:Ze(n=>n.value),hasSelectedValue:Ze(n=>{const{value:o,multiple:s,itemToStringValue:i}=n;return o==null?!1:s&&Array.isArray(o)?o.length>0:Kg(o,i)!==""}),hasNullItemLabel:Ze((n,o)=>o?hG(n.items):!1),open:Ze(n=>n.open),mounted:Ze(n=>n.mounted),forceMount:Ze(n=>n.forceMount),transitionStatus:Ze(n=>n.transitionStatus),openMethod:Ze(n=>n.openMethod),activeIndex:Ze(n=>n.activeIndex),selectedIndex:Ze(n=>n.selectedIndex),isActive:Ze((n,o)=>n.activeIndex===o),isSelected:Ze((n,o,s)=>{const i=n.isItemEqualToValue,d=n.value;return n.multiple?Array.isArray(d)&&d.some(f=>fy(s,f,i)):n.selectedIndex===o&&n.selectedIndex!==null?!0:fy(s,d,i)}),isSelectedByFocus:Ze((n,o)=>n.selectedIndex===o),popupProps:Ze(n=>n.popupProps),triggerProps:Ze(n=>n.triggerProps),triggerElement:Ze(n=>n.triggerElement),positionerElement:Ze(n=>n.positionerElement),listElement:Ze(n=>n.listElement),scrollUpArrowVisible:Ze(n=>n.scrollUpArrowVisible),scrollDownArrowVisible:Ze(n=>n.scrollDownArrowVisible),hasScrollArrows:Ze(n=>n.hasScrollArrows)};function EC(n,o){const s=S.useRef(n),i=Ke(o);Fe(()=>{s.current!==n&&i(s.current)},[n,i]),Fe(()=>{s.current=n},[n])}function bG(n){const{id:o,value:s,defaultValue:i=null,onValueChange:d,open:f,defaultOpen:h=!1,onOpenChange:y,name:v,autoComplete:x,disabled:C=!1,readOnly:w=!1,required:N=!1,modal:R=!0,actionsRef:O,inputRef:j,onOpenChangeComplete:D,items:A,multiple:z=!1,itemToStringLabel:B,itemToStringValue:U,isItemEqualToValue:L=fG,highlightItemOnHover:k=!0,children:V}=n,{clearErrors:H}=mx(),{setDirty:K,setTouched:Z,setFocused:Q,shouldValidateOnChange:G,validityData:q,setFilled:W,name:te,disabled:Y,validation:P,validationMode:F}=Su(),ee=px({id:o}),oe=Y||C,we=te??v,[se,Ce]=yp({controlled:s,default:z?i??sf:i,name:"Select",state:"value"}),[re,he]=yp({controlled:f,default:h,name:"Select",state:"open"}),le=S.useRef([]),Se=S.useRef([]),ze=S.useRef(null),je=S.useRef(null),ve=S.useRef(0),fe=S.useRef(null),ce=S.useRef([]),ae=S.useRef(!1),ue=S.useRef(!1),be=S.useRef(null),ie=S.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),Oe=S.useRef(!1),{mounted:de,setMounted:Me,transitionStatus:Re}=xu(re),{openMethod:De,triggerProps:Ie,reset:We}=xC(re),$e=Qa(()=>new qA({id:ee,modal:R,multiple:z,itemToStringLabel:B,itemToStringValue:U,isItemEqualToValue:L,value:se,open:re,mounted:de,transitionStatus:Re,items:A,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,st=jt($e,Nt.activeIndex),nn=jt($e,Nt.selectedIndex),ln=jt($e,Nt.triggerElement),Tt=jt($e,Nt.positionerElement),Lt=S.useMemo(()=>z&&Array.isArray(se)&&se.length===0?"":Kg(se,U),[z,se,U]),Kt=S.useMemo(()=>z&&Array.isArray(se)?se.map(Rt=>Kg(Rt,U)):Kg(se,U),[z,se,U]),Ft=ho($e.state.triggerElement);hx({id:ee,commit:P.commit,value:se,controlRef:Ft,name:we,getValue:()=>Kt});const ya=S.useRef(se);Fe(()=>{se!==ya.current&&$e.set("forceMount",!0)},[$e,se]),Fe(()=>{W(z?Array.isArray(se)&&se.length>0:se!=null)},[z,se,W]),Fe(function(){if(re)return;const pn=ce.current;if(z){const Tn=Array.isArray(se)?se:[];if(Tn.length===0){$e.set("selectedIndex",null);return}const qn=Tn[Tn.length-1],Sr=Lv(pn,qn,L);$e.set("selectedIndex",Sr===-1?null:Sr);return}const Hn=Lv(pn,se,L);$e.set("selectedIndex",Hn===-1?null:Hn)},[z,re,se,ce,L,$e]),EC(se,()=>{H(we),K(se!==q.initialValue),G()?P.commit(se):P.commit(se,!0)});const Wn=Ke((Rt,pn)=>{if(y?.(Rt,pn),!pn.isCanceled&&(he(Rt),!Rt&&(pn.reason===Zi||pn.reason===tC)&&(Z(!0),Q(!1),F==="onBlur"&&P.commit(se)),!Rt&&$e.state.activeIndex!==null)){const Hn=le.current[$e.state.activeIndex];queueMicrotask(()=>{Hn?.setAttribute("tabindex","-1")})}}),ct=Ke(()=>{Me(!1),$e.set("activeIndex",null),We(),D?.(!1)});Ll({enabled:!O,open:re,ref:ze,onComplete(){re||ct()}}),S.useImperativeHandle(O,()=>({unmount:ct}),[ct]);const ot=Ke((Rt,pn)=>{d?.(Rt,pn),!pn.isCanceled&&Ce(Rt)}),xt=Ke(()=>{const Rt=$e.state.listElement||ze.current;if(!Rt)return;const pn=Rt.scrollTop,Hn=Rt.scrollTop+Rt.clientHeight,Tn=pn>1,qn=Hn<Rt.scrollHeight-1;$e.state.scrollUpArrowVisible!==Tn&&$e.set("scrollUpArrowVisible",Tn),$e.state.scrollDownArrowVisible!==qn&&$e.set("scrollDownArrowVisible",qn)}),Mt=GA({open:re,onOpenChange:Wn,elements:{reference:ln,floating:Tt}}),mn=tT(Mt,{enabled:!w&&!oe,event:"mousedown"}),at=lx(Mt,{bubbles:!1}),lt=$A(Mt,{enabled:!w&&!oe,listRef:le,activeIndex:st,selectedIndex:nn,disabledIndices:sf,onNavigate(Rt){Rt===null&&!re||$e.set("activeIndex",Rt)},focusItemOnHover:!1}),tt=QA(Mt,{enabled:!w&&!oe&&(re||!z),listRef:Se,activeIndex:st,selectedIndex:nn,onMatch(Rt){re?$e.set("activeIndex",Rt):ot(ce.current[Rt],vt("none"))},onTypingChange(Rt){ae.current=Rt}}),{getReferenceProps:ht,getFloatingProps:Yt,getItemProps:it}=Cp([mn,at,lt,tt]),oa=S.useMemo(()=>$i(ht(),Ie,ee?{id:ee}:Fn),[ht,Ie,ee]);ix(()=>{$e.update({popupProps:Yt(),triggerProps:oa})}),Fe(()=>{$e.update({id:ee,modal:R,multiple:z,value:se,open:re,mounted:de,transitionStatus:Re,popupProps:Yt(),triggerProps:oa,items:A,itemToStringLabel:B,itemToStringValue:U,isItemEqualToValue:L,openMethod:De})},[$e,ee,R,z,se,re,de,Re,Yt,oa,A,B,U,L,De]);const yo=S.useMemo(()=>({store:$e,name:we,required:N,disabled:oe,readOnly:w,multiple:z,itemToStringLabel:B,itemToStringValue:U,highlightItemOnHover:k,setValue:ot,setOpen:Wn,listRef:le,popupRef:ze,scrollHandlerRef:je,handleScrollArrowVisibility:xt,scrollArrowsMountedCountRef:ve,getItemProps:it,events:Mt.context.events,valueRef:fe,valuesRef:ce,labelsRef:Se,typingRef:ae,selectionRef:ie,selectedItemTextRef:be,validation:P,onOpenChangeComplete:D,keyboardActiveRef:ue,alignItemWithTriggerActiveRef:Oe,initialValueRef:ya}),[$e,we,N,oe,w,z,B,U,k,ot,Wn,it,Mt.context.events,P,D,xt]),oo=ps(j,P.inputRef),bo=z&&Array.isArray(se)&&se.length>0,lo=S.useMemo(()=>!z||!Array.isArray(se)||!we?null:se.map(Rt=>{const pn=Kg(Rt,U);return m.jsx("input",{type:"hidden",name:we,value:pn},pn)}),[z,se,we,U]);return m.jsx(GT.Provider,{value:yo,children:m.jsxs(XT.Provider,{value:Mt,children:[V,m.jsx("input",{...P.getInputValidationProps({onFocus(){$e.state.triggerElement?.focus({focusVisible:!0})},onChange(Rt){if(Rt.nativeEvent.defaultPrevented)return;const pn=Rt.target.value,Hn=vt(hs,Rt.nativeEvent);function Tn(){if(z)return;const qn=ce.current.find(Sr=>Kg(Sr,U).toLowerCase()===pn.toLowerCase());qn!=null&&(K(qn!==q.initialValue),ot(qn,Hn),G()&&P.commit(qn))}$e.set("forceMount",!0),queueMicrotask(Tn)}}),name:z?void 0:we,autoComplete:x,value:Lt,disabled:oe,required:N&&!bo,readOnly:w,ref:oo,style:we?cC:vy,tabIndex:-1,"aria-hidden":!0}),lo]})})}const rw=2,vG=400,tD=200,xG={...zw,...Ep,value:()=>null},D3=S.forwardRef(function(o,s){const{render:i,className:d,id:f,disabled:h=!1,nativeButton:y=!0,...v}=o,{setTouched:x,setFocused:C,validationMode:w,state:N,disabled:R}=Su(),{labelId:O}=Np(),{store:j,setOpen:D,selectionRef:A,validation:z,readOnly:B,required:U,alignItemWithTriggerActiveRef:L,disabled:k,keyboardActiveRef:V}=Ji(),H=R||k||h,K=jt(j,Nt.open),Z=jt(j,Nt.value),Q=jt(j,Nt.triggerProps),G=jt(j,Nt.positionerElement),q=jt(j,Nt.listElement),W=jt(j,Nt.id),te=jt(j,Nt.hasSelectedValue),Y=!te&&K,P=jt(j,Nt.hasNullItemLabel,Y),F=f??W;px({id:F});const ee=ho(G),oe=S.useRef(null),{getButtonProps:we,buttonRef:se}=Fs({disabled:H,native:y}),Ce=Ke(ce=>{j.set("triggerElement",ce)}),re=ps(s,oe,se,Ce),he=$a(),le=$a(),Se=$a(),ze=$a();S.useEffect(()=>{if(K)return!(te||P)?Se.start(vG,()=>{A.current.allowUnselectedMouseUp=!0,A.current.allowSelectedMouseUp=!0}):ze.start(tD,()=>{A.current.allowUnselectedMouseUp=!0,Se.start(tD,()=>{A.current.allowSelectedMouseUp=!0})}),()=>{Se.clear(),ze.clear()};A.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},le.clear()},[K,te,P,A,le,Se,ze]);const je=S.useMemo(()=>q?.id??Yv(G)?.id,[q,G]),ve=$i(Q,{id:F,role:"combobox","aria-expanded":K?"true":"false","aria-haspopup":"listbox","aria-controls":K?je:void 0,"aria-labelledby":O,"aria-readonly":B||void 0,"aria-required":U||void 0,tabIndex:H?-1:0,ref:re,onFocus(ce){C(!0),K&&L.current&&D(!1,vt(hs,ce.nativeEvent)),he.start(0,()=>{j.set("forceMount",!0)})},onBlur(ce){Ut(G,ce.relatedTarget)||(x(!0),C(!1),w==="onBlur"&&z.commit(Z))},onPointerMove(){V.current=!1},onKeyDown(){V.current=!0},onMouseDown(ce){if(K)return;const ae=sn(ce.currentTarget);function ue(be){if(!oe.current)return;const ie=be.target;if(Ut(oe.current,ie)||Ut(ee.current,ie)||ie===oe.current)return;const Oe=lz(oe.current);be.clientX>=Oe.left-rw&&be.clientX<=Oe.right+rw&&be.clientY>=Oe.top-rw&&be.clientY<=Oe.bottom+rw||D(!1,vt(Ak,be))}le.start(0,()=>{ae.addEventListener("mouseup",ue,{once:!0})})}},z.getValidationProps,v,we);ve.role="combobox";const fe={...N,open:K,disabled:H,value:Z,readOnly:B,placeholder:!te};return zt("button",o,{ref:[s,oe],state:fe,stateAttributesMapping:xG,props:ve})});process.env.NODE_ENV!=="production"&&(D3.displayName="SelectTrigger");const SG={value:()=>null},k3=S.forwardRef(function(o,s){const{className:i,render:d,children:f,placeholder:h,...y}=o,{store:v,valueRef:x}=Ji(),C=jt(v,Nt.value),w=jt(v,Nt.items),N=jt(v,Nt.itemToStringLabel),R=jt(v,Nt.hasSelectedValue),O=!R&&h!=null&&f==null,j=jt(v,Nt.hasNullItemLabel,O),D={value:C,placeholder:!R};let A=null;return typeof f=="function"?A=f(C):f!=null?A=f:!R&&h!=null&&!j?A=h:Array.isArray(C)?A=yG(C,w,N):A=j3(C,w,N),zt("span",o,{state:D,ref:[s,x],props:[{children:A},y],stateAttributesMapping:SG})});process.env.NODE_ENV!=="production"&&(k3.displayName="SelectValue");const A3=S.forwardRef(function(o,s){const{className:i,render:d,...f}=o,{store:h}=Ji(),v={open:jt(h,Nt.open)};return zt("span",o,{state:v,ref:s,props:[{"aria-hidden":!0,children:"▼"},f],stateAttributesMapping:PN})});process.env.NODE_ENV!=="production"&&(A3.displayName="SelectIcon");const z3=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(z3.displayName="SelectPortalContext");const _3=S.forwardRef(function(o,s){const{store:i}=Ji(),d=jt(i,Nt.mounted),f=jt(i,Nt.forceMount);return d||f?m.jsx(z3.Provider,{value:!0,children:m.jsx(ox,{ref:s,...o})}):null});process.env.NODE_ENV!=="production"&&(_3.displayName="SelectPortal");const PT=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(PT.displayName="SelectPositionerContext");function $T(){const n=S.useContext(PT);if(!n)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.":Nn(59));return n}function Vw(n,o){n&&Object.assign(n.style,o)}const U3={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},wG={position:"fixed"},B3=S.forwardRef(function(o,s){const{anchor:i,positionMethod:d="absolute",className:f,render:h,side:y="bottom",align:v="center",sideOffset:x=0,alignOffset:C=0,collisionBoundary:w="clipping-ancestors",collisionPadding:N,arrowPadding:R=5,sticky:O=!1,disableAnchorTracking:j,alignItemWithTrigger:D=!0,collisionAvoidance:A=YD,...z}=o,{store:B,listRef:U,labelsRef:L,alignItemWithTriggerActiveRef:k,selectedItemTextRef:V,valuesRef:H,initialValueRef:K,popupRef:Z,setValue:Q}=Ji(),G=R3(),q=jt(B,Nt.open),W=jt(B,Nt.mounted),te=jt(B,Nt.modal),Y=jt(B,Nt.value),P=jt(B,Nt.openMethod),F=jt(B,Nt.positionerElement),ee=jt(B,Nt.triggerElement),oe=jt(B,Nt.isItemEqualToValue),we=jt(B,Nt.transitionStatus),se=S.useRef(null),Ce=S.useRef(null),[re,he]=S.useState(D),le=W&&re&&P!=="touch";!W&&re!==D&&he(D),Fe(()=>{W||(Nt.scrollUpArrowVisible(B.state)&&B.set("scrollUpArrowVisible",!1),Nt.scrollDownArrowVisible(B.state)&&B.set("scrollDownArrowVisible",!1))},[B,W]),S.useImperativeHandle(k,()=>le),vC((le||te)&&q&&P!=="touch",ee);const Se=bC({anchor:i,floatingRootContext:G,positionMethod:d,mounted:W,side:y,sideOffset:x,align:v,alignOffset:C,arrowPadding:R,collisionBoundary:w,collisionPadding:N,sticky:O,disableAnchorTracking:j??le,collisionAvoidance:A,keepMounted:!0}),ze=le?"none":Se.side,je=le?wG:Se.positionerStyles,ve=S.useMemo(()=>{const Oe={};return q||(Oe.pointerEvents="none"),{role:"presentation",hidden:!W,style:{...je,...Oe}}},[q,W,je]),fe={open:q,side:ze,align:Se.align,anchorHidden:Se.anchorHidden},ce=Ke(Oe=>{B.set("positionerElement",Oe)}),ae=zt("div",o,{ref:[s,ce],state:fe,stateAttributesMapping:Js,props:[ve,yf(we),z]}),ue=S.useRef(0),be=Ke(Oe=>{if(Oe.size===0&&ue.current===0||H.current.length===0)return;const de=ue.current;if(ue.current=Oe.size,Oe.size===de)return;const Me=vt(hs);if(de!==0&&!B.state.multiple&&Y!==null&&Lv(H.current,Y,oe)===-1){const De=K.current,We=De!=null&&Lv(H.current,De,oe)!==-1?De:null;Q(We,Me),We===null&&(B.set("selectedIndex",null),V.current=null)}if(de!==0&&B.state.multiple&&Array.isArray(Y)){const Re=Ie=>Lv(H.current,Ie,oe)!==-1,De=Y.filter(Ie=>Re(Ie));(De.length!==Y.length||De.some(Ie=>!mG(Y,Ie,oe)))&&(Q(De,Me),De.length===0&&(B.set("selectedIndex",null),V.current=null))}if(q&&le){B.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const Re={height:""};Vw(F,Re),Vw(Z.current,Re)}}),ie=S.useMemo(()=>({...Se,side:ze,alignItemWithTriggerActive:le,setControlledAlignItemWithTrigger:he,scrollUpArrowRef:se,scrollDownArrowRef:Ce}),[Se,ze,le,he]);return m.jsx(Ww,{elementsRef:U,labelsRef:L,onMapChange:be,children:m.jsxs(PT.Provider,{value:ie,children:[W&&te&&m.jsx(sx,{inert:tx(!q),cutout:ee}),ae]})})});process.env.NODE_ENV!=="production"&&(B3.displayName="SelectPositioner");function L3(n){const o=n.currentTarget.getBoundingClientRect();return o.top+1<=n.clientY&&n.clientY<=o.bottom-1&&o.left+1<=n.clientX&&n.clientX<=o.right-1}const sw="base-ui-disable-scrollbar",Hw={className:sw,getElement(n){return m.jsx("style",{nonce:n,href:sw,precedence:"base-ui:low",children:`.${sw}{scrollbar-width:none}.${sw}::-webkit-scrollbar{display:none}`})}};process.env.NODE_ENV!=="production"&&(Hw.getElement.displayName="styleDisableScrollbar.getElement");function D2(n,o=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER){return Math.max(o,Math.min(n,s))}const rp=1,CG={...Js,...gs},V3=S.forwardRef(function(o,s){const{render:i,className:d,finalFocus:f,...h}=o,{store:y,popupRef:v,onOpenChangeComplete:x,setOpen:C,valueRef:w,selectedItemTextRef:N,keyboardActiveRef:R,multiple:O,handleScrollArrowVisibility:j,scrollHandlerRef:D,highlightItemOnHover:A}=Ji(),{side:z,align:B,alignItemWithTriggerActive:U,setControlledAlignItemWithTrigger:L,scrollDownArrowRef:k,scrollUpArrowRef:V}=$T(),H=fT()!=null,K=R3(),{nonce:Z,disableStyleElements:Q}=rL(),G=$a(),q=jt(y,Nt.id),W=jt(y,Nt.open),te=jt(y,Nt.mounted),Y=jt(y,Nt.popupProps),P=jt(y,Nt.transitionStatus),F=jt(y,Nt.triggerElement),ee=jt(y,Nt.positionerElement),oe=jt(y,Nt.listElement),we=S.useRef(0),se=S.useRef(!1),Ce=S.useRef(0),re=S.useRef(!1),he=S.useRef({}),le=rC(),Se=Ke(fe=>{if(!ee||!v.current||!re.current)return;if(se.current||!U){j();return}const ce=ee.style.top==="0px",ae=ee.style.bottom==="0px",ue=ee.getBoundingClientRect().height,be=sn(ee),ie=getComputedStyle(ee),Oe=parseFloat(ie.marginTop),de=parseFloat(ie.marginBottom),Me=nD(getComputedStyle(v.current)),Re=Math.min(be.documentElement.clientHeight-Oe-de,Me),De=fe.scrollTop,Ie=aD(fe);let We=0,$e=null,st=!1,nn=!1;const ln=Lt=>{ee.style.height=`${Lt}px`},Tt=(Lt,Kt)=>{const Ft=D2(Lt,0,Re-ue);Ft>0&&ln(ue+Ft),fe.scrollTop=Kt,Re-(ue+Ft)<=rp&&(se.current=!0),j()};if(ce){const Lt=Ie-De,Kt=ue+Lt,Ft=Math.min(Kt,Re);if(We=Ft,Lt<=rp){Tt(Lt,Ie);return}Re-Ft>rp?nn=!0:st=!0}else if(ae){const Lt=De,Kt=ue+Lt,Ft=Math.min(Kt,Re),ya=Kt-Re;if(We=Ft,Lt<=rp){Tt(Lt,0);return}Re-Ft>rp?$e=0:(st=!0,De<Ie&&($e=De-(Lt-ya)))}if(We=Math.ceil(We),We!==0&&ln(We),nn||$e!=null){const Lt=aD(fe),Kt=nn?Lt:D2($e,0,Lt);Math.abs(fe.scrollTop-Kt)>rp&&(fe.scrollTop=Kt)}(st||We>=Re-rp)&&(se.current=!0),j()});S.useImperativeHandle(D,()=>Se,[Se]),Ll({open:W,ref:v,onComplete(){W&&x?.(!0)}});const ze={open:W,transitionStatus:P,side:z,align:B};Fe(()=>{!ee||!v.current||Object.keys(he.current).length||(he.current={top:ee.style.top||"0",left:ee.style.left||"0",right:ee.style.right,height:ee.style.height,bottom:ee.style.bottom,minHeight:ee.style.minHeight,maxHeight:ee.style.maxHeight,marginTop:ee.style.marginTop,marginBottom:ee.style.marginBottom})},[v,ee]),Fe(()=>{W||U||(re.current=!1,se.current=!1,we.current=0,Ce.current=0,Vw(ee,he.current))},[W,U,ee,v]),Fe(()=>{const fe=v.current;if(!(!W||!F||!ee||!fe||y.state.transitionStatus==="ending")){if(!U){re.current=!0,le.request(j),fe.style.removeProperty("--transform-origin");return}queueMicrotask(()=>{const ce=EG(fe);fe.style.removeProperty("--transform-origin");try{const ae=getComputedStyle(ee),ue=getComputedStyle(fe),be=sn(F),ie=wa(ee),Oe=F.getBoundingClientRect(),de=ee.getBoundingClientRect(),Me=Oe.left,Re=Oe.height,De=oe||fe,Ie=De.scrollHeight,We=parseFloat(ue.borderBottomWidth),$e=parseFloat(ae.marginTop)||10,st=parseFloat(ae.marginBottom)||10,nn=parseFloat(ae.minHeight)||100,ln=nD(ue),Tt=5,Lt=5,Kt=20,Ft=be.documentElement.clientHeight-$e-st,ya=be.documentElement.clientWidth,Wn=Ft-Oe.bottom+Re,ct=N.current,ot=w.current;let xt,Mt=0,mn=0;if(ct&&ot){const Rt=ot.getBoundingClientRect();xt=ct.getBoundingClientRect();const pn=Rt.left-Me,Hn=xt.left-de.left,Tn=Rt.top-Oe.top+Rt.height/2,qn=xt.top-de.top+xt.height/2;Mt=pn-Hn,mn=qn-Tn}const at=Wn+mn+st+We;let lt=Math.min(Ft,at);const tt=Ft-$e-st,ht=at-lt,Yt=Math.max(Tt,Me+Mt),it=ya-Lt,oa=Math.max(0,Yt+de.width-it);ee.style.left=`${Yt-oa}px`,ee.style.height=`${lt}px`,ee.style.maxHeight="auto",ee.style.marginTop=`${$e}px`,ee.style.marginBottom=`${st}px`,fe.style.height="100%";const yo=De.scrollHeight-De.clientHeight,oo=ht>=yo;oo&&(lt=Math.min(Ft,de.height)-(ht-yo));const bo=Oe.top<Kt||Oe.bottom>Ft-Kt||lt<Math.min(Ie,nn),lo=(ie.visualViewport?.scale??1)!==1&&VN;if(bo||lo){re.current=!0,Vw(ee,he.current),Bl.flushSync(()=>L(!1));return}if(oo){const Rt=Math.max(0,Ft-at);ee.style.top=de.height>=tt?"0":`${Rt}px`,ee.style.height=`${lt}px`,De.scrollTop=De.scrollHeight-De.clientHeight,we.current=Math.max(nn,lt)}else ee.style.bottom="0",we.current=Math.max(nn,lt),De.scrollTop=ht;if(xt){const Rt=de.top,pn=de.height,Hn=xt.top+xt.height/2,Tn=pn>0?(Hn-Rt)/pn*100:50,qn=D2(Tn,0,100);fe.style.setProperty("--transform-origin",`50% ${qn}%`)}(we.current===Ft||lt>=ln)&&(se.current=!0),j(),setTimeout(()=>{re.current=!0})}finally{ce()}})}},[y,W,ee,F,w,N,v,j,U,L,le,k,V,oe]),S.useEffect(()=>{if(!U||!ee||!W)return;const fe=wa(ee);function ce(ae){C(!1,vt(NB,ae))}return fe.addEventListener("resize",ce),()=>{fe.removeEventListener("resize",ce)}},[C,U,ee,W]);const je={...oe?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":O||void 0,id:`${q}-list`},onKeyDown(fe){R.current=!0,H&&sC.has(fe.key)&&fe.stopPropagation()},onMouseMove(){R.current=!1},onPointerLeave(fe){if(!A||L3(fe)||fe.pointerType==="touch")return;const ce=fe.currentTarget;G.start(0,()=>{y.set("activeIndex",null),ce.focus({preventScroll:!0})})},onScroll(fe){oe||Se(fe.currentTarget)},...U&&{style:oe?{height:"100%"}:U3}},ve=zt("div",o,{ref:[s,v],state:ze,stateAttributesMapping:CG,props:[Y,je,yf(P),{className:!oe&&U?Hw.className:void 0},h]});return m.jsxs(S.Fragment,{children:[!Q&&Hw.getElement(Z),m.jsx(uC,{context:K,modal:!1,disabled:!te,returnFocus:f,restoreFocus:!0,children:ve})]})});process.env.NODE_ENV!=="production"&&(V3.displayName="SelectPopup");function nD(n){const o=n.maxHeight||"";return o.endsWith("px")&&parseFloat(o)||1/0}function aD(n){return Math.max(0,n.scrollHeight-n.clientHeight)}const oD=[["transform","none"],["scale","1"],["translate","0 0"]];function EG(n){const{style:o}=n,s={};for(const[i,d]of oD)s[i]=o.getPropertyValue(i),o.setProperty(i,d,"important");return()=>{for(const[i]of oD){const d=s[i];d?o.setProperty(i,d):o.removeProperty(i)}}}const H3=S.forwardRef(function(o,s){const{className:i,render:d,...f}=o,{store:h,scrollHandlerRef:y}=Ji(),{alignItemWithTriggerActive:v}=$T(),x=jt(h,Nt.hasScrollArrows),C=jt(h,Nt.openMethod),w=jt(h,Nt.multiple),R={id:`${jt(h,Nt.id)}-list`,role:"listbox","aria-multiselectable":w||void 0,onScroll(j){y.current?.(j.currentTarget)},...v&&{style:U3},className:x&&C!=="touch"?Hw.className:void 0},O=Ke(j=>{h.set("listElement",j)});return zt("div",o,{ref:[s,O],props:[R,f]})});process.env.NODE_ENV!=="production"&&(H3.displayName="SelectList");const QT=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(QT.displayName="SelectItemContext");function ZT(){const n=S.useContext(QT);if(!n)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.":Nn(57));return n}const I3=S.memo(S.forwardRef(function(o,s){const{render:i,className:d,value:f=null,label:h,disabled:y=!1,nativeButton:v=!1,...x}=o,C=S.useRef(null),w=eC({label:h,textRef:C,indexGuessBehavior:Dk.GuessFromOrder}),{store:N,getItemProps:R,setOpen:O,setValue:j,selectionRef:D,typingRef:A,valuesRef:z,keyboardActiveRef:B,multiple:U,highlightItemOnHover:L}=Ji(),k=$a(),V=jt(N,Nt.isActive,w.index),H=jt(N,Nt.isSelected,w.index,f),K=jt(N,Nt.isSelectedByFocus,w.index),Z=jt(N,Nt.isItemEqualToValue),Q=w.index,G=Q!==-1,q=S.useRef(null),W=ho(Q);Fe(()=>{if(!G)return;const le=z.current;return le[Q]=f,()=>{delete le[Q]}},[G,Q,f,z]),Fe(()=>{if(!G)return;const le=N.state.value;let Se=le;U&&Array.isArray(le)&&le.length>0&&(Se=le[le.length-1]),Se!==void 0&&fy(f,Se,Z)&&N.set("selectedIndex",Q)},[G,Q,U,Z,N,f]);const te={disabled:y,selected:H,highlighted:V},Y=R({active:V,selected:H});Y.onFocus=void 0,Y.id=void 0;const P=S.useRef(null),F=S.useRef("mouse"),ee=S.useRef(!1),{getButtonProps:oe,buttonRef:we}=Fs({disabled:y,focusableWhenDisabled:!0,native:v});function se(le){const Se=N.state.value;if(U){const ze=Array.isArray(Se)?Se:[],je=H?pG(ze,f,Z):[...ze,f];j(je,vt(Uv,le))}else j(f,vt(Uv,le)),O(!1,vt(Uv,le))}const Ce={role:"option","aria-selected":H,tabIndex:V?0:-1,onFocus(){N.set("activeIndex",Q)},onMouseEnter(){!B.current&&N.state.selectedIndex===null&&L&&N.set("activeIndex",Q)},onMouseMove(){L&&N.set("activeIndex",Q)},onMouseLeave(le){!L||B.current||L3(le)||k.start(0,()=>{N.state.activeIndex===Q&&N.set("activeIndex",null)})},onTouchStart(){D.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(le){P.current=le.key,N.set("activeIndex",Q)},onClick(le){ee.current=!1,!(le.type==="keydown"&&P.current===null)&&(y||P.current===" "&&A.current||F.current!=="touch"&&!V||(P.current=null,se(le.nativeEvent)))},onPointerEnter(le){F.current=le.pointerType},onPointerDown(le){F.current=le.pointerType,ee.current=!0},onMouseUp(le){if(y)return;if(ee.current){ee.current=!1;return}const Se=!D.current.allowSelectedMouseUp&&H,ze=!D.current.allowUnselectedMouseUp&&!H;Se||ze||F.current!=="touch"&&!V||se(le.nativeEvent)}},re=zt("div",o,{ref:[we,s,w.ref,q],state:te,props:[Y,Ce,x,oe]}),he=S.useMemo(()=>({selected:H,indexRef:W,textRef:C,selectedByFocus:K,hasRegistered:G}),[H,W,C,K,G]);return m.jsx(QT.Provider,{value:he,children:re})}));process.env.NODE_ENV!=="production"&&(I3.displayName="SelectItem");const Y3=S.forwardRef(function(o,s){const i=o.keepMounted??!1,{selected:d}=ZT();return i||d?m.jsx(q3,{...o,ref:s}):null});process.env.NODE_ENV!=="production"&&(Y3.displayName="SelectItemIndicator");const q3=S.memo(S.forwardRef((n,o)=>{const{render:s,className:i,keepMounted:d,...f}=n,{selected:h}=ZT(),y=S.useRef(null),{transitionStatus:v,setMounted:x}=xu(h),w=zt("span",n,{ref:[o,y],state:{selected:h,transitionStatus:v},props:[{"aria-hidden":!0,children:"✔️"},f],stateAttributesMapping:gs});return Ll({open:h,ref:y,onComplete(){h||x(!1)}}),w}));process.env.NODE_ENV!=="production"&&(q3.displayName="Inner");const G3=S.memo(S.forwardRef(function(o,s){const{indexRef:i,textRef:d,selectedByFocus:f,hasRegistered:h}=ZT(),{selectedItemTextRef:y}=Ji(),{className:v,render:x,...C}=o,w=S.useCallback(R=>{if(!R||!h)return;const O=y.current===null||!y.current.isConnected;(f||O&&i.current===0)&&(y.current=R)},[y,i,f,h]);return zt("div",o,{ref:[w,s,d],props:C})}));process.env.NODE_ENV!=="production"&&(G3.displayName="SelectItemText");const KT=S.forwardRef(function(o,s){const{render:i,className:d,direction:f,keepMounted:h=!1,...y}=o,{store:v,popupRef:x,listRef:C,handleScrollArrowVisibility:w,scrollArrowsMountedCountRef:N}=Ji(),{side:R,scrollDownArrowRef:O,scrollUpArrowRef:j}=$T(),D=f==="up"?Nt.scrollUpArrowVisible:Nt.scrollDownArrowVisible,A=jt(v,D),z=jt(v,Nt.openMethod),B=A&&z!=="touch",U=$a(),L=f==="up"?j:O,{transitionStatus:k,setMounted:V}=xu(B);Fe(()=>(N.current+=1,v.state.hasScrollArrows||v.set("hasScrollArrows",!0),()=>{N.current=Math.max(0,N.current-1),N.current===0&&v.state.hasScrollArrows&&v.set("hasScrollArrows",!1)}),[v,N]),Ll({open:B,ref:L,onComplete(){B||V(!1)}});const Z=zt("div",o,{ref:[s,L],state:{direction:f,visible:B,side:R,transitionStatus:k},props:[{"aria-hidden":!0,children:f==="up"?"▲":"▼",style:{position:"absolute"},onMouseMove(G){if(G.movementX===0&&G.movementY===0||U.isStarted())return;v.set("activeIndex",null);function q(){const W=v.state.listElement??x.current;if(!W)return;v.set("activeIndex",null),w();const te=W.scrollTop===0,Y=Math.round(W.scrollTop+W.clientHeight)>=W.scrollHeight;if(C.current.length===0&&(f==="up"?v.set("scrollUpArrowVisible",!te):v.set("scrollDownArrowVisible",!Y)),f==="up"&&te||f==="down"&&Y){U.clear();return}if((v.state.listElement||x.current)&&C.current&&C.current.length>0){const F=C.current,ee=L.current?.offsetHeight||0;if(f==="up"){let oe=0;const we=W.scrollTop+ee;for(let Ce=0;Ce<F.length;Ce+=1){const re=F[Ce];if(re&&re.offsetTop>=we){oe=Ce;break}}const se=Math.max(0,oe-1);if(se<oe){const Ce=F[se];Ce&&(W.scrollTop=Math.max(0,Ce.offsetTop-ee))}else W.scrollTop=0}else{let oe=F.length-1;const we=W.scrollTop+W.clientHeight-ee;for(let Ce=0;Ce<F.length;Ce+=1){const re=F[Ce];if(re&&re.offsetTop+re.offsetHeight>we){oe=Math.max(0,Ce-1);break}}const se=Math.min(F.length-1,oe+1);if(se>oe){const Ce=F[se];Ce&&(W.scrollTop=Ce.offsetTop+Ce.offsetHeight-W.clientHeight+ee)}else W.scrollTop=W.scrollHeight-W.clientHeight}}U.start(40,q)}U.start(40,q)},onMouseLeave(){U.clear()}},y]});return B||h?Z:null});process.env.NODE_ENV!=="production"&&(KT.displayName="SelectScrollArrow");const X3=S.forwardRef(function(o,s){return m.jsx(KT,{...o,ref:s,direction:"down"})});process.env.NODE_ENV!=="production"&&(X3.displayName="SelectScrollDownArrow");const P3=S.forwardRef(function(o,s){return m.jsx(KT,{...o,ref:s,direction:"up"})});process.env.NODE_ENV!=="production"&&(P3.displayName="SelectScrollUpArrow");const NG=bG;function TG({className:n,...o}){return m.jsx(k3,{"data-slot":"select-value",className:$("flex flex-1 text-left",n),...o})}function MG({className:n,size:o="default",children:s,...i}){return m.jsxs(D3,{"data-slot":"select-trigger","data-size":o,className:$("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...i,children:[s,m.jsx(A3,{render:m.jsx(py,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function RG({className:n,children:o,side:s="bottom",sideOffset:i=4,align:d="center",alignOffset:f=0,alignItemWithTrigger:h=!0,...y}){return m.jsx(_3,{children:m.jsx(B3,{side:s,sideOffset:i,align:d,alignOffset:f,alignItemWithTrigger:h,className:"isolate z-50",children:m.jsxs(V3,{"data-slot":"select-content","data-align-trigger":h,className:$("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n),...y,children:[m.jsx(jG,{}),m.jsx(H3,{children:o}),m.jsx(DG,{})]})})})}function OG({className:n,children:o,...s}){return m.jsxs(I3,{"data-slot":"select-item",className:$("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",n),...s,children:[m.jsx(G3,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:o}),m.jsx(Y3,{render:m.jsx("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:m.jsx(DD,{className:"pointer-events-none"})})]})}function jG({className:n,...o}){return m.jsx(P3,{"data-slot":"select-scroll-up-button",className:$("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",n),...o,children:m.jsx(bN,{})})}function DG({className:n,...o}){return m.jsx(X3,{"data-slot":"select-scroll-down-button",className:$("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",n),...o,children:m.jsx(py,{})})}const kG={small:"sm",middle:"default",large:"default"};function AG(n,o){if(!n)return[];const s=o?.label??"label",i=o?.value??"value";return n.map(d=>({label:d[s],value:d[i],disabled:d.disabled}))}function lD(n){if(n!=null)return typeof n=="object"&&"value"in n?n.value:n}const $3=S.forwardRef((n,o)=>{const{resolvedOptions:s,filteredOptions:i,valueProp:d,defaultValueProp:f,onChange:h,labelInValue:y,placeholder:v,disabled:x,loading:C,allowClear:w,status:N,variant:R,size:O,mappedSize:j,openProp:D,onOpenChange:A,setSearchValue:z,popupMatchSelectWidth:B,notFoundContent:U,className:L,style:k,id:V}=n,H=lD(d),K=lD(f),Z=S.useCallback(q=>{if(!h)return;const W=s.find(te=>String(te.value)===String(q));h(y?{label:W?.label,value:q}:q,W)},[h,s,y]),Q=S.useCallback(q=>{q.stopPropagation(),q.preventDefault(),h?.(void 0,void 0)},[h]),G=S.useCallback(q=>{A?.(q),q||z("")},[A,z]);return m.jsxs(NG,{value:H!=null?String(H):void 0,defaultValue:K!=null?String(K):void 0,onValueChange:Z,open:D,onOpenChange:G,disabled:x,children:[m.jsxs(MG,{ref:o,size:j,id:V,style:k,className:$(N==="error"&&"border-destructive focus-visible:border-destructive focus-visible:ring-destructive/20",N==="warning"&&"border-yellow-500 focus-visible:border-yellow-500 focus-visible:ring-yellow-500/20",R==="borderless"&&"border-0 shadow-none",R==="filled"&&"border-0 bg-muted",R==="underlined"&&"rounded-none border-0 border-b border-input shadow-none",O==="large"&&"h-10 text-base",O==="small"&&"h-7 text-xs",L),children:[m.jsx(TG,{placeholder:v}),C&&m.jsx(Zs,{className:"ml-1 size-3.5 animate-spin text-muted-foreground"}),w&&H!=null&&!x&&m.jsx("span",{role:"button",tabIndex:-1,className:"ml-1 inline-flex size-3.5 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:text-foreground",onClick:Q,onMouseDown:q=>q.preventDefault(),children:m.jsx(go,{className:"size-3"})})]}),m.jsx(RG,{className:$(typeof B=="number"&&`w-[${B}px]`),children:i.length>0?i.map(q=>m.jsx(OG,{value:String(q.value),disabled:q.disabled,children:q.label},String(q.value))):m.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:U})})]})});$3.displayName="SingleSelect";const Q3=S.forwardRef((n,o)=>{const{resolvedOptions:s,filteredOptions:i,searchValue:d,setSearchValue:f,showSearch:h,onSearch:y,valueProp:v,defaultValueProp:x,onChange:C,mode:w,labelInValue:N,placeholder:R,disabled:O,loading:j,allowClear:D,status:A,variant:z,size:B,notFoundContent:U,className:L,style:k,id:V,openProp:H,onOpenChange:K}=n,Z=S.useCallback(he=>he==null?[]:Array.isArray(he)?he.map(le=>typeof le=="object"&&"value"in le?le.value:le):typeof he=="object"&&"value"in he?[he.value]:[he],[]),[Q,G]=S.useState(()=>Z(x)),q=v!==void 0,W=q?Z(v):Q,[te,Y]=S.useState(!1),P=H??te,F=S.useCallback(he=>{H===void 0&&Y(he),K?.(he),he||f("")},[H,K,f]),ee=S.useCallback(he=>{const le=W.includes(he)?W.filter(Se=>Se!==he):[...W,he];if(q||G(le),C){const Se=le.map(ze=>s.find(je=>String(je.value)===String(ze))).filter(Boolean);if(N){const ze=Se.map(je=>({label:je.label,value:je.value}));C(ze,Se)}else C(le,Se)}},[W,q,C,s,N]),oe=S.useCallback((he,le)=>{le.stopPropagation(),le.preventDefault(),ee(he)},[ee]),we=S.useCallback(he=>{he.stopPropagation(),he.preventDefault(),q||G([]),C?.(N?[]:[],[])},[q,C,N]),se=S.useCallback(he=>{const le=he.target.value;f(le),y?.(le)},[f,y]),Ce=S.useCallback(he=>{if(w==="tags"&&he.key==="Enter"&&d.trim()){he.preventDefault();const le=d.trim();W.includes(le)||ee(le),f("")}if(he.key==="Backspace"&&!d&&W.length>0){const le=W[W.length-1];ee(le)}},[w,d,W,ee,f]),re=W.map(he=>{const le=s.find(Se=>String(Se.value)===String(he));return{value:he,label:le?.label??String(he)}});return m.jsxs("div",{className:$("relative inline-block",L),style:k,id:V,children:[m.jsxs("div",{ref:o,role:"combobox","aria-expanded":P,"aria-haspopup":"listbox",tabIndex:O?-1:0,onClick:()=>!O&&F(!P),onKeyDown:he=>{(he.key==="Enter"||he.key===" ")&&(he.preventDefault(),O||F(!P))},className:$("flex min-h-[32px] w-full flex-wrap items-center gap-1 rounded-lg border border-input bg-transparent px-2 py-1 text-sm transition-colors outline-none","focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50",O&&"cursor-not-allowed opacity-50",A==="error"&&"border-destructive focus-within:border-destructive focus-within:ring-destructive/20",A==="warning"&&"border-yellow-500 focus-within:border-yellow-500 focus-within:ring-yellow-500/20",z==="borderless"&&"border-0 shadow-none",z==="filled"&&"border-0 bg-muted",z==="underlined"&&"rounded-none border-0 border-b border-input shadow-none",B==="large"&&"min-h-[40px] text-base",B==="small"&&"min-h-[28px] text-xs"),children:[re.map(he=>m.jsxs("span",{className:"inline-flex items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-xs",children:[m.jsx("span",{className:"max-w-[100px] truncate",children:he.label}),!O&&m.jsx(go,{className:"size-3 cursor-pointer text-muted-foreground hover:text-foreground",onClick:le=>oe(he.value,le)})]},String(he.value))),(h||w==="tags")&&m.jsx("input",{className:"min-w-[60px] flex-1 border-none bg-transparent text-sm outline-none placeholder:text-muted-foreground",placeholder:re.length===0?R:void 0,value:d,onChange:se,onKeyDown:Ce,onClick:he=>{he.stopPropagation(),P||F(!0)},disabled:O}),!h&&w!=="tags"&&re.length===0&&m.jsx("span",{className:"text-muted-foreground",children:R}),j&&m.jsx(Zs,{className:"ml-auto size-3.5 shrink-0 animate-spin text-muted-foreground"}),D&&W.length>0&&!O&&m.jsx("span",{role:"button",tabIndex:-1,className:"ml-auto inline-flex size-3.5 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:text-foreground",onClick:we,onMouseDown:he=>he.preventDefault(),children:m.jsx(go,{className:"size-3"})})]}),P&&!O&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>F(!1)}),m.jsx("div",{role:"listbox","aria-multiselectable":!0,className:"absolute z-50 mt-1 max-h-60 w-full overflow-auto rounded-lg bg-popover shadow-md ring-1 ring-foreground/10",children:i.length>0?i.map(he=>{const le=W.includes(he.value);return m.jsxs("div",{role:"option","aria-selected":le,className:$("relative flex cursor-default items-center px-2 py-1.5 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground",he.disabled&&"pointer-events-none opacity-50",le&&"font-medium"),onClick:Se=>{Se.stopPropagation(),he.disabled||ee(he.value)},children:[m.jsx("span",{className:"flex-1",children:he.label}),le&&m.jsx("svg",{className:"size-4 shrink-0 text-primary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("polyline",{points:"20 6 9 17 4 12"})})]},String(he.value))}):m.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:U})})]})]})});Q3.displayName="MultipleSelect";const Z3=S.forwardRef((n,o)=>{const{options:s,value:i,defaultValue:d,onChange:f,mode:h,size:y,placeholder:v="Select...",disabled:x=!1,loading:C=!1,allowClear:w=!1,status:N,variant:R="outlined",showSearch:O=!1,onSearch:j,filterOption:D,labelInValue:A=!1,open:z,onOpenChange:B,fieldNames:U,notFoundContent:L="No data",popupMatchSelectWidth:k=!0,className:V,style:H,id:K}=n,Z=Ws(y),Q=kG[Z],G=AG(s,U),[q,W]=S.useState(""),te=S.useMemo(()=>!O||!q?G:G.filter(Y=>D===!1?!0:typeof D=="function"?D(q,Y):(typeof Y.label=="string"?Y.label:String(Y.label)).toLowerCase().includes(q.toLowerCase())),[G,q,O,D]);return h?m.jsx(Q3,{ref:o,resolvedOptions:G,filteredOptions:te,searchValue:q,setSearchValue:W,showSearch:O,onSearch:j,valueProp:i,defaultValueProp:d,onChange:f,mode:h,labelInValue:A,placeholder:v,disabled:x,loading:C,allowClear:w,status:N,variant:R,size:Z,notFoundContent:L,popupMatchSelectWidth:k,className:V,style:H,id:K,openProp:z,onOpenChange:B}):m.jsx($3,{ref:o,resolvedOptions:G,filteredOptions:te,valueProp:i,defaultValueProp:d,onChange:f,labelInValue:A,placeholder:v,disabled:x,loading:C,allowClear:w,status:N,variant:R,size:Z,mappedSize:Q,openProp:z,onOpenChange:B,setSearchValue:W,popupMatchSelectWidth:k,notFoundContent:L,className:V,style:H,id:K})});Z3.displayName="Select";const zG=Z3;let rD=(function(n){return n.checked="data-checked",n.unchecked="data-unchecked",n.indeterminate="data-indeterminate",n.disabled="data-disabled",n.readonly="data-readonly",n.required="data-required",n.valid="data-valid",n.invalid="data-invalid",n.touched="data-touched",n.dirty="data-dirty",n.filled="data-filled",n.focused="data-focused",n})({});function K3(n){return S.useMemo(()=>({checked(o){return n.indeterminate?{}:o?{[rD.checked]:""}:{[rD.unchecked]:""}},...Ep}),[n.indeterminate])}const FT=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(FT.displayName="CheckboxRootContext");function _G(){const n=S.useContext(FT);if(n===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.":Nn(14));return n}const UG="data-parent",F3=S.forwardRef(function(o,s){const{checked:i,className:d,defaultChecked:f=!1,disabled:h=!1,id:y,indeterminate:v=!1,inputRef:x,name:C,onCheckedChange:w,parent:N=!1,readOnly:R=!1,render:O,required:j=!1,uncheckedValue:D,value:A,nativeButton:z=!1,...B}=o,{clearErrors:U}=mx(),{disabled:L,name:k,setDirty:V,setFilled:H,setFocused:K,setTouched:Z,state:Q,validationMode:G,validityData:q,shouldValidateOnChange:W,validation:te}=Su(),Y=x3(),{labelId:P,controlId:F,registerControlId:ee,getDescriptionProps:oe}=Np(),we=Qq(),se=we?.parent,Ce=se&&we.allValues,re=L||Y.disabled||we?.disabled||h,he=k??C,le=A??he,Se=vl(),ze=vl();let je=F;Ce?je=N?ze:`${se.id}-${le}`:y&&(je=y);let ve={};Ce&&(N?ve=we.parent.getParentProps():le&&(ve=we.parent.getChildProps(le)));const fe=Ke(w),{checked:ce=i,indeterminate:ae=v,onCheckedChange:ue,...be}=ve,ie=we?.value,Oe=we?.setValue,de=we?.defaultValue,Me=S.useRef(null),Re=Qa(()=>Symbol("checkbox-control")),De=S.useRef(!1),{getButtonProps:Ie,buttonRef:We}=Fs({disabled:re,native:z}),$e=we?.validation??te,[st,nn]=yp({controlled:le&&ie&&!N?ie.includes(le):ce,default:le&&de&&!N?de.includes(le):f,name:"Checkbox",state:"checked"});Fe(()=>{ee!==ja&&(De.current=!0,ee(Re.current,je))},[je,we,ee,N,Re]),S.useEffect(()=>{const ot=Re.current;return()=>{!De.current||ee===ja||(De.current=!1,ee(ot,void 0))}},[ee,Re]),hx({enabled:!we,id:Se,commit:$e.commit,value:st,controlRef:Me,name:he,getValue:()=>st});const ln=S.useRef(null),Tt=ps(x,ln,$e.inputRef);Fe(()=>{ln.current&&(ln.current.indeterminate=ae,st&&H(!0))},[st,ae,H]),EC(st,()=>{we&&!N||(U(he),H(st),V(st!==q.initialValue),W()?$e.commit(st):$e.commit(st,!0))});const Lt=$i({checked:st,disabled:re,name:N?void 0:he,id:z?void 0:je??void 0,required:j,ref:Tt,style:he?cC:vy,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(ot){if(ot.nativeEvent.defaultPrevented)return;const xt=ot.target.checked,Mt=vt(hs,ot.nativeEvent);if(ue?.(xt,Mt),fe(xt,Mt),!Mt.isCanceled&&(nn(xt),le&&ie&&Oe&&!N)){const mn=xt?[...ie,le]:ie.filter(at=>at!==le);Oe(mn,Mt)}},onFocus(){Me.current?.focus()}},A!==void 0?{value:(we?st&&A:A)||""}:Fn,oe,we?$e.getValidationProps:$e.getInputValidationProps),Kt=Ce?!!ce:st,Ft=Ce&&ae||v;S.useEffect(()=>{if(!se||!le)return;const ot=se.disabledStatesRef.current;return ot.set(le,re),()=>{ot.delete(le)}},[se,re,le]);const ya=S.useMemo(()=>({...Q,checked:Kt,disabled:re,readOnly:R,required:j,indeterminate:Ft}),[Q,Kt,re,R,j,Ft]),Wn=K3(ya),ct=zt("span",o,{state:ya,ref:[We,Me,s,we?.registerControlRef],props:[{id:z?je??void 0:Se,role:"checkbox","aria-checked":ae?"mixed":st,"aria-readonly":R||void 0,"aria-required":j||void 0,"aria-labelledby":P,[UG]:N?"":void 0,onFocus(){K(!0)},onBlur(){const ot=ln.current;ot&&(Z(!0),K(!1),G==="onBlur"&&$e.commit(we?ie:ot.checked))},onClick(ot){R||re||(ot.preventDefault(),ln.current?.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:ot.shiftKey,ctrlKey:ot.ctrlKey,altKey:ot.altKey,metaKey:ot.metaKey})))}},oe,$e.getValidationProps,B,be,Ie],stateAttributesMapping:Wn});return m.jsxs(FT.Provider,{value:ya,children:[ct,!st&&!we&&he&&!N&&D!==void 0&&m.jsx("input",{type:"hidden",name:he,value:D}),m.jsx("input",{...Lt})]})});process.env.NODE_ENV!=="production"&&(F3.displayName="CheckboxRoot");const W3=S.forwardRef(function(o,s){const{render:i,className:d,keepMounted:f=!1,...h}=o,y=_G(),v=y.checked||y.indeterminate,{mounted:x,transitionStatus:C,setMounted:w}=xu(v),N=S.useRef(null),R={...y,transitionStatus:C};Ll({open:v,ref:N,onComplete(){v||w(!1)}});const O=K3(y),j=S.useMemo(()=>({...O,...gs,...Ep}),[O]),D=f||x,A=zt("span",o,{ref:[s,N],state:R,stateAttributesMapping:j,props:h});return D?A:null});process.env.NODE_ENV!=="production"&&(W3.displayName="CheckboxIndicator");function BG({className:n,...o}){return m.jsx(F3,{"data-slot":"checkbox",className:$("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",n),...o,children:m.jsx(W3,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:m.jsx(DD,{})})})}const J3=S.createContext(null);function LG(n){return n?n.map(o=>typeof o=="string"||typeof o=="number"?{label:String(o),value:o}:o):[]}const e4=n=>{const{options:o,value:s,defaultValue:i=[],onChange:d,disabled:f=!1,className:h,name:y,children:v}=n,[x,C]=S.useState(i),w=s!==void 0,N=w?s:x,R=S.useCallback(D=>{const A=N.includes(D)?N.filter(z=>z!==D):[...N,D];w||C(A),d?.(A)},[N,w,d]),O=S.useMemo(()=>({value:N,disabled:f,toggleValue:R}),[N,f,R]),j=LG(o);return m.jsx(J3.Provider,{value:O,children:m.jsx("div",{"data-slot":"checkbox-group",className:$("flex flex-wrap gap-x-4 gap-y-2",h),children:j.length>0?j.map(D=>m.jsx(WT,{value:D.value,disabled:D.disabled,name:y,children:D.label},String(D.value))):v})})};e4.displayName="CheckboxGroup";const WT=S.forwardRef((n,o)=>{const{checked:s,defaultChecked:i=!1,indeterminate:d=!1,disabled:f=!1,onChange:h,children:y,value:v,className:x,id:C,name:w}=n,N=S.useContext(J3);let R,O=f;N?(R=N.value.includes(v),O=f||N.disabled):R=s;const[j,D]=S.useState(i),A=s!==void 0||N!=null,z=A?R??!1:j,B=S.useCallback(U=>{if(A||D(U),N){N.toggleValue(v);return}h&&h({target:{checked:U,value:v},stopPropagation:()=>{},preventDefault:()=>{},nativeEvent:void 0})},[A,N,h,v]);return m.jsxs("label",{className:$("inline-flex items-center gap-2 cursor-pointer select-none text-sm",O&&"cursor-not-allowed opacity-50",x),children:[m.jsx(BG,{ref:o,id:C,name:w,checked:z,indeterminate:d,disabled:O,onCheckedChange:B}),y&&m.jsx("span",{children:y})]})});WT.displayName="Checkbox";const t4=WT;t4.Group=e4;let sD=(function(n){return n.checked="data-checked",n.unchecked="data-unchecked",n.disabled="data-disabled",n.readonly="data-readonly",n.required="data-required",n.valid="data-valid",n.invalid="data-invalid",n.touched="data-touched",n.dirty="data-dirty",n.filled="data-filled",n.focused="data-focused",n})({});const mN={checked(n){return n?{[sD.checked]:""}:{[sD.unchecked]:""}},...gs,...Ep},JT=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(JT.displayName="RadioGroupContext");function VG(){return S.useContext(JT)}const eM=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(eM.displayName="RadioRootContext");function HG(){const n=S.useContext(eM);if(n===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>.":Nn(52));return n}const n4=S.forwardRef(function(o,s){const{render:i,className:d,disabled:f=!1,readOnly:h=!1,required:y=!1,value:v,inputRef:x,nativeButton:C=!1,id:w,...N}=o,R=VG(),{disabled:O,readOnly:j,required:D,checkedValue:A,touched:z=!1,validation:B,name:U}=R??{},L=R?.setCheckedValue??ja,k=R?.setTouched??ja,V=R?.registerControlRef??ja,H=R?.registerInputRef??ja,{setDirty:K,validityData:Z,setTouched:Q,setFilled:G,state:q,disabled:W}=Su(),te=x3(),{labelId:Y,getDescriptionProps:P}=Np(),F=W||te.disabled||O||f,ee=j||h,oe=D||y,we=R?A===v:v==="",se=S.useMemo(()=>Lw(v),[v]),Ce=S.useRef(null),re=S.useRef(null),he=Ke(Re=>{Re&&V(Re,F)}),le=ps(x,re,H);Fe(()=>{re.current?.checked&&G(!0)},[G]),Fe(()=>{if(re.current){if(F&&we){H(null);return}Ce.current&&V(Ce.current,F),H(re.current)}},[we,F,V,H]);const Se=vl(),ze=px({id:w,implicit:!1,controlRef:Ce}),je=C?void 0:ze,ve={role:"radio","aria-checked":we,"aria-required":oe||void 0,"aria-readonly":ee||void 0,"aria-labelledby":Y,[BN]:we?"":void 0,id:C?ze:Se,onKeyDown(Re){Re.key==="Enter"&&Re.preventDefault()},onClick(Re){Re.defaultPrevented||F||ee||(Re.preventDefault(),re.current?.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:Re.shiftKey,ctrlKey:Re.ctrlKey,altKey:Re.altKey,metaKey:Re.metaKey})))},onFocus(Re){Re.defaultPrevented||F||ee||!z||(re.current?.click(),k(!1))}},{getButtonProps:fe,buttonRef:ce}=Fs({disabled:F,native:C}),ae={type:"radio",ref:le,id:je,name:U,tabIndex:-1,style:U?cC:vy,"aria-hidden":!0,...v!==void 0?{value:se}:Fn,disabled:F,checked:we,required:oe,readOnly:ee,onChange(Re){if(Re.nativeEvent.defaultPrevented||F||ee||v===void 0)return;const De=vt(hs,Re.nativeEvent);De.isCanceled||(Q(!0),K(v!==Z.initialValue),G(!0),L(v,De))},onFocus(){Ce.current?.focus()}},ue=S.useMemo(()=>({...q,required:oe,disabled:F,readOnly:ee,checked:we}),[q,F,ee,we,oe]),be=ue,ie=R!==void 0,Oe=[s,Ce,ce,he],de=[ve,P,B?.getValidationProps??Fn,N,fe],Me=zt("span",o,{enabled:!ie,state:ue,ref:Oe,props:de,stateAttributesMapping:mN});return m.jsxs(eM.Provider,{value:be,children:[ie?m.jsx(rz,{tag:"span",render:i,className:d,state:ue,refs:Oe,props:de,stateAttributesMapping:mN}):Me,m.jsx("input",{...ae})]})});process.env.NODE_ENV!=="production"&&(n4.displayName="RadioRoot");const a4=S.forwardRef(function(o,s){const{render:i,className:d,keepMounted:f=!1,...h}=o,y=HG(),v=y.checked,{mounted:x,transitionStatus:C,setMounted:w}=xu(v),N={...y,transitionStatus:C},R=S.useRef(null),O=f||x,j=zt("span",o,{ref:[s,R],state:N,props:h,stateAttributesMapping:mN});return Ll({open:v,ref:R,onComplete(){v||w(!1)}}),O?j:null});process.env.NODE_ENV!=="production"&&(a4.displayName="RadioIndicator");const IG=[hA],o4=S.forwardRef(function(o,s){const{render:i,className:d,disabled:f,readOnly:h,required:y,onValueChange:v,value:x,defaultValue:C,name:w,inputRef:N,id:R,...O}=o,{setTouched:j,setFocused:D,shouldValidateOnChange:A,validationMode:z,name:B,disabled:U,state:L,validation:k,setDirty:V,setFilled:H,validityData:K}=Su(),{labelId:Z}=Np(),{clearErrors:Q}=mx(),G=Pq(!0),q=U||f,W=B??w,te=vl(R),[Y,P]=yp({controlled:x,default:C,name:"RadioGroup",state:"value"}),F=Ke(v),ee=Ke((ce,ae)=>{F(ce,ae),!ae.isCanceled&&P(ce)}),oe=S.useRef(null),we=S.useRef(null),se=S.useRef(null);function Ce(ce){let ae;return N&&(typeof N=="function"?ae=N(ce):N.current=ce),we.current=ce,k.inputRef.current=ce,ae}const re=Ke((ce,ae=!1)=>{if(ce){if(ae){oe.current===ce&&(oe.current=null);return}oe.current==null&&(oe.current=ce)}}),he=Ke(ce=>{if(!ce||ce.disabled)return;se.current||(se.current=ce);const ae=we.current;if(ce.checked||ae==null||ae.disabled)return Ce(ce)});hx({id:te,commit:k.commit,value:Y,controlRef:oe,name:W,getValue:()=>Y??null}),EC(Y,()=>{Q(W),V(Y!==K.initialValue),H(Y!=null),A()?k.commit(Y):k.commit(Y,!0);const ce=se.current;Y==null&&ce&&!ce.disabled&&Ce(ce)});const[le,Se]=S.useState(!1),ze=O["aria-labelledby"]??Z??G?.legendId,je={...L,disabled:q??!1,required:y??!1,readOnly:h??!1},ve=S.useMemo(()=>({...L,checkedValue:Y,disabled:q,validation:k,name:W,onValueChange:F,readOnly:h,registerControlRef:re,registerInputRef:he,required:y,setCheckedValue:ee,setTouched:Se,touched:le}),[Y,q,k,L,W,F,h,re,he,y,ee,Se,le]),fe={role:"radiogroup","aria-required":y||void 0,"aria-disabled":q||void 0,"aria-readonly":h||void 0,"aria-labelledby":ze,onFocus(){D(!0)},onBlur(ce){Ut(ce.currentTarget,ce.relatedTarget)||(j(!0),D(!1),z==="onBlur"&&k.commit(Y))},onKeyDownCapture(ce){ce.key.startsWith("Arrow")&&(j(!0),Se(!0),D(!0))}};return m.jsx(JT.Provider,{value:ve,children:m.jsx(gA,{render:i,className:d,state:je,props:[fe,k.getValidationProps,O],refs:[s],stateAttributesMapping:Ep,enableHomeAndEndKeys:!1,modifierKeys:IG})})});process.env.NODE_ENV!=="production"&&(o4.displayName="RadioGroup");function YG({className:n,...o}){return m.jsx(o4,{"data-slot":"radio-group",className:$("grid w-full gap-2",n),...o})}function qG({className:n,...o}){return m.jsx(n4,{"data-slot":"radio-group-item",className:$("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",n),...o,children:m.jsx(a4,{"data-slot":"radio-group-indicator",className:"flex size-4 items-center justify-center",children:m.jsx("span",{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground"})})})}const tM=S.forwardRef((n,o)=>{const{value:s,disabled:i=!1,children:d,className:f}=n,h=S.useContext(Iw);if(!h)throw new Error("Radio.Button must be used within a Radio.Group");const y=h.value===s,v=i||h.disabled,x=h.buttonStyle??"outline",C=h.size??"middle",w=S.useCallback(()=>{v||h.onChange(s)},[v,h,s]);return m.jsx("button",{ref:o,type:"button",role:"radio","aria-checked":y,disabled:v,onClick:w,className:$("inline-flex items-center justify-center border px-3 text-sm font-medium transition-colors outline-none select-none","first:rounded-l-md last:rounded-r-md","-ml-px first:ml-0","focus-visible:z-10 focus-visible:ring-2 focus-visible:ring-ring/50",v&&"cursor-not-allowed opacity-50",C==="large"&&"h-10 px-4 text-base",C==="middle"&&"h-8 px-3",C==="small"&&"h-7 px-2 text-xs",x==="outline"&&["border-input bg-background hover:bg-accent hover:text-accent-foreground",y&&"border-primary text-primary bg-background z-10"],x==="solid"&&["border-input bg-background hover:bg-accent hover:text-accent-foreground",y&&"border-primary bg-primary text-primary-foreground hover:bg-primary/90 hover:text-primary-foreground z-10"],f),children:d})});tM.displayName="RadioButton";const Iw=S.createContext(null);function GG(n){return n?n.map(o=>typeof o=="string"||typeof o=="number"?{label:String(o),value:o}:o):[]}const l4=n=>{const{options:o,value:s,defaultValue:i,onChange:d,optionType:f="default",buttonStyle:h="outline",size:y,disabled:v=!1,block:x=!1,className:C,name:w,children:N}=n,R=Ws(y),[O,j]=S.useState(i??null),D=s!==void 0,A=D?s:O,z=S.useCallback(k=>{D||j(k),d&&d({target:{checked:!0,value:k},stopPropagation:()=>{},preventDefault:()=>{},nativeEvent:void 0})},[D,d]),B=S.useMemo(()=>({value:A,disabled:v,onChange:z,buttonStyle:h,size:R}),[A,v,z,h,R]),U=GG(o);if(f==="button")return m.jsx(Iw.Provider,{value:B,children:m.jsx("div",{"data-slot":"radio-group",role:"radiogroup",className:$("inline-flex",x&&"flex w-full",C),children:U.length>0?U.map(k=>m.jsx(tM,{value:k.value,disabled:k.disabled,className:x?"flex-1":void 0,children:k.label},String(k.value))):N})});const L=S.useCallback(k=>{const V=U.find(K=>String(K.value)===String(k)),H=V?V.value:k;z(H)},[z,U]);return m.jsx(Iw.Provider,{value:B,children:m.jsx(YG,{value:A!=null?String(A):void 0,defaultValue:i!=null?String(i):void 0,onValueChange:L,disabled:v,name:w,className:$("flex flex-wrap gap-x-4 gap-y-2",x&&"w-full",C),children:U.length>0?U.map(k=>m.jsx(nM,{value:k.value,disabled:k.disabled,children:k.label},String(k.value))):N})})};l4.displayName="RadioGroup";const nM=S.forwardRef((n,o)=>{const{checked:s,defaultChecked:i,disabled:d=!1,value:f,onChange:h,children:y,className:v,id:x,name:C}=n,w=S.useContext(Iw),N=d||(w?.disabled??!1),[R,O]=S.useState(i??!1),j=s!==void 0,D=S.useCallback(()=>{N||(j||O(!0),h&&h({target:{checked:!0,value:f},stopPropagation:()=>{},preventDefault:()=>{},nativeEvent:void 0}))},[N,j,h,f]);if(w)return m.jsxs("label",{className:$("inline-flex items-center gap-2 cursor-pointer select-none text-sm",N&&"cursor-not-allowed opacity-50",v),children:[m.jsx(qG,{ref:o,id:x,value:f!=null?String(f):"",disabled:N}),y&&m.jsx("span",{children:y})]});const A=j?s:R;return m.jsxs("label",{className:$("inline-flex items-center gap-2 cursor-pointer select-none text-sm",N&&"cursor-not-allowed opacity-50",v),onClick:D,children:[m.jsx("span",{ref:o,role:"radio","aria-checked":A,tabIndex:N?-1:0,id:x,className:$("relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none transition-colors","focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50",N&&"cursor-not-allowed opacity-50",A&&"border-primary bg-primary text-primary-foreground"),children:A&&m.jsx("span",{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground"})}),y&&m.jsx("span",{children:y})]})});nM.displayName="Radio";const aM=nM;aM.Group=l4;aM.Button=tM;const oM=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(oM.displayName="SwitchRootContext");function XG(){const n=S.useContext(oM);if(n===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.":Nn(63));return n}let iD=(function(n){return n.checked="data-checked",n.unchecked="data-unchecked",n.disabled="data-disabled",n.readonly="data-readonly",n.required="data-required",n.valid="data-valid",n.invalid="data-invalid",n.touched="data-touched",n.dirty="data-dirty",n.filled="data-filled",n.focused="data-focused",n})({});const r4={...Ep,checked(n){return n?{[iD.checked]:""}:{[iD.unchecked]:""}}},s4=S.forwardRef(function(o,s){const{checked:i,className:d,defaultChecked:f,id:h,inputRef:y,name:v,nativeButton:x=!1,onCheckedChange:C,readOnly:w=!1,required:N=!1,disabled:R=!1,render:O,uncheckedValue:j,value:D,...A}=o,{clearErrors:z}=mx(),{state:B,setTouched:U,setDirty:L,validityData:k,setFilled:V,setFocused:H,shouldValidateOnChange:K,validationMode:Z,disabled:Q,name:G,validation:q}=Su(),{labelId:W}=Np(),te=Q||R,Y=G??v,P=Ke(C),F=S.useRef(null),ee=ps(F,y,q.inputRef),oe=S.useRef(null),we=vl(),se=px({id:h,implicit:!1,controlRef:oe}),Ce=x?void 0:se,[re,he]=yp({controlled:i,default:!!f,name:"Switch",state:"checked"});hx({id:we,commit:q.commit,value:re,controlRef:oe,name:Y,getValue:()=>re}),Fe(()=>{F.current&&V(F.current.checked)},[F,V]),EC(re,()=>{z(Y),L(re!==k.initialValue),V(re),K()?q.commit(re):q.commit(re,!0)});const{getButtonProps:le,buttonRef:Se}=Fs({disabled:te,native:x}),ze={id:x?se:we,role:"switch","aria-checked":re,"aria-readonly":w||void 0,"aria-required":N||void 0,"aria-labelledby":W,onFocus(){te||H(!0)},onBlur(){const ce=F.current;!ce||te||(U(!0),H(!1),Z==="onBlur"&&q.commit(ce.checked))},onClick(ce){w||te||(ce.preventDefault(),F.current?.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:ce.shiftKey,ctrlKey:ce.ctrlKey,altKey:ce.altKey,metaKey:ce.metaKey})))}},je=S.useMemo(()=>$i({checked:re,disabled:te,id:Ce,name:Y,required:N,style:Y?cC:vy,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:ee,onChange(ce){if(ce.nativeEvent.defaultPrevented)return;const ae=ce.target.checked,ue=vt(hs,ce.nativeEvent);P?.(ae,ue),!ue.isCanceled&&he(ae)},onFocus(){oe.current?.focus()}},q.getInputValidationProps,D!==void 0?{value:D}:Fn),[re,te,ee,Ce,Y,P,N,he,q,D]),ve=S.useMemo(()=>({...B,checked:re,disabled:te,readOnly:w,required:N}),[B,re,te,w,N]),fe=zt("span",o,{state:ve,ref:[s,oe,Se],props:[ze,q.getValidationProps,A,le],stateAttributesMapping:r4});return m.jsxs(oM.Provider,{value:ve,children:[fe,!re&&Y&&j!==void 0&&m.jsx("input",{type:"hidden",name:Y,value:j}),m.jsx("input",{...je})]})});process.env.NODE_ENV!=="production"&&(s4.displayName="SwitchRoot");const i4=S.forwardRef(function(o,s){const{render:i,className:d,...f}=o,{state:h}=Su(),y=XG(),v={...h,...y};return zt("span",o,{state:v,ref:s,stateAttributesMapping:r4,props:f})});process.env.NODE_ENV!=="production"&&(i4.displayName="SwitchThumb");function PG({className:n,size:o="default",...s}){return m.jsx(s4,{"data-slot":"switch","data-size":o,className:$("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",n),...s,children:m.jsx(i4,{"data-slot":"switch-thumb",className:"pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] dark:data-checked:bg-primary-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 dark:data-unchecked:bg-foreground"})})}const $G={middle:"default",small:"sm"},c4=S.forwardRef((n,o)=>{const{checked:s,defaultChecked:i=!1,disabled:d=!1,loading:f=!1,size:h="middle",checkedChildren:y,unCheckedChildren:v,onChange:x,onClick:C,className:w,id:N}=n,[R,O]=S.useState(i),j=s!==void 0,D=j?s:R,A=$G[h],z=d||f,B=S.useCallback(k=>{j||O(k),x?.(k)},[j,x]),U=S.useCallback(k=>{C?.(k)},[C]),L=y||v;return m.jsxs("div",{className:"relative inline-flex items-center",children:[m.jsx(PG,{ref:o,id:N,size:A,checked:D,onCheckedChange:B,disabled:z,onClick:U,className:$(L&&[h==="middle"&&"h-[22px] w-[44px]",h==="small"&&"h-[18px] w-[34px]"],w)}),f&&m.jsx("span",{className:$("pointer-events-none absolute flex items-center justify-center",h==="middle"&&"left-[2px] size-4",h==="small"&&"left-[1px] size-3",D&&[h==="middle"&&"left-auto right-[2px]",h==="small"&&"left-auto right-[1px]"]),children:m.jsx(Zs,{className:$("animate-spin text-muted-foreground",h==="middle"&&"size-3",h==="small"&&"size-2.5")})}),L&&m.jsx("span",{className:$("pointer-events-none absolute inset-0 flex items-center",h==="middle"&&"text-[10px]",h==="small"&&"text-[8px]","text-primary-foreground font-medium leading-none"),children:D?m.jsx("span",{className:$("truncate",h==="middle"&&"pl-[5px] pr-[20px]",h==="small"&&"pl-[4px] pr-[16px]"),children:y}):m.jsx("span",{className:$("truncate text-right w-full",h==="middle"&&"pl-[20px] pr-[5px]",h==="small"&&"pl-[16px] pr-[4px]"),children:v})})]})});c4.displayName="Switch";const QG=c4,ZG={layout:"vertical",colon:!0,disabled:!1,size:"middle",variant:"outlined",requiredMark:!0},u4=Qe.createContext(ZG);function KG(){return Qe.useContext(u4)}function d4(n,o=[]){const s=[];for(const i of Object.keys(n)){const d=n[i];if(!d)continue;const f=[...o,i];d.message&&typeof d.message=="string"?s.push({name:f,errors:[d.message]}):typeof d=="object"&&s.push(...d4(d,f))}return s}function f4(n){const{form:o,layout:s="vertical",labelCol:i,wrapperCol:d,onFinish:f,onFinishFailed:h,onValuesChange:y,initialValues:v,colon:x=!0,disabled:C=!1,size:w="middle",variant:N="outlined",requiredMark:R=!0,className:O,children:j,...D}=n,A=rf.useForm({defaultValues:v,mode:"onTouched"}),z=o??A;S.useEffect(()=>{if(!y)return;const L=z.watch((k,{name:V})=>{if(!V)return;const H={[V]:k[V]};y(H,k)});return()=>L.unsubscribe()},[z,y]);const B=S.useCallback(L=>{L.preventDefault(),L.stopPropagation(),z.handleSubmit(k=>{f?.(k)},k=>{h?.({values:z.getValues(),errorFields:d4(k)})})(L)},[z,f,h]),U=S.useMemo(()=>({layout:s,labelCol:i,wrapperCol:d,colon:x,disabled:C,size:w,variant:N,requiredMark:R}),[s,i,d,x,C,w,N,R]);return m.jsx(rf.FormProvider,{...z,children:m.jsx(u4.Provider,{value:U,children:m.jsx("form",{onSubmit:B,className:$("orizon-form",s==="inline"&&"flex flex-wrap items-start gap-4",C&&"opacity-60 pointer-events-none",O),...D,children:j})})})}f4.displayName="Form";function FG({className:n,...o}){return m.jsx("label",{"data-slot":"label",className:$("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",n),...o})}function WG(n){const o={};for(const s of n){if(s.required&&(o.required=typeof s.message=="string"?s.message:"This field is required"),s.pattern&&(o.pattern={value:s.pattern,message:typeof s.message=="string"?s.message:"Value does not match pattern"}),s.min!==void 0&&(o.min={value:s.min,message:typeof s.message=="string"?s.message:`Minimum value is ${s.min}`}),s.max!==void 0&&(o.max={value:s.max,message:typeof s.message=="string"?s.message:`Maximum value is ${s.max}`}),s.len!==void 0&&(o.minLength={value:s.len,message:typeof s.message=="string"?s.message:`Must be exactly ${s.len} characters`},o.maxLength={value:s.len,message:typeof s.message=="string"?s.message:`Must be exactly ${s.len} characters`}),s.validator){const i=s.validator,d=s;o.validate={...typeof o.validate=="object"?o.validate:{},[`custom_${n.indexOf(s)}`]:async f=>{try{return await i(d,f),!0}catch(h){return h instanceof Error?h.message:typeof s.message=="string"?s.message:"Validation failed"}}}}if(s.type){const i=typeof s.message=="string"?s.message:void 0;switch(s.type){case"email":o.pattern={value:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:i??"Please enter a valid email"};break;case"url":o.pattern={value:/^https?:\/\/.+/,message:i??"Please enter a valid URL"};break;case"number":o.validate={...typeof o.validate=="object"?o.validate:{},isNumber:d=>d==null||d===""?!0:!isNaN(Number(d))||(i??"Must be a number")};break}}if(s.whitespace){const i=typeof s.message=="string"?s.message:"Cannot be only whitespace";o.validate={...typeof o.validate=="object"?o.validate:{},notWhitespace:d=>typeof d=="string"&&d.trim()===""?i:!0}}}return o}function JG(n,o){return o!==void 0?o:n?.some(s=>s.required)??!1}function m4(n){const{name:o,label:s,rules:i,required:d,help:f,extra:h,tooltip:y,layout:v,hidden:x=!1,noStyle:C=!1,valuePropName:w="value",trigger:N="onChange",validateTrigger:R,className:O,children:j}=n,D=KG(),A=v??D.layout,z=JG(i,d);let B=null;try{B=rf.useFormContext()}catch{}if(!o)return C?m.jsx(m.Fragment,{children:j}):m.jsx(k2,{label:s,layout:A,required:z,colon:D.colon,requiredMark:D.requiredMark,tooltip:y,help:f,extra:h,hidden:x,className:O,children:j});if(!B)return C?m.jsx(m.Fragment,{children:j}):m.jsx(k2,{label:s,layout:A,required:z,colon:D.colon,requiredMark:D.requiredMark,tooltip:y,help:f,extra:h,hidden:x,className:O,children:j});const U=i?WG(i):{};return m.jsx(rf.Controller,{name:o,control:B.control,rules:U,render:({field:L,fieldState:k})=>{const V=k.error?.message,H=!!k.error,K=S.isValidElement(j)?S.cloneElement(j,{[w]:L.value??(w==="checked"?!1:""),[N]:(...Z)=>{const Q=j.props;typeof Q[N]=="function"&&Q[N](...Z);const G=Z[0];if(G&&typeof G=="object"&&"target"in G&&G.target){const q=G.target,W=q.type==="checkbox"?q.checked:q.value;L.onChange(W)}else L.onChange(Z[0])},onBlur:L.onBlur,ref:L.ref,"aria-invalid":H||void 0,disabled:D.disabled||void 0}):j;return C?m.jsx(m.Fragment,{children:K}):m.jsx(k2,{label:s,layout:A,required:z,colon:D.colon,requiredMark:D.requiredMark,tooltip:y,help:f,extra:h,error:typeof V=="string"?V:void 0,hidden:x,className:O,children:K})}})}m4.displayName="FormItem";function k2({label:n,layout:o,required:s,colon:i,requiredMark:d,tooltip:f,help:h,extra:y,error:v,hidden:x,className:C,children:w}){const N=o==="horizontal",R=s&&d!==!1&&d!=="optional",O=!s&&d==="optional";return m.jsxs("div",{className:$("orizon-form-item",N?"flex items-start gap-2":"flex flex-col gap-1.5",x&&"hidden","mb-4",C),children:[n!=null&&m.jsxs(FG,{className:$(N&&"min-w-[100px] pt-2 text-right shrink-0","text-sm font-medium leading-none"),children:[R&&m.jsx("span",{className:"text-destructive mr-0.5",children:"*"}),n,O&&m.jsx("span",{className:"text-muted-foreground text-xs ml-1 font-normal",children:"(optional)"}),i&&N&&m.jsx("span",{className:"ml-0.5",children:":"}),f&&m.jsx("span",{className:"text-muted-foreground ml-1 cursor-help",title:typeof f=="string"?f:void 0,children:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"inline-block",children:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),m.jsx("path",{d:"M12 17h.01"})]})})]}),m.jsxs("div",{className:$("flex flex-col gap-1",N&&"flex-1"),children:[w,v&&m.jsx("p",{className:"text-destructive text-xs mt-0.5",role:"alert",children:v}),h&&!v&&m.jsx("p",{className:"text-muted-foreground text-xs",children:h}),y&&m.jsx("div",{className:"text-muted-foreground text-xs",children:y})]})]})}let eX=0;function p4({name:n,children:o,initialValue:s}){const{control:i}=rf.useFormContext(),{fields:d,append:f,insert:h,remove:y,move:v}=rf.useFieldArray({control:i,name:n}),x=S.useRef(new Map),C=d.map((O,j)=>{const D=O.id;return x.current.has(D)||x.current.set(D,eX++),{name:j,key:x.current.get(D)}});S.useEffect(()=>{const O=new Set(d.map(j=>j.id));for(const j of x.current.keys())O.has(j)||x.current.delete(j)},[d]);const w=S.useRef(!1);S.useEffect(()=>{if(s&&!w.current&&d.length===0){w.current=!0;for(const O of s)f(O)}},[s,d.length,f]);const N=S.useMemo(()=>({add:(O,j)=>{const D=O??{};j!==void 0?h(j,D):f(D)},remove:O=>{if(Array.isArray(O)){const j=[...O].sort((D,A)=>A-D);for(const D of j)y(D)}else y(O)},move:(O,j)=>{v(O,j)}}),[f,h,y,v]),R=S.useMemo(()=>({errors:[]}),[]);return m.jsx(m.Fragment,{children:o(C,N,R)})}p4.displayName="FormList";function h4({errors:n,className:o}){return!n||n.length===0?null:m.jsx("ul",{className:$("orizon-form-error-list","list-none p-0 m-0 space-y-1",o),role:"alert",children:n.map((s,i)=>m.jsx("li",{className:"text-destructive text-xs",children:s},i))})}h4.displayName="FormErrorList";function tX(n={}){const{schema:o,defaultValues:s}=n;return[rf.useForm({...o?{resolver:L6.zodResolver(o)}:{},defaultValues:s,mode:"onTouched"})]}const Cy=f4;Cy.Item=m4;Cy.List=p4;Cy.ErrorList=h4;Cy.useForm=tX;Cy.useWatch=rf.useWatch;const cD={small:"h-7 text-xs",middle:"h-9 text-sm",large:"h-11 text-base"},uD={small:"size-3",middle:"size-3.5",large:"size-4"},nX={error:"border-destructive focus-within:border-destructive focus-within:ring-destructive/20",warning:"border-yellow-500 focus-within:border-yellow-500 focus-within:ring-yellow-500/20"},aX={outlined:"",borderless:"border-transparent shadow-none focus-within:ring-0",filled:"border-transparent bg-muted focus-within:border-ring"};function pr(n){const o=Number(n);return Number.isNaN(o)?0:o}function dD(n,o,s){let i=n;return o!==void 0&&i<o&&(i=o),s!==void 0&&i>s&&(i=s),i}function A2(n,o){return o===void 0?n:Number(n.toFixed(o))}const g4=S.forwardRef((n,o)=>{const{value:s,defaultValue:i,onChange:d,min:f,max:h,step:y=1,precision:v,formatter:x,parser:C,controls:w=!0,addonBefore:N,addonAfter:R,prefix:O,suffix:j,size:D,status:A,variant:z="outlined",disabled:B=!1,readOnly:U=!1,placeholder:L,keyboard:k=!0,changeOnWheel:V=!1,className:H,style:K,onStep:Z,onPressEnter:Q}=n,G=Ws(D),[q,W]=S.useState(i??null),te=s!==void 0,Y=te?s??null:q,[P,F]=S.useState(!1),[ee,oe]=S.useState("");S.useEffect(()=>{if(!P)if(Y==null)oe("");else{const ae=v!==void 0?A2(pr(Y),v):pr(Y),ue=x?x(ae,{userTyping:!1,input:String(ae)}):String(ae);oe(ue)}},[Y,v,x,P]);const we=S.useCallback(ae=>{let ue=ae;ue!==null&&(ue=dD(ue,f,h),ue=A2(ue,v)),te||W(ue),d?.(ue)},[te,d,f,h,v]),se=S.useCallback(ae=>{if(B||U)return;const ue=Y===null?0:pr(Y),be=pr(y),ie=ae==="up"?be:-be,Oe=ue+ie;we(Oe),Z?.(Oe,{offset:be,type:ae})},[B,U,Y,y,we,Z]),Ce=S.useCallback(ae=>{F(!0);const ue=ae.target.value;if(oe(ue),ue===""||ue==="-"){ue===""&&we(null);return}const be=C?C(ue):pr(ue),ie=pr(be);Number.isNaN(ie)||we(ie)},[C,we]),re=S.useCallback(()=>{if(F(!1),Y!=null){const ae=dD(A2(pr(Y),v),f,h);ae!==pr(Y)&&we(ae)}},[Y,f,h,v,we]),he=S.useCallback(ae=>{ae.key==="Enter"&&Q?.(ae),k&&(ae.key==="ArrowUp"?(ae.preventDefault(),se("up")):ae.key==="ArrowDown"&&(ae.preventDefault(),se("down")))},[k,se,Q]),le=S.useCallback(ae=>{!V||B||U||(ae.preventDefault(),ae.deltaY<0?se("up"):ae.deltaY>0&&se("down"))},[V,B,U,se]),Se=w!==!1,ze=typeof w=="object"&&w.upIcon?w.upIcon:m.jsx(bN,{className:$(uD[G])}),je=typeof w=="object"&&w.downIcon?w.downIcon:m.jsx(py,{className:$(uD[G])}),ve=h!==void 0&&Y!==null&&pr(Y)>=pr(h),fe=f!==void 0&&Y!==null&&pr(Y)<=pr(f),ce="inline-flex items-center justify-center border border-input bg-muted px-3 text-sm text-muted-foreground";return m.jsxs("div",{className:$("inline-flex items-stretch",H),style:K,children:[N&&m.jsx("span",{className:$(ce,"rounded-l-md border-r-0"),children:N}),m.jsxs("div",{className:$("relative inline-flex w-full items-center rounded-md border border-input bg-background ring-offset-background transition-colors","focus-within:ring-2 focus-within:ring-ring/20 focus-within:border-ring",cD[G],A&&nX[A],aX[z],B&&"cursor-not-allowed opacity-50",N&&"rounded-l-none",R&&"rounded-r-none"),children:[O&&m.jsx("span",{className:"flex items-center pl-3 text-muted-foreground",children:O}),m.jsx("input",{ref:o,type:"text",inputMode:"decimal",role:"spinbutton","aria-valuemin":f,"aria-valuemax":h,"aria-valuenow":Y!==null?pr(Y):void 0,value:ee,onChange:Ce,onBlur:re,onKeyDown:he,onWheel:le,disabled:B,readOnly:U,placeholder:L,className:$("w-full flex-1 bg-transparent px-3 text-right outline-none","placeholder:text-muted-foreground",B&&"cursor-not-allowed",cD[G])}),j&&m.jsx("span",{className:"flex items-center pr-3 text-muted-foreground",children:j}),Se&&!B&&!U&&m.jsxs("div",{className:"flex flex-col border-l border-input",children:[m.jsx("button",{type:"button",tabIndex:-1,disabled:ve,onClick:()=>se("up"),className:$("flex flex-1 items-center justify-center px-1 text-muted-foreground transition-colors","hover:text-foreground hover:bg-muted",ve&&"cursor-not-allowed opacity-30"),"aria-label":"Increase value",children:ze}),m.jsx("div",{className:"h-px bg-border"}),m.jsx("button",{type:"button",tabIndex:-1,disabled:fe,onClick:()=>se("down"),className:$("flex flex-1 items-center justify-center px-1 text-muted-foreground transition-colors","hover:text-foreground hover:bg-muted",fe&&"cursor-not-allowed opacity-30"),"aria-label":"Decrease value",children:je})]})]}),R&&m.jsx("span",{className:$(ce,"rounded-r-md border-l-0"),children:R})]})});g4.displayName="InputNumber";const oX=g4,lX={small:"h-7 text-xs",middle:"h-9 text-sm",large:"h-11 text-base"},y4=S.forwardRef((n,o)=>{const{options:s=[],value:i,defaultValue:d,onChange:f,onSelect:h,onSearch:y,onClear:v,allowClear:x=!1,placeholder:C,disabled:w=!1,defaultOpen:N=!1,open:R,onDropdownVisibleChange:O,filterOption:j=!0,defaultActiveFirstOption:D=!0,backfill:A=!1,size:z="middle",status:B,variant:U="outlined",notFoundContent:L,popupClassName:k,popupMatchSelectWidth:V=!0,className:H,style:K}=n,[Z,Q]=S.useState(d??""),G=i!==void 0,q=G?i:Z,[W,te]=S.useState(N),Y=R!==void 0,P=Y?R:W,[F,ee]=S.useState(-1),oe=S.useRef(null),we=S.useRef(null),se=S.useMemo(()=>j===!1?s:s.filter(ae=>typeof j=="function"?j(q,ae):(ae.label!=null?String(ae.label):ae.value).toLowerCase().includes(q.toLowerCase())),[s,q,j]),Ce=S.useCallback(ae=>{Y||te(ae),O?.(ae)},[Y,O]),re=S.useCallback(ae=>{G||Q(ae),f?.(ae)},[G,f]);S.useEffect(()=>{D&&se.length>0?ee(0):ee(-1)},[se,D]);const he=S.useCallback(ae=>{const ue=ae.target.value;re(ue),y?.(ue),P||Ce(!0)},[re,y,P,Ce]),le=S.useCallback(ae=>{ae.disabled||(re(ae.value),h?.(ae.value,ae),Ce(!1),ee(-1),oe.current?.blur())},[re,h,Ce]),Se=S.useCallback(ae=>{ae.stopPropagation(),ae.preventDefault(),re(""),v?.(),oe.current?.focus()},[re,v]),ze=S.useCallback(ae=>{if(!P){if(ae.key==="ArrowDown"||ae.key==="ArrowUp"){Ce(!0);return}return}const ue=se.filter(ie=>!ie.disabled),be=se.map((ie,Oe)=>ie.disabled?-1:Oe).filter(ie=>ie!==-1);if(ae.key==="ArrowDown"){ae.preventDefault();const ie=be.indexOf(F),Oe=ie<be.length-1?be[ie+1]:be[0];if(ee(Oe),A&&ue.length>0){const de=se[Oe];de&&re(de.value)}}else if(ae.key==="ArrowUp"){ae.preventDefault();const ie=be.indexOf(F),Oe=ie>0?be[ie-1]:be[be.length-1];if(ee(Oe),A&&ue.length>0){const de=se[Oe];de&&re(de.value)}}else if(ae.key==="Enter"){if(ae.preventDefault(),F>=0&&F<se.length){const ie=se[F];ie&&!ie.disabled&&le(ie)}}else ae.key==="Escape"&&(Ce(!1),ee(-1))},[P,se,F,A,re,Ce,le]),je=S.useCallback(()=>{w||Ce(!0)},[w,Ce]),ve=S.useCallback(ae=>{const ue=ae.relatedTarget;we.current?.contains(ue)||(Ce(!1),ee(-1))},[Ce]);S.useEffect(()=>{if(F>=0&&we.current){const ae=we.current.querySelector(`[data-index="${F}"]`);ae&&ae.scrollIntoView({block:"nearest"})}},[F]);const fe=x&&!w&&q&&q.length>0,ce=P&&!w&&(se.length>0||L!=null);return m.jsxs("div",{ref:o,className:$("relative inline-block w-full",H),style:K,onBlur:ve,children:[m.jsxs("div",{className:"relative flex items-center",children:[m.jsx("input",{ref:oe,type:"text",role:"combobox","aria-expanded":P,"aria-haspopup":"listbox","aria-autocomplete":"list",value:q,onChange:he,onFocus:je,onKeyDown:ze,placeholder:C,disabled:w,className:$("w-full rounded-lg border border-input bg-transparent px-3 text-foreground outline-none transition-colors","placeholder:text-muted-foreground","focus:border-ring focus:ring-3 focus:ring-ring/50",w&&"cursor-not-allowed opacity-50",lX[z],B==="error"&&"border-destructive focus:border-destructive focus:ring-destructive/20",B==="warning"&&"border-yellow-500 focus:border-yellow-500 focus:ring-yellow-500/20",U==="borderless"&&"border-0 shadow-none focus:ring-0",U==="filled"&&"border-transparent bg-muted focus:border-ring",fe&&"pr-8")}),fe&&m.jsx("span",{role:"button",tabIndex:-1,className:"absolute right-2 inline-flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground hover:text-foreground",onClick:Se,onMouseDown:ae=>ae.preventDefault(),children:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M18 6 6 18"}),m.jsx("path",{d:"m6 6 12 12"})]})})]}),ce&&m.jsx("div",{ref:we,role:"listbox",tabIndex:-1,className:$("absolute z-50 mt-1 max-h-60 overflow-auto rounded-lg bg-popover shadow-md ring-1 ring-foreground/10",V===!0&&"w-full",typeof V=="number"&&`w-[${V}px]`,V===!1&&"w-auto min-w-[120px]",k),children:se.length>0?se.map((ae,ue)=>m.jsx("div",{"data-index":ue,role:"option","aria-selected":ue===F,className:$("relative flex cursor-default items-center px-3 py-1.5 text-sm outline-hidden select-none","hover:bg-accent hover:text-accent-foreground",ae.disabled&&"pointer-events-none opacity-50",ue===F&&"bg-accent text-accent-foreground"),onMouseDown:be=>{be.preventDefault(),le(ae)},onMouseEnter:()=>{ae.disabled||ee(ue)},children:ae.label??ae.value},ae.value)):m.jsx("div",{className:"px-3 py-4 text-center text-sm text-muted-foreground",children:L})})]})});y4.displayName="AutoComplete";const rX=y4;function sX({className:n}){return m.jsx("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"m6 9 6 6 6-6"})})}function iX({className:n}){return m.jsx("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"m9 18 6-6-6-6"})})}function fD({className:n,onClick:o}){return m.jsxs("svg",{className:n,onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M18 6 6 18"}),m.jsx("path",{d:"m6 6 12 12"})]})}function cX({className:n}){return m.jsx("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("polyline",{points:"20 6 9 17 4 12"})})}function uX(n){return{label:n?.label??"label",value:n?.value??"value",children:n?.children??"children"}}function fu(n,o){return n[o]}function Vv(n,o){return n[o]}function ly(n,o){return n[o]}function mD(n,o,s,i){const d=[];let f=n;for(const h of o){const y=f.find(x=>fu(x,s)===h);if(!y)break;d.push(y);const v=ly(y,i);if(v)f=v;else break}return d}function b4(n,o,s,i,d=[]){const f=[];for(const h of n){const y=[...d,h],v=ly(h,i);v&&v.length>0?f.push(...b4(v,o,s,i,y)):f.push(y)}return f}const dX=({options:n,activeValue:o,selectedValues:s,valueKey:i,labelKey:d,childrenKey:f,expandTrigger:h,onSelect:y,onExpand:v,multiple:x,onCheck:C})=>m.jsx("div",{className:"min-w-[120px] max-h-[280px] overflow-y-auto border-r border-border last:border-r-0",children:n.map(w=>{const N=fu(w,i),R=Vv(w,d),O=ly(w,f),j=O&&O.length>0&&!w.isLeaf,D=o===N,A=s.has(N);return m.jsxs("div",{className:$("flex cursor-pointer items-center gap-1.5 px-3 py-1.5 text-sm",D&&"bg-primary/10 font-medium text-primary",w.disabled&&"cursor-not-allowed opacity-50",!w.disabled&&!D&&"hover:bg-muted/50"),onClick:()=>{w.disabled||(x&&C?C(w,!A):j?v(w):y(w))},onMouseEnter:()=>{h==="hover"&&j&&!w.disabled&&v(w)},children:[x&&m.jsx("input",{type:"checkbox",className:"size-4 shrink-0 rounded border-input accent-primary",checked:A,disabled:w.disabled,onChange:z=>{z.stopPropagation(),C&&C(w,z.target.checked)},onClick:z=>z.stopPropagation()}),m.jsx("span",{className:"min-w-0 flex-1 truncate",children:R}),!x&&A&&!j&&m.jsx(cX,{className:"size-3.5 shrink-0 text-primary"}),j&&m.jsx(iX,{className:"size-3.5 shrink-0 text-muted-foreground"})]},String(N))})}),fX=({paths:n,labelKey:o,onSelect:s})=>n.length===0?m.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No results"}):m.jsx("div",{className:"max-h-[280px] overflow-y-auto",children:n.map((i,d)=>{const f=i.map(h=>String(Vv(h,o)??""));return m.jsx("div",{className:"cursor-pointer px-3 py-1.5 text-sm hover:bg-muted/50",onClick:()=>s(i),children:f.join(" / ")},d)})}),v4=S.forwardRef((n,o)=>{const{options:s=[],value:i,defaultValue:d,onChange:f,multiple:h=!1,expandTrigger:y="click",fieldNames:v,showSearch:x=!1,changeOnSelect:C=!1,displayRender:w,loadData:N,placeholder:R="Please select",size:O="middle",status:j,variant:D="outlined",allowClear:A=!1,disabled:z=!1,maxTagCount:B,className:U,style:L}=n,k=uX(v),[V,H]=S.useState(!1),[K,Z]=S.useState(""),Q=x===!0||typeof x=="object"&&x!==null,[G,q]=S.useState(()=>d??[]),W=i!==void 0?i:G,[te,Y]=S.useState(new Set),[P,F]=S.useState([]),ee=S.useRef(null);S.useEffect(()=>{if(!V)return;const be=ie=>{ee.current&&!ee.current.contains(ie.target)&&(H(!1),Z(""),F([]))};return document.addEventListener("mousedown",be),()=>document.removeEventListener("mousedown",be)},[V]);const oe=S.useMemo(()=>{const be=[s];for(const ie of P){const Oe=ly(ie,k.children);Oe&&Oe.length>0&&be.push(Oe)}return be},[s,P,k.children]),we=S.useMemo(()=>P.map(be=>fu(be,k.value)),[P,k.value]),se=S.useMemo(()=>h?te:new Set(W),[h,te,W]),Ce=S.useMemo(()=>{if(!K)return[];const be=b4(s,k.value,k.label,k.children);if(typeof x=="object"&&x.filter)return be.filter(Oe=>x.filter(K,Oe));const ie=K.toLowerCase();return be.filter(Oe=>Oe.some(de=>String(Vv(de,k.label)??"").toLowerCase().includes(ie)))},[K,s,k,x]),re=S.useCallback((be,ie)=>{const Oe=[...P.slice(0,ie),be];F(Oe);const de=ly(be,k.children);if(N&&!be.isLeaf&&(!de||de.length===0)){const Me=mD(s,Oe.map(Re=>fu(Re,k.value)),k.value,k.children);N(Me)}if(C&&!h){const Me=Oe.map(Re=>fu(Re,k.value));i===void 0&&q(Me),f?.(Me,Oe)}},[P,k,N,s,C,h,i,f]),he=S.useCallback((be,ie)=>{const Oe=[...P.slice(0,ie),be],de=Oe.map(Me=>fu(Me,k.value));h||(i===void 0&&q(de),f?.(de,Oe),H(!1),Z(""),F([]))},[P,k,h,i,f]),le=S.useCallback(be=>{const ie=be.map(Oe=>fu(Oe,k.value));i===void 0&&q(ie),f?.(ie,be),H(!1),Z(""),F([])},[k,i,f]),Se=S.useCallback((be,ie)=>{const Oe=fu(be,k.value);Y(de=>{const Me=new Set(de);return ie?Me.add(Oe):Me.delete(Oe),Me})},[k]),ze=S.useCallback((be,ie)=>{ie.stopPropagation(),Y(Oe=>{const de=new Set(Oe);return de.delete(be),de})},[]),je=S.useCallback(be=>{be.stopPropagation(),h?Y(new Set):(i===void 0&&q([]),f?.([],[]))},[h,i,f]),ve=S.useMemo(()=>{if(h||W.length===0)return null;const be=mD(s,W,k.value,k.children),ie=be.map(Oe=>String(Vv(Oe,k.label)??""));return w?w(ie,be):ie.join(" / ")},[h,W,s,k,w]),fe=S.useMemo(()=>h?Array.from(te).map(be=>{const ie=(function Oe(de){for(const Me of de){if(fu(Me,k.value)===be)return Me;const Re=ly(Me,k.children);if(Re){const De=Oe(Re);if(De)return De}}})(s);return{value:be,label:ie?Vv(ie,k.label):String(be)}}):[],[h,te,s,k]),ce=typeof B=="number"?fe.slice(0,B):fe,ae=typeof B=="number"?Math.max(0,fe.length-B):0,ue=h?te.size>0:W.length>0;return m.jsxs("div",{ref:be=>{ee.current=be,typeof o=="function"?o(be):o&&(o.current=be)},className:$("relative inline-block w-full",U),style:L,children:[m.jsxs("div",{role:"combobox","aria-expanded":V,"aria-haspopup":"listbox",tabIndex:z?-1:0,onClick:()=>!z&&H(!V),onKeyDown:be=>{(be.key==="Enter"||be.key===" ")&&!z&&(be.preventDefault(),H(!V))},className:$("flex min-h-[32px] w-full flex-wrap items-center gap-1 rounded-lg border border-input bg-transparent px-2 py-1 text-sm transition-colors outline-none","focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50",z&&"cursor-not-allowed opacity-50",j==="error"&&"border-destructive focus-within:border-destructive focus-within:ring-destructive/20",j==="warning"&&"border-yellow-500 focus-within:border-yellow-500 focus-within:ring-yellow-500/20",D==="borderless"&&"border-0 shadow-none",D==="filled"&&"border-0 bg-muted",O==="large"&&"min-h-[40px] text-base",O==="small"&&"min-h-[28px] text-xs"),children:[h?m.jsxs(m.Fragment,{children:[ce.map(be=>m.jsxs("span",{className:"inline-flex items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-xs",children:[m.jsx("span",{className:"max-w-[100px] truncate",children:be.label}),!z&&m.jsx(fD,{className:"size-3 cursor-pointer text-muted-foreground hover:text-foreground",onClick:ie=>ze(be.value,ie)})]},String(be.value))),ae>0&&m.jsxs("span",{className:"inline-flex items-center rounded bg-muted px-1.5 py-0.5 text-xs text-muted-foreground",children:["+",ae]}),Q&&m.jsx("input",{className:"min-w-[60px] flex-1 border-none bg-transparent text-sm outline-none placeholder:text-muted-foreground",placeholder:fe.length===0?R:void 0,value:K,onChange:be=>Z(be.target.value),onClick:be=>{be.stopPropagation(),V||H(!0)},disabled:z}),!Q&&fe.length===0&&m.jsx("span",{className:"text-muted-foreground",children:R})]}):m.jsx(m.Fragment,{children:Q&&V?m.jsx("input",{className:"min-w-0 flex-1 border-none bg-transparent text-sm outline-none placeholder:text-muted-foreground",placeholder:ve?String(ve):R,value:K,onChange:be=>Z(be.target.value),onClick:be=>be.stopPropagation(),autoFocus:!0,disabled:z}):ve?m.jsx("span",{className:"min-w-0 flex-1 truncate text-sm",children:ve}):m.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-muted-foreground",children:R})}),m.jsxs("span",{className:"ml-auto flex shrink-0 items-center gap-1",children:[A&&ue&&!z&&m.jsx("span",{role:"button",tabIndex:-1,className:"inline-flex size-3.5 items-center justify-center rounded-full text-muted-foreground hover:text-foreground",onClick:je,onMouseDown:be=>be.preventDefault(),children:m.jsx(fD,{className:"size-3"})}),m.jsx(sX,{className:$("size-4 text-muted-foreground transition-transform",V&&"rotate-180")})]})]}),V&&!z&&m.jsx("div",{className:"absolute z-50 mt-1 rounded-lg bg-popover shadow-md ring-1 ring-foreground/10",children:Q&&K?m.jsx(fX,{paths:Ce,labelKey:k.label,onSelect:le}):m.jsx("div",{className:"flex",children:oe.map((be,ie)=>m.jsx(dX,{options:be,activeValue:we[ie],selectedValues:se,valueKey:k.value,labelKey:k.label,childrenKey:k.children,expandTrigger:y,multiple:h,onExpand:Oe=>re(Oe,ie),onSelect:Oe=>he(Oe,ie),onCheck:h?Se:void 0},ie))})})]})});v4.displayName="Cascader";const mX=v4,pX=["Su","Mo","Tu","We","Th","Fr","Sa"],hX=["January","February","March","April","May","June","July","August","September","October","November","December"];function x4(n,o){return new Date(n,o+1,0).getDate()}function S4(n,o){return new Date(n,o,1).getDay()}function Yw(n,o){return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()&&n.getDate()===o.getDate()}function w4(n){return Yw(n,new Date)}function Tv(n){return n<10?`0${n}`:`${n}`}function Yi(n,o){let s=o;return s=s.replace("YYYY",String(n.getFullYear())),s=s.replace("MM",Tv(n.getMonth()+1)),s=s.replace("DD",Tv(n.getDate())),s=s.replace("HH",Tv(n.getHours())),s=s.replace("mm",Tv(n.getMinutes())),s=s.replace("ss",Tv(n.getSeconds())),s}const gX={small:"h-7 text-xs px-2",middle:"h-9 text-sm px-3",large:"h-11 text-base px-3"},yX={error:"border-destructive focus-within:border-destructive focus-within:ring-destructive/20",warning:"border-yellow-500 focus-within:border-yellow-500 focus-within:ring-yellow-500/20"},bX={outlined:"border border-input",borderless:"border-0 shadow-none",filled:"border-0 bg-muted"},C4=S.forwardRef((n,o)=>{const{value:s,defaultValue:i,onChange:d,format:f="YYYY-MM-DD",showToday:h=!0,disabled:y=!1,disabledDate:v,placeholder:x="Select date",size:C="middle",status:w,variant:N="outlined",allowClear:R=!0,presets:O,suffixIcon:j,className:D,style:A,open:z,onOpenChange:B,popupClassName:U,popupStyle:L}=n,[k,V]=S.useState(i??null),H=s!==void 0?s??null:k,[K,Z]=S.useState(!1),Q=z!==void 0?z:K,G=S.useCallback(le=>{z===void 0&&Z(le),B?.(le)},[z,B]),[q,W]=S.useState(()=>(H??new Date).getFullYear()),[te,Y]=S.useState(()=>(H??new Date).getMonth()),P=S.useRef(null);S.useEffect(()=>{if(!Q)return;const le=Se=>{P.current&&!P.current.contains(Se.target)&&G(!1)};return document.addEventListener("mousedown",le),()=>document.removeEventListener("mousedown",le)},[Q,G]);const F=S.useCallback(le=>{const Se=new Date(q,te,le);v?.(Se)||(s===void 0&&V(Se),d?.(Se,Yi(Se,f)),G(!1))},[q,te,v,s,d,f,G]),ee=S.useCallback(le=>{le.stopPropagation(),s===void 0&&V(null),d?.(null,"")},[s,d]),oe=S.useCallback(()=>{te===0?(Y(11),W(le=>le-1)):Y(le=>le-1)},[te]),we=S.useCallback(()=>{te===11?(Y(0),W(le=>le+1)):Y(le=>le+1)},[te]),se=x4(q,te),Ce=S4(q,te),re=[];for(let le=0;le<Ce;le++)re.push(null);for(let le=1;le<=se;le++)re.push(le);const he=H?Yi(H,f):"";return m.jsxs("div",{ref:le=>{P.current=le,typeof o=="function"?o(le):o&&(o.current=le)},className:$("relative inline-block",D),style:A,children:[m.jsxs("div",{role:"button",tabIndex:y?-1:0,onClick:()=>!y&&G(!Q),onKeyDown:le=>{(le.key==="Enter"||le.key===" ")&&!y&&(le.preventDefault(),G(!Q))},className:$("inline-flex w-full items-center gap-2 rounded-lg bg-transparent transition-colors outline-none","focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50",y&&"cursor-not-allowed opacity-50",gX[C],bX[N],w&&yX[w]),children:[m.jsx("span",{className:$("flex-1 truncate text-left",!he&&"text-muted-foreground"),children:he||x}),R&&H&&!y?m.jsx(go,{className:"size-4 shrink-0 text-muted-foreground hover:text-foreground",onClick:ee}):null,j??m.jsx(jD,{className:"size-4 shrink-0 text-muted-foreground"})]}),Q&&!y&&m.jsxs("div",{className:$("absolute z-50 mt-1 w-[280px] rounded-lg border bg-popover p-3 shadow-md",U),style:L,children:[O&&O.length>0&&m.jsx("div",{className:"mb-2 flex flex-wrap gap-1 border-b pb-2",children:O.map((le,Se)=>m.jsx("button",{type:"button",className:"rounded-md bg-muted px-2 py-0.5 text-xs hover:bg-accent",onClick:()=>{const ze=le.value;s===void 0&&V(ze),d?.(ze,Yi(ze,f)),G(!1)},children:le.label},Se))}),m.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[m.jsx("button",{type:"button",className:"inline-flex size-7 items-center justify-center rounded-md hover:bg-accent",onClick:oe,children:m.jsx(vu,{className:"size-4"})}),m.jsxs("span",{className:"text-sm font-medium",children:[hX[te]," ",q]}),m.jsx("button",{type:"button",className:"inline-flex size-7 items-center justify-center rounded-md hover:bg-accent",onClick:we,children:m.jsx(xr,{className:"size-4"})})]}),m.jsx("div",{className:"mb-1 grid grid-cols-7 text-center text-xs text-muted-foreground",children:pX.map(le=>m.jsx("div",{className:"py-1",children:le},le))}),m.jsx("div",{className:"grid grid-cols-7 text-center text-sm",children:re.map((le,Se)=>{if(le===null)return m.jsx("div",{},`empty-${Se}`);const ze=new Date(q,te,le),je=v?.(ze)??!1,ve=H!==null&&Yw(ze,H),fe=w4(ze);return m.jsx("button",{type:"button",disabled:je,onClick:()=>F(le),className:$("inline-flex size-8 items-center justify-center rounded-md text-sm transition-colors","hover:bg-accent hover:text-accent-foreground",je&&"pointer-events-none text-muted-foreground opacity-50",ve&&"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground",fe&&!ve&&"border border-primary text-primary"),children:le},le)})}),h&&m.jsx("div",{className:"mt-2 border-t pt-2 text-center",children:m.jsx("button",{type:"button",className:"text-xs text-primary hover:text-primary/80",onClick:()=>{const le=new Date;v?.(le)||(W(le.getFullYear()),Y(le.getMonth()),s===void 0&&V(le),d?.(le,Yi(le,f)),G(!1))},children:"Today"})})]})]})});C4.displayName="DatePicker";const vX=["Su","Mo","Tu","We","Th","Fr","Sa"],xX=["January","February","March","April","May","June","July","August","September","October","November","December"],SX={small:"h-7 text-xs px-2",middle:"h-9 text-sm px-3",large:"h-11 text-base px-3"},wX={error:"border-destructive focus-within:border-destructive focus-within:ring-destructive/20",warning:"border-yellow-500 focus-within:border-yellow-500 focus-within:ring-yellow-500/20"},CX={outlined:"border border-input",borderless:"border-0 shadow-none",filled:"border-0 bg-muted"};function EX(n,o,s){if(!o||!s)return!1;const i=n.getTime();return i>o.getTime()&&i<s.getTime()}function pD({year:n,month:o,onPrev:s,onNext:i,rangeStart:d,rangeEnd:f,hoverDate:h,onSelect:y,onHover:v,disabledDate:x}){const C=x4(n,o),w=S4(n,o),N=[];for(let O=0;O<w;O++)N.push(null);for(let O=1;O<=C;O++)N.push(O);const R=f??h;return m.jsxs("div",{className:"w-[250px]",children:[m.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[m.jsx("button",{type:"button",className:"inline-flex size-7 items-center justify-center rounded-md hover:bg-accent",onClick:s,children:m.jsx(vu,{className:"size-4"})}),m.jsxs("span",{className:"text-sm font-medium",children:[xX[o]," ",n]}),m.jsx("button",{type:"button",className:"inline-flex size-7 items-center justify-center rounded-md hover:bg-accent",onClick:i,children:m.jsx(xr,{className:"size-4"})})]}),m.jsx("div",{className:"mb-1 grid grid-cols-7 text-center text-xs text-muted-foreground",children:vX.map(O=>m.jsx("div",{className:"py-1",children:O},O))}),m.jsx("div",{className:"grid grid-cols-7 text-center text-sm",children:N.map((O,j)=>{if(O===null)return m.jsx("div",{},`empty-${j}`);const D=new Date(n,o,O),A=x?.(D)??!1,z=d!==null&&Yw(D,d),B=R!==null&&Yw(D,R),U=EX(D,d,R&&d&&R>=d?R:null),L=w4(D);return m.jsx("button",{type:"button",disabled:A,onClick:()=>y(D),onMouseEnter:()=>v(D),onMouseLeave:()=>v(null),className:$("inline-flex size-8 items-center justify-center rounded-md text-sm transition-colors","hover:bg-accent hover:text-accent-foreground",A&&"pointer-events-none text-muted-foreground opacity-50",(z||B)&&"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground",U&&"bg-primary/10",L&&!z&&!B&&"border border-primary text-primary"),children:O},O)})})]})}const E4=S.forwardRef((n,o)=>{const{value:s,defaultValue:i,onChange:d,format:f="YYYY-MM-DD",disabled:h=!1,disabledDate:y,placeholder:v=["Start date","End date"],size:x="middle",status:C,variant:w="outlined",allowClear:N=!0,presets:R,separator:O,className:j,style:D}=n,A=Array.isArray(h)?h[0]:h,z=Array.isArray(h)?h[1]:h,B=A&&z,[U,L]=S.useState(i??[null,null]),k=s!==void 0?s:U,[V,H]=S.useState(!1),[K,Z]=S.useState("start"),[Q,G]=S.useState(k[0]),[q,W]=S.useState(null),te=new Date,[Y,P]=S.useState(()=>(k[0]??te).getFullYear()),[F,ee]=S.useState(()=>(k[0]??te).getMonth()),oe=F===11?Y+1:Y,we=F===11?0:F+1,se=S.useRef(null);S.useEffect(()=>{if(!V)return;const ve=fe=>{se.current&&!se.current.contains(fe.target)&&H(!1)};return document.addEventListener("mousedown",ve),()=>document.removeEventListener("mousedown",ve)},[V]);const Ce=S.useCallback(ve=>{if(K==="start")G(ve),Z("end");else{let fe=Q,ce=ve;fe&&ce<fe&&([fe,ce]=[ce,fe]);const ae=[fe,ce];s===void 0&&L(ae),d?.(ae,[fe?Yi(fe,f):"",ce?Yi(ce,f):""]),H(!1),Z("start"),G(null)}},[K,Q,s,d,f]),re=S.useCallback(ve=>{ve.stopPropagation();const fe=[null,null];s===void 0&&L(fe),d?.(fe,["",""])},[s,d]),he=S.useCallback(()=>{F===0?(ee(11),P(ve=>ve-1)):ee(ve=>ve-1)},[F]),le=S.useCallback(()=>{F===11?(ee(0),P(ve=>ve+1)):ee(ve=>ve+1)},[F]),Se=k[0]?Yi(k[0],f):"",ze=k[1]?Yi(k[1],f):"",je=k[0]!==null||k[1]!==null;return m.jsxs("div",{ref:ve=>{se.current=ve,typeof o=="function"?o(ve):o&&(o.current=ve)},className:$("relative inline-block",j),style:D,children:[m.jsxs("div",{role:"button",tabIndex:B?-1:0,onClick:()=>{B||(H(!V),Z("start"),G(k[0]))},onKeyDown:ve=>{(ve.key==="Enter"||ve.key===" ")&&!B&&(ve.preventDefault(),H(!V))},className:$("inline-flex w-full items-center gap-1 rounded-lg bg-transparent transition-colors outline-none","focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50",B&&"cursor-not-allowed opacity-50",SX[x],CX[w],C&&wX[C]),children:[m.jsx("span",{className:$("truncate",!Se&&"text-muted-foreground"),children:Se||v[0]}),m.jsx("span",{className:"text-muted-foreground",children:O??"~"}),m.jsx("span",{className:$("truncate",!ze&&"text-muted-foreground"),children:ze||v[1]}),m.jsxs("span",{className:"ml-auto flex shrink-0 items-center gap-1",children:[N&&je&&!B?m.jsx(go,{className:"size-4 text-muted-foreground hover:text-foreground",onClick:re}):null,m.jsx(jD,{className:"size-4 text-muted-foreground"})]})]}),V&&!B&&m.jsxs("div",{className:"absolute z-50 mt-1 rounded-lg border bg-popover p-3 shadow-md",children:[R&&R.length>0&&m.jsx("div",{className:"mb-2 flex flex-wrap gap-1 border-b pb-2",children:R.map((ve,fe)=>m.jsx("button",{type:"button",className:"rounded-md bg-muted px-2 py-0.5 text-xs hover:bg-accent",onClick:()=>{const ce=ve.value,ae=[ce,k[1]];s===void 0&&L(ae),d?.(ae,[Yi(ce,f),k[1]?Yi(k[1],f):""]),H(!1)},children:ve.label},fe))}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx(pD,{year:Y,month:F,onPrev:he,onNext:le,rangeStart:K==="end"?Q:k[0],rangeEnd:K==="end"?null:k[1],hoverDate:K==="end"?q:null,onSelect:Ce,onHover:W,disabledDate:y}),m.jsx(pD,{year:oe,month:we,onPrev:he,onNext:le,rangeStart:K==="end"?Q:k[0],rangeEnd:K==="end"?null:k[1],hoverDate:K==="end"?q:null,onSelect:Ce,onHover:W,disabledDate:y})]})]})]})});E4.displayName="RangePicker";const N4=C4;N4.RangePicker=E4;function du(n){return n<10?`0${n}`:`${n}`}function Wg(n,o,s){let i=n.getHours();const d=n.getMinutes(),f=n.getSeconds();let h=o;if(s){const y=i>=12?"PM":"AM",v=i%12||12;h=h.replace("hh",du(v)),h=h.replace("HH",du(v)),h=h.replace("mm",du(d)),h=h.replace("ss",du(f)),h=h.replace("A",y),h=h.replace("a",y.toLowerCase())}else h=h.replace("HH",du(i)),h=h.replace("hh",du(i)),h=h.replace("mm",du(d)),h=h.replace("ss",du(f));return h}function iw(n,o){const s=[];for(let i=0;i<n;i+=o)s.push(i);return s}const NX={small:"h-7 text-xs px-2",middle:"h-9 text-sm px-3",large:"h-11 text-base px-3"},TX={error:"border-destructive focus-within:border-destructive focus-within:ring-destructive/20",warning:"border-yellow-500 focus-within:border-yellow-500 focus-within:ring-yellow-500/20"},MX={outlined:"border border-input",borderless:"border-0 shadow-none",filled:"border-0 bg-muted"};function z2({items:n,selectedValue:o,onSelect:s,disabledValues:i,hideDisabled:d,renderItem:f}){const h=S.useRef(null);S.useEffect(()=>{if(!h.current)return;const v=n.indexOf(o);v>=0&&h.current.children[v]?.scrollIntoView({block:"nearest"})},[o,n]);const y=d?n.filter(v=>!i.includes(v)):n;return m.jsx("div",{ref:h,className:"flex h-[200px] w-14 flex-col overflow-y-auto border-r last:border-r-0",children:y.map(v=>{const x=i.includes(v),C=v===o;return m.jsx("button",{type:"button",disabled:x,onClick:()=>s(v),className:$("shrink-0 px-2 py-1 text-center text-sm transition-colors","hover:bg-accent hover:text-accent-foreground",x&&"pointer-events-none text-muted-foreground opacity-50",C&&"bg-primary/10 font-medium text-primary"),children:f?f(v):du(v)},v)})})}const T4=S.forwardRef((n,o)=>{const{value:s,defaultValue:i,onChange:d,format:f,use12Hours:h=!1,hourStep:y=1,minuteStep:v=1,secondStep:x=1,showNow:C=!0,disabled:w=!1,placeholder:N="Select time",size:R="middle",status:O,variant:j="outlined",allowClear:D=!0,suffixIcon:A,className:z,style:B,open:U,onOpenChange:L,hideDisabledOptions:k=!1,disabledTime:V}=n,H=f??(h?"hh:mm:ss A":"HH:mm:ss"),[K,Z]=S.useState(i??null),Q=s!==void 0?s??null:K,[G,q]=S.useState(!1),W=U!==void 0?U:G,te=S.useCallback(ie=>{U===void 0&&q(ie),L?.(ie)},[U,L]),[Y,P]=S.useState(()=>Q?.getHours()??0),[F,ee]=S.useState(()=>Q?.getMinutes()??0),[oe,we]=S.useState(()=>Q?.getSeconds()??0),[se,Ce]=S.useState(()=>(Q?.getHours()??0)>=12?"PM":"AM");S.useEffect(()=>{W&&Q&&(P(Q.getHours()),ee(Q.getMinutes()),we(Q.getSeconds()),Ce(Q.getHours()>=12?"PM":"AM"))},[W,Q]);const re=S.useRef(null);S.useEffect(()=>{if(!W)return;const ie=Oe=>{re.current&&!re.current.contains(Oe.target)&&te(!1)};return document.addEventListener("mousedown",ie),()=>document.removeEventListener("mousedown",ie)},[W,te]);const he=V?.(),le=he?.disabledHours?.()??[],Se=he?.disabledMinutes?.(Y)??[],ze=he?.disabledSeconds?.(Y,F)??[],je=S.useCallback((ie,Oe,de)=>{let Me=ie;h&&(se==="PM"&&Me<12&&(Me+=12),se==="AM"&&Me===12&&(Me=0));const Re=new Date;Re.setHours(Me,Oe,de,0),s===void 0&&Z(Re),d?.(Re,Wg(Re,H,h)),te(!1)},[h,se,s,d,H,te]),ve=S.useCallback(ie=>{ie.stopPropagation(),s===void 0&&Z(null),d?.(null,"")},[s,d]),fe=Q?Wg(Q,H,h):"",ce=h?iw(12,y).map(ie=>ie||12):iw(24,y),ae=iw(60,v),ue=iw(60,x),be=h?Y%12||12:Y;return m.jsxs("div",{ref:ie=>{re.current=ie,typeof o=="function"?o(ie):o&&(o.current=ie)},className:$("relative inline-block",z),style:B,children:[m.jsxs("div",{role:"button",tabIndex:w?-1:0,onClick:()=>!w&&te(!W),onKeyDown:ie=>{(ie.key==="Enter"||ie.key===" ")&&!w&&(ie.preventDefault(),te(!W))},className:$("inline-flex w-full items-center gap-2 rounded-lg bg-transparent transition-colors outline-none","focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50",w&&"cursor-not-allowed opacity-50",NX[R],MX[j],O&&TX[O]),children:[m.jsx("span",{className:$("flex-1 truncate text-left",!fe&&"text-muted-foreground"),children:fe||N}),D&&Q&&!w?m.jsx(go,{className:"size-4 shrink-0 text-muted-foreground hover:text-foreground",onClick:ve}):null,A??m.jsx(AD,{className:"size-4 shrink-0 text-muted-foreground"})]}),W&&!w&&m.jsxs("div",{className:"absolute z-50 mt-1 rounded-lg border bg-popover shadow-md",children:[m.jsxs("div",{className:"flex",children:[m.jsx(z2,{items:ce,selectedValue:be,onSelect:ie=>{if(h){const Oe=se==="PM"?ie===12?12:ie+12:ie===12?0:ie;P(Oe)}else P(ie)},disabledValues:le,hideDisabled:k}),m.jsx(z2,{items:ae,selectedValue:F,onSelect:ee,disabledValues:Se,hideDisabled:k}),m.jsx(z2,{items:ue,selectedValue:oe,onSelect:we,disabledValues:ze,hideDisabled:k}),h&&m.jsx("div",{className:"flex h-[200px] w-14 flex-col overflow-y-auto",children:["AM","PM"].map(ie=>m.jsx("button",{type:"button",onClick:()=>{Ce(ie),ie==="AM"&&Y>=12&&P(Y-12),ie==="PM"&&Y<12&&P(Y+12)},className:$("shrink-0 px-2 py-1 text-center text-sm transition-colors","hover:bg-accent hover:text-accent-foreground",se===ie&&"bg-primary/10 font-medium text-primary"),children:ie},ie))})]}),m.jsxs("div",{className:"flex items-center justify-between border-t px-2 py-1.5",children:[C?m.jsx("button",{type:"button",className:"text-xs text-primary hover:text-primary/80",onClick:()=>{const ie=new Date;je(ie.getHours(),ie.getMinutes(),ie.getSeconds())},children:"Now"}):m.jsx("span",{}),m.jsx("button",{type:"button",className:"rounded-md bg-primary px-3 py-0.5 text-xs text-primary-foreground hover:bg-primary/90",onClick:()=>je(Y,F,oe),children:"OK"})]})]})]})});T4.displayName="TimePicker";function RX(n){return n<10?`0${n}`:`${n}`}function _2(n,o){const s=[];for(let i=0;i<n;i+=o)s.push(i);return s}const OX={small:"h-7 text-xs px-2",middle:"h-9 text-sm px-3",large:"h-11 text-base px-3"},jX={error:"border-destructive focus-within:border-destructive focus-within:ring-destructive/20",warning:"border-yellow-500 focus-within:border-yellow-500 focus-within:ring-yellow-500/20"},DX={outlined:"border border-input",borderless:"border-0 shadow-none",filled:"border-0 bg-muted"};function U2({items:n,selectedValue:o,onSelect:s}){const i=S.useRef(null);return S.useEffect(()=>{if(!i.current)return;const d=n.indexOf(o);d>=0&&i.current.children[d]?.scrollIntoView({block:"nearest"})},[o,n]),m.jsx("div",{ref:i,className:"flex h-[200px] w-14 flex-col overflow-y-auto border-r last:border-r-0",children:n.map(d=>m.jsx("button",{type:"button",onClick:()=>s(d),className:$("shrink-0 px-2 py-1 text-center text-sm transition-colors","hover:bg-accent hover:text-accent-foreground",d===o&&"bg-primary/10 font-medium text-primary"),children:RX(d)},d))})}const M4=S.forwardRef((n,o)=>{const{value:s,defaultValue:i,onChange:d,format:f,use12Hours:h=!1,disabled:y=!1,placeholder:v=["Start time","End time"],size:x="middle",status:C,variant:w="outlined",allowClear:N=!0,className:R,style:O,order:j=!0}=n,D=f??(h?"hh:mm:ss A":"HH:mm:ss"),A=Array.isArray(y)?y[0]:y,z=Array.isArray(y)?y[1]:y,B=A&&z,[U,L]=S.useState(i??[null,null]),k=s!==void 0?s:U,[V,H]=S.useState(!1),[K,Z]=S.useState("start"),Q=Ie=>Ie?.getHours()??0,G=Ie=>Ie?.getMinutes()??0,q=Ie=>Ie?.getSeconds()??0,[W,te]=S.useState(()=>Q(k[0])),[Y,P]=S.useState(()=>G(k[0])),[F,ee]=S.useState(()=>q(k[0])),[oe,we]=S.useState(()=>Q(k[1])),[se,Ce]=S.useState(()=>G(k[1])),[re,he]=S.useState(()=>q(k[1]));S.useEffect(()=>{V&&(te(Q(k[0])),P(G(k[0])),ee(q(k[0])),we(Q(k[1])),Ce(G(k[1])),he(q(k[1])))},[V]);const le=S.useRef(null);S.useEffect(()=>{if(!V)return;const Ie=We=>{le.current&&!le.current.contains(We.target)&&H(!1)};return document.addEventListener("mousedown",Ie),()=>document.removeEventListener("mousedown",Ie)},[V]);const Se=S.useCallback((Ie,We,$e)=>{const st=new Date;return st.setHours(Ie,We,$e,0),st},[]),ze=S.useCallback(()=>{let Ie=Se(W,Y,F),We=Se(oe,se,re);j&&Ie>We&&([Ie,We]=[We,Ie]);const $e=[Ie,We];s===void 0&&L($e),d?.($e,[Wg(Ie,D,h),Wg(We,D,h)]),H(!1)},[W,Y,F,oe,se,re,j,s,d,D,h,Se]),je=S.useCallback(Ie=>{Ie.stopPropagation();const We=[null,null];s===void 0&&L(We),d?.(We,["",""])},[s,d]),ve=k[0]?Wg(k[0],D,h):"",fe=k[1]?Wg(k[1],D,h):"",ce=k[0]!==null||k[1]!==null,ae=_2(24,1),ue=_2(60,1),be=_2(60,1),ie=K==="start"?W:oe,Oe=K==="start"?Y:se,de=K==="start"?F:re,Me=K==="start"?te:we,Re=K==="start"?P:Ce,De=K==="start"?ee:he;return m.jsxs("div",{ref:Ie=>{le.current=Ie,typeof o=="function"?o(Ie):o&&(o.current=Ie)},className:$("relative inline-block",R),style:O,children:[m.jsxs("div",{role:"button",tabIndex:B?-1:0,onClick:()=>!B&&H(!V),onKeyDown:Ie=>{(Ie.key==="Enter"||Ie.key===" ")&&!B&&(Ie.preventDefault(),H(!V))},className:$("inline-flex w-full items-center gap-1 rounded-lg bg-transparent transition-colors outline-none","focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50",B&&"cursor-not-allowed opacity-50",OX[x],DX[w],C&&jX[C]),children:[m.jsx("span",{className:$("truncate",!ve&&"text-muted-foreground"),children:ve||v[0]}),m.jsx("span",{className:"text-muted-foreground",children:"~"}),m.jsx("span",{className:$("truncate",!fe&&"text-muted-foreground"),children:fe||v[1]}),m.jsxs("span",{className:"ml-auto flex shrink-0 items-center gap-1",children:[N&&ce&&!B?m.jsx(go,{className:"size-4 text-muted-foreground hover:text-foreground",onClick:je}):null,m.jsx(AD,{className:"size-4 text-muted-foreground"})]})]}),V&&!B&&m.jsxs("div",{className:"absolute z-50 mt-1 rounded-lg border bg-popover shadow-md",children:[m.jsxs("div",{className:"flex border-b text-sm",children:[m.jsx("button",{type:"button",className:$("flex-1 px-3 py-1.5 text-center transition-colors",K==="start"&&"border-b-2 border-primary font-medium text-primary"),onClick:()=>Z("start"),children:"Start"}),m.jsx("button",{type:"button",className:$("flex-1 px-3 py-1.5 text-center transition-colors",K==="end"&&"border-b-2 border-primary font-medium text-primary"),onClick:()=>Z("end"),children:"End"})]}),m.jsxs("div",{className:"flex",children:[m.jsx(U2,{items:ae,selectedValue:ie,onSelect:Me}),m.jsx(U2,{items:ue,selectedValue:Oe,onSelect:Re}),m.jsx(U2,{items:be,selectedValue:de,onSelect:De})]}),m.jsx("div",{className:"flex items-center justify-end border-t px-2 py-1.5",children:m.jsx("button",{type:"button",className:"rounded-md bg-primary px-3 py-0.5 text-xs text-primary-foreground hover:bg-primary/90",onClick:ze,children:"OK"})})]})]})});M4.displayName="TimeRangePicker";const R4=T4;R4.RangePicker=M4;function kX(n){let o=n.replace("#","");o.length===3&&(o=o.split("").map(i=>i+i).join(""));const s=parseInt(o,16);return{r:s>>16&255,g:s>>8&255,b:s&255}}function AX(n){const o=s=>Math.max(0,Math.min(255,Math.round(s))).toString(16).padStart(2,"0");return`#${o(n.r)}${o(n.g)}${o(n.b)}`}function hD(n){const o=n.r/255,s=n.g/255,i=n.b/255,d=Math.max(o,s,i),f=Math.min(o,s,i),h=d-f;let y=0;h!==0&&(d===o?y=(s-i)/h%6:d===s?y=(i-o)/h+2:y=(o-s)/h+4,y=Math.round(y*60),y<0&&(y+=360));const v=d===0?0:Math.round(h/d*100),x=Math.round(d*100);return{h:y,s:v,b:x}}function Hv(n){const o=n.h,s=n.s/100,i=n.b/100,d=i*s,f=d*(1-Math.abs(o/60%2-1)),h=i-d;let y=0,v=0,x=0;return o<60?(y=d,v=f):o<120?(y=f,v=d):o<180?(v=d,x=f):o<240?(v=f,x=d):o<300?(y=f,x=d):(y=d,x=f),{r:Math.round((y+h)*255),g:Math.round((v+h)*255),b:Math.round((x+h)*255)}}function NC(n){return AX(Hv(n))}function cw(n,o,s){if(s==="hex"){const i=NC(n);if(o<1){const d=Math.round(o*255).toString(16).padStart(2,"0");return`${i}${d}`}return i}if(s==="rgb"){const i=Hv(n);return o<1?`rgba(${i.r}, ${i.g}, ${i.b}, ${o.toFixed(2)})`:`rgb(${i.r}, ${i.g}, ${i.b})`}return o<1?`hsba(${n.h}, ${n.s}%, ${n.b}%, ${o.toFixed(2)})`:`hsb(${n.h}, ${n.s}%, ${n.b}%)`}function uw(n){const o=n.trim(),s=o.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)$/);if(s){const y={r:parseInt(s[1]),g:parseInt(s[2]),b:parseInt(s[3])},v=s[4]!==void 0?parseFloat(s[4]):1;return{hsb:hD(y),alpha:v}}const i=o.match(/^hsba?\(\s*(\d+)\s*,\s*([\d.]+)%?\s*,\s*([\d.]+)%?\s*(?:,\s*([\d.]+))?\s*\)$/);if(i){const y={h:parseInt(i[1]),s:parseFloat(i[2]),b:parseFloat(i[3])},v=i[4]!==void 0?parseFloat(i[4]):1;return{hsb:y,alpha:v}}let d=o.startsWith("#")?o:`#${o}`,f=1;d.length===9&&(f=parseInt(d.slice(7,9),16)/255,d=d.slice(0,7));const h=kX(d);return{hsb:hD(h),alpha:f}}const zX={small:"size-6",middle:"size-8",large:"size-10"};function _X({hue:n,saturation:o,brightness:s,onChange:i,onChangeComplete:d}){const f=S.useRef(null),h=S.useRef(!1),y=NC({h:n,s:100,b:100}),v=S.useCallback((x,C)=>{if(!f.current)return;const w=f.current.getBoundingClientRect(),N=Math.max(0,Math.min(x-w.left,w.width)),R=Math.max(0,Math.min(C-w.top,w.height)),O=Math.round(N/w.width*100),j=Math.round((1-R/w.height)*100);i(O,j)},[i]);return S.useEffect(()=>{const x=w=>{h.current&&v(w.clientX,w.clientY)},C=()=>{h.current&&(h.current=!1,d())};return document.addEventListener("pointermove",x),document.addEventListener("pointerup",C),()=>{document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",C)}},[v,d]),m.jsx("div",{ref:f,className:"relative h-[160px] w-full cursor-crosshair rounded-md",style:{background:`linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, ${y})`},onPointerDown:x=>{h.current=!0,v(x.clientX,x.clientY)},children:m.jsx("div",{className:"pointer-events-none absolute size-3.5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white shadow-sm",style:{left:`${o}%`,top:`${100-s}%`}})})}function UX({hue:n,onChange:o,onChangeComplete:s}){const i=S.useRef(null),d=S.useRef(!1),f=S.useCallback(h=>{if(!i.current)return;const y=i.current.getBoundingClientRect(),v=Math.max(0,Math.min(h-y.left,y.width));o(Math.round(v/y.width*360))},[o]);return S.useEffect(()=>{const h=v=>{d.current&&f(v.clientX)},y=()=>{d.current&&(d.current=!1,s())};return document.addEventListener("pointermove",h),document.addEventListener("pointerup",y),()=>{document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",y)}},[f,s]),m.jsx("div",{ref:i,className:"relative h-3 w-full cursor-pointer rounded-full",style:{background:"linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)"},onPointerDown:h=>{d.current=!0,f(h.clientX)},children:m.jsx("div",{className:"pointer-events-none absolute top-1/2 size-3.5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white shadow-sm",style:{left:`${n/360*100}%`}})})}function BX({hue:n,saturation:o,brightness:s,alpha:i,onChange:d,onChangeComplete:f}){const h=S.useRef(null),y=S.useRef(!1),v=NC({h:n,s:o,b:s}),x=S.useCallback(C=>{if(!h.current)return;const w=h.current.getBoundingClientRect(),N=Math.max(0,Math.min(C-w.left,w.width));d(Math.round(N/w.width*100)/100)},[d]);return S.useEffect(()=>{const C=N=>{y.current&&x(N.clientX)},w=()=>{y.current&&(y.current=!1,f())};return document.addEventListener("pointermove",C),document.addEventListener("pointerup",w),()=>{document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",w)}},[x,f]),m.jsx("div",{ref:h,className:"relative h-3 w-full cursor-pointer rounded-full",style:{background:`linear-gradient(to right, transparent, ${v}), repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 0 0 / 8px 8px`},onPointerDown:C=>{y.current=!0,x(C.clientX)},children:m.jsx("div",{className:"pointer-events-none absolute top-1/2 size-3.5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white shadow-sm",style:{left:`${i*100}%`}})})}const O4=S.forwardRef((n,o)=>{const{value:s,defaultValue:i="#1677ff",onChange:d,onChangeComplete:f,format:h,defaultFormat:y="hex",onFormatChange:v,showText:x=!1,presets:C,disabled:w=!1,disabledAlpha:N=!1,size:R="middle",trigger:O="click",open:j,onOpenChange:D,children:A,className:z,style:B}=n,[U,L]=S.useState(h??y),k=h??U,H=uw(s??i),[K,Z]=S.useState(H.hsb),[Q,G]=S.useState(H.alpha);S.useEffect(()=>{if(s!==void 0){const ve=uw(s);Z(ve.hsb),G(ve.alpha)}},[s]);const[q,W]=S.useState(!1),te=j!==void 0?j:q,Y=S.useCallback(ve=>{j===void 0&&W(ve),D?.(ve)},[j,D]),P=S.useRef(null);S.useEffect(()=>{if(!te)return;const ve=fe=>{P.current&&!P.current.contains(fe.target)&&Y(!1)};return document.addEventListener("mousedown",ve),()=>document.removeEventListener("mousedown",ve)},[te,Y]);const F=S.useCallback((ve,fe)=>{const ce=cw(ve,N?1:fe,k);d?.(ce)},[d,k,N]),ee=S.useCallback(()=>{const ve=cw(K,N?1:Q,k);f?.(ve)},[K,Q,k,N,f]),oe=NC(K),we=Q<1&&!N?`rgba(${Hv(K).r}, ${Hv(K).g}, ${Hv(K).b}, ${Q})`:oe,se=cw(K,N?1:Q,k),Ce=()=>x?typeof x=="function"?x(se):m.jsx("span",{className:"ml-2 truncate text-sm",children:se}):null,re=S.useCallback(ve=>{const fe=ve.target.value;if(/^#?[0-9a-fA-F]{6}$/.test(fe)){const ce=uw(fe);Z(ce.hsb),F(ce.hsb,Q)}},[Q,F]),he=["hex","rgb","hsb"],le=S.useCallback(()=>{const ve=he.indexOf(k),fe=he[(ve+1)%he.length];h===void 0&&L(fe),v?.(fe)},[k,h,v,he]),Se=A??m.jsxs("div",{className:$("inline-flex items-center rounded-lg border border-input p-1 transition-colors",w&&"cursor-not-allowed opacity-50",!w&&"cursor-pointer hover:border-ring"),children:[m.jsx("div",{className:$("rounded-md",zX[R]),style:{backgroundColor:we,backgroundImage:(Q<1&&!N,void 0)}}),Ce()]}),ze=()=>{w||O!=="click"||Y(!te)},je=ve=>{w||O!=="hover"||Y(ve)};return m.jsxs("div",{ref:ve=>{P.current=ve,typeof o=="function"?o(ve):o&&(o.current=ve)},className:$("relative inline-block",z),style:B,onMouseEnter:()=>je(!0),onMouseLeave:()=>je(!1),children:[m.jsx("div",{role:"button",tabIndex:w?-1:0,onClick:ze,onKeyDown:ve=>{(ve.key==="Enter"||ve.key===" ")&&!w&&(ve.preventDefault(),Y(!te))},children:Se}),te&&!w&&m.jsxs("div",{className:"absolute z-50 mt-1 w-[280px] rounded-lg border bg-popover p-3 shadow-md",children:[m.jsx(_X,{hue:K.h,saturation:K.s,brightness:K.b,onChange:(ve,fe)=>{const ce={...K,s:ve,b:fe};Z(ce),F(ce,Q)},onChangeComplete:ee}),m.jsxs("div",{className:"mt-3 flex items-center gap-3",children:[m.jsx("div",{className:"size-8 shrink-0 rounded-md border",style:{backgroundColor:we}}),m.jsxs("div",{className:"flex flex-1 flex-col gap-2",children:[m.jsx(UX,{hue:K.h,onChange:ve=>{const fe={...K,h:ve};Z(fe),F(fe,Q)},onChangeComplete:ee}),!N&&m.jsx(BX,{hue:K.h,saturation:K.s,brightness:K.b,alpha:Q,onChange:ve=>{G(ve),F(K,ve)},onChangeComplete:ee})]})]}),m.jsxs("div",{className:"mt-3 flex items-center gap-2",children:[m.jsx("button",{type:"button",onClick:le,className:"shrink-0 rounded-md border px-2 py-0.5 text-xs uppercase hover:bg-accent",children:k}),m.jsx("input",{className:"w-full rounded-md border border-input bg-transparent px-2 py-1 text-xs outline-none focus:border-ring",value:se,onChange:re,readOnly:k!=="hex"})]}),C&&C.map((ve,fe)=>m.jsxs("div",{className:"mt-3",children:[ve.label&&m.jsx("div",{className:"mb-1 text-xs text-muted-foreground",children:ve.label}),m.jsx("div",{className:"flex flex-wrap gap-1.5",children:ve.colors.map((ce,ae)=>m.jsx("button",{type:"button",className:$("size-6 rounded-md border transition-transform hover:scale-110",oe.toLowerCase()===ce.toLowerCase()&&"ring-2 ring-primary ring-offset-1"),style:{backgroundColor:ce},onClick:()=>{const ue=uw(ce);Z(ue.hsb),G(ue.alpha),F(ue.hsb,ue.alpha),f?.(cw(ue.hsb,ue.alpha,k))}},ae))})]},fe))]})]})});O4.displayName="ColorPicker";const LX=O4,VX={error:"border-destructive focus-within:border-destructive focus-within:ring-destructive/20",warning:"border-yellow-500 focus-within:border-yellow-500 focus-within:ring-yellow-500/20"},HX={outlined:"",borderless:"border-transparent shadow-none focus-within:ring-0",filled:"border-transparent bg-muted focus-within:border-ring"};function IX(n,o){if(!n)return o?{rows:o}:{};if(typeof n=="object"){const s={overflow:"hidden",resize:"none"};return n.minRows&&(s.minHeight=`${n.minRows*1.5+.75}em`),n.maxRows&&(s.maxHeight=`${n.maxRows*1.5+.75}em`),s}return{overflow:"hidden",resize:"none"}}const j4=S.forwardRef((n,o)=>{const{value:s,defaultValue:i="",onChange:d,onSelect:f,onSearch:h,options:y=[],prefix:v="@",split:x=" ",placement:C="bottom",status:w,variant:N="outlined",disabled:R=!1,readOnly:O=!1,placeholder:j,allowClear:D=!1,autoSize:A=!1,rows:z,className:B,style:U}=n,[L,k]=S.useState(i),V=s!==void 0,H=V?s:L,[K,Z]=S.useState(!1),[Q,G]=S.useState(y),[q,W]=S.useState(0),[te,Y]=S.useState(-1),[P,F]=S.useState(""),ee=S.useRef(null),oe=S.useRef(null),we=S.useRef(null),se=S.useCallback(ae=>{ee.current=ae,typeof o=="function"?o(ae):o&&(o.current=ae)},[o]),Ce=S.useMemo(()=>Array.isArray(v)?v:[v],[v]),re=S.useCallback(()=>{const ae=ee.current;!ae||!A||(ae.style.height="auto",ae.style.height=`${ae.scrollHeight}px`)},[A]);S.useEffect(()=>{re()},[H,re]);const he=S.useCallback(ae=>{V||k(ae),d?.(ae)},[V,d]),le=S.useCallback((ae,ue)=>{const be=ae.slice(0,ue);for(const ie of Ce){const Oe=be.lastIndexOf(ie);if(Oe<0)continue;const de=Oe>0?be[Oe-1]:" ";if(Oe===0||de===" "||de===`
|
|
22
|
+
`||de===x){const Me=be.slice(Oe+ie.length);if(!Me.includes(" ")&&!Me.includes(`
|
|
23
|
+
`))return{prefix:ie,start:Oe,search:Me}}}return null},[Ce,x]),Se=S.useCallback(ae=>{if(R||O)return;const ue=ae.target.value;he(ue);const be=ae.target.selectionStart??ue.length,ie=le(ue,be);if(ie){F(ie.prefix),Y(ie.start);const Oe=ie.search.toLowerCase();h?.(ie.search,ie.prefix);const de=y.filter(Me=>(typeof Me.label=="string"?Me.label:Me.value).toLowerCase().includes(Oe));G(de),W(0),Z(de.length>0)}else Z(!1)},[R,O,he,le,h,y]),ze=S.useCallback(ae=>{if(ae.disabled)return;const ue=ee.current;if(!ue)return;const be=ue.selectionStart??H.length,ie=H.slice(0,te),Oe=H.slice(be),de=`${P}${ae.value}${x}`,Me=`${ie}${de}${Oe}`;he(Me),f?.(ae,P),Z(!1);const Re=ie.length+de.length;requestAnimationFrame(()=>{ue.focus(),ue.setSelectionRange(Re,Re)})},[H,te,P,x,he,f]),je=S.useCallback(ae=>{K&&(ae.key==="ArrowDown"?(ae.preventDefault(),W(ue=>ue<Q.length-1?ue+1:0)):ae.key==="ArrowUp"?(ae.preventDefault(),W(ue=>ue>0?ue-1:Q.length-1)):ae.key==="Enter"?(ae.preventDefault(),Q[q]&&ze(Q[q])):ae.key==="Escape"&&Z(!1))},[K,Q,q,ze]);S.useEffect(()=>{if(!K)return;const ae=ue=>{we.current&&!we.current.contains(ue.target)&&Z(!1)};return document.addEventListener("mousedown",ae),()=>{document.removeEventListener("mousedown",ae)}},[K]);const ve=S.useCallback(()=>{he(""),Z(!1),ee.current?.focus()},[he]),fe=D&&!R&&!O&&H.length>0,ce=IX(A,z);return m.jsxs("div",{ref:we,className:$("relative inline-flex w-full",B),style:U,children:[m.jsxs("div",{className:$("relative flex w-full rounded-md border border-input bg-background ring-offset-background transition-colors","focus-within:ring-2 focus-within:ring-ring/20 focus-within:border-ring",w&&VX[w],HX[N],R&&"cursor-not-allowed opacity-50"),children:[m.jsx("textarea",{ref:se,value:H,onChange:Se,onKeyDown:je,disabled:R,readOnly:O,placeholder:j,rows:z??(A?1:3),className:$("w-full flex-1 bg-transparent px-3 py-2 text-sm outline-none","placeholder:text-muted-foreground",R&&"cursor-not-allowed","resize-none"),style:ce}),fe&&m.jsx("button",{type:"button",tabIndex:-1,onClick:ve,className:"flex items-start px-2 pt-2.5 text-muted-foreground hover:text-foreground","aria-label":"Clear",children:m.jsx(go,{className:"size-3.5"})})]}),K&&Q.length>0&&m.jsx("div",{ref:oe,className:$("absolute z-50 min-w-[120px] max-h-[200px] overflow-y-auto rounded-md border border-border bg-popover p-1 shadow-md",C==="top"?"bottom-full mb-1":"top-full mt-1","left-0"),children:Q.map((ae,ue)=>m.jsx("div",{role:"option","aria-selected":ue===q,className:$("cursor-pointer rounded-sm px-2 py-1.5 text-sm",ue===q&&"bg-accent text-accent-foreground",ae.disabled&&"cursor-not-allowed opacity-50 pointer-events-none"),onMouseEnter:()=>W(ue),onMouseDown:be=>{be.preventDefault(),ze(ae)},children:ae.label??ae.value},ae.value))})]})});j4.displayName="Mentions";const YX=j4;function qX({filled:n}){return n==="full"?m.jsx(VS,{className:"size-5 fill-current text-yellow-400"}):n==="half"?m.jsxs("div",{className:"relative size-5",children:[m.jsx(VS,{className:"absolute inset-0 size-5 text-muted-foreground/30"}),m.jsx("div",{className:"absolute inset-0 overflow-hidden",style:{width:"50%"},children:m.jsx(VS,{className:"size-5 fill-current text-yellow-400"})})]}):m.jsx(VS,{className:"size-5 text-muted-foreground/30"})}const D4=S.forwardRef((n,o)=>{const{value:s,defaultValue:i=0,onChange:d,count:f=5,allowHalf:h=!1,allowClear:y=!0,character:v,disabled:x=!1,tooltips:C,className:w,style:N,onHoverChange:R}=n,[O,j]=S.useState(i),D=s!==void 0,A=D?s:O,[z,B]=S.useState(0),U=z>0?z:A,L=S.useCallback(Q=>{D||j(Q),d?.(Q)},[D,d]),k=S.useCallback((Q,G)=>{if(x)return;let q;h&&G?q=Q+.5:q=Q+1,y&&q===A&&(q=0),L(q)},[x,h,y,A,L]),V=S.useCallback((Q,G)=>{if(x)return;let q;h&&G?q=Q+.5:q=Q+1,B(q),R?.(q)},[x,h,R]),H=S.useCallback(()=>{x||(B(0),R?.(0))},[x,R]),K=S.useCallback(Q=>{if(x)return;const G=h?.5:1;if(Q.key==="ArrowRight"||Q.key==="ArrowUp"){Q.preventDefault();const q=Math.min(A+G,f);L(q)}else if(Q.key==="ArrowLeft"||Q.key==="ArrowDown"){Q.preventDefault();const q=Math.max(A-G,0);L(q)}},[x,h,A,f,L]),Z=S.useMemo(()=>Array.from({length:f},(Q,G)=>{const q=G+1,W=U>=q?"full":U>=G+.5?"half":"empty",te=()=>v?typeof v=="function"?v({index:G,value:U}):m.jsx("span",{className:$(W==="full"&&"text-yellow-400",W==="half"&&"text-yellow-400",W==="empty"&&"text-muted-foreground/30"),children:v}):m.jsx(qX,{filled:W}),Y=C?.[G];return m.jsxs("div",{className:$("relative inline-flex cursor-pointer",x&&"cursor-default"),title:Y,children:[h?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"absolute inset-y-0 left-0 z-10 w-1/2",onMouseMove:()=>V(G,!0),onClick:()=>k(G,!0)}),m.jsx("div",{className:"absolute inset-y-0 right-0 z-10 w-1/2",onMouseMove:()=>V(G,!1),onClick:()=>k(G,!1)})]}):m.jsx("div",{className:"absolute inset-0 z-10",onMouseMove:()=>V(G,!1),onClick:()=>k(G,!1)}),m.jsx("span",{className:$("transition-transform",!x&&z>0&&"scale-110"),children:te()})]},G)}),[f,U,v,C,h,x,z,V,k]);return m.jsx("div",{ref:o,role:"radiogroup",tabIndex:x?-1:0,"aria-label":"Rating","aria-valuenow":A,"aria-valuemin":0,"aria-valuemax":f,className:$("inline-flex items-center gap-1",x&&"opacity-50 pointer-events-none",!x&&"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",w),style:N,onMouseLeave:H,onKeyDown:K,children:Z})});D4.displayName="Rate";const GX=D4;function pN(n,o,s){return Math.min(Math.max(n,o),s)}function B2(n,o,s,i){if(i===null||i<=0)return pN(n,o,s);const d=Math.round((n-o)/i)*i+o;return pN(d,o,s)}function Iv(n,o,s){return s===o?0:(n-o)/(s-o)*100}function XX({value:n,visible:o,formatter:s,placement:i="top",vertical:d}){if(!o||s===null)return null;const f=s?s(n):n,h=d?i==="left"?"right-full mr-2 top-1/2 -translate-y-1/2":"left-full ml-2 top-1/2 -translate-y-1/2":i==="bottom"?"top-full mt-2 left-1/2 -translate-x-1/2":"bottom-full mb-2 left-1/2 -translate-x-1/2";return m.jsx("div",{className:$("pointer-events-none absolute z-50 whitespace-nowrap rounded-md bg-popover px-2 py-1 text-xs text-popover-foreground shadow-md border border-border",h),children:f})}function PX(n,o,s,i,d){const f=Object.entries(n).map(([h,y])=>({position:Number(h),mark:y}));return m.jsxs(m.Fragment,{children:[f.map(({position:h})=>{const y=Iv(h,o,s),v=d?100-y:y,x=i?{bottom:`${v}%`}:{left:`${v}%`};return m.jsx("div",{className:$("absolute rounded-full border-2 border-primary bg-background",i?"left-1/2 -translate-x-1/2 size-2":"top-1/2 -translate-y-1/2 size-2"),style:x},`dot-${h}`)}),m.jsx("div",{className:$("absolute",i?"left-full ml-2 top-0 bottom-0":"top-full mt-2 left-0 right-0"),children:f.map(({position:h,mark:y})=>{const v=Iv(h,o,s),x=d?100-v:v,C=y!==null&&typeof y=="object"&&"label"in y,w=C?y.label:y,N=C?y.style:void 0,R=i?{bottom:`${x}%`,transform:"translateY(50%)"}:{left:`${x}%`,transform:"translateX(-50%)"};return m.jsx("span",{className:"absolute text-xs text-muted-foreground whitespace-nowrap",style:{...R,...N},children:w},`label-${h}`)})})]})}const k4=S.forwardRef((n,o)=>{const{value:s,defaultValue:i,onChange:d,onChangeComplete:f,min:h=0,max:y=100,step:v=1,range:x=!1,marks:C,dots:w=!1,disabled:N=!1,vertical:R=!1,tooltip:O,included:j=!0,reverse:D=!1,className:A,style:z}=n,B=()=>i!==void 0?i:x?[h,h]:h,[U,L]=S.useState(B),k=s!==void 0,V=k?s:U,H=Array.isArray(V)?V[0]:V,K=Array.isArray(V)?V[1]:V,[Z,Q]=S.useState(null),[G,q]=S.useState(null),W=S.useRef(null),te=S.useRef(V),Y=S.useCallback(de=>{k||L(de),d?.(de)},[k,d]),P=S.useCallback((de,Me)=>{const Re=W.current;if(!Re)return h;const De=Re.getBoundingClientRect();let Ie;R?Ie=(De.bottom-Me)/De.height:Ie=(de-De.left)/De.width,D&&(Ie=1-Ie),Ie=pN(Ie,0,1);const We=h+Ie*(y-h);return B2(We,h,y,v)},[h,y,v,R,D]),F=S.useCallback((de,Me)=>{const Re=P(de,Me);if(x){const De=Array.isArray(V)?V:[V,V];if(Z===0){const Ie=Math.min(Re,De[1]);Y([Ie,De[1]])}else if(Z===1){const Ie=Math.max(Re,De[0]);Y([De[0],Ie])}}else Y(Re)},[P,x,V,Z,Y]);S.useEffect(()=>{if(Z===null)return;const de=De=>{De.preventDefault(),F(De.clientX,De.clientY)},Me=De=>{De.touches.length>0&&F(De.touches[0].clientX,De.touches[0].clientY)},Re=()=>{Q(null),f?.(V)};return document.addEventListener("mousemove",de),document.addEventListener("mouseup",Re),document.addEventListener("touchmove",Me),document.addEventListener("touchend",Re),()=>{document.removeEventListener("mousemove",de),document.removeEventListener("mouseup",Re),document.removeEventListener("touchmove",Me),document.removeEventListener("touchend",Re)}},[Z,F,f,V]);const ee=(de,Me)=>{N||(Me.preventDefault(),te.current=V,Q(de))},oe=de=>{if(N)return;const Me=P(de.clientX,de.clientY);if(x){const Re=Array.isArray(V)?V:[V,V],De=Math.abs(Me-Re[0]),Ie=Math.abs(Me-Re[1]);De<=Ie?Y([Math.min(Me,Re[1]),Re[1]]):Y([Re[0],Math.max(Me,Re[0])])}else Y(Me);f?.(V)},we=Iv(H,h,y),se=x?Iv(K,h,y):we,Ce=x?Math.min(we,se):0,re=x?Math.max(we,se):we,he=D?100-re:Ce,le=D?100-Ce:re,Se=D?100-we:we,ze=D?100-se:se,je=O?.open===!0,ve=O?.open===!1,fe=O?.placement,ce=O?.formatter,ae=!ve&&(je||Z===0||G===0),ue=!ve&&(je||Z===1||G===1),be=S.useMemo(()=>{if(!w||v===null||v<=0)return null;const de=Math.floor((y-h)/v);return Array.from({length:de+1},(Me,Re)=>{const De=h+Re*v,Ie=Iv(De,h,y),We=D?100-Ie:Ie,$e=j&&De>=Ce&&De<=re,st=R?{bottom:`${We}%`}:{left:`${We}%`};return m.jsx("div",{className:$("absolute rounded-full border-2 bg-background",R?"left-1/2 -translate-x-1/2 size-2":"top-1/2 -translate-y-1/2 size-2",$e?"border-primary":"border-muted-foreground/30"),style:st},Re)})},[w,v,h,y,R,D,j,Ce,re]),ie=(de,Me,Re)=>{const De=R?{bottom:`${Me}%`}:{left:`${Me}%`};return m.jsx("div",{role:"slider",tabIndex:N?-1:0,"aria-valuemin":h,"aria-valuemax":y,"aria-valuenow":Re,"aria-disabled":N,className:$("absolute z-10 size-4 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-primary bg-background shadow-sm transition-shadow","hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",R&&"translate-x-0 -translate-y-1/2 left-1/2",!R&&"top-1/2",N&&"cursor-not-allowed opacity-50",!N&&"cursor-grab active:cursor-grabbing"),style:De,onMouseDown:Ie=>ee(de,Ie),onTouchStart:Ie=>ee(de,Ie),onMouseEnter:()=>q(de),onMouseLeave:()=>q(null),onKeyDown:Ie=>{if(N)return;const We=v??1;if(Ie.key==="ArrowRight"||Ie.key==="ArrowUp"){Ie.preventDefault();const $e=B2(Re+We,h,y,v);if(x){const st=[H,K];st[de]=$e,st[0]<=st[1]&&Y(st)}else Y($e)}else if(Ie.key==="ArrowLeft"||Ie.key==="ArrowDown"){Ie.preventDefault();const $e=B2(Re-We,h,y,v);if(x){const st=[H,K];st[de]=$e,st[0]<=st[1]&&Y(st)}else Y($e)}},children:m.jsx(XX,{value:Re,visible:de===0?ae:ue,formatter:ce,placement:fe,vertical:R})})},Oe=R?{bottom:`${he}%`,height:`${le-he}%`}:{left:`${he}%`,width:`${le-he}%`};return m.jsxs("div",{ref:o,className:$("relative select-none",R?"inline-flex h-full min-h-[100px] w-3 flex-col":"w-full py-2",N&&"opacity-50",C&&!R&&"mb-6",C&&R&&"mr-8",A),style:z,children:[m.jsxs("div",{ref:W,className:$("relative rounded-full bg-muted",R?"h-full w-1 mx-auto":"h-1 w-full"),onClick:oe,children:[j&&m.jsx("div",{className:$("absolute rounded-full bg-primary",R?"w-full":"h-full"),style:Oe}),be,C&&PX(C,h,y,R,D)]}),m.jsxs("div",{className:$("absolute",R?"left-0 right-0 top-0 bottom-0":"left-0 right-0 top-2 bottom-2"),children:[ie(0,Se,H),x&&ie(1,ze,K)]})]})});k4.displayName="Slider";const $X=k4;function A4({className:n}){return m.jsx("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"m15 18-6-6 6-6"})})}function z4({className:n}){return m.jsx("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"m9 18 6-6-6-6"})})}function QX({className:n}){return m.jsxs("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("circle",{cx:"11",cy:"11",r:"8"}),m.jsx("path",{d:"m21 21-4.3-4.3"})]})}const gD=({title:n,items:o,selectedKeys:s,onSelectAll:i,onSelect:d,showSearch:f,searchValue:h,onSearch:y,render:v,disabled:x,listStyle:C,pagination:w,selectAllLabel:N})=>{const[R,O]=S.useState(1),j=o.filter(H=>!H.disabled),D=j.length>0&&j.every(H=>s.includes(H.key)),A=j.some(H=>s.includes(H.key))&&!D,z=S.useMemo(()=>{if(!h)return o;const H=h.toLowerCase();return o.filter(K=>(K.title?.toLowerCase()??"").includes(H)||(K.description?.toLowerCase()??"").includes(H))},[o,h]),B=w===!0?10:typeof w=="object"?w.pageSize??10:0,U=B>0?Math.ceil(z.length/B):1,L=B>0?z.slice((R-1)*B,R*B):z;S.useEffect(()=>{O(1)},[h]);const k=s.length,V=o.length;return m.jsxs("div",{className:"flex w-56 flex-col overflow-hidden rounded-lg border border-border",style:C,children:[m.jsxs("div",{className:"flex items-center gap-2 border-b border-border bg-muted/30 px-3 py-2",children:[m.jsx("input",{type:"checkbox",className:"size-4 rounded border-input accent-primary",checked:D,ref:H=>{H&&(H.indeterminate=A)},onChange:H=>i(H.target.checked),disabled:x}),m.jsx("span",{className:"flex-1 text-sm font-medium",children:N?N({selectedCount:k,totalCount:V}):`${k>0?`${k}/`:""}${V} items`}),m.jsx("span",{className:"text-xs text-muted-foreground",children:n})]}),f&&m.jsx("div",{className:"border-b border-border px-2 py-1.5",children:m.jsxs("div",{className:"flex items-center gap-1.5 rounded-md border border-input px-2 py-1",children:[m.jsx(QX,{className:"size-3.5 text-muted-foreground"}),m.jsx("input",{type:"text",placeholder:"Search here",className:"min-w-0 flex-1 border-none bg-transparent text-sm outline-none placeholder:text-muted-foreground",value:h,onChange:H=>y(H.target.value),disabled:x})]})}),m.jsx("div",{className:"flex-1 overflow-y-auto px-1 py-1",style:{maxHeight:300},children:L.length===0?m.jsx("div",{className:"px-2 py-8 text-center text-sm text-muted-foreground",children:"No data"}):L.map(H=>{const K=s.includes(H.key),Z=x||H.disabled;return m.jsxs("label",{className:$("flex cursor-pointer items-center gap-2 rounded px-2 py-1.5 hover:bg-muted/50",Z&&"cursor-not-allowed opacity-50"),children:[m.jsx("input",{type:"checkbox",className:"size-4 rounded border-input accent-primary",checked:K,onChange:Q=>d(H.key,Q.target.checked),disabled:Z}),m.jsx("span",{className:"min-w-0 flex-1 truncate text-sm",children:v?v(H):H.title??H.key})]},H.key)})}),B>0&&U>1&&m.jsxs("div",{className:"flex items-center justify-center gap-1 border-t border-border px-2 py-1.5",children:[m.jsx("button",{type:"button",disabled:R<=1,onClick:()=>O(H=>Math.max(1,H-1)),className:"rounded p-0.5 text-muted-foreground hover:text-foreground disabled:opacity-50",children:m.jsx(A4,{className:"size-4"})}),m.jsxs("span",{className:"text-xs text-muted-foreground",children:[R," / ",U]}),m.jsx("button",{type:"button",disabled:R>=U,onClick:()=>O(H=>Math.min(U,H+1)),className:"rounded p-0.5 text-muted-foreground hover:text-foreground disabled:opacity-50",children:m.jsx(z4,{className:"size-4"})})]})]})},_4=({dataSource:n=[],targetKeys:o,selectedKeys:s,onChange:i,onSelectChange:d,onSearch:f,render:h,showSearch:y=!1,titles:v=["Source","Target"],operations:x=["",""],disabled:C=!1,listStyle:w,pagination:N=!1,oneWay:R=!1,selectAllLabels:O,className:j,style:D})=>{const[A,z]=S.useState([]),B=o??A,[U,L]=S.useState([]),k=s??U,[V,H]=S.useState(""),[K,Z]=S.useState(""),Q=S.useMemo(()=>new Set(B),[B]),G=S.useMemo(()=>n.filter(se=>!Q.has(se.key)),[n,Q]),q=S.useMemo(()=>n.filter(se=>Q.has(se.key)),[n,Q]),W=S.useMemo(()=>k.filter(se=>!Q.has(se)),[k,Q]),te=S.useMemo(()=>k.filter(se=>Q.has(se)),[k,Q]),Y=S.useCallback(se=>typeof w=="function"?w({direction:se}):w,[w]),P=S.useCallback((se,Ce)=>{let re;Ce?re=[...k,se]:re=k.filter(Se=>Se!==se),s===void 0&&L(re);const he=re.filter(Se=>!Q.has(Se)),le=re.filter(Se=>Q.has(Se));d?.(he,le)},[k,s,Q,d]),F=S.useCallback((se,Ce)=>{const he=(se==="left"?G:q).filter(ve=>!ve.disabled).map(ve=>ve.key),le=se==="left"?te:W,Se=Ce?[...le,...he]:[...le];s===void 0&&L(Se);const ze=Se.filter(ve=>!Q.has(ve)),je=Se.filter(ve=>Q.has(ve));d?.(ze,je)},[G,q,W,te,s,Q,d]),ee=S.useCallback(()=>{const se=W.filter(he=>{const le=n.find(Se=>Se.key===he);return le&&!le.disabled});if(se.length===0)return;const Ce=[...B,...se];o===void 0&&z(Ce),i?.(Ce,"right",se);const re=k.filter(he=>!se.includes(he));s===void 0&&L(re)},[W,n,B,o,i,k,s]),oe=S.useCallback(()=>{const se=te.filter(le=>{const Se=n.find(ze=>ze.key===le);return Se&&!Se.disabled});if(se.length===0)return;const Ce=new Set(se),re=B.filter(le=>!Ce.has(le));o===void 0&&z(re),i?.(re,"left",se);const he=k.filter(le=>!se.includes(le));s===void 0&&L(he)},[te,n,B,o,i,k,s]),we=S.useCallback((se,Ce)=>{se==="left"?H(Ce):Z(Ce),f?.(se,Ce)},[f]);return m.jsxs("div",{className:$("inline-flex items-center gap-2",j),style:D,children:[m.jsx(gD,{direction:"left",title:v[0],items:G,selectedKeys:W,onSelectAll:se=>F("left",se),onSelect:P,showSearch:y,searchValue:V,onSearch:se=>we("left",se),render:h,disabled:C,listStyle:Y("left"),pagination:N,selectAllLabel:O?.[0]}),m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsxs("button",{type:"button",disabled:C||W.length===0,onClick:ee,className:$("inline-flex items-center gap-1 rounded-md bg-primary px-2 py-1 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary/90","disabled:cursor-not-allowed disabled:opacity-50"),children:[x[1]&&m.jsx("span",{children:x[1]}),m.jsx(z4,{className:"size-3.5"})]}),!R&&m.jsxs("button",{type:"button",disabled:C||te.length===0,onClick:oe,className:$("inline-flex items-center gap-1 rounded-md bg-primary px-2 py-1 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary/90","disabled:cursor-not-allowed disabled:opacity-50"),children:[m.jsx(A4,{className:"size-3.5"}),x[0]&&m.jsx("span",{children:x[0]})]})]}),m.jsx(gD,{direction:"right",title:v[1],items:q,selectedKeys:te,onSelectAll:se=>F("right",se),onSelect:P,showSearch:y,searchValue:K,onSearch:se=>we("right",se),render:h,disabled:C,listStyle:Y("right"),pagination:N,selectAllLabel:O?.[1]})]})};_4.displayName="Transfer";const ZX=_4;function U4({className:n}){return m.jsx("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"m6 9 6 6 6-6"})})}function KX({className:n}){return m.jsx("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"m9 18 6-6-6-6"})})}function yD({className:n,onClick:o}){return m.jsxs("svg",{className:n,onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M18 6 6 18"}),m.jsx("path",{d:"m6 6 12 12"})]})}function FX({className:n}){return m.jsxs("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("circle",{cx:"11",cy:"11",r:"8"}),m.jsx("path",{d:"m21 21-4.3-4.3"})]})}function WX({className:n}){return m.jsx("svg",{className:$("animate-spin",n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}function JX(n){return{label:n?.label??"title",value:n?.value??"value",children:n?.children??"children"}}function qw(n,o){return n[o]}function Gw(n,o){return n[o]}function my(n,o){return n[o]}function eP(n,o){const s=[],i=d=>{for(const f of d){s.push(f.value);const h=my(f,o);h&&i(h)}};return i(n),s}function ww(n,o,s,i){for(const d of n){if(qw(d,s)===o)return d;const f=my(d,i);if(f){const h=ww(f,o,s,i);if(h)return h}}}function B4(n,o,s,i){const d=o.toLowerCase();return n.reduce((f,h)=>{const y=Gw(h,s),v=typeof y=="string"?y:String(y??""),x=my(h,i),C=x?B4(x,o,s,i):[];return(v.toLowerCase().includes(d)||C.length>0)&&f.push({...h,[i]:C.length>0?C:x}),f},[])}const L4=({node:n,level:o,expandedKeys:s,selectedValues:i,treeCheckable:d,treeLine:f,loadingKeys:h,valueKey:y,labelKey:v,childrenKey:x,onExpand:C,onSelect:w,onCheck:N})=>{const R=qw(n,y),O=Gw(n,v),j=my(n,x),D=n.isLeaf??(!j||j.length===0),A=s.has(R),z=i.has(R),B=h.has(R);return m.jsxs("div",{children:[m.jsxs("div",{className:$("flex items-center gap-1 rounded px-2 py-1 text-sm",!n.disabled&&"cursor-pointer hover:bg-muted/50",z&&!d&&"bg-primary/10 font-medium text-primary",n.disabled&&"cursor-not-allowed opacity-50"),style:{paddingLeft:o*20+8},onClick:()=>{n.disabled||(D||C(R),d||n.selectable!==!1&&w(R))},children:[D?m.jsx("span",{className:$("inline-flex size-5 shrink-0 items-center justify-center",f&&"text-muted-foreground"),children:f?"-":""}):m.jsx("span",{className:"inline-flex size-5 shrink-0 items-center justify-center",onClick:U=>{U.stopPropagation(),C(R)},children:B?m.jsx(WX,{className:"size-3.5 text-muted-foreground"}):A?m.jsx(U4,{className:"size-3.5 text-muted-foreground"}):m.jsx(KX,{className:"size-3.5 text-muted-foreground"})}),d&&n.checkable!==!1&&m.jsx("input",{type:"checkbox",className:"size-4 shrink-0 rounded border-input accent-primary",checked:z,disabled:n.disabled||n.disableCheckbox,onChange:U=>{U.stopPropagation(),N(R,U.target.checked)},onClick:U=>U.stopPropagation()}),m.jsx("span",{className:"min-w-0 flex-1 truncate",children:O})]}),!D&&A&&j&&m.jsx("div",{className:$(f&&"ml-2.5 border-l border-border"),children:j.map(U=>m.jsx(L4,{node:U,level:o+1,expandedKeys:s,selectedValues:i,treeCheckable:d,treeLine:f,loadingKeys:h,valueKey:y,labelKey:v,childrenKey:x,onExpand:C,onSelect:w,onCheck:N},qw(U,y)))})]})},V4=S.forwardRef((n,o)=>{const{treeData:s=[],value:i,defaultValue:d,onChange:f,treeCheckable:h=!1,showSearch:y=!1,multiple:v=!1,placeholder:x="Please select",allowClear:C=!1,disabled:w=!1,size:N="middle",status:R,variant:O="outlined",fieldNames:j,treeDefaultExpandAll:D=!1,treeDefaultExpandedKeys:A=[],treeExpandedKeys:z,onTreeExpand:B,maxTagCount:U,dropdownStyle:L,treeLine:k=!1,loadData:V,className:H,style:K}=n,Z=v||h,Q=JX(j),[G,q]=S.useState(!1),[W,te]=S.useState(""),Y=S.useCallback(de=>de==null?[]:Array.isArray(de)?de:[de],[]),[P,F]=S.useState(()=>Y(d)),ee=i!==void 0?Y(i):P,oe=S.useMemo(()=>new Set(ee),[ee]),[we,se]=S.useState(()=>D?eP(s,Q.children):A),Ce=z??we,re=S.useMemo(()=>new Set(Ce),[Ce]),[he,le]=S.useState(new Set),Se=S.useMemo(()=>W?B4(s,W,Q.label,Q.children):s,[s,W,Q.label,Q.children]),ze=S.useRef(null);S.useEffect(()=>{if(!G)return;const de=Me=>{ze.current&&!ze.current.contains(Me.target)&&(q(!1),te(""))};return document.addEventListener("mousedown",de),()=>document.removeEventListener("mousedown",de)},[G]);const je=S.useCallback(async de=>{const Me=re.has(de)?Ce.filter(Re=>Re!==de):[...Ce,de];if(z===void 0&&se(Me),B?.(Me),!re.has(de)&&V){const Re=ww(s,de,Q.value,Q.children);if(Re&&!Re.isLeaf&&(!my(Re,Q.children)||my(Re,Q.children).length===0)){le(De=>new Set(De).add(de));try{await V(Re)}finally{le(De=>{const Ie=new Set(De);return Ie.delete(de),Ie})}}}},[re,Ce,z,B,V,s,Q]),ve=S.useCallback((de,Me)=>{if(!f)return;const Re=de.map(De=>{const Ie=ww(s,De,Q.value,Q.children);return Ie?Gw(Ie,Q.label):String(De)});Z?f(de,Re,{triggerValue:Me}):f(de[0]??void 0,Re[0]??void 0,{triggerValue:Me})},[f,s,Q,Z]),fe=S.useCallback(de=>{let Me;Z?Me=oe.has(de)?ee.filter(Re=>Re!==de):[...ee,de]:(Me=[de],q(!1),te("")),i===void 0&&F(Me),ve(Me,de)},[Z,oe,ee,i,ve]),ce=S.useCallback((de,Me)=>{let Re;Me?Re=[...ee,de]:Re=ee.filter(De=>De!==de),i===void 0&&F(Re),ve(Re,de)},[ee,i,ve]),ae=S.useCallback((de,Me)=>{Me.stopPropagation();const Re=ee.filter(De=>De!==de);i===void 0&&F(Re),ve(Re,de)},[ee,i,ve]),ue=S.useCallback(de=>{de.stopPropagation(),i===void 0&&F([]),ve([],ee[0])},[i,ve,ee]),be=S.useMemo(()=>ee.map(de=>{const Me=ww(s,de,Q.value,Q.children);return{value:de,label:Me?Gw(Me,Q.label):String(de)}}),[ee,s,Q]),ie=typeof U=="number"?be.slice(0,U):be,Oe=typeof U=="number"?Math.max(0,be.length-U):0;return m.jsxs("div",{ref:de=>{ze.current=de,typeof o=="function"?o(de):o&&(o.current=de)},className:$("relative inline-block w-full",H),style:K,children:[m.jsxs("div",{role:"combobox","aria-expanded":G,"aria-haspopup":"tree",tabIndex:w?-1:0,onClick:()=>!w&&q(!G),onKeyDown:de=>{(de.key==="Enter"||de.key===" ")&&!w&&(de.preventDefault(),q(!G))},className:$("flex min-h-[32px] w-full flex-wrap items-center gap-1 rounded-lg border border-input bg-transparent px-2 py-1 text-sm transition-colors outline-none","focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50",w&&"cursor-not-allowed opacity-50",R==="error"&&"border-destructive focus-within:border-destructive focus-within:ring-destructive/20",R==="warning"&&"border-yellow-500 focus-within:border-yellow-500 focus-within:ring-yellow-500/20",O==="borderless"&&"border-0 shadow-none",O==="filled"&&"border-0 bg-muted",N==="large"&&"min-h-[40px] text-base",N==="small"&&"min-h-[28px] text-xs"),children:[Z?m.jsxs(m.Fragment,{children:[ie.map(de=>m.jsxs("span",{className:"inline-flex items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-xs",children:[m.jsx("span",{className:"max-w-[100px] truncate",children:de.label}),!w&&m.jsx(yD,{className:"size-3 cursor-pointer text-muted-foreground hover:text-foreground",onClick:Me=>ae(de.value,Me)})]},String(de.value))),Oe>0&&m.jsxs("span",{className:"inline-flex items-center rounded bg-muted px-1.5 py-0.5 text-xs text-muted-foreground",children:["+",Oe]}),y&&m.jsx("input",{className:"min-w-[60px] flex-1 border-none bg-transparent text-sm outline-none placeholder:text-muted-foreground",placeholder:be.length===0?x:void 0,value:W,onChange:de=>te(de.target.value),onClick:de=>{de.stopPropagation(),G||q(!0)},disabled:w}),!y&&be.length===0&&m.jsx("span",{className:"text-muted-foreground",children:x})]}):m.jsx(m.Fragment,{children:y&&G?m.jsx("input",{className:"min-w-0 flex-1 border-none bg-transparent text-sm outline-none placeholder:text-muted-foreground",placeholder:be.length>0?String(be[0].label):x,value:W,onChange:de=>te(de.target.value),onClick:de=>de.stopPropagation(),autoFocus:!0,disabled:w}):be.length>0?m.jsx("span",{className:"min-w-0 flex-1 truncate text-sm",children:be[0].label}):m.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-muted-foreground",children:x})}),m.jsxs("span",{className:"ml-auto flex shrink-0 items-center gap-1",children:[C&&ee.length>0&&!w&&m.jsx("span",{role:"button",tabIndex:-1,className:"inline-flex size-3.5 items-center justify-center rounded-full text-muted-foreground hover:text-foreground",onClick:ue,onMouseDown:de=>de.preventDefault(),children:m.jsx(yD,{className:"size-3"})}),m.jsx(U4,{className:$("size-4 text-muted-foreground transition-transform",G&&"rotate-180")})]})]}),G&&!w&&m.jsxs("div",{role:"tree",className:"absolute z-50 mt-1 max-h-72 w-full overflow-auto rounded-lg bg-popover py-1 shadow-md ring-1 ring-foreground/10",style:L,children:[y&&!Z&&m.jsx("div",{className:"px-2 pb-1",children:m.jsxs("div",{className:"flex items-center gap-1.5 rounded-md border border-input px-2 py-1",children:[m.jsx(FX,{className:"size-3.5 text-muted-foreground"}),m.jsx("input",{type:"text",placeholder:"Search...",className:"min-w-0 flex-1 border-none bg-transparent text-sm outline-none placeholder:text-muted-foreground",value:W,onChange:de=>te(de.target.value),onClick:de=>de.stopPropagation()})]})}),Se.length===0?m.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No data"}):Se.map(de=>m.jsx(L4,{node:de,level:0,expandedKeys:re,selectedValues:oe,treeCheckable:h,treeLine:k,loadingKeys:he,valueKey:Q.value,labelKey:Q.label,childrenKey:Q.children,onExpand:je,onSelect:fe,onCheck:ce},qw(de,Q.value)))]})]})});V4.displayName="TreeSelect";const tP=V4;function L2({className:n}){return m.jsxs("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),m.jsx("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})]})}function bD({className:n}){return m.jsxs("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),m.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]})}function Mv({className:n}){return m.jsxs("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M18 6 6 18"}),m.jsx("path",{d:"m6 6 12 12"})]})}function V2({className:n}){return m.jsx("svg",{className:$("animate-spin",n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}function nP({className:n}){return m.jsxs("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M5 12h14"}),m.jsx("path",{d:"M12 5v14"})]})}function aP({className:n}){return m.jsxs("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}),m.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}let vD=0;function oP(){return vD+=1,`upload-${Date.now()}-${vD}`}function lP(n){return{uid:oP(),name:n.name,size:n.size,type:n.type,status:"uploading",percent:0,originFileObj:n}}function hN(n){if(n.type?.startsWith("image/"))return!0;const o=n.name.split(".").pop()?.toLowerCase()??"";return["png","jpg","jpeg","gif","bmp","webp","svg"].includes(o)}const xD=({file:n,listType:o,onRemove:s,onPreview:i,showPreviewIcon:d,showRemoveIcon:f})=>{const h=n.thumbUrl??n.url;if(o==="picture-card"||o==="picture-circle"){const y=o==="picture-circle";return m.jsxs("div",{className:$("group relative flex items-center justify-center overflow-hidden border border-border bg-muted/30",y?"size-[104px] rounded-full":"size-[104px] rounded-lg",n.status==="error"&&"border-destructive"),children:[n.status==="uploading"?m.jsxs("div",{className:"flex flex-col items-center gap-1",children:[m.jsx(V2,{className:"size-5 text-muted-foreground"}),n.percent!=null&&m.jsxs("span",{className:"text-xs text-muted-foreground",children:[Math.round(n.percent),"%"]})]}):h&&hN(n)?m.jsx("img",{src:h,alt:n.name,className:"size-full object-cover"}):m.jsx(L2,{className:"size-8 text-muted-foreground"}),n.status!=="uploading"&&m.jsxs("div",{className:"absolute inset-0 flex items-center justify-center gap-2 bg-black/50 opacity-0 transition-opacity group-hover:opacity-100",children:[d&&i&&m.jsx("button",{type:"button",className:"rounded-full p-1 text-white hover:text-white/80",onClick:()=>i(n),children:m.jsx(aP,{className:"size-4"})}),f&&m.jsx("button",{type:"button",className:"rounded-full p-1 text-white hover:text-white/80",onClick:()=>s(n),children:m.jsx(Mv,{className:"size-4"})})]})]})}return o==="picture"?m.jsxs("div",{className:$("flex items-center gap-2 rounded-lg border border-border px-2 py-1.5",n.status==="error"&&"border-destructive text-destructive"),children:[m.jsx("div",{className:"flex size-12 shrink-0 items-center justify-center overflow-hidden rounded bg-muted/30",children:h&&hN(n)?m.jsx("img",{src:h,alt:n.name,className:"size-full object-cover"}):m.jsx(L2,{className:"size-6 text-muted-foreground"})}),m.jsx("span",{className:"min-w-0 flex-1 truncate text-sm",children:n.name}),n.status==="uploading"&&m.jsx(V2,{className:"size-4 shrink-0 text-muted-foreground"}),n.status==="done"&&m.jsx(bD,{className:"size-4 shrink-0 text-green-500"}),n.status==="error"&&m.jsx(Mv,{className:"size-4 shrink-0 text-destructive"}),f&&m.jsx("button",{type:"button",className:"shrink-0 rounded p-0.5 text-muted-foreground hover:text-foreground",onClick:()=>s(n),children:m.jsx(Mv,{className:"size-3.5"})})]}):m.jsxs("div",{className:$("group flex items-center gap-2 rounded px-2 py-1 hover:bg-muted/50",n.status==="error"&&"text-destructive"),children:[m.jsx(L2,{className:"size-4 shrink-0 text-muted-foreground"}),m.jsx("span",{className:$("min-w-0 flex-1 truncate text-sm",i&&"cursor-pointer hover:text-primary"),onClick:i?()=>i(n):void 0,children:n.name}),n.status==="uploading"&&m.jsx(V2,{className:"size-3.5 shrink-0 text-muted-foreground"}),n.status==="done"&&m.jsx(bD,{className:"size-3.5 shrink-0 text-green-500"}),n.status==="error"&&m.jsx(Mv,{className:"size-3.5 shrink-0 text-destructive"}),f&&m.jsx("button",{type:"button",className:"shrink-0 rounded p-0.5 text-muted-foreground opacity-0 transition-opacity hover:text-foreground group-hover:opacity-100",onClick:()=>s(n),children:m.jsx(Mv,{className:"size-3.5"})}),n.status==="uploading"&&n.percent!=null&&m.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-0.5",children:m.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${n.percent}%`}})})]})},lM=S.forwardRef((n,o)=>{const{accept:s,action:i,beforeUpload:d,customRequest:f,fileList:h,defaultFileList:y=[],onChange:v,onRemove:x,onPreview:C,listType:w="text",multiple:N=!1,maxCount:R,disabled:O=!1,showUploadList:j=!0,directory:D=!1,name:A="file",headers:z,data:B,children:U,className:L,style:k}=n,V=S.useRef(null),[H,K]=S.useState(y),Z=h??H,Q=j!==!1,G=typeof j=="object"?j.showPreviewIcon!==!1:!0,q=typeof j=="object"?j.showRemoveIcon!==!1:!0,W=S.useCallback(re=>{h===void 0&&K(re)},[h]),te=S.useCallback(re=>{v?.(re)},[v]),Y=S.useCallback((re,he)=>{if(f){f({file:he,onSuccess:le=>{const Se={...re,status:"done",percent:100,response:le};W(ze=>ze.map(je=>je.uid===re.uid?Se:je)),te({file:Se,fileList:Z.map(ze=>ze.uid===re.uid?Se:ze)})},onError:le=>{const Se={...re,status:"error",error:le};W(ze=>ze.map(je=>je.uid===re.uid?Se:je)),te({file:Se,fileList:Z.map(ze=>ze.uid===re.uid?Se:ze)})},onProgress:le=>{const Se={...re,status:"uploading",percent:le.percent};W(ze=>ze.map(je=>je.uid===re.uid?Se:je)),te({file:Se,fileList:Z.map(ze=>ze.uid===re.uid?Se:ze),event:le})}});return}if(i){let le=0;const Se=setInterval(()=>{le=Math.min(le+10+Math.random()*20,99);const je={...re,percent:le,status:"uploading"};W(ve=>ve.map(fe=>fe.uid===re.uid?je:fe)),te({file:je,fileList:Z.map(ve=>ve.uid===re.uid?je:ve),event:{percent:le}})},200);(typeof i=="string"?Promise.resolve(i):i(he)).then(je=>{const ve=new FormData;if(ve.append(A,he),B){const fe=typeof B=="function"?B(re):B;Object.entries(fe).forEach(([ce,ae])=>{ve.append(ce,ae)})}return fetch(je,{method:"POST",headers:z,body:ve})}).then(je=>{clearInterval(Se);const ve={...re,status:je.ok?"done":"error",percent:100,response:je};W(fe=>fe.map(ce=>ce.uid===re.uid?ve:ce)),te({file:ve,fileList:Z.map(fe=>fe.uid===re.uid?ve:fe)})}).catch(je=>{clearInterval(Se);const ve={...re,status:"error",error:je};W(fe=>fe.map(ce=>ce.uid===re.uid?ve:ce)),te({file:ve,fileList:Z.map(fe=>fe.uid===re.uid?ve:fe)})})}else{const le={...re,status:"done",percent:100};W(Se=>Se.map(ze=>ze.uid===re.uid?le:ze)),te({file:le,fileList:Z.map(Se=>Se.uid===re.uid?le:Se)})}},[f,i,A,z,B,Z,W,te]),P=S.useCallback(async re=>{let he=re;if(R!=null){const le=R-Z.length;if(le<=0)return;he=he.slice(0,le)}for(const le of he){if(d&&await Promise.resolve(d(le,he))===!1)continue;const Se=lP(le);hN(Se)&&(Se.thumbUrl=URL.createObjectURL(le)),W(je=>[...je,Se]);const ze=[...Z,Se];te({file:Se,fileList:ze}),Y(Se,le)}},[R,Z,d,W,te,Y]),F=S.useCallback(re=>{const he=Array.from(re.target.files??[]);he.length>0&&P(he),re.target.value=""},[P]),ee=S.useCallback(async re=>{if(x&&await Promise.resolve(x(re))===!1)return;const he=Z.filter(le=>le.uid!==re.uid);W(()=>he),te({file:{...re,status:"removed"},fileList:he})},[x,Z,W,te]),oe=S.useCallback(()=>{O||V.current?.click()},[O]),we=w==="picture-card"||w==="picture-circle",se=Z.filter(re=>re.status!=="removed"),Ce=R==null||se.length<R;return m.jsxs("div",{ref:o,className:$("inline-block",L),style:k,children:[m.jsx("input",{ref:V,type:"file",accept:s,multiple:N,className:"hidden",onChange:F,disabled:O,...D?{webkitdirectory:"true",directory:"true"}:{}}),we?m.jsxs("div",{className:"flex flex-wrap gap-2",children:[Q&&se.map(re=>m.jsx(xD,{file:re,listType:w,onRemove:ee,onPreview:C,showPreviewIcon:G,showRemoveIcon:q},re.uid)),Ce&&m.jsx("button",{type:"button",disabled:O,onClick:oe,className:$("flex items-center justify-center border border-dashed border-border bg-muted/20 text-muted-foreground transition-colors hover:border-primary hover:text-primary",O&&"cursor-not-allowed opacity-50",w==="picture-circle"?"size-[104px] rounded-full":"size-[104px] rounded-lg"),children:U??m.jsxs("div",{className:"flex flex-col items-center gap-1",children:[m.jsx(nP,{className:"size-6"}),m.jsx("span",{className:"text-xs",children:"Upload"})]})})]}):m.jsxs(m.Fragment,{children:[U&&m.jsx("div",{role:"button",tabIndex:O?-1:0,className:$("inline-block cursor-pointer",O&&"cursor-not-allowed opacity-50"),onClick:oe,onKeyDown:re=>{(re.key==="Enter"||re.key===" ")&&(re.preventDefault(),oe())},children:U}),Q&&se.length>0&&m.jsx("div",{className:"mt-2 flex flex-col gap-1",children:se.map(re=>m.jsx(xD,{file:re,listType:w,onRemove:ee,onPreview:C,showPreviewIcon:G,showRemoveIcon:q},re.uid))})]})]})});lM.displayName="Upload";function rP({className:n}){return m.jsxs("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}),m.jsx("path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"})]})}const H4=S.forwardRef((n,o)=>{const{height:s,disabled:i=!1,children:d,className:f,style:h,...y}=n,[v,x]=S.useState(!1),C=S.useRef(0),w=S.useRef(null),N=S.useCallback(A=>{w.current=A,typeof o=="function"?o(A):o&&(o.current=A)},[o]),R=S.useCallback(A=>{A.preventDefault(),A.stopPropagation(),!i&&(C.current+=1,C.current===1&&x(!0))},[i]),O=S.useCallback(A=>{A.preventDefault(),A.stopPropagation(),C.current-=1,C.current===0&&x(!1)},[]),j=S.useCallback(A=>{A.preventDefault(),A.stopPropagation()},[]),D=S.useCallback(A=>{if(A.preventDefault(),A.stopPropagation(),C.current=0,x(!1),i)return;const z=Array.from(A.dataTransfer.files);if(z.length===0)return;const B=w.current?.querySelector('input[type="file"]');if(B){const U=new DataTransfer;z.forEach(L=>U.items.add(L)),B.files=U.files,B.dispatchEvent(new Event("change",{bubbles:!0}))}},[i]);return m.jsx(lM,{ref:N,disabled:i,...y,children:m.jsx("div",{className:$("flex w-full cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed border-border bg-muted/20 px-6 py-8 text-center transition-colors",v&&"border-primary bg-primary/5",i&&"cursor-not-allowed opacity-50",!i&&"hover:border-primary/50",f),style:{...h,...s?{height:s}:{}},onDragEnter:R,onDragLeave:O,onDragOver:j,onDrop:D,children:d??m.jsxs(m.Fragment,{children:[m.jsx(rP,{className:"mb-3 size-12 text-primary/60"}),m.jsx("p",{className:"mb-1 text-base font-medium text-foreground",children:"Click or drag file to this area to upload"}),m.jsx("p",{className:"text-sm text-muted-foreground",children:"Support for a single or bulk upload."})]})})})});H4.displayName="Upload.Dragger";const I4=lM;I4.Dragger=H4;const sP=Zv("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});function iP({className:n,variant:o,...s}){return m.jsx("div",{"data-slot":"alert",role:"alert",className:$(sP({variant:o}),n),...s})}function cP({className:n,...o}){return m.jsx("div",{"data-slot":"alert-title",className:$("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",n),...o})}function uP({className:n,...o}){return m.jsx("div",{"data-slot":"alert-description",className:$("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",n),...o})}function dP({className:n,...o}){return m.jsx("div",{"data-slot":"alert-action",className:$("absolute top-2 right-2",n),...o})}const fP={success:m.jsx(cf,{className:"size-4"}),info:m.jsx(hy,{className:"size-4"}),warning:m.jsx(gy,{className:"size-4"}),error:m.jsx(uf,{className:"size-4"})},mP={success:"border-green-200 bg-green-50 text-green-800 dark:border-green-800 dark:bg-green-950 dark:text-green-200",info:"border-blue-200 bg-blue-50 text-blue-800 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-200",warning:"border-yellow-200 bg-yellow-50 text-yellow-800 dark:border-yellow-800 dark:bg-yellow-950 dark:text-yellow-200",error:"border-red-200 bg-red-50 text-red-800 dark:border-red-800 dark:bg-red-950 dark:text-red-200"},rM=S.forwardRef((n,o)=>{const{type:s="info",message:i,title:d,description:f,closable:h=!1,showIcon:y=!1,icon:v,action:x,banner:C=!1,afterClose:w,closeIcon:N,onClose:R,className:O,style:j}=n,[D,A]=S.useState(!1),[z,B]=S.useState(!1),U=i??d,L=S.useMemo(()=>!h&&!C?null:h===!0||C?{closeIcon:N,afterClose:w,onClose:R}:typeof h=="object"?{closeIcon:h.closeIcon??N,afterClose:h.afterClose??w,onClose:h.onClose??R}:null,[h,C,N,w,R]),k=S.useCallback(H=>{L?.onClose?.(H),B(!0),setTimeout(()=>{A(!0),L?.afterClose?.()},150)},[L]);if(D)return null;const V=v??(y||C?fP[s]:null);return m.jsxs(iP,{ref:o,className:$(mP[s],C&&"rounded-none border-x-0 border-t-0",z&&"opacity-0 transition-opacity duration-150",O),style:j,children:[V,U&&m.jsx(cP,{children:U}),f&&m.jsx(uP,{children:f}),(x||L)&&m.jsx(dP,{children:m.jsxs("div",{className:"flex items-center gap-1",children:[x,L&&m.jsxs("button",{type:"button",onClick:k,className:"inline-flex items-center justify-center rounded-sm p-0.5 opacity-70 transition-opacity hover:opacity-100",children:[L.closeIcon??m.jsx(go,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})})]})});rM.displayName="Alert";class pP extends S.Component{constructor(o){super(o),this.state={hasError:!1,error:null}}static getDerivedStateFromError(o){return{hasError:!0,error:o}}render(){return this.state.hasError?m.jsx(rM,{type:"error",message:this.props.message??"Something went wrong",description:this.props.description??this.state.error?.message??"",showIcon:!0}):this.props.children}}const Y4=rM;Y4.ErrorBoundary=pP;const sM=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(sM.displayName="DialogRootContext");function Ey(n){const o=S.useContext(sM);if(n===!1&&o===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.":Nn(27));return o}const hP={...Js,...gs},TC=S.forwardRef(function(o,s){const{render:i,className:d,forceRender:f=!1,...h}=o,{store:y}=Ey(),v=y.useState("open"),x=y.useState("nested"),C=y.useState("mounted"),w=y.useState("transitionStatus");return zt("div",o,{state:{open:v,transitionStatus:w},ref:[y.context.backdropRef,s],stateAttributesMapping:hP,props:[{role:"presentation",hidden:!C,style:{userSelect:"none",WebkitUserSelect:"none"}},h],enabled:f||!x})});process.env.NODE_ENV!=="production"&&(TC.displayName="DialogBackdrop");const MC=S.forwardRef(function(o,s){const{render:i,className:d,disabled:f=!1,nativeButton:h=!0,...y}=o,{store:v}=Ey(),x=v.useState("open");function C(O){x&&v.setOpen(!1,vt(CB,O.nativeEvent))}const{getButtonProps:w,buttonRef:N}=Fs({disabled:f,native:h});return zt("button",o,{state:{disabled:f},ref:[s,N],props:[{onClick:C},y,w]})});process.env.NODE_ENV!=="production"&&(MC.displayName="DialogClose");let gP=(function(n){return n.nestedDialogs="--nested-dialogs",n})({}),yP=(function(n){return n[n.open=up.open]="open",n[n.closed=up.closed]="closed",n[n.startingStyle=up.startingStyle]="startingStyle",n[n.endingStyle=up.endingStyle]="endingStyle",n.nested="data-nested",n.nestedDialogOpen="data-nested-dialog-open",n})({});const iM=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(iM.displayName="DialogPortalContext");function bP(){const n=S.useContext(iM);if(n===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Dialog.Portal> is missing.":Nn(26));return n}const vP={...Js,...gs,nestedDialogOpen(n){return n?{[yP.nestedDialogOpen]:""}:null}},RC=S.forwardRef(function(o,s){const{className:i,finalFocus:d,initialFocus:f,render:h,...y}=o,{store:v}=Ey(),x=v.useState("descriptionElementId"),C=v.useState("disablePointerDismissal"),w=v.useState("floatingRootContext"),N=v.useState("popupProps"),R=v.useState("modal"),O=v.useState("mounted"),j=v.useState("nested"),D=v.useState("nestedOpenDialogCount"),A=v.useState("open"),z=v.useState("openMethod"),B=v.useState("titleElementId"),U=v.useState("transitionStatus"),L=v.useState("role");bP(),Ll({open:A,ref:v.context.popupRef,onComplete(){A&&v.context.onOpenChangeComplete?.(!0)}});function k(Q){return Q==="touch"?v.context.popupRef.current:!0}const V=f===void 0?k:f,H=D>0,Z=zt("div",o,{state:{open:A,nested:j,transitionStatus:U,nestedDialogOpen:H},props:[N,{"aria-labelledby":B??void 0,"aria-describedby":x??void 0,role:L,tabIndex:-1,hidden:!O,onKeyDown(Q){sC.has(Q.key)&&Q.stopPropagation()},style:{[gP.nestedDialogs]:D}},y],ref:[s,v.context.popupRef,v.useStateSetter("popupElement")],stateAttributesMapping:vP});return m.jsx(uC,{context:w,openInteractionType:z,disabled:!O,closeOnFocusOut:!C,initialFocus:V,returnFocus:d,modal:R!==!1,restoreFocus:"popup",children:Z})});process.env.NODE_ENV!=="production"&&(RC.displayName="DialogPopup");const OC=S.forwardRef(function(o,s){const{keepMounted:i=!1,...d}=o,{store:f}=Ey(),h=f.useState("mounted"),y=f.useState("modal"),v=f.useState("open");return h||i?m.jsx(iM.Provider,{value:i,children:m.jsxs(ox,{ref:s,...d,children:[h&&y===!0&&m.jsx(sx,{ref:f.context.internalBackdropRef,inert:tx(!v)}),o.children]})}):null});process.env.NODE_ENV!=="production"&&(OC.displayName="DialogPortal");function xP(n){const{store:o,parentContext:s,actionsRef:i}=n,d=o.useState("open"),f=o.useState("disablePointerDismissal"),h=o.useState("modal"),y=o.useState("popupElement"),{openMethod:v,triggerProps:x,reset:C}=xC(d);fC(o);const{forceUnmount:w}=mC(d,o,()=>{C()}),N=Ke(Z=>{const Q=vt(Z);return Q.preventUnmountOnClose=()=>{o.set("preventUnmountingOnClose",!0)},Q}),R=S.useCallback(()=>{o.setOpen(!1,N(nC))},[o,N]);S.useImperativeHandle(i,()=>({unmount:w,close:R}),[w,R]);const O=gC({popupStore:o,onOpenChange:o.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[j,D]=S.useState(0),A=j===0,z=uT(O),B=lx(O,{outsidePressEvent(){return o.context.internalBackdropRef.current||o.context.backdropRef.current?"intentional":{mouse:h==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(Z){if(!o.context.outsidePressEnabledRef.current||"button"in Z&&Z.button!==0||"touches"in Z&&Z.touches.length!==1)return!1;const Q=bl(Z);if(A&&!f){const G=Q;return h&&(o.context.internalBackdropRef.current||o.context.backdropRef.current)?o.context.internalBackdropRef.current===G||o.context.backdropRef.current===G||Ut(G,y)&&!G?.hasAttribute("data-base-ui-portal"):!0}return!1},escapeKey:A});vC(d&&h===!0,y);const{getReferenceProps:U,getFloatingProps:L,getTriggerProps:k}=Cp([z,B]);o.useContextCallback("onNestedDialogOpen",Z=>{D(Z+1)}),o.useContextCallback("onNestedDialogClose",()=>{D(0)}),S.useEffect(()=>(s?.onNestedDialogOpen&&d&&s.onNestedDialogOpen(j),s?.onNestedDialogClose&&!d&&s.onNestedDialogClose(),()=>{s?.onNestedDialogClose&&d&&s.onNestedDialogClose()}),[d,s,j]);const V=S.useMemo(()=>U(x),[U,x]),H=S.useMemo(()=>k(x),[k,x]),K=S.useMemo(()=>L(),[L]);o.useSyncedValues({openMethod:v,activeTriggerProps:V,inactiveTriggerProps:H,popupProps:K,floatingRootContext:O,nestedOpenDialogCount:j})}const SP={...hC,modal:Ze(n=>n.modal),nested:Ze(n=>n.nested),nestedOpenDialogCount:Ze(n=>n.nestedOpenDialogCount),disablePointerDismissal:Ze(n=>n.disablePointerDismissal),openMethod:Ze(n=>n.openMethod),descriptionElementId:Ze(n=>n.descriptionElementId),titleElementId:Ze(n=>n.titleElementId),viewportElement:Ze(n=>n.viewportElement),role:Ze(n=>n.role)};class wP extends rx{constructor(o){super(CP(o),{popupRef:S.createRef(),backdropRef:S.createRef(),internalBackdropRef:S.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new xy,onOpenChange:void 0,onOpenChangeComplete:void 0},SP)}setOpen=(o,s)=>{if(s.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!o&&s.trigger==null&&this.state.activeTriggerId!=null&&(s.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(o,s),s.isCanceled)return;const i={open:o,nativeEvent:s.event,reason:s.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit("openchange",i);const d={open:o},f=s.trigger?.id??null;(f||o)&&(d.activeTriggerId=f,d.activeTriggerElement=s.trigger??null),this.update(d)}}function CP(n={}){return{...pC(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...n}}function cM(n){const{children:o,open:s,defaultOpen:i=!1,onOpenChange:d,onOpenChangeComplete:f,disablePointerDismissal:h=!1,modal:y=!0,actionsRef:v,handle:x,triggerId:C,defaultTriggerId:w=null}=n,N=Ey(!0),R=!!N,O=Qa(()=>x?.store??new wP({open:i,openProp:s,activeTriggerId:w,triggerIdProp:C,modal:y,disablePointerDismissal:h,nested:R})).current;ix(()=>{s===void 0&&O.state.open===!1&&i===!0&&O.update({open:!0,activeTriggerId:w})}),O.useControlledProp("openProp",s),O.useControlledProp("triggerIdProp",C),O.useSyncedValues({disablePointerDismissal:h,nested:R,modal:y}),O.useContextCallback("onOpenChange",d),O.useContextCallback("onOpenChangeComplete",f);const j=O.useState("payload");xP({store:O,actionsRef:v,parentContext:N?.store.context});const D=S.useMemo(()=>({store:O}),[O]);return m.jsx(sM.Provider,{value:D,children:typeof o=="function"?o({payload:j}):o})}const jC=S.forwardRef(function(o,s){const{render:i,className:d,id:f,...h}=o,{store:y}=Ey(),v=vl(f);return y.useSyncedValueWithCleanup("titleElementId",v),zt("h2",o,{ref:s,props:[{id:v},h]})});process.env.NODE_ENV!=="production"&&(jC.displayName="DialogTitle");const q4=S.forwardRef((n,o)=>{const{open:s=!1,onOk:i,onCancel:d,title:f,footer:h,width:y=520,centered:v=!1,closable:x=!0,closeIcon:C,confirmLoading:w=!1,destroyOnHidden:N=!1,mask:R=!0,maskClosable:O=!0,okText:j="OK",cancelText:D="Cancel",okType:A="primary",okButtonProps:z,cancelButtonProps:B,afterClose:U,afterOpenChange:L,zIndex:k,loading:V=!1,modalRender:H,wrapClassName:K,children:Z,className:Q,style:G}=n,[q,W]=S.useState(s);S.useEffect(()=>{W(s)},[s]);const te=S.useCallback(le=>{le||d?.({}),W(le),L?.(le),le||U?.()},[d,L,U]),Y=S.useCallback(le=>{i?.(le)},[i]),P=S.useCallback(le=>{d?.(le),W(!1)},[d]),F=S.useCallback(()=>m.jsx(Qi,{type:"default",onClick:P,...B,children:D}),[P,B,D]),ee=S.useCallback(()=>m.jsx(Qi,{type:A,loading:w,onClick:Y,...z,children:j}),[A,w,Y,z,j]),oe=m.jsxs(m.Fragment,{children:[m.jsx(F,{}),m.jsx(ee,{})]});let we;h===null?we=null:typeof h=="function"?we=h(oe,{OkBtn:ee,CancelBtn:F}):h!==void 0?we=h:we=oe;const se=typeof y=="number"?`${y}px`:y;if(!q&&N)return null;const Ce=V?m.jsx("div",{className:"flex items-center justify-center py-8",children:m.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):Z,re=m.jsxs(RC,{ref:o,"data-slot":"modal-content",className:$("fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-0 text-sm ring-1 ring-foreground/10 duration-100 outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",v?"top-1/2":"top-[100px] translate-y-0",K,Q),style:{maxWidth:se,...k?{zIndex:k}:{},...G},children:[(f||x)&&m.jsxs("div",{className:"flex items-center justify-between border-b px-6 py-4",children:[f&&m.jsx(jC,{className:"text-base font-semibold leading-none",children:f}),x&&m.jsxs(MC,{render:m.jsx(pf,{variant:"ghost",className:"ml-auto -mr-2",size:"icon-sm"}),children:[C??m.jsx(go,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]}),m.jsx("div",{className:"px-6 py-2",children:Ce}),we!==null&&m.jsx("div",{className:"flex items-center justify-end gap-2 border-t px-6 py-3",children:we})]}),he=H?H(re):re;return m.jsx(cM,{open:q,onOpenChange:te,disablePointerDismissal:!O,children:m.jsxs(OC,{children:[R&&m.jsx(TC,{className:$("fixed inset-0 isolate z-50 bg-black/45 duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"),style:k?{zIndex:k}:void 0}),he]})})});q4.displayName="Modal";var dw={exports:{}},Rv={},fw={exports:{}},H2={};var SD;function EP(){return SD||(SD=1,(function(n){function o(Y,P){var F=Y.length;Y.push(P);e:for(;0<F;){var ee=F-1>>>1,oe=Y[ee];if(0<d(oe,P))Y[ee]=P,Y[F]=oe,F=ee;else break e}}function s(Y){return Y.length===0?null:Y[0]}function i(Y){if(Y.length===0)return null;var P=Y[0],F=Y.pop();if(F!==P){Y[0]=F;e:for(var ee=0,oe=Y.length,we=oe>>>1;ee<we;){var se=2*(ee+1)-1,Ce=Y[se],re=se+1,he=Y[re];if(0>d(Ce,F))re<oe&&0>d(he,Ce)?(Y[ee]=he,Y[re]=F,ee=re):(Y[ee]=Ce,Y[se]=F,ee=se);else if(re<oe&&0>d(he,F))Y[ee]=he,Y[re]=F,ee=re;else break e}}return P}function d(Y,P){var F=Y.sortIndex-P.sortIndex;return F!==0?F:Y.id-P.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,y=h.now();n.unstable_now=function(){return h.now()-y}}var v=[],x=[],C=1,w=null,N=3,R=!1,O=!1,j=!1,D=!1,A=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function U(Y){for(var P=s(x);P!==null;){if(P.callback===null)i(x);else if(P.startTime<=Y)i(x),P.sortIndex=P.expirationTime,o(v,P);else break;P=s(x)}}function L(Y){if(j=!1,U(Y),!O)if(s(v)!==null)O=!0,k||(k=!0,G());else{var P=s(x);P!==null&&te(L,P.startTime-Y)}}var k=!1,V=-1,H=5,K=-1;function Z(){return D?!0:!(n.unstable_now()-K<H)}function Q(){if(D=!1,k){var Y=n.unstable_now();K=Y;var P=!0;try{e:{O=!1,j&&(j=!1,z(V),V=-1),R=!0;var F=N;try{t:{for(U(Y),w=s(v);w!==null&&!(w.expirationTime>Y&&Z());){var ee=w.callback;if(typeof ee=="function"){w.callback=null,N=w.priorityLevel;var oe=ee(w.expirationTime<=Y);if(Y=n.unstable_now(),typeof oe=="function"){w.callback=oe,U(Y),P=!0;break t}w===s(v)&&i(v),U(Y)}else i(v);w=s(v)}if(w!==null)P=!0;else{var we=s(x);we!==null&&te(L,we.startTime-Y),P=!1}}break e}finally{w=null,N=F,R=!1}P=void 0}}finally{P?G():k=!1}}}var G;if(typeof B=="function")G=function(){B(Q)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,W=q.port2;q.port1.onmessage=Q,G=function(){W.postMessage(null)}}else G=function(){A(Q,0)};function te(Y,P){V=A(function(){Y(n.unstable_now())},P)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(Y){Y.callback=null},n.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<Y?Math.floor(1e3/Y):5},n.unstable_getCurrentPriorityLevel=function(){return N},n.unstable_next=function(Y){switch(N){case 1:case 2:case 3:var P=3;break;default:P=N}var F=N;N=P;try{return Y()}finally{N=F}},n.unstable_requestPaint=function(){D=!0},n.unstable_runWithPriority=function(Y,P){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var F=N;N=Y;try{return P()}finally{N=F}},n.unstable_scheduleCallback=function(Y,P,F){var ee=n.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ee+F:ee):F=ee,Y){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=F+oe,Y={id:C++,callback:P,priorityLevel:Y,startTime:F,expirationTime:oe,sortIndex:-1},F>ee?(Y.sortIndex=F,o(x,Y),s(v)===null&&Y===s(x)&&(j?(z(V),V=-1):j=!0,te(L,F-ee))):(Y.sortIndex=oe,o(v,Y),O||R||(O=!0,k||(k=!0,G()))),Y},n.unstable_shouldYield=Z,n.unstable_wrapCallback=function(Y){var P=N;return function(){var F=N;N=P;try{return Y.apply(this,arguments)}finally{N=F}}}})(H2)),H2}var I2={};var wD;function NP(){return wD||(wD=1,(function(n){process.env.NODE_ENV!=="production"&&(function(){function o(){if(L=!1,K){var Y=n.unstable_now();G=Y;var P=!0;try{e:{B=!1,U&&(U=!1,V(Z),Z=-1),z=!0;var F=A;try{t:{for(h(Y),D=i(R);D!==null&&!(D.expirationTime>Y&&v());){var ee=D.callback;if(typeof ee=="function"){D.callback=null,A=D.priorityLevel;var oe=ee(D.expirationTime<=Y);if(Y=n.unstable_now(),typeof oe=="function"){D.callback=oe,h(Y),P=!0;break t}D===i(R)&&d(R),h(Y)}else d(R);D=i(R)}if(D!==null)P=!0;else{var we=i(O);we!==null&&x(y,we.startTime-Y),P=!1}}break e}finally{D=null,A=F,z=!1}P=void 0}}finally{P?q():K=!1}}}function s(Y,P){var F=Y.length;Y.push(P);e:for(;0<F;){var ee=F-1>>>1,oe=Y[ee];if(0<f(oe,P))Y[ee]=P,Y[F]=oe,F=ee;else break e}}function i(Y){return Y.length===0?null:Y[0]}function d(Y){if(Y.length===0)return null;var P=Y[0],F=Y.pop();if(F!==P){Y[0]=F;e:for(var ee=0,oe=Y.length,we=oe>>>1;ee<we;){var se=2*(ee+1)-1,Ce=Y[se],re=se+1,he=Y[re];if(0>f(Ce,F))re<oe&&0>f(he,Ce)?(Y[ee]=he,Y[re]=F,ee=re):(Y[ee]=Ce,Y[se]=F,ee=se);else if(re<oe&&0>f(he,F))Y[ee]=he,Y[re]=F,ee=re;else break e}}return P}function f(Y,P){var F=Y.sortIndex-P.sortIndex;return F!==0?F:Y.id-P.id}function h(Y){for(var P=i(O);P!==null;){if(P.callback===null)d(O);else if(P.startTime<=Y)d(O),P.sortIndex=P.expirationTime,s(R,P);else break;P=i(O)}}function y(Y){if(U=!1,h(Y),!B)if(i(R)!==null)B=!0,K||(K=!0,q());else{var P=i(O);P!==null&&x(y,P.startTime-Y)}}function v(){return L?!0:!(n.unstable_now()-G<Q)}function x(Y,P){Z=k(function(){Y(n.unstable_now())},P)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var C=performance;n.unstable_now=function(){return C.now()}}else{var w=Date,N=w.now();n.unstable_now=function(){return w.now()-N}}var R=[],O=[],j=1,D=null,A=3,z=!1,B=!1,U=!1,L=!1,k=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null,K=!1,Z=-1,Q=5,G=-1;if(typeof H=="function")var q=function(){H(o)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,te=W.port2;W.port1.onmessage=o,q=function(){te.postMessage(null)}}else q=function(){k(o,0)};n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(Y){Y.callback=null},n.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<Y?Math.floor(1e3/Y):5},n.unstable_getCurrentPriorityLevel=function(){return A},n.unstable_next=function(Y){switch(A){case 1:case 2:case 3:var P=3;break;default:P=A}var F=A;A=P;try{return Y()}finally{A=F}},n.unstable_requestPaint=function(){L=!0},n.unstable_runWithPriority=function(Y,P){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var F=A;A=Y;try{return P()}finally{A=F}},n.unstable_scheduleCallback=function(Y,P,F){var ee=n.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ee+F:ee):F=ee,Y){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=F+oe,Y={id:j++,callback:P,priorityLevel:Y,startTime:F,expirationTime:oe,sortIndex:-1},F>ee?(Y.sortIndex=F,s(O,Y),i(R)===null&&Y===i(O)&&(U?(V(Z),Z=-1):U=!0,x(y,F-ee))):(Y.sortIndex=oe,s(R,Y),B||z||(B=!0,K||(K=!0,q()))),Y},n.unstable_shouldYield=v,n.unstable_wrapCallback=function(Y){var P=A;return function(){var F=A;A=P;try{return Y.apply(this,arguments)}finally{A=F}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(I2)),I2}var CD;function G4(){return CD||(CD=1,process.env.NODE_ENV==="production"?fw.exports=EP():fw.exports=NP()),fw.exports}var ED;function TP(){if(ED)return Rv;ED=1;var n=G4(),o=Qe,s=yN;function i(a){var r="https://react.dev/errors/"+a;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)r+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+a+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function f(a){var r=a,c=a;if(a.alternate)for(;r.return;)r=r.return;else{a=r;do r=a,(r.flags&4098)!==0&&(c=r.return),a=r.return;while(a)}return r.tag===3?c:null}function h(a){if(a.tag===13){var r=a.memoizedState;if(r===null&&(a=a.alternate,a!==null&&(r=a.memoizedState)),r!==null)return r.dehydrated}return null}function y(a){if(a.tag===31){var r=a.memoizedState;if(r===null&&(a=a.alternate,a!==null&&(r=a.memoizedState)),r!==null)return r.dehydrated}return null}function v(a){if(f(a)!==a)throw Error(i(188))}function x(a){var r=a.alternate;if(!r){if(r=f(a),r===null)throw Error(i(188));return r!==a?null:a}for(var c=a,p=r;;){var E=c.return;if(E===null)break;var T=E.alternate;if(T===null){if(p=E.return,p!==null){c=p;continue}break}if(E.child===T.child){for(T=E.child;T;){if(T===c)return v(E),a;if(T===p)return v(E),r;T=T.sibling}throw Error(i(188))}if(c.return!==p.return)c=E,p=T;else{for(var I=!1,ne=E.child;ne;){if(ne===c){I=!0,c=E,p=T;break}if(ne===p){I=!0,p=E,c=T;break}ne=ne.sibling}if(!I){for(ne=T.child;ne;){if(ne===c){I=!0,c=T,p=E;break}if(ne===p){I=!0,p=T,c=E;break}ne=ne.sibling}if(!I)throw Error(i(189))}}if(c.alternate!==p)throw Error(i(190))}if(c.tag!==3)throw Error(i(188));return c.stateNode.current===c?a:r}function C(a){var r=a.tag;if(r===5||r===26||r===27||r===6)return a;for(a=a.child;a!==null;){if(r=C(a),r!==null)return r;a=a.sibling}return null}var w=Object.assign,N=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),B=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function G(a){return a===null||typeof a!="object"?null:(a=Q&&a[Q]||a["@@iterator"],typeof a=="function"?a:null)}var q=Symbol.for("react.client.reference");function W(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===q?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case j:return"Fragment";case A:return"Profiler";case D:return"StrictMode";case L:return"Suspense";case k:return"SuspenseList";case K:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case O:return"Portal";case B:return a.displayName||"Context";case z:return(a._context.displayName||"Context")+".Consumer";case U:var r=a.render;return a=a.displayName,a||(a=r.displayName||r.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case V:return r=a.displayName||null,r!==null?r:W(a.type)||"Memo";case H:r=a._payload,a=a._init;try{return W(a(r))}catch{}}return null}var te=Array.isArray,Y=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ee=[],oe=-1;function we(a){return{current:a}}function se(a){0>oe||(a.current=ee[oe],ee[oe]=null,oe--)}function Ce(a,r){oe++,ee[oe]=a.current,a.current=r}var re=we(null),he=we(null),le=we(null),Se=we(null);function ze(a,r){switch(Ce(le,r),Ce(he,a),Ce(re,null),r.nodeType){case 9:case 11:a=(a=r.documentElement)&&(a=a.namespaceURI)?j1(a):0;break;default:if(a=r.tagName,r=r.namespaceURI)r=j1(r),a=p0(r,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}se(re),Ce(re,a)}function je(){se(re),se(he),se(le)}function ve(a){a.memoizedState!==null&&Ce(Se,a);var r=re.current,c=p0(r,a.type);r!==c&&(Ce(he,a),Ce(re,c))}function fe(a){he.current===a&&(se(re),se(he)),Se.current===a&&(se(Se),jm._currentValue=F)}var ce,ae;function ue(a){if(ce===void 0)try{throw Error()}catch(c){var r=c.stack.trim().match(/\n( *(at )?)/);ce=r&&r[1]||"",ae=-1<c.stack.indexOf(`
|
|
24
|
+
at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
25
|
+
`+ce+a+ae}var be=!1;function ie(a,r){if(!a||be)return"";be=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(r){var Xe=function(){throw Error()};if(Object.defineProperty(Xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Xe,[])}catch(He){var Ue=He}Reflect.construct(a,[],Xe)}else{try{Xe.call()}catch(He){Ue=He}a.call(Xe.prototype)}}else{try{throw Error()}catch(He){Ue=He}(Xe=a())&&typeof Xe.catch=="function"&&Xe.catch(function(){})}}catch(He){if(He&&Ue&&typeof He.stack=="string")return[He.stack,Ue.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var T=p.DetermineComponentFrameRoot(),I=T[0],ne=T[1];if(I&&ne){var ye=I.split(`
|
|
26
|
+
`),_e=ne.split(`
|
|
27
|
+
`);for(E=p=0;p<ye.length&&!ye[p].includes("DetermineComponentFrameRoot");)p++;for(;E<_e.length&&!_e[E].includes("DetermineComponentFrameRoot");)E++;if(p===ye.length||E===_e.length)for(p=ye.length-1,E=_e.length-1;1<=p&&0<=E&&ye[p]!==_e[E];)E--;for(;1<=p&&0<=E;p--,E--)if(ye[p]!==_e[E]){if(p!==1||E!==1)do if(p--,E--,0>E||ye[p]!==_e[E]){var Ye=`
|
|
28
|
+
`+ye[p].replace(" at new "," at ");return a.displayName&&Ye.includes("<anonymous>")&&(Ye=Ye.replace("<anonymous>",a.displayName)),Ye}while(1<=p&&0<=E);break}}}finally{be=!1,Error.prepareStackTrace=c}return(c=a?a.displayName||a.name:"")?ue(c):""}function Oe(a,r){switch(a.tag){case 26:case 27:case 5:return ue(a.type);case 16:return ue("Lazy");case 13:return a.child!==r&&r!==null?ue("Suspense Fallback"):ue("Suspense");case 19:return ue("SuspenseList");case 0:case 15:return ie(a.type,!1);case 11:return ie(a.type.render,!1);case 1:return ie(a.type,!0);case 31:return ue("Activity");default:return""}}function de(a){try{var r="",c=null;do r+=Oe(a,c),c=a,a=a.return;while(a);return r}catch(p){return`
|
|
29
|
+
Error generating stack: `+p.message+`
|
|
30
|
+
`+p.stack}}var Me=Object.prototype.hasOwnProperty,Re=n.unstable_scheduleCallback,De=n.unstable_cancelCallback,Ie=n.unstable_shouldYield,We=n.unstable_requestPaint,$e=n.unstable_now,st=n.unstable_getCurrentPriorityLevel,nn=n.unstable_ImmediatePriority,ln=n.unstable_UserBlockingPriority,Tt=n.unstable_NormalPriority,Lt=n.unstable_LowPriority,Kt=n.unstable_IdlePriority,Ft=n.log,ya=n.unstable_setDisableYieldValue,Wn=null,ct=null;function ot(a){if(typeof Ft=="function"&&ya(a),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(Wn,a)}catch{}}var xt=Math.clz32?Math.clz32:at,Mt=Math.log,mn=Math.LN2;function at(a){return a>>>=0,a===0?32:31-(Mt(a)/mn|0)|0}var lt=256,tt=262144,ht=4194304;function Yt(a){var r=a&42;if(r!==0)return r;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function it(a,r,c){var p=a.pendingLanes;if(p===0)return 0;var E=0,T=a.suspendedLanes,I=a.pingedLanes;a=a.warmLanes;var ne=p&134217727;return ne!==0?(p=ne&~T,p!==0?E=Yt(p):(I&=ne,I!==0?E=Yt(I):c||(c=ne&~a,c!==0&&(E=Yt(c))))):(ne=p&~T,ne!==0?E=Yt(ne):I!==0?E=Yt(I):c||(c=p&~a,c!==0&&(E=Yt(c)))),E===0?0:r!==0&&r!==E&&(r&T)===0&&(T=E&-E,c=r&-r,T>=c||T===32&&(c&4194048)!==0)?r:E}function oa(a,r){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&r)===0}function yo(a,r){switch(a){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function oo(){var a=ht;return ht<<=1,(ht&62914560)===0&&(ht=4194304),a}function bo(a){for(var r=[],c=0;31>c;c++)r.push(a);return r}function lo(a,r){a.pendingLanes|=r,r!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Rt(a,r,c,p,E,T){var I=a.pendingLanes;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=c,a.entangledLanes&=c,a.errorRecoveryDisabledLanes&=c,a.shellSuspendCounter=0;var ne=a.entanglements,ye=a.expirationTimes,_e=a.hiddenUpdates;for(c=I&~c;0<c;){var Ye=31-xt(c),Xe=1<<Ye;ne[Ye]=0,ye[Ye]=-1;var Ue=_e[Ye];if(Ue!==null)for(_e[Ye]=null,Ye=0;Ye<Ue.length;Ye++){var He=Ue[Ye];He!==null&&(He.lane&=-536870913)}c&=~Xe}p!==0&&pn(a,p,0),T!==0&&E===0&&a.tag!==0&&(a.suspendedLanes|=T&~(I&~r))}function pn(a,r,c){a.pendingLanes|=r,a.suspendedLanes&=~r;var p=31-xt(r);a.entangledLanes|=r,a.entanglements[p]=a.entanglements[p]|1073741824|c&261930}function Hn(a,r){var c=a.entangledLanes|=r;for(a=a.entanglements;c;){var p=31-xt(c),E=1<<p;E&r|a[p]&r&&(a[p]|=r),c&=~E}}function Tn(a,r){var c=r&-r;return c=(c&42)!==0?1:qn(c),(c&(a.suspendedLanes|r))!==0?0:c}function qn(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Sr(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function ec(){var a=P.p;return a!==0?a:(a=window.event,a===void 0?32:Dm(a.type))}function bf(a,r){var c=P.p;try{return P.p=a,r()}finally{P.p=c}}var Vl=Math.random().toString(36).slice(2),Mn="__reactFiber$"+Vl,vo="__reactProps$"+Vl,ei="__reactContainer$"+Vl,Mp="__reactEvents$"+Vl,Ty="__reactListeners$"+Vl,bx="__reactHandles$"+Vl,My="__reactResources$"+Vl,wr="__reactMarker$"+Vl;function Rp(a){delete a[Mn],delete a[vo],delete a[Mp],delete a[Ty],delete a[bx]}function tc(a){var r=a[Mn];if(r)return r;for(var c=a.parentNode;c;){if(r=c[ei]||c[Mn]){if(c=r.alternate,r.child!==null||c!==null&&c.child!==null)for(a=rr(a);a!==null;){if(c=a[Mn])return c;a=rr(a)}return r}a=c,c=a.parentNode}return null}function nc(a){if(a=a[Mn]||a[ei]){var r=a.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return a}return null}function wu(a){var r=a.tag;if(r===5||r===26||r===27||r===6)return a.stateNode;throw Error(i(33))}function ac(a){var r=a[My];return r||(r=a[My]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function vn(a){a[wr]=!0}var oc=new Set,ti={};function ni(a,r){Cr(a,r),Cr(a+"Capture",r)}function Cr(a,r){for(ti[a]=r,a=0;a<r.length;a++)oc.add(r[a])}var Op=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),jp={},Cu={};function Eu(a){return Me.call(Cu,a)?!0:Me.call(jp,a)?!1:Op.test(a)?Cu[a]=!0:(jp[a]=!0,!1)}function Nu(a,r,c){if(Eu(r))if(c===null)a.removeAttribute(r);else{switch(typeof c){case"undefined":case"function":case"symbol":a.removeAttribute(r);return;case"boolean":var p=r.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){a.removeAttribute(r);return}}a.setAttribute(r,""+c)}}function Dp(a,r,c){if(c===null)a.removeAttribute(r);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(r);return}a.setAttribute(r,""+c)}}function ys(a,r,c,p){if(p===null)a.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(c);return}a.setAttributeNS(r,c,""+p)}}function Qo(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function kp(a){var r=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Ry(a,r,c){var p=Object.getOwnPropertyDescriptor(a.constructor.prototype,r);if(!a.hasOwnProperty(r)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var E=p.get,T=p.set;return Object.defineProperty(a,r,{configurable:!0,get:function(){return E.call(this)},set:function(I){c=""+I,T.call(this,I)}}),Object.defineProperty(a,r,{enumerable:p.enumerable}),{getValue:function(){return c},setValue:function(I){c=""+I},stopTracking:function(){a._valueTracker=null,delete a[r]}}}}function Ap(a){if(!a._valueTracker){var r=kp(a)?"checked":"value";a._valueTracker=Ry(a,r,""+a[r])}}function Oy(a){if(!a)return!1;var r=a._valueTracker;if(!r)return!0;var c=r.getValue(),p="";return a&&(p=kp(a)?a.checked?"true":"false":a.value),a=p,a!==c?(r.setValue(a),!0):!1}function vf(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var DC=/[\n"\\]/g;function Zo(a){return a.replace(DC,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function xf(a,r,c,p,E,T,I,ne){a.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?a.type=I:a.removeAttribute("type"),r!=null?I==="number"?(r===0&&a.value===""||a.value!=r)&&(a.value=""+Qo(r)):a.value!==""+Qo(r)&&(a.value=""+Qo(r)):I!=="submit"&&I!=="reset"||a.removeAttribute("value"),r!=null?lc(a,I,Qo(r)):c!=null?lc(a,I,Qo(c)):p!=null&&a.removeAttribute("value"),E==null&&T!=null&&(a.defaultChecked=!!T),E!=null&&(a.checked=E&&typeof E!="function"&&typeof E!="symbol"),ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"?a.name=""+Qo(ne):a.removeAttribute("name")}function Sf(a,r,c,p,E,T,I,ne){if(T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(a.type=T),r!=null||c!=null){if(!(T!=="submit"&&T!=="reset"||r!=null)){Ap(a);return}c=c!=null?""+Qo(c):"",r=r!=null?""+Qo(r):c,ne||r===a.value||(a.value=r),a.defaultValue=r}p=p??E,p=typeof p!="function"&&typeof p!="symbol"&&!!p,a.checked=ne?a.checked:!!p,a.defaultChecked=!!p,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(a.name=I),Ap(a)}function lc(a,r,c){r==="number"&&vf(a.ownerDocument)===a||a.defaultValue===""+c||(a.defaultValue=""+c)}function Tu(a,r,c,p){if(a=a.options,r){r={};for(var E=0;E<c.length;E++)r["$"+c[E]]=!0;for(c=0;c<a.length;c++)E=r.hasOwnProperty("$"+a[c].value),a[c].selected!==E&&(a[c].selected=E),E&&p&&(a[c].defaultSelected=!0)}else{for(c=""+Qo(c),r=null,E=0;E<a.length;E++){if(a[E].value===c){a[E].selected=!0,p&&(a[E].defaultSelected=!0);return}r!==null||a[E].disabled||(r=a[E])}r!==null&&(r.selected=!0)}}function jy(a,r,c){if(r!=null&&(r=""+Qo(r),r!==a.value&&(a.value=r),c==null)){a.defaultValue!==r&&(a.defaultValue=r);return}a.defaultValue=c!=null?""+Qo(c):""}function Dy(a,r,c,p){if(r==null){if(p!=null){if(c!=null)throw Error(i(92));if(te(p)){if(1<p.length)throw Error(i(93));p=p[0]}c=p}c==null&&(c=""),r=c}c=Qo(r),a.defaultValue=c,p=a.textContent,p===c&&p!==""&&p!==null&&(a.value=p),Ap(a)}function Er(a,r){if(r){var c=a.firstChild;if(c&&c===a.lastChild&&c.nodeType===3){c.nodeValue=r;return}}a.textContent=r}var vx=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function xx(a,r,c){var p=r.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?p?a.setProperty(r,""):r==="float"?a.cssFloat="":a[r]="":p?a.setProperty(r,c):typeof c!="number"||c===0||vx.has(r)?r==="float"?a.cssFloat=c:a[r]=(""+c).trim():a[r]=c+"px"}function Sx(a,r,c){if(r!=null&&typeof r!="object")throw Error(i(62));if(a=a.style,c!=null){for(var p in c)!c.hasOwnProperty(p)||r!=null&&r.hasOwnProperty(p)||(p.indexOf("--")===0?a.setProperty(p,""):p==="float"?a.cssFloat="":a[p]="");for(var E in r)p=r[E],r.hasOwnProperty(E)&&c[E]!==p&&xx(a,E,p)}else for(var T in r)r.hasOwnProperty(T)&&xx(a,T,r[T])}function ky(a){if(a.indexOf("-")===-1)return!1;switch(a){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 kC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),wf=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xl(a){return wf.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Hl(){}var zp=null;function _p(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Nr=null,rc=null;function Cf(a){var r=nc(a);if(r&&(a=r.stateNode)){var c=a[vo]||null;e:switch(a=r.stateNode,r.type){case"input":if(xf(a,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),r=c.name,c.type==="radio"&&r!=null){for(c=a;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Zo(""+r)+'"][type="radio"]'),r=0;r<c.length;r++){var p=c[r];if(p!==a&&p.form===a.form){var E=p[vo]||null;if(!E)throw Error(i(90));xf(p,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(r=0;r<c.length;r++)p=c[r],p.form===a.form&&Oy(p)}break e;case"textarea":jy(a,c.value,c.defaultValue);break e;case"select":r=c.value,r!=null&&Tu(a,!!c.multiple,r,!1)}}}var Mu=!1;function Ay(a,r,c){if(Mu)return a(r,c);Mu=!0;try{var p=a(r);return p}finally{if(Mu=!1,(Nr!==null||rc!==null)&&(cd(),Nr&&(r=Nr,a=rc,rc=Nr=null,Cf(r),a)))for(r=0;r<a.length;r++)Cf(a[r])}}function Da(a,r){var c=a.stateNode;if(c===null)return null;var p=c[vo]||null;if(p===null)return null;c=p[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(a=a.type,p=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!p;break e;default:a=!1}if(a)return null;if(c&&typeof c!="function")throw Error(i(231,r,typeof c));return c}var bs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ef=!1;if(bs)try{var Ru={};Object.defineProperty(Ru,"passive",{get:function(){Ef=!0}}),window.addEventListener("test",Ru,Ru),window.removeEventListener("test",Ru,Ru)}catch{Ef=!1}var vs=null,zy=null,Up=null;function _y(){if(Up)return Up;var a,r=zy,c=r.length,p,E="value"in vs?vs.value:vs.textContent,T=E.length;for(a=0;a<c&&r[a]===E[a];a++);var I=c-a;for(p=1;p<=I&&r[c-p]===E[T-p];p++);return Up=E.slice(a,1<p?1-p:void 0)}function Bp(a){var r=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&r===13&&(a=13)):a=r,a===10&&(a=13),32<=a||a===13?a:0}function Nf(){return!0}function wx(){return!1}function Ka(a){function r(c,p,E,T,I){this._reactName=c,this._targetInst=E,this.type=p,this.nativeEvent=T,this.target=I,this.currentTarget=null;for(var ne in a)a.hasOwnProperty(ne)&&(c=a[ne],this[ne]=c?c(T):T[ne]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?Nf:wx,this.isPropagationStopped=wx,this}return w(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Nf)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Nf)},persist:function(){},isPersistent:Nf}),r}var ai={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tf=Ka(ai),Ou=w({},ai,{view:0,detail:0}),AC=Ka(Ou),Uy,By,Mf,Lp=w({},Ou,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sl,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Mf&&(Mf&&a.type==="mousemove"?(Uy=a.screenX-Mf.screenX,By=a.screenY-Mf.screenY):By=Uy=0,Mf=a),Uy)},movementY:function(a){return"movementY"in a?a.movementY:By}}),ju=Ka(Lp),Cx=w({},Lp,{dataTransfer:0}),Ex=Ka(Cx),Nx=w({},Ou,{relatedTarget:0}),Vp=Ka(Nx),Ly=w({},ai,{animationName:0,elapsedTime:0,pseudoElement:0}),Tx=Ka(Ly),sc=w({},ai,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),ic=Ka(sc),Il=w({},ai,{data:0}),Mx=Ka(Il),Vy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Rx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yl(a){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(a):(a=Rx[a])?!!r[a]:!1}function Sl(){return Yl}var Hp=w({},Ou,{key:function(a){if(a.key){var r=Vy[a.key]||a.key;if(r!=="Unidentified")return r}return a.type==="keypress"?(a=Bp(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?Tr[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sl,charCode:function(a){return a.type==="keypress"?Bp(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Bp(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Ip=Ka(Hp),Hy=w({},Lp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ql=Ka(Hy),zC=w({},Ou,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sl}),Ox=Ka(zC),jx=w({},ai,{propertyName:0,elapsedTime:0,pseudoElement:0}),_C=Ka(jx),Iy=w({},Lp,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),UC=Ka(Iy),Dx=w({},ai,{newState:0,oldState:0}),Yy=Ka(Dx),Yp=[9,13,27,32],Du=bs&&"CompositionEvent"in window,cc=null;bs&&"documentMode"in document&&(cc=document.documentMode);var ro=bs&&"TextEvent"in window&&!cc,qy=bs&&(!Du||cc&&8<cc&&11>=cc),Rf=" ",oi=!1;function qp(a,r){switch(a){case"keyup":return Yp.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gy(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var uc=!1;function kx(a,r){switch(a){case"compositionend":return Gy(r);case"keypress":return r.which!==32?null:(oi=!0,Rf);case"textInput":return a=r.data,a===Rf&&oi?null:a;default:return null}}function BC(a,r){if(uc)return a==="compositionend"||!Du&&qp(a,r)?(a=_y(),Up=zy=vs=null,uc=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return qy&&r.locale!=="ko"?null:r.data;default:return null}}var Xy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mr(a){var r=a&&a.nodeName&&a.nodeName.toLowerCase();return r==="input"?!!Xy[a.type]:r==="textarea"}function Py(a,r,c,p){Nr?rc?rc.push(p):rc=[p]:Nr=p,r=Em(r,"onChange"),0<r.length&&(c=new Tf("onChange","change",null,c,p),a.push({event:c,listeners:r}))}var dc=null,li=null;function fc(a){M1(a,0)}function ku(a){var r=wu(a);if(Oy(r))return a}function $y(a,r){if(a==="change")return r}var Gp=!1;if(bs){var xo;if(bs){var Gl="oninput"in document;if(!Gl){var Qy=document.createElement("div");Qy.setAttribute("oninput","return;"),Gl=typeof Qy.oninput=="function"}xo=Gl}else xo=!1;Gp=xo&&(!document.documentMode||9<document.documentMode)}function Xp(){dc&&(dc.detachEvent("onpropertychange",Pp),li=dc=null)}function Pp(a){if(a.propertyName==="value"&&ku(li)){var r=[];Py(r,li,a,_p(a)),Ay(fc,r)}}function Ax(a,r,c){a==="focusin"?(Xp(),dc=r,li=c,dc.attachEvent("onpropertychange",Pp)):a==="focusout"&&Xp()}function zx(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return ku(li)}function ri(a,r){if(a==="click")return ku(r)}function mc(a,r){if(a==="input"||a==="change")return ku(r)}function _x(a,r){return a===r&&(a!==0||1/a===1/r)||a!==a&&r!==r}var so=typeof Object.is=="function"?Object.is:_x;function wl(a,r){if(so(a,r))return!0;if(typeof a!="object"||a===null||typeof r!="object"||r===null)return!1;var c=Object.keys(a),p=Object.keys(r);if(c.length!==p.length)return!1;for(p=0;p<c.length;p++){var E=c[p];if(!Me.call(r,E)||!so(a[E],r[E]))return!1}return!0}function Zy(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Ky(a,r){var c=Zy(a);a=0;for(var p;c;){if(c.nodeType===3){if(p=a+c.textContent.length,a<=r&&p>=r)return{node:c,offset:r-a};a=p}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=Zy(c)}}function pc(a,r){return a&&r?a===r?!0:a&&a.nodeType===3?!1:r&&r.nodeType===3?pc(a,r.parentNode):"contains"in a?a.contains(r):a.compareDocumentPosition?!!(a.compareDocumentPosition(r)&16):!1:!1}function si(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var r=vf(a.document);r instanceof a.HTMLIFrameElement;){try{var c=typeof r.contentWindow.location.href=="string"}catch{c=!1}if(c)a=r.contentWindow;else break;r=vf(a.document)}return r}function Of(a){var r=a&&a.nodeName&&a.nodeName.toLowerCase();return r&&(r==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||r==="textarea"||a.contentEditable==="true")}var jf=bs&&"documentMode"in document&&11>=document.documentMode,ii=null,Au=null,Cl=null,Xl=!1;function $p(a,r,c){var p=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Xl||ii==null||ii!==vf(p)||(p=ii,"selectionStart"in p&&Of(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Cl&&wl(Cl,p)||(Cl=p,p=Em(Au,"onSelect"),0<p.length&&(r=new Tf("onSelect","select",null,r,c),a.push({event:r,listeners:p}),r.target=ii)))}function xs(a,r){var c={};return c[a.toLowerCase()]=r.toLowerCase(),c["Webkit"+a]="webkit"+r,c["Moz"+a]="moz"+r,c}var Pl={animationend:xs("Animation","AnimationEnd"),animationiteration:xs("Animation","AnimationIteration"),animationstart:xs("Animation","AnimationStart"),transitionrun:xs("Transition","TransitionRun"),transitionstart:xs("Transition","TransitionStart"),transitioncancel:xs("Transition","TransitionCancel"),transitionend:xs("Transition","TransitionEnd")},zu={},ci={};bs&&(ci=document.createElement("div").style,"AnimationEvent"in window||(delete Pl.animationend.animation,delete Pl.animationiteration.animation,delete Pl.animationstart.animation),"TransitionEvent"in window||delete Pl.transitionend.transition);function hn(a){if(zu[a])return zu[a];if(!Pl[a])return a;var r=Pl[a],c;for(c in r)if(r.hasOwnProperty(c)&&c in ci)return zu[a]=r[c];return a}var Df=hn("animationend"),Fy=hn("animationiteration"),Qp=hn("animationstart"),hc=hn("transitionrun"),kf=hn("transitionstart"),Rr=hn("transitioncancel"),Ux=hn("transitionend"),Or=new Map,_u="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");_u.push("scrollEnd");function So(a,r){Or.set(a,r),ni(r,[a])}var gc=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Gn=[],ka=0,El=0;function Ko(){for(var a=ka,r=El=ka=0;r<a;){var c=Gn[r];Gn[r++]=null;var p=Gn[r];Gn[r++]=null;var E=Gn[r];Gn[r++]=null;var T=Gn[r];if(Gn[r++]=null,p!==null&&E!==null){var I=p.pending;I===null?E.next=E:(E.next=I.next,I.next=E),p.pending=E}T!==0&&Zp(c,E,T)}}function Fo(a,r,c,p){Gn[ka++]=a,Gn[ka++]=r,Gn[ka++]=c,Gn[ka++]=p,El|=p,a.lanes|=p,a=a.alternate,a!==null&&(a.lanes|=p)}function Nl(a,r,c,p){return Fo(a,r,c,p),Af(a)}function Ss(a,r){return Fo(a,null,null,r),Af(a)}function Zp(a,r,c){a.lanes|=c;var p=a.alternate;p!==null&&(p.lanes|=c);for(var E=!1,T=a.return;T!==null;)T.childLanes|=c,p=T.alternate,p!==null&&(p.childLanes|=c),T.tag===22&&(a=T.stateNode,a===null||a._visibility&1||(E=!0)),a=T,T=T.return;return a.tag===3?(T=a.stateNode,E&&r!==null&&(E=31-xt(c),a=T.hiddenUpdates,p=a[E],p===null?a[E]=[r]:p.push(r),r.lane=c|536870912),T):null}function Af(a){if(50<id)throw id=0,hm=null,Error(i(185));for(var r=a.return;r!==null;)a=r,r=a.return;return a.tag===3?a.stateNode:null}var wo={};function Bx(a,r,c,p){this.tag=a,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function la(a,r,c,p){return new Bx(a,r,c,p)}function yc(a){return a=a.prototype,!(!a||!a.isReactComponent)}function ws(a,r){var c=a.alternate;return c===null?(c=la(a.tag,r,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=r,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=a.flags&65011712,c.childLanes=a.childLanes,c.lanes=a.lanes,c.child=a.child,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,r=a.dependencies,c.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},c.sibling=a.sibling,c.index=a.index,c.ref=a.ref,c.refCleanup=a.refCleanup,c}function Wy(a,r){a.flags&=65011714;var c=a.alternate;return c===null?(a.childLanes=0,a.lanes=r,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,r=c.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a}function Kp(a,r,c,p,E,T){var I=0;if(p=a,typeof a=="function")yc(a)&&(I=1);else if(typeof a=="string")I=S0(a,c,re.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case K:return a=la(31,c,r,E),a.elementType=K,a.lanes=T,a;case j:return Cs(c.children,E,T,r);case D:I=8,E|=24;break;case A:return a=la(12,c,r,E|2),a.elementType=A,a.lanes=T,a;case L:return a=la(13,c,r,E),a.elementType=L,a.lanes=T,a;case k:return a=la(19,c,r,E),a.elementType=k,a.lanes=T,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case B:I=10;break e;case z:I=9;break e;case U:I=11;break e;case V:I=14;break e;case H:I=16,p=null;break e}I=29,c=Error(i(130,a===null?"null":typeof a,"")),p=null}return r=la(I,c,r,E),r.elementType=a,r.type=p,r.lanes=T,r}function Cs(a,r,c,p){return a=la(7,a,p,r),a.lanes=c,a}function Uu(a,r,c){return a=la(6,a,null,r),a.lanes=c,a}function Jy(a){var r=la(18,null,null,0);return r.stateNode=a,r}function Fp(a,r,c){return r=la(4,a.children!==null?a.children:[],a.key,r),r.lanes=c,r.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},r}var eb=new WeakMap;function Wo(a,r){if(typeof a=="object"&&a!==null){var c=eb.get(a);return c!==void 0?c:(r={value:a,source:r,stack:de(r)},eb.set(a,r),r)}return{value:a,source:r,stack:de(r)}}var Jo=[],bc=0,zf=null,ua=0,Bo=[],Co=0,$l=null,Lo=1,Ql="";function Tl(a,r){Jo[bc++]=ua,Jo[bc++]=zf,zf=a,ua=r}function tb(a,r,c){Bo[Co++]=Lo,Bo[Co++]=Ql,Bo[Co++]=$l,$l=a;var p=Lo;a=Ql;var E=32-xt(p)-1;p&=~(1<<E),c+=1;var T=32-xt(r)+E;if(30<T){var I=E-E%5;T=(p&(1<<I)-1).toString(32),p>>=I,E-=I,Lo=1<<32-xt(r)+E|c<<E|p,Ql=T+a}else Lo=1<<T|c<<E|p,Ql=a}function Bu(a){a.return!==null&&(Tl(a,1),tb(a,1,0))}function Wp(a){for(;a===zf;)zf=Jo[--bc],Jo[bc]=null,ua=Jo[--bc],Jo[bc]=null;for(;a===$l;)$l=Bo[--Co],Bo[Co]=null,Ql=Bo[--Co],Bo[Co]=null,Lo=Bo[--Co],Bo[Co]=null}function _f(a,r){Bo[Co++]=Lo,Bo[Co++]=Ql,Bo[Co++]=$l,Lo=r.id,Ql=r.overflow,$l=a}var Aa=null,zn=null,Wt=!1,jr=null,Ca=!1,Dr=Error(i(519));function Ml(a){var r=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vu(Wo(r,a)),Dr}function Uf(a){var r=a.stateNode,c=a.type,p=a.memoizedProps;switch(r[Mn]=a,r[vo]=p,c){case"dialog":Zt("cancel",r),Zt("close",r);break;case"iframe":case"object":case"embed":Zt("load",r);break;case"video":case"audio":for(c=0;c<pd.length;c++)Zt(pd[c],r);break;case"source":Zt("error",r);break;case"img":case"image":case"link":Zt("error",r),Zt("load",r);break;case"details":Zt("toggle",r);break;case"input":Zt("invalid",r),Sf(r,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":Zt("invalid",r);break;case"textarea":Zt("invalid",r),Dy(r,p.value,p.defaultValue,p.children)}c=p.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||r.textContent===""+c||p.suppressHydrationWarning===!0||u0(r.textContent,c)?(p.popover!=null&&(Zt("beforetoggle",r),Zt("toggle",r)),p.onScroll!=null&&Zt("scroll",r),p.onScrollEnd!=null&&Zt("scrollend",r),p.onClick!=null&&(r.onclick=Hl),r=!0):r=!1,r||Ml(a,!0)}function Lu(a){for(Aa=a.return;Aa;)switch(Aa.tag){case 5:case 31:case 13:Ca=!1;return;case 27:case 3:Ca=!0;return;default:Aa=Aa.return}}function kr(a){if(a!==Aa)return!1;if(!Wt)return Lu(a),Wt=!0,!1;var r=a.tag,c;if((c=r!==3&&r!==27)&&((c=r===5)&&(c=a.type,c=!(c!=="form"&&c!=="button")||gd(a.type,a.memoizedProps)),c=!c),c&&zn&&Ml(a),Lu(a),r===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));zn=tg(a)}else if(r===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));zn=tg(a)}else r===27?(r=zn,lr(a.type)?(a=Mm,Mm=null,zn=a):zn=r):zn=Aa?Ao(a.stateNode.nextSibling):null;return!0}function ui(){zn=Aa=null,Wt=!1}function nb(){var a=jr;return a!==null&&(ta===null?ta=a:ta.push.apply(ta,a),jr=null),a}function Vu(a){jr===null?jr=[a]:jr.push(a)}var Jp=we(null),Es=null,Zl=null;function Eo(a,r,c){Ce(Jp,r._currentValue),r._currentValue=c}function Kl(a){a._currentValue=Jp.current,se(Jp)}function eh(a,r,c){for(;a!==null;){var p=a.alternate;if((a.childLanes&r)!==r?(a.childLanes|=r,p!==null&&(p.childLanes|=r)):p!==null&&(p.childLanes&r)!==r&&(p.childLanes|=r),a===c)break;a=a.return}}function Ar(a,r,c,p){var E=a.child;for(E!==null&&(E.return=a);E!==null;){var T=E.dependencies;if(T!==null){var I=E.child;T=T.firstContext;e:for(;T!==null;){var ne=T;T=E;for(var ye=0;ye<r.length;ye++)if(ne.context===r[ye]){T.lanes|=c,ne=T.alternate,ne!==null&&(ne.lanes|=c),eh(T.return,c,a),p||(I=null);break e}T=ne.next}}else if(E.tag===18){if(I=E.return,I===null)throw Error(i(341));I.lanes|=c,T=I.alternate,T!==null&&(T.lanes|=c),eh(I,c,a),I=null}else I=E.child;if(I!==null)I.return=E;else for(I=E;I!==null;){if(I===a){I=null;break}if(E=I.sibling,E!==null){E.return=I.return,I=E;break}I=I.return}E=I}}function za(a,r,c,p){a=null;for(var E=r,T=!1;E!==null;){if(!T){if((E.flags&524288)!==0)T=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var I=E.alternate;if(I===null)throw Error(i(387));if(I=I.memoizedProps,I!==null){var ne=E.type;so(E.pendingProps.value,I.value)||(a!==null?a.push(ne):a=[ne])}}else if(E===Se.current){if(I=E.alternate,I===null)throw Error(i(387));I.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(a!==null?a.push(jm):a=[jm])}E=E.return}a!==null&&Ar(r,a,c,p),r.flags|=262144}function vc(a){for(a=a.firstContext;a!==null;){if(!so(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Dt(a){Es=a,Zl=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Pe(a){return Bf(Es,a)}function Ns(a,r){return Es===null&&Dt(a),Bf(a,r)}function Bf(a,r){var c=r._currentValue;if(r={context:r,memoizedValue:c,next:null},Zl===null){if(a===null)throw Error(i(308));Zl=r,a.dependencies={lanes:0,firstContext:r},a.flags|=524288}else Zl=Zl.next=r;return c}var ra=typeof AbortController<"u"?AbortController:function(){var a=[],r=this.signal={aborted:!1,addEventListener:function(c,p){a.push(p)}};this.abort=function(){r.aborted=!0,a.forEach(function(c){return c()})}},ab=n.unstable_scheduleCallback,ob=n.unstable_NormalPriority,da={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lf(){return{controller:new ra,data:new Map,refCount:0}}function Vf(a){a.refCount--,a.refCount===0&&ab(ob,function(){a.controller.abort()})}var xc=null,Hf=0,di=0,ba=null;function xn(a,r){if(xc===null){var c=xc=[];Hf=0,di=$h(),ba={status:"pending",value:void 0,then:function(p){c.push(p)}}}return Hf++,r.then(If,If),r}function If(){if(--Hf===0&&xc!==null){ba!==null&&(ba.status="fulfilled");var a=xc;xc=null,di=0,ba=null;for(var r=0;r<a.length;r++)(0,a[r])()}}function Yf(a,r){var c=[],p={status:"pending",value:null,reason:null,then:function(E){c.push(E)}};return a.then(function(){p.status="fulfilled",p.value=r;for(var E=0;E<c.length;E++)(0,c[E])(r)},function(E){for(p.status="rejected",p.reason=E,E=0;E<c.length;E++)(0,c[E])(void 0)}),p}var Ts=Y.S;Y.S=function(a,r){Fb=$e(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&xn(a,r),Ts!==null&&Ts(a,r)};var el=we(null);function tl(){var a=el.current;return a!==null?a:On.pooledCache}function Hu(a,r){r===null?Ce(el,el.current):Ce(el,r.pool)}function Sc(){var a=tl();return a===null?null:{parent:da._currentValue,pool:a}}var fi=Error(i(460)),wc=Error(i(474)),Iu=Error(i(542)),Cc={then:function(){}};function lb(a){return a=a.status,a==="fulfilled"||a==="rejected"}function rb(a,r,c){switch(c=a[c],c===void 0?a.push(r):c!==r&&(r.then(Hl,Hl),r=c),r.status){case"fulfilled":return r.value;case"rejected":throw a=r.reason,th(a),a;default:if(typeof r.status=="string")r.then(Hl,Hl);else{if(a=On,a!==null&&100<a.shellSuspendCounter)throw Error(i(482));a=r,a.status="pending",a.then(function(p){if(r.status==="pending"){var E=r;E.status="fulfilled",E.value=p}},function(p){if(r.status==="pending"){var E=r;E.status="rejected",E.reason=p}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw a=r.reason,th(a),a}throw pi=r,fi}}function mi(a){try{var r=a._init;return r(a._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(pi=c,fi):c}}var pi=null;function sb(){if(pi===null)throw Error(i(459));var a=pi;return pi=null,a}function th(a){if(a===fi||a===Iu)throw Error(i(483))}var hi=null,Ec=0;function qf(a){var r=Ec;return Ec+=1,hi===null&&(hi=[]),rb(hi,a,r)}function Yu(a,r){r=r.props.ref,a.ref=r!==void 0?r:null}function Gf(a,r){throw r.$$typeof===N?Error(i(525)):(a=Object.prototype.toString.call(r),Error(i(31,a==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":a)))}function Lx(a){function r(ke,Ne){if(a){var Ae=ke.deletions;Ae===null?(ke.deletions=[Ne],ke.flags|=16):Ae.push(Ne)}}function c(ke,Ne){if(!a)return null;for(;Ne!==null;)r(ke,Ne),Ne=Ne.sibling;return null}function p(ke){for(var Ne=new Map;ke!==null;)ke.key!==null?Ne.set(ke.key,ke):Ne.set(ke.index,ke),ke=ke.sibling;return Ne}function E(ke,Ne){return ke=ws(ke,Ne),ke.index=0,ke.sibling=null,ke}function T(ke,Ne,Ae){return ke.index=Ae,a?(Ae=ke.alternate,Ae!==null?(Ae=Ae.index,Ae<Ne?(ke.flags|=67108866,Ne):Ae):(ke.flags|=67108866,Ne)):(ke.flags|=1048576,Ne)}function I(ke){return a&&ke.alternate===null&&(ke.flags|=67108866),ke}function ne(ke,Ne,Ae,Ge){return Ne===null||Ne.tag!==6?(Ne=Uu(Ae,ke.mode,Ge),Ne.return=ke,Ne):(Ne=E(Ne,Ae),Ne.return=ke,Ne)}function ye(ke,Ne,Ae,Ge){var pt=Ae.type;return pt===j?Ye(ke,Ne,Ae.props.children,Ge,Ae.key):Ne!==null&&(Ne.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===H&&mi(pt)===Ne.type)?(Ne=E(Ne,Ae.props),Yu(Ne,Ae),Ne.return=ke,Ne):(Ne=Kp(Ae.type,Ae.key,Ae.props,null,ke.mode,Ge),Yu(Ne,Ae),Ne.return=ke,Ne)}function _e(ke,Ne,Ae,Ge){return Ne===null||Ne.tag!==4||Ne.stateNode.containerInfo!==Ae.containerInfo||Ne.stateNode.implementation!==Ae.implementation?(Ne=Fp(Ae,ke.mode,Ge),Ne.return=ke,Ne):(Ne=E(Ne,Ae.children||[]),Ne.return=ke,Ne)}function Ye(ke,Ne,Ae,Ge,pt){return Ne===null||Ne.tag!==7?(Ne=Cs(Ae,ke.mode,Ge,pt),Ne.return=ke,Ne):(Ne=E(Ne,Ae),Ne.return=ke,Ne)}function Xe(ke,Ne,Ae){if(typeof Ne=="string"&&Ne!==""||typeof Ne=="number"||typeof Ne=="bigint")return Ne=Uu(""+Ne,ke.mode,Ae),Ne.return=ke,Ne;if(typeof Ne=="object"&&Ne!==null){switch(Ne.$$typeof){case R:return Ae=Kp(Ne.type,Ne.key,Ne.props,null,ke.mode,Ae),Yu(Ae,Ne),Ae.return=ke,Ae;case O:return Ne=Fp(Ne,ke.mode,Ae),Ne.return=ke,Ne;case H:return Ne=mi(Ne),Xe(ke,Ne,Ae)}if(te(Ne)||G(Ne))return Ne=Cs(Ne,ke.mode,Ae,null),Ne.return=ke,Ne;if(typeof Ne.then=="function")return Xe(ke,qf(Ne),Ae);if(Ne.$$typeof===B)return Xe(ke,Ns(ke,Ne),Ae);Gf(ke,Ne)}return null}function Ue(ke,Ne,Ae,Ge){var pt=Ne!==null?Ne.key:null;if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint")return pt!==null?null:ne(ke,Ne,""+Ae,Ge);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case R:return Ae.key===pt?ye(ke,Ne,Ae,Ge):null;case O:return Ae.key===pt?_e(ke,Ne,Ae,Ge):null;case H:return Ae=mi(Ae),Ue(ke,Ne,Ae,Ge)}if(te(Ae)||G(Ae))return pt!==null?null:Ye(ke,Ne,Ae,Ge,null);if(typeof Ae.then=="function")return Ue(ke,Ne,qf(Ae),Ge);if(Ae.$$typeof===B)return Ue(ke,Ne,Ns(ke,Ae),Ge);Gf(ke,Ae)}return null}function He(ke,Ne,Ae,Ge,pt){if(typeof Ge=="string"&&Ge!==""||typeof Ge=="number"||typeof Ge=="bigint")return ke=ke.get(Ae)||null,ne(Ne,ke,""+Ge,pt);if(typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case R:return ke=ke.get(Ge.key===null?Ae:Ge.key)||null,ye(Ne,ke,Ge,pt);case O:return ke=ke.get(Ge.key===null?Ae:Ge.key)||null,_e(Ne,ke,Ge,pt);case H:return Ge=mi(Ge),He(ke,Ne,Ae,Ge,pt)}if(te(Ge)||G(Ge))return ke=ke.get(Ae)||null,Ye(Ne,ke,Ge,pt,null);if(typeof Ge.then=="function")return He(ke,Ne,Ae,qf(Ge),pt);if(Ge.$$typeof===B)return He(ke,Ne,Ae,Ns(Ne,Ge),pt);Gf(Ne,Ge)}return null}function rt(ke,Ne,Ae,Ge){for(var pt=null,cn=null,ut=Ne,_t=Ne=0,Ht=null;ut!==null&&_t<Ae.length;_t++){ut.index>_t?(Ht=ut,ut=null):Ht=ut.sibling;var fn=Ue(ke,ut,Ae[_t],Ge);if(fn===null){ut===null&&(ut=Ht);break}a&&ut&&fn.alternate===null&&r(ke,ut),Ne=T(fn,Ne,_t),cn===null?pt=fn:cn.sibling=fn,cn=fn,ut=Ht}if(_t===Ae.length)return c(ke,ut),Wt&&Tl(ke,_t),pt;if(ut===null){for(;_t<Ae.length;_t++)ut=Xe(ke,Ae[_t],Ge),ut!==null&&(Ne=T(ut,Ne,_t),cn===null?pt=ut:cn.sibling=ut,cn=ut);return Wt&&Tl(ke,_t),pt}for(ut=p(ut);_t<Ae.length;_t++)Ht=He(ut,ke,_t,Ae[_t],Ge),Ht!==null&&(a&&Ht.alternate!==null&&ut.delete(Ht.key===null?_t:Ht.key),Ne=T(Ht,Ne,_t),cn===null?pt=Ht:cn.sibling=Ht,cn=Ht);return a&&ut.forEach(function(ir){return r(ke,ir)}),Wt&&Tl(ke,_t),pt}function St(ke,Ne,Ae,Ge){if(Ae==null)throw Error(i(151));for(var pt=null,cn=null,ut=Ne,_t=Ne=0,Ht=null,fn=Ae.next();ut!==null&&!fn.done;_t++,fn=Ae.next()){ut.index>_t?(Ht=ut,ut=null):Ht=ut.sibling;var ir=Ue(ke,ut,fn.value,Ge);if(ir===null){ut===null&&(ut=Ht);break}a&&ut&&ir.alternate===null&&r(ke,ut),Ne=T(ir,Ne,_t),cn===null?pt=ir:cn.sibling=ir,cn=ir,ut=Ht}if(fn.done)return c(ke,ut),Wt&&Tl(ke,_t),pt;if(ut===null){for(;!fn.done;_t++,fn=Ae.next())fn=Xe(ke,fn.value,Ge),fn!==null&&(Ne=T(fn,Ne,_t),cn===null?pt=fn:cn.sibling=fn,cn=fn);return Wt&&Tl(ke,_t),pt}for(ut=p(ut);!fn.done;_t++,fn=Ae.next())fn=He(ut,ke,_t,fn.value,Ge),fn!==null&&(a&&fn.alternate!==null&&ut.delete(fn.key===null?_t:fn.key),Ne=T(fn,Ne,_t),cn===null?pt=fn:cn.sibling=fn,cn=fn);return a&&ut.forEach(function(Y1){return r(ke,Y1)}),Wt&&Tl(ke,_t),pt}function Dn(ke,Ne,Ae,Ge){if(typeof Ae=="object"&&Ae!==null&&Ae.type===j&&Ae.key===null&&(Ae=Ae.props.children),typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case R:e:{for(var pt=Ae.key;Ne!==null;){if(Ne.key===pt){if(pt=Ae.type,pt===j){if(Ne.tag===7){c(ke,Ne.sibling),Ge=E(Ne,Ae.props.children),Ge.return=ke,ke=Ge;break e}}else if(Ne.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===H&&mi(pt)===Ne.type){c(ke,Ne.sibling),Ge=E(Ne,Ae.props),Yu(Ge,Ae),Ge.return=ke,ke=Ge;break e}c(ke,Ne);break}else r(ke,Ne);Ne=Ne.sibling}Ae.type===j?(Ge=Cs(Ae.props.children,ke.mode,Ge,Ae.key),Ge.return=ke,ke=Ge):(Ge=Kp(Ae.type,Ae.key,Ae.props,null,ke.mode,Ge),Yu(Ge,Ae),Ge.return=ke,ke=Ge)}return I(ke);case O:e:{for(pt=Ae.key;Ne!==null;){if(Ne.key===pt)if(Ne.tag===4&&Ne.stateNode.containerInfo===Ae.containerInfo&&Ne.stateNode.implementation===Ae.implementation){c(ke,Ne.sibling),Ge=E(Ne,Ae.children||[]),Ge.return=ke,ke=Ge;break e}else{c(ke,Ne);break}else r(ke,Ne);Ne=Ne.sibling}Ge=Fp(Ae,ke.mode,Ge),Ge.return=ke,ke=Ge}return I(ke);case H:return Ae=mi(Ae),Dn(ke,Ne,Ae,Ge)}if(te(Ae))return rt(ke,Ne,Ae,Ge);if(G(Ae)){if(pt=G(Ae),typeof pt!="function")throw Error(i(150));return Ae=pt.call(Ae),St(ke,Ne,Ae,Ge)}if(typeof Ae.then=="function")return Dn(ke,Ne,qf(Ae),Ge);if(Ae.$$typeof===B)return Dn(ke,Ne,Ns(ke,Ae),Ge);Gf(ke,Ae)}return typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint"?(Ae=""+Ae,Ne!==null&&Ne.tag===6?(c(ke,Ne.sibling),Ge=E(Ne,Ae),Ge.return=ke,ke=Ge):(c(ke,Ne),Ge=Uu(Ae,ke.mode,Ge),Ge.return=ke,ke=Ge),I(ke)):c(ke,Ne)}return function(ke,Ne,Ae,Ge){try{Ec=0;var pt=Dn(ke,Ne,Ae,Ge);return hi=null,pt}catch(ut){if(ut===fi||ut===Iu)throw ut;var cn=la(29,ut,null,ke.mode);return cn.lanes=Ge,cn.return=ke,cn}}}var gi=Lx(!0),ib=Lx(!1),Ms=!1;function Xf(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nh(a,r){a=a.updateQueue,r.updateQueue===a&&(r.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Rs(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function nl(a,r,c){var p=a.updateQueue;if(p===null)return null;if(p=p.shared,(dn&2)!==0){var E=p.pending;return E===null?r.next=r:(r.next=E.next,E.next=r),p.pending=r,r=Af(a),Zp(a,null,c),r}return Fo(a,p,r,c),Af(a)}function yi(a,r,c){if(r=r.updateQueue,r!==null&&(r=r.shared,(c&4194048)!==0)){var p=r.lanes;p&=a.pendingLanes,c|=p,r.lanes=c,Hn(a,c)}}function ah(a,r){var c=a.updateQueue,p=a.alternate;if(p!==null&&(p=p.updateQueue,c===p)){var E=null,T=null;if(c=c.firstBaseUpdate,c!==null){do{var I={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};T===null?E=T=I:T=T.next=I,c=c.next}while(c!==null);T===null?E=T=r:T=T.next=r}else E=T=r;c={baseState:p.baseState,firstBaseUpdate:E,lastBaseUpdate:T,shared:p.shared,callbacks:p.callbacks},a.updateQueue=c;return}a=c.lastBaseUpdate,a===null?c.firstBaseUpdate=r:a.next=r,c.lastBaseUpdate=r}var cb=!1;function bi(){if(cb){var a=ba;if(a!==null)throw a}}function zr(a,r,c,p){cb=!1;var E=a.updateQueue;Ms=!1;var T=E.firstBaseUpdate,I=E.lastBaseUpdate,ne=E.shared.pending;if(ne!==null){E.shared.pending=null;var ye=ne,_e=ye.next;ye.next=null,I===null?T=_e:I.next=_e,I=ye;var Ye=a.alternate;Ye!==null&&(Ye=Ye.updateQueue,ne=Ye.lastBaseUpdate,ne!==I&&(ne===null?Ye.firstBaseUpdate=_e:ne.next=_e,Ye.lastBaseUpdate=ye))}if(T!==null){var Xe=E.baseState;I=0,Ye=_e=ye=null,ne=T;do{var Ue=ne.lane&-536870913,He=Ue!==ne.lane;if(He?($t&Ue)===Ue:(p&Ue)===Ue){Ue!==0&&Ue===di&&(cb=!0),Ye!==null&&(Ye=Ye.next={lane:0,tag:ne.tag,payload:ne.payload,callback:null,next:null});e:{var rt=a,St=ne;Ue=r;var Dn=c;switch(St.tag){case 1:if(rt=St.payload,typeof rt=="function"){Xe=rt.call(Dn,Xe,Ue);break e}Xe=rt;break e;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=St.payload,Ue=typeof rt=="function"?rt.call(Dn,Xe,Ue):rt,Ue==null)break e;Xe=w({},Xe,Ue);break e;case 2:Ms=!0}}Ue=ne.callback,Ue!==null&&(a.flags|=64,He&&(a.flags|=8192),He=E.callbacks,He===null?E.callbacks=[Ue]:He.push(Ue))}else He={lane:Ue,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},Ye===null?(_e=Ye=He,ye=Xe):Ye=Ye.next=He,I|=Ue;if(ne=ne.next,ne===null){if(ne=E.shared.pending,ne===null)break;He=ne,ne=He.next,He.next=null,E.lastBaseUpdate=He,E.shared.pending=null}}while(!0);Ye===null&&(ye=Xe),E.baseState=ye,E.firstBaseUpdate=_e,E.lastBaseUpdate=Ye,T===null&&(E.shared.lanes=0),ar|=I,a.lanes=I,a.memoizedState=Xe}}function oh(a,r){if(typeof a!="function")throw Error(i(191,a));a.call(r)}function vi(a,r){var c=a.callbacks;if(c!==null)for(a.callbacks=null,a=0;a<c.length;a++)oh(c[a],r)}var Ea=we(null),Nc=we(0);function Vx(a,r){a=nr,Ce(Nc,a),Ce(Ea,r),nr=a|r.baseLanes}function Pf(){Ce(Nc,nr),Ce(Ea,Ea.current)}function qu(){nr=Nc.current,se(Ea),se(Nc)}var No=we(null),al=null;function _r(a){var r=a.alternate;Ce(Xn,Xn.current&1),Ce(No,a),al===null&&(r===null||Ea.current!==null||r.memoizedState!==null)&&(al=a)}function Gu(a){Ce(Xn,Xn.current),Ce(No,a),al===null&&(al=a)}function lh(a){a.tag===22?(Ce(Xn,Xn.current),Ce(No,a),al===null&&(al=a)):Fl()}function Fl(){Ce(Xn,Xn.current),Ce(No,No.current)}function To(a){se(No),al===a&&(al=null),se(Xn)}var Xn=we(0);function Xu(a){for(var r=a;r!==null;){if(r.tag===13){var c=r.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||Dl(c)||Di(c)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break;for(;r.sibling===null;){if(r.return===null||r.return===a)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Ur=0,Bt=null,Sn=null,fa=null,Tc=!1,Mc=!1,Os=!1,$f=0,Pu=0,xi=null,Hx=0;function Jn(){throw Error(i(321))}function js(a,r){if(r===null)return!1;for(var c=0;c<r.length&&c<a.length;c++)if(!so(a[c],r[c]))return!1;return!0}function Qf(a,r,c,p,E,T){return Ur=T,Bt=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Y.H=a===null||a.memoizedState===null?Qx:wh,Os=!1,T=c(p,E),Os=!1,Mc&&(T=Ix(r,c,p,E)),rh(a),T}function rh(a){Y.H=am;var r=Sn!==null&&Sn.next!==null;if(Ur=0,fa=Sn=Bt=null,Tc=!1,Pu=0,xi=null,r)throw Error(i(300));a===null||ma||(a=a.dependencies,a!==null&&vc(a)&&(ma=!0))}function Ix(a,r,c,p){Bt=a;var E=0;do{if(Mc&&(xi=null),Pu=0,Mc=!1,25<=E)throw Error(i(301));if(E+=1,fa=Sn=null,a.updateQueue!=null){var T=a.updateQueue;T.lastEffect=null,T.events=null,T.stores=null,T.memoCache!=null&&(T.memoCache.index=0)}Y.H=Zx,T=r(c,p)}while(Mc);return T}function LC(){var a=Y.H,r=a.useState()[0];return r=typeof r.then=="function"?Oc(r):r,a=a.useState()[0],(Sn!==null?Sn.memoizedState:null)!==a&&(Bt.flags|=1024),r}function sh(){var a=$f!==0;return $f=0,a}function Rc(a,r,c){r.updateQueue=a.updateQueue,r.flags&=-2053,a.lanes&=~c}function Zf(a){if(Tc){for(a=a.memoizedState;a!==null;){var r=a.queue;r!==null&&(r.pending=null),a=a.next}Tc=!1}Ur=0,fa=Sn=Bt=null,Mc=!1,Pu=$f=0,xi=null}function _a(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fa===null?Bt.memoizedState=fa=a:fa=fa.next=a,fa}function sa(){if(Sn===null){var a=Bt.alternate;a=a!==null?a.memoizedState:null}else a=Sn.next;var r=fa===null?Bt.memoizedState:fa.next;if(r!==null)fa=r,Sn=a;else{if(a===null)throw Bt.alternate===null?Error(i(467)):Error(i(310));Sn=a,a={memoizedState:Sn.memoizedState,baseState:Sn.baseState,baseQueue:Sn.baseQueue,queue:Sn.queue,next:null},fa===null?Bt.memoizedState=fa=a:fa=fa.next=a}return fa}function Kf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Oc(a){var r=Pu;return Pu+=1,xi===null&&(xi=[]),a=rb(xi,a,r),r=Bt,(fa===null?r.memoizedState:fa.next)===null&&(r=r.alternate,Y.H=r===null||r.memoizedState===null?Qx:wh),a}function $u(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Oc(a);if(a.$$typeof===B)return Pe(a)}throw Error(i(438,String(a)))}function ih(a){var r=null,c=Bt.updateQueue;if(c!==null&&(r=c.memoCache),r==null){var p=Bt.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(r={data:p.data.map(function(E){return E.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),c===null&&(c=Kf(),Bt.updateQueue=c),c.memoCache=r,c=r.data[r.index],c===void 0)for(c=r.data[r.index]=Array(a),p=0;p<a;p++)c[p]=Z;return r.index++,c}function Br(a,r){return typeof r=="function"?r(a):r}function Lr(a){var r=sa();return ch(r,Sn,a)}function ch(a,r,c){var p=a.queue;if(p===null)throw Error(i(311));p.lastRenderedReducer=c;var E=a.baseQueue,T=p.pending;if(T!==null){if(E!==null){var I=E.next;E.next=T.next,T.next=I}r.baseQueue=E=T,p.pending=null}if(T=a.baseState,E===null)a.memoizedState=T;else{r=E.next;var ne=I=null,ye=null,_e=r,Ye=!1;do{var Xe=_e.lane&-536870913;if(Xe!==_e.lane?($t&Xe)===Xe:(Ur&Xe)===Xe){var Ue=_e.revertLane;if(Ue===0)ye!==null&&(ye=ye.next={lane:0,revertLane:0,gesture:null,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null}),Xe===di&&(Ye=!0);else if((Ur&Ue)===Ue){_e=_e.next,Ue===di&&(Ye=!0);continue}else Xe={lane:0,revertLane:_e.revertLane,gesture:null,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null},ye===null?(ne=ye=Xe,I=T):ye=ye.next=Xe,Bt.lanes|=Ue,ar|=Ue;Xe=_e.action,Os&&c(T,Xe),T=_e.hasEagerState?_e.eagerState:c(T,Xe)}else Ue={lane:Xe,revertLane:_e.revertLane,gesture:_e.gesture,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null},ye===null?(ne=ye=Ue,I=T):ye=ye.next=Ue,Bt.lanes|=Xe,ar|=Xe;_e=_e.next}while(_e!==null&&_e!==r);if(ye===null?I=T:ye.next=ne,!so(T,a.memoizedState)&&(ma=!0,Ye&&(c=ba,c!==null)))throw c;a.memoizedState=T,a.baseState=I,a.baseQueue=ye,p.lastRenderedState=T}return E===null&&(p.lanes=0),[a.memoizedState,p.dispatch]}function uh(a){var r=sa(),c=r.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=a;var p=c.dispatch,E=c.pending,T=r.memoizedState;if(E!==null){c.pending=null;var I=E=E.next;do T=a(T,I.action),I=I.next;while(I!==E);so(T,r.memoizedState)||(ma=!0),r.memoizedState=T,r.baseQueue===null&&(r.baseState=T),c.lastRenderedState=T}return[T,p]}function ub(a,r,c){var p=Bt,E=sa(),T=Wt;if(T){if(c===void 0)throw Error(i(407));c=c()}else c=r();var I=!so((Sn||E).memoizedState,c);if(I&&(E.memoizedState=c,ma=!0),E=E.queue,hh(dh.bind(null,p,E,a),[a]),E.getSnapshot!==r||I||fa!==null&&fa.memoizedState.tag&1){if(p.flags|=2048,Dc(9,{destroy:void 0},db.bind(null,p,E,c,r),null),On===null)throw Error(i(349));T||(Ur&127)!==0||Ff(p,r,c)}return c}function Ff(a,r,c){a.flags|=16384,a={getSnapshot:r,value:c},r=Bt.updateQueue,r===null?(r=Kf(),Bt.updateQueue=r,r.stores=[a]):(c=r.stores,c===null?r.stores=[a]:c.push(a))}function db(a,r,c,p){r.value=c,r.getSnapshot=p,fh(r)&&mh(a)}function dh(a,r,c){return c(function(){fh(r)&&mh(a)})}function fh(a){var r=a.getSnapshot;a=a.value;try{var c=r();return!so(a,c)}catch{return!0}}function mh(a){var r=Ss(a,2);r!==null&&ko(r,a,2)}function fb(a){var r=_a();if(typeof a=="function"){var c=a;if(a=c(),Os){ot(!0);try{c()}finally{ot(!1)}}}return r.memoizedState=r.baseState=a,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Br,lastRenderedState:a},r}function Ua(a,r,c,p){return a.baseState=c,ch(a,Sn,typeof p=="function"?p:Br)}function Yx(a,r,c,p,E){if(nm(a))throw Error(i(485));if(a=r.action,a!==null){var T={payload:E,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){T.listeners.push(I)}};Y.T!==null?c(!0):T.isTransition=!1,p(T),c=r.pending,c===null?(T.next=r.pending=T,mb(r,T)):(T.next=c.next,r.pending=c.next=T)}}function mb(a,r){var c=r.action,p=r.payload,E=a.state;if(r.isTransition){var T=Y.T,I={};Y.T=I;try{var ne=c(E,p),ye=Y.S;ye!==null&&ye(I,ne),pb(a,r,ne)}catch(_e){jc(a,r,_e)}finally{T!==null&&I.types!==null&&(T.types=I.types),Y.T=T}}else try{T=c(E,p),pb(a,r,T)}catch(_e){jc(a,r,_e)}}function pb(a,r,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(p){hb(a,r,p)},function(p){return jc(a,r,p)}):hb(a,r,c)}function hb(a,r,c){r.status="fulfilled",r.value=c,gb(r),a.state=c,r=a.pending,r!==null&&(c=r.next,c===r?a.pending=null:(c=c.next,r.next=c,mb(a,c)))}function jc(a,r,c){var p=a.pending;if(a.pending=null,p!==null){p=p.next;do r.status="rejected",r.reason=c,gb(r),r=r.next;while(r!==p)}a.action=null}function gb(a){a=a.listeners;for(var r=0;r<a.length;r++)(0,a[r])()}function Wf(a,r){return r}function yb(a,r){if(Wt){var c=On.formState;if(c!==null){e:{var p=Bt;if(Wt){if(zn){t:{for(var E=zn,T=Ca;E.nodeType!==8;){if(!T){E=null;break t}if(E=Ao(E.nextSibling),E===null){E=null;break t}}T=E.data,E=T==="F!"||T==="F"?E:null}if(E){zn=Ao(E.nextSibling),p=E.data==="F!";break e}}Ml(p)}p=!1}p&&(r=c[0])}}return c=_a(),c.memoizedState=c.baseState=r,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wf,lastRenderedState:r},c.queue=p,c=xh.bind(null,Bt,p),p.dispatch=c,p=fb(!1),T=Si.bind(null,Bt,!1,p.queue),p=_a(),E={state:r,dispatch:null,action:a,pending:null},p.queue=E,c=Yx.bind(null,Bt,E,T,c),E.dispatch=c,p.memoizedState=a,[r,c,!1]}function qx(a){var r=sa();return Jf(r,Sn,a)}function Jf(a,r,c){if(r=ch(a,r,Wf)[0],a=Lr(Br)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var p=Oc(r)}catch(I){throw I===fi?Iu:I}else p=r;r=sa();var E=r.queue,T=E.dispatch;return c!==r.memoizedState&&(Bt.flags|=2048,Dc(9,{destroy:void 0},bb.bind(null,E,c),null)),[p,T,a]}function bb(a,r){a.action=r}function vb(a){var r=sa(),c=Sn;if(c!==null)return Jf(r,c,a);sa(),r=r.memoizedState,c=sa();var p=c.queue.dispatch;return c.memoizedState=a,[r,p,!1]}function Dc(a,r,c,p){return a={tag:a,create:c,deps:p,inst:r,next:null},r=Bt.updateQueue,r===null&&(r=Kf(),Bt.updateQueue=r),c=r.lastEffect,c===null?r.lastEffect=a.next=a:(p=c.next,c.next=a,a.next=p,r.lastEffect=a),a}function xb(){return sa().memoizedState}function Qu(a,r,c,p){var E=_a();Bt.flags|=a,E.memoizedState=Dc(1|r,{destroy:void 0},c,p===void 0?null:p)}function Zu(a,r,c,p){var E=sa();p=p===void 0?null:p;var T=E.memoizedState.inst;Sn!==null&&p!==null&&js(p,Sn.memoizedState.deps)?E.memoizedState=Dc(r,T,c,p):(Bt.flags|=a,E.memoizedState=Dc(1|r,T,c,p))}function ph(a,r){Qu(8390656,8,a,r)}function hh(a,r){Zu(2048,8,a,r)}function Sb(a){Bt.flags|=4;var r=Bt.updateQueue;if(r===null)r=Kf(),Bt.updateQueue=r,r.events=[a];else{var c=r.events;c===null?r.events=[a]:c.push(a)}}function em(a){var r=sa().memoizedState;return Sb({ref:r,nextImpl:a}),function(){if((dn&2)!==0)throw Error(i(440));return r.impl.apply(void 0,arguments)}}function gh(a,r){return Zu(4,2,a,r)}function wb(a,r){return Zu(4,4,a,r)}function yh(a,r){if(typeof r=="function"){a=a();var c=r(a);return function(){typeof c=="function"?c():r(null)}}if(r!=null)return a=a(),r.current=a,function(){r.current=null}}function Cb(a,r,c){c=c!=null?c.concat([a]):null,Zu(4,4,yh.bind(null,r,a),c)}function Wl(){}function bh(a,r){var c=sa();r=r===void 0?null:r;var p=c.memoizedState;return r!==null&&js(r,p[1])?p[0]:(c.memoizedState=[a,r],a)}function Gx(a,r){var c=sa();r=r===void 0?null:r;var p=c.memoizedState;if(r!==null&&js(r,p[1]))return p[0];if(p=a(),Os){ot(!0);try{a()}finally{ot(!1)}}return c.memoizedState=[p,r],p}function tm(a,r,c){return c===void 0||(Ur&1073741824)!==0&&($t&261930)===0?a.memoizedState=r:(a.memoizedState=c,a=l1(),Bt.lanes|=a,ar|=a,c)}function Vr(a,r,c,p){return so(c,r)?c:Ea.current!==null?(a=tm(a,c,p),so(a,r)||(ma=!0),a):(Ur&42)===0||(Ur&1073741824)!==0&&($t&261930)===0?(ma=!0,a.memoizedState=c):(a=l1(),Bt.lanes|=a,ar|=a,r)}function vh(a,r,c,p,E){var T=P.p;P.p=T!==0&&8>T?T:8;var I=Y.T,ne={};Y.T=ne,Si(a,!1,r,c);try{var ye=E(),_e=Y.S;if(_e!==null&&_e(ne,ye),ye!==null&&typeof ye=="object"&&typeof ye.then=="function"){var Ye=Yf(ye,p);Ds(a,r,Ye,Yo(a))}else Ds(a,r,p,Yo(a))}catch(Xe){Ds(a,r,{then:function(){},status:"rejected",reason:Xe},Yo())}finally{P.p=T,I!==null&&ne.types!==null&&(I.types=ne.types),Y.T=I}}function Xx(){}function Ku(a,r,c,p){if(a.tag!==5)throw Error(i(476));var E=Fu(a).queue;vh(a,E,r,F,c===null?Xx:function(){return Rn(a),c(p)})}function Fu(a){var r=a.memoizedState;if(r!==null)return r;r={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Br,lastRenderedState:F},next:null};var c={};return r.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Br,lastRenderedState:c},next:null},a.memoizedState=r,a=a.alternate,a!==null&&(a.memoizedState=r),r}function Rn(a){var r=Fu(a);r.next===null&&(r=a.alternate.memoizedState),Ds(a,r.next.queue,{},Yo())}function Eb(){return Pe(jm)}function Px(){return sa().memoizedState}function Nb(){return sa().memoizedState}function Hr(a){for(var r=a.return;r!==null;){switch(r.tag){case 24:case 3:var c=Yo();a=Rs(c);var p=nl(r,a,c);p!==null&&(ko(p,r,c),yi(p,r,c)),r={cache:Lf()},a.payload=r;return}r=r.return}}function $x(a,r,c){var p=Yo();c={lane:p,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},nm(a)?Sh(r,c):(c=Nl(a,r,c,p),c!==null&&(ko(c,a,p),Tb(c,r,p)))}function xh(a,r,c){var p=Yo();Ds(a,r,c,p)}function Ds(a,r,c,p){var E={lane:p,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(nm(a))Sh(r,E);else{var T=a.alternate;if(a.lanes===0&&(T===null||T.lanes===0)&&(T=r.lastRenderedReducer,T!==null))try{var I=r.lastRenderedState,ne=T(I,c);if(E.hasEagerState=!0,E.eagerState=ne,so(ne,I))return Fo(a,r,E,0),On===null&&Ko(),!1}catch{}if(c=Nl(a,r,E,p),c!==null)return ko(c,a,p),Tb(c,r,p),!0}return!1}function Si(a,r,c,p){if(p={lane:2,revertLane:$h(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},nm(a)){if(r)throw Error(i(479))}else r=Nl(a,c,p,2),r!==null&&ko(r,a,2)}function nm(a){var r=a.alternate;return a===Bt||r!==null&&r===Bt}function Sh(a,r){Mc=Tc=!0;var c=a.pending;c===null?r.next=r:(r.next=c.next,c.next=r),a.pending=r}function Tb(a,r,c){if((c&4194048)!==0){var p=r.lanes;p&=a.pendingLanes,c|=p,r.lanes=c,Hn(a,c)}}var am={readContext:Pe,use:$u,useCallback:Jn,useContext:Jn,useEffect:Jn,useImperativeHandle:Jn,useLayoutEffect:Jn,useInsertionEffect:Jn,useMemo:Jn,useReducer:Jn,useRef:Jn,useState:Jn,useDebugValue:Jn,useDeferredValue:Jn,useTransition:Jn,useSyncExternalStore:Jn,useId:Jn,useHostTransitionStatus:Jn,useFormState:Jn,useActionState:Jn,useOptimistic:Jn,useMemoCache:Jn,useCacheRefresh:Jn};am.useEffectEvent=Jn;var Qx={readContext:Pe,use:$u,useCallback:function(a,r){return _a().memoizedState=[a,r===void 0?null:r],a},useContext:Pe,useEffect:ph,useImperativeHandle:function(a,r,c){c=c!=null?c.concat([a]):null,Qu(4194308,4,yh.bind(null,r,a),c)},useLayoutEffect:function(a,r){return Qu(4194308,4,a,r)},useInsertionEffect:function(a,r){Qu(4,2,a,r)},useMemo:function(a,r){var c=_a();r=r===void 0?null:r;var p=a();if(Os){ot(!0);try{a()}finally{ot(!1)}}return c.memoizedState=[p,r],p},useReducer:function(a,r,c){var p=_a();if(c!==void 0){var E=c(r);if(Os){ot(!0);try{c(r)}finally{ot(!1)}}}else E=r;return p.memoizedState=p.baseState=E,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:E},p.queue=a,a=a.dispatch=$x.bind(null,Bt,a),[p.memoizedState,a]},useRef:function(a){var r=_a();return a={current:a},r.memoizedState=a},useState:function(a){a=fb(a);var r=a.queue,c=xh.bind(null,Bt,r);return r.dispatch=c,[a.memoizedState,c]},useDebugValue:Wl,useDeferredValue:function(a,r){var c=_a();return tm(c,a,r)},useTransition:function(){var a=fb(!1);return a=vh.bind(null,Bt,a.queue,!0,!1),_a().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,r,c){var p=Bt,E=_a();if(Wt){if(c===void 0)throw Error(i(407));c=c()}else{if(c=r(),On===null)throw Error(i(349));($t&127)!==0||Ff(p,r,c)}E.memoizedState=c;var T={value:c,getSnapshot:r};return E.queue=T,ph(dh.bind(null,p,T,a),[a]),p.flags|=2048,Dc(9,{destroy:void 0},db.bind(null,p,T,c,r),null),c},useId:function(){var a=_a(),r=On.identifierPrefix;if(Wt){var c=Ql,p=Lo;c=(p&~(1<<32-xt(p)-1)).toString(32)+c,r="_"+r+"R_"+c,c=$f++,0<c&&(r+="H"+c.toString(32)),r+="_"}else c=Hx++,r="_"+r+"r_"+c.toString(32)+"_";return a.memoizedState=r},useHostTransitionStatus:Eb,useFormState:yb,useActionState:yb,useOptimistic:function(a){var r=_a();r.memoizedState=r.baseState=a;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=c,r=Si.bind(null,Bt,!0,c),c.dispatch=r,[a,r]},useMemoCache:ih,useCacheRefresh:function(){return _a().memoizedState=Hr.bind(null,Bt)},useEffectEvent:function(a){var r=_a(),c={impl:a};return r.memoizedState=c,function(){if((dn&2)!==0)throw Error(i(440));return c.impl.apply(void 0,arguments)}}},wh={readContext:Pe,use:$u,useCallback:bh,useContext:Pe,useEffect:hh,useImperativeHandle:Cb,useInsertionEffect:gh,useLayoutEffect:wb,useMemo:Gx,useReducer:Lr,useRef:xb,useState:function(){return Lr(Br)},useDebugValue:Wl,useDeferredValue:function(a,r){var c=sa();return Vr(c,Sn.memoizedState,a,r)},useTransition:function(){var a=Lr(Br)[0],r=sa().memoizedState;return[typeof a=="boolean"?a:Oc(a),r]},useSyncExternalStore:ub,useId:Px,useHostTransitionStatus:Eb,useFormState:qx,useActionState:qx,useOptimistic:function(a,r){var c=sa();return Ua(c,Sn,a,r)},useMemoCache:ih,useCacheRefresh:Nb};wh.useEffectEvent=em;var Zx={readContext:Pe,use:$u,useCallback:bh,useContext:Pe,useEffect:hh,useImperativeHandle:Cb,useInsertionEffect:gh,useLayoutEffect:wb,useMemo:Gx,useReducer:uh,useRef:xb,useState:function(){return uh(Br)},useDebugValue:Wl,useDeferredValue:function(a,r){var c=sa();return Sn===null?tm(c,a,r):Vr(c,Sn.memoizedState,a,r)},useTransition:function(){var a=uh(Br)[0],r=sa().memoizedState;return[typeof a=="boolean"?a:Oc(a),r]},useSyncExternalStore:ub,useId:Px,useHostTransitionStatus:Eb,useFormState:vb,useActionState:vb,useOptimistic:function(a,r){var c=sa();return Sn!==null?Ua(c,Sn,a,r):(c.baseState=a,[a,c.queue.dispatch])},useMemoCache:ih,useCacheRefresh:Nb};Zx.useEffectEvent=em;function kc(a,r,c,p){r=a.memoizedState,c=c(p,r),c=c==null?r:w({},r,c),a.memoizedState=c,a.lanes===0&&(a.updateQueue.baseState=c)}var Rl={enqueueSetState:function(a,r,c){a=a._reactInternals;var p=Yo(),E=Rs(p);E.payload=r,c!=null&&(E.callback=c),r=nl(a,E,p),r!==null&&(ko(r,a,p),yi(r,a,p))},enqueueReplaceState:function(a,r,c){a=a._reactInternals;var p=Yo(),E=Rs(p);E.tag=1,E.payload=r,c!=null&&(E.callback=c),r=nl(a,E,p),r!==null&&(ko(r,a,p),yi(r,a,p))},enqueueForceUpdate:function(a,r){a=a._reactInternals;var c=Yo(),p=Rs(c);p.tag=2,r!=null&&(p.callback=r),r=nl(a,p,c),r!==null&&(ko(r,a,c),yi(r,a,c))}};function Mb(a,r,c,p,E,T,I){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(p,T,I):r.prototype&&r.prototype.isPureReactComponent?!wl(c,p)||!wl(E,T):!0}function Kx(a,r,c,p){a=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(c,p),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(c,p),r.state!==a&&Rl.enqueueReplaceState(r,r.state,null)}function wi(a,r){var c=r;if("ref"in r){c={};for(var p in r)p!=="ref"&&(c[p]=r[p])}if(a=a.defaultProps){c===r&&(c=w({},c));for(var E in a)c[E]===void 0&&(c[E]=a[E])}return c}function Ch(a){gc(a)}function Rb(a){console.error(a)}function Eh(a){gc(a)}function Wu(a,r){try{var c=a.onUncaughtError;c(r.value,{componentStack:r.stack})}catch(p){setTimeout(function(){throw p})}}function om(a,r,c){try{var p=a.onCaughtError;p(c.value,{componentStack:c.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function Ob(a,r,c){return c=Rs(c),c.tag=3,c.payload={element:null},c.callback=function(){Wu(a,r)},c}function jb(a){return a=Rs(a),a.tag=3,a}function Db(a,r,c,p){var E=c.type.getDerivedStateFromError;if(typeof E=="function"){var T=p.value;a.payload=function(){return E(T)},a.callback=function(){om(r,c,p)}}var I=c.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(a.callback=function(){om(r,c,p),typeof E!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var ne=p.stack;this.componentDidCatch(p.value,{componentStack:ne!==null?ne:""})})}function VC(a,r,c,p,E){if(c.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(r=c.alternate,r!==null&&za(r,c,E,!0),c=No.current,c!==null){switch(c.tag){case 31:case 13:return al===null?qh():c.alternate===null&&Un===0&&(Un=3),c.flags&=-257,c.flags|=65536,c.lanes=E,p===Cc?c.flags|=16384:(r=c.updateQueue,r===null?c.updateQueue=new Set([p]):r.add(p),bm(a,p,E)),!1;case 22:return c.flags|=65536,p===Cc?c.flags|=16384:(r=c.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([p])},c.updateQueue=r):(c=r.retryQueue,c===null?r.retryQueue=new Set([p]):c.add(p)),bm(a,p,E)),!1}throw Error(i(435,c.tag))}return bm(a,p,E),qh(),!1}if(Wt)return r=No.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=E,p!==Dr&&(a=Error(i(422),{cause:p}),Vu(Wo(a,c)))):(p!==Dr&&(r=Error(i(423),{cause:p}),Vu(Wo(r,c))),a=a.current.alternate,a.flags|=65536,E&=-E,a.lanes|=E,p=Wo(p,c),E=Ob(a.stateNode,p,E),ah(a,E),Un!==4&&(Un=2)),!1;var T=Error(i(520),{cause:p});if(T=Wo(T,c),pm===null?pm=[T]:pm.push(T),Un!==4&&(Un=2),r===null)return!0;p=Wo(p,c),c=r;do{switch(c.tag){case 3:return c.flags|=65536,a=E&-E,c.lanes|=a,a=Ob(c.stateNode,p,a),ah(c,a),!1;case 1:if(r=c.type,T=c.stateNode,(c.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(Pn===null||!Pn.has(T))))return c.flags|=65536,E&=-E,c.lanes|=E,E=jb(E),Db(E,a,c,p),ah(c,E),!1}c=c.return}while(c!==null);return!1}var Nh=Error(i(461)),ma=!1;function In(a,r,c,p){r.child=a===null?ib(r,null,c,p):gi(r,a.child,c,p)}function kb(a,r,c,p,E){c=c.render;var T=r.ref;if("ref"in p){var I={};for(var ne in p)ne!=="ref"&&(I[ne]=p[ne])}else I=p;return Dt(r),p=Qf(a,r,c,I,T,E),ne=sh(),a!==null&&!ma?(Rc(a,r,E),rl(a,r,E)):(Wt&&ne&&Bu(r),r.flags|=1,In(a,r,p,E),r.child)}function Ab(a,r,c,p,E){if(a===null){var T=c.type;return typeof T=="function"&&!yc(T)&&T.defaultProps===void 0&&c.compare===null?(r.tag=15,r.type=T,zb(a,r,T,p,E)):(a=Kp(c.type,null,p,r,r.mode,E),a.ref=r.ref,a.return=r,r.child=a)}if(T=a.child,!Rh(a,E)){var I=T.memoizedProps;if(c=c.compare,c=c!==null?c:wl,c(I,p)&&a.ref===r.ref)return rl(a,r,E)}return r.flags|=1,a=ws(T,p),a.ref=r.ref,a.return=r,r.child=a}function zb(a,r,c,p,E){if(a!==null){var T=a.memoizedProps;if(wl(T,p)&&a.ref===r.ref)if(ma=!1,r.pendingProps=p=T,Rh(a,E))(a.flags&131072)!==0&&(ma=!0);else return r.lanes=a.lanes,rl(a,r,E)}return Th(a,r,c,p,E)}function Fx(a,r,c,p){var E=p.children,T=a!==null?a.memoizedState:null;if(a===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((r.flags&128)!==0){if(T=T!==null?T.baseLanes|c:c,a!==null){for(p=r.child=a.child,E=0;p!==null;)E=E|p.lanes|p.childLanes,p=p.sibling;p=E&~T}else p=0,r.child=null;return Mo(a,r,T,c,p)}if((c&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},a!==null&&Hu(r,T!==null?T.cachePool:null),T!==null?Vx(r,T):Pf(),lh(r);else return p=r.lanes=536870912,Mo(a,r,T!==null?T.baseLanes|c:c,c,p)}else T!==null?(Hu(r,T.cachePool),Vx(r,T),Fl(),r.memoizedState=null):(a!==null&&Hu(r,null),Pf(),Fl());return In(a,r,E,c),r.child}function Ci(a,r){return a!==null&&a.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function Mo(a,r,c,p,E){var T=tl();return T=T===null?null:{parent:da._currentValue,pool:T},r.memoizedState={baseLanes:c,cachePool:T},a!==null&&Hu(r,null),Pf(),lh(r),a!==null&&za(a,r,p,!0),r.childLanes=E,null}function lm(a,r){return r=im({mode:r.mode,children:r.children},a.mode),r.ref=a.ref,a.child=r,r.return=a,r}function Ro(a,r,c){return gi(r,a.child,null,c),a=lm(r,r.pendingProps),a.flags|=2,To(r),r.memoizedState=null,a}function Wx(a,r,c){var p=r.pendingProps,E=(r.flags&128)!==0;if(r.flags&=-129,a===null){if(Wt){if(p.mode==="hidden")return a=lm(r,p),r.lanes=536870912,Ci(null,a);if(Gu(r),(a=zn)?(a=A1(a,Ca),a=a!==null&&a.data==="&"?a:null,a!==null&&(r.memoizedState={dehydrated:a,treeContext:$l!==null?{id:Lo,overflow:Ql}:null,retryLane:536870912,hydrationErrors:null},c=Jy(a),c.return=r,r.child=c,Aa=r,zn=null)):a=null,a===null)throw Ml(r);return r.lanes=536870912,null}return lm(r,p)}var T=a.memoizedState;if(T!==null){var I=T.dehydrated;if(Gu(r),E)if(r.flags&256)r.flags&=-257,r=Ro(a,r,c);else if(r.memoizedState!==null)r.child=a.child,r.flags|=128,r=null;else throw Error(i(558));else if(ma||za(a,r,c,!1),E=(c&a.childLanes)!==0,ma||E){if(p=On,p!==null&&(I=Tn(p,c),I!==0&&I!==T.retryLane))throw T.retryLane=I,Ss(a,I),ko(p,a,I),Nh;qh(),r=Ro(a,r,c)}else a=T.treeContext,zn=Ao(I.nextSibling),Aa=r,Wt=!0,jr=null,Ca=!1,a!==null&&_f(r,a),r=lm(r,p),r.flags|=4096;return r}return a=ws(a.child,{mode:p.mode,children:p.children}),a.ref=r.ref,r.child=a,a.return=r,a}function ol(a,r){var c=r.ref;if(c===null)a!==null&&a.ref!==null&&(r.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(i(284));(a===null||a.ref!==c)&&(r.flags|=4194816)}}function Th(a,r,c,p,E){return Dt(r),c=Qf(a,r,c,p,void 0,E),p=sh(),a!==null&&!ma?(Rc(a,r,E),rl(a,r,E)):(Wt&&p&&Bu(r),r.flags|=1,In(a,r,c,E),r.child)}function Ei(a,r,c,p,E,T){return Dt(r),r.updateQueue=null,c=Ix(r,p,c,E),rh(a),p=sh(),a!==null&&!ma?(Rc(a,r,T),rl(a,r,T)):(Wt&&p&&Bu(r),r.flags|=1,In(a,r,c,T),r.child)}function _b(a,r,c,p,E){if(Dt(r),r.stateNode===null){var T=wo,I=c.contextType;typeof I=="object"&&I!==null&&(T=Pe(I)),T=new c(p,T),r.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,T.updater=Rl,r.stateNode=T,T._reactInternals=r,T=r.stateNode,T.props=p,T.state=r.memoizedState,T.refs={},Xf(r),I=c.contextType,T.context=typeof I=="object"&&I!==null?Pe(I):wo,T.state=r.memoizedState,I=c.getDerivedStateFromProps,typeof I=="function"&&(kc(r,c,I,p),T.state=r.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(I=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),I!==T.state&&Rl.enqueueReplaceState(T,T.state,null),zr(r,p,T,E),bi(),T.state=r.memoizedState),typeof T.componentDidMount=="function"&&(r.flags|=4194308),p=!0}else if(a===null){T=r.stateNode;var ne=r.memoizedProps,ye=wi(c,ne);T.props=ye;var _e=T.context,Ye=c.contextType;I=wo,typeof Ye=="object"&&Ye!==null&&(I=Pe(Ye));var Xe=c.getDerivedStateFromProps;Ye=typeof Xe=="function"||typeof T.getSnapshotBeforeUpdate=="function",ne=r.pendingProps!==ne,Ye||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(ne||_e!==I)&&Kx(r,T,p,I),Ms=!1;var Ue=r.memoizedState;T.state=Ue,zr(r,p,T,E),bi(),_e=r.memoizedState,ne||Ue!==_e||Ms?(typeof Xe=="function"&&(kc(r,c,Xe,p),_e=r.memoizedState),(ye=Ms||Mb(r,c,ye,p,Ue,_e,I))?(Ye||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(r.flags|=4194308)):(typeof T.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=p,r.memoizedState=_e),T.props=p,T.state=_e,T.context=I,p=ye):(typeof T.componentDidMount=="function"&&(r.flags|=4194308),p=!1)}else{T=r.stateNode,nh(a,r),I=r.memoizedProps,Ye=wi(c,I),T.props=Ye,Xe=r.pendingProps,Ue=T.context,_e=c.contextType,ye=wo,typeof _e=="object"&&_e!==null&&(ye=Pe(_e)),ne=c.getDerivedStateFromProps,(_e=typeof ne=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(I!==Xe||Ue!==ye)&&Kx(r,T,p,ye),Ms=!1,Ue=r.memoizedState,T.state=Ue,zr(r,p,T,E),bi();var He=r.memoizedState;I!==Xe||Ue!==He||Ms||a!==null&&a.dependencies!==null&&vc(a.dependencies)?(typeof ne=="function"&&(kc(r,c,ne,p),He=r.memoizedState),(Ye=Ms||Mb(r,c,Ye,p,Ue,He,ye)||a!==null&&a.dependencies!==null&&vc(a.dependencies))?(_e||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(p,He,ye),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(p,He,ye)),typeof T.componentDidUpdate=="function"&&(r.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof T.componentDidUpdate!="function"||I===a.memoizedProps&&Ue===a.memoizedState||(r.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||I===a.memoizedProps&&Ue===a.memoizedState||(r.flags|=1024),r.memoizedProps=p,r.memoizedState=He),T.props=p,T.state=He,T.context=ye,p=Ye):(typeof T.componentDidUpdate!="function"||I===a.memoizedProps&&Ue===a.memoizedState||(r.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||I===a.memoizedProps&&Ue===a.memoizedState||(r.flags|=1024),p=!1)}return T=p,ol(a,r),p=(r.flags&128)!==0,T||p?(T=r.stateNode,c=p&&typeof c.getDerivedStateFromError!="function"?null:T.render(),r.flags|=1,a!==null&&p?(r.child=gi(r,a.child,null,E),r.child=gi(r,null,c,E)):In(a,r,c,E),r.memoizedState=T.state,a=r.child):a=rl(a,r,E),a}function Jl(a,r,c,p){return ui(),r.flags|=256,In(a,r,c,p),r.child}var rm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sm(a){return{baseLanes:a,cachePool:Sc()}}function ll(a,r,c){return a=a!==null?a.childLanes&~c:0,r&&(a|=Do),a}function Ub(a,r,c){var p=r.pendingProps,E=!1,T=(r.flags&128)!==0,I;if((I=T)||(I=a!==null&&a.memoizedState===null?!1:(Xn.current&2)!==0),I&&(E=!0,r.flags&=-129),I=(r.flags&32)!==0,r.flags&=-33,a===null){if(Wt){if(E?_r(r):Fl(),(a=zn)?(a=A1(a,Ca),a=a!==null&&a.data!=="&"?a:null,a!==null&&(r.memoizedState={dehydrated:a,treeContext:$l!==null?{id:Lo,overflow:Ql}:null,retryLane:536870912,hydrationErrors:null},c=Jy(a),c.return=r,r.child=c,Aa=r,zn=null)):a=null,a===null)throw Ml(r);return Di(a)?r.lanes=32:r.lanes=536870912,null}var ne=p.children;return p=p.fallback,E?(Fl(),E=r.mode,ne=im({mode:"hidden",children:ne},E),p=Cs(p,E,c,null),ne.return=r,p.return=r,ne.sibling=p,r.child=ne,p=r.child,p.memoizedState=sm(c),p.childLanes=ll(a,I,c),r.memoizedState=rm,Ci(null,p)):(_r(r),Ni(r,ne))}var ye=a.memoizedState;if(ye!==null&&(ne=ye.dehydrated,ne!==null)){if(T)r.flags&256?(_r(r),r.flags&=-257,r=Ac(a,r,c)):r.memoizedState!==null?(Fl(),r.child=a.child,r.flags|=128,r=null):(Fl(),ne=p.fallback,E=r.mode,p=im({mode:"visible",children:p.children},E),ne=Cs(ne,E,c,null),ne.flags|=2,p.return=r,ne.return=r,p.sibling=ne,r.child=p,gi(r,a.child,null,c),p=r.child,p.memoizedState=sm(c),p.childLanes=ll(a,I,c),r.memoizedState=rm,r=Ci(null,p));else if(_r(r),Di(ne)){if(I=ne.nextSibling&&ne.nextSibling.dataset,I)var _e=I.dgst;I=_e,p=Error(i(419)),p.stack="",p.digest=I,Vu({value:p,source:null,stack:null}),r=Ac(a,r,c)}else if(ma||za(a,r,c,!1),I=(c&a.childLanes)!==0,ma||I){if(I=On,I!==null&&(p=Tn(I,c),p!==0&&p!==ye.retryLane))throw ye.retryLane=p,Ss(a,p),ko(I,a,p),Nh;Dl(ne)||qh(),r=Ac(a,r,c)}else Dl(ne)?(r.flags|=192,r.child=a.child,r=null):(a=ye.treeContext,zn=Ao(ne.nextSibling),Aa=r,Wt=!0,jr=null,Ca=!1,a!==null&&_f(r,a),r=Ni(r,p.children),r.flags|=4096);return r}return E?(Fl(),ne=p.fallback,E=r.mode,ye=a.child,_e=ye.sibling,p=ws(ye,{mode:"hidden",children:p.children}),p.subtreeFlags=ye.subtreeFlags&65011712,_e!==null?ne=ws(_e,ne):(ne=Cs(ne,E,c,null),ne.flags|=2),ne.return=r,p.return=r,p.sibling=ne,r.child=p,Ci(null,p),p=r.child,ne=a.child.memoizedState,ne===null?ne=sm(c):(E=ne.cachePool,E!==null?(ye=da._currentValue,E=E.parent!==ye?{parent:ye,pool:ye}:E):E=Sc(),ne={baseLanes:ne.baseLanes|c,cachePool:E}),p.memoizedState=ne,p.childLanes=ll(a,I,c),r.memoizedState=rm,Ci(a.child,p)):(_r(r),c=a.child,a=c.sibling,c=ws(c,{mode:"visible",children:p.children}),c.return=r,c.sibling=null,a!==null&&(I=r.deletions,I===null?(r.deletions=[a],r.flags|=16):I.push(a)),r.child=c,r.memoizedState=null,c)}function Ni(a,r){return r=im({mode:"visible",children:r},a.mode),r.return=a,a.child=r}function im(a,r){return a=la(22,a,null,r),a.lanes=0,a}function Ac(a,r,c){return gi(r,a.child,null,c),a=Ni(r,r.pendingProps.children),a.flags|=2,r.memoizedState=null,a}function zc(a,r,c){a.lanes|=r;var p=a.alternate;p!==null&&(p.lanes|=r),eh(a.return,r,c)}function Mh(a,r,c,p,E,T){var I=a.memoizedState;I===null?a.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:p,tail:c,tailMode:E,treeForkCount:T}:(I.isBackwards=r,I.rendering=null,I.renderingStartTime=0,I.last=p,I.tail=c,I.tailMode=E,I.treeForkCount=T)}function Bb(a,r,c){var p=r.pendingProps,E=p.revealOrder,T=p.tail;p=p.children;var I=Xn.current,ne=(I&2)!==0;if(ne?(I=I&1|2,r.flags|=128):I&=1,Ce(Xn,I),In(a,r,p,c),p=Wt?ua:0,!ne&&a!==null&&(a.flags&128)!==0)e:for(a=r.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&zc(a,c,r);else if(a.tag===19)zc(a,c,r);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(E){case"forwards":for(c=r.child,E=null;c!==null;)a=c.alternate,a!==null&&Xu(a)===null&&(E=c),c=c.sibling;c=E,c===null?(E=r.child,r.child=null):(E=c.sibling,c.sibling=null),Mh(r,!1,E,c,T,p);break;case"backwards":case"unstable_legacy-backwards":for(c=null,E=r.child,r.child=null;E!==null;){if(a=E.alternate,a!==null&&Xu(a)===null){r.child=E;break}a=E.sibling,E.sibling=c,c=E,E=a}Mh(r,!0,c,null,T,p);break;case"together":Mh(r,!1,null,null,void 0,p);break;default:r.memoizedState=null}return r.child}function rl(a,r,c){if(a!==null&&(r.dependencies=a.dependencies),ar|=r.lanes,(c&r.childLanes)===0)if(a!==null){if(za(a,r,c,!1),(c&r.childLanes)===0)return null}else return null;if(a!==null&&r.child!==a.child)throw Error(i(153));if(r.child!==null){for(a=r.child,c=ws(a,a.pendingProps),r.child=c,c.return=r;a.sibling!==null;)a=a.sibling,c=c.sibling=ws(a,a.pendingProps),c.return=r;c.sibling=null}return r.child}function Rh(a,r){return(a.lanes&r)!==0?!0:(a=a.dependencies,!!(a!==null&&vc(a)))}function Oh(a,r,c){switch(r.tag){case 3:ze(r,r.stateNode.containerInfo),Eo(r,da,a.memoizedState.cache),ui();break;case 27:case 5:ve(r);break;case 4:ze(r,r.stateNode.containerInfo);break;case 10:Eo(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,Gu(r),null;break;case 13:var p=r.memoizedState;if(p!==null)return p.dehydrated!==null?(_r(r),r.flags|=128,null):(c&r.child.childLanes)!==0?Ub(a,r,c):(_r(r),a=rl(a,r,c),a!==null?a.sibling:null);_r(r);break;case 19:var E=(a.flags&128)!==0;if(p=(c&r.childLanes)!==0,p||(za(a,r,c,!1),p=(c&r.childLanes)!==0),E){if(p)return Bb(a,r,c);r.flags|=128}if(E=r.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),Ce(Xn,Xn.current),p)break;return null;case 22:return r.lanes=0,Fx(a,r,c,r.pendingProps);case 24:Eo(r,da,a.memoizedState.cache)}return rl(a,r,c)}function Lb(a,r,c){if(a!==null)if(a.memoizedProps!==r.pendingProps)ma=!0;else{if(!Rh(a,c)&&(r.flags&128)===0)return ma=!1,Oh(a,r,c);ma=(a.flags&131072)!==0}else ma=!1,Wt&&(r.flags&1048576)!==0&&tb(r,ua,r.index);switch(r.lanes=0,r.tag){case 16:e:{var p=r.pendingProps;if(a=mi(r.elementType),r.type=a,typeof a=="function")yc(a)?(p=wi(a,p),r.tag=1,r=_b(null,r,a,p,c)):(r.tag=0,r=Th(null,r,a,p,c));else{if(a!=null){var E=a.$$typeof;if(E===U){r.tag=11,r=kb(null,r,a,p,c);break e}else if(E===V){r.tag=14,r=Ab(null,r,a,p,c);break e}}throw r=W(a)||a,Error(i(306,r,""))}}return r;case 0:return Th(a,r,r.type,r.pendingProps,c);case 1:return p=r.type,E=wi(p,r.pendingProps),_b(a,r,p,E,c);case 3:e:{if(ze(r,r.stateNode.containerInfo),a===null)throw Error(i(387));p=r.pendingProps;var T=r.memoizedState;E=T.element,nh(a,r),zr(r,p,null,c);var I=r.memoizedState;if(p=I.cache,Eo(r,da,p),p!==T.cache&&Ar(r,[da],c,!0),bi(),p=I.element,T.isDehydrated)if(T={element:p,isDehydrated:!1,cache:I.cache},r.updateQueue.baseState=T,r.memoizedState=T,r.flags&256){r=Jl(a,r,p,c);break e}else if(p!==E){E=Wo(Error(i(424)),r),Vu(E),r=Jl(a,r,p,c);break e}else for(a=r.stateNode.containerInfo,a.nodeType===9?a=a.body:a=a.nodeName==="HTML"?a.ownerDocument.body:a,zn=Ao(a.firstChild),Aa=r,Wt=!0,jr=null,Ca=!0,c=ib(r,null,p,c),r.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(ui(),p===E){r=rl(a,r,c);break e}In(a,r,p,c)}r=r.child}return r;case 26:return ol(a,r),a===null?(c=xd(r.type,null,r.pendingProps,null))?r.memoizedState=c:Wt||(c=r.type,a=r.pendingProps,p=ji(le.current).createElement(c),p[Mn]=r,p[vo]=a,Fa(p,c,a),vn(p),r.stateNode=p):r.memoizedState=xd(r.type,a.memoizedProps,r.pendingProps,a.memoizedState),null;case 27:return ve(r),a===null&&Wt&&(p=r.stateNode=bd(r.type,r.pendingProps,le.current),Aa=r,Ca=!0,E=zn,lr(r.type)?(Mm=E,zn=Ao(p.firstChild)):zn=E),In(a,r,r.pendingProps.children,c),ol(a,r),a===null&&(r.flags|=4194304),r.child;case 5:return a===null&&Wt&&((E=p=zn)&&(p=YC(p,r.type,r.pendingProps,Ca),p!==null?(r.stateNode=p,Aa=r,zn=Ao(p.firstChild),Ca=!1,E=!0):E=!1),E||Ml(r)),ve(r),E=r.type,T=r.pendingProps,I=a!==null?a.memoizedProps:null,p=T.children,gd(E,T)?p=null:I!==null&&gd(E,I)&&(r.flags|=32),r.memoizedState!==null&&(E=Qf(a,r,LC,null,null,c),jm._currentValue=E),ol(a,r),In(a,r,p,c),r.child;case 6:return a===null&&Wt&&((a=c=zn)&&(c=qt(c,r.pendingProps,Ca),c!==null?(r.stateNode=c,Aa=r,zn=null,a=!0):a=!1),a||Ml(r)),null;case 13:return Ub(a,r,c);case 4:return ze(r,r.stateNode.containerInfo),p=r.pendingProps,a===null?r.child=gi(r,null,p,c):In(a,r,p,c),r.child;case 11:return kb(a,r,r.type,r.pendingProps,c);case 7:return In(a,r,r.pendingProps,c),r.child;case 8:return In(a,r,r.pendingProps.children,c),r.child;case 12:return In(a,r,r.pendingProps.children,c),r.child;case 10:return p=r.pendingProps,Eo(r,r.type,p.value),In(a,r,p.children,c),r.child;case 9:return E=r.type._context,p=r.pendingProps.children,Dt(r),E=Pe(E),p=p(E),r.flags|=1,In(a,r,p,c),r.child;case 14:return Ab(a,r,r.type,r.pendingProps,c);case 15:return zb(a,r,r.type,r.pendingProps,c);case 19:return Bb(a,r,c);case 31:return Wx(a,r,c);case 22:return Fx(a,r,c,r.pendingProps);case 24:return Dt(r),p=Pe(da),a===null?(E=tl(),E===null&&(E=On,T=Lf(),E.pooledCache=T,T.refCount++,T!==null&&(E.pooledCacheLanes|=c),E=T),r.memoizedState={parent:p,cache:E},Xf(r),Eo(r,da,E)):((a.lanes&c)!==0&&(nh(a,r),zr(r,null,null,c),bi()),E=a.memoizedState,T=r.memoizedState,E.parent!==p?(E={parent:p,cache:p},r.memoizedState=E,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=E),Eo(r,da,p)):(p=T.cache,Eo(r,da,p),p!==E.cache&&Ar(r,[da],c,!0))),In(a,r,r.pendingProps.children,c),r.child;case 29:throw r.pendingProps}throw Error(i(156,r.tag))}function Ir(a){a.flags|=4}function Vb(a,r,c,p,E){if((r=(a.mode&32)!==0)&&(r=!1),r){if(a.flags|=16777216,(E&335544128)===E)if(a.stateNode.complete)a.flags|=8192;else if(i1())a.flags|=8192;else throw pi=Cc,wc}else a.flags&=-16777217}function Hb(a,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!Go(r))if(i1())a.flags|=8192;else throw pi=Cc,wc}function io(a,r){r!==null&&(a.flags|=4),a.flags&16384&&(r=a.tag!==22?oo():536870912,a.lanes|=r,ea|=r)}function Ju(a,r){if(!Wt)switch(a.tailMode){case"hidden":r=a.tail;for(var c=null;r!==null;)r.alternate!==null&&(c=r),r=r.sibling;c===null?a.tail=null:c.sibling=null;break;case"collapsed":c=a.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?r||a.tail===null?a.tail=null:a.tail.sibling=null:p.sibling=null}}function Ot(a){var r=a.alternate!==null&&a.alternate.child===a.child,c=0,p=0;if(r)for(var E=a.child;E!==null;)c|=E.lanes|E.childLanes,p|=E.subtreeFlags&65011712,p|=E.flags&65011712,E.return=a,E=E.sibling;else for(E=a.child;E!==null;)c|=E.lanes|E.childLanes,p|=E.subtreeFlags,p|=E.flags,E.return=a,E=E.sibling;return a.subtreeFlags|=p,a.childLanes=c,r}function Jx(a,r,c){var p=r.pendingProps;switch(Wp(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(r),null;case 1:return Ot(r),null;case 3:return c=r.stateNode,p=null,a!==null&&(p=a.memoizedState.cache),r.memoizedState.cache!==p&&(r.flags|=2048),Kl(da),je(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(a===null||a.child===null)&&(kr(r)?Ir(r):a===null||a.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,nb())),Ot(r),null;case 26:var E=r.type,T=r.memoizedState;return a===null?(Ir(r),T!==null?(Ot(r),Hb(r,T)):(Ot(r),Vb(r,E,null,p,c))):T?T!==a.memoizedState?(Ir(r),Ot(r),Hb(r,T)):(Ot(r),r.flags&=-16777217):(a=a.memoizedProps,a!==p&&Ir(r),Ot(r),Vb(r,E,a,p,c)),null;case 27:if(fe(r),c=le.current,E=r.type,a!==null&&r.stateNode!=null)a.memoizedProps!==p&&Ir(r);else{if(!p){if(r.stateNode===null)throw Error(i(166));return Ot(r),null}a=re.current,kr(r)?Uf(r):(a=bd(E,p,c),r.stateNode=a,Ir(r))}return Ot(r),null;case 5:if(fe(r),E=r.type,a!==null&&r.stateNode!=null)a.memoizedProps!==p&&Ir(r);else{if(!p){if(r.stateNode===null)throw Error(i(166));return Ot(r),null}if(T=re.current,kr(r))Uf(r);else{var I=ji(le.current);switch(T){case 1:T=I.createElementNS("http://www.w3.org/2000/svg",E);break;case 2:T=I.createElementNS("http://www.w3.org/1998/Math/MathML",E);break;default:switch(E){case"svg":T=I.createElementNS("http://www.w3.org/2000/svg",E);break;case"math":T=I.createElementNS("http://www.w3.org/1998/Math/MathML",E);break;case"script":T=I.createElement("div"),T.innerHTML="<script><\/script>",T=T.removeChild(T.firstChild);break;case"select":T=typeof p.is=="string"?I.createElement("select",{is:p.is}):I.createElement("select"),p.multiple?T.multiple=!0:p.size&&(T.size=p.size);break;default:T=typeof p.is=="string"?I.createElement(E,{is:p.is}):I.createElement(E)}}T[Mn]=r,T[vo]=p;e:for(I=r.child;I!==null;){if(I.tag===5||I.tag===6)T.appendChild(I.stateNode);else if(I.tag!==4&&I.tag!==27&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===r)break e;for(;I.sibling===null;){if(I.return===null||I.return===r)break e;I=I.return}I.sibling.return=I.return,I=I.sibling}r.stateNode=T;e:switch(Fa(T,E,p),E){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&Ir(r)}}return Ot(r),Vb(r,r.type,a===null?null:a.memoizedProps,r.pendingProps,c),null;case 6:if(a&&r.stateNode!=null)a.memoizedProps!==p&&Ir(r);else{if(typeof p!="string"&&r.stateNode===null)throw Error(i(166));if(a=le.current,kr(r)){if(a=r.stateNode,c=r.memoizedProps,p=null,E=Aa,E!==null)switch(E.tag){case 27:case 5:p=E.memoizedProps}a[Mn]=r,a=!!(a.nodeValue===c||p!==null&&p.suppressHydrationWarning===!0||u0(a.nodeValue,c)),a||Ml(r,!0)}else a=ji(a).createTextNode(p),a[Mn]=r,r.stateNode=a}return Ot(r),null;case 31:if(c=r.memoizedState,a===null||a.memoizedState!==null){if(p=kr(r),c!==null){if(a===null){if(!p)throw Error(i(318));if(a=r.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(557));a[Mn]=r}else ui(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Ot(r),a=!1}else c=nb(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=c),a=!0;if(!a)return r.flags&256?(To(r),r):(To(r),null);if((r.flags&128)!==0)throw Error(i(558))}return Ot(r),null;case 13:if(p=r.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(E=kr(r),p!==null&&p.dehydrated!==null){if(a===null){if(!E)throw Error(i(318));if(E=r.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(i(317));E[Mn]=r}else ui(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Ot(r),E=!1}else E=nb(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=E),E=!0;if(!E)return r.flags&256?(To(r),r):(To(r),null)}return To(r),(r.flags&128)!==0?(r.lanes=c,r):(c=p!==null,a=a!==null&&a.memoizedState!==null,c&&(p=r.child,E=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(E=p.alternate.memoizedState.cachePool.pool),T=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(T=p.memoizedState.cachePool.pool),T!==E&&(p.flags|=2048)),c!==a&&c&&(r.child.flags|=8192),io(r,r.updateQueue),Ot(r),null);case 4:return je(),a===null&&hd(r.stateNode.containerInfo),Ot(r),null;case 10:return Kl(r.type),Ot(r),null;case 19:if(se(Xn),p=r.memoizedState,p===null)return Ot(r),null;if(E=(r.flags&128)!==0,T=p.rendering,T===null)if(E)Ju(p,!1);else{if(Un!==0||a!==null&&(a.flags&128)!==0)for(a=r.child;a!==null;){if(T=Xu(a),T!==null){for(r.flags|=128,Ju(p,!1),a=T.updateQueue,r.updateQueue=a,io(r,a),r.subtreeFlags=0,a=c,c=r.child;c!==null;)Wy(c,a),c=c.sibling;return Ce(Xn,Xn.current&1|2),Wt&&Tl(r,p.treeForkCount),r.child}a=a.sibling}p.tail!==null&&$e()>gn&&(r.flags|=128,E=!0,Ju(p,!1),r.lanes=4194304)}else{if(!E)if(a=Xu(T),a!==null){if(r.flags|=128,E=!0,a=a.updateQueue,r.updateQueue=a,io(r,a),Ju(p,!0),p.tail===null&&p.tailMode==="hidden"&&!T.alternate&&!Wt)return Ot(r),null}else 2*$e()-p.renderingStartTime>gn&&c!==536870912&&(r.flags|=128,E=!0,Ju(p,!1),r.lanes=4194304);p.isBackwards?(T.sibling=r.child,r.child=T):(a=p.last,a!==null?a.sibling=T:r.child=T,p.last=T)}return p.tail!==null?(a=p.tail,p.rendering=a,p.tail=a.sibling,p.renderingStartTime=$e(),a.sibling=null,c=Xn.current,Ce(Xn,E?c&1|2:c&1),Wt&&Tl(r,p.treeForkCount),a):(Ot(r),null);case 22:case 23:return To(r),qu(),p=r.memoizedState!==null,a!==null?a.memoizedState!==null!==p&&(r.flags|=8192):p&&(r.flags|=8192),p?(c&536870912)!==0&&(r.flags&128)===0&&(Ot(r),r.subtreeFlags&6&&(r.flags|=8192)):Ot(r),c=r.updateQueue,c!==null&&io(r,c.retryQueue),c=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),p=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(p=r.memoizedState.cachePool.pool),p!==c&&(r.flags|=2048),a!==null&&se(el),null;case 24:return c=null,a!==null&&(c=a.memoizedState.cache),r.memoizedState.cache!==c&&(r.flags|=2048),Kl(da),Ot(r),null;case 25:return null;case 30:return null}throw Error(i(156,r.tag))}function e1(a,r){switch(Wp(r),r.tag){case 1:return a=r.flags,a&65536?(r.flags=a&-65537|128,r):null;case 3:return Kl(da),je(),a=r.flags,(a&65536)!==0&&(a&128)===0?(r.flags=a&-65537|128,r):null;case 26:case 27:case 5:return fe(r),null;case 31:if(r.memoizedState!==null){if(To(r),r.alternate===null)throw Error(i(340));ui()}return a=r.flags,a&65536?(r.flags=a&-65537|128,r):null;case 13:if(To(r),a=r.memoizedState,a!==null&&a.dehydrated!==null){if(r.alternate===null)throw Error(i(340));ui()}return a=r.flags,a&65536?(r.flags=a&-65537|128,r):null;case 19:return se(Xn),null;case 4:return je(),null;case 10:return Kl(r.type),null;case 22:case 23:return To(r),qu(),a!==null&&se(el),a=r.flags,a&65536?(r.flags=a&-65537|128,r):null;case 24:return Kl(da),null;case 25:return null;default:return null}}function t1(a,r){switch(Wp(r),r.tag){case 3:Kl(da),je();break;case 26:case 27:case 5:fe(r);break;case 4:je();break;case 31:r.memoizedState!==null&&To(r);break;case 13:To(r);break;case 19:se(Xn);break;case 10:Kl(r.type);break;case 22:case 23:To(r),qu(),a!==null&&se(el);break;case 24:Kl(da)}}function Ol(a,r){try{var c=r.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var E=p.next;c=E;do{if((c.tag&a)===a){p=void 0;var T=c.create,I=c.inst;p=T(),I.destroy=p}c=c.next}while(c!==E)}}catch(ne){Cn(r,r.return,ne)}}function sl(a,r,c){try{var p=r.updateQueue,E=p!==null?p.lastEffect:null;if(E!==null){var T=E.next;p=T;do{if((p.tag&a)===a){var I=p.inst,ne=I.destroy;if(ne!==void 0){I.destroy=void 0,E=r;var ye=c,_e=ne;try{_e()}catch(Ye){Cn(E,ye,Ye)}}}p=p.next}while(p!==T)}}catch(Ye){Cn(r,r.return,Ye)}}function jh(a){var r=a.updateQueue;if(r!==null){var c=a.stateNode;try{vi(r,c)}catch(p){Cn(a,a.return,p)}}}function Ti(a,r,c){c.props=wi(a.type,a.memoizedProps),c.state=a.memoizedState;try{c.componentWillUnmount()}catch(p){Cn(a,r,p)}}function Yr(a,r){try{var c=a.ref;if(c!==null){switch(a.tag){case 26:case 27:case 5:var p=a.stateNode;break;case 30:p=a.stateNode;break;default:p=a.stateNode}typeof c=="function"?a.refCleanup=c(p):c.current=p}}catch(E){Cn(a,r,E)}}function er(a,r){var c=a.ref,p=a.refCleanup;if(c!==null)if(typeof p=="function")try{p()}catch(E){Cn(a,r,E)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(E){Cn(a,r,E)}else c.current=null}function Ib(a){var r=a.type,c=a.memoizedProps,p=a.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":c.autoFocus&&p.focus();break e;case"img":c.src?p.src=c.src:c.srcSet&&(p.srcset=c.srcSet)}}catch(E){Cn(a,a.return,E)}}function Dh(a,r,c){try{var p=a.stateNode;f0(p,a.type,c,r),p[vo]=r}catch(E){Cn(a,a.return,E)}}function Yb(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&lr(a.type)||a.tag===4}function ed(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Yb(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&lr(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function td(a,r,c){var p=a.tag;if(p===5||p===6)a=a.stateNode,r?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(a,r):(r=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,r.appendChild(a),c=c._reactRootContainer,c!=null||r.onclick!==null||(r.onclick=Hl));else if(p!==4&&(p===27&&lr(a.type)&&(c=a.stateNode,r=null),a=a.child,a!==null))for(td(a,r,c),a=a.sibling;a!==null;)td(a,r,c),a=a.sibling}function nd(a,r,c){var p=a.tag;if(p===5||p===6)a=a.stateNode,r?c.insertBefore(a,r):c.appendChild(a);else if(p!==4&&(p===27&&lr(a.type)&&(c=a.stateNode),a=a.child,a!==null))for(nd(a,r,c),a=a.sibling;a!==null;)nd(a,r,c),a=a.sibling}function qb(a){var r=a.stateNode,c=a.memoizedProps;try{for(var p=a.type,E=r.attributes;E.length;)r.removeAttributeNode(E[0]);Fa(r,p,c),r[Mn]=a,r[vo]=c}catch(T){Cn(a,a.return,T)}}var ks=!1,va=!1,kh=!1,Gb=typeof WeakSet=="function"?WeakSet:Set,Ba=null;function ad(a,r){if(a=a.containerInfo,Wh=Ta,a=si(a),Of(a)){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else e:{c=(c=a.ownerDocument)&&c.defaultView||window;var p=c.getSelection&&c.getSelection();if(p&&p.rangeCount!==0){c=p.anchorNode;var E=p.anchorOffset,T=p.focusNode;p=p.focusOffset;try{c.nodeType,T.nodeType}catch{c=null;break e}var I=0,ne=-1,ye=-1,_e=0,Ye=0,Xe=a,Ue=null;t:for(;;){for(var He;Xe!==c||E!==0&&Xe.nodeType!==3||(ne=I+E),Xe!==T||p!==0&&Xe.nodeType!==3||(ye=I+p),Xe.nodeType===3&&(I+=Xe.nodeValue.length),(He=Xe.firstChild)!==null;)Ue=Xe,Xe=He;for(;;){if(Xe===a)break t;if(Ue===c&&++_e===E&&(ne=I),Ue===T&&++Ye===p&&(ye=I),(He=Xe.nextSibling)!==null)break;Xe=Ue,Ue=Xe.parentNode}Xe=He}c=ne===-1||ye===-1?null:{start:ne,end:ye}}else c=null}c=c||{start:0,end:0}}else c=null;for(Jh={focusedElem:a,selectionRange:c},Ta=!1,Ba=r;Ba!==null;)if(r=Ba,a=r.child,(r.subtreeFlags&1028)!==0&&a!==null)a.return=r,Ba=a;else for(;Ba!==null;){switch(r=Ba,T=r.alternate,a=r.flags,r.tag){case 0:if((a&4)!==0&&(a=r.updateQueue,a=a!==null?a.events:null,a!==null))for(c=0;c<a.length;c++)E=a[c],E.ref.impl=E.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&T!==null){a=void 0,c=r,E=T.memoizedProps,T=T.memoizedState,p=c.stateNode;try{var rt=wi(c.type,E);a=p.getSnapshotBeforeUpdate(rt,T),p.__reactInternalSnapshotBeforeUpdate=a}catch(St){Cn(c,c.return,St)}}break;case 3:if((a&1024)!==0){if(a=r.stateNode.containerInfo,c=a.nodeType,c===9)Tm(a);else if(c===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Tm(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(i(163))}if(a=r.sibling,a!==null){a.return=r.return,Ba=a;break}Ba=r.return}}function cm(a,r,c){var p=c.flags;switch(c.tag){case 0:case 11:case 15:As(a,c),p&4&&Ol(5,c);break;case 1:if(As(a,c),p&4)if(a=c.stateNode,r===null)try{a.componentDidMount()}catch(I){Cn(c,c.return,I)}else{var E=wi(c.type,r.memoizedProps);r=r.memoizedState;try{a.componentDidUpdate(E,r,a.__reactInternalSnapshotBeforeUpdate)}catch(I){Cn(c,c.return,I)}}p&64&&jh(c),p&512&&Yr(c,c.return);break;case 3:if(As(a,c),p&64&&(a=c.updateQueue,a!==null)){if(r=null,c.child!==null)switch(c.child.tag){case 27:case 5:r=c.child.stateNode;break;case 1:r=c.child.stateNode}try{vi(a,r)}catch(I){Cn(c,c.return,I)}}break;case 27:r===null&&p&4&&qb(c);case 26:case 5:As(a,c),r===null&&p&4&&Ib(c),p&512&&Yr(c,c.return);break;case 12:As(a,c);break;case 31:As(a,c),p&4&&n1(a,c);break;case 13:As(a,c),p&4&&$b(a,c),p&64&&(a=c.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(c=il.bind(null,c),yd(a,c))));break;case 22:if(p=c.memoizedState!==null||ks,!p){r=r!==null&&r.memoizedState!==null||va,E=ks;var T=va;ks=p,(va=r)&&!T?tr(a,c,(c.subtreeFlags&8772)!==0):As(a,c),ks=E,va=T}break;case 30:break;default:As(a,c)}}function Xb(a){var r=a.alternate;r!==null&&(a.alternate=null,Xb(r)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(r=a.stateNode,r!==null&&Rp(r)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var _n=null,Oo=!1;function qr(a,r,c){for(c=c.child;c!==null;)Pb(a,r,c),c=c.sibling}function Pb(a,r,c){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Wn,c)}catch{}switch(c.tag){case 26:va||er(c,r),qr(a,r,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:va||er(c,r);var p=_n,E=Oo;lr(c.type)&&(_n=c.stateNode,Oo=!1),qr(a,r,c),Yc(c.stateNode),_n=p,Oo=E;break;case 5:va||er(c,r);case 6:if(p=_n,E=Oo,_n=null,qr(a,r,c),_n=p,Oo=E,_n!==null)if(Oo)try{(_n.nodeType===9?_n.body:_n.nodeName==="HTML"?_n.ownerDocument.body:_n).removeChild(c.stateNode)}catch(T){Cn(c,r,T)}else try{_n.removeChild(c.stateNode)}catch(T){Cn(c,r,T)}break;case 18:_n!==null&&(Oo?(a=_n,g0(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,c.stateNode),Rd(a)):g0(_n,c.stateNode));break;case 4:p=_n,E=Oo,_n=c.stateNode.containerInfo,Oo=!0,qr(a,r,c),_n=p,Oo=E;break;case 0:case 11:case 14:case 15:sl(2,c,r),va||sl(4,c,r),qr(a,r,c);break;case 1:va||(er(c,r),p=c.stateNode,typeof p.componentWillUnmount=="function"&&Ti(c,r,p)),qr(a,r,c);break;case 21:qr(a,r,c);break;case 22:va=(p=va)||c.memoizedState!==null,qr(a,r,c),va=p;break;default:qr(a,r,c)}}function n1(a,r){if(r.memoizedState===null&&(a=r.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Rd(a)}catch(c){Cn(r,r.return,c)}}}function $b(a,r){if(r.memoizedState===null&&(a=r.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Rd(a)}catch(c){Cn(r,r.return,c)}}function um(a){switch(a.tag){case 31:case 13:case 19:var r=a.stateNode;return r===null&&(r=a.stateNode=new Gb),r;case 22:return a=a.stateNode,r=a._retryCache,r===null&&(r=a._retryCache=new Gb),r;default:throw Error(i(435,a.tag))}}function dm(a,r){var c=um(a);r.forEach(function(p){if(!c.has(p)){c.add(p);var E=C1.bind(null,a,p);p.then(E,E)}})}function jo(a,r){var c=r.deletions;if(c!==null)for(var p=0;p<c.length;p++){var E=c[p],T=a,I=r,ne=I;e:for(;ne!==null;){switch(ne.tag){case 27:if(lr(ne.type)){_n=ne.stateNode,Oo=!1;break e}break;case 5:_n=ne.stateNode,Oo=!1;break e;case 3:case 4:_n=ne.stateNode.containerInfo,Oo=!0;break e}ne=ne.return}if(_n===null)throw Error(i(160));Pb(T,I,E),_n=null,Oo=!1,T=E.alternate,T!==null&&(T.return=null),E.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)Ah(r,a),r=r.sibling}var Vt=null;function Ah(a,r){var c=a.alternate,p=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:jo(r,a),Vo(a),p&4&&(sl(3,a,a.return),Ol(3,a),sl(5,a,a.return));break;case 1:jo(r,a),Vo(a),p&512&&(va||c===null||er(c,c.return)),p&64&&ks&&(a=a.updateQueue,a!==null&&(p=a.callbacks,p!==null&&(c=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=c===null?p:c.concat(p))));break;case 26:var E=Vt;if(jo(r,a),Vo(a),p&512&&(va||c===null||er(c,c.return)),p&4){var T=c!==null?c.memoizedState:null;if(p=a.memoizedState,c===null)if(p===null)if(a.stateNode===null){e:{p=a.type,c=a.memoizedProps,E=E.ownerDocument||E;t:switch(p){case"title":T=E.getElementsByTagName("title")[0],(!T||T[wr]||T[Mn]||T.namespaceURI==="http://www.w3.org/2000/svg"||T.hasAttribute("itemprop"))&&(T=E.createElement(p),E.head.insertBefore(T,E.querySelector("head > title"))),Fa(T,p,c),T[Mn]=a,vn(T),p=T;break e;case"link":var I=x0("link","href",E).get(p+(c.href||""));if(I){for(var ne=0;ne<I.length;ne++)if(T=I[ne],T.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&T.getAttribute("rel")===(c.rel==null?null:c.rel)&&T.getAttribute("title")===(c.title==null?null:c.title)&&T.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){I.splice(ne,1);break t}}T=E.createElement(p),Fa(T,p,c),E.head.appendChild(T);break;case"meta":if(I=x0("meta","content",E).get(p+(c.content||""))){for(ne=0;ne<I.length;ne++)if(T=I[ne],T.getAttribute("content")===(c.content==null?null:""+c.content)&&T.getAttribute("name")===(c.name==null?null:c.name)&&T.getAttribute("property")===(c.property==null?null:c.property)&&T.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&T.getAttribute("charset")===(c.charSet==null?null:c.charSet)){I.splice(ne,1);break t}}T=E.createElement(p),Fa(T,p,c),E.head.appendChild(T);break;default:throw Error(i(468,p))}T[Mn]=a,vn(T),p=T}a.stateNode=p}else og(E,a.type,a.stateNode);else a.stateNode=v0(E,p,a.memoizedProps);else T!==p?(T===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):T.count--,p===null?og(E,a.type,a.stateNode):v0(E,p,a.memoizedProps)):p===null&&a.stateNode!==null&&Dh(a,a.memoizedProps,c.memoizedProps)}break;case 27:jo(r,a),Vo(a),p&512&&(va||c===null||er(c,c.return)),c!==null&&p&4&&Dh(a,a.memoizedProps,c.memoizedProps);break;case 5:if(jo(r,a),Vo(a),p&512&&(va||c===null||er(c,c.return)),a.flags&32){E=a.stateNode;try{Er(E,"")}catch(rt){Cn(a,a.return,rt)}}p&4&&a.stateNode!=null&&(E=a.memoizedProps,Dh(a,E,c!==null?c.memoizedProps:E)),p&1024&&(kh=!0);break;case 6:if(jo(r,a),Vo(a),p&4){if(a.stateNode===null)throw Error(i(162));p=a.memoizedProps,c=a.stateNode;try{c.nodeValue=p}catch(rt){Cn(a,a.return,rt)}}break;case 3:if(Cd=null,E=Vt,Vt=co(r.containerInfo),jo(r,a),Vt=E,Vo(a),p&4&&c!==null&&c.memoizedState.isDehydrated)try{Rd(r.containerInfo)}catch(rt){Cn(a,a.return,rt)}kh&&(kh=!1,Qb(a));break;case 4:p=Vt,Vt=co(a.stateNode.containerInfo),jo(r,a),Vo(a),Vt=p;break;case 12:jo(r,a),Vo(a);break;case 31:jo(r,a),Vo(a),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,dm(a,p)));break;case 13:jo(r,a),Vo(a),a.child.flags&8192&&a.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(or=$e()),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,dm(a,p)));break;case 22:E=a.memoizedState!==null;var ye=c!==null&&c.memoizedState!==null,_e=ks,Ye=va;if(ks=_e||E,va=Ye||ye,jo(r,a),va=Ye,ks=_e,Vo(a),p&8192)e:for(r=a.stateNode,r._visibility=E?r._visibility&-2:r._visibility|1,E&&(c===null||ye||ks||va||_c(a)),c=null,r=a;;){if(r.tag===5||r.tag===26){if(c===null){ye=c=r;try{if(T=ye.stateNode,E)I=T.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{ne=ye.stateNode;var Xe=ye.memoizedProps.style,Ue=Xe!=null&&Xe.hasOwnProperty("display")?Xe.display:null;ne.style.display=Ue==null||typeof Ue=="boolean"?"":(""+Ue).trim()}}catch(rt){Cn(ye,ye.return,rt)}}}else if(r.tag===6){if(c===null){ye=r;try{ye.stateNode.nodeValue=E?"":ye.memoizedProps}catch(rt){Cn(ye,ye.return,rt)}}}else if(r.tag===18){if(c===null){ye=r;try{var He=ye.stateNode;E?pa(He,!0):pa(ye.stateNode,!1)}catch(rt){Cn(ye,ye.return,rt)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===a)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;c===r&&(c=null),r=r.return}c===r&&(c=null),r.sibling.return=r.return,r=r.sibling}p&4&&(p=a.updateQueue,p!==null&&(c=p.retryQueue,c!==null&&(p.retryQueue=null,dm(a,c))));break;case 19:jo(r,a),Vo(a),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,dm(a,p)));break;case 30:break;case 21:break;default:jo(r,a),Vo(a)}}function Vo(a){var r=a.flags;if(r&2){try{for(var c,p=a.return;p!==null;){if(Yb(p)){c=p;break}p=p.return}if(c==null)throw Error(i(160));switch(c.tag){case 27:var E=c.stateNode,T=ed(a);nd(a,T,E);break;case 5:var I=c.stateNode;c.flags&32&&(Er(I,""),c.flags&=-33);var ne=ed(a);nd(a,ne,I);break;case 3:case 4:var ye=c.stateNode.containerInfo,_e=ed(a);td(a,_e,ye);break;default:throw Error(i(161))}}catch(Ye){Cn(a,a.return,Ye)}a.flags&=-3}r&4096&&(a.flags&=-4097)}function Qb(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var r=a;Qb(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),a=a.sibling}}function As(a,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)cm(a,r.alternate,r),r=r.sibling}function _c(a){for(a=a.child;a!==null;){var r=a;switch(r.tag){case 0:case 11:case 14:case 15:sl(4,r,r.return),_c(r);break;case 1:er(r,r.return);var c=r.stateNode;typeof c.componentWillUnmount=="function"&&Ti(r,r.return,c),_c(r);break;case 27:Yc(r.stateNode);case 26:case 5:er(r,r.return),_c(r);break;case 22:r.memoizedState===null&&_c(r);break;case 30:_c(r);break;default:_c(r)}a=a.sibling}}function tr(a,r,c){for(c=c&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var p=r.alternate,E=a,T=r,I=T.flags;switch(T.tag){case 0:case 11:case 15:tr(E,T,c),Ol(4,T);break;case 1:if(tr(E,T,c),p=T,E=p.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount()}catch(_e){Cn(p,p.return,_e)}if(p=T,E=p.updateQueue,E!==null){var ne=p.stateNode;try{var ye=E.shared.hiddenCallbacks;if(ye!==null)for(E.shared.hiddenCallbacks=null,E=0;E<ye.length;E++)oh(ye[E],ne)}catch(_e){Cn(p,p.return,_e)}}c&&I&64&&jh(T),Yr(T,T.return);break;case 27:qb(T);case 26:case 5:tr(E,T,c),c&&p===null&&I&4&&Ib(T),Yr(T,T.return);break;case 12:tr(E,T,c);break;case 31:tr(E,T,c),c&&I&4&&n1(E,T);break;case 13:tr(E,T,c),c&&I&4&&$b(E,T);break;case 22:T.memoizedState===null&&tr(E,T,c),Yr(T,T.return);break;case 30:break;default:tr(E,T,c)}r=r.sibling}}function zh(a,r){var c=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==c&&(a!=null&&a.refCount++,c!=null&&Vf(c))}function _h(a,r){a=null,r.alternate!==null&&(a=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==a&&(r.refCount++,a!=null&&Vf(a))}function jl(a,r,c,p){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)od(a,r,c,p),r=r.sibling}function od(a,r,c,p){var E=r.flags;switch(r.tag){case 0:case 11:case 15:jl(a,r,c,p),E&2048&&Ol(9,r);break;case 1:jl(a,r,c,p);break;case 3:jl(a,r,c,p),E&2048&&(a=null,r.alternate!==null&&(a=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==a&&(r.refCount++,a!=null&&Vf(a)));break;case 12:if(E&2048){jl(a,r,c,p),a=r.stateNode;try{var T=r.memoizedProps,I=T.id,ne=T.onPostCommit;typeof ne=="function"&&ne(I,r.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(ye){Cn(r,r.return,ye)}}else jl(a,r,c,p);break;case 31:jl(a,r,c,p);break;case 13:jl(a,r,c,p);break;case 23:break;case 22:T=r.stateNode,I=r.alternate,r.memoizedState!==null?T._visibility&2?jl(a,r,c,p):fm(a,r):T._visibility&2?jl(a,r,c,p):(T._visibility|=2,ld(a,r,c,p,(r.subtreeFlags&10256)!==0||!1)),E&2048&&zh(I,r);break;case 24:jl(a,r,c,p),E&2048&&_h(r.alternate,r);break;default:jl(a,r,c,p)}}function ld(a,r,c,p,E){for(E=E&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var T=a,I=r,ne=c,ye=p,_e=I.flags;switch(I.tag){case 0:case 11:case 15:ld(T,I,ne,ye,E),Ol(8,I);break;case 23:break;case 22:var Ye=I.stateNode;I.memoizedState!==null?Ye._visibility&2?ld(T,I,ne,ye,E):fm(T,I):(Ye._visibility|=2,ld(T,I,ne,ye,E)),E&&_e&2048&&zh(I.alternate,I);break;case 24:ld(T,I,ne,ye,E),E&&_e&2048&&_h(I.alternate,I);break;default:ld(T,I,ne,ye,E)}r=r.sibling}}function fm(a,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var c=a,p=r,E=p.flags;switch(p.tag){case 22:fm(c,p),E&2048&&zh(p.alternate,p);break;case 24:fm(c,p),E&2048&&_h(p.alternate,p);break;default:fm(c,p)}r=r.sibling}}var Ho=8192;function Gr(a,r,c){if(a.subtreeFlags&Ho)for(a=a.child;a!==null;)a1(a,r,c),a=a.sibling}function a1(a,r,c){switch(a.tag){case 26:Gr(a,r,c),a.flags&Ho&&a.memoizedState!==null&&Zr(c,Vt,a.memoizedState,a.memoizedProps);break;case 5:Gr(a,r,c);break;case 3:case 4:var p=Vt;Vt=co(a.stateNode.containerInfo),Gr(a,r,c),Vt=p;break;case 22:a.memoizedState===null&&(p=a.alternate,p!==null&&p.memoizedState!==null?(p=Ho,Ho=16777216,Gr(a,r,c),Ho=p):Gr(a,r,c));break;default:Gr(a,r,c)}}function Uh(a){var r=a.alternate;if(r!==null&&(a=r.child,a!==null)){r.child=null;do r=a.sibling,a.sibling=null,a=r;while(a!==null)}}function rd(a){var r=a.deletions;if((a.flags&16)!==0){if(r!==null)for(var c=0;c<r.length;c++){var p=r[c];Ba=p,Bh(p,a)}Uh(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Zb(a),a=a.sibling}function Zb(a){switch(a.tag){case 0:case 11:case 15:rd(a),a.flags&2048&&sl(9,a,a.return);break;case 3:rd(a);break;case 12:rd(a);break;case 22:var r=a.stateNode;a.memoizedState!==null&&r._visibility&2&&(a.return===null||a.return.tag!==13)?(r._visibility&=-3,mm(a)):rd(a);break;default:rd(a)}}function mm(a){var r=a.deletions;if((a.flags&16)!==0){if(r!==null)for(var c=0;c<r.length;c++){var p=r[c];Ba=p,Bh(p,a)}Uh(a)}for(a=a.child;a!==null;){switch(r=a,r.tag){case 0:case 11:case 15:sl(8,r,r.return),mm(r);break;case 22:c=r.stateNode,c._visibility&2&&(c._visibility&=-3,mm(r));break;default:mm(r)}a=a.sibling}}function Bh(a,r){for(;Ba!==null;){var c=Ba;switch(c.tag){case 0:case 11:case 15:sl(8,c,r);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var p=c.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:Vf(c.memoizedState.cache)}if(p=c.child,p!==null)p.return=c,Ba=p;else e:for(c=a;Ba!==null;){p=Ba;var E=p.sibling,T=p.return;if(Xb(p),p===c){Ba=null;break e}if(E!==null){E.return=T,Ba=E;break e}Ba=T}}}var o1={getCacheForType:function(a){var r=Pe(da),c=r.data.get(a);return c===void 0&&(c=a(),r.data.set(a,c)),c},cacheSignal:function(){return Pe(da).controller.signal}},Kb=typeof WeakMap=="function"?WeakMap:Map,dn=0,On=null,Jt=null,$t=0,wn=0,Ct=null,Xr=!1,Mi=!1,Lh=!1,nr=0,Un=0,ar=0,Uc=0,Vh=0,Do=0,ea=0,pm=null,ta=null,Hh=!1,or=0,Fb=0,gn=1/0,sd=null,Pn=null,Na=0,zs=null,Ri=null,Pr=0,Io=0,Ih=null,Yh=null,id=0,hm=null;function Yo(){return(dn&2)!==0&&$t!==0?$t&-$t:Y.T!==null?$h():ec()}function l1(){if(Do===0)if(($t&536870912)===0||Wt){var a=tt;tt<<=1,(tt&3932160)===0&&(tt=262144),Do=a}else Do=536870912;return a=No.current,a!==null&&(a.flags|=32),Do}function ko(a,r,c){(a===On&&(wn===2||wn===9)||a.cancelPendingCommit!==null)&&($r(a,0),_s(a,$t,Do,!1)),lo(a,c),((dn&2)===0||a!==On)&&(a===On&&((dn&2)===0&&(Uc|=c),Un===4&&_s(a,$t,Do,!1)),Qr(a))}function r1(a,r,c){if((dn&6)!==0)throw Error(i(327));var p=!c&&(r&127)===0&&(r&a.expiredLanes)===0||oa(a,r),E=p?d1(a,r):Gh(a,r,!0),T=p;do{if(E===0){Mi&&!p&&_s(a,r,0,!1);break}else{if(c=a.current.alternate,T&&!s1(c)){E=Gh(a,r,!1),T=!1;continue}if(E===2){if(T=r,a.errorRecoveryDisabledLanes&T)var I=0;else I=a.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){r=I;e:{var ne=a;E=pm;var ye=ne.current.memoizedState.isDehydrated;if(ye&&($r(ne,I).flags|=256),I=Gh(ne,I,!1),I!==2){if(Lh&&!ye){ne.errorRecoveryDisabledLanes|=T,Uc|=T,E=4;break e}T=ta,ta=E,T!==null&&(ta===null?ta=T:ta.push.apply(ta,T))}E=I}if(T=!1,E!==2)continue}}if(E===1){$r(a,0),_s(a,r,0,!0);break}e:{switch(p=a,T=E,T){case 0:case 1:throw Error(i(345));case 4:if((r&4194048)!==r)break;case 6:_s(p,r,Do,!Xr);break e;case 2:ta=null;break;case 3:case 5:break;default:throw Error(i(329))}if((r&62914560)===r&&(E=or+300-$e(),10<E)){if(_s(p,r,Do,!Xr),it(p,0,!0)!==0)break e;Pr=r,p.timeoutHandle=Nm(gm.bind(null,p,c,ta,sd,Hh,r,Do,Uc,ea,Xr,T,"Throttled",-0,0),E);break e}gm(p,c,ta,sd,Hh,r,Do,Uc,ea,Xr,T,null,-0,0)}}break}while(!0);Qr(a)}function gm(a,r,c,p,E,T,I,ne,ye,_e,Ye,Xe,Ue,He){if(a.timeoutHandle=-1,Xe=r.subtreeFlags,Xe&8192||(Xe&16785408)===16785408){Xe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Hl},a1(r,T,Xe);var rt=(T&62914560)===T?or-$e():(T&4194048)===T?Fb-$e():0;if(rt=w0(Xe,rt),rt!==null){Pr=T,a.cancelPendingCommit=rt(h1.bind(null,a,r,T,c,p,E,I,ne,ye,Ye,Xe,null,Ue,He)),_s(a,T,I,!_e);return}}h1(a,r,T,c,p,E,I,ne,ye)}function s1(a){for(var r=a;;){var c=r.tag;if((c===0||c===11||c===15)&&r.flags&16384&&(c=r.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var p=0;p<c.length;p++){var E=c[p],T=E.getSnapshot;E=E.value;try{if(!so(T(),E))return!1}catch{return!1}}if(c=r.child,r.subtreeFlags&16384&&c!==null)c.return=r,r=c;else{if(r===a)break;for(;r.sibling===null;){if(r.return===null||r.return===a)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function _s(a,r,c,p){r&=~Vh,r&=~Uc,a.suspendedLanes|=r,a.pingedLanes&=~r,p&&(a.warmLanes|=r),p=a.expirationTimes;for(var E=r;0<E;){var T=31-xt(E),I=1<<T;p[T]=-1,E&=~I}c!==0&&pn(a,c,r)}function cd(){return(dn&6)===0?(Bs(0),!1):!0}function Wb(){if(Jt!==null){if(wn===0)var a=Jt.return;else a=Jt,Zl=Es=null,Zf(a),hi=null,Ec=0,a=Jt;for(;a!==null;)t1(a.alternate,a),a=a.return;Jt=null}}function $r(a,r){var c=a.timeoutHandle;c!==-1&&(a.timeoutHandle=-1,D1(c)),c=a.cancelPendingCommit,c!==null&&(a.cancelPendingCommit=null,c()),Pr=0,Wb(),On=a,Jt=c=ws(a.current,null),$t=r,wn=0,Ct=null,Xr=!1,Mi=oa(a,r),Lh=!1,ea=Do=Vh=Uc=ar=Un=0,ta=pm=null,Hh=!1,(r&8)!==0&&(r|=r&32);var p=a.entangledLanes;if(p!==0)for(a=a.entanglements,p&=r;0<p;){var E=31-xt(p),T=1<<E;r|=a[E],p&=~T}return nr=r,Ko(),c}function ud(a,r){Bt=null,Y.H=am,r===fi||r===Iu?(r=sb(),wn=3):r===wc?(r=sb(),wn=4):wn=r===Nh?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Ct=r,Jt===null&&(Un=1,Wu(a,Wo(r,a.current)))}function i1(){var a=No.current;return a===null?!0:($t&4194048)===$t?al===null:($t&62914560)===$t||($t&536870912)!==0?a===al:!1}function c1(){var a=Y.H;return Y.H=am,a===null?am:a}function u1(){var a=Y.A;return Y.A=o1,a}function qh(){Un=4,Xr||($t&4194048)!==$t&&No.current!==null||(Mi=!0),(ar&134217727)===0&&(Uc&134217727)===0||On===null||_s(On,$t,Do,!1)}function Gh(a,r,c){var p=dn;dn|=2;var E=c1(),T=u1();(On!==a||$t!==r)&&(sd=null,$r(a,r)),r=!1;var I=Un;e:do try{if(wn!==0&&Jt!==null){var ne=Jt,ye=Ct;switch(wn){case 8:Wb(),I=6;break e;case 3:case 2:case 9:case 6:No.current===null&&(r=!0);var _e=wn;if(wn=0,Ct=null,Bc(a,ne,ye,_e),c&&Mi){I=0;break e}break;default:_e=wn,wn=0,Ct=null,Bc(a,ne,ye,_e)}}HC(),I=Un;break}catch(Ye){ud(a,Ye)}while(!0);return r&&a.shellSuspendCounter++,Zl=Es=null,dn=p,Y.H=E,Y.A=T,Jt===null&&(On=null,$t=0,Ko()),I}function HC(){for(;Jt!==null;)f1(Jt)}function d1(a,r){var c=dn;dn|=2;var p=c1(),E=u1();On!==a||$t!==r?(sd=null,gn=$e()+500,$r(a,r)):Mi=oa(a,r);e:do try{if(wn!==0&&Jt!==null){r=Jt;var T=Ct;t:switch(wn){case 1:wn=0,Ct=null,Bc(a,r,T,1);break;case 2:case 9:if(lb(T)){wn=0,Ct=null,m1(r);break}r=function(){wn!==2&&wn!==9||On!==a||(wn=7),Qr(a)},T.then(r,r);break e;case 3:wn=7;break e;case 4:wn=5;break e;case 7:lb(T)?(wn=0,Ct=null,m1(r)):(wn=0,Ct=null,Bc(a,r,T,7));break;case 5:var I=null;switch(Jt.tag){case 26:I=Jt.memoizedState;case 5:case 27:var ne=Jt;if(I?Go(I):ne.stateNode.complete){wn=0,Ct=null;var ye=ne.sibling;if(ye!==null)Jt=ye;else{var _e=ne.return;_e!==null?(Jt=_e,ym(_e)):Jt=null}break t}}wn=0,Ct=null,Bc(a,r,T,5);break;case 6:wn=0,Ct=null,Bc(a,r,T,6);break;case 8:Wb(),Un=6;break e;default:throw Error(i(462))}}Oi();break}catch(Ye){ud(a,Ye)}while(!0);return Zl=Es=null,Y.H=p,Y.A=E,dn=c,Jt!==null?0:(On=null,$t=0,Ko(),Un)}function Oi(){for(;Jt!==null&&!Ie();)f1(Jt)}function f1(a){var r=Lb(a.alternate,a,nr);a.memoizedProps=a.pendingProps,r===null?ym(a):Jt=r}function m1(a){var r=a,c=r.alternate;switch(r.tag){case 15:case 0:r=Ei(c,r,r.pendingProps,r.type,void 0,$t);break;case 11:r=Ei(c,r,r.pendingProps,r.type.render,r.ref,$t);break;case 5:Zf(r);default:t1(c,r),r=Jt=Wy(r,nr),r=Lb(c,r,nr)}a.memoizedProps=a.pendingProps,r===null?ym(a):Jt=r}function Bc(a,r,c,p){Zl=Es=null,Zf(r),hi=null,Ec=0;var E=r.return;try{if(VC(a,E,r,c,$t)){Un=1,Wu(a,Wo(c,a.current)),Jt=null;return}}catch(T){if(E!==null)throw Jt=E,T;Un=1,Wu(a,Wo(c,a.current)),Jt=null;return}r.flags&32768?(Wt||p===1?a=!0:Mi||($t&536870912)!==0?a=!1:(Xr=a=!0,(p===2||p===9||p===3||p===6)&&(p=No.current,p!==null&&p.tag===13&&(p.flags|=16384))),p1(r,a)):ym(r)}function ym(a){var r=a;do{if((r.flags&32768)!==0){p1(r,Xr);return}a=r.return;var c=Jx(r.alternate,r,nr);if(c!==null){Jt=c;return}if(r=r.sibling,r!==null){Jt=r;return}Jt=r=a}while(r!==null);Un===0&&(Un=5)}function p1(a,r){do{var c=e1(a.alternate,a);if(c!==null){c.flags&=32767,Jt=c;return}if(c=a.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!r&&(a=a.sibling,a!==null)){Jt=a;return}Jt=a=c}while(a!==null);Un=6,Jt=null}function h1(a,r,c,p,E,T,I,ne,ye){a.cancelPendingCommit=null;do dd();while(Na!==0);if((dn&6)!==0)throw Error(i(327));if(r!==null){if(r===a.current)throw Error(i(177));if(T=r.lanes|r.childLanes,T|=El,Rt(a,c,T,I,ne,ye),a===On&&(Jt=On=null,$t=0),Ri=r,zs=a,Pr=c,Io=T,Ih=E,Yh=p,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,E1(Tt,function(){return x1(),null})):(a.callbackNode=null,a.callbackPriority=0),p=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||p){p=Y.T,Y.T=null,E=P.p,P.p=2,I=dn,dn|=4;try{ad(a,r,c)}finally{dn=I,P.p=E,Y.T=p}}Na=1,g1(),y1(),b1()}}function g1(){if(Na===1){Na=0;var a=zs,r=Ri,c=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||c){c=Y.T,Y.T=null;var p=P.p;P.p=2;var E=dn;dn|=4;try{Ah(r,a);var T=Jh,I=si(a.containerInfo),ne=T.focusedElem,ye=T.selectionRange;if(I!==ne&&ne&&ne.ownerDocument&&pc(ne.ownerDocument.documentElement,ne)){if(ye!==null&&Of(ne)){var _e=ye.start,Ye=ye.end;if(Ye===void 0&&(Ye=_e),"selectionStart"in ne)ne.selectionStart=_e,ne.selectionEnd=Math.min(Ye,ne.value.length);else{var Xe=ne.ownerDocument||document,Ue=Xe&&Xe.defaultView||window;if(Ue.getSelection){var He=Ue.getSelection(),rt=ne.textContent.length,St=Math.min(ye.start,rt),Dn=ye.end===void 0?St:Math.min(ye.end,rt);!He.extend&&St>Dn&&(I=Dn,Dn=St,St=I);var ke=Ky(ne,St),Ne=Ky(ne,Dn);if(ke&&Ne&&(He.rangeCount!==1||He.anchorNode!==ke.node||He.anchorOffset!==ke.offset||He.focusNode!==Ne.node||He.focusOffset!==Ne.offset)){var Ae=Xe.createRange();Ae.setStart(ke.node,ke.offset),He.removeAllRanges(),St>Dn?(He.addRange(Ae),He.extend(Ne.node,Ne.offset)):(Ae.setEnd(Ne.node,Ne.offset),He.addRange(Ae))}}}}for(Xe=[],He=ne;He=He.parentNode;)He.nodeType===1&&Xe.push({element:He,left:He.scrollLeft,top:He.scrollTop});for(typeof ne.focus=="function"&&ne.focus(),ne=0;ne<Xe.length;ne++){var Ge=Xe[ne];Ge.element.scrollLeft=Ge.left,Ge.element.scrollTop=Ge.top}}Ta=!!Wh,Jh=Wh=null}finally{dn=E,P.p=p,Y.T=c}}a.current=r,Na=2}}function y1(){if(Na===2){Na=0;var a=zs,r=Ri,c=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||c){c=Y.T,Y.T=null;var p=P.p;P.p=2;var E=dn;dn|=4;try{cm(a,r.alternate,r)}finally{dn=E,P.p=p,Y.T=c}}Na=3}}function b1(){if(Na===4||Na===3){Na=0,We();var a=zs,r=Ri,c=Pr,p=Yh;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Na=5:(Na=0,Ri=zs=null,v1(a,a.pendingLanes));var E=a.pendingLanes;if(E===0&&(Pn=null),Sr(c),r=r.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Wn,r,void 0,(r.current.flags&128)===128)}catch{}if(p!==null){r=Y.T,E=P.p,P.p=2,Y.T=null;try{for(var T=a.onRecoverableError,I=0;I<p.length;I++){var ne=p[I];T(ne.value,{componentStack:ne.stack})}}finally{Y.T=r,P.p=E}}(Pr&3)!==0&&dd(),Qr(a),E=a.pendingLanes,(c&261930)!==0&&(E&42)!==0?a===hm?id++:(id=0,hm=a):id=0,Bs(0)}}function v1(a,r){(a.pooledCacheLanes&=r)===0&&(r=a.pooledCache,r!=null&&(a.pooledCache=null,Vf(r)))}function dd(){return g1(),y1(),b1(),x1()}function x1(){if(Na!==5)return!1;var a=zs,r=Io;Io=0;var c=Sr(Pr),p=Y.T,E=P.p;try{P.p=32>c?32:c,Y.T=null,c=Ih,Ih=null;var T=zs,I=Pr;if(Na=0,Ri=zs=null,Pr=0,(dn&6)!==0)throw Error(i(331));var ne=dn;if(dn|=4,Zb(T.current),od(T,T.current,I,c),dn=ne,Bs(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Wn,T)}catch{}return!0}finally{P.p=E,Y.T=p,v1(a,r)}}function S1(a,r,c){r=Wo(c,r),r=Ob(a.stateNode,r,2),a=nl(a,r,2),a!==null&&(lo(a,2),Qr(a))}function Cn(a,r,c){if(a.tag===3)S1(a,a,c);else for(;r!==null;){if(r.tag===3){S1(r,a,c);break}else if(r.tag===1){var p=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Pn===null||!Pn.has(p))){a=Wo(c,a),c=jb(2),p=nl(r,c,2),p!==null&&(Db(c,p,r,a),lo(p,2),Qr(p));break}}r=r.return}}function bm(a,r,c){var p=a.pingCache;if(p===null){p=a.pingCache=new Kb;var E=new Set;p.set(r,E)}else E=p.get(r),E===void 0&&(E=new Set,p.set(r,E));E.has(c)||(Lh=!0,E.add(c),a=Jb.bind(null,a,r,c),r.then(a,a))}function Jb(a,r,c){var p=a.pingCache;p!==null&&p.delete(r),a.pingedLanes|=a.suspendedLanes&c,a.warmLanes&=~c,On===a&&($t&c)===c&&(Un===4||Un===3&&($t&62914560)===$t&&300>$e()-or?(dn&2)===0&&$r(a,0):Vh|=c,ea===$t&&(ea=0)),Qr(a)}function w1(a,r){r===0&&(r=oo()),a=Ss(a,r),a!==null&&(lo(a,r),Qr(a))}function il(a){var r=a.memoizedState,c=0;r!==null&&(c=r.retryLane),w1(a,c)}function C1(a,r){var c=0;switch(a.tag){case 31:case 13:var p=a.stateNode,E=a.memoizedState;E!==null&&(c=E.retryLane);break;case 19:p=a.stateNode;break;case 22:p=a.stateNode._retryCache;break;default:throw Error(i(314))}p!==null&&p.delete(r),w1(a,c)}function E1(a,r){return Re(a,r)}var fd=null,Lc=null,e0=!1,Xh=!1,t0=!1,Us=0;function Qr(a){a!==Lc&&a.next===null&&(Lc===null?fd=Lc=a:Lc=Lc.next=a),Xh=!0,e0||(e0=!0,xm())}function Bs(a,r){if(!t0&&Xh){t0=!0;do for(var c=!1,p=fd;p!==null;){if(a!==0){var E=p.pendingLanes;if(E===0)var T=0;else{var I=p.suspendedLanes,ne=p.pingedLanes;T=(1<<31-xt(42|a)+1)-1,T&=E&~(I&~ne),T=T&201326741?T&201326741|1:T?T|2:0}T!==0&&(c=!0,Vc(p,T))}else T=$t,T=it(p,p===On?T:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(T&3)===0||oa(p,T)||(c=!0,Vc(p,T));p=p.next}while(c);t0=!1}}function Ph(){n0()}function n0(){Xh=e0=!1;var a=0;Us!==0&&IC()&&(a=Us);for(var r=$e(),c=null,p=fd;p!==null;){var E=p.next,T=a0(p,r);T===0?(p.next=null,c===null?fd=E:c.next=E,E===null&&(Lc=c)):(c=p,(a!==0||(T&3)!==0)&&(Xh=!0)),p=E}Na!==0&&Na!==5||Bs(a),Us!==0&&(Us=0)}function a0(a,r){for(var c=a.suspendedLanes,p=a.pingedLanes,E=a.expirationTimes,T=a.pendingLanes&-62914561;0<T;){var I=31-xt(T),ne=1<<I,ye=E[I];ye===-1?((ne&c)===0||(ne&p)!==0)&&(E[I]=yo(ne,r)):ye<=r&&(a.expiredLanes|=ne),T&=~ne}if(r=On,c=$t,c=it(a,a===r?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),p=a.callbackNode,c===0||a===r&&(wn===2||wn===9)||a.cancelPendingCommit!==null)return p!==null&&p!==null&&De(p),a.callbackNode=null,a.callbackPriority=0;if((c&3)===0||oa(a,c)){if(r=c&-c,r===a.callbackPriority)return r;switch(p!==null&&De(p),Sr(c)){case 2:case 8:c=ln;break;case 32:c=Tt;break;case 268435456:c=Kt;break;default:c=Tt}return p=vm.bind(null,a),c=Re(c,p),a.callbackPriority=r,a.callbackNode=c,r}return p!==null&&p!==null&&De(p),a.callbackPriority=2,a.callbackNode=null,2}function vm(a,r){if(Na!==0&&Na!==5)return a.callbackNode=null,a.callbackPriority=0,null;var c=a.callbackNode;if(dd()&&a.callbackNode!==c)return null;var p=$t;return p=it(a,a===On?p:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),p===0?null:(r1(a,p,r),a0(a,$e()),a.callbackNode!=null&&a.callbackNode===c?vm.bind(null,a):null)}function Vc(a,r){if(dd())return null;r1(a,r,!0)}function xm(){k1(function(){(dn&6)!==0?Re(nn,Ph):n0()})}function $h(){if(Us===0){var a=di;a===0&&(a=lt,lt<<=1,(lt&261888)===0&&(lt=256)),Us=a}return Us}function N1(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:xl(""+a)}function Hc(a,r){var c=r.ownerDocument.createElement("input");return c.name=r.name,c.value=r.value,a.id&&c.setAttribute("form",a.id),r.parentNode.insertBefore(c,r),a=new FormData(a),c.parentNode.removeChild(c),a}function Sm(a,r,c,p,E){if(r==="submit"&&c&&c.stateNode===E){var T=N1((E[vo]||null).action),I=p.submitter;I&&(r=(r=I[vo]||null)?N1(r.formAction):I.getAttribute("formAction"),r!==null&&(T=r,I=null));var ne=new Tf("action","action",null,p,E);a.push({event:ne,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Us!==0){var ye=I?Hc(E,I):new FormData(E);Ku(c,{pending:!0,data:ye,method:E.method,action:T},null,ye)}}else typeof T=="function"&&(ne.preventDefault(),ye=I?Hc(E,I):new FormData(E),Ku(c,{pending:!0,data:ye,method:E.method,action:T},T,ye))},currentTarget:E}]})}}for(var Qh=0;Qh<_u.length;Qh++){var md=_u[Qh],o0=md.toLowerCase(),l0=md[0].toUpperCase()+md.slice(1);So(o0,"on"+l0)}So(Df,"onAnimationEnd"),So(Fy,"onAnimationIteration"),So(Qp,"onAnimationStart"),So("dblclick","onDoubleClick"),So("focusin","onFocus"),So("focusout","onBlur"),So(hc,"onTransitionRun"),So(kf,"onTransitionStart"),So(Rr,"onTransitionCancel"),So(Ux,"onTransitionEnd"),Cr("onMouseEnter",["mouseout","mouseover"]),Cr("onMouseLeave",["mouseout","mouseover"]),Cr("onPointerEnter",["pointerout","pointerover"]),Cr("onPointerLeave",["pointerout","pointerover"]),ni("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ni("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ni("onBeforeInput",["compositionend","keypress","textInput","paste"]),ni("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ni("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ni("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),T1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pd));function M1(a,r){r=(r&4)!==0;for(var c=0;c<a.length;c++){var p=a[c],E=p.event;p=p.listeners;e:{var T=void 0;if(r)for(var I=p.length-1;0<=I;I--){var ne=p[I],ye=ne.instance,_e=ne.currentTarget;if(ne=ne.listener,ye!==T&&E.isPropagationStopped())break e;T=ne,E.currentTarget=_e;try{T(E)}catch(Ye){gc(Ye)}E.currentTarget=null,T=ye}else for(I=0;I<p.length;I++){if(ne=p[I],ye=ne.instance,_e=ne.currentTarget,ne=ne.listener,ye!==T&&E.isPropagationStopped())break e;T=ne,E.currentTarget=_e;try{T(E)}catch(Ye){gc(Ye)}E.currentTarget=null,T=ye}}}}function Zt(a,r){var c=r[Mp];c===void 0&&(c=r[Mp]=new Set);var p=a+"__bubble";c.has(p)||(wm(r,a,2,!1),c.add(p))}function r0(a,r,c){var p=0;r&&(p|=4),wm(c,a,p,r)}var Zh="_reactListening"+Math.random().toString(36).slice(2);function hd(a){if(!a[Zh]){a[Zh]=!0,oc.forEach(function(c){c!=="selectionchange"&&(T1.has(c)||r0(c,!1,a),r0(c,!0,a))});var r=a.nodeType===9?a:a.ownerDocument;r===null||r[Zh]||(r[Zh]=!0,r0("selectionchange",!1,r))}}function wm(a,r,c,p){switch(Dm(r)){case 2:var E=Kr;break;case 8:E=Fr;break;default:E=Wa}c=E.bind(null,r,c,a),E=void 0,!Ef||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(E=!0),p?E!==void 0?a.addEventListener(r,c,{capture:!0,passive:E}):a.addEventListener(r,c,!0):E!==void 0?a.addEventListener(r,c,{passive:E}):a.addEventListener(r,c,!1)}function s0(a,r,c,p,E){var T=p;if((r&1)===0&&(r&2)===0&&p!==null)e:for(;;){if(p===null)return;var I=p.tag;if(I===3||I===4){var ne=p.stateNode.containerInfo;if(ne===E)break;if(I===4)for(I=p.return;I!==null;){var ye=I.tag;if((ye===3||ye===4)&&I.stateNode.containerInfo===E)return;I=I.return}for(;ne!==null;){if(I=tc(ne),I===null)return;if(ye=I.tag,ye===5||ye===6||ye===26||ye===27){p=T=I;continue e}ne=ne.parentNode}}p=p.return}Ay(function(){var _e=T,Ye=_p(c),Xe=[];e:{var Ue=Or.get(a);if(Ue!==void 0){var He=Tf,rt=a;switch(a){case"keypress":if(Bp(c)===0)break e;case"keydown":case"keyup":He=Ip;break;case"focusin":rt="focus",He=Vp;break;case"focusout":rt="blur",He=Vp;break;case"beforeblur":case"afterblur":He=Vp;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":He=ju;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":He=Ex;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":He=Ox;break;case Df:case Fy:case Qp:He=Tx;break;case Ux:He=_C;break;case"scroll":case"scrollend":He=AC;break;case"wheel":He=UC;break;case"copy":case"cut":case"paste":He=ic;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":He=ql;break;case"toggle":case"beforetoggle":He=Yy}var St=(r&4)!==0,Dn=!St&&(a==="scroll"||a==="scrollend"),ke=St?Ue!==null?Ue+"Capture":null:Ue;St=[];for(var Ne=_e,Ae;Ne!==null;){var Ge=Ne;if(Ae=Ge.stateNode,Ge=Ge.tag,Ge!==5&&Ge!==26&&Ge!==27||Ae===null||ke===null||(Ge=Da(Ne,ke),Ge!=null&&St.push(Cm(Ne,Ge,Ae))),Dn)break;Ne=Ne.return}0<St.length&&(Ue=new He(Ue,rt,null,c,Ye),Xe.push({event:Ue,listeners:St}))}}if((r&7)===0){e:{if(Ue=a==="mouseover"||a==="pointerover",He=a==="mouseout"||a==="pointerout",Ue&&c!==zp&&(rt=c.relatedTarget||c.fromElement)&&(tc(rt)||rt[ei]))break e;if((He||Ue)&&(Ue=Ye.window===Ye?Ye:(Ue=Ye.ownerDocument)?Ue.defaultView||Ue.parentWindow:window,He?(rt=c.relatedTarget||c.toElement,He=_e,rt=rt?tc(rt):null,rt!==null&&(Dn=f(rt),St=rt.tag,rt!==Dn||St!==5&&St!==27&&St!==6)&&(rt=null)):(He=null,rt=_e),He!==rt)){if(St=ju,Ge="onMouseLeave",ke="onMouseEnter",Ne="mouse",(a==="pointerout"||a==="pointerover")&&(St=ql,Ge="onPointerLeave",ke="onPointerEnter",Ne="pointer"),Dn=He==null?Ue:wu(He),Ae=rt==null?Ue:wu(rt),Ue=new St(Ge,Ne+"leave",He,c,Ye),Ue.target=Dn,Ue.relatedTarget=Ae,Ge=null,tc(Ye)===_e&&(St=new St(ke,Ne+"enter",rt,c,Ye),St.target=Ae,St.relatedTarget=Dn,Ge=St),Dn=Ge,He&&rt)t:{for(St=R1,ke=He,Ne=rt,Ae=0,Ge=ke;Ge;Ge=St(Ge))Ae++;Ge=0;for(var pt=Ne;pt;pt=St(pt))Ge++;for(;0<Ae-Ge;)ke=St(ke),Ae--;for(;0<Ge-Ae;)Ne=St(Ne),Ge--;for(;Ae--;){if(ke===Ne||Ne!==null&&ke===Ne.alternate){St=ke;break t}ke=St(ke),Ne=St(Ne)}St=null}else St=null;He!==null&&Kh(Xe,Ue,He,St,!1),rt!==null&&Dn!==null&&Kh(Xe,Dn,rt,St,!0)}}e:{if(Ue=_e?wu(_e):window,He=Ue.nodeName&&Ue.nodeName.toLowerCase(),He==="select"||He==="input"&&Ue.type==="file")var cn=$y;else if(Mr(Ue))if(Gp)cn=mc;else{cn=zx;var ut=Ax}else He=Ue.nodeName,!He||He.toLowerCase()!=="input"||Ue.type!=="checkbox"&&Ue.type!=="radio"?_e&&ky(_e.elementType)&&(cn=$y):cn=ri;if(cn&&(cn=cn(a,_e))){Py(Xe,cn,c,Ye);break e}ut&&ut(a,Ue,_e),a==="focusout"&&_e&&Ue.type==="number"&&_e.memoizedProps.value!=null&&lc(Ue,"number",Ue.value)}switch(ut=_e?wu(_e):window,a){case"focusin":(Mr(ut)||ut.contentEditable==="true")&&(ii=ut,Au=_e,Cl=null);break;case"focusout":Cl=Au=ii=null;break;case"mousedown":Xl=!0;break;case"contextmenu":case"mouseup":case"dragend":Xl=!1,$p(Xe,c,Ye);break;case"selectionchange":if(jf)break;case"keydown":case"keyup":$p(Xe,c,Ye)}var _t;if(Du)e:{switch(a){case"compositionstart":var Ht="onCompositionStart";break e;case"compositionend":Ht="onCompositionEnd";break e;case"compositionupdate":Ht="onCompositionUpdate";break e}Ht=void 0}else uc?qp(a,c)&&(Ht="onCompositionEnd"):a==="keydown"&&c.keyCode===229&&(Ht="onCompositionStart");Ht&&(qy&&c.locale!=="ko"&&(uc||Ht!=="onCompositionStart"?Ht==="onCompositionEnd"&&uc&&(_t=_y()):(vs=Ye,zy="value"in vs?vs.value:vs.textContent,uc=!0)),ut=Em(_e,Ht),0<ut.length&&(Ht=new Mx(Ht,a,null,c,Ye),Xe.push({event:Ht,listeners:ut}),_t?Ht.data=_t:(_t=Gy(c),_t!==null&&(Ht.data=_t)))),(_t=ro?kx(a,c):BC(a,c))&&(Ht=Em(_e,"onBeforeInput"),0<Ht.length&&(ut=new Mx("onBeforeInput","beforeinput",null,c,Ye),Xe.push({event:ut,listeners:Ht}),ut.data=_t)),Sm(Xe,a,_e,c,Ye)}M1(Xe,r)})}function Cm(a,r,c){return{instance:a,listener:r,currentTarget:c}}function Em(a,r){for(var c=r+"Capture",p=[];a!==null;){var E=a,T=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||T===null||(E=Da(a,c),E!=null&&p.unshift(Cm(a,E,T)),E=Da(a,r),E!=null&&p.push(Cm(a,E,T))),a.tag===3)return p;a=a.return}return[]}function R1(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function Kh(a,r,c,p,E){for(var T=r._reactName,I=[];c!==null&&c!==p;){var ne=c,ye=ne.alternate,_e=ne.stateNode;if(ne=ne.tag,ye!==null&&ye===p)break;ne!==5&&ne!==26&&ne!==27||_e===null||(ye=_e,E?(_e=Da(c,T),_e!=null&&I.unshift(Cm(c,_e,ye))):E||(_e=Da(c,T),_e!=null&&I.push(Cm(c,_e,ye)))),c=c.return}I.length!==0&&a.push({event:r,listeners:I})}var O1=/\r\n?/g,i0=/\u0000|\uFFFD/g;function c0(a){return(typeof a=="string"?a:""+a).replace(O1,`
|
|
31
|
+
`).replace(i0,"")}function u0(a,r){return r=c0(r),c0(a)===r}function jn(a,r,c,p,E,T){switch(c){case"children":typeof p=="string"?r==="body"||r==="textarea"&&p===""||Er(a,p):(typeof p=="number"||typeof p=="bigint")&&r!=="body"&&Er(a,""+p);break;case"className":Dp(a,"class",p);break;case"tabIndex":Dp(a,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":Dp(a,c,p);break;case"style":Sx(a,p,T);break;case"data":if(r!=="object"){Dp(a,"data",p);break}case"src":case"href":if(p===""&&(r!=="a"||c!=="href")){a.removeAttribute(c);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(c);break}p=xl(""+p),a.setAttribute(c,p);break;case"action":case"formAction":if(typeof p=="function"){a.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof T=="function"&&(c==="formAction"?(r!=="input"&&jn(a,r,"name",E.name,E,null),jn(a,r,"formEncType",E.formEncType,E,null),jn(a,r,"formMethod",E.formMethod,E,null),jn(a,r,"formTarget",E.formTarget,E,null)):(jn(a,r,"encType",E.encType,E,null),jn(a,r,"method",E.method,E,null),jn(a,r,"target",E.target,E,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(c);break}p=xl(""+p),a.setAttribute(c,p);break;case"onClick":p!=null&&(a.onclick=Hl);break;case"onScroll":p!=null&&Zt("scroll",a);break;case"onScrollEnd":p!=null&&Zt("scrollend",a);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(i(61));if(c=p.__html,c!=null){if(E.children!=null)throw Error(i(60));a.innerHTML=c}}break;case"multiple":a.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":a.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){a.removeAttribute("xlink:href");break}c=xl(""+p),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(c,""+p):a.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(c,""):a.removeAttribute(c);break;case"capture":case"download":p===!0?a.setAttribute(c,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(c,p):a.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?a.setAttribute(c,p):a.removeAttribute(c);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?a.removeAttribute(c):a.setAttribute(c,p);break;case"popover":Zt("beforetoggle",a),Zt("toggle",a),Nu(a,"popover",p);break;case"xlinkActuate":ys(a,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":ys(a,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":ys(a,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":ys(a,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":ys(a,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":ys(a,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":ys(a,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":ys(a,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":ys(a,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Nu(a,"is",p);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=kC.get(c)||c,Nu(a,c,p))}}function d0(a,r,c,p,E,T){switch(c){case"style":Sx(a,p,T);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(i(61));if(c=p.__html,c!=null){if(E.children!=null)throw Error(i(60));a.innerHTML=c}}break;case"children":typeof p=="string"?Er(a,p):(typeof p=="number"||typeof p=="bigint")&&Er(a,""+p);break;case"onScroll":p!=null&&Zt("scroll",a);break;case"onScrollEnd":p!=null&&Zt("scrollend",a);break;case"onClick":p!=null&&(a.onclick=Hl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ti.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(E=c.endsWith("Capture"),r=c.slice(2,E?c.length-7:void 0),T=a[vo]||null,T=T!=null?T[c]:null,typeof T=="function"&&a.removeEventListener(r,T,E),typeof p=="function")){typeof T!="function"&&T!==null&&(c in a?a[c]=null:a.hasAttribute(c)&&a.removeAttribute(c)),a.addEventListener(r,p,E);break e}c in a?a[c]=p:p===!0?a.setAttribute(c,""):Nu(a,c,p)}}}function Fa(a,r,c){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Zt("error",a),Zt("load",a);var p=!1,E=!1,T;for(T in c)if(c.hasOwnProperty(T)){var I=c[T];if(I!=null)switch(T){case"src":p=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:jn(a,r,T,I,c,null)}}E&&jn(a,r,"srcSet",c.srcSet,c,null),p&&jn(a,r,"src",c.src,c,null);return;case"input":Zt("invalid",a);var ne=T=I=E=null,ye=null,_e=null;for(p in c)if(c.hasOwnProperty(p)){var Ye=c[p];if(Ye!=null)switch(p){case"name":E=Ye;break;case"type":I=Ye;break;case"checked":ye=Ye;break;case"defaultChecked":_e=Ye;break;case"value":T=Ye;break;case"defaultValue":ne=Ye;break;case"children":case"dangerouslySetInnerHTML":if(Ye!=null)throw Error(i(137,r));break;default:jn(a,r,p,Ye,c,null)}}Sf(a,T,ne,ye,_e,I,E,!1);return;case"select":Zt("invalid",a),p=I=T=null;for(E in c)if(c.hasOwnProperty(E)&&(ne=c[E],ne!=null))switch(E){case"value":T=ne;break;case"defaultValue":I=ne;break;case"multiple":p=ne;default:jn(a,r,E,ne,c,null)}r=T,c=I,a.multiple=!!p,r!=null?Tu(a,!!p,r,!1):c!=null&&Tu(a,!!p,c,!0);return;case"textarea":Zt("invalid",a),T=E=p=null;for(I in c)if(c.hasOwnProperty(I)&&(ne=c[I],ne!=null))switch(I){case"value":p=ne;break;case"defaultValue":E=ne;break;case"children":T=ne;break;case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(91));break;default:jn(a,r,I,ne,c,null)}Dy(a,p,E,T);return;case"option":for(ye in c)c.hasOwnProperty(ye)&&(p=c[ye],p!=null)&&(ye==="selected"?a.selected=p&&typeof p!="function"&&typeof p!="symbol":jn(a,r,ye,p,c,null));return;case"dialog":Zt("beforetoggle",a),Zt("toggle",a),Zt("cancel",a),Zt("close",a);break;case"iframe":case"object":Zt("load",a);break;case"video":case"audio":for(p=0;p<pd.length;p++)Zt(pd[p],a);break;case"image":Zt("error",a),Zt("load",a);break;case"details":Zt("toggle",a);break;case"embed":case"source":case"link":Zt("error",a),Zt("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_e in c)if(c.hasOwnProperty(_e)&&(p=c[_e],p!=null))switch(_e){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:jn(a,r,_e,p,c,null)}return;default:if(ky(r)){for(Ye in c)c.hasOwnProperty(Ye)&&(p=c[Ye],p!==void 0&&d0(a,r,Ye,p,c,void 0));return}}for(ne in c)c.hasOwnProperty(ne)&&(p=c[ne],p!=null&&jn(a,r,ne,p,c,null))}function f0(a,r,c,p){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,T=null,I=null,ne=null,ye=null,_e=null,Ye=null;for(He in c){var Xe=c[He];if(c.hasOwnProperty(He)&&Xe!=null)switch(He){case"checked":break;case"value":break;case"defaultValue":ye=Xe;default:p.hasOwnProperty(He)||jn(a,r,He,null,p,Xe)}}for(var Ue in p){var He=p[Ue];if(Xe=c[Ue],p.hasOwnProperty(Ue)&&(He!=null||Xe!=null))switch(Ue){case"type":T=He;break;case"name":E=He;break;case"checked":_e=He;break;case"defaultChecked":Ye=He;break;case"value":I=He;break;case"defaultValue":ne=He;break;case"children":case"dangerouslySetInnerHTML":if(He!=null)throw Error(i(137,r));break;default:He!==Xe&&jn(a,r,Ue,He,p,Xe)}}xf(a,I,ne,ye,_e,Ye,T,E);return;case"select":He=I=ne=Ue=null;for(T in c)if(ye=c[T],c.hasOwnProperty(T)&&ye!=null)switch(T){case"value":break;case"multiple":He=ye;default:p.hasOwnProperty(T)||jn(a,r,T,null,p,ye)}for(E in p)if(T=p[E],ye=c[E],p.hasOwnProperty(E)&&(T!=null||ye!=null))switch(E){case"value":Ue=T;break;case"defaultValue":ne=T;break;case"multiple":I=T;default:T!==ye&&jn(a,r,E,T,p,ye)}r=ne,c=I,p=He,Ue!=null?Tu(a,!!c,Ue,!1):!!p!=!!c&&(r!=null?Tu(a,!!c,r,!0):Tu(a,!!c,c?[]:"",!1));return;case"textarea":He=Ue=null;for(ne in c)if(E=c[ne],c.hasOwnProperty(ne)&&E!=null&&!p.hasOwnProperty(ne))switch(ne){case"value":break;case"children":break;default:jn(a,r,ne,null,p,E)}for(I in p)if(E=p[I],T=c[I],p.hasOwnProperty(I)&&(E!=null||T!=null))switch(I){case"value":Ue=E;break;case"defaultValue":He=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(i(91));break;default:E!==T&&jn(a,r,I,E,p,T)}jy(a,Ue,He);return;case"option":for(var rt in c)Ue=c[rt],c.hasOwnProperty(rt)&&Ue!=null&&!p.hasOwnProperty(rt)&&(rt==="selected"?a.selected=!1:jn(a,r,rt,null,p,Ue));for(ye in p)Ue=p[ye],He=c[ye],p.hasOwnProperty(ye)&&Ue!==He&&(Ue!=null||He!=null)&&(ye==="selected"?a.selected=Ue&&typeof Ue!="function"&&typeof Ue!="symbol":jn(a,r,ye,Ue,p,He));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var St in c)Ue=c[St],c.hasOwnProperty(St)&&Ue!=null&&!p.hasOwnProperty(St)&&jn(a,r,St,null,p,Ue);for(_e in p)if(Ue=p[_e],He=c[_e],p.hasOwnProperty(_e)&&Ue!==He&&(Ue!=null||He!=null))switch(_e){case"children":case"dangerouslySetInnerHTML":if(Ue!=null)throw Error(i(137,r));break;default:jn(a,r,_e,Ue,p,He)}return;default:if(ky(r)){for(var Dn in c)Ue=c[Dn],c.hasOwnProperty(Dn)&&Ue!==void 0&&!p.hasOwnProperty(Dn)&&d0(a,r,Dn,void 0,p,Ue);for(Ye in p)Ue=p[Ye],He=c[Ye],!p.hasOwnProperty(Ye)||Ue===He||Ue===void 0&&He===void 0||d0(a,r,Ye,Ue,p,He);return}}for(var ke in c)Ue=c[ke],c.hasOwnProperty(ke)&&Ue!=null&&!p.hasOwnProperty(ke)&&jn(a,r,ke,null,p,Ue);for(Xe in p)Ue=p[Xe],He=c[Xe],!p.hasOwnProperty(Xe)||Ue===He||Ue==null&&He==null||jn(a,r,Xe,Ue,p,He)}function Fh(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function m0(){if(typeof performance.getEntriesByType=="function"){for(var a=0,r=0,c=performance.getEntriesByType("resource"),p=0;p<c.length;p++){var E=c[p],T=E.transferSize,I=E.initiatorType,ne=E.duration;if(T&&ne&&Fh(I)){for(I=0,ne=E.responseEnd,p+=1;p<c.length;p++){var ye=c[p],_e=ye.startTime;if(_e>ne)break;var Ye=ye.transferSize,Xe=ye.initiatorType;Ye&&Fh(Xe)&&(ye=ye.responseEnd,I+=Ye*(ye<ne?1:(ne-_e)/(ye-_e)))}if(--p,r+=8*(T+I)/(E.duration/1e3),a++,10<a)break}}if(0<a)return r/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var Wh=null,Jh=null;function ji(a){return a.nodeType===9?a:a.ownerDocument}function j1(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function p0(a,r){if(a===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&r==="foreignObject"?0:a}function gd(a,r){return a==="textarea"||a==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var eg=null;function IC(){var a=window.event;return a&&a.type==="popstate"?a===eg?!1:(eg=a,!0):(eg=null,!1)}var Nm=typeof setTimeout=="function"?setTimeout:void 0,D1=typeof clearTimeout=="function"?clearTimeout:void 0,Ic=typeof Promise=="function"?Promise:void 0,k1=typeof queueMicrotask=="function"?queueMicrotask:typeof Ic<"u"?function(a){return Ic.resolve(null).then(a).catch(h0)}:Nm;function h0(a){setTimeout(function(){throw a})}function lr(a){return a==="head"}function g0(a,r){var c=r,p=0;do{var E=c.nextSibling;if(a.removeChild(c),E&&E.nodeType===8)if(c=E.data,c==="/$"||c==="/&"){if(p===0){a.removeChild(E),Rd(r);return}p--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")p++;else if(c==="html")Yc(a.ownerDocument.documentElement);else if(c==="head"){c=a.ownerDocument.head,Yc(c);for(var T=c.firstChild;T;){var I=T.nextSibling,ne=T.nodeName;T[wr]||ne==="SCRIPT"||ne==="STYLE"||ne==="LINK"&&T.rel.toLowerCase()==="stylesheet"||c.removeChild(T),T=I}}else c==="body"&&Yc(a.ownerDocument.body);c=E}while(c);Rd(r)}function pa(a,r){var c=a;a=0;do{var p=c.nextSibling;if(c.nodeType===1?r?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(r?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),p&&p.nodeType===8)if(c=p.data,c==="/$"){if(a===0)break;a--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||a++;c=p}while(c)}function Tm(a){var r=a.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var c=r;switch(r=r.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Tm(c),Rp(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}a.removeChild(c)}}function YC(a,r,c,p){for(;a.nodeType===1;){var E=c;if(a.nodeName.toLowerCase()!==r.toLowerCase()){if(!p&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(p){if(!a[wr])switch(r){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(T=a.getAttribute("rel"),T==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(T!==E.rel||a.getAttribute("href")!==(E.href==null||E.href===""?null:E.href)||a.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||a.getAttribute("title")!==(E.title==null?null:E.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(T=a.getAttribute("src"),(T!==(E.src==null?null:E.src)||a.getAttribute("type")!==(E.type==null?null:E.type)||a.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&T&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(r==="input"&&a.type==="hidden"){var T=E.name==null?null:""+E.name;if(E.type==="hidden"&&a.getAttribute("name")===T)return a}else return a;if(a=Ao(a.nextSibling),a===null)break}return null}function qt(a,r,c){if(r==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!c||(a=Ao(a.nextSibling),a===null))return null;return a}function A1(a,r){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!r||(a=Ao(a.nextSibling),a===null))return null;return a}function Dl(a){return a.data==="$?"||a.data==="$~"}function Di(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function yd(a,r){var c=a.ownerDocument;if(a.data==="$~")a._reactRetry=r;else if(a.data!=="$?"||c.readyState!=="loading")r();else{var p=function(){r(),c.removeEventListener("DOMContentLoaded",p)};c.addEventListener("DOMContentLoaded",p),a._reactRetry=p}}function Ao(a){for(;a!=null;a=a.nextSibling){var r=a.nodeType;if(r===1||r===3)break;if(r===8){if(r=a.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return a}var Mm=null;function tg(a){a=a.nextSibling;for(var r=0;a;){if(a.nodeType===8){var c=a.data;if(c==="/$"||c==="/&"){if(r===0)return Ao(a.nextSibling);r--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||r++}a=a.nextSibling}return null}function rr(a){a=a.previousSibling;for(var r=0;a;){if(a.nodeType===8){var c=a.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(r===0)return a;r--}else c!=="/$"&&c!=="/&"||r++}a=a.previousSibling}return null}function bd(a,r,c){switch(r=ji(c),a){case"html":if(a=r.documentElement,!a)throw Error(i(452));return a;case"head":if(a=r.head,!a)throw Error(i(453));return a;case"body":if(a=r.body,!a)throw Error(i(454));return a;default:throw Error(i(451))}}function Yc(a){for(var r=a.attributes;r.length;)a.removeAttributeNode(r[0]);Rp(a)}var qo=new Map,Rm=new Set;function co(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var sr=P.d;P.d={f:qC,r:z1,D:Ve,C:yn,L:GC,m:y0,X:Ls,S:b0,M:ki};function qC(){var a=sr.f(),r=cd();return a||r}function z1(a){var r=nc(a);r!==null&&r.tag===5&&r.type==="form"?Rn(r):sr.r(a)}var vd=typeof document>"u"?null:document;function xa(a,r,c){var p=vd;if(p&&typeof r=="string"&&r){var E=Zo(r);E='link[rel="'+a+'"][href="'+E+'"]',typeof c=="string"&&(E+='[crossorigin="'+c+'"]'),Rm.has(E)||(Rm.add(E),a={rel:a,crossOrigin:c,href:r},p.querySelector(E)===null&&(r=p.createElement("link"),Fa(r,"link",a),vn(r),p.head.appendChild(r)))}}function Ve(a){sr.D(a),xa("dns-prefetch",a,null)}function yn(a,r){sr.C(a,r),xa("preconnect",a,r)}function GC(a,r,c){sr.L(a,r,c);var p=vd;if(p&&a&&r){var E='link[rel="preload"][as="'+Zo(r)+'"]';r==="image"&&c&&c.imageSrcSet?(E+='[imagesrcset="'+Zo(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(E+='[imagesizes="'+Zo(c.imageSizes)+'"]')):E+='[href="'+Zo(a)+'"]';var T=E;switch(r){case"style":T=cl(a);break;case"script":T=qc(a)}qo.has(T)||(a=w({rel:"preload",href:r==="image"&&c&&c.imageSrcSet?void 0:a,as:r},c),qo.set(T,a),p.querySelector(E)!==null||r==="style"&&p.querySelector(Ai(T))||r==="script"&&p.querySelector(wd(T))||(r=p.createElement("link"),Fa(r,"link",a),vn(r),p.head.appendChild(r)))}}function y0(a,r){sr.m(a,r);var c=vd;if(c&&a){var p=r&&typeof r.as=="string"?r.as:"script",E='link[rel="modulepreload"][as="'+Zo(p)+'"][href="'+Zo(a)+'"]',T=E;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":T=qc(a)}if(!qo.has(T)&&(a=w({rel:"modulepreload",href:a},r),qo.set(T,a),c.querySelector(E)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(wd(T)))return}p=c.createElement("link"),Fa(p,"link",a),vn(p),c.head.appendChild(p)}}}function b0(a,r,c){sr.S(a,r,c);var p=vd;if(p&&a){var E=ac(p).hoistableStyles,T=cl(a);r=r||"default";var I=E.get(T);if(!I){var ne={loading:0,preload:null};if(I=p.querySelector(Ai(T)))ne.loading=5;else{a=w({rel:"stylesheet",href:a,"data-precedence":r},c),(c=qo.get(T))&&ng(a,c);var ye=I=p.createElement("link");vn(ye),Fa(ye,"link",a),ye._p=new Promise(function(_e,Ye){ye.onload=_e,ye.onerror=Ye}),ye.addEventListener("load",function(){ne.loading|=1}),ye.addEventListener("error",function(){ne.loading|=2}),ne.loading|=4,Om(I,r,p)}I={type:"stylesheet",instance:I,count:1,state:ne},E.set(T,I)}}}function Ls(a,r){sr.X(a,r);var c=vd;if(c&&a){var p=ac(c).hoistableScripts,E=qc(a),T=p.get(E);T||(T=c.querySelector(wd(E)),T||(a=w({src:a,async:!0},r),(r=qo.get(E))&&ag(a,r),T=c.createElement("script"),vn(T),Fa(T,"link",a),c.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},p.set(E,T))}}function ki(a,r){sr.M(a,r);var c=vd;if(c&&a){var p=ac(c).hoistableScripts,E=qc(a),T=p.get(E);T||(T=c.querySelector(wd(E)),T||(a=w({src:a,async:!0,type:"module"},r),(r=qo.get(E))&&ag(a,r),T=c.createElement("script"),vn(T),Fa(T,"link",a),c.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},p.set(E,T))}}function xd(a,r,c,p){var E=(E=le.current)?co(E):null;if(!E)throw Error(i(446));switch(a){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(r=cl(c.href),c=ac(E).hoistableStyles,p=c.get(r),p||(p={type:"style",instance:null,count:0,state:null},c.set(r,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){a=cl(c.href);var T=ac(E).hoistableStyles,I=T.get(a);if(I||(E=E.ownerDocument||E,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},T.set(a,I),(T=E.querySelector(Ai(a)))&&!T._p&&(I.instance=T,I.state.loading=5),qo.has(a)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},qo.set(a,c),T||_1(E,a,c,I.state))),r&&p===null)throw Error(i(528,""));return I}if(r&&p!==null)throw Error(i(529,""));return null;case"script":return r=c.async,c=c.src,typeof c=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=qc(c),c=ac(E).hoistableScripts,p=c.get(r),p||(p={type:"script",instance:null,count:0,state:null},c.set(r,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,a))}}function cl(a){return'href="'+Zo(a)+'"'}function Ai(a){return'link[rel="stylesheet"]['+a+"]"}function Sd(a){return w({},a,{"data-precedence":a.precedence,precedence:null})}function _1(a,r,c,p){a.querySelector('link[rel="preload"][as="style"]['+r+"]")?p.loading=1:(r=a.createElement("link"),p.preload=r,r.addEventListener("load",function(){return p.loading|=1}),r.addEventListener("error",function(){return p.loading|=2}),Fa(r,"link",c),vn(r),a.head.appendChild(r))}function qc(a){return'[src="'+Zo(a)+'"]'}function wd(a){return"script[async]"+a}function v0(a,r,c){if(r.count++,r.instance===null)switch(r.type){case"style":var p=a.querySelector('style[data-href~="'+Zo(c.href)+'"]');if(p)return r.instance=p,vn(p),p;var E=w({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return p=(a.ownerDocument||a).createElement("style"),vn(p),Fa(p,"style",E),Om(p,c.precedence,a),r.instance=p;case"stylesheet":E=cl(c.href);var T=a.querySelector(Ai(E));if(T)return r.state.loading|=4,r.instance=T,vn(T),T;p=Sd(c),(E=qo.get(E))&&ng(p,E),T=(a.ownerDocument||a).createElement("link"),vn(T);var I=T;return I._p=new Promise(function(ne,ye){I.onload=ne,I.onerror=ye}),Fa(T,"link",p),r.state.loading|=4,Om(T,c.precedence,a),r.instance=T;case"script":return T=qc(c.src),(E=a.querySelector(wd(T)))?(r.instance=E,vn(E),E):(p=c,(E=qo.get(T))&&(p=w({},c),ag(p,E)),a=a.ownerDocument||a,E=a.createElement("script"),vn(E),Fa(E,"link",p),a.head.appendChild(E),r.instance=E);case"void":return null;default:throw Error(i(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(p=r.instance,r.state.loading|=4,Om(p,c.precedence,a));return r.instance}function Om(a,r,c){for(var p=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=p.length?p[p.length-1]:null,T=E,I=0;I<p.length;I++){var ne=p[I];if(ne.dataset.precedence===r)T=ne;else if(T!==E)break}T?T.parentNode.insertBefore(a,T.nextSibling):(r=c.nodeType===9?c.head:c,r.insertBefore(a,r.firstChild))}function ng(a,r){a.crossOrigin==null&&(a.crossOrigin=r.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=r.referrerPolicy),a.title==null&&(a.title=r.title)}function ag(a,r){a.crossOrigin==null&&(a.crossOrigin=r.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=r.referrerPolicy),a.integrity==null&&(a.integrity=r.integrity)}var Cd=null;function x0(a,r,c){if(Cd===null){var p=new Map,E=Cd=new Map;E.set(c,p)}else E=Cd,p=E.get(c),p||(p=new Map,E.set(c,p));if(p.has(a))return p;for(p.set(a,null),c=c.getElementsByTagName(a),E=0;E<c.length;E++){var T=c[E];if(!(T[wr]||T[Mn]||a==="link"&&T.getAttribute("rel")==="stylesheet")&&T.namespaceURI!=="http://www.w3.org/2000/svg"){var I=T.getAttribute(r)||"";I=a+I;var ne=p.get(I);ne?ne.push(T):p.set(I,[T])}}return p}function og(a,r,c){a=a.ownerDocument||a,a.head.insertBefore(c,r==="title"?a.querySelector("head > title"):null)}function S0(a,r,c){if(c===1||r.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(a=r.disabled,typeof r.precedence=="string"&&a==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function Go(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function Zr(a,r,c,p){if(c.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var E=cl(p.href),T=r.querySelector(Ai(E));if(T){r=T._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(a.count++,a=lg.bind(a),r.then(a,a)),c.state.loading|=4,c.instance=T,vn(T);return}T=r.ownerDocument||r,p=Sd(p),(E=qo.get(E))&&ng(p,E),T=T.createElement("link"),vn(T);var I=T;I._p=new Promise(function(ne,ye){I.onload=ne,I.onerror=ye}),Fa(T,"link",p),c.instance=T}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(c,r),(r=c.state.preload)&&(c.state.loading&3)===0&&(a.count++,c=lg.bind(a),r.addEventListener("load",c),r.addEventListener("error",c))}}var ul=0;function w0(a,r){return a.stylesheets&&a.count===0&&sg(a,a.stylesheets),0<a.count||0<a.imgCount?function(c){var p=setTimeout(function(){if(a.stylesheets&&sg(a,a.stylesheets),a.unsuspend){var T=a.unsuspend;a.unsuspend=null,T()}},6e4+r);0<a.imgBytes&&ul===0&&(ul=62500*m0());var E=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&sg(a,a.stylesheets),a.unsuspend)){var T=a.unsuspend;a.unsuspend=null,T()}},(a.imgBytes>ul?50:800)+r);return a.unsuspend=c,function(){a.unsuspend=null,clearTimeout(p),clearTimeout(E)}}:null}function lg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)sg(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var rg=null;function sg(a,r){a.stylesheets=null,a.unsuspend!==null&&(a.count++,rg=new Map,r.forEach(La,a),rg=null,lg.call(a))}function La(a,r){if(!(r.state.loading&4)){var c=rg.get(a);if(c)var p=c.get(null);else{c=new Map,rg.set(a,c);for(var E=a.querySelectorAll("link[data-precedence],style[data-precedence]"),T=0;T<E.length;T++){var I=E[T];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(c.set(I.dataset.precedence,I),p=I)}p&&c.set(null,p)}E=r.instance,I=E.getAttribute("data-precedence"),T=c.get(I)||p,T===p&&c.set(null,E),c.set(I,E),this.count++,p=lg.bind(this),E.addEventListener("load",p),E.addEventListener("error",p),T?T.parentNode.insertBefore(E,T.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(E,a.firstChild)),r.state.loading|=4}}var jm={$$typeof:B,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function C0(a,r,c,p,E,T,I,ne,ye){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=bo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bo(0),this.hiddenUpdates=bo(null),this.identifierPrefix=p,this.onUncaughtError=E,this.onCaughtError=T,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ye,this.incompleteTransitions=new Map}function ig(a,r,c,p,E,T,I,ne,ye,_e,Ye,Xe){return a=new C0(a,r,c,I,ye,_e,Ye,Xe,ne),r=1,T===!0&&(r|=24),T=la(3,null,null,r),a.current=T,T.stateNode=a,r=Lf(),r.refCount++,a.pooledCache=r,r.refCount++,T.memoizedState={element:p,isDehydrated:c,cache:r},Xf(T),a}function Gc(a){return a?(a=wo,a):wo}function U1(a,r,c,p,E,T){E=Gc(E),p.context===null?p.context=E:p.pendingContext=E,p=Rs(r),p.payload={element:c},T=T===void 0?null:T,T!==null&&(p.callback=T),c=nl(a,p,r),c!==null&&(ko(c,a,r),yi(c,a,r))}function cg(a,r){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var c=a.retryLane;a.retryLane=c!==0&&c<r?c:r}}function E0(a,r){cg(a,r),(a=a.alternate)&&cg(a,r)}function B1(a){if(a.tag===13||a.tag===31){var r=Ss(a,67108864);r!==null&&ko(r,a,67108864),E0(a,67108864)}}function Xc(a){if(a.tag===13||a.tag===31){var r=Yo();r=qn(r);var c=Ss(a,r);c!==null&&ko(c,a,r),E0(a,r)}}var Ta=!0;function Kr(a,r,c,p){var E=Y.T;Y.T=null;var T=P.p;try{P.p=2,Wa(a,r,c,p)}finally{P.p=T,Y.T=E}}function Fr(a,r,c,p){var E=Y.T;Y.T=null;var T=P.p;try{P.p=8,Wa(a,r,c,p)}finally{P.p=T,Y.T=E}}function Wa(a,r,c,p){if(Ta){var E=N0(p);if(E===null)s0(a,r,p,ug,c),Vs(a,p);else if(XC(E,a,r,c,p))p.stopPropagation();else if(Vs(a,p),r&4&&-1<zo.indexOf(a)){for(;E!==null;){var T=nc(E);if(T!==null)switch(T.tag){case 3:if(T=T.stateNode,T.current.memoizedState.isDehydrated){var I=Yt(T.pendingLanes);if(I!==0){var ne=T;for(ne.pendingLanes|=2,ne.entangledLanes|=2;I;){var ye=1<<31-xt(I);ne.entanglements[1]|=ye,I&=~ye}Qr(T),(dn&6)===0&&(gn=$e()+500,Bs(0))}}break;case 31:case 13:ne=Ss(T,2),ne!==null&&ko(ne,T,2),cd(),E0(T,2)}if(T=N0(p),T===null&&s0(a,r,p,ug,c),T===E)break;E=T}E!==null&&p.stopPropagation()}else s0(a,r,p,null,c)}}function N0(a){return a=_p(a),Ed(a)}var ug=null;function Ed(a){if(ug=null,a=tc(a),a!==null){var r=f(a);if(r===null)a=null;else{var c=r.tag;if(c===13){if(a=h(r),a!==null)return a;a=null}else if(c===31){if(a=y(r),a!==null)return a;a=null}else if(c===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;a=null}else r!==a&&(a=null)}}return ug=a,null}function Dm(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(st()){case nn:return 2;case ln:return 8;case Tt:case Lt:return 32;case Kt:return 268435456;default:return 32}default:return 32}}var Nd=!1,Ma=null,Ja=null,uo=null,zi=new Map,kl=new Map,$n=[],zo="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Vs(a,r){switch(a){case"focusin":case"focusout":Ma=null;break;case"dragenter":case"dragleave":Ja=null;break;case"mouseover":case"mouseout":uo=null;break;case"pointerover":case"pointerout":zi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":kl.delete(r.pointerId)}}function Pc(a,r,c,p,E,T){return a===null||a.nativeEvent!==T?(a={blockedOn:r,domEventName:c,eventSystemFlags:p,nativeEvent:T,targetContainers:[E]},r!==null&&(r=nc(r),r!==null&&B1(r)),a):(a.eventSystemFlags|=p,r=a.targetContainers,E!==null&&r.indexOf(E)===-1&&r.push(E),a)}function XC(a,r,c,p,E){switch(r){case"focusin":return Ma=Pc(Ma,a,r,c,p,E),!0;case"dragenter":return Ja=Pc(Ja,a,r,c,p,E),!0;case"mouseover":return uo=Pc(uo,a,r,c,p,E),!0;case"pointerover":var T=E.pointerId;return zi.set(T,Pc(zi.get(T)||null,a,r,c,p,E)),!0;case"gotpointercapture":return T=E.pointerId,kl.set(T,Pc(kl.get(T)||null,a,r,c,p,E)),!0}return!1}function L1(a){var r=tc(a.target);if(r!==null){var c=f(r);if(c!==null){if(r=c.tag,r===13){if(r=h(c),r!==null){a.blockedOn=r,bf(a.priority,function(){Xc(c)});return}}else if(r===31){if(r=y(c),r!==null){a.blockedOn=r,bf(a.priority,function(){Xc(c)});return}}else if(r===3&&c.stateNode.current.memoizedState.isDehydrated){a.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}a.blockedOn=null}function km(a){if(a.blockedOn!==null)return!1;for(var r=a.targetContainers;0<r.length;){var c=N0(a.nativeEvent);if(c===null){c=a.nativeEvent;var p=new c.constructor(c.type,c);zp=p,c.target.dispatchEvent(p),zp=null}else return r=nc(c),r!==null&&B1(r),a.blockedOn=c,!1;r.shift()}return!0}function Td(a,r,c){km(a)&&c.delete(r)}function V1(){Nd=!1,Ma!==null&&km(Ma)&&(Ma=null),Ja!==null&&km(Ja)&&(Ja=null),uo!==null&&km(uo)&&(uo=null),zi.forEach(Td),kl.forEach(Td)}function Wr(a,r){a.blockedOn===r&&(a.blockedOn=null,Nd||(Nd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,V1)))}var Md=null;function H1(a){Md!==a&&(Md=a,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Md===a&&(Md=null);for(var r=0;r<a.length;r+=3){var c=a[r],p=a[r+1],E=a[r+2];if(typeof p!="function"){if(Ed(p||c)===null)continue;break}var T=nc(c);T!==null&&(a.splice(r,3),r-=3,Ku(T,{pending:!0,data:E,method:c.method,action:p},p,E))}}))}function Rd(a){function r(ye){return Wr(ye,a)}Ma!==null&&Wr(Ma,a),Ja!==null&&Wr(Ja,a),uo!==null&&Wr(uo,a),zi.forEach(r),kl.forEach(r);for(var c=0;c<$n.length;c++){var p=$n[c];p.blockedOn===a&&(p.blockedOn=null)}for(;0<$n.length&&(c=$n[0],c.blockedOn===null);)L1(c),c.blockedOn===null&&$n.shift();if(c=(a.ownerDocument||a).$$reactFormReplay,c!=null)for(p=0;p<c.length;p+=3){var E=c[p],T=c[p+1],I=E[vo]||null;if(typeof T=="function")I||H1(c);else if(I){var ne=null;if(T&&T.hasAttribute("formAction")){if(E=T,I=T[vo]||null)ne=I.formAction;else if(Ed(E)!==null)continue}else ne=I.action;typeof ne=="function"?c[p+1]=ne:(c.splice(p,3),p-=3),H1(c)}}}function T0(){function a(T){T.canIntercept&&T.info==="react-transition"&&T.intercept({handler:function(){return new Promise(function(I){return E=I})},focusReset:"manual",scroll:"manual"})}function r(){E!==null&&(E(),E=null),p||setTimeout(c,20)}function c(){if(!p&&!navigation.transition){var T=navigation.currentEntry;T&&T.url!=null&&navigation.navigate(T.url,{state:T.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,E=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(c,100),function(){p=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),E!==null&&(E(),E=null)}}}function dg(a){this._internalRoot=a}fg.prototype.render=dg.prototype.render=function(a){var r=this._internalRoot;if(r===null)throw Error(i(409));var c=r.current,p=Yo();U1(c,p,a,r,null,null)},fg.prototype.unmount=dg.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var r=a.containerInfo;U1(a.current,2,null,a,null,null),cd(),r[ei]=null}};function fg(a){this._internalRoot=a}fg.prototype.unstable_scheduleHydration=function(a){if(a){var r=ec();a={blockedOn:null,target:a,priority:r};for(var c=0;c<$n.length&&r!==0&&r<$n[c].priority;c++);$n.splice(c,0,a),c===0&&L1(a)}};var M0=o.version;if(M0!=="19.2.4")throw Error(i(527,M0,"19.2.4"));P.findDOMNode=function(a){var r=a._reactInternals;if(r===void 0)throw typeof a.render=="function"?Error(i(188)):(a=Object.keys(a).join(","),Error(i(268,a)));return a=x(r),a=a!==null?C(a):null,a=a===null?null:a.stateNode,a};var I1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Am=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Am.isDisabled&&Am.supportsFiber)try{Wn=Am.inject(I1),ct=Am}catch{}}return Rv.createRoot=function(a,r){if(!d(a))throw Error(i(299));var c=!1,p="",E=Ch,T=Rb,I=Eh;return r!=null&&(r.unstable_strictMode===!0&&(c=!0),r.identifierPrefix!==void 0&&(p=r.identifierPrefix),r.onUncaughtError!==void 0&&(E=r.onUncaughtError),r.onCaughtError!==void 0&&(T=r.onCaughtError),r.onRecoverableError!==void 0&&(I=r.onRecoverableError)),r=ig(a,1,!1,null,null,c,p,null,E,T,I,T0),a[ei]=r.current,hd(a),new dg(r)},Rv.hydrateRoot=function(a,r,c){if(!d(a))throw Error(i(299));var p=!1,E="",T=Ch,I=Rb,ne=Eh,ye=null;return c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(E=c.identifierPrefix),c.onUncaughtError!==void 0&&(T=c.onUncaughtError),c.onCaughtError!==void 0&&(I=c.onCaughtError),c.onRecoverableError!==void 0&&(ne=c.onRecoverableError),c.formState!==void 0&&(ye=c.formState)),r=ig(a,1,!0,r,c??null,p,E,ye,T,I,ne,T0),r.context=Gc(null),c=r.current,p=Yo(),p=qn(p),E=Rs(p),E.callback=null,nl(c,E,p),c=p,r.current.lanes=c,lo(r,c),Qr(r),a[ei]=r.current,hd(a),new fg(r)},Rv.version="19.2.4",Rv}var Ov={};var ND;function MP(){return ND||(ND=1,process.env.NODE_ENV!=="production"&&(function(){function n(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function o(e,t,l,u){if(l>=t.length)return u;var g=t[l],b=xa(e)?e.slice():qt({},e);return b[g]=o(e[g],t,l+1,u),b}function s(e,t,l){if(t.length!==l.length)console.warn("copyWithRename() expects paths of the same length");else{for(var u=0;u<l.length-1;u++)if(t[u]!==l[u]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return i(e,t,l,0)}}function i(e,t,l,u){var g=t[u],b=xa(e)?e.slice():qt({},e);return u+1===t.length?(b[l[u]]=b[g],xa(b)?b.splice(g,1):delete b[g]):b[g]=i(e[g],t,l,u+1),b}function d(e,t,l){var u=t[l],g=xa(e)?e.slice():qt({},e);return l+1===t.length?(xa(g)?g.splice(u,1):delete g[u],g):(g[u]=d(e[u],t,l+1),g)}function f(){return!1}function h(){return null}function y(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function v(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function x(){}function C(){}function w(e){var t=[];return e.forEach(function(l){t.push(l)}),t.sort().join(", ")}function N(e,t,l,u){return new BC(e,t,l,u)}function R(e,t){e.context===kd&&(Kh(e.current,2,t,e,null,null),sl())}function O(e,t){if(ts!==null){var l=t.staleFamilies;t=t.updatedFamilies,um(),kx(e.current,t,l),sl()}}function j(e){ts=e}function D(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function A(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function z(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function B(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function U(e){if(A(e)!==e)throw Error("Unable to find node on an unmounted component.")}function L(e){var t=e.alternate;if(!t){if(t=A(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var l=e,u=t;;){var g=l.return;if(g===null)break;var b=g.alternate;if(b===null){if(u=g.return,u!==null){l=u;continue}break}if(g.child===b.child){for(b=g.child;b;){if(b===l)return U(g),e;if(b===u)return U(g),t;b=b.sibling}throw Error("Unable to find node on an unmounted component.")}if(l.return!==u.return)l=g,u=b;else{for(var M=!1,_=g.child;_;){if(_===l){M=!0,l=g,u=b;break}if(_===u){M=!0,u=g,l=b;break}_=_.sibling}if(!M){for(_=b.child;_;){if(_===l){M=!0,l=b,u=g;break}if(_===u){M=!0,u=b,l=g;break}_=_.sibling}if(!M)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(l.alternate!==u)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(l.tag!==3)throw Error("Unable to find node on an unmounted component.");return l.stateNode.current===l?e:t}function k(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=k(e),t!==null)return t;e=e.sibling}return null}function V(e){return e===null||typeof e!="object"?null:(e=z1&&e[z1]||e["@@iterator"],typeof e=="function"?e:null)}function H(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===vd?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yd:return"Fragment";case Mm:return"Profiler";case Ao:return"StrictMode";case Yc:return"Suspense";case qo:return"SuspenseList";case sr:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Di:return"Portal";case rr:return e.displayName||"Context";case tg:return(e._context.displayName||"Context")+".Consumer";case bd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rm:return t=e.displayName||null,t!==null?t:H(e.type)||"Memo";case co:t=e._payload,e=e._init;try{return H(e(t))}catch{}}return null}function K(e){return typeof e.tag=="number"?Z(e):typeof e.name=="string"?e.name:null}function Z(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";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 26:case 27: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===Ao?"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 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var l=t.length-1;0<=l;l--)if(typeof t[l].name=="string")return t[l].name}if(e.return!==null)return Z(e.return)}return null}function Q(e){return{current:e}}function G(e,t){0>Ls?console.error("Unexpected pop."):(t!==b0[Ls]&&console.error("Unexpected Fiber popped."),e.current=y0[Ls],y0[Ls]=null,b0[Ls]=null,Ls--)}function q(e,t,l){Ls++,y0[Ls]=e.current,b0[Ls]=l,e.current=t}function W(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function te(e,t){q(cl,t,e),q(xd,e,e),q(ki,null,e);var l=t.nodeType;switch(l){case 9:case 11:l=l===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?s1(t):ru;break;default:if(l=t.tagName,t=t.namespaceURI)t=s1(t),t=_s(t,l);else switch(l){case"svg":t=Yg;break;case"math":t=kS;break;default:t=ru}}l=l.toLowerCase(),l=Oy(null,l),l={context:t,ancestorInfo:l},G(ki,e),q(ki,l,e)}function Y(e){G(ki,e),G(xd,e),G(cl,e)}function P(){return W(ki.current)}function F(e){e.memoizedState!==null&&q(Ai,e,e);var t=W(ki.current),l=e.type,u=_s(t.context,l);l=Oy(t.ancestorInfo,l),u={context:u,ancestorInfo:l},t!==u&&(q(xd,e,e),q(ki,u,e))}function ee(e){xd.current===e&&(G(ki,e),G(xd,e)),Ai.current===e&&(G(Ai,e),gv._currentValue=np)}function oe(){}function we(){if(Sd===0){_1=console.log,qc=console.info,wd=console.warn,v0=console.error,Om=console.group,ng=console.groupCollapsed,ag=console.groupEnd;var e={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Sd++}function se(){if(Sd--,Sd===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:qt({},e,{value:_1}),info:qt({},e,{value:qc}),warn:qt({},e,{value:wd}),error:qt({},e,{value:v0}),group:qt({},e,{value:Om}),groupCollapsed:qt({},e,{value:ng}),groupEnd:qt({},e,{value:ag})})}0>Sd&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ce(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
32
|
+
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
33
|
+
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
|
|
34
|
+
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function re(e){if(Cd===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Cd=t&&t[1]||"",x0=-1<l.stack.indexOf(`
|
|
35
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
36
|
+
`+Cd+e+x0}function he(e,t){if(!e||og)return"";var l=S0.get(e);if(l!==void 0)return l;og=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var u=null;u=Ve.H,Ve.H=null,we();try{var g={DetermineComponentFrameRoot:function(){try{if(t){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(Je){var Be=Je}Reflect.construct(e,[],pe)}else{try{pe.call()}catch(Je){Be=Je}e.call(pe.prototype)}}else{try{throw Error()}catch(Je){Be=Je}(pe=e())&&typeof pe.catch=="function"&&pe.catch(function(){})}}catch(Je){if(Je&&Be&&typeof Je.stack=="string")return[Je.stack,Be.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=g.DetermineComponentFrameRoot(),_=M[0],X=M[1];if(_&&X){var J=_.split(`
|
|
37
|
+
`),Ee=X.split(`
|
|
38
|
+
`);for(M=b=0;b<J.length&&!J[b].includes("DetermineComponentFrameRoot");)b++;for(;M<Ee.length&&!Ee[M].includes("DetermineComponentFrameRoot");)M++;if(b===J.length||M===Ee.length)for(b=J.length-1,M=Ee.length-1;1<=b&&0<=M&&J[b]!==Ee[M];)M--;for(;1<=b&&0<=M;b--,M--)if(J[b]!==Ee[M]){if(b!==1||M!==1)do if(b--,M--,0>M||J[b]!==Ee[M]){var Te=`
|
|
39
|
+
`+J[b].replace(" at new "," at ");return e.displayName&&Te.includes("<anonymous>")&&(Te=Te.replace("<anonymous>",e.displayName)),typeof e=="function"&&S0.set(e,Te),Te}while(1<=b&&0<=M);break}}}finally{og=!1,Ve.H=u,se(),Error.prepareStackTrace=l}return J=(J=e?e.displayName||e.name:"")?re(J):"",typeof e=="function"&&S0.set(e,J),J}function le(e,t){switch(e.tag){case 26:case 27:case 5:return re(e.type);case 16:return re("Lazy");case 13:return e.child!==t&&t!==null?re("Suspense Fallback"):re("Suspense");case 19:return re("SuspenseList");case 0:case 15:return he(e.type,!1);case 11:return he(e.type.render,!1);case 1:return he(e.type,!0);case 31:return re("Activity");default:return""}}function Se(e){try{var t="",l=null;do{t+=le(e,l);var u=e._debugInfo;if(u)for(var g=u.length-1;0<=g;g--){var b=u[g];if(typeof b.name=="string"){var M=t;e:{var _=b.name,X=b.env,J=b.debugLocation;if(J!=null){var Ee=Ce(J),Te=Ee.lastIndexOf(`
|
|
40
|
+
`),pe=Te===-1?Ee:Ee.slice(Te+1);if(pe.indexOf(_)!==-1){var Be=`
|
|
41
|
+
`+pe;break e}}Be=re(_+(X?" ["+X+"]":""))}t=M+Be}}l=e,e=e.return}while(e);return t}catch(Je){return`
|
|
42
|
+
Error generating stack: `+Je.message+`
|
|
43
|
+
`+Je.stack}}function ze(e){return(e=e?e.displayName||e.name:"")?re(e):""}function je(){if(Go===null)return null;var e=Go._debugOwner;return e!=null?K(e):null}function ve(){if(Go===null)return"";var e=Go;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=re(e.type);break;case 13:t+=re("Suspense");break;case 19:t+=re("SuspenseList");break;case 31:t+=re("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=ze(e.type));break;case 11:e._debugOwner||t!==""||(t+=ze(e.type.render))}for(;e;)if(typeof e.tag=="number"){var l=e;e=l._debugOwner;var u=l._debugStack;if(e&&u){var g=Ce(u);g!==""&&(t+=`
|
|
44
|
+
`+g)}}else if(e.debugStack!=null){var b=e.debugStack;(e=e.owner)&&b&&(t+=`
|
|
45
|
+
`+Ce(b))}else break;var M=t}catch(_){M=`
|
|
46
|
+
Error generating stack: `+_.message+`
|
|
47
|
+
`+_.stack}return M}function fe(e,t,l,u,g,b,M){var _=Go;ce(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,l,u,g,b,M)):t(l,u,g,b,M)}finally{ce(_)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ce(e){Ve.getCurrentStack=e===null?null:ve,Zr=!1,Go=e}function ae(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function ue(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function ie(e,t){if(ue(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,ae(e)),be(e)}function Oe(e,t){if(ue(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,ae(e)),be(e)}function de(e){if(ue(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",ae(e)),be(e)}function Me(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Xc=t.inject(e),Ta=t}catch(l){console.error("React instrumentation encountered an error: %o.",l)}return!!t.checkDCE}function Re(e){if(typeof E0=="function"&&B1(e),Ta&&typeof Ta.setStrictMode=="function")try{Ta.setStrictMode(Xc,e)}catch(t){Kr||(Kr=!0,console.error("React instrumentation encountered an error: %o",t))}}function De(e){return e>>>=0,e===0?32:31-(N0(e)/ug|0)|0}function Ie(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function We(e,t,l){var u=e.pendingLanes;if(u===0)return 0;var g=0,b=e.suspendedLanes,M=e.pingedLanes;e=e.warmLanes;var _=u&134217727;return _!==0?(u=_&~b,u!==0?g=Ie(u):(M&=_,M!==0?g=Ie(M):l||(l=_&~e,l!==0&&(g=Ie(l))))):(_=u&~b,_!==0?g=Ie(_):M!==0?g=Ie(M):l||(l=u&~e,l!==0&&(g=Ie(l)))),g===0?0:t!==0&&t!==g&&(t&b)===0&&(b=g&-g,l=t&-t,b>=l||b===32&&(l&4194048)!==0)?t:g}function $e(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function st(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function nn(){var e=Nd;return Nd<<=1,(Nd&62914560)===0&&(Nd=4194304),e}function ln(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Tt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Lt(e,t,l,u,g,b){var M=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var _=e.entanglements,X=e.expirationTimes,J=e.hiddenUpdates;for(l=M&~l;0<l;){var Ee=31-Wa(l),Te=1<<Ee;_[Ee]=0,X[Ee]=-1;var pe=J[Ee];if(pe!==null)for(J[Ee]=null,Ee=0;Ee<pe.length;Ee++){var Be=pe[Ee];Be!==null&&(Be.lane&=-536870913)}l&=~Te}u!==0&&Kt(e,u,0),b!==0&&g===0&&e.tag!==0&&(e.suspendedLanes|=b&~(M&~t))}function Kt(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var u=31-Wa(t);e.entangledLanes|=t,e.entanglements[u]=e.entanglements[u]|1073741824|l&261930}function Ft(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var u=31-Wa(l),g=1<<u;g&t|e[u]&t&&(e[u]|=t),l&=~g}}function ya(e,t){var l=t&-t;return l=(l&42)!==0?1:Wn(l),(l&(e.suspendedLanes|t))!==0?0:l}function Wn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ct(e,t,l){if(Fr)for(e=e.pendingUpdatersLaneMap;0<l;){var u=31-Wa(l),g=1<<u;e[u].add(t),l&=~g}}function ot(e,t){if(Fr)for(var l=e.pendingUpdatersLaneMap,u=e.memoizedUpdaters;0<t;){var g=31-Wa(t);e=1<<g,g=l[g],0<g.size&&(g.forEach(function(b){var M=b.alternate;M!==null&&u.has(M)||u.add(b)}),g.clear()),t&=~e}}function xt(e){return e&=-e,Ma<e?Ja<e?(e&134217727)!==0?uo:zi:Ja:Ma}function Mt(){var e=yn.p;return e!==0?e:(e=window.event,e===void 0?uo:Wh(e.type))}function mn(e,t){var l=yn.p;try{return yn.p=e,t()}finally{yn.p=l}}function at(e){delete e[$n],delete e[zo],delete e[Pc],delete e[XC],delete e[L1]}function lt(e){var t=e[$n];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Vs]||l[$n]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Lc(e);e!==null;){if(l=e[$n])return l;e=Lc(e)}return t}e=l,l=e.parentNode}return null}function tt(e){if(e=e[$n]||e[Vs]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ht(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Yt(e){var t=e[km];return t||(t=e[km]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function it(e){e[Td]=!0}function oa(e,t){yo(e,t),yo(e+"Capture",t)}function yo(e,t){Wr[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Wr[e]=t;var l=e.toLowerCase();for(Md[l]=e,e==="onDoubleClick"&&(Md.ondblclick=e),e=0;e<t.length;e++)V1.add(t[e])}function oo(e,t){H1[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function bo(e){return ul.call(dg,e)?!0:ul.call(T0,e)?!1:Rd.test(e)?dg[e]=!0:(T0[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function lo(e,t,l){if(bo(t)){if(!e.hasAttribute(t)){switch(typeof l){case"symbol":case"object":return l;case"function":return l;case"boolean":if(l===!1)return l}return l===void 0?void 0:null}return e=e.getAttribute(t),e===""&&l===!0?!0:(ie(l,t),e===""+l?l:e)}}function Rt(e,t,l){if(bo(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var u=t.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(t);return}}ie(l,t),e.setAttribute(t,""+l)}}function pn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}ie(l,t),e.setAttribute(t,""+l)}}function Hn(e,t,l,u){if(u===null)e.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}ie(u,l),e.setAttributeNS(t,l,""+u)}}function Tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return de(e),e;default:return""}}function qn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sr(e,t,l){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var g=u.get,b=u.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return g.call(this)},set:function(M){de(M),l=""+M,b.call(this,M)}}),Object.defineProperty(e,t,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(M){de(M),l=""+M},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ec(e){if(!e._valueTracker){var t=qn(e)?"checked":"value";e._valueTracker=Sr(e,t,""+e[t])}}function bf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),u="";return e&&(u=qn(e)?e.checked?"true":"false":e.value),e=u,e!==l?(t.setValue(e),!0):!1}function Vl(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 Mn(e){return e.replace(fg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vo(e,t){t.checked===void 0||t.defaultChecked===void 0||I1||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",je()||"A component",t.type),I1=!0),t.value===void 0||t.defaultValue===void 0||M0||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",je()||"A component",t.type),M0=!0)}function ei(e,t,l,u,g,b,M,_){e.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?(ie(M,"type"),e.type=M):e.removeAttribute("type"),t!=null?M==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tn(t)):e.value!==""+Tn(t)&&(e.value=""+Tn(t)):M!=="submit"&&M!=="reset"||e.removeAttribute("value"),t!=null?Ty(e,M,Tn(t)):l!=null?Ty(e,M,Tn(l)):u!=null&&e.removeAttribute("value"),g==null&&b!=null&&(e.defaultChecked=!!b),g!=null&&(e.checked=g&&typeof g!="function"&&typeof g!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?(ie(_,"name"),e.name=""+Tn(_)):e.removeAttribute("name")}function Mp(e,t,l,u,g,b,M,_){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(ie(b,"type"),e.type=b),t!=null||l!=null){if(!(b!=="submit"&&b!=="reset"||t!=null)){ec(e);return}l=l!=null?""+Tn(l):"",t=t!=null?""+Tn(t):l,_||t===e.value||(e.value=t),e.defaultValue=t}u=u??g,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=_?e.checked:!!u,e.defaultChecked=!!u,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(ie(M,"name"),e.name=M),ec(e)}function Ty(e,t,l){t==="number"&&Vl(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function bx(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?Tm.Children.forEach(t.children,function(l){l==null||typeof l=="string"||typeof l=="number"||typeof l=="bigint"||a||(a=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||r||(r=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Am||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Am=!0)}function My(){var e=je();return e?`
|
|
48
|
+
|
|
49
|
+
Check the render method of \``+e+"`.":""}function wr(e,t,l,u){if(e=e.options,t){t={};for(var g=0;g<l.length;g++)t["$"+l[g]]=!0;for(l=0;l<e.length;l++)g=t.hasOwnProperty("$"+e[l].value),e[l].selected!==g&&(e[l].selected=g),g&&u&&(e[l].defaultSelected=!0)}else{for(l=""+Tn(l),t=null,g=0;g<e.length;g++){if(e[g].value===l){e[g].selected=!0,u&&(e[g].defaultSelected=!0);return}t!==null||e[g].disabled||(t=e[g])}t!==null&&(t.selected=!0)}}function Rp(e,t){for(e=0;e<p.length;e++){var l=p[e];if(t[l]!=null){var u=xa(t[l]);t.multiple&&!u?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",l,My()):!t.multiple&&u&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",l,My())}}t.value===void 0||t.defaultValue===void 0||c||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),c=!0)}function tc(e,t){t.value===void 0||t.defaultValue===void 0||E||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",je()||"A component"),E=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function nc(e,t,l){if(t!=null&&(t=""+Tn(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Tn(l):""}function wu(e,t,l,u){if(t==null){if(u!=null){if(l!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(xa(u)){if(1<u.length)throw Error("<textarea> can only have at most one child.");u=u[0]}l=u}l==null&&(l=""),t=l}l=Tn(t),e.defaultValue=l,u=e.textContent,u===l&&u!==""&&u!==null&&(e.value=u),ec(e)}function ac(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?ac(e.children[0],t):e}function vn(e){return" "+" ".repeat(e)}function oc(e){return"+ "+" ".repeat(e)}function ti(e){return"- "+" ".repeat(e)}function ni(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Cr(e,t){return T.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function Op(e,t,l){var u=120-2*l;if(t===null)return oc(l)+Cr(e,u)+`
|
|
50
|
+
`;if(typeof t=="string"){for(var g=0;g<t.length&&g<e.length&&t.charCodeAt(g)===e.charCodeAt(g);g++);return g>u-8&&10<g&&(e="..."+e.slice(g-8),t="..."+t.slice(g-8)),oc(l)+Cr(e,u)+`
|
|
51
|
+
`+ti(l)+Cr(t,u)+`
|
|
52
|
+
`}return vn(l)+Cr(e,u)+`
|
|
53
|
+
`}function jp(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,l){return l})}function Cu(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(xa(e))return"[...]";if(e.$$typeof===Dl)return(t=H(e.type))?"<"+t+">":"<...>";var l=jp(e);if(l==="Object"){l="",t-=2;for(var u in e)if(e.hasOwnProperty(u)){var g=JSON.stringify(u);if(g!=='"'+u+'"'&&(u=g),t-=u.length-2,g=Cu(e[u],15>t?t:15),t-=g.length,0>t){l+=l===""?"...":", ...";break}l+=(l===""?"":",")+u+":"+g}return"{"+l+"}"}return l;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Eu(e,t){return typeof e!="string"||T.test(e)?"{"+Cu(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function Nu(e,t,l){var u=120-l.length-e.length,g=[],b;for(b in t)if(t.hasOwnProperty(b)&&b!=="children"){var M=Eu(t[b],120-l.length-b.length-1);u-=b.length+M.length+2,g.push(b+"="+M)}return g.length===0?l+"<"+e+`>
|
|
54
|
+
`:0<u?l+"<"+e+" "+g.join(" ")+`>
|
|
55
|
+
`:l+"<"+e+`
|
|
56
|
+
`+l+" "+g.join(`
|
|
57
|
+
`+l+" ")+`
|
|
58
|
+
`+l+`>
|
|
59
|
+
`}function Dp(e,t,l){var u="",g=qt({},t),b;for(b in e)if(e.hasOwnProperty(b)){delete g[b];var M=120-2*l-b.length-2,_=Cu(e[b],M);t.hasOwnProperty(b)?(M=Cu(t[b],M),u+=oc(l)+b+": "+_+`
|
|
60
|
+
`,u+=ti(l)+b+": "+M+`
|
|
61
|
+
`):u+=oc(l)+b+": "+_+`
|
|
62
|
+
`}for(var X in g)g.hasOwnProperty(X)&&(e=Cu(g[X],120-2*l-X.length-2),u+=ti(l)+X+": "+e+`
|
|
63
|
+
`);return u}function ys(e,t,l,u){var g="",b=new Map;for(J in l)l.hasOwnProperty(J)&&b.set(J.toLowerCase(),J);if(b.size===1&&b.has("children"))g+=Nu(e,t,vn(u));else{for(var M in t)if(t.hasOwnProperty(M)&&M!=="children"){var _=120-2*(u+1)-M.length-1,X=b.get(M.toLowerCase());if(X!==void 0){b.delete(M.toLowerCase());var J=t[M];X=l[X];var Ee=Eu(J,_);_=Eu(X,_),typeof J=="object"&&J!==null&&typeof X=="object"&&X!==null&&jp(J)==="Object"&&jp(X)==="Object"&&(2<Object.keys(J).length||2<Object.keys(X).length||-1<Ee.indexOf("...")||-1<_.indexOf("..."))?g+=vn(u+1)+M+`={{
|
|
64
|
+
`+Dp(J,X,u+2)+vn(u+1)+`}}
|
|
65
|
+
`:(g+=oc(u+1)+M+"="+Ee+`
|
|
66
|
+
`,g+=ti(u+1)+M+"="+_+`
|
|
67
|
+
`)}else g+=vn(u+1)+M+"="+Eu(t[M],_)+`
|
|
68
|
+
`}b.forEach(function(Te){if(Te!=="children"){var pe=120-2*(u+1)-Te.length-1;g+=ti(u+1)+Te+"="+Eu(l[Te],pe)+`
|
|
69
|
+
`}}),g=g===""?vn(u)+"<"+e+`>
|
|
70
|
+
`:vn(u)+"<"+e+`
|
|
71
|
+
`+g+vn(u)+`>
|
|
72
|
+
`}return e=l.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(b="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(b=""+t),g+=Op(b,""+e,u+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(g=e==null?g+Op(""+t,null,u+1):g+Op(""+t,void 0,u+1)),g}function Qo(e,t){var l=ni(e);if(l===null){for(l="",e=e.child;e;)l+=Qo(e,t),e=e.sibling;return l}return vn(t)+"<"+l+`>
|
|
73
|
+
`}function kp(e,t){var l=ac(e,t);if(l!==e&&(e.children.length!==1||e.children[0]!==l))return vn(t)+`...
|
|
74
|
+
`+kp(l,t+1);l="";var u=e.fiber._debugInfo;if(u)for(var g=0;g<u.length;g++){var b=u[g].name;typeof b=="string"&&(l+=vn(t)+"<"+b+`>
|
|
75
|
+
`,t++)}if(u="",g=e.fiber.pendingProps,e.fiber.tag===6)u=Op(g,e.serverProps,t),t++;else if(b=ni(e.fiber),b!==null)if(e.serverProps===void 0){u=t;var M=120-2*u-b.length-2,_="";for(J in g)if(g.hasOwnProperty(J)&&J!=="children"){var X=Eu(g[J],15);if(M-=J.length+X.length+2,0>M){_+=" ...";break}_+=" "+J+"="+X}u=vn(u)+"<"+b+_+`>
|
|
76
|
+
`,t++}else e.serverProps===null?(u=Nu(b,g,oc(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(u=ys(b,g,e.serverProps,t),t++);var J="";for(g=e.fiber.child,b=0;g&&b<e.children.length;)M=e.children[b],M.fiber===g?(J+=kp(M,t),b++):J+=Qo(g,t),g=g.sibling;for(g&&0<e.children.length&&(J+=vn(t)+`...
|
|
77
|
+
`),g=e.serverTail,e.serverProps===null&&t--,e=0;e<g.length;e++)b=g[e],J=typeof b=="string"?J+(ti(t)+Cr(b,120-2*t)+`
|
|
78
|
+
`):J+Nu(b.type,b.props,ti(t));return l+u+J}function Ry(e){try{return`
|
|
79
|
+
|
|
80
|
+
`+kp(e,0)}catch{return""}}function Ap(e,t,l){for(var u=t,g=null,b=0;u;)u===e&&(b=0),g={fiber:u,children:g!==null?[g]:[],serverProps:u===t?l:u===e?null:void 0,serverTail:[],distanceFromLeaf:b},b++,u=u.return;return g!==null?Ry(g).replaceAll(/^[+-]/gm,">"):""}function Oy(e,t){var l=qt({},e||Ye),u={tag:t};return ne.indexOf(t)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),ye.indexOf(t)!==-1&&(l.pTagInButtonScope=null),I.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(l.listItemTagAutoclosing=null,l.dlItemTagAutoclosing=null),l.current=u,t==="form"&&(l.formTag=u),t==="a"&&(l.aTagInScope=u),t==="button"&&(l.buttonTagInScope=u),t==="nobr"&&(l.nobrTagInScope=u),t==="p"&&(l.pTagInButtonScope=u),t==="li"&&(l.listItemTagAutoclosing=u),(t==="dd"||t==="dt")&&(l.dlItemTagAutoclosing=u),t==="#document"||t==="html"?l.containerTagInScope=null:l.containerTagInScope||(l.containerTagInScope=u),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?l.implicitRootScope===!0&&(l.implicitRootScope=!1):l.implicitRootScope=!0,l}function vf(e,t,l){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(l)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!l)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return _e.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return l||t===null;case"html":return l&&t==="#document"||t===null;case"body":return l&&(t==="#document"||t==="html")||t===null}return!0}function DC(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Zo(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function xf(e,t){t=t||Ye;var l=t.current;if(t=(l=vf(e,l&&l.tag,t.implicitRootScope)?null:l)?null:DC(e,t),t=l||t,!t)return!0;var u=t.tag;if(t=String(!!l)+"|"+e+"|"+u,Xe[t])return!1;Xe[t]=!0;var g=(t=Go)?Zo(t.return,u):null,b=t!==null&&g!==null?Ap(g,t,null):"",M="<"+e+">";return l?(l="",u==="table"&&e==="tr"&&(l+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
81
|
+
This will cause a hydration error.%s`,M,u,l,b)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
82
|
+
This will cause a hydration error.%s`,M,u,b),t&&(e=t.return,g===null||e===null||g===e&&e._debugOwner===t._debugOwner||fe(g,function(){console.error(`<%s> cannot contain a nested %s.
|
|
83
|
+
See this log for the ancestor stack trace.`,u,M)})),!1}function Sf(e,t,l){if(l||vf("#text",t,!1))return!0;if(l="#text|"+t,Xe[l])return!1;Xe[l]=!0;var u=(l=Go)?Zo(l,t):null;return l=l!==null&&u!==null?Ap(u,l,l.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
84
|
+
This will cause a hydration error.%s`,t,l):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
85
|
+
This will cause a hydration error.%s`,t,l),!1}function lc(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}function Tu(e){return e.replace(ke,function(t,l){return l.toUpperCase()})}function jy(e,t,l){var u=t.indexOf("--")===0;u||(-1<t.indexOf("-")?Ae.hasOwnProperty(t)&&Ae[t]||(Ae[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,Tu(t.replace(Dn,"ms-")))):St.test(t)?Ae.hasOwnProperty(t)&&Ae[t]||(Ae[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!Ne.test(l)||Ge.hasOwnProperty(l)&&Ge[l]||(Ge[l]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,l.replace(Ne,""))),typeof l=="number"&&(isNaN(l)?pt||(pt=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(l)||cn||(cn=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),l==null||typeof l=="boolean"||l===""?u?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":u?e.setProperty(t,l):typeof l!="number"||l===0||ut.has(t)?t==="float"?e.cssFloat=l:(Oe(l,t),e[t]=(""+l).trim()):e[t]=l+"px"}function Dy(e,t,l){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,l!=null){if(t){var u={};if(l){for(var g in l)if(l.hasOwnProperty(g)&&!t.hasOwnProperty(g))for(var b=Ue[g]||[g],M=0;M<b.length;M++)u[b[M]]=g}for(var _ in t)if(t.hasOwnProperty(_)&&(!l||l[_]!==t[_]))for(g=Ue[_]||[_],b=0;b<g.length;b++)u[g[b]]=_;_={};for(var X in t)for(g=Ue[X]||[X],b=0;b<g.length;b++)_[g[b]]=X;X={};for(var J in u)if(g=u[J],(b=_[J])&&g!==b&&(M=g+","+b,!X[M])){X[M]=!0,M=console;var Ee=t[g];M.error.call(M,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Ee==null||typeof Ee=="boolean"||Ee===""?"Removing":"Updating",g,b)}}for(var Te in l)!l.hasOwnProperty(Te)||t!=null&&t.hasOwnProperty(Te)||(Te.indexOf("--")===0?e.setProperty(Te,""):Te==="float"?e.cssFloat="":e[Te]="");for(var pe in t)J=t[pe],t.hasOwnProperty(pe)&&l[pe]!==J&&jy(e,pe,J)}else for(u in t)t.hasOwnProperty(u)&&jy(e,u,t[u])}function Er(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function vx(e){return fn.get(e)||e}function xx(e,t){if(ul.call(mg,t)&&mg[t])return!0;if(y_.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=Y1.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),mg[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),mg[t]=!0}if(g_.test(t)){if(e=t.toLowerCase(),e=Y1.hasOwnProperty(e)?e:null,e==null)return mg[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),mg[t]=!0)}return!0}function Sx(e,t){var l=[],u;for(u in t)xx(e,u)||l.push(u);t=l.map(function(g){return"`"+g+"`"}).join(", "),l.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<l.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function ky(e,t,l,u){if(ul.call(dl,t)&&dl[t])return!0;var g=t.toLowerCase();if(g==="onfocusin"||g==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),dl[t]=!0;if(typeof l=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(u!=null){if(e=u.possibleRegistrationNames,u.registrationNameDependencies.hasOwnProperty(t))return!0;if(u=e.hasOwnProperty(g)?e[g]:null,u!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,u),dl[t]=!0;if(fM.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),dl[t]=!0}else if(fM.test(t))return b_.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),dl[t]=!0;if(v_.test(t)||x_.test(t))return!0;if(g==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),dl[t]=!0;if(g==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),dl[t]=!0;if(g==="is"&&l!==null&&l!==void 0&&typeof l!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof l),dl[t]=!0;if(typeof l=="number"&&isNaN(l))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),dl[t]=!0;if(ir.hasOwnProperty(g)){if(g=ir[g],g!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,g),dl[t]=!0}else if(t!==g)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,g),dl[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof l){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return g=t.toLowerCase().slice(0,5),g==="data-"||g==="aria-"?!0:(l?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',l,t,t,l,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',l,t,t,l,t,t,t),dl[t]=!0)}case"function":case"symbol":return dl[t]=!0,!1;case"string":if(l==="false"||l==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",l,t,l==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,l),dl[t]=!0}}return!0}function kC(e,t,l){var u=[],g;for(g in t)ky(e,g,t[g],l)||u.push(g);t=u.map(function(b){return"`"+b+"`"}).join(", "),u.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<u.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function wf(e){return S_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function xl(){}function Hl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function zp(e){var t=tt(e);if(t&&(e=t.stateNode)){var l=e[zo]||null;e:switch(e=t.stateNode,t.type){case"input":if(ei(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(ie(t,"name"),l=l.querySelectorAll('input[name="'+Mn(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var u=l[t];if(u!==e&&u.form===e.form){var g=u[zo]||null;if(!g)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");ei(u,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(t=0;t<l.length;t++)u=l[t],u.form===e.form&&bf(u)}break e;case"textarea":nc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&wr(e,!!l.multiple,t,!1)}}}function _p(e,t,l){if(PC)return e(t,l);PC=!0;try{var u=e(t);return u}finally{if(PC=!1,(pg!==null||hg!==null)&&(sl(),pg&&(t=pg,e=hg,hg=pg=null,zp(t),e)))for(t=0;t<e.length;t++)zp(e[t])}}function Nr(e,t){var l=e.stateNode;if(l===null)return null;var u=l[zo]||null;if(u===null)return null;l=u[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof l+"` type.");return l}function rc(){if(q1)return q1;var e,t=QC,l=t.length,u,g="value"in Od?Od.value:Od.textContent,b=g.length;for(e=0;e<l&&t[e]===g[e];e++);var M=l-e;for(u=1;u<=M&&t[l-u]===g[b-u];u++);return q1=g.slice(e,1<u?1-u:void 0)}function Cf(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mu(){return!0}function Ay(){return!1}function Da(e){function t(l,u,g,b,M){this._reactName=l,this._targetInst=g,this.type=u,this.nativeEvent=b,this.target=M,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(l=e[_],this[_]=l?l(b):b[_]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Mu:Ay,this.isPropagationStopped=Ay,this}return qt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Mu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Mu)},persist:function(){},isPersistent:Mu}),t}function bs(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=z_[e])?!!t[e]:!1}function Ef(){return bs}function Ru(e,t){switch(e){case"keyup":return P_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==gM;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function zy(e,t){switch(e){case"compositionend":return vs(t);case"keypress":return t.which!==bM?null:(xM=!0,vM);case"textInput":return e=t.data,e===vM&&xM?null:e;default:return null}}function Up(e,t){if(gg)return e==="compositionend"||!WC&&Ru(e,t)?(e=rc(),q1=QC=Od=null,gg=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return yM&&t.locale!=="ko"?null:t.data;default:return null}}function _y(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Q_[e.type]:t==="textarea"}function Bp(e){if(!_i)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Nf(e,t,l,u){pg?hg?hg.push(u):hg=[u]:pg=u,t=ar(t,"onChange"),0<t.length&&(l=new G1("onChange","change",null,l,u),e.push({event:l,listeners:t}))}function wx(e){wn(e,0)}function Ka(e){var t=ht(e);if(bf(t))return e}function ai(e,t){if(e==="change")return t}function Tf(){A0&&(A0.detachEvent("onpropertychange",Ou),z0=A0=null)}function Ou(e){if(e.propertyName==="value"&&Ka(z0)){var t=[];Nf(t,z0,e,Hl(e)),_p(wx,t)}}function AC(e,t,l){e==="focusin"?(Tf(),A0=t,z0=l,A0.attachEvent("onpropertychange",Ou)):e==="focusout"&&Tf()}function Uy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ka(z0)}function By(e,t){if(e==="click")return Ka(t)}function Mf(e,t){if(e==="input"||e==="change")return Ka(t)}function Lp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function ju(e,t){if(fl(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),u=Object.keys(t);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var g=l[u];if(!ul.call(t,g)||!fl(e[g],t[g]))return!1}return!0}function Cx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ex(e,t){var l=Cx(e);e=0;for(var u;l;){if(l.nodeType===3){if(u=e+l.textContent.length,e<=t&&u>=t)return{node:l,offset:t-e};e=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Cx(l)}}function Nx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vl(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Vl(e.document)}return t}function Ly(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 Tx(e,t,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;eE||yg==null||yg!==Vl(u)||(u=yg,"selectionStart"in u&&Ly(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),_0&&ju(_0,u)||(_0=u,u=ar(JC,"onSelect"),0<u.length&&(t=new G1("onSelect","select",null,t,l),e.push({event:t,listeners:u}),t.target=yg)))}function sc(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}function ic(e){if(tE[e])return tE[e];if(!bg[e])return e;var t=bg[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in wM)return tE[e]=t[l];return e}function Il(e,t){MM.set(e,t),oa(t,[e])}function Mx(e){for(var t=P1,l=0;l<e.length;l++){var u=e[l];if(typeof u=="object"&&u!==null)if(xa(u)&&u.length===2&&typeof u[0]=="string"){if(t!==P1&&t!==rE)return oE;t=rE}else return oE;else{if(typeof u=="function"||typeof u=="string"&&50<u.length||t!==P1&&t!==lE)return oE;t=lE}}return t}function Vy(e,t,l,u){for(var g in e)ul.call(e,g)&&g[0]!=="_"&&Tr(g,e[g],t,l,u)}function Tr(e,t,l,u,g){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Dl){var b=H(t.type)||"…",M=t.key;t=t.props;var _=Object.keys(t),X=_.length;if(M==null&&X===0){t="<"+b+" />";break}if(3>u||X===1&&_[0]==="children"&&M==null){t="<"+b+" … />";break}l.push([g+" ".repeat(u)+e,"<"+b]),M!==null&&Tr("key",M,l,u+1,g),e=!1;for(var J in t)J==="children"?t.children!=null&&(!xa(t.children)||0<t.children.length)&&(e=!0):ul.call(t,J)&&J[0]!=="_"&&Tr(J,t[J],l,u+1,g);l.push(["",e?">…</"+b+">":"/>"]);return}if(b=Object.prototype.toString.call(t),b=b.slice(8,b.length-1),b==="Array"){if(J=Mx(t),J===lE||J===P1){t=JSON.stringify(t);break}else if(J===rE){for(l.push([g+" ".repeat(u)+e,""]),e=0;e<t.length;e++)b=t[e],Tr(b[0],b[1],l,u+1,g);return}}if(b==="Promise"){if(t.status==="fulfilled"){if(b=l.length,Tr(e,t.value,l,u,g),l.length>b){l=l[b],l[1]="Promise<"+(l[1]||"Object")+">";return}}else if(t.status==="rejected"&&(b=l.length,Tr(e,t.reason,l,u,g),l.length>b)){l=l[b],l[1]="Rejected Promise<"+l[1]+">";return}l.push([" ".repeat(u)+e,"Promise"]);return}b==="Object"&&(J=Object.getPrototypeOf(t))&&typeof J.constructor=="function"&&(b=J.constructor.name),l.push([g+" ".repeat(u)+e,b==="Object"?3>u?"":"…":b]),3>u&&Vy(t,l,u+1,g);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===t6?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}l.push([g+" ".repeat(u)+e,t])}function Rx(e,t,l,u){var g=!0;for(M in e)M in t||(l.push([$1+" ".repeat(u)+M,"…"]),g=!1);for(var b in t)if(b in e){var M=e[b],_=t[b];if(M!==_){if(u===0&&b==="children")g=" ".repeat(u)+b,l.push([$1+g,"…"],[Q1+g,"…"]);else{if(!(3<=u)){if(typeof M=="object"&&typeof _=="object"&&M!==null&&_!==null&&M.$$typeof===_.$$typeof)if(_.$$typeof===Dl){if(M.type===_.type&&M.key===_.key){M=H(_.type)||"…",g=" ".repeat(u)+b,M="<"+M+" … />",l.push([$1+g,M],[Q1+g,M]),g=!1;continue}}else{var X=Object.prototype.toString.call(M),J=Object.prototype.toString.call(_);if(X===J&&(J==="[object Object]"||J==="[object Array]")){X=[jM+" ".repeat(u)+b,J==="[object Array]"?"Array":""],l.push(X),J=l.length,Rx(M,_,l,u+1)?J===l.length&&(X[1]="Referentially unequal but deeply equal objects. Consider memoization."):g=!1;continue}}else if(typeof M=="function"&&typeof _=="function"&&M.name===_.name&&M.length===_.length&&(X=Function.prototype.toString.call(M),J=Function.prototype.toString.call(_),X===J)){M=_.name===""?"() => {}":_.name+"() {}",l.push([jM+" ".repeat(u)+b,M+" Referentially unequal function closure. Consider memoization."]);continue}}Tr(b,M,l,u,$1),Tr(b,_,l,u,Q1)}g=!1}}else l.push([Q1+" ".repeat(u)+b,"…"]),g=!1;return g}function Yl(e){rn=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Sl(e,t,l,u){Qn&&(Dd.start=t,Dd.end=l,$c.color="warning",$c.tooltipText=u,$c.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,u,Dd)):performance.measure(u,Dd))}function Hp(e,t,l){Sl(e,t,l,"Reconnect")}function Ip(e,t,l,u,g){var b=Z(e);if(b!==null&&Qn){var M=e.alternate,_=e.actualDuration;if(M===null||M.child!==e.child)for(var X=e.child;X!==null;X=X.sibling)_-=X.actualDuration;u=.5>_?u?"tertiary-light":"primary-light":10>_?u?"tertiary":"primary":100>_?u?"tertiary-dark":"primary-dark":"error";var J=e.memoizedProps;_=e._debugTask,J!==null&&M!==null&&M.memoizedProps!==J?(X=[n6],J=Rx(M.memoizedProps,J,X,0),1<X.length&&(J&&!jd&&(M.lanes&g)===0&&100<e.actualDuration?(jd=!0,X[0]=a6,$c.color="warning",$c.tooltipText=DM):($c.color=u,$c.tooltipText=b),$c.properties=X,Dd.start=t,Dd.end=l,_!=null?_.run(performance.measure.bind(performance,""+b,Dd)):performance.measure(""+b,Dd))):_!=null?_.run(console.timeStamp.bind(console,b,t,l,Jr,void 0,u)):console.timeStamp(b,t,l,Jr,void 0,u)}}function Hy(e,t,l,u){if(Qn){var g=Z(e);if(g!==null){for(var b=null,M=[],_=0;_<u.length;_++){var X=u[_];b==null&&X.source!==null&&(b=X.source._debugTask),X=X.value,M.push(["Error",typeof X=="object"&&X!==null&&typeof X.message=="string"?String(X.message):String(X)])}e.key!==null&&Tr("key",e.key,M,0,""),e.memoizedProps!==null&&Vy(e.memoizedProps,M,0,""),b==null&&(b=e._debugTask),e={start:t,end:l,detail:{devtools:{color:"error",track:Jr,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:M}}},b?b.run(performance.measure.bind(performance,""+g,e)):performance.measure(""+g,e)}}}function ql(e,t,l,u,g){if(g!==null){if(Qn){var b=Z(e);if(b!==null){u=[];for(var M=0;M<g.length;M++){var _=g[M].value;u.push(["Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}e.key!==null&&Tr("key",e.key,u,0,""),e.memoizedProps!==null&&Vy(e.memoizedProps,u,0,""),t={start:t,end:l,detail:{devtools:{color:"error",track:Jr,tooltipText:"A lifecycle or effect errored",properties:u}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+b,t)):performance.measure(""+b,t)}}}else b=Z(e),b!==null&&Qn&&(g=1>u?"secondary-light":100>u?"secondary":500>u?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,b,t,l,Jr,void 0,g)):console.timeStamp(b,t,l,Jr,void 0,g))}function zC(e,t,l,u){if(Qn&&!(t<=e)){var g=(l&738197653)===l?"tertiary-dark":"primary-dark";l=(l&536870912)===l?"Prepared":(l&201326741)===l?"Hydrated":"Render",u?u.run(console.timeStamp.bind(console,l,e,t,rn,an,g)):console.timeStamp(l,e,t,rn,an,g)}}function Ox(e,t,l,u){!Qn||t<=e||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Prewarm",e,t,rn,an,l)):console.timeStamp("Prewarm",e,t,rn,an,l))}function jx(e,t,l,u){!Qn||t<=e||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Suspended",e,t,rn,an,l)):console.timeStamp("Suspended",e,t,rn,an,l))}function _C(e,t,l,u,g,b){if(Qn&&!(t<=e)){l=[];for(var M=0;M<u.length;M++){var _=u[M].value;l.push(["Recoverable Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:rn,trackGroup:an,tooltipText:g?"Hydration Failed":"Recovered after Error",properties:l}}},b?b.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Iy(e,t,l,u){!Qn||t<=e||(u?u.run(console.timeStamp.bind(console,"Errored",e,t,rn,an,"error")):console.timeStamp("Errored",e,t,rn,an,"error"))}function UC(e,t,l,u){!Qn||t<=e||(u?u.run(console.timeStamp.bind(console,l,e,t,rn,an,"secondary-light")):console.timeStamp(l,e,t,rn,an,"secondary-light"))}function Dx(e,t,l,u,g){if(Qn&&!(t<=e)){for(var b=[],M=0;M<l.length;M++){var _=l[M].value;b.push(["Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}e={start:e,end:t,detail:{devtools:{color:"error",track:rn,trackGroup:an,tooltipText:u?"Remaining Effects Errored":"Commit Errored",properties:b}}},g?g.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Yy(e,t,l){!Qn||t<=e||console.timeStamp("Animating",e,t,rn,an,"secondary-dark")}function Yp(){for(var e=vg,t=sE=vg=0;t<e;){var l=es[t];es[t++]=null;var u=es[t];es[t++]=null;var g=es[t];es[t++]=null;var b=es[t];if(es[t++]=null,u!==null&&g!==null){var M=u.pending;M===null?g.next=g:(g.next=M.next,M.next=g),u.pending=g}b!==0&&qy(l,g,b)}}function Du(e,t,l,u){es[vg++]=e,es[vg++]=t,es[vg++]=l,es[vg++]=u,sE|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function cc(e,t,l,u){return Du(e,t,l,u),Rf(e)}function ro(e,t){return Du(e,null,null,t),Rf(e)}function qy(e,t,l){e.lanes|=l;var u=e.alternate;u!==null&&(u.lanes|=l);for(var g=!1,b=e.return;b!==null;)b.childLanes|=l,u=b.alternate,u!==null&&(u.childLanes|=l),b.tag===22&&(e=b.stateNode,e===null||e._visibility&U0||(g=!0)),e=b,b=b.return;return e.tag===3?(b=e.stateNode,g&&t!==null&&(g=31-Wa(l),e=b.hiddenUpdates,u=e[g],u===null?e[g]=[t]:u.push(t),t.lane=l|536870912),b):null}function Rf(e){if(cv>v6)throw Km=cv=0,uv=HE=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Km>x6&&(Km=0,uv=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&jl(e);for(var t=e,l=t.return;l!==null;)t.alternate===null&&(t.flags&4098)!==0&&jl(e),t=l,l=t.return;return t.tag===3?t.stateNode:null}function oi(e){if(ts===null)return e;var t=ts(e);return t===void 0?e:t.current}function qp(e){if(ts===null)return e;var t=ts(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=oi(e.render),e.render!==t)?(t={$$typeof:bd,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Gy(e,t){if(ts===null)return!1;var l=e.elementType;t=t.type;var u=!1,g=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(u=!0);break;case 0:(typeof t=="function"||g===co)&&(u=!0);break;case 11:(g===bd||g===co)&&(u=!0);break;case 14:case 15:(g===Rm||g===co)&&(u=!0);break;default:return!1}return!!(u&&(e=ts(l),e!==void 0&&e===ts(t)))}function uc(e){ts!==null&&typeof WeakSet=="function"&&(xg===null&&(xg=new WeakSet),xg.add(e))}function kx(e,t,l){do{var u=e,g=u.alternate,b=u.child,M=u.sibling,_=u.tag;u=u.type;var X=null;switch(_){case 0:case 15:case 1:X=u;break;case 11:X=u.render}if(ts===null)throw Error("Expected resolveFamily to be set during hot reload.");var J=!1;if(u=!1,X!==null&&(X=ts(X),X!==void 0&&(l.has(X)?u=!0:t.has(X)&&(_===1?u=!0:J=!0))),xg!==null&&(xg.has(e)||g!==null&&xg.has(g))&&(u=!0),u&&(e._debugNeedsRemount=!0),(u||J)&&(g=ro(e,2),g!==null&&Ot(g,e,2)),b===null||u||kx(b,t,l),M===null)break;e=M}while(!0)}function BC(e,t,l,u){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,kM||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Xy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mr(e,t){var l=e.alternate;switch(l===null?(l=N(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l._debugOwner=e._debugOwner,l._debugStack=e._debugStack,l._debugTask=e._debugTask,l._debugHookTypes=e._debugHookTypes,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null,l.actualDuration=-0,l.actualStartTime=-1.1),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l.selfBaseDuration=e.selfBaseDuration,l.treeBaseDuration=e.treeBaseDuration,l._debugInfo=e._debugInfo,l._debugNeedsRemount=e._debugNeedsRemount,l.tag){case 0:case 15:l.type=oi(e.type);break;case 1:l.type=oi(e.type);break;case 11:l.type=qp(e.type)}return l}function Py(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=l.selfBaseDuration,e.treeBaseDuration=l.treeBaseDuration),e}function dc(e,t,l,u,g,b){var M=0,_=e;if(typeof e=="function")Xy(e)&&(M=1),_=oi(_);else if(typeof e=="string")M=P(),M=M1(e,l,M)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case sr:return t=N(31,l,t,g),t.elementType=sr,t.lanes=b,t;case yd:return fc(l.children,g,b,t);case Ao:M=8,g|=Xo,g|=Hs;break;case Mm:return e=l,u=g,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=N(12,e,t,u|Gt),t.elementType=Mm,t.lanes=b,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Yc:return t=N(13,l,t,g),t.elementType=Yc,t.lanes=b,t;case qo:return t=N(19,l,t,g),t.elementType=qo,t.lanes=b,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rr:M=10;break e;case tg:M=9;break e;case bd:M=11,_=qp(_);break e;case Rm:M=14;break e;case co:M=16,_=null;break e}_="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?l="null":xa(e)?l="array":e!==void 0&&e.$$typeof===Dl?(l="<"+(H(e.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,(M=u?K(u):null)&&(_+=`
|
|
86
|
+
|
|
87
|
+
Check the render method of \``+M+"`."),M=29,l=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(l+"."+_)),_=null}return t=N(M,l,t,g),t.elementType=e,t.type=_,t.lanes=b,t._debugOwner=u,t}function li(e,t,l){return t=dc(e.type,e.key,e.props,e._owner,t,l),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function fc(e,t,l,u){return e=N(7,e,u,t),e.lanes=l,e}function ku(e,t,l){return e=N(6,e,null,t),e.lanes=l,e}function $y(e){var t=N(18,null,null,Et);return t.stateNode=e,t}function Gp(e,t,l){return t=N(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xo(e,t){if(typeof e=="object"&&e!==null){var l=iE.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Se(t)},iE.set(e,t),t)}return{value:e,source:t,stack:Se(t)}}function Gl(e,t){ri(),Sg[wg++]=B0,Sg[wg++]=Z1,Z1=e,B0=t}function Qy(e,t,l){ri(),ns[as++]=Zc,ns[as++]=Kc,ns[as++]=_m,_m=e;var u=Zc;e=Kc;var g=32-Wa(u)-1;u&=~(1<<g),l+=1;var b=32-Wa(t)+g;if(30<b){var M=g-g%5;b=(u&(1<<M)-1).toString(32),u>>=M,g-=M,Zc=1<<32-Wa(t)+g|l<<g|u,Kc=b+e}else Zc=1<<b|l<<g|u,Kc=e}function Xp(e){ri(),e.return!==null&&(Gl(e,1),Qy(e,1,0))}function Pp(e){for(;e===Z1;)Z1=Sg[--wg],Sg[wg]=null,B0=Sg[--wg],Sg[wg]=null;for(;e===_m;)_m=ns[--as],ns[as]=null,Kc=ns[--as],ns[as]=null,Zc=ns[--as],ns[as]=null}function Ax(){return ri(),_m!==null?{id:Zc,overflow:Kc}:null}function zx(e,t){ri(),ns[as++]=Zc,ns[as++]=Kc,ns[as++]=_m,Zc=t.id,Kc=t.overflow,_m=e}function ri(){tn||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function mc(e,t){if(e.return===null){if(cr===null)cr={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(cr.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");cr.distanceFromLeaf>t&&(cr.distanceFromLeaf=t)}return cr}var l=mc(e.return,t+1).children;return 0<l.length&&l[l.length-1].fiber===e?(l=l[l.length-1],l.distanceFromLeaf>t&&(l.distanceFromLeaf=t),l):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},l.push(t),t)}function _x(){tn&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function so(e,t){Ui||(e=mc(e,0),e.serverProps=null,t!==null&&(t=C1(t),e.serverTail.push(t)))}function wl(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,l="",u=cr;throw u!==null&&(cr=null,l=Ry(u)),jf(xo(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
88
|
+
|
|
89
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
90
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
91
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
92
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
93
|
+
- Invalid HTML tag nesting.
|
|
94
|
+
|
|
95
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
96
|
+
|
|
97
|
+
https://react.dev/link/hydration-mismatch`+l),e)),cE}function Zy(e){var t=e.stateNode,l=e.type,u=e.memoizedProps;switch(t[$n]=e,t[zo]=u,Do(l,u),l){case"dialog":Ct("cancel",t),Ct("close",t);break;case"iframe":case"object":case"embed":Ct("load",t);break;case"video":case"audio":for(l=0;l<dv.length;l++)Ct(dv[l],t);break;case"source":Ct("error",t);break;case"img":case"image":case"link":Ct("error",t),Ct("load",t);break;case"details":Ct("toggle",t);break;case"input":oo("input",u),Ct("invalid",t),vo(t,u),Mp(t,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"option":bx(t,u);break;case"select":oo("select",u),Ct("invalid",t),Rp(t,u);break;case"textarea":oo("textarea",u),Ct("invalid",t),tc(t,u),wu(t,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||u.suppressHydrationWarning===!0||Fb(t.textContent,l)?(u.popover!=null&&(Ct("beforetoggle",t),Ct("toggle",t)),u.onScroll!=null&&Ct("scroll",t),u.onScrollEnd!=null&&Ct("scrollend",t),u.onClick!=null&&(t.onclick=xl),t=!0):t=!1,t||wl(e,!0)}function Ky(e){for(_o=e.return;_o;)switch(_o.tag){case 5:case 31:case 13:os=!1;return;case 27:case 3:os=!0;return;default:_o=_o.return}}function pc(e){if(e!==_o)return!1;if(!tn)return Ky(e),tn=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||cd(e.type,e.memoizedProps)),l=!l),l&&Zn){for(l=Zn;l;){var u=mc(e,0),g=C1(l);u.serverTail.push(g),l=g.type==="Suspense"?fd(l):il(l.nextSibling)}wl(e)}if(Ky(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Zn=fd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Zn=fd(e)}else t===27?(t=Zn,Oi(e.type)?(e=WE,WE=null,Zn=e):Zn=t):Zn=_o?il(e.stateNode.nextSibling):null;return!0}function si(){Zn=_o=null,Ui=tn=!1}function Of(){var e=Ad;return e!==null&&(gl===null?gl=e:gl.push.apply(gl,e),Ad=null),e}function jf(e){Ad===null?Ad=[e]:Ad.push(e)}function ii(){var e=cr;if(e!==null){cr=null;for(var t=Ry(e);0<e.children.length;)e=e.children[0];fe(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
98
|
+
|
|
99
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
100
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
101
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
102
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
103
|
+
- Invalid HTML tag nesting.
|
|
104
|
+
|
|
105
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
106
|
+
|
|
107
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Au(){Cg=K1=null,Eg=!1}function Cl(e,t,l){q(uE,t._currentValue,e),t._currentValue=l,q(dE,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==zM&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=zM}function Xl(e,t){e._currentValue=uE.current;var l=dE.current;G(dE,t),e._currentRenderer=l,G(uE,t)}function $p(e,t,l){for(;e!==null;){var u=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,u!==null&&(u.childLanes|=t)):u!==null&&(u.childLanes&t)!==t&&(u.childLanes|=t),e===l)break;e=e.return}e!==l&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function xs(e,t,l,u){var g=e.child;for(g!==null&&(g.return=e);g!==null;){var b=g.dependencies;if(b!==null){var M=g.child;b=b.firstContext;e:for(;b!==null;){var _=b;b=g;for(var X=0;X<t.length;X++)if(_.context===t[X]){b.lanes|=l,_=b.alternate,_!==null&&(_.lanes|=l),$p(b.return,l,e),u||(M=null);break e}b=_.next}}else if(g.tag===18){if(M=g.return,M===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");M.lanes|=l,b=M.alternate,b!==null&&(b.lanes|=l),$p(M,l,e),M=null}else M=g.child;if(M!==null)M.return=g;else for(M=g;M!==null;){if(M===e){M=null;break}if(g=M.sibling,g!==null){g.return=M.return,M=g;break}M=M.return}g=M}}function Pl(e,t,l,u){e=null;for(var g=t,b=!1;g!==null;){if(!b){if((g.flags&524288)!==0)b=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var M=g.alternate;if(M===null)throw Error("Should have a current fiber. This is a bug in React.");if(M=M.memoizedProps,M!==null){var _=g.type;fl(g.pendingProps.value,M.value)||(e!==null?e.push(_):e=[_])}}else if(g===Ai.current){if(M=g.alternate,M===null)throw Error("Should have a current fiber. This is a bug in React.");M.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(e!==null?e.push(gv):e=[gv])}g=g.return}e!==null&&xs(t,e,l,u),t.flags|=262144}function zu(e){for(e=e.firstContext;e!==null;){if(!fl(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ci(e){K1=e,Cg=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function hn(e){return Eg&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Fy(K1,e)}function Df(e,t){return K1===null&&ci(e),Fy(e,t)}function Fy(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Cg===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Cg=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Cg=Cg.next=t;return l}function Qp(){return{controller:new r6,data:new Map,refCount:0}}function hc(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function kf(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&s6(i6,function(){e.controller.abort()})}function Rr(e,t,l){(e&127)!==0?0>Bi&&(Bi=Ha(),V0=F1(t),fE=t,l!=null&&(mE=Z(l)),(un&(to|fr))!==po&&(ha=!0,_d=L0),e=ud(),t=$r(),e!==Ng||t!==H0?Ng=-1.1:t!==null&&(_d=L0),Lm=e,H0=t):(e&4194048)!==0&&0>ls&&(ls=Ha(),I0=F1(t),_M=t,l!=null&&(UM=Z(l)),0>eu)&&(e=ud(),t=$r(),(e!==Bd||t!==Vm)&&(Bd=-1.1),Ud=e,Vm=t)}function Ux(e){if(0>Bi){Bi=Ha(),V0=e._debugTask!=null?e._debugTask:null,(un&(to|fr))!==po&&(_d=L0);var t=ud(),l=$r();t!==Ng||l!==H0?Ng=-1.1:l!==null&&(_d=L0),Lm=t,H0=l}0>ls&&(ls=Ha(),I0=e._debugTask!=null?e._debugTask:null,0>eu)&&(e=ud(),t=$r(),(e!==Bd||t!==Vm)&&(Bd=-1.1),Ud=e,Vm=t)}function Or(){var e=Um;return Um=0,e}function _u(e){var t=Um;return Um=e,t}function So(e){var t=Um;return Um+=e,t}function gc(){wt=yt=-1.1}function Gn(){var e=yt;return yt=-1.1,e}function ka(e){0<=e&&(yt=e)}function El(){var e=ia;return ia=-0,e}function Ko(e){0<=e&&(ia=e)}function Fo(){var e=na;return na=null,e}function Nl(){var e=ha;return ha=!1,e}function Ss(e){ml=Ha(),0>e.actualStartTime&&(e.actualStartTime=ml)}function Zp(e){if(0<=ml){var t=Ha()-ml;e.actualDuration+=t,e.selfBaseDuration=t,ml=-1}}function Af(e){if(0<=ml){var t=Ha()-ml;e.actualDuration+=t,ml=-1}}function wo(){if(0<=ml){var e=Ha(),t=e-ml;ml=-1,Um+=t,ia+=t,wt=e}}function Bx(e){na===null&&(na=[]),na.push(e),Wc===null&&(Wc=[]),Wc.push(e)}function la(){ml=Ha(),0>yt&&(yt=ml)}function yc(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function ws(e,t){if(q0===null){var l=q0=[];hE=0,Hm=Kb(),Tg={status:"pending",value:void 0,then:function(u){l.push(u)}}}return hE++,t.then(Wy,Wy),t}function Wy(){if(--hE===0&&(-1<ls||(eu=-1.1),q0!==null)){Tg!==null&&(Tg.status="fulfilled");var e=q0;q0=null,Hm=0,Tg=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Kp(e,t){var l=[],u={status:"pending",value:null,reason:null,then:function(g){l.push(g)}};return e.then(function(){u.status="fulfilled",u.value=t;for(var g=0;g<l.length;g++)(0,l[g])(t)},function(g){for(u.status="rejected",u.reason=g,g=0;g<l.length;g++)(0,l[g])(void 0)}),u}function Cs(){var e=Im.current;return e!==null?e:Ln.pooledCache}function Uu(e,t){t===null?q(Im,Im.current,e):q(Im,t.pool,e)}function Jy(){var e=Cs();return e===null?null:{parent:Va._currentValue,pool:e}}function Fp(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function eb(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Wo(e,t,l){Ve.actQueue!==null&&(Ve.didUsePromise=!0);var u=e.thenables;if(l=u[l],l===void 0?u.push(t):l!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(xl,xl),t=l),t._debugInfo===void 0){e=performance.now(),u=t.displayName;var g={name:typeof u=="string"?u:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:g}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){g.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zf(e),e;default:if(typeof t.status=="string")t.then(xl,xl);else{if(e=Ln,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(b){if(t.status==="pending"){var M=t;M.status="fulfilled",M.value=b}},function(b){if(t.status==="pending"){var M=t;M.status="rejected",M.reason=b}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zf(e),e}throw qm=t,K0=!0,Mg}}function Jo(e){try{return m6(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(qm=t,K0=!0,Mg):t}}function bc(){if(qm===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=qm;return qm=null,K0=!1,e}function zf(e){if(e===Mg||e===lS)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function ua(e){var t=Xt;return e!=null&&(Xt=t===null?e:t.concat(e)),t}function Bo(){var e=Xt;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var l=e[t].debugTask;if(l!=null)return l}}return null}function Co(e,t,l){for(var u=Object.keys(e.props),g=0;g<u.length;g++){var b=u[g];if(b!=="children"&&b!=="key"){t===null&&(t=li(e,l.mode,0),t._debugInfo=Xt,t.return=l),fe(t,function(M){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",M)},b);break}}}function $l(e){var t=F0;return F0+=1,Rg===null&&(Rg=Fp()),Wo(Rg,e,t)}function Lo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ql(e,t){throw t.$$typeof===A1?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
108
|
+
- Multiple copies of the "react" package is used.
|
|
109
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
110
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function Tl(e,t){var l=Bo();l!==null?l.run(Ql.bind(null,e,t)):Ql(e,t)}function tb(e,t){var l=Z(e)||"Component";nR[l]||(nR[l]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
111
|
+
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
112
|
+
<%s>{%s}</%s>`,t,t,l,t,l))}function Bu(e,t){var l=Bo();l!==null?l.run(tb.bind(null,e,t)):tb(e,t)}function Wp(e,t){var l=Z(e)||"Component";aR[l]||(aR[l]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
113
|
+
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
114
|
+
<%s>%s</%s>`,l,t,l))}function _f(e,t){var l=Bo();l!==null?l.run(Wp.bind(null,e,t)):Wp(e,t)}function Aa(e){function t(me,ge){if(e){var xe=me.deletions;xe===null?(me.deletions=[ge],me.flags|=16):xe.push(ge)}}function l(me,ge){if(!e)return null;for(;ge!==null;)t(me,ge),ge=ge.sibling;return null}function u(me){for(var ge=new Map;me!==null;)me.key!==null?ge.set(me.key,me):ge.set(me.index,me),me=me.sibling;return ge}function g(me,ge){return me=Mr(me,ge),me.index=0,me.sibling=null,me}function b(me,ge,xe){return me.index=xe,e?(xe=me.alternate,xe!==null?(xe=xe.index,xe<ge?(me.flags|=67108866,ge):xe):(me.flags|=67108866,ge)):(me.flags|=1048576,ge)}function M(me){return e&&me.alternate===null&&(me.flags|=67108866),me}function _(me,ge,xe,qe){return ge===null||ge.tag!==6?(ge=ku(xe,me.mode,qe),ge.return=me,ge._debugOwner=me,ge._debugTask=me._debugTask,ge._debugInfo=Xt,ge):(ge=g(ge,xe),ge.return=me,ge._debugInfo=Xt,ge)}function X(me,ge,xe,qe){var et=xe.type;return et===yd?(ge=Ee(me,ge,xe.props.children,qe,xe.key),Co(xe,ge,me),ge):ge!==null&&(ge.elementType===et||Gy(ge,xe)||typeof et=="object"&&et!==null&&et.$$typeof===co&&Jo(et)===ge.type)?(ge=g(ge,xe.props),Lo(ge,xe),ge.return=me,ge._debugOwner=xe._owner,ge._debugInfo=Xt,ge):(ge=li(xe,me.mode,qe),Lo(ge,xe),ge.return=me,ge._debugInfo=Xt,ge)}function J(me,ge,xe,qe){return ge===null||ge.tag!==4||ge.stateNode.containerInfo!==xe.containerInfo||ge.stateNode.implementation!==xe.implementation?(ge=Gp(xe,me.mode,qe),ge.return=me,ge._debugInfo=Xt,ge):(ge=g(ge,xe.children||[]),ge.return=me,ge._debugInfo=Xt,ge)}function Ee(me,ge,xe,qe,et){return ge===null||ge.tag!==7?(ge=fc(xe,me.mode,qe,et),ge.return=me,ge._debugOwner=me,ge._debugTask=me._debugTask,ge._debugInfo=Xt,ge):(ge=g(ge,xe),ge.return=me,ge._debugInfo=Xt,ge)}function Te(me,ge,xe){if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return ge=ku(""+ge,me.mode,xe),ge.return=me,ge._debugOwner=me,ge._debugTask=me._debugTask,ge._debugInfo=Xt,ge;if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case Dl:return xe=li(ge,me.mode,xe),Lo(xe,ge),xe.return=me,me=ua(ge._debugInfo),xe._debugInfo=Xt,Xt=me,xe;case Di:return ge=Gp(ge,me.mode,xe),ge.return=me,ge._debugInfo=Xt,ge;case co:var qe=ua(ge._debugInfo);return ge=Jo(ge),me=Te(me,ge,xe),Xt=qe,me}if(xa(ge)||V(ge))return xe=fc(ge,me.mode,xe,null),xe.return=me,xe._debugOwner=me,xe._debugTask=me._debugTask,me=ua(ge._debugInfo),xe._debugInfo=Xt,Xt=me,xe;if(typeof ge.then=="function")return qe=ua(ge._debugInfo),me=Te(me,$l(ge),xe),Xt=qe,me;if(ge.$$typeof===rr)return Te(me,Df(me,ge),xe);Tl(me,ge)}return typeof ge=="function"&&Bu(me,ge),typeof ge=="symbol"&&_f(me,ge),null}function pe(me,ge,xe,qe){var et=ge!==null?ge.key:null;if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return et!==null?null:_(me,ge,""+xe,qe);if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case Dl:return xe.key===et?(et=ua(xe._debugInfo),me=X(me,ge,xe,qe),Xt=et,me):null;case Di:return xe.key===et?J(me,ge,xe,qe):null;case co:return et=ua(xe._debugInfo),xe=Jo(xe),me=pe(me,ge,xe,qe),Xt=et,me}if(xa(xe)||V(xe))return et!==null?null:(et=ua(xe._debugInfo),me=Ee(me,ge,xe,qe,null),Xt=et,me);if(typeof xe.then=="function")return et=ua(xe._debugInfo),me=pe(me,ge,$l(xe),qe),Xt=et,me;if(xe.$$typeof===rr)return pe(me,ge,Df(me,xe),qe);Tl(me,xe)}return typeof xe=="function"&&Bu(me,xe),typeof xe=="symbol"&&_f(me,xe),null}function Be(me,ge,xe,qe,et){if(typeof qe=="string"&&qe!==""||typeof qe=="number"||typeof qe=="bigint")return me=me.get(xe)||null,_(ge,me,""+qe,et);if(typeof qe=="object"&&qe!==null){switch(qe.$$typeof){case Dl:return xe=me.get(qe.key===null?xe:qe.key)||null,me=ua(qe._debugInfo),ge=X(ge,xe,qe,et),Xt=me,ge;case Di:return me=me.get(qe.key===null?xe:qe.key)||null,J(ge,me,qe,et);case co:var At=ua(qe._debugInfo);return qe=Jo(qe),ge=Be(me,ge,xe,qe,et),Xt=At,ge}if(xa(qe)||V(qe))return xe=me.get(xe)||null,me=ua(qe._debugInfo),ge=Ee(ge,xe,qe,et,null),Xt=me,ge;if(typeof qe.then=="function")return At=ua(qe._debugInfo),ge=Be(me,ge,xe,$l(qe),et),Xt=At,ge;if(qe.$$typeof===rr)return Be(me,ge,xe,Df(ge,qe),et);Tl(ge,qe)}return typeof qe=="function"&&Bu(ge,qe),typeof qe=="symbol"&&_f(ge,qe),null}function Je(me,ge,xe,qe){if(typeof xe!="object"||xe===null)return qe;switch(xe.$$typeof){case Dl:case Di:C(me,ge,xe);var et=xe.key;if(typeof et!="string")break;if(qe===null){qe=new Set,qe.add(et);break}if(!qe.has(et)){qe.add(et);break}fe(ge,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",et)});break;case co:xe=Jo(xe),Je(me,ge,xe,qe)}return qe}function nt(me,ge,xe,qe){for(var et=null,At=null,gt=null,mt=ge,It=ge=0,Kn=null;mt!==null&&It<xe.length;It++){mt.index>It?(Kn=mt,mt=null):Kn=mt.sibling;var Oa=pe(me,mt,xe[It],qe);if(Oa===null){mt===null&&(mt=Kn);break}et=Je(me,Oa,xe[It],et),e&&mt&&Oa.alternate===null&&t(me,mt),ge=b(Oa,ge,It),gt===null?At=Oa:gt.sibling=Oa,gt=Oa,mt=Kn}if(It===xe.length)return l(me,mt),tn&&Gl(me,It),At;if(mt===null){for(;It<xe.length;It++)mt=Te(me,xe[It],qe),mt!==null&&(et=Je(me,mt,xe[It],et),ge=b(mt,ge,It),gt===null?At=mt:gt.sibling=mt,gt=mt);return tn&&Gl(me,It),At}for(mt=u(mt);It<xe.length;It++)Kn=Be(mt,me,It,xe[It],qe),Kn!==null&&(et=Je(me,Kn,xe[It],et),e&&Kn.alternate!==null&&mt.delete(Kn.key===null?It:Kn.key),ge=b(Kn,ge,It),gt===null?At=Kn:gt.sibling=Kn,gt=Kn);return e&&mt.forEach(function(iu){return t(me,iu)}),tn&&Gl(me,It),At}function Yn(me,ge,xe,qe){if(xe==null)throw Error("An iterable object provided no iterator.");for(var et=null,At=null,gt=ge,mt=ge=0,It=null,Kn=null,Oa=xe.next();gt!==null&&!Oa.done;mt++,Oa=xe.next()){gt.index>mt?(It=gt,gt=null):It=gt.sibling;var iu=pe(me,gt,Oa.value,qe);if(iu===null){gt===null&&(gt=It);break}Kn=Je(me,iu,Oa.value,Kn),e&>&&iu.alternate===null&&t(me,gt),ge=b(iu,ge,mt),At===null?et=iu:At.sibling=iu,At=iu,gt=It}if(Oa.done)return l(me,gt),tn&&Gl(me,mt),et;if(gt===null){for(;!Oa.done;mt++,Oa=xe.next())gt=Te(me,Oa.value,qe),gt!==null&&(Kn=Je(me,gt,Oa.value,Kn),ge=b(gt,ge,mt),At===null?et=gt:At.sibling=gt,At=gt);return tn&&Gl(me,mt),et}for(gt=u(gt);!Oa.done;mt++,Oa=xe.next())It=Be(gt,me,mt,Oa.value,qe),It!==null&&(Kn=Je(me,It,Oa.value,Kn),e&&It.alternate!==null&>.delete(It.key===null?mt:It.key),ge=b(It,ge,mt),At===null?et=It:At.sibling=It,At=It);return e&>.forEach(function(B6){return t(me,B6)}),tn&&Gl(me,mt),et}function on(me,ge,xe,qe){if(typeof xe=="object"&&xe!==null&&xe.type===yd&&xe.key===null&&(Co(xe,null,me),xe=xe.props.children),typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case Dl:var et=ua(xe._debugInfo);e:{for(var At=xe.key;ge!==null;){if(ge.key===At){if(At=xe.type,At===yd){if(ge.tag===7){l(me,ge.sibling),qe=g(ge,xe.props.children),qe.return=me,qe._debugOwner=xe._owner,qe._debugInfo=Xt,Co(xe,qe,me),me=qe;break e}}else if(ge.elementType===At||Gy(ge,xe)||typeof At=="object"&&At!==null&&At.$$typeof===co&&Jo(At)===ge.type){l(me,ge.sibling),qe=g(ge,xe.props),Lo(qe,xe),qe.return=me,qe._debugOwner=xe._owner,qe._debugInfo=Xt,me=qe;break e}l(me,ge);break}else t(me,ge);ge=ge.sibling}xe.type===yd?(qe=fc(xe.props.children,me.mode,qe,xe.key),qe.return=me,qe._debugOwner=me,qe._debugTask=me._debugTask,qe._debugInfo=Xt,Co(xe,qe,me),me=qe):(qe=li(xe,me.mode,qe),Lo(qe,xe),qe.return=me,qe._debugInfo=Xt,me=qe)}return me=M(me),Xt=et,me;case Di:e:{for(et=xe,xe=et.key;ge!==null;){if(ge.key===xe)if(ge.tag===4&&ge.stateNode.containerInfo===et.containerInfo&&ge.stateNode.implementation===et.implementation){l(me,ge.sibling),qe=g(ge,et.children||[]),qe.return=me,me=qe;break e}else{l(me,ge);break}else t(me,ge);ge=ge.sibling}qe=Gp(et,me.mode,qe),qe.return=me,me=qe}return M(me);case co:return et=ua(xe._debugInfo),xe=Jo(xe),me=on(me,ge,xe,qe),Xt=et,me}if(xa(xe))return et=ua(xe._debugInfo),me=nt(me,ge,xe,qe),Xt=et,me;if(V(xe)){if(et=ua(xe._debugInfo),At=V(xe),typeof At!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var gt=At.call(xe);return gt===xe?(me.tag!==0||Object.prototype.toString.call(me.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(gt)!=="[object Generator]")&&(eR||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),eR=!0):xe.entries!==At||vE||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),vE=!0),me=Yn(me,ge,gt,qe),Xt=et,me}if(typeof xe.then=="function")return et=ua(xe._debugInfo),me=on(me,ge,$l(xe),qe),Xt=et,me;if(xe.$$typeof===rr)return on(me,ge,Df(me,xe),qe);Tl(me,xe)}return typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint"?(et=""+xe,ge!==null&&ge.tag===6?(l(me,ge.sibling),qe=g(ge,et),qe.return=me,me=qe):(l(me,ge),qe=ku(et,me.mode,qe),qe.return=me,qe._debugOwner=me,qe._debugTask=me._debugTask,qe._debugInfo=Xt,me=qe),M(me)):(typeof xe=="function"&&Bu(me,xe),typeof xe=="symbol"&&_f(me,xe),l(me,ge))}return function(me,ge,xe,qe){var et=Xt;Xt=null;try{F0=0;var At=on(me,ge,xe,qe);return Rg=null,At}catch(Kn){if(Kn===Mg||Kn===lS)throw Kn;var gt=N(29,Kn,null,me.mode);gt.lanes=qe,gt.return=me;var mt=gt._debugInfo=Xt;if(gt._debugOwner=me._debugOwner,gt._debugTask=me._debugTask,mt!=null){for(var It=mt.length-1;0<=It;It--)if(typeof mt[It].stack=="string"){gt._debugOwner=mt[It],gt._debugTask=mt[It].debugTask;break}}return gt}finally{Xt=et}}}function zn(e,t){var l=xa(e);return e=!l&&typeof V(e)=="function",l||e?(l=l?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",l,t,l),!1):!0}function Wt(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ca(e){return{lane:e,tag:lR,payload:null,callback:null,next:null}}function Dr(e,t,l){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,SE===u&&!iR){var g=Z(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
115
|
+
|
|
116
|
+
Please update the following component: %s`,g),iR=!0}return(un&to)!==po?(g=u.pending,g===null?t.next=t:(t.next=g.next,g.next=t),u.pending=t,t=Rf(e),qy(e,null,l),t):(Du(e,u,t,l),Rf(e))}function Ml(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var u=t.lanes;u&=e.pendingLanes,l|=u,t.lanes=l,Ft(e,l)}}function Uf(e,t){var l=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var g=null,b=null;if(l=l.firstBaseUpdate,l!==null){do{var M={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};b===null?g=b=M:b=b.next=M,l=l.next}while(l!==null);b===null?g=b=t:b=b.next=t}else g=b=t;l={baseState:u.baseState,firstBaseUpdate:g,lastBaseUpdate:b,shared:u.shared,callbacks:u.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}function Lu(){if(wE){var e=Tg;if(e!==null)throw e}}function kr(e,t,l,u){wE=!1;var g=e.updateQueue;Ld=!1,SE=g.shared;var b=g.firstBaseUpdate,M=g.lastBaseUpdate,_=g.shared.pending;if(_!==null){g.shared.pending=null;var X=_,J=X.next;X.next=null,M===null?b=J:M.next=J,M=X;var Ee=e.alternate;Ee!==null&&(Ee=Ee.updateQueue,_=Ee.lastBaseUpdate,_!==M&&(_===null?Ee.firstBaseUpdate=J:_.next=J,Ee.lastBaseUpdate=X))}if(b!==null){var Te=g.baseState;M=0,Ee=J=X=null,_=b;do{var pe=_.lane&-536870913,Be=pe!==_.lane;if(Be?(Pt&pe)===pe:(u&pe)===pe){pe!==0&&pe===Hm&&(wE=!0),Ee!==null&&(Ee=Ee.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{pe=e;var Je=_,nt=t,Yn=l;switch(Je.tag){case rR:if(Je=Je.payload,typeof Je=="function"){Eg=!0;var on=Je.call(Yn,Te,nt);if(pe.mode&Xo){Re(!0);try{Je.call(Yn,Te,nt)}finally{Re(!1)}}Eg=!1,Te=on;break e}Te=Je;break e;case xE:pe.flags=pe.flags&-65537|128;case lR:if(on=Je.payload,typeof on=="function"){if(Eg=!0,Je=on.call(Yn,Te,nt),pe.mode&Xo){Re(!0);try{on.call(Yn,Te,nt)}finally{Re(!1)}}Eg=!1}else Je=on;if(Je==null)break e;Te=qt({},Te,Je);break e;case sR:Ld=!0}}pe=_.callback,pe!==null&&(e.flags|=64,Be&&(e.flags|=8192),Be=g.callbacks,Be===null?g.callbacks=[pe]:Be.push(pe))}else Be={lane:pe,tag:_.tag,payload:_.payload,callback:_.callback,next:null},Ee===null?(J=Ee=Be,X=Te):Ee=Ee.next=Be,M|=pe;if(_=_.next,_===null){if(_=g.shared.pending,_===null)break;Be=_,_=Be.next,Be.next=null,g.lastBaseUpdate=Be,g.shared.pending=null}}while(!0);Ee===null&&(X=Te),g.baseState=X,g.firstBaseUpdate=J,g.lastBaseUpdate=Ee,b===null&&(g.shared.lanes=0),Id|=M,e.lanes=M,e.memoizedState=Te}SE=null}function ui(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function nb(e,t){var l=e.shared.hiddenCallbacks;if(l!==null)for(e.shared.hiddenCallbacks=null,e=0;e<l.length;e++)ui(l[e],t)}function Vu(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)ui(l[e],t)}function Jp(e,t){var l=Vi;q(sS,l,e),q(Og,t,e),Vi=l|t.baseLanes}function Es(e){q(sS,Vi,e),q(Og,Og.current,e)}function Zl(e){Vi=sS.current,G(Og,e),G(sS,e)}function Eo(e){var t=e.alternate;q(Ra,Ra.current&jg,e),q(ur,e,e),rs===null&&(t===null||Og.current!==null||t.memoizedState!==null)&&(rs=e)}function Kl(e){q(Ra,Ra.current,e),q(ur,e,e),rs===null&&(rs=e)}function eh(e){e.tag===22?(q(Ra,Ra.current,e),q(ur,e,e),rs===null&&(rs=e)):Ar(e)}function Ar(e){q(Ra,Ra.current,e),q(ur,ur.current,e)}function za(e){G(ur,e),rs===e&&(rs=null),G(Ra,e)}function vc(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||bm(l)||Jb(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Dt(){var e=Le;is===null?is=[e]:is.push(e)}function Pe(){var e=Le;if(is!==null&&(au++,is[au]!==e)){var t=Z(kt);if(!cR.has(t)&&(cR.add(t),is!==null)){for(var l="",u=0;u<=au;u++){var g=is[u],b=u===au?e:g;for(g=u+1+". "+g;30>g.length;)g+=" ";g+=b+`
|
|
117
|
+
`,l+=g}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
118
|
+
|
|
119
|
+
Previous render Next render
|
|
120
|
+
------------------------------------------------------
|
|
121
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
122
|
+
`,t,l)}}}function Ns(e){e==null||xa(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Le,typeof e)}function Bf(){var e=Z(kt);dR.has(e)||(dR.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function ra(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
123
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
124
|
+
2. You might be breaking the Rules of Hooks
|
|
125
|
+
3. You might have more than one copy of React in the same app
|
|
126
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function ab(e,t){if(ev)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Le),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
127
|
+
|
|
128
|
+
Previous: %s
|
|
129
|
+
Incoming: %s`,Le,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var l=0;l<t.length&&l<e.length;l++)if(!fl(e[l],t[l]))return!1;return!0}function ob(e,t,l,u,g,b){tu=b,kt=t,is=e!==null?e._debugHookTypes:null,au=-1,ev=e!==null&&e.type!==t.type,(Object.prototype.toString.call(l)==="[object AsyncFunction]"||Object.prototype.toString.call(l)==="[object AsyncGeneratorFunction]")&&(b=Z(kt),CE.has(b)||(CE.add(b),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",b===null?"An unknown Component":"<"+b+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ve.H=e!==null&&e.memoizedState!==null?NE:is!==null?fR:EE,Xm=b=(t.mode&Xo)!==Et;var M=gE(l,u,g);if(Xm=!1,kg&&(M=Lf(t,l,u,g)),b){Re(!0);try{M=Lf(t,l,u,g)}finally{Re(!1)}}return da(e,t),M}function da(e,t){t._debugHookTypes=is,t.dependencies===null?nu!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:nu}):t.dependencies._debugThenableState=nu,Ve.H=tv;var l=Bn!==null&&Bn.next!==null;if(tu=0,is=Le=Ia=Bn=kt=null,au=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),cS=!1,J0=0,nu=null,l)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Ya||(e=e.dependencies,e!==null&&zu(e)&&(Ya=!0)),K0?(K0=!1,e=!0):e=!1,e&&(t=Z(t)||"Unknown",uR.has(t)||CE.has(t)||(uR.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Lf(e,t,l,u){kt=e;var g=0;do{if(kg&&(nu=null),J0=0,kg=!1,g>=h6)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(g+=1,ev=!1,Ia=Bn=null,e.updateQueue!=null){var b=e.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}au=-1,Ve.H=mR,b=gE(t,l,u)}while(kg);return b}function Vf(){var e=Ve.H,t=e.useState()[0];return t=typeof t.then=="function"?Yf(t):t,e=e.useState()[0],(Bn!==null?Bn.memoizedState:null)!==e&&(kt.flags|=1024),t}function xc(){var e=uS!==0;return uS=0,e}function Hf(e,t,l){t.updateQueue=e.updateQueue,t.flags=(t.mode&Hs)!==Et?t.flags&-402655237:t.flags&-2053,e.lanes&=~l}function di(e){if(cS){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cS=!1}tu=0,is=Ia=Bn=kt=null,au=-1,Le=null,kg=!1,J0=uS=0,nu=null}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ia===null?kt.memoizedState=Ia=e:Ia=Ia.next=e,Ia}function xn(){if(Bn===null){var e=kt.alternate;e=e!==null?e.memoizedState:null}else e=Bn.next;var t=Ia===null?kt.memoizedState:Ia.next;if(t!==null)Ia=t,Bn=e;else{if(e===null)throw kt.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Bn=e,e={memoizedState:Bn.memoizedState,baseState:Bn.baseState,baseQueue:Bn.baseQueue,queue:Bn.queue,next:null},Ia===null?kt.memoizedState=Ia=e:Ia=Ia.next=e}return Ia}function If(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yf(e){var t=J0;return J0+=1,nu===null&&(nu=Fp()),e=Wo(nu,e,t),t=kt,(Ia===null?t.memoizedState:Ia.next)===null&&(t=t.alternate,Ve.H=t!==null&&t.memoizedState!==null?NE:EE),e}function Ts(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Yf(e);if(e.$$typeof===rr)return hn(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function el(e){var t=null,l=kt.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var u=kt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(t={data:u.data.map(function(g){return g.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=If(),kt.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0||ev)for(l=t.data[t.index]=Array(e),u=0;u<e;u++)l[u]=qC;else l.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",l.length,e);return t.index++,l}function tl(e,t){return typeof t=="function"?t(e):t}function Hu(e,t,l){var u=ba();if(l!==void 0){var g=l(t);if(Xm){Re(!0);try{l(t)}finally{Re(!1)}}}else g=t;return u.memoizedState=u.baseState=g,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:g},u.queue=e,e=e.dispatch=LC.bind(null,kt,e),[u.memoizedState,e]}function Sc(e){var t=xn();return fi(t,Bn,e)}function fi(e,t,l){var u=e.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=l;var g=e.baseQueue,b=u.pending;if(b!==null){if(g!==null){var M=g.next;g.next=b.next,b.next=M}t.baseQueue!==g&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=g=b,u.pending=null}if(b=e.baseState,g===null)e.memoizedState=b;else{t=g.next;var _=M=null,X=null,J=t,Ee=!1;do{var Te=J.lane&-536870913;if(Te!==J.lane?(Pt&Te)===Te:(tu&Te)===Te){var pe=J.revertLane;if(pe===0)X!==null&&(X=X.next={lane:0,revertLane:0,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),Te===Hm&&(Ee=!0);else if((tu&pe)===pe){J=J.next,pe===Hm&&(Ee=!0);continue}else Te={lane:0,revertLane:J.revertLane,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},X===null?(_=X=Te,M=b):X=X.next=Te,kt.lanes|=pe,Id|=pe;Te=J.action,Xm&&l(b,Te),b=J.hasEagerState?J.eagerState:l(b,Te)}else pe={lane:Te,revertLane:J.revertLane,gesture:J.gesture,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},X===null?(_=X=pe,M=b):X=X.next=pe,kt.lanes|=Te,Id|=Te;J=J.next}while(J!==null&&J!==t);if(X===null?M=b:X.next=_,!fl(b,e.memoizedState)&&(Ya=!0,Ee&&(l=Tg,l!==null)))throw l;e.memoizedState=b,e.baseState=M,e.baseQueue=X,u.lastRenderedState=b}return g===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function wc(e){var t=xn(),l=t.queue;if(l===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");l.lastRenderedReducer=e;var u=l.dispatch,g=l.pending,b=t.memoizedState;if(g!==null){l.pending=null;var M=g=g.next;do b=e(b,M.action),M=M.next;while(M!==g);fl(b,t.memoizedState)||(Ya=!0),t.memoizedState=b,t.baseQueue===null&&(t.baseState=b),l.lastRenderedState=b}return[b,u]}function Iu(e,t,l){var u=kt,g=ba();if(tn){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var b=l();Dg||b===l()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Dg=!0)}else{if(b=t(),Dg||(l=t(),fl(b,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Dg=!0)),Ln===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Pt&127)!==0||lb(u,t,b)}return g.memoizedState=b,l={value:b,getSnapshot:t},g.queue=l,Nc(mi.bind(null,u,l,e),[e]),u.flags|=2048,zr(ss|hl,{destroy:void 0},rb.bind(null,u,l,b,t),null),b}function Cc(e,t,l){var u=kt,g=xn(),b=tn;if(b){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");l=l()}else if(l=t(),!Dg){var M=t();fl(l,M)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Dg=!0)}(M=!fl((Bn||g).memoizedState,l))&&(g.memoizedState=l,Ya=!0),g=g.queue;var _=mi.bind(null,u,g,e);if(Ea(2048,hl,_,[e]),g.getSnapshot!==t||M||Ia!==null&&Ia.memoizedState.tag&ss){if(u.flags|=2048,zr(ss|hl,{destroy:void 0},rb.bind(null,u,g,l,t),null),Ln===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");b||(tu&127)!==0||lb(u,t,l)}return l}function lb(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=kt.updateQueue,t===null?(t=If(),kt.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function rb(e,t,l,u){t.value=l,t.getSnapshot=u,pi(t)&&sb(e)}function mi(e,t,l){return l(function(){pi(t)&&(Rr(2,"updateSyncExternalStore()",e),sb(e))})}function pi(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!fl(e,l)}catch{return!0}}function sb(e){var t=ro(e,2);t!==null&&Ot(t,e,2)}function th(e){var t=ba();if(typeof e=="function"){var l=e;if(e=l(),Xm){Re(!0);try{l()}finally{Re(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:e},t}function hi(e){e=th(e);var t=e.queue,l=sh.bind(null,kt,t);return t.dispatch=l,[e.memoizedState,l]}function Ec(e){var t=ba();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Zf.bind(null,kt,!0,l),l.dispatch=t,[e,t]}function qf(e,t){var l=xn();return Yu(l,Bn,e,t)}function Yu(e,t,l,u){return e.baseState=l,fi(e,Bn,typeof u=="function"?u:tl)}function Gf(e,t){var l=xn();return Bn!==null?Yu(l,Bn,e,t):(l.baseState=e,[e,l.queue.dispatch])}function Lx(e,t,l,u,g){if(_a(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var b={payload:g,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){b.listeners.push(M)}};Ve.T!==null?l(!0):b.isTransition=!1,u(b),l=t.pending,l===null?(b.next=t.pending=b,gi(t,b)):(b.next=l.next,t.pending=l.next=b)}}function gi(e,t){var l=t.action,u=t.payload,g=e.state;if(t.isTransition){var b=Ve.T,M={};M._updatedFibers=new Set,Ve.T=M;try{var _=l(g,u),X=Ve.S;X!==null&&X(M,_),ib(e,t,_)}catch(J){Xf(e,t,J)}finally{b!==null&&M.types!==null&&(b.types!==null&&b.types!==M.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),b.types=M.types),Ve.T=b,b===null&&M._updatedFibers&&(e=M._updatedFibers.size,M._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{M=l(g,u),ib(e,t,M)}catch(J){Xf(e,t,J)}}function ib(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ve.asyncTransitions++,l.then(Tc,Tc),l.then(function(u){Ms(e,t,u)},function(u){return Xf(e,t,u)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Ms(e,t,l)}function Ms(e,t,l){t.status="fulfilled",t.value=l,nh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,gi(e,l)))}function Xf(e,t,l){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do t.status="rejected",t.reason=l,nh(t),t=t.next;while(t!==u)}e.action=null}function nh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Rs(e,t){return t}function nl(e,t){if(tn){var l=Ln.formState;if(l!==null){e:{var u=kt;if(tn){if(Zn){t:{for(var g=Zn,b=os;g.nodeType!==8;){if(!b){g=null;break t}if(g=il(g.nextSibling),g===null){g=null;break t}}b=g.data,g=b===QE||b===WR?g:null}if(g){Zn=il(g.nextSibling),u=g.data===QE;break e}}wl(u)}u=!1}u&&(t=l[0])}}return l=ba(),l.memoizedState=l.baseState=t,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rs,lastRenderedState:t},l.queue=u,l=sh.bind(null,kt,u),u.dispatch=l,u=th(!1),b=Zf.bind(null,kt,!1,u.queue),u=ba(),g={state:t,dispatch:null,action:e,pending:null},u.queue=g,l=Lx.bind(null,kt,g,b,l),g.dispatch=l,u.memoizedState=e,[t,l,!1]}function yi(e){var t=xn();return ah(t,Bn,e)}function ah(e,t,l){if(t=fi(e,t,Rs)[0],e=Sc(tl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var u=Yf(t)}catch(M){throw M===Mg?lS:M}else u=t;t=xn();var g=t.queue,b=g.dispatch;return l!==t.memoizedState&&(kt.flags|=2048,zr(ss|hl,{destroy:void 0},cb.bind(null,g,l),null)),[u,b,e]}function cb(e,t){e.action=t}function bi(e){var t=xn(),l=Bn;if(l!==null)return ah(t,l,e);xn(),t=t.memoizedState,l=xn();var u=l.queue.dispatch;return l.memoizedState=e,[t,u,!1]}function zr(e,t,l,u){return e={tag:e,create:l,deps:u,inst:t,next:null},t=kt.updateQueue,t===null&&(t=If(),kt.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(u=l.next,l.next=e,e.next=u,t.lastEffect=e),e}function oh(e){var t=ba();return e={current:e},t.memoizedState=e}function vi(e,t,l,u){var g=ba();kt.flags|=e,g.memoizedState=zr(ss|t,{destroy:void 0},l,u===void 0?null:u)}function Ea(e,t,l,u){var g=xn();u=u===void 0?null:u;var b=g.memoizedState.inst;Bn!==null&&u!==null&&ab(u,Bn.memoizedState.deps)?g.memoizedState=zr(t,b,l,u):(kt.flags|=e,g.memoizedState=zr(ss|t,b,l,u))}function Nc(e,t){(kt.mode&Hs)!==Et?vi(276826112,hl,e,t):vi(8390656,hl,e,t)}function Vx(e){kt.flags|=4;var t=kt.updateQueue;if(t===null)t=If(),kt.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Pf(e){var t=ba(),l={impl:e};return t.memoizedState=l,function(){if((un&to)!==po)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return l.impl.apply(void 0,arguments)}}function qu(e){var t=xn().memoizedState;return Vx({ref:t,nextImpl:e}),function(){if((un&to)!==po)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function No(e,t){var l=4194308;return(kt.mode&Hs)!==Et&&(l|=134217728),vi(l,dr,e,t)}function al(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function _r(e,t,l){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),l=l!=null?l.concat([e]):null;var u=4194308;(kt.mode&Hs)!==Et&&(u|=134217728),vi(u,dr,al.bind(null,t,e),l)}function Gu(e,t,l){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),l=l!=null?l.concat([e]):null,Ea(4,dr,al.bind(null,t,e),l)}function lh(e,t){return ba().memoizedState=[e,t===void 0?null:t],e}function Fl(e,t){var l=xn();t=t===void 0?null:t;var u=l.memoizedState;return t!==null&&ab(t,u[1])?u[0]:(l.memoizedState=[e,t],e)}function To(e,t){var l=ba();t=t===void 0?null:t;var u=e();if(Xm){Re(!0);try{e()}finally{Re(!1)}}return l.memoizedState=[u,t],u}function Xn(e,t){var l=xn();t=t===void 0?null:t;var u=l.memoizedState;if(t!==null&&ab(t,u[1]))return u[0];if(u=e(),Xm){Re(!0);try{e()}finally{Re(!1)}}return l.memoizedState=[u,t],u}function Xu(e,t){var l=ba();return Sn(l,e,t)}function Ur(e,t){var l=xn();return fa(l,Bn.memoizedState,e,t)}function Bt(e,t){var l=xn();return Bn===null?Sn(l,e,t):fa(l,Bn.memoizedState,e,t)}function Sn(e,t,l){return l===void 0||(tu&1073741824)!==0&&(Pt&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Ju(),kt.lanes|=e,Id|=e,l)}function fa(e,t,l,u){return fl(l,t)?l:Og.current!==null?(e=Sn(e,l,u),fl(e,t)||(Ya=!0),e):(tu&42)===0||(tu&1073741824)!==0&&(Pt&261930)===0?(Ya=!0,e.memoizedState=l):(e=Ju(),kt.lanes|=e,Id|=e,t)}function Tc(){Ve.asyncTransitions--}function Mc(e,t,l,u,g){var b=yn.p;yn.p=b!==0&&b<Ja?b:Ja;var M=Ve.T,_={};_._updatedFibers=new Set,Ve.T=_,Zf(e,!1,t,l);try{var X=g(),J=Ve.S;if(J!==null&&J(_,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){Ve.asyncTransitions++,X.then(Tc,Tc);var Ee=Kp(X,u);Rc(e,t,Ee,io(e))}else Rc(e,t,u,io(e))}catch(Te){Rc(e,t,{then:function(){},status:"rejected",reason:Te},io(e))}finally{yn.p=b,M!==null&&_.types!==null&&(M.types!==null&&M.types!==_.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),M.types=_.types),Ve.T=M,M===null&&_._updatedFibers&&(e=_._updatedFibers.size,_._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Os(e,t,l,u){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var g=$f(e).queue;Ux(e),Mc(e,g,t,np,l===null?x:function(){return Pu(e),l(u)})}function $f(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:np,baseState:np,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:np},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Pu(e){Ve.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=$f(e);t.next===null&&(t=e.alternate.memoizedState),Rc(e,t.next.queue,{},io(e))}function xi(){var e=th(!1);return e=Mc.bind(null,kt,e.queue,!0,!1),ba().memoizedState=e,[!1,e]}function Hx(){var e=Sc(tl)[0],t=xn().memoizedState;return[typeof e=="boolean"?e:Yf(e),t]}function Jn(){var e=wc(tl)[0],t=xn().memoizedState;return[typeof e=="boolean"?e:Yf(e),t]}function js(){return hn(gv)}function Qf(){var e=ba(),t=Ln.identifierPrefix;if(tn){var l=Kc,u=Zc;l=(u&~(1<<32-Wa(u)-1)).toString(32)+l,t="_"+t+"R_"+l,l=uS++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=p6++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t}function rh(){return ba().memoizedState=Ix.bind(null,kt)}function Ix(e,t){for(var l=e.return;l!==null;){switch(l.tag){case 24:case 3:var u=io(l),g=Ca(u),b=Dr(l,g,u);b!==null&&(Rr(u,"refresh()",e),Ot(b,l,u),Ml(b,l,u)),e=Qp(),t!=null&&b!==null&&console.error("The seed argument is not enabled outside experimental channels."),g.payload={cache:e};return}l=l.return}}function LC(e,t,l){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=io(e);var g={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};_a(e)?sa(t,g):(g=cc(e,t,g,u),g!==null&&(Rr(u,"dispatch()",e),Ot(g,e,u),Kf(g,t,u)))}function sh(e,t,l){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=io(e),Rc(e,t,l,u)&&Rr(u,"setState()",e)}function Rc(e,t,l,u){var g={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(_a(e))sa(t,g);else{var b=e.alternate;if(e.lanes===0&&(b===null||b.lanes===0)&&(b=t.lastRenderedReducer,b!==null)){var M=Ve.H;Ve.H=Ys;try{var _=t.lastRenderedState,X=b(_,l);if(g.hasEagerState=!0,g.eagerState=X,fl(X,_))return Du(e,t,g,0),Ln===null&&Yp(),!1}catch{}finally{Ve.H=M}}if(l=cc(e,t,g,u),l!==null)return Ot(l,e,u),Kf(l,t,u),!0}return!1}function Zf(e,t,l,u){if(Ve.T===null&&Hm===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),u={lane:2,revertLane:Kb(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},_a(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=cc(e,l,u,2),t!==null&&(Rr(2,"setOptimistic()",e),Ot(t,e,2))}function _a(e){var t=e.alternate;return e===kt||t!==null&&t===kt}function sa(e,t){kg=cS=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Kf(e,t,l){if((l&4194048)!==0){var u=t.lanes;u&=e.pendingLanes,l|=u,t.lanes=l,Ft(e,l)}}function Oc(e){if(e!==null&&typeof e!="function"){var t=String(e);ER.has(t)||(ER.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function $u(e,t,l,u){var g=e.memoizedState,b=l(u,g);if(e.mode&Xo){Re(!0);try{b=l(u,g)}finally{Re(!1)}}b===void 0&&(t=H(t)||"Component",xR.has(t)||(xR.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),g=b==null?g:qt({},g,b),e.memoizedState=g,e.lanes===0&&(e.updateQueue.baseState=g)}function ih(e,t,l,u,g,b,M){var _=e.stateNode;if(typeof _.shouldComponentUpdate=="function"){if(l=_.shouldComponentUpdate(u,b,M),e.mode&Xo){Re(!0);try{l=_.shouldComponentUpdate(u,b,M)}finally{Re(!1)}}return l===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",H(t)||"Component"),l}return t.prototype&&t.prototype.isPureReactComponent?!ju(l,u)||!ju(g,b):!0}function Br(e,t,l,u){var g=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,u),t.state!==g&&(e=Z(e)||"Component",hR.has(e)||(hR.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),TE.enqueueReplaceState(t,t.state,null))}function Lr(e,t){var l=t;if("ref"in t){l={};for(var u in t)u!=="ref"&&(l[u]=t[u])}if(e=e.defaultProps){l===t&&(l=qt({},l));for(var g in e)l[g]===void 0&&(l[g]=e[g])}return l}function ch(e){aE(e),console.warn(`%s
|
|
130
|
+
|
|
131
|
+
%s
|
|
132
|
+
`,Ag?"An error occurred in the <"+Ag+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
133
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function uh(e){var t=Ag?"The above error occurred in the <"+Ag+"> component.":"The above error occurred in one of your React components.",l="React will try to recreate this component tree from scratch using the error boundary you provided, "+((ME||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var u=e.environmentName;e=[`%o
|
|
134
|
+
|
|
135
|
+
%s
|
|
136
|
+
|
|
137
|
+
%s
|
|
138
|
+
`,e,t,l].slice(0),typeof e[0]=="string"?e.splice(0,1,rO+" "+e[0],sO,_S+u+_S,iO):e.splice(0,0,rO,sO,_S+u+_S,iO),e.unshift(console),u=_6.apply(console.error,e),u()}else console.error(`%o
|
|
139
|
+
|
|
140
|
+
%s
|
|
141
|
+
|
|
142
|
+
%s
|
|
143
|
+
`,e,t,l)}function ub(e){aE(e)}function Ff(e,t){try{Ag=t.source?Z(t.source):null,ME=null;var l=t.value;if(Ve.actQueue!==null)Ve.thrownErrors.push(l);else{var u=e.onUncaughtError;u(l,{componentStack:t.stack})}}catch(g){setTimeout(function(){throw g})}}function db(e,t,l){try{Ag=l.source?Z(l.source):null,ME=Z(t);var u=e.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function dh(e,t,l){return l=Ca(l),l.tag=xE,l.payload={element:null},l.callback=function(){fe(t.source,Ff,e,t)},l}function fh(e){return e=Ca(e),e.tag=xE,e}function mh(e,t,l,u){var g=l.type.getDerivedStateFromError;if(typeof g=="function"){var b=u.value;e.payload=function(){return g(b)},e.callback=function(){uc(l),fe(u.source,db,t,l,u)}}var M=l.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(e.callback=function(){uc(l),fe(u.source,db,t,l,u),typeof g!="function"&&(qd===null?qd=new Set([this]):qd.add(this)),u6(this,u),typeof g=="function"||(l.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Z(l)||"Unknown")})}function fb(e,t,l,u,g){if(l.flags|=32768,Fr&&od(e,g),u!==null&&typeof u=="object"&&typeof u.then=="function"){if(t=l.alternate,t!==null&&Pl(t,l,g,!0),tn&&(Ui=!0),l=ur.current,l!==null){switch(l.tag){case 31:case 13:return rs===null?td():l.alternate===null&&ca===lu&&(ca=mS),l.flags&=-257,l.flags|=65536,l.lanes=g,u===rS?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([u]):t.add(u),Ah(e,u,g)),!1;case 22:return l.flags|=65536,u===rS?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([u]):l.add(u)),Ah(e,u,g)),!1}throw Error("Unexpected Suspense handler tag ("+l.tag+"). This is a bug in React.")}return Ah(e,u,g),td(),!1}if(tn)return Ui=!0,t=ur.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=g,u!==cE&&jf(xo(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:u}),l))):(u!==cE&&jf(xo(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:u}),l)),e=e.current.alternate,e.flags|=65536,g&=-g,e.lanes|=g,u=xo(u,l),g=dh(e.stateNode,u,g),Uf(e,g),ca!==Vd&&(ca=Pm)),!1;var b=xo(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:u}),l);if(sv===null?sv=[b]:sv.push(b),ca!==Vd&&(ca=Pm),t===null)return!0;u=xo(u,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=g&-g,l.lanes|=e,e=dh(l.stateNode,u,e),Uf(l,e),!1;case 1:if(t=l.type,b=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(qd===null||!qd.has(b))))return l.flags|=65536,g&=-g,l.lanes|=g,g=fh(g),mh(g,e,l,u),Uf(l,g),!1}l=l.return}while(l!==null);return!1}function Ua(e,t,l,u){t.child=e===null?oR(t,null,l,u):Gm(t,e.child,l,u)}function Yx(e,t,l,u,g){l=l.render;var b=t.ref;if("ref"in u){var M={};for(var _ in u)_!=="ref"&&(M[_]=u[_])}else M=u;return ci(t),u=ob(e,t,l,M,b,g),_=xc(),e!==null&&!Ya?(Hf(e,t,g),Wl(e,t,g)):(tn&&_&&Xp(t),t.flags|=1,Ua(e,t,u,g),t.child)}function mb(e,t,l,u,g){if(e===null){var b=l.type;return typeof b=="function"&&!Xy(b)&&b.defaultProps===void 0&&l.compare===null?(l=oi(b),t.tag=15,t.type=l,Qu(t,b),pb(e,t,l,u,g)):(e=dc(l.type,null,u,t,t.mode,g),e.ref=t.ref,e.return=t,t.child=e)}if(b=e.child,!bh(e,g)){var M=b.memoizedProps;if(l=l.compare,l=l!==null?l:ju,l(M,u)&&e.ref===t.ref)return Wl(e,t,g)}return t.flags|=1,e=Mr(b,u),e.ref=t.ref,e.return=t,t.child=e}function pb(e,t,l,u,g){if(e!==null){var b=e.memoizedProps;if(ju(b,u)&&e.ref===t.ref&&t.type===e.type)if(Ya=!1,t.pendingProps=u=b,bh(e,g))(e.flags&131072)!==0&&(Ya=!0);else return t.lanes=e.lanes,Wl(e,t,g)}return bb(e,t,l,u,g)}function hb(e,t,l,u){var g=u.children,b=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:U0,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((t.flags&128)!==0){if(b=b!==null?b.baseLanes|l:l,e!==null){for(u=t.child=e.child,g=0;u!==null;)g=g|u.lanes|u.childLanes,u=u.sibling;u=g&~b}else u=0,t.child=null;return gb(e,t,b,l,u)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Uu(t,b!==null?b.cachePool:null),b!==null?Jp(t,b):Es(t),eh(t);else return u=t.lanes=536870912,gb(e,t,b!==null?b.baseLanes|l:l,l,u)}else b!==null?(Uu(t,b.cachePool),Jp(t,b),Ar(t),t.memoizedState=null):(e!==null&&Uu(t,null),Es(t),Ar(t));return Ua(e,t,g,l),t.child}function jc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:U0,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function gb(e,t,l,u,g){var b=Cs();return b=b===null?null:{parent:Va._currentValue,pool:b},t.memoizedState={baseLanes:l,cachePool:b},e!==null&&Uu(t,null),Es(t),eh(t),e!==null&&Pl(e,t,u,!0),t.childLanes=g,null}function Wf(e,t){var l=t.hidden;return l!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
144
|
+
- <Activity %s>
|
|
145
|
+
+ <Activity %s>`,l===!0?"hidden":l===!1?"hidden={false}":"hidden={...}",l?'mode="hidden"':'mode="visible"'),t=em({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yb(e,t,l){return Gm(t,e.child,null,l),e=Wf(t,t.pendingProps),e.flags|=2,za(t),t.memoizedState=null,e}function qx(e,t,l){var u=t.pendingProps,g=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(tn){if(u.mode==="hidden")return e=Wf(t,u),t.lanes=536870912,jc(null,e);if(Kl(t),(e=Zn)?(l=Cn(e,os),l=l!==null&&l.data===Wm?l:null,l!==null&&(u={dehydrated:l,treeContext:Ax(),retryLane:536870912,hydrationErrors:null},t.memoizedState=u,u=$y(l),u.return=t,t.child=u,_o=t,Zn=null)):l=null,l===null)throw so(t,e),wl(t);return t.lanes=536870912,null}return Wf(t,u)}var b=e.memoizedState;if(b!==null){var M=b.dehydrated;if(Kl(t),g)if(t.flags&256)t.flags&=-257,t=yb(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(_x(),(l&536870912)!==0&&ed(t),Ya||Pl(e,t,l,!1),g=(l&e.childLanes)!==0,Ya||g){if(u=Ln,u!==null&&(M=ya(u,l),M!==0&&M!==b.retryLane))throw b.retryLane=M,ro(e,M),Ot(u,e,M),RE;td(),t=yb(e,t,l)}else e=b.treeContext,Zn=il(M.nextSibling),_o=t,tn=!0,Ad=null,Ui=!1,cr=null,os=!1,e!==null&&zx(t,e),t=Wf(t,u),t.flags|=4096;return t}return b=e.child,u={mode:u.mode,children:u.children},(l&536870912)!==0&&(l&e.lanes)!==0&&ed(t),e=Mr(b,u),e.ref=t.ref,t.child=e,e.return=t,e}function Jf(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==l)&&(t.flags|=4194816)}}function bb(e,t,l,u,g){if(l.prototype&&typeof l.prototype.render=="function"){var b=H(l)||"Unknown";NR[b]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",b,b),NR[b]=!0)}return t.mode&Xo&&Is.recordLegacyContextWarning(t,null),e===null&&(Qu(t,t.type),l.contextTypes&&(b=H(l)||"Unknown",MR[b]||(MR[b]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",b)))),ci(t),l=ob(e,t,l,u,void 0,g),u=xc(),e!==null&&!Ya?(Hf(e,t,g),Wl(e,t,g)):(tn&&u&&Xp(t),t.flags|=1,Ua(e,t,l,g),t.child)}function vb(e,t,l,u,g,b){return ci(t),au=-1,ev=e!==null&&e.type!==t.type,t.updateQueue=null,l=Lf(t,u,l,g),da(e,t),u=xc(),e!==null&&!Ya?(Hf(e,t,b),Wl(e,t,b)):(tn&&u&&Xp(t),t.flags|=1,Ua(e,t,l,b),t.child)}function Dc(e,t,l,u,g){switch(h(t)){case!1:var b=t.stateNode,M=new t.type(t.memoizedProps,b.context).state;b.updater.enqueueSetState(b,M,null);break;case!0:t.flags|=128,t.flags|=65536,b=Error("Simulated error coming from DevTools");var _=g&-g;if(t.lanes|=_,M=Ln,M===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");_=fh(_),mh(_,M,t,xo(b,t)),Uf(t,_)}if(ci(t),t.stateNode===null){if(M=kd,b=l.contextType,"contextType"in l&&b!==null&&(b===void 0||b.$$typeof!==rr)&&!CR.has(l)&&(CR.add(l),_=b===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof b!="object"?" However, it is set to a "+typeof b+".":b.$$typeof===tg?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(b).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",H(l)||"Component",_)),typeof b=="object"&&b!==null&&(M=hn(b)),b=new l(u,M),t.mode&Xo){Re(!0);try{b=new l(u,M)}finally{Re(!1)}}if(M=t.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=TE,t.stateNode=b,b._reactInternals=t,b._reactInternalInstance=pR,typeof l.getDerivedStateFromProps=="function"&&M===null&&(M=H(l)||"Component",gR.has(M)||(gR.add(M),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",M,b.state===null?"null":"undefined",M))),typeof l.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"){var X=_=M=null;if(typeof b.componentWillMount=="function"&&b.componentWillMount.__suppressDeprecationWarning!==!0?M="componentWillMount":typeof b.UNSAFE_componentWillMount=="function"&&(M="UNSAFE_componentWillMount"),typeof b.componentWillReceiveProps=="function"&&b.componentWillReceiveProps.__suppressDeprecationWarning!==!0?_="componentWillReceiveProps":typeof b.UNSAFE_componentWillReceiveProps=="function"&&(_="UNSAFE_componentWillReceiveProps"),typeof b.componentWillUpdate=="function"&&b.componentWillUpdate.__suppressDeprecationWarning!==!0?X="componentWillUpdate":typeof b.UNSAFE_componentWillUpdate=="function"&&(X="UNSAFE_componentWillUpdate"),M!==null||_!==null||X!==null){b=H(l)||"Component";var J=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";bR.has(b)||(bR.add(b),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
146
|
+
|
|
147
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
148
|
+
|
|
149
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
150
|
+
https://react.dev/link/unsafe-component-lifecycles`,b,J,M!==null?`
|
|
151
|
+
`+M:"",_!==null?`
|
|
152
|
+
`+_:"",X!==null?`
|
|
153
|
+
`+X:""))}}b=t.stateNode,M=H(l)||"Component",b.render||(l.prototype&&typeof l.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",M):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",M)),!b.getInitialState||b.getInitialState.isReactClassApproved||b.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",M),b.getDefaultProps&&!b.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",M),b.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",M),l.childContextTypes&&!wR.has(l)&&(wR.add(l),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",M)),l.contextTypes&&!SR.has(l)&&(SR.add(l),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",M)),typeof b.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",M),l.prototype&&l.prototype.isPureReactComponent&&typeof b.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",H(l)||"A pure component"),typeof b.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",M),typeof b.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",M),typeof b.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",M),typeof b.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",M),_=b.props!==u,b.props!==void 0&&_&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",M),b.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",M,M),typeof b.getSnapshotBeforeUpdate!="function"||typeof b.componentDidUpdate=="function"||yR.has(l)||(yR.add(l),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",H(l))),typeof b.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",M),typeof b.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",M),typeof l.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",M),(_=b.state)&&(typeof _!="object"||xa(_))&&console.error("%s.state: must be set to an object or null",M),typeof b.getChildContext=="function"&&typeof l.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",M),b=t.stateNode,b.props=u,b.state=t.memoizedState,b.refs={},Wt(t),M=l.contextType,b.context=typeof M=="object"&&M!==null?hn(M):kd,b.state===u&&(M=H(l)||"Component",vR.has(M)||(vR.add(M),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",M))),t.mode&Xo&&Is.recordLegacyContextWarning(t,b),Is.recordUnsafeLifecycleWarnings(t,b),b.state=t.memoizedState,M=l.getDerivedStateFromProps,typeof M=="function"&&($u(t,l,M,u),b.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(M=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),M!==b.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Z(t)||"Component"),TE.enqueueReplaceState(b,b.state,null)),kr(t,u,b,g),Lu(),b.state=t.memoizedState),typeof b.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Hs)!==Et&&(t.flags|=134217728),b=!0}else if(e===null){b=t.stateNode;var Ee=t.memoizedProps;_=Lr(l,Ee),b.props=_;var Te=b.context;X=l.contextType,M=kd,typeof X=="object"&&X!==null&&(M=hn(X)),J=l.getDerivedStateFromProps,X=typeof J=="function"||typeof b.getSnapshotBeforeUpdate=="function",Ee=t.pendingProps!==Ee,X||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(Ee||Te!==M)&&Br(t,b,u,M),Ld=!1;var pe=t.memoizedState;b.state=pe,kr(t,u,b,g),Lu(),Te=t.memoizedState,Ee||pe!==Te||Ld?(typeof J=="function"&&($u(t,l,J,u),Te=t.memoizedState),(_=Ld||ih(t,l,_,u,pe,Te,M))?(X||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Hs)!==Et&&(t.flags|=134217728)):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Hs)!==Et&&(t.flags|=134217728),t.memoizedProps=u,t.memoizedState=Te),b.props=u,b.state=Te,b.context=M,b=_):(typeof b.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Hs)!==Et&&(t.flags|=134217728),b=!1)}else{b=t.stateNode,jr(e,t),M=t.memoizedProps,X=Lr(l,M),b.props=X,J=t.pendingProps,pe=b.context,Te=l.contextType,_=kd,typeof Te=="object"&&Te!==null&&(_=hn(Te)),Ee=l.getDerivedStateFromProps,(Te=typeof Ee=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(M!==J||pe!==_)&&Br(t,b,u,_),Ld=!1,pe=t.memoizedState,b.state=pe,kr(t,u,b,g),Lu();var Be=t.memoizedState;M!==J||pe!==Be||Ld||e!==null&&e.dependencies!==null&&zu(e.dependencies)?(typeof Ee=="function"&&($u(t,l,Ee,u),Be=t.memoizedState),(X=Ld||ih(t,l,X,u,pe,Be,_)||e!==null&&e.dependencies!==null&&zu(e.dependencies))?(Te||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(u,Be,_),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(u,Be,_)),typeof b.componentDidUpdate=="function"&&(t.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof b.componentDidUpdate!="function"||M===e.memoizedProps&&pe===e.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||M===e.memoizedProps&&pe===e.memoizedState||(t.flags|=1024),t.memoizedProps=u,t.memoizedState=Be),b.props=u,b.state=Be,b.context=_,b=X):(typeof b.componentDidUpdate!="function"||M===e.memoizedProps&&pe===e.memoizedState||(t.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||M===e.memoizedProps&&pe===e.memoizedState||(t.flags|=1024),b=!1)}if(_=b,Jf(e,t),M=(t.flags&128)!==0,_||M){if(_=t.stateNode,ce(t),M&&typeof l.getDerivedStateFromError!="function")l=null,ml=-1;else if(l=GM(_),t.mode&Xo){Re(!0);try{GM(_)}finally{Re(!1)}}t.flags|=1,e!==null&&M?(t.child=Gm(t,e.child,null,g),t.child=Gm(t,null,l,g)):Ua(e,t,l,g),t.memoizedState=_.state,e=t.child}else e=Wl(e,t,g);return g=t.stateNode,b&&g.props!==u&&(zg||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Z(t)||"a component"),zg=!0),e}function xb(e,t,l,u){return si(),t.flags|=256,Ua(e,t,l,u),t.child}function Qu(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
154
|
+
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=H(t)||"Unknown",RR[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),RR[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=H(t)||"Unknown",TR[t]||(console.error("%s: Function components do not support contextType.",t),TR[t]=!0))}function Zu(e){return{baseLanes:e,cachePool:Jy()}}function ph(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=_l),e}function hh(e,t,l){var u,g=t.pendingProps;f(t)&&(t.flags|=128);var b=!1,M=(t.flags&128)!==0;if((u=M)||(u=e!==null&&e.memoizedState===null?!1:(Ra.current&W0)!==0),u&&(b=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(tn){if(b?Eo(t):Ar(t),(e=Zn)?(l=Cn(e,os),l=l!==null&&l.data!==Wm?l:null,l!==null&&(u={dehydrated:l,treeContext:Ax(),retryLane:536870912,hydrationErrors:null},t.memoizedState=u,u=$y(l),u.return=t,t.child=u,_o=t,Zn=null)):l=null,l===null)throw so(t,e),wl(t);return Jb(l)?t.lanes=32:t.lanes=536870912,null}var _=g.children;if(g=g.fallback,b){Ar(t);var X=t.mode;return _=em({mode:"hidden",children:_},X),g=fc(g,X,l,null),_.return=t,g.return=t,_.sibling=g,t.child=_,g=t.child,g.memoizedState=Zu(l),g.childLanes=ph(e,u,l),t.memoizedState=OE,jc(null,g)}return Eo(t),Sb(t,_)}var J=e.memoizedState;if(J!==null){var Ee=J.dehydrated;if(Ee!==null){if(M)t.flags&256?(Eo(t),t.flags&=-257,t=gh(e,t,l)):t.memoizedState!==null?(Ar(t),t.child=e.child,t.flags|=128,t=null):(Ar(t),_=g.fallback,X=t.mode,g=em({mode:"visible",children:g.children},X),_=fc(_,X,l,null),_.flags|=2,g.return=t,_.return=t,g.sibling=_,t.child=g,Gm(t,e.child,null,l),g=t.child,g.memoizedState=Zu(l),g.childLanes=ph(e,u,l),t.memoizedState=OE,t=jc(null,g));else if(Eo(t),_x(),(l&536870912)!==0&&ed(t),Jb(Ee)){if(u=Ee.nextSibling&&Ee.nextSibling.dataset,u){_=u.dgst;var Te=u.msg;X=u.stck;var pe=u.cstck}b=Te,u=_,g=X,Ee=pe,_=b,X=Ee,_=Error(_||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),_.stack=g||"",_.digest=u,u=X===void 0?null:X,g={value:_,source:null,stack:u},typeof u=="string"&&iE.set(_,g),jf(g),t=gh(e,t,l)}else if(Ya||Pl(e,t,l,!1),u=(l&e.childLanes)!==0,Ya||u){if(u=Ln,u!==null&&(g=ya(u,l),g!==0&&g!==J.retryLane))throw J.retryLane=g,ro(e,g),Ot(u,e,g),RE;bm(Ee)||td(),t=gh(e,t,l)}else bm(Ee)?(t.flags|=192,t.child=e.child,t=null):(e=J.treeContext,Zn=il(Ee.nextSibling),_o=t,tn=!0,Ad=null,Ui=!1,cr=null,os=!1,e!==null&&zx(t,e),t=Sb(t,g.children),t.flags|=4096);return t}}return b?(Ar(t),_=g.fallback,X=t.mode,pe=e.child,Ee=pe.sibling,g=Mr(pe,{mode:"hidden",children:g.children}),g.subtreeFlags=pe.subtreeFlags&65011712,Ee!==null?_=Mr(Ee,_):(_=fc(_,X,l,null),_.flags|=2),_.return=t,g.return=t,g.sibling=_,t.child=g,jc(null,g),g=t.child,_=e.child.memoizedState,_===null?_=Zu(l):(X=_.cachePool,X!==null?(pe=Va._currentValue,X=X.parent!==pe?{parent:pe,pool:pe}:X):X=Jy(),_={baseLanes:_.baseLanes|l,cachePool:X}),g.memoizedState=_,g.childLanes=ph(e,u,l),t.memoizedState=OE,jc(e.child,g)):(J!==null&&(l&62914560)===l&&(l&e.lanes)!==0&&ed(t),Eo(t),l=e.child,e=l.sibling,l=Mr(l,{mode:"visible",children:g.children}),l.return=t,l.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=l,t.memoizedState=null,l)}function Sb(e,t){return t=em({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function em(e,t){return e=N(22,e,null,t),e.lanes=0,e}function gh(e,t,l){return Gm(t,e.child,null,l),e=Sb(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wb(e,t,l){e.lanes|=t;var u=e.alternate;u!==null&&(u.lanes|=t),$p(e.return,t,l)}function yh(e,t,l,u,g,b){var M=e.memoizedState;M===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:g,treeForkCount:b}:(M.isBackwards=t,M.rendering=null,M.renderingStartTime=0,M.last=u,M.tail=l,M.tailMode=g,M.treeForkCount=b)}function Cb(e,t,l){var u=t.pendingProps,g=u.revealOrder,b=u.tail,M=u.children,_=Ra.current;if((u=(_&W0)!==0)?(_=_&jg|W0,t.flags|=128):_&=jg,q(Ra,_,t),_=g??"null",g!=="forwards"&&g!=="unstable_legacy-backwards"&&g!=="together"&&g!=="independent"&&!OR[_])if(OR[_]=!0,g==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(g==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof g=="string")switch(g.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',g,g.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',g,g.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',g)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',g);_=b??"null",fS[_]||(b==null?(g==="forwards"||g==="backwards"||g==="unstable_legacy-backwards")&&(fS[_]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):b!=="visible"&&b!=="collapsed"&&b!=="hidden"?(fS[_]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',b)):g!=="forwards"&&g!=="backwards"&&g!=="unstable_legacy-backwards"&&(fS[_]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',b)));e:if((g==="forwards"||g==="backwards"||g==="unstable_legacy-backwards")&&M!==void 0&&M!==null&&M!==!1)if(xa(M)){for(_=0;_<M.length;_++)if(!zn(M[_],_))break e}else if(_=V(M),typeof _=="function"){if(_=_.call(M))for(var X=_.next(),J=0;!X.done;X=_.next()){if(!zn(X.value,J))break e;J++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',g);if(Ua(e,t,M,l),tn?(ri(),M=B0):M=0,!u&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wb(e,l,t);else if(e.tag===19)wb(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(g){case"forwards":for(l=t.child,g=null;l!==null;)e=l.alternate,e!==null&&vc(e)===null&&(g=l),l=l.sibling;l=g,l===null?(g=t.child,t.child=null):(g=l.sibling,l.sibling=null),yh(t,!1,g,l,b,M);break;case"backwards":case"unstable_legacy-backwards":for(l=null,g=t.child,t.child=null;g!==null;){if(e=g.alternate,e!==null&&vc(e)===null){t.child=g;break}e=g.sibling,g.sibling=l,l=g,g=e}yh(t,!0,l,null,b,M);break;case"together":yh(t,!1,null,null,void 0,M);break;default:t.memoizedState=null}return t.child}function Wl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ml=-1,Id|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Pl(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,l=Mr(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Mr(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function bh(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&zu(e)))}function Gx(e,t,l){switch(t.tag){case 3:te(t,t.stateNode.containerInfo),Cl(t,Va,e.memoizedState.cache),si();break;case 27:case 5:F(t);break;case 4:te(t,t.stateNode.containerInfo);break;case 10:Cl(t,t.type,t.memoizedProps.value);break;case 12:(l&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var u=t.stateNode;u.effectDuration=-0,u.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Kl(t),null;break;case 13:if(u=t.memoizedState,u!==null)return u.dehydrated!==null?(Eo(t),t.flags|=128,null):(l&t.child.childLanes)!==0?hh(e,t,l):(Eo(t),e=Wl(e,t,l),e!==null?e.sibling:null);Eo(t);break;case 19:var g=(e.flags&128)!==0;if(u=(l&t.childLanes)!==0,u||(Pl(e,t,l,!1),u=(l&t.childLanes)!==0),g){if(u)return Cb(e,t,l);t.flags|=128}if(g=t.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),q(Ra,Ra.current,t),u)break;return null;case 22:return t.lanes=0,hb(e,t,l,t.pendingProps);case 24:Cl(t,Va,e.memoizedState.cache)}return Wl(e,t,l)}function tm(e,t,l){if(t._debugNeedsRemount&&e!==null){l=dc(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),l._debugStack=t._debugStack,l._debugTask=t._debugTask;var u=t.return;if(u===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,l.index=t.index,l.sibling=t.sibling,l.return=t.return,l.ref=t.ref,l._debugInfo=t._debugInfo,t===u.child)u.child=l;else{var g=u.child;if(g===null)throw Error("Expected parent to have a child.");for(;g.sibling!==t;)if(g=g.sibling,g===null)throw Error("Expected to find the previous sibling.");g.sibling=l}return t=u.deletions,t===null?(u.deletions=[e],u.flags|=16):t.push(e),l.flags|=2,l}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Ya=!0;else{if(!bh(e,l)&&(t.flags&128)===0)return Ya=!1,Gx(e,t,l);Ya=(e.flags&131072)!==0}else Ya=!1,(u=tn)&&(ri(),u=(t.flags&1048576)!==0),u&&(u=t.index,ri(),Qy(t,B0,u));switch(t.lanes=0,t.tag){case 16:e:if(u=t.pendingProps,e=Jo(t.elementType),t.type=e,typeof e=="function")Xy(e)?(u=Lr(e,u),t.tag=1,t.type=e=oi(e),t=Dc(null,t,e,u,l)):(t.tag=0,Qu(t,e),t.type=e=oi(e),t=bb(null,t,e,u,l));else{if(e!=null){if(g=e.$$typeof,g===bd){t.tag=11,t.type=e=qp(e),t=Yx(null,t,e,u,l);break e}else if(g===Rm){t.tag=14,t=mb(null,t,e,u,l);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===co&&(t=" Did you wrap a component in React.lazy() more than once?"),l=H(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+l+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return bb(e,t,t.type,t.pendingProps,l);case 1:return u=t.type,g=Lr(u,t.pendingProps),Dc(e,t,u,g,l);case 3:e:{if(te(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");u=t.pendingProps;var b=t.memoizedState;g=b.element,jr(e,t),kr(t,u,null,l);var M=t.memoizedState;if(u=M.cache,Cl(t,Va,u),u!==b.cache&&xs(t,[Va],l,!0),Lu(),u=M.element,b.isDehydrated)if(b={element:u,isDehydrated:!1,cache:M.cache},t.updateQueue.baseState=b,t.memoizedState=b,t.flags&256){t=xb(e,t,u,l);break e}else if(u!==g){g=xo(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),jf(g),t=xb(e,t,u,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Zn=il(e.firstChild),_o=t,tn=!0,Ad=null,Ui=!1,cr=null,os=!0,l=oR(t,null,u,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(si(),u===g){t=Wl(e,t,l);break e}Ua(e,t,u,l)}t=t.child}return t;case 26:return Jf(e,t),e===null?(l=a0(t.type,null,t.pendingProps,null))?t.memoizedState=l:tn||(l=t.type,e=t.pendingProps,u=W(cl.current),u=gm(u).createElement(l),u[$n]=t,u[zo]=e,Pn(u,l,e),it(u),t.stateNode=u):t.memoizedState=a0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return F(t),e===null&&tn&&(u=W(cl.current),g=P(),u=t.stateNode=Us(t.type,t.pendingProps,u,g,!1),Ui||(g=Yo(u,t.type,t.pendingProps,g),g!==null&&(mc(t,0).serverProps=g)),_o=t,os=!0,g=Zn,Oi(t.type)?(WE=g,Zn=il(u.firstChild)):Zn=g),Ua(e,t,t.pendingProps.children,l),Jf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&tn&&(b=P(),u=xf(t.type,b.ancestorInfo),g=Zn,(M=!g)||(M=x1(g,t.type,t.pendingProps,os),M!==null?(t.stateNode=M,Ui||(b=Yo(M,t.type,t.pendingProps,b),b!==null&&(mc(t,0).serverProps=b)),_o=t,Zn=il(M.firstChild),os=!1,b=!0):b=!1,M=!b),M&&(u&&so(t,g),wl(t))),F(t),g=t.type,b=t.pendingProps,M=e!==null?e.memoizedProps:null,u=b.children,cd(g,b)?u=null:M!==null&&cd(g,M)&&(t.flags|=32),t.memoizedState!==null&&(g=ob(e,t,Vf,null,null,l),gv._currentValue=g),Jf(e,t),Ua(e,t,u,l),t.child;case 6:return e===null&&tn&&(l=t.pendingProps,e=P(),u=e.ancestorInfo.current,l=u!=null?Sf(l,u.tag,e.ancestorInfo.implicitRootScope):!0,e=Zn,(u=!e)||(u=S1(e,t.pendingProps,os),u!==null?(t.stateNode=u,_o=t,Zn=null,u=!0):u=!1,u=!u),u&&(l&&so(t,e),wl(t))),null;case 13:return hh(e,t,l);case 4:return te(t,t.stateNode.containerInfo),u=t.pendingProps,e===null?t.child=Gm(t,null,u,l):Ua(e,t,u,l),t.child;case 11:return Yx(e,t,t.type,t.pendingProps,l);case 7:return Ua(e,t,t.pendingProps,l),t.child;case 8:return Ua(e,t,t.pendingProps.children,l),t.child;case 12:return t.flags|=4,t.flags|=2048,u=t.stateNode,u.effectDuration=-0,u.passiveEffectDuration=-0,Ua(e,t,t.pendingProps.children,l),t.child;case 10:return u=t.type,g=t.pendingProps,b=g.value,"value"in g||jR||(jR=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Cl(t,u,b),Ua(e,t,g.children,l),t.child;case 9:return g=t.type._context,u=t.pendingProps.children,typeof u!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),ci(t),g=hn(g),u=gE(u,g,void 0),t.flags|=1,Ua(e,t,u,l),t.child;case 14:return mb(e,t,t.type,t.pendingProps,l);case 15:return pb(e,t,t.type,t.pendingProps,l);case 19:return Cb(e,t,l);case 31:return qx(e,t,l);case 22:return hb(e,t,l,t.pendingProps);case 24:return ci(t),u=hn(Va),e===null?(g=Cs(),g===null&&(g=Ln,b=Qp(),g.pooledCache=b,hc(b),b!==null&&(g.pooledCacheLanes|=l),g=b),t.memoizedState={parent:u,cache:g},Wt(t),Cl(t,Va,g)):((e.lanes&l)!==0&&(jr(e,t),kr(t,null,null,l),Lu()),g=e.memoizedState,b=t.memoizedState,g.parent!==u?(g={parent:u,cache:u},t.memoizedState=g,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=g),Cl(t,Va,u)):(u=b.cache,Cl(t,Va,u),u!==g.cache&&xs(t,[Va],l,!0))),Ua(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Vr(e){e.flags|=4}function vh(e,t,l,u,g){if((t=(e.mode&l6)!==Et)&&(t=!1),t){if(e.flags|=16777216,(g&335544128)===g)if(e.stateNode.complete)e.flags|=8192;else if(Ib())e.flags|=8192;else throw qm=rS,bE}else e.flags&=-16777217}function Xx(e,t){if(t.type!=="stylesheet"||(t.state.loading&cs)!==tp)e.flags&=-16777217;else if(e.flags|=16777216,!Zt(t))if(Ib())e.flags|=8192;else throw qm=rS,bE}function Ku(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?nn():536870912,e.lanes|=t,Zm|=t)}function Fu(e,t){if(!tn)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function Rn(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,u=0;if(t)if((e.mode&Gt)!==Et){for(var g=e.selfBaseDuration,b=e.child;b!==null;)l|=b.lanes|b.childLanes,u|=b.subtreeFlags&65011712,u|=b.flags&65011712,g+=b.treeBaseDuration,b=b.sibling;e.treeBaseDuration=g}else for(g=e.child;g!==null;)l|=g.lanes|g.childLanes,u|=g.subtreeFlags&65011712,u|=g.flags&65011712,g.return=e,g=g.sibling;else if((e.mode&Gt)!==Et){g=e.actualDuration,b=e.selfBaseDuration;for(var M=e.child;M!==null;)l|=M.lanes|M.childLanes,u|=M.subtreeFlags,u|=M.flags,g+=M.actualDuration,b+=M.treeBaseDuration,M=M.sibling;e.actualDuration=g,e.treeBaseDuration=b}else for(g=e.child;g!==null;)l|=g.lanes|g.childLanes,u|=g.subtreeFlags,u|=g.flags,g.return=e,g=g.sibling;return e.subtreeFlags|=u,e.childLanes=l,t}function Eb(e,t,l){var u=t.pendingProps;switch(Pp(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rn(t),null;case 1:return Rn(t),null;case 3:return l=t.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),t.memoizedState.cache!==u&&(t.flags|=2048),Xl(Va,t),Y(t),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(pc(t)?(ii(),Vr(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Of())),Rn(t),null;case 26:var g=t.type,b=t.memoizedState;return e===null?(Vr(t),b!==null?(Rn(t),Xx(t,b)):(Rn(t),vh(t,g,null,u,l))):b?b!==e.memoizedState?(Vr(t),Rn(t),Xx(t,b)):(Rn(t),t.flags&=-16777217):(e=e.memoizedProps,e!==u&&Vr(t),Rn(t),vh(t,g,e,u,l)),null;case 27:if(ee(t),l=W(cl.current),g=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&Vr(t);else{if(!u){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Rn(t),null}e=P(),pc(t)?Zy(t):(e=Us(g,u,l,e,!0),t.stateNode=e,Vr(t))}return Rn(t),null;case 5:if(ee(t),g=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&Vr(t);else{if(!u){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Rn(t),null}var M=P();if(pc(t))Zy(t);else{switch(b=W(cl.current),xf(g,M.ancestorInfo),M=M.context,b=gm(b),M){case Yg:b=b.createElementNS(Ht,g);break;case kS:b=b.createElementNS(_t,g);break;default:switch(g){case"svg":b=b.createElementNS(Ht,g);break;case"math":b=b.createElementNS(_t,g);break;case"script":b=b.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof u.is=="string"?b.createElement("select",{is:u.is}):b.createElement("select"),u.multiple?b.multiple=!0:u.size&&(b.size=u.size);break;default:b=typeof u.is=="string"?b.createElement(g,{is:u.is}):b.createElement(g),g.indexOf("-")===-1&&(g!==g.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",g),Object.prototype.toString.call(b)!=="[object HTMLUnknownElement]"||ul.call(eO,g)||(eO[g]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",g)))}}b[$n]=t,b[zo]=u;e:for(M=t.child;M!==null;){if(M.tag===5||M.tag===6)b.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===t)break e;for(;M.sibling===null;){if(M.return===null||M.return===t)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}t.stateNode=b;e:switch(Pn(b,g,u),g){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Vr(t)}}return Rn(t),vh(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==u&&Vr(t);else{if(typeof u!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=W(cl.current),l=P(),pc(t)){if(e=t.stateNode,l=t.memoizedProps,g=!Ui,u=null,b=_o,b!==null)switch(b.tag){case 3:g&&(g=E1(e,l,u),g!==null&&(mc(t,0).serverProps=g));break;case 27:case 5:u=b.memoizedProps,g&&(g=E1(e,l,u),g!==null&&(mc(t,0).serverProps=g))}e[$n]=t,e=!!(e.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||Fb(e.nodeValue,l)),e||wl(t,!0)}else g=l.ancestorInfo.current,g!=null&&Sf(u,g.tag,l.ancestorInfo.implicitRootScope),e=gm(e).createTextNode(u),e[$n]=t,t.stateNode=e}return Rn(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(u=pc(t),l!==null){if(e===null){if(!u)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[$n]=t,Rn(t),(t.mode&Gt)!==Et&&l!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else ii(),si(),(t.flags&128)===0&&(l=t.memoizedState=null),t.flags|=4,Rn(t),(t.mode&Gt)!==Et&&l!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else l=Of(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(za(t),t):(za(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Rn(t),null;case 13:if(u=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(g=u,b=pc(t),g!==null&&g.dehydrated!==null){if(e===null){if(!b)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(b=t.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");b[$n]=t,Rn(t),(t.mode&Gt)!==Et&&g!==null&&(g=t.child,g!==null&&(t.treeBaseDuration-=g.treeBaseDuration))}else ii(),si(),(t.flags&128)===0&&(g=t.memoizedState=null),t.flags|=4,Rn(t),(t.mode&Gt)!==Et&&g!==null&&(g=t.child,g!==null&&(t.treeBaseDuration-=g.treeBaseDuration));g=!1}else g=Of(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=g),g=!0;if(!g)return t.flags&256?(za(t),t):(za(t),null)}return za(t),(t.flags&128)!==0?(t.lanes=l,(t.mode&Gt)!==Et&&yc(t),t):(l=u!==null,e=e!==null&&e.memoizedState!==null,l&&(u=t.child,g=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(g=u.alternate.memoizedState.cachePool.pool),b=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(b=u.memoizedState.cachePool.pool),b!==g&&(u.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ku(t,t.updateQueue),Rn(t),(t.mode&Gt)!==Et&&l&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return Y(t),e===null&&Mi(t.stateNode.containerInfo),Rn(t),null;case 10:return Xl(t.type,t),Rn(t),null;case 19:if(G(Ra,t),u=t.memoizedState,u===null)return Rn(t),null;if(g=(t.flags&128)!==0,b=u.rendering,b===null)if(g)Fu(u,!1);else{if(ca!==lu||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(b=vc(e),b!==null){for(t.flags|=128,Fu(u,!1),e=b.updateQueue,t.updateQueue=e,Ku(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Py(l,e),l=l.sibling;return q(Ra,Ra.current&jg|W0,t),tn&&Gl(t,u.treeForkCount),t.child}e=e.sibling}u.tail!==null&&La()>vS&&(t.flags|=128,g=!0,Fu(u,!1),t.lanes=4194304)}else{if(!g)if(e=vc(b),e!==null){if(t.flags|=128,g=!0,e=e.updateQueue,t.updateQueue=e,Ku(t,e),Fu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!b.alternate&&!tn)return Rn(t),null}else 2*La()-u.renderingStartTime>vS&&l!==536870912&&(t.flags|=128,g=!0,Fu(u,!1),t.lanes=4194304);u.isBackwards?(b.sibling=t.child,t.child=b):(e=u.last,e!==null?e.sibling=b:t.child=b,u.last=b)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=La(),e.sibling=null,l=Ra.current,l=g?l&jg|W0:l&jg,q(Ra,l,t),tn&&Gl(t,u.treeForkCount),e):(Rn(t),null);case 22:case 23:return za(t),Zl(t),u=t.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(t.flags|=8192):u&&(t.flags|=8192),u?(l&536870912)!==0&&(t.flags&128)===0&&(Rn(t),t.subtreeFlags&6&&(t.flags|=8192)):Rn(t),l=t.updateQueue,l!==null&&Ku(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),u=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(u=t.memoizedState.cachePool.pool),u!==l&&(t.flags|=2048),e!==null&&G(Im,t),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Xl(Va,t),Rn(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Px(e,t){switch(Pp(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Gt)!==Et&&yc(t),t):null;case 3:return Xl(Va,t),Y(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ee(t),null;case 31:if(t.memoizedState!==null){if(za(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");si()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Gt)!==Et&&yc(t),t):null;case 13:if(za(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");si()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Gt)!==Et&&yc(t),t):null;case 19:return G(Ra,t),null;case 4:return Y(t),null;case 10:return Xl(t.type,t),null;case 22:case 23:return za(t),Zl(t),e!==null&&G(Im,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Gt)!==Et&&yc(t),t):null;case 24:return Xl(Va,t),null;case 25:return null;default:return null}}function Nb(e,t){switch(Pp(t),t.tag){case 3:Xl(Va,t),Y(t);break;case 26:case 27:case 5:ee(t);break;case 4:Y(t);break;case 31:t.memoizedState!==null&&za(t);break;case 13:za(t);break;case 19:G(Ra,t);break;case 10:Xl(t.type,t);break;case 22:case 23:za(t),Zl(t),e!==null&&G(Im,t);break;case 24:Xl(Va,t)}}function Hr(e){return(e.mode&Gt)!==Et}function $x(e,t){Hr(e)?(la(),Ds(t,e),wo()):Ds(t,e)}function xh(e,t,l){Hr(e)?(la(),Si(l,e,t),wo()):Si(l,e,t)}function Ds(e,t){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var g=u.next;l=g;do{if((l.tag&e)===e&&(u=void 0,(e&pl)!==iS&&(Vg=!0),u=fe(t,d6,l),(e&pl)!==iS&&(Vg=!1),u!==void 0&&typeof u!="function")){var b=void 0;b=(l.tag&dr)!==0?"useLayoutEffect":(l.tag&pl)!==0?"useInsertionEffect":"useEffect";var M=void 0;M=u===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof u.then=="function"?`
|
|
155
|
+
|
|
156
|
+
It looks like you wrote `+b+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
157
|
+
|
|
158
|
+
`+b+`(() => {
|
|
159
|
+
async function fetchData() {
|
|
160
|
+
// You can await here
|
|
161
|
+
const response = await MyAPI.getData(someId);
|
|
162
|
+
// ...
|
|
163
|
+
}
|
|
164
|
+
fetchData();
|
|
165
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
166
|
+
|
|
167
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+u,fe(t,function(_,X){console.error("%s must not return anything besides a function, which is used for clean-up.%s",_,X)},b,M)}l=l.next}while(l!==g)}}catch(_){Vt(t,t.return,_)}}function Si(e,t,l){try{var u=t.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var b=g.next;u=b;do{if((u.tag&e)===e){var M=u.inst,_=M.destroy;_!==void 0&&(M.destroy=void 0,(e&pl)!==iS&&(Vg=!0),g=t,fe(g,f6,g,l,_),(e&pl)!==iS&&(Vg=!1))}u=u.next}while(u!==b)}}catch(X){Vt(t,t.return,X)}}function nm(e,t){Hr(e)?(la(),Ds(t,e),wo()):Ds(t,e)}function Sh(e,t,l){Hr(e)?(la(),Si(l,e,t),wo()):Si(l,e,t)}function Tb(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||zg||(l.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(e)||"instance"),l.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(e)||"instance"));try{fe(e,Vu,t,l)}catch(u){Vt(e,e.return,u)}}}function am(e,t,l){return e.getSnapshotBeforeUpdate(t,l)}function Qx(e,t){var l=t.memoizedProps,u=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||zg||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(e)||"instance"));try{var g=Lr(e.type,l),b=fe(e,am,t,g,u);l=DR,b!==void 0||l.has(e.type)||(l.add(e.type),fe(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Z(e))})),t.__reactInternalSnapshotBeforeUpdate=b}catch(M){Vt(e,e.return,M)}}function wh(e,t,l){l.props=Lr(e.type,e.memoizedProps),l.state=e.memoizedState,Hr(e)?(la(),fe(e,KM,e,t,l),wo()):fe(e,KM,e,t,l)}function Zx(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}if(typeof t=="function")if(Hr(e))try{la(),e.refCleanup=t(l)}finally{wo()}else e.refCleanup=t(l);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Z(e)),t.current=l}}function kc(e,t){try{fe(e,Zx,e)}catch(l){Vt(e,t,l)}}function Rl(e,t){var l=e.ref,u=e.refCleanup;if(l!==null)if(typeof u=="function")try{if(Hr(e))try{la(),fe(e,u)}finally{wo(e)}else fe(e,u)}catch(g){Vt(e,t,g)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{if(Hr(e))try{la(),fe(e,l,null)}finally{wo(e)}else fe(e,l,null)}catch(g){Vt(e,t,g)}else l.current=null}function Mb(e,t,l,u){var g=e.memoizedProps,b=g.id,M=g.onCommit;g=g.onRender,t=t===null?"mount":"update",nS&&(t="nested-update"),typeof g=="function"&&g(b,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,l),typeof M=="function"&&M(b,t,u,l)}function Kx(e,t,l,u){var g=e.memoizedProps;e=g.id,g=g.onPostCommit,t=t===null?"mount":"update",nS&&(t="nested-update"),typeof g=="function"&&g(e,t,u,l)}function wi(e){var t=e.type,l=e.memoizedProps,u=e.stateNode;try{fe(e,c1,u,t,l,e)}catch(g){Vt(e,e.return,g)}}function Ch(e,t,l){try{fe(e,qh,e.stateNode,e.type,l,t,e)}catch(u){Vt(e,e.return,u)}}function Rb(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Oi(e.type)||e.tag===4}function Eh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Oi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wu(e,t,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?(d1(l),(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t)):(d1(l),t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=xl));else if(u!==4&&(u===27&&Oi(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Wu(e,t,l),e=e.sibling;e!==null;)Wu(e,t,l),e=e.sibling}function om(e,t,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(u!==4&&(u===27&&Oi(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(om(e,t,l),e=e.sibling;e!==null;)om(e,t,l),e=e.sibling}function Ob(e){for(var t,l=e.return;l!==null;){if(Rb(l)){t=l;break}l=l.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,l=Eh(e),om(e,l,t);break;case 5:l=t.stateNode,t.flags&32&&(Gh(l),t.flags&=-33),t=Eh(e),om(e,t,l);break;case 3:case 4:t=t.stateNode.containerInfo,l=Eh(e),Wu(e,l,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function jb(e){var t=e.stateNode,l=e.memoizedProps;try{fe(e,Qr,e.type,l,t,e)}catch(u){Vt(e,e.return,u)}}function Db(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function VC(e,t){if(e=e.containerInfo,ZE=US,e=Vp(e),Ly(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var g=u.anchorOffset,b=u.focusNode;u=u.focusOffset;try{l.nodeType,b.nodeType}catch{l=null;break e}var M=0,_=-1,X=-1,J=0,Ee=0,Te=e,pe=null;t:for(;;){for(var Be;Te!==l||g!==0&&Te.nodeType!==3||(_=M+g),Te!==b||u!==0&&Te.nodeType!==3||(X=M+u),Te.nodeType===3&&(M+=Te.nodeValue.length),(Be=Te.firstChild)!==null;)pe=Te,Te=Be;for(;;){if(Te===e)break t;if(pe===l&&++J===g&&(_=M),pe===b&&++Ee===u&&(X=M),(Be=Te.nextSibling)!==null)break;Te=pe,pe=Te.parentNode}Te=Be}l=_===-1||X===-1?null:{start:_,end:X}}else l=null}l=l||{start:0,end:0}}else l=null;for(KE={focusedElem:e,selectionRange:l},US=!1,mo=t;mo!==null;)if(t=mo,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mo=e;else for(;mo!==null;){switch(e=t=mo,l=e.alternate,g=e.flags,e.tag){case 0:if((g&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)g=e[l],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:(g&1024)!==0&&l!==null&&Qx(e,l);break;case 3:if((g&1024)!==0){if(e=e.stateNode.containerInfo,l=e.nodeType,l===9)dd(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":dd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((g&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,mo=e;break}mo=t.return}}function Nh(e,t,l){var u=Gn(),g=El(),b=Fo(),M=Nl(),_=l.flags;switch(l.tag){case 0:case 11:case 15:ol(e,l),_&4&&$x(l,dr|ss);break;case 1:if(ol(e,l),_&4)if(e=l.stateNode,t===null)l.type.defaultProps||"ref"in l.memoizedProps||zg||(e.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(l)||"instance"),e.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(l)||"instance")),Hr(l)?(la(),fe(l,yE,l,e),wo()):fe(l,yE,l,e);else{var X=Lr(l.type,t.memoizedProps);t=t.memoizedState,l.type.defaultProps||"ref"in l.memoizedProps||zg||(e.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(l)||"instance"),e.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(l)||"instance")),Hr(l)?(la(),fe(l,$M,l,e,X,t,e.__reactInternalSnapshotBeforeUpdate),wo()):fe(l,$M,l,e,X,t,e.__reactInternalSnapshotBeforeUpdate)}_&64&&Tb(l),_&512&&kc(l,l.return);break;case 3:if(t=Or(),ol(e,l),_&64&&(_=l.updateQueue,_!==null)){if(X=null,l.child!==null)switch(l.child.tag){case 27:case 5:X=l.child.stateNode;break;case 1:X=l.child.stateNode}try{fe(l,Vu,_,X)}catch(Ee){Vt(l,l.return,Ee)}}e.effectDuration+=_u(t);break;case 27:t===null&&_&4&&jb(l);case 26:case 5:if(ol(e,l),t===null){if(_&4)wi(l);else if(_&64){e=l.type,t=l.memoizedProps,X=l.stateNode;try{fe(l,u1,X,e,t,l)}catch(Ee){Vt(l,l.return,Ee)}}}_&512&&kc(l,l.return);break;case 12:if(_&4){_=Or(),ol(e,l),e=l.stateNode,e.effectDuration+=So(_);try{fe(l,Mb,l,t,zd,e.effectDuration)}catch(Ee){Vt(l,l.return,Ee)}}else ol(e,l);break;case 31:ol(e,l),_&4&&Ab(e,l);break;case 13:ol(e,l),_&4&&zb(e,l),_&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(_=As.bind(null,l),w1(e,_))));break;case 22:if(_=l.memoizedState!==null||ou,!_){t=t!==null&&t.memoizedState!==null||qa,X=ou;var J=qa;ou=_,(qa=t)&&!J?(Jl(e,l,(l.subtreeFlags&8772)!==0),(l.mode&Gt)!==Et&&0<=yt&&0<=wt&&.05<wt-yt&&Hp(l,yt,wt)):ol(e,l),ou=X,qa=J}break;case 30:break;default:ol(e,l)}(l.mode&Gt)!==Et&&0<=yt&&0<=wt&&((ha||.05<ia)&&ql(l,yt,wt,ia,na),l.alternate===null&&l.return!==null&&l.return.alternate!==null&&.05<wt-yt&&(Db(l.return.alternate,l.return)||Sl(l,yt,wt,"Mount"))),ka(u),Ko(g),na=b,ha=M}function ma(e){var t=e.alternate;t!==null&&(e.alternate=null,ma(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&at(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function In(e,t,l){for(l=l.child;l!==null;)kb(e,t,l),l=l.sibling}function kb(e,t,l){if(Ta&&typeof Ta.onCommitFiberUnmount=="function")try{Ta.onCommitFiberUnmount(Xc,l)}catch(J){Kr||(Kr=!0,console.error("React instrumentation encountered an error: %o",J))}var u=Gn(),g=El(),b=Fo(),M=Nl();switch(l.tag){case 26:qa||Rl(l,t),In(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(e=l.stateNode,e.parentNode.removeChild(e));break;case 27:qa||Rl(l,t);var _=Ga,X=Al;Oi(l.type)&&(Ga=l.stateNode,Al=!1),In(e,t,l),fe(l,Bs,l.stateNode),Ga=_,Al=X;break;case 5:qa||Rl(l,t);case 6:if(_=Ga,X=Al,Ga=null,In(e,t,l),Ga=_,Al=X,Ga!==null)if(Al)try{fe(l,m1,Ga,l.stateNode)}catch(J){Vt(l,t,J)}else try{fe(l,f1,Ga,l.stateNode)}catch(J){Vt(l,t,J)}break;case 18:Ga!==null&&(Al?(e=Ga,Bc(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ic(e)):Bc(Ga,l.stateNode));break;case 4:_=Ga,X=Al,Ga=l.stateNode.containerInfo,Al=!0,In(e,t,l),Ga=_,Al=X;break;case 0:case 11:case 14:case 15:Si(pl,l,t),qa||xh(l,t,dr),In(e,t,l);break;case 1:qa||(Rl(l,t),_=l.stateNode,typeof _.componentWillUnmount=="function"&&wh(l,t,_)),In(e,t,l);break;case 21:In(e,t,l);break;case 22:qa=(_=qa)||l.memoizedState!==null,In(e,t,l),qa=_;break;default:In(e,t,l)}(l.mode&Gt)!==Et&&0<=yt&&0<=wt&&(ha||.05<ia)&&ql(l,yt,wt,ia,na),ka(u),Ko(g),na=b,ha=M}function Ab(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{fe(t,Xh,e)}catch(l){Vt(t,t.return,l)}}}function zb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{fe(t,t0,e)}catch(l){Vt(t,t.return,l)}}function Fx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new kR),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new kR),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Ci(e,t){var l=Fx(e);t.forEach(function(u){if(!l.has(u)){if(l.add(u),Fr)if(_g!==null&&Ug!==null)od(Ug,_g);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var g=_c.bind(null,e,u);u.then(g,g)}})}function Mo(e,t){var l=t.deletions;if(l!==null)for(var u=0;u<l.length;u++){var g=e,b=t,M=l[u],_=Gn(),X=b;e:for(;X!==null;){switch(X.tag){case 27:if(Oi(X.type)){Ga=X.stateNode,Al=!1;break e}break;case 5:Ga=X.stateNode,Al=!1;break e;case 3:case 4:Ga=X.stateNode.containerInfo,Al=!0;break e}X=X.return}if(Ga===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");kb(g,b,M),Ga=null,Al=!1,(M.mode&Gt)!==Et&&0<=yt&&0<=wt&&.05<wt-yt&&Sl(M,yt,wt,"Unmount"),ka(_),g=M,b=g.alternate,b!==null&&(b.return=null),g.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)lm(t,e),t=t.sibling}function lm(e,t){var l=Gn(),u=El(),g=Fo(),b=Nl(),M=e.alternate,_=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Mo(t,e),Ro(e),_&4&&(Si(pl|ss,e,e.return),Ds(pl|ss,e),xh(e,e.return,dr|ss));break;case 1:if(Mo(t,e),Ro(e),_&512&&(qa||M===null||Rl(M,M.return)),_&64&&ou&&(_=e.updateQueue,_!==null&&(M=_.callbacks,M!==null))){var X=_.shared.hiddenCallbacks;_.shared.hiddenCallbacks=X===null?M:X.concat(M)}break;case 26:if(X=qs,Mo(t,e),Ro(e),_&512&&(qa||M===null||Rl(M,M.return)),_&4){var J=M!==null?M.memoizedState:null;if(_=e.memoizedState,M===null)if(_===null)if(e.stateNode===null){e:{_=e.type,M=e.memoizedProps,X=X.ownerDocument||X;t:switch(_){case"title":J=X.getElementsByTagName("title")[0],(!J||J[Td]||J[$n]||J.namespaceURI===Ht||J.hasAttribute("itemprop"))&&(J=X.createElement(_),X.head.insertBefore(J,X.querySelector("head > title"))),Pn(J,_,M),J[$n]=e,it(J),_=J;break e;case"link":var Ee=pd("link","href",X).get(_+(M.href||""));if(Ee){for(var Te=0;Te<Ee.length;Te++)if(J=Ee[Te],J.getAttribute("href")===(M.href==null||M.href===""?null:M.href)&&J.getAttribute("rel")===(M.rel==null?null:M.rel)&&J.getAttribute("title")===(M.title==null?null:M.title)&&J.getAttribute("crossorigin")===(M.crossOrigin==null?null:M.crossOrigin)){Ee.splice(Te,1);break t}}J=X.createElement(_),Pn(J,_,M),X.head.appendChild(J);break;case"meta":if(Ee=pd("meta","content",X).get(_+(M.content||""))){for(Te=0;Te<Ee.length;Te++)if(J=Ee[Te],ie(M.content,"content"),J.getAttribute("content")===(M.content==null?null:""+M.content)&&J.getAttribute("name")===(M.name==null?null:M.name)&&J.getAttribute("property")===(M.property==null?null:M.property)&&J.getAttribute("http-equiv")===(M.httpEquiv==null?null:M.httpEquiv)&&J.getAttribute("charset")===(M.charSet==null?null:M.charSet)){Ee.splice(Te,1);break t}}J=X.createElement(_),Pn(J,_,M),X.head.appendChild(J);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+_+'". This is a bug in React.')}J[$n]=e,it(J),_=J}e.stateNode=_}else T1(X,e.type,e.stateNode);else e.stateNode=Qh(X,_,e.memoizedProps);else J!==_?(J===null?M.stateNode!==null&&(M=M.stateNode,M.parentNode.removeChild(M)):J.count--,_===null?T1(X,e.type,e.stateNode):Qh(X,_,e.memoizedProps)):_===null&&e.stateNode!==null&&Ch(e,e.memoizedProps,M.memoizedProps)}break;case 27:Mo(t,e),Ro(e),_&512&&(qa||M===null||Rl(M,M.return)),M!==null&&_&4&&Ch(e,e.memoizedProps,M.memoizedProps);break;case 5:if(Mo(t,e),Ro(e),_&512&&(qa||M===null||Rl(M,M.return)),e.flags&32){X=e.stateNode;try{fe(e,Gh,X)}catch(nt){Vt(e,e.return,nt)}}_&4&&e.stateNode!=null&&(X=e.memoizedProps,Ch(e,X,M!==null?M.memoizedProps:X)),_&1024&&(jE=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Mo(t,e),Ro(e),_&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");_=e.memoizedProps,M=M!==null?M.memoizedProps:_,X=e.stateNode;try{fe(e,HC,X,M,_)}catch(nt){Vt(e,e.return,nt)}}break;case 3:if(X=Or(),AS=null,J=qs,qs=Ph(t.containerInfo),Mo(t,e),qs=J,Ro(e),_&4&&M!==null&&M.memoizedState.isDehydrated)try{fe(e,e0,t.containerInfo)}catch(nt){Vt(e,e.return,nt)}jE&&(jE=!1,Wx(e)),t.effectDuration+=_u(X);break;case 4:_=qs,qs=Ph(e.stateNode.containerInfo),Mo(t,e),Ro(e),qs=_;break;case 12:_=Or(),Mo(t,e),Ro(e),e.stateNode.effectDuration+=So(_);break;case 31:Mo(t,e),Ro(e),_&4&&(_=e.updateQueue,_!==null&&(e.updateQueue=null,Ci(e,_)));break;case 13:Mo(t,e),Ro(e),e.child.flags&8192&&e.memoizedState!==null!=(M!==null&&M.memoizedState!==null)&&(bS=La()),_&4&&(_=e.updateQueue,_!==null&&(e.updateQueue=null,Ci(e,_)));break;case 22:X=e.memoizedState!==null;var pe=M!==null&&M.memoizedState!==null,Be=ou,Je=qa;if(ou=Be||X,qa=Je||pe,Mo(t,e),qa=Je,ou=Be,pe&&!X&&!Be&&!Je&&(e.mode&Gt)!==Et&&0<=yt&&0<=wt&&.05<wt-yt&&Hp(e,yt,wt),Ro(e),_&8192)e:for(t=e.stateNode,t._visibility=X?t._visibility&~U0:t._visibility|U0,!X||M===null||pe||ou||qa||(Ei(e),(e.mode&Gt)!==Et&&0<=yt&&0<=wt&&.05<wt-yt&&Sl(e,yt,wt,"Disconnect")),M=null,t=e;;){if(t.tag===5||t.tag===26){if(M===null){pe=M=t;try{J=pe.stateNode,X?fe(pe,h1,J):fe(pe,b1,pe.stateNode,pe.memoizedProps)}catch(nt){Vt(pe,pe.return,nt)}}}else if(t.tag===6){if(M===null){pe=t;try{Ee=pe.stateNode,X?fe(pe,g1,Ee):fe(pe,v1,Ee,pe.memoizedProps)}catch(nt){Vt(pe,pe.return,nt)}}}else if(t.tag===18){if(M===null){pe=t;try{Te=pe.stateNode,X?fe(pe,p1,Te):fe(pe,y1,pe.stateNode)}catch(nt){Vt(pe,pe.return,nt)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;M===t&&(M=null),t=t.return}M===t&&(M=null),t.sibling.return=t.return,t=t.sibling}_&4&&(_=e.updateQueue,_!==null&&(M=_.retryQueue,M!==null&&(_.retryQueue=null,Ci(e,M))));break;case 19:Mo(t,e),Ro(e),_&4&&(_=e.updateQueue,_!==null&&(e.updateQueue=null,Ci(e,_)));break;case 30:break;case 21:break;default:Mo(t,e),Ro(e)}(e.mode&Gt)!==Et&&0<=yt&&0<=wt&&((ha||.05<ia)&&ql(e,yt,wt,ia,na),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<wt-yt&&(Db(e.return.alternate,e.return)||Sl(e,yt,wt,"Mount"))),ka(l),Ko(u),na=g,ha=b}function Ro(e){var t=e.flags;if(t&2){try{fe(e,Ob,e)}catch(l){Vt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Wx(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ol(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Nh(e,t.alternate,t),t=t.sibling}function Th(e){var t=Gn(),l=El(),u=Fo(),g=Nl();switch(e.tag){case 0:case 11:case 14:case 15:xh(e,e.return,dr),Ei(e);break;case 1:Rl(e,e.return);var b=e.stateNode;typeof b.componentWillUnmount=="function"&&wh(e,e.return,b),Ei(e);break;case 27:fe(e,Bs,e.stateNode);case 26:case 5:Rl(e,e.return),Ei(e);break;case 22:e.memoizedState===null&&Ei(e);break;case 30:Ei(e);break;default:Ei(e)}(e.mode&Gt)!==Et&&0<=yt&&0<=wt&&(ha||.05<ia)&&ql(e,yt,wt,ia,na),ka(t),Ko(l),na=u,ha=g}function Ei(e){for(e=e.child;e!==null;)Th(e),e=e.sibling}function _b(e,t,l,u){var g=Gn(),b=El(),M=Fo(),_=Nl(),X=l.flags;switch(l.tag){case 0:case 11:case 15:Jl(e,l,u),$x(l,dr);break;case 1:if(Jl(e,l,u),t=l.stateNode,typeof t.componentDidMount=="function"&&fe(l,yE,l,t),t=l.updateQueue,t!==null){e=l.stateNode;try{fe(l,nb,t,e)}catch(J){Vt(l,l.return,J)}}u&&X&64&&Tb(l),kc(l,l.return);break;case 27:jb(l);case 26:case 5:Jl(e,l,u),u&&t===null&&X&4&&wi(l),kc(l,l.return);break;case 12:if(u&&X&4){X=Or(),Jl(e,l,u),u=l.stateNode,u.effectDuration+=So(X);try{fe(l,Mb,l,t,zd,u.effectDuration)}catch(J){Vt(l,l.return,J)}}else Jl(e,l,u);break;case 31:Jl(e,l,u),u&&X&4&&Ab(e,l);break;case 13:Jl(e,l,u),u&&X&4&&zb(e,l);break;case 22:l.memoizedState===null&&Jl(e,l,u),kc(l,l.return);break;case 30:break;default:Jl(e,l,u)}(l.mode&Gt)!==Et&&0<=yt&&0<=wt&&(ha||.05<ia)&&ql(l,yt,wt,ia,na),ka(g),Ko(b),na=M,ha=_}function Jl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)_b(e,t.alternate,t,l),t=t.sibling}function rm(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&hc(e),l!=null&&kf(l))}function sm(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(hc(t),e!=null&&kf(e))}function ll(e,t,l,u,g){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var b=t.sibling;Ub(e,t,l,u,b!==null?b.actualStartTime:g),t=b}}function Ub(e,t,l,u,g){var b=Gn(),M=El(),_=Fo(),X=Nl(),J=jd,Ee=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Gt)!==Et&&0<t.actualStartTime&&(t.flags&1)!==0&&Ip(t,t.actualStartTime,g,eo,l),ll(e,t,l,u,g),Ee&2048&&nm(t,hl|ss);break;case 1:(t.mode&Gt)!==Et&&0<t.actualStartTime&&((t.flags&128)!==0?Hy(t,t.actualStartTime,g,[]):(t.flags&1)!==0&&Ip(t,t.actualStartTime,g,eo,l)),ll(e,t,l,u,g);break;case 3:var Te=Or(),pe=eo;eo=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,ll(e,t,l,u,g),eo=pe,Ee&2048&&(l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),u=t.memoizedState.cache,u!==l&&(hc(u),l!=null&&kf(l))),e.passiveEffectDuration+=_u(Te);break;case 12:if(Ee&2048){Ee=Or(),ll(e,t,l,u,g),e=t.stateNode,e.passiveEffectDuration+=So(Ee);try{fe(t,Kx,t,t.alternate,zd,e.passiveEffectDuration)}catch(Be){Vt(t,t.return,Be)}}else ll(e,t,l,u,g);break;case 31:Ee=eo,Te=t.alternate!==null?t.alternate.memoizedState:null,pe=t.memoizedState,Te!==null&&pe===null?(pe=t.deletions,pe!==null&&0<pe.length&&pe[0].tag===18?(eo=!1,Te=Te.hydrationErrors,Te!==null&&Hy(t,t.actualStartTime,g,Te)):eo=!0):eo=!1,ll(e,t,l,u,g),eo=Ee;break;case 13:Ee=eo,Te=t.alternate!==null?t.alternate.memoizedState:null,pe=t.memoizedState,Te===null||Te.dehydrated===null||pe!==null&&pe.dehydrated!==null?eo=!1:(pe=t.deletions,pe!==null&&0<pe.length&&pe[0].tag===18?(eo=!1,Te=Te.hydrationErrors,Te!==null&&Hy(t,t.actualStartTime,g,Te)):eo=!0),ll(e,t,l,u,g),eo=Ee;break;case 23:break;case 22:pe=t.stateNode,Te=t.alternate,t.memoizedState!==null?pe._visibility&Qc?ll(e,t,l,u,g):Ac(e,t,l,u,g):pe._visibility&Qc?ll(e,t,l,u,g):(pe._visibility|=Qc,Ni(e,t,l,u,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),g),(t.mode&Gt)===Et||eo||(e=t.actualStartTime,0<=e&&.05<g-e&&Hp(t,e,g),0<=yt&&0<=wt&&.05<wt-yt&&Hp(t,yt,wt))),Ee&2048&&rm(Te,t);break;case 24:ll(e,t,l,u,g),Ee&2048&&sm(t.alternate,t);break;default:ll(e,t,l,u,g)}(t.mode&Gt)!==Et&&((e=!eo&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(l=t.actualStartTime,0<=l&&.05<g-l&&Sl(t,l,g,"Mount")),0<=yt&&0<=wt&&((ha||.05<ia)&&ql(t,yt,wt,ia,na),e&&.05<wt-yt&&Sl(t,yt,wt,"Mount"))),ka(b),Ko(M),na=_,ha=X,jd=J}function Ni(e,t,l,u,g,b){for(g=g&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var M=t.sibling;im(e,t,l,u,g,M!==null?M.actualStartTime:b),t=M}}function im(e,t,l,u,g,b){var M=Gn(),_=El(),X=Fo(),J=Nl(),Ee=jd;g&&(t.mode&Gt)!==Et&&0<t.actualStartTime&&(t.flags&1)!==0&&Ip(t,t.actualStartTime,b,eo,l);var Te=t.flags;switch(t.tag){case 0:case 11:case 15:Ni(e,t,l,u,g,b),nm(t,hl);break;case 23:break;case 22:var pe=t.stateNode;t.memoizedState!==null?pe._visibility&Qc?Ni(e,t,l,u,g,b):Ac(e,t,l,u,b):(pe._visibility|=Qc,Ni(e,t,l,u,g,b)),g&&Te&2048&&rm(t.alternate,t);break;case 24:Ni(e,t,l,u,g,b),g&&Te&2048&&sm(t.alternate,t);break;default:Ni(e,t,l,u,g,b)}(t.mode&Gt)!==Et&&0<=yt&&0<=wt&&(ha||.05<ia)&&ql(t,yt,wt,ia,na),ka(M),Ko(_),na=X,ha=J,jd=Ee}function Ac(e,t,l,u,g){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var b=t.child;b!==null;){t=b.sibling;var M=e,_=l,X=u,J=t!==null?t.actualStartTime:g,Ee=jd;(b.mode&Gt)!==Et&&0<b.actualStartTime&&(b.flags&1)!==0&&Ip(b,b.actualStartTime,J,eo,_);var Te=b.flags;switch(b.tag){case 22:Ac(M,b,_,X,J),Te&2048&&rm(b.alternate,b);break;case 24:Ac(M,b,_,X,J),Te&2048&&sm(b.alternate,b);break;default:Ac(M,b,_,X,J)}jd=Ee,b=t}}function zc(e,t,l){if(e.subtreeFlags&nv)for(e=e.child;e!==null;)Mh(e,t,l),e=e.sibling}function Mh(e,t,l){switch(e.tag){case 26:zc(e,t,l),e.flags&nv&&e.memoizedState!==null&&r0(l,qs,e.memoizedState,e.memoizedProps);break;case 5:zc(e,t,l);break;case 3:case 4:var u=qs;qs=Ph(e.stateNode.containerInfo),zc(e,t,l),qs=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=nv,nv=16777216,zc(e,t,l),nv=u):zc(e,t,l));break;default:zc(e,t,l)}}function Bb(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function rl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var u=t[l],g=Gn();mo=u,Ir(u,e),(u.mode&Gt)!==Et&&0<=yt&&0<=wt&&.05<wt-yt&&Sl(u,yt,wt,"Unmount"),ka(g)}Bb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rh(e),e=e.sibling}function Rh(e){var t=Gn(),l=El(),u=Fo(),g=Nl();switch(e.tag){case 0:case 11:case 15:rl(e),e.flags&2048&&Sh(e,e.return,hl|ss);break;case 3:var b=Or();rl(e),e.stateNode.passiveEffectDuration+=_u(b);break;case 12:b=Or(),rl(e),e.stateNode.passiveEffectDuration+=So(b);break;case 22:b=e.stateNode,e.memoizedState!==null&&b._visibility&Qc&&(e.return===null||e.return.tag!==13)?(b._visibility&=~Qc,Oh(e),(e.mode&Gt)!==Et&&0<=yt&&0<=wt&&.05<wt-yt&&Sl(e,yt,wt,"Disconnect")):rl(e);break;default:rl(e)}(e.mode&Gt)!==Et&&0<=yt&&0<=wt&&(ha||.05<ia)&&ql(e,yt,wt,ia,na),ka(t),Ko(l),ha=g,na=u}function Oh(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var u=t[l],g=Gn();mo=u,Ir(u,e),(u.mode&Gt)!==Et&&0<=yt&&0<=wt&&.05<wt-yt&&Sl(u,yt,wt,"Unmount"),ka(g)}Bb(e)}for(e=e.child;e!==null;)Lb(e),e=e.sibling}function Lb(e){var t=Gn(),l=El(),u=Fo(),g=Nl();switch(e.tag){case 0:case 11:case 15:Sh(e,e.return,hl),Oh(e);break;case 22:var b=e.stateNode;b._visibility&Qc&&(b._visibility&=~Qc,Oh(e));break;default:Oh(e)}(e.mode&Gt)!==Et&&0<=yt&&0<=wt&&(ha||.05<ia)&&ql(e,yt,wt,ia,na),ka(t),Ko(l),ha=g,na=u}function Ir(e,t){for(;mo!==null;){var l=mo,u=l,g=t,b=Gn(),M=El(),_=Fo(),X=Nl();switch(u.tag){case 0:case 11:case 15:Sh(u,g,hl);break;case 23:case 22:u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool,g!=null&&hc(g));break;case 24:kf(u.memoizedState.cache)}if((u.mode&Gt)!==Et&&0<=yt&&0<=wt&&(ha||.05<ia)&&ql(u,yt,wt,ia,na),ka(b),Ko(M),ha=X,na=_,u=l.child,u!==null)u.return=l,mo=u;else e:for(l=e;mo!==null;){if(u=mo,b=u.sibling,M=u.return,ma(u),u===l){mo=null;break e}if(b!==null){b.return=M,mo=b;break e}mo=M}}}function Vb(){y6.forEach(function(e){return e()})}function Hb(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||Ve.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function io(e){if((un&to)!==po&&Pt!==0)return Pt&-Pt;var t=Ve.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Kb()):Mt()}function Ju(){if(_l===0)if((Pt&536870912)===0||tn){var e=Dm;Dm<<=1,(Dm&3932160)===0&&(Dm=262144),_l=e}else _l=536870912;return e=ur.current,e!==null&&(e.flags|=32),_l}function Ot(e,t,l){if(Vg&&console.error("useInsertionEffect must not schedule updates."),IE&&(wS=!0),(e===Ln&&(kn===$m||kn===Qm)||e.cancelPendingCommit!==null)&&(Yr(e,0),Ol(e,Pt,_l,!1)),Tt(e,l),(un&to)!==po&&e===Ln){if(Zr)switch(t.tag){case 0:case 11:case 15:e=Qt&&Z(Qt)||"Unknown",$R.has(e)||($R.add(e),t=Z(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:PR||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),PR=!0)}}else Fr&&ct(e,t,l),fm(t),e===Ln&&((un&to)===po&&(Yd|=l),ca===Vd&&Ol(e,Pt,_l,!1)),Ho(e)}function Jx(e,t,l){if((un&(to|fr))!==po)throw Error("Should not already be working.");if(Pt!==0&&Qt!==null){var u=Qt,g=La();switch(VM){case lv:case $m:var b=Y0;Qn&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Suspended",b,g,Jr,void 0,"primary-light")):console.timeStamp("Suspended",b,g,Jr,void 0,"primary-light"));break;case Qm:b=Y0,Qn&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Action",b,g,Jr,void 0,"primary-light")):console.timeStamp("Action",b,g,Jr,void 0,"primary-light"));break;default:Qn&&(u=g-Y0,3>u||console.timeStamp("Blocked",Y0,g,Jr,void 0,5>u?"primary-light":10>u?"primary":100>u?"primary-dark":"error"))}}b=(l=!l&&(t&127)===0&&(t&e.expiredLanes)===0||$e(e,t))?ks(e,t):nd(e,t,!0);var M=l;do{if(b===lu){Bg&&!l&&Ol(e,t,0,!1),t=kn,Y0=Ha(),VM=t;break}else{if(u=La(),g=e.current.alternate,M&&!t1(g)){Yl(t),g=fo,b=u,!Qn||b<=g||(Sa?Sa.run(console.timeStamp.bind(console,"Teared Render",g,b,rn,an,"error")):console.timeStamp("Teared Render",g,b,rn,an,"error")),Ti(t,u),b=nd(e,t,!1),M=!1;continue}if(b===Pm){if(M=t,e.errorRecoveryDisabledLanes&M)var _=0;else _=e.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){Yl(t),Iy(fo,u,t,Sa),Ti(t,u),t=_;e:{u=e,b=M,M=sv;var X=u.current.memoizedState.isDehydrated;if(X&&(Yr(u,_).flags|=256),_=nd(u,_,!1),_!==Pm){if(AE&&!X){u.errorRecoveryDisabledLanes|=b,Yd|=b,b=Vd;break e}u=gl,gl=M,u!==null&&(gl===null?gl=u:gl.push.apply(gl,u))}b=_}if(M=!1,b!==Pm)continue;u=La()}}if(b===ov){Yl(t),Iy(fo,u,t,Sa),Ti(t,u),Yr(e,0),Ol(e,t,0,!0);break}e:{switch(l=e,b){case lu:case ov:throw Error("Root did not complete. This is a bug in React.");case Vd:if((t&4194048)!==t)break;case pS:Yl(t),Ox(fo,u,t,Sa),Ti(t,u),g=t,(g&127)!==0?J1=u:(g&4194048)!==0&&(eS=u),Ol(l,t,_l,!Hd);break e;case Pm:gl=null;break;case mS:case AR:break;default:throw Error("Unknown root exit status.")}if(Ve.actQueue!==null)_n(l,g,t,gl,iv,yS,_l,Yd,Zm,b,null,null,fo,u);else{if((t&62914560)===t&&(M=bS+UR-La(),10<M)){if(Ol(l,t,_l,!Hd),We(l,0,!0)!==0)break e;Gs=t,l.timeoutHandle=tO(e1.bind(null,l,g,gl,iv,yS,t,_l,Yd,Zm,Hd,b,"Throttled",fo,u),M);break e}e1(l,g,gl,iv,yS,t,_l,Yd,Zm,Hd,b,null,fo,u)}}}break}while(!0);Ho(e)}function e1(e,t,l,u,g,b,M,_,X,J,Ee,Te,pe,Be){e.timeoutHandle=ep;var Je=t.subtreeFlags,nt=null;if((Je&8192||(Je&16785408)===16785408)&&(nt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xl},Mh(t,b,nt),Je=(b&62914560)===b?bS-La():(b&4194048)===b?_R-La():0,Je=Zh(nt,Je),Je!==null)){Gs=b,e.cancelPendingCommit=Je(_n.bind(null,e,t,b,l,u,g,M,_,X,Ee,nt,nt.waitingForViewTransition?"Waiting for the previous Animation":0<nt.count?0<nt.imgCount?"Suspended on CSS and Images":"Suspended on CSS":nt.imgCount===1?"Suspended on an Image":0<nt.imgCount?"Suspended on Images":null,pe,Be)),Ol(e,b,M,!J);return}_n(e,t,b,l,u,g,M,_,X,Ee,nt,Te,pe,Be)}function t1(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var g=l[u],b=g.getSnapshot;g=g.value;try{if(!fl(b(),g))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ol(e,t,l,u){t&=~zE,t&=~Yd,e.suspendedLanes|=t,e.pingedLanes&=~t,u&&(e.warmLanes|=t),u=e.expirationTimes;for(var g=t;0<g;){var b=31-Wa(g),M=1<<b;u[b]=-1,g&=~M}l!==0&&Kt(e,l,t)}function sl(){return(un&(to|fr))===po?(Gr(0),!1):!0}function jh(){if(Qt!==null){if(kn===zl)var e=Qt.return;else e=Qt,Au(),di(e),Rg=null,F0=0,e=Qt;for(;e!==null;)Nb(e.alternate,e),e=e.return;Qt=null}}function Ti(e,t){(e&127)!==0&&(Bm=t),(e&4194048)!==0&&(Jc=t),(e&62914560)!==0&&(BM=t),(e&2080374784)!==0&&(LM=t)}function Yr(e,t){Qn&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",an,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",an,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",an,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",an,"primary-light"));var l=fo;if(fo=Ha(),Pt!==0&&0<l){if(Yl(Pt),ca===mS||ca===Vd)Ox(l,fo,t,Sa);else{var u=fo,g=Sa;if(Qn&&!(u<=l)){var b=(t&738197653)===t?"tertiary-dark":"primary-dark",M=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";g?g.run(console.timeStamp.bind(console,M,l,u,rn,an,b)):console.timeStamp(M,l,u,rn,an,b)}}Ti(Pt,fo)}if(l=Sa,Sa=null,(t&127)!==0){Sa=V0,g=0<=Bi&&Bi<Bm?Bm:Bi,u=0<=Lm&&Lm<Bm?Bm:Lm,b=0<=u?u:0<=g?g:fo,0<=J1?(Yl(2),jx(J1,b,t,l)):tS&127,l=g;var _=u,X=H0,J=0<Ng,Ee=_d===L0,Te=_d===W1;if(g=fo,u=V0,b=fE,M=mE,Qn){if(rn="Blocking",0<l?l>g&&(l=g):l=g,0<_?_>l&&(_=l):_=l,X!==null&&l>_){var pe=J?"secondary-light":"warning";u?u.run(console.timeStamp.bind(console,J?"Consecutive":"Event: "+X,_,l,rn,an,pe)):console.timeStamp(J?"Consecutive":"Event: "+X,_,l,rn,an,pe)}g>l&&(_=Ee?"error":(t&738197653)===t?"tertiary-light":"primary-light",Ee=Te?"Promise Resolved":Ee?"Cascading Update":5<g-l?"Update Blocked":"Update",Te=[],M!=null&&Te.push(["Component name",M]),b!=null&&Te.push(["Method name",b]),l={start:l,end:g,detail:{devtools:{properties:Te,track:rn,trackGroup:an,color:_}}},u?u.run(performance.measure.bind(performance,Ee,l)):performance.measure(Ee,l))}Bi=-1.1,_d=0,mE=fE=null,J1=-1.1,Ng=Lm,Lm=-1.1,Bm=Ha()}if((t&4194048)!==0&&(Sa=I0,g=0<=eu&&eu<Jc?Jc:eu,l=0<=ls&&ls<Jc?Jc:ls,u=0<=Ud&&Ud<Jc?Jc:Ud,b=0<=u?u:0<=l?l:fo,0<=eS?(Yl(256),jx(eS,b,t,Sa)):tS&4194048,Te=u,_=Vm,X=0<Bd,J=pE===W1,b=fo,u=I0,M=_M,Ee=UM,Qn&&(rn="Transition",0<l?l>b&&(l=b):l=b,0<g?g>l&&(g=l):g=l,0<Te?Te>g&&(Te=g):Te=g,g>Te&&_!==null&&(pe=X?"secondary-light":"warning",u?u.run(console.timeStamp.bind(console,X?"Consecutive":"Event: "+_,Te,g,rn,an,pe)):console.timeStamp(X?"Consecutive":"Event: "+_,Te,g,rn,an,pe)),l>g&&(u?u.run(console.timeStamp.bind(console,"Action",g,l,rn,an,"primary-dark")):console.timeStamp("Action",g,l,rn,an,"primary-dark")),b>l&&(g=J?"Promise Resolved":5<b-l?"Update Blocked":"Update",Te=[],Ee!=null&&Te.push(["Component name",Ee]),M!=null&&Te.push(["Method name",M]),l={start:l,end:b,detail:{devtools:{properties:Te,track:rn,trackGroup:an,color:"primary-light"}}},u?u.run(performance.measure.bind(performance,g,l)):performance.measure(g,l))),ls=eu=-1.1,pE=0,eS=-1.1,Bd=Ud,Ud=-1.1,Jc=Ha()),(t&62914560)!==0&&(tS&62914560)!==0&&(Yl(4194304),Yy(BM,fo)),(t&2080374784)!==0&&(tS&2080374784)!==0&&(Yl(268435456),Yy(LM,fo)),l=e.timeoutHandle,l!==ep&&(e.timeoutHandle=ep,j6(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Gs=0,jh(),Ln=e,Qt=l=Mr(e.current,null),Pt=t,kn=zl,mr=null,Hd=!1,Bg=$e(e,t),AE=!1,ca=lu,Zm=_l=zE=Yd=Id=0,gl=sv=null,yS=!1,(t&8)!==0&&(t|=t&32),u=e.entangledLanes,u!==0)for(e=e.entanglements,u&=t;0<u;)g=31-Wa(u),b=1<<g,t|=e[g],u&=~b;return Vi=t,Yp(),e=OM(),1e3<e-RM&&(Ve.recentlyCreatedOwnerStacks=0,RM=e),Is.discardPendingWarnings(),l}function er(e,t){kt=null,Ve.H=tv,Ve.getCurrentStack=null,Zr=!1,Go=null,t===Mg||t===lS?(t=bc(),kn=lv):t===bE?(t=bc(),kn=zR):kn=t===RE?kE:t!==null&&typeof t=="object"&&typeof t.then=="function"?rv:hS,mr=t;var l=Qt;l===null?(ca=ov,Ff(e,xo(t,e.current))):l.mode&Gt&&Zp(l)}function Ib(){var e=ur.current;return e===null?!0:(Pt&4194048)===Pt?rs===null:(Pt&62914560)===Pt||(Pt&536870912)!==0?e===rs:!1}function Dh(){var e=Ve.H;return Ve.H=tv,e===null?tv:e}function Yb(){var e=Ve.A;return Ve.A=g6,e}function ed(e){Sa===null&&(Sa=e._debugTask==null?null:e._debugTask)}function td(){ca=Vd,Hd||(Pt&4194048)!==Pt&&ur.current!==null||(Bg=!0),(Id&134217727)===0&&(Yd&134217727)===0||Ln===null||Ol(Ln,Pt,_l,!1)}function nd(e,t,l){var u=un;un|=to;var g=Dh(),b=Yb();if(Ln!==e||Pt!==t){if(Fr){var M=e.memoizedUpdaters;0<M.size&&(od(e,Pt),M.clear()),ot(e,t)}iv=null,Yr(e,t)}t=!1,M=ca;e:do try{if(kn!==zl&&Qt!==null){var _=Qt,X=mr;switch(kn){case kE:jh(),M=pS;break e;case lv:case $m:case Qm:case rv:ur.current===null&&(t=!0);var J=kn;if(kn=zl,mr=null,ad(e,_,X,J),l&&Bg){M=lu;break e}break;default:J=kn,kn=zl,mr=null,ad(e,_,X,J)}}qb(),M=ca;break}catch(Ee){er(e,Ee)}while(!0);return t&&e.shellSuspendCounter++,Au(),un=u,Ve.H=g,Ve.A=b,Qt===null&&(Ln=null,Pt=0,Yp()),M}function qb(){for(;Qt!==null;)kh(Qt)}function ks(e,t){var l=un;un|=to;var u=Dh(),g=Yb();if(Ln!==e||Pt!==t){if(Fr){var b=e.memoizedUpdaters;0<b.size&&(od(e,Pt),b.clear()),ot(e,t)}iv=null,vS=La()+BR,Yr(e,t)}else Bg=$e(e,t);e:do try{if(kn!==zl&&Qt!==null)t:switch(t=Qt,b=mr,kn){case hS:kn=zl,mr=null,ad(e,t,b,hS);break;case $m:case Qm:if(eb(b)){kn=zl,mr=null,Gb(t);break}t=function(){kn!==$m&&kn!==Qm||Ln!==e||(kn=gS),Ho(e)},b.then(t,t);break e;case lv:kn=gS;break e;case zR:kn=DE;break e;case gS:eb(b)?(kn=zl,mr=null,Gb(t)):(kn=zl,mr=null,ad(e,t,b,gS));break;case DE:var M=null;switch(Qt.tag){case 26:M=Qt.memoizedState;case 5:case 27:var _=Qt;if(M?Zt(M):_.stateNode.complete){kn=zl,mr=null;var X=_.sibling;if(X!==null)Qt=X;else{var J=_.return;J!==null?(Qt=J,cm(J)):Qt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}kn=zl,mr=null,ad(e,t,b,DE);break;case rv:kn=zl,mr=null,ad(e,t,b,rv);break;case kE:jh(),ca=pS;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ve.actQueue!==null?qb():va();break}catch(Ee){er(e,Ee)}while(!0);return Au(),Ve.H=u,Ve.A=g,un=l,Qt!==null?lu:(Ln=null,Pt=0,Yp(),ca)}function va(){for(;Qt!==null&&!rg();)kh(Qt)}function kh(e){var t=e.alternate;(e.mode&Gt)!==Et?(Ss(e),t=fe(e,tm,t,e,Vi),Zp(e)):t=fe(e,tm,t,e,Vi),e.memoizedProps=e.pendingProps,t===null?cm(e):Qt=t}function Gb(e){var t=fe(e,Ba,e);e.memoizedProps=e.pendingProps,t===null?cm(e):Qt=t}function Ba(e){var t=e.alternate,l=(e.mode&Gt)!==Et;switch(l&&Ss(e),e.tag){case 15:case 0:t=vb(t,e,e.pendingProps,e.type,void 0,Pt);break;case 11:t=vb(t,e,e.pendingProps,e.type.render,e.ref,Pt);break;case 5:di(e);default:Nb(t,e),e=Qt=Py(e,Vi),t=tm(t,e,Vi)}return l&&Zp(e),t}function ad(e,t,l,u){Au(),di(t),Rg=null,F0=0;var g=t.return;try{if(fb(e,g,t,l,Pt)){ca=ov,Ff(e,xo(l,e.current)),Qt=null;return}}catch(b){if(g!==null)throw Qt=g,b;ca=ov,Ff(e,xo(l,e.current)),Qt=null;return}t.flags&32768?(tn||u===hS?e=!0:Bg||(Pt&536870912)!==0?e=!1:(Hd=e=!0,(u===$m||u===Qm||u===lv||u===rv)&&(u=ur.current,u!==null&&u.tag===13&&(u.flags|=16384))),Xb(t,e)):cm(t)}function cm(e){var t=e;do{if((t.flags&32768)!==0){Xb(t,Hd);return}var l=t.alternate;if(e=t.return,Ss(t),l=fe(t,Eb,l,t,Vi),(t.mode&Gt)!==Et&&Af(t),l!==null){Qt=l;return}if(t=t.sibling,t!==null){Qt=t;return}Qt=t=e}while(t!==null);ca===lu&&(ca=AR)}function Xb(e,t){do{var l=Px(e.alternate,e);if(l!==null){l.flags&=32767,Qt=l;return}if((e.mode&Gt)!==Et){Af(e),l=e.actualDuration;for(var u=e.child;u!==null;)l+=u.actualDuration,u=u.sibling;e.actualDuration=l}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Qt=e;return}Qt=e=l}while(e!==null);ca=pS,Qt=null}function _n(e,t,l,u,g,b,M,_,X,J,Ee,Te,pe,Be){e.cancelPendingCommit=null;do um();while(Xa!==Gd);if(Is.flushLegacyContextWarning(),Is.flushPendingUnsafeLifecycleWarnings(),(un&(to|fr))!==po)throw Error("Should not already be working.");if(Yl(l),J===Pm?Iy(pe,Be,l,Sa):u!==null?_C(pe,Be,l,u,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Sa):zC(pe,Be,l,Sa),t!==null){if(l===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(b=t.lanes|t.childLanes,b|=sE,Lt(e,l,b,M,_,X),e===Ln&&(Qt=Ln=null,Pt=0),Lg=t,Xd=e,Gs=l,BE=b,VE=g,qR=u,LE=Be,GR=Te,Xs=xS,XR=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ld(Gc,function(){return pv=window.event,Xs===xS&&(Xs=UE),dm(),null})):(e.callbackNode=null,e.callbackPriority=0),Wc=null,zd=Ha(),Te!==null&&UC(Be,zd,Te,Sa),u=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||u){u=Ve.T,Ve.T=null,g=yn.p,yn.p=Ma,M=un,un|=fr;try{VC(e,t,l)}finally{un=M,yn.p=g,Ve.T=u}}Xa=VR,Oo(),qr(),Pb()}}function Oo(){if(Xa===VR){Xa=Gd;var e=Xd,t=Lg,l=Gs,u=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||u){u=Ve.T,Ve.T=null;var g=yn.p;yn.p=Ma;var b=un;un|=fr;try{_g=l,Ug=e,gc(),lm(t,e),Ug=_g=null,l=KE;var M=Vp(e.containerInfo),_=l.focusedElem,X=l.selectionRange;if(M!==_&&_&&_.ownerDocument&&Nx(_.ownerDocument.documentElement,_)){if(X!==null&&Ly(_)){var J=X.start,Ee=X.end;if(Ee===void 0&&(Ee=J),"selectionStart"in _)_.selectionStart=J,_.selectionEnd=Math.min(Ee,_.value.length);else{var Te=_.ownerDocument||document,pe=Te&&Te.defaultView||window;if(pe.getSelection){var Be=pe.getSelection(),Je=_.textContent.length,nt=Math.min(X.start,Je),Yn=X.end===void 0?nt:Math.min(X.end,Je);!Be.extend&&nt>Yn&&(M=Yn,Yn=nt,nt=M);var on=Ex(_,nt),me=Ex(_,Yn);if(on&&me&&(Be.rangeCount!==1||Be.anchorNode!==on.node||Be.anchorOffset!==on.offset||Be.focusNode!==me.node||Be.focusOffset!==me.offset)){var ge=Te.createRange();ge.setStart(on.node,on.offset),Be.removeAllRanges(),nt>Yn?(Be.addRange(ge),Be.extend(me.node,me.offset)):(ge.setEnd(me.node,me.offset),Be.addRange(ge))}}}}for(Te=[],Be=_;Be=Be.parentNode;)Be.nodeType===1&&Te.push({element:Be,left:Be.scrollLeft,top:Be.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<Te.length;_++){var xe=Te[_];xe.element.scrollLeft=xe.left,xe.element.scrollTop=xe.top}}US=!!ZE,KE=ZE=null}finally{un=b,yn.p=g,Ve.T=u}}e.current=t,Xa=HR}}function qr(){if(Xa===HR){Xa=Gd;var e=XR;if(e!==null){zd=Ha();var t=Fc,l=zd;!Qn||l<=t||console.timeStamp(e,t,l,rn,an,"secondary-light")}e=Xd,t=Lg,l=Gs;var u=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||u){u=Ve.T,Ve.T=null;var g=yn.p;yn.p=Ma;var b=un;un|=fr;try{_g=l,Ug=e,gc(),Nh(e,t.alternate,t),Ug=_g=null}finally{un=b,yn.p=g,Ve.T=u}}e=LE,t=GR,Fc=Ha(),e=t===null?e:zd,t=Fc,l=Xs===_E,u=Sa,Wc!==null?Dx(e,t,Wc,!1,u):!Qn||t<=e||(u?u.run(console.timeStamp.bind(console,l?"Commit Interrupted View Transition":"Commit",e,t,rn,an,l?"error":"secondary-dark")):console.timeStamp(l?"Commit Interrupted View Transition":"Commit",e,t,rn,an,l?"error":"secondary-dark")),Xa=IR}}function Pb(){if(Xa===YR||Xa===IR){if(Xa===YR){var e=Fc;Fc=Ha();var t=Fc,l=Xs===_E;!Qn||t<=e||console.timeStamp(l?"Interrupted View Transition":"Starting Animation",e,t,rn,an,l?" error":"secondary-light"),Xs!==_E&&(Xs=LR)}Xa=Gd,sg(),e=Xd;var u=Lg;t=Gs,l=qR;var g=u.actualDuration!==0||(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0;g?Xa=SS:(Xa=Gd,Lg=Xd=null,$b(e,e.pendingLanes),Km=0,uv=null);var b=e.pendingLanes;if(b===0&&(qd=null),g||_h(e),b=xt(t),u=u.stateNode,Ta&&typeof Ta.onCommitFiberRoot=="function")try{var M=(u.current.flags&128)===128;switch(b){case Ma:var _=C0;break;case Ja:_=ig;break;case uo:_=Gc;break;case zi:_=cg;break;default:_=Gc}Ta.onCommitFiberRoot(Xc,u,_,M)}catch(Te){Kr||(Kr=!0,console.error("React instrumentation encountered an error: %o",Te))}if(Fr&&e.memoizedUpdaters.clear(),Vb(),l!==null){M=Ve.T,_=yn.p,yn.p=Ma,Ve.T=null;try{var X=e.onRecoverableError;for(u=0;u<l.length;u++){var J=l[u],Ee=n1(J.stack);fe(J.source,X,J.value,Ee)}}finally{Ve.T=M,yn.p=_}}(Gs&3)!==0&&um(),Ho(e),b=e.pendingLanes,(t&261930)!==0&&(b&42)!==0?(aS=!0,e===HE?cv++:(cv=0,HE=e)):cv=0,g||Ti(t,Fc),Gr(0)}}function n1(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function $b(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,kf(t)))}function um(){return Oo(),qr(),Pb(),dm()}function dm(){if(Xa!==SS)return!1;var e=Xd,t=BE;BE=0;var l=xt(Gs),u=uo>l?uo:l;l=Ve.T;var g=yn.p;try{yn.p=u,Ve.T=null;var b=VE;VE=null,u=Xd;var M=Gs;if(Xa=Gd,Lg=Xd=null,Gs=0,(un&(to|fr))!==po)throw Error("Cannot flush passive effects while already rendering.");Yl(M),IE=!0,wS=!1;var _=0;if(Wc=null,_=La(),Xs===LR)Yy(Fc,_,c6);else{var X=Fc,J=_,Ee=Xs===UE;!Qn||J<=X||(Sa?Sa.run(console.timeStamp.bind(console,Ee?"Waiting for Paint":"Waiting",X,J,rn,an,"secondary-light")):console.timeStamp(Ee?"Waiting for Paint":"Waiting",X,J,rn,an,"secondary-light"))}X=un,un|=fr;var Te=u.current;gc(),Rh(Te);var pe=u.current;Te=LE,gc(),Ub(u,pe,M,b,Te),_h(u),un=X;var Be=La();if(pe=_,Te=Sa,Wc!==null?Dx(pe,Be,Wc,!0,Te):!Qn||Be<=pe||(Te?Te.run(console.timeStamp.bind(console,"Remaining Effects",pe,Be,rn,an,"secondary-dark")):console.timeStamp("Remaining Effects",pe,Be,rn,an,"secondary-dark")),Ti(M,Be),Gr(0,!1),wS?u===uv?Km++:(Km=0,uv=u):Km=0,wS=IE=!1,Ta&&typeof Ta.onPostCommitFiberRoot=="function")try{Ta.onPostCommitFiberRoot(Xc,u)}catch(nt){Kr||(Kr=!0,console.error("React instrumentation encountered an error: %o",nt))}var Je=u.current.stateNode;return Je.effectDuration=0,Je.passiveEffectDuration=0,!0}finally{yn.p=g,Ve.T=l,$b(e,t)}}function jo(e,t,l){t=xo(l,t),Bx(t),t=dh(e.stateNode,t,2),e=Dr(e,t,2),e!==null&&(Tt(e,2),Ho(e))}function Vt(e,t,l){if(Vg=!1,e.tag===3)jo(e,e,l);else{for(;t!==null;){if(t.tag===3){jo(t,e,l);return}if(t.tag===1){var u=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(qd===null||!qd.has(u))){e=xo(l,e),Bx(e),l=fh(2),u=Dr(t,l,2),u!==null&&(mh(l,u,t,e),Tt(u,2),Ho(u));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
168
|
+
|
|
169
|
+
Error message:
|
|
170
|
+
|
|
171
|
+
%s`,l)}}function Ah(e,t,l){var u=e.pingCache;if(u===null){u=e.pingCache=new b6;var g=new Set;u.set(t,g)}else g=u.get(t),g===void 0&&(g=new Set,u.set(t,g));g.has(l)||(AE=!0,g.add(l),u=Vo.bind(null,e,t,l),Fr&&od(e,l),t.then(u,u))}function Vo(e,t,l){var u=e.pingCache;u!==null&&u.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,(l&127)!==0?0>Bi&&(Bm=Bi=Ha(),V0=F1("Promise Resolved"),_d=W1):(l&4194048)!==0&&0>ls&&(Jc=ls=Ha(),I0=F1("Promise Resolved"),pE=W1),Hb()&&Ve.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
172
|
+
|
|
173
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
174
|
+
|
|
175
|
+
act(() => {
|
|
176
|
+
/* finish loading suspended data */
|
|
177
|
+
});
|
|
178
|
+
/* assert on the output */
|
|
179
|
+
|
|
180
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Ln===e&&(Pt&l)===l&&(ca===Vd||ca===mS&&(Pt&62914560)===Pt&&La()-bS<UR?(un&to)===po&&Yr(e,0):zE|=l,Zm===Pt&&(Zm=0)),Ho(e)}function Qb(e,t){t===0&&(t=nn()),e=ro(e,t),e!==null&&(Tt(e,t),Ho(e))}function As(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Qb(e,l)}function _c(e,t){var l=0;switch(e.tag){case 31:case 13:var u=e.stateNode,g=e.memoizedState;g!==null&&(l=g.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(t),Qb(e,l)}function tr(e,t,l){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var u=e,g=t,b=g.type===Ao;b=l||b,g.tag!==22?g.flags&67108864?b&&fe(g,zh,u,g):tr(u,g,b):g.memoizedState===null&&(b&&g.flags&8192?fe(g,zh,u,g):g.subtreeFlags&67108864&&fe(g,tr,u,g,b)),t=t.sibling}}function zh(e,t){Re(!0);try{Th(t),Lb(t),_b(e,t.alternate,t,!1),im(e,t,0,null,!1,0)}finally{Re(!1)}}function _h(e){var t=!0;e.current.mode&(Xo|Hs)||(t=!1),tr(e,e.current,t)}function jl(e){if((un&to)===po){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=Z(e)||"ReactComponent",CS!==null){if(CS.has(t))return;CS.add(t)}else CS=new Set([t]);fe(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function od(e,t){Fr&&e.memoizedUpdaters.forEach(function(l){ct(e,l,t)})}function ld(e,t){var l=Ve.actQueue;return l!==null?(l.push(t),S6):w0(e,t)}function fm(e){Hb()&&Ve.actQueue===null&&fe(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
181
|
+
|
|
182
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
183
|
+
|
|
184
|
+
act(() => {
|
|
185
|
+
/* fire events that update state */
|
|
186
|
+
});
|
|
187
|
+
/* assert on the output */
|
|
188
|
+
|
|
189
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,Z(e))})}function Ho(e){e!==Hg&&e.next===null&&(Hg===null?ES=Hg=e:Hg=Hg.next=e),NS=!0,Ve.actQueue!==null?qE||(qE=!0,o1()):YE||(YE=!0,o1())}function Gr(e,t){if(!GE&&NS){GE=!0;do for(var l=!1,u=ES;u!==null;){if(e!==0){var g=u.pendingLanes;if(g===0)var b=0;else{var M=u.suspendedLanes,_=u.pingedLanes;b=(1<<31-Wa(42|e)+1)-1,b&=g&~(M&~_),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(l=!0,mm(u,b))}else b=Pt,b=We(u,u===Ln?b:0,u.cancelPendingCommit!==null||u.timeoutHandle!==ep),(b&3)===0||$e(u,b)||(l=!0,mm(u,b));u=u.next}while(l);GE=!1}}function a1(){pv=window.event,Uh()}function Uh(){NS=qE=YE=!1;var e=0;Pd!==0&&Wb()&&(e=Pd);for(var t=La(),l=null,u=ES;u!==null;){var g=u.next,b=rd(u,t);b===0?(u.next=null,l===null?ES=g:l.next=g,g===null&&(Hg=l)):(l=u,(e!==0||(b&3)!==0)&&(NS=!0)),u=g}Xa!==Gd&&Xa!==SS||Gr(e),Pd!==0&&(Pd=0)}function rd(e,t){for(var l=e.suspendedLanes,u=e.pingedLanes,g=e.expirationTimes,b=e.pendingLanes&-62914561;0<b;){var M=31-Wa(b),_=1<<M,X=g[M];X===-1?((_&l)===0||(_&u)!==0)&&(g[M]=st(_,t)):X<=t&&(e.expiredLanes|=_),b&=~_}if(t=Ln,l=Pt,l=We(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==ep),u=e.callbackNode,l===0||e===t&&(kn===$m||kn===Qm)||e.cancelPendingCommit!==null)return u!==null&&Bh(u),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||$e(e,l)){if(t=l&-l,t!==e.callbackPriority||Ve.actQueue!==null&&u!==XE)Bh(u);else return t;switch(xt(l)){case Ma:case Ja:l=ig;break;case uo:l=Gc;break;case zi:l=cg;break;default:l=Gc}return u=Zb.bind(null,e),Ve.actQueue!==null?(Ve.actQueue.push(u),l=XE):l=w0(l,u),e.callbackPriority=t,e.callbackNode=l,t}return u!==null&&Bh(u),e.callbackPriority=2,e.callbackNode=null,2}function Zb(e,t){if(aS=nS=!1,pv=window.event,Xa!==Gd&&Xa!==SS)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Xs===xS&&(Xs=UE),um()&&e.callbackNode!==l)return null;var u=Pt;return u=We(e,e===Ln?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==ep),u===0?null:(Jx(e,u,t),rd(e,La()),e.callbackNode!=null&&e.callbackNode===l?Zb.bind(null,e):null)}function mm(e,t){if(um())return null;nS=aS,aS=!1,Jx(e,t,!0)}function Bh(e){e!==XE&&e!==null&&lg(e)}function o1(){Ve.actQueue!==null&&Ve.actQueue.push(function(){return Uh(),null}),D6(function(){(un&(to|fr))!==po?w0(C0,a1):Uh()})}function Kb(){if(Pd===0){var e=Hm;e===0&&(e=Ed,Ed<<=1,(Ed&261888)===0&&(Ed=256)),Pd=e}return Pd}function dn(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(ie(e,"action"),wf(""+e))}function On(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Jt(e,t,l,u,g){if(t==="submit"&&l&&l.stateNode===g){var b=dn((g[zo]||null).action),M=u.submitter;M&&(t=(t=M[zo]||null)?dn(t.formAction):M.getAttribute("formAction"),t!==null&&(b=t,M=null));var _=new G1("action","action",null,u,g);e.push({event:_,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Pd!==0){var X=M?On(g,M):new FormData(g),J={pending:!0,data:X,method:g.method,action:b};Object.freeze(J),Os(l,J,null,X)}}else typeof b=="function"&&(_.preventDefault(),X=M?On(g,M):new FormData(g),J={pending:!0,data:X,method:g.method,action:b},Object.freeze(J),Os(l,J,b,X))},currentTarget:g}]})}}function $t(e,t,l){e.currentTarget=l;try{t(e)}catch(u){aE(u)}e.currentTarget=null}function wn(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var u=e[l];e:{var g=void 0,b=u.event;if(u=u.listeners,t)for(var M=u.length-1;0<=M;M--){var _=u[M],X=_.instance,J=_.currentTarget;if(_=_.listener,X!==g&&b.isPropagationStopped())break e;X!==null?fe(X,$t,b,_,J):$t(b,_,J),g=X}else for(M=0;M<u.length;M++){if(_=u[M],X=_.instance,J=_.currentTarget,_=_.listener,X!==g&&b.isPropagationStopped())break e;X!==null?fe(X,$t,b,_,J):$t(b,_,J),g=X}}}}function Ct(e,t){PE.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var l=t[Pc];l===void 0&&(l=t[Pc]=new Set);var u=e+"__bubble";l.has(u)||(Lh(t,e,2,!1),l.add(u))}function Xr(e,t,l){PE.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var u=0;t&&(u|=4),Lh(l,e,u,t)}function Mi(e){if(!e[TS]){e[TS]=!0,V1.forEach(function(l){l!=="selectionchange"&&(PE.has(l)||Xr(l,!1,e),Xr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[TS]||(t[TS]=!0,Xr("selectionchange",!1,t))}}function Lh(e,t,l,u){switch(Wh(t)){case Ma:var g=d0;break;case Ja:g=Fa;break;default:g=f0}l=g.bind(null,t,l,e),g=void 0,!$C||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(g=!0),u?g!==void 0?e.addEventListener(t,l,{capture:!0,passive:g}):e.addEventListener(t,l,!0):g!==void 0?e.addEventListener(t,l,{passive:g}):e.addEventListener(t,l,!1)}function nr(e,t,l,u,g){var b=u;if((t&1)===0&&(t&2)===0&&u!==null)e:for(;;){if(u===null)return;var M=u.tag;if(M===3||M===4){var _=u.stateNode.containerInfo;if(_===g)break;if(M===4)for(M=u.return;M!==null;){var X=M.tag;if((X===3||X===4)&&M.stateNode.containerInfo===g)return;M=M.return}for(;_!==null;){if(M=lt(_),M===null)return;if(X=M.tag,X===5||X===6||X===26||X===27){u=b=M;continue e}_=_.parentNode}}u=u.return}_p(function(){var J=b,Ee=Hl(l),Te=[];e:{var pe=MM.get(e);if(pe!==void 0){var Be=G1,Je=e;switch(e){case"keypress":if(Cf(l)===0)break e;case"keydown":case"keyup":Be=U_;break;case"focusin":Je="focus",Be=FC;break;case"focusout":Je="blur",Be=FC;break;case"beforeblur":case"afterblur":Be=FC;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Be=mM;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Be=E_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Be=V_;break;case CM:case EM:case NM:Be=M_;break;case TM:Be=I_;break;case"scroll":case"scrollend":Be=w_;break;case"wheel":Be=q_;break;case"copy":case"cut":case"paste":Be=O_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Be=hM;break;case"toggle":case"beforetoggle":Be=X_}var nt=(t&4)!==0,Yn=!nt&&(e==="scroll"||e==="scrollend"),on=nt?pe!==null?pe+"Capture":null:pe;nt=[];for(var me=J,ge;me!==null;){var xe=me;if(ge=xe.stateNode,xe=xe.tag,xe!==5&&xe!==26&&xe!==27||ge===null||on===null||(xe=Nr(me,on),xe!=null&&nt.push(Un(me,xe,ge))),Yn)break;me=me.return}0<nt.length&&(pe=new Be(pe,Je,null,l,Ee),Te.push({event:pe,listeners:nt}))}}if((t&7)===0){e:{if(pe=e==="mouseover"||e==="pointerover",Be=e==="mouseout"||e==="pointerout",pe&&l!==R0&&(Je=l.relatedTarget||l.fromElement)&&(lt(Je)||Je[Vs]))break e;if((Be||pe)&&(pe=Ee.window===Ee?Ee:(pe=Ee.ownerDocument)?pe.defaultView||pe.parentWindow:window,Be?(Je=l.relatedTarget||l.toElement,Be=J,Je=Je?lt(Je):null,Je!==null&&(Yn=A(Je),nt=Je.tag,Je!==Yn||nt!==5&&nt!==27&&nt!==6)&&(Je=null)):(Be=null,Je=J),Be!==Je)){if(nt=mM,xe="onMouseLeave",on="onMouseEnter",me="mouse",(e==="pointerout"||e==="pointerover")&&(nt=hM,xe="onPointerLeave",on="onPointerEnter",me="pointer"),Yn=Be==null?pe:ht(Be),ge=Je==null?pe:ht(Je),pe=new nt(xe,me+"leave",Be,l,Ee),pe.target=Yn,pe.relatedTarget=ge,xe=null,lt(Ee)===J&&(nt=new nt(on,me+"enter",Je,l,Ee),nt.target=ge,nt.relatedTarget=Yn,xe=nt),Yn=xe,Be&&Je)t:{for(nt=Uc,on=Be,me=Je,ge=0,xe=on;xe;xe=nt(xe))ge++;xe=0;for(var qe=me;qe;qe=nt(qe))xe++;for(;0<ge-xe;)on=nt(on),ge--;for(;0<xe-ge;)me=nt(me),xe--;for(;ge--;){if(on===me||me!==null&&on===me.alternate){nt=on;break t}on=nt(on),me=nt(me)}nt=null}else nt=null;Be!==null&&Vh(Te,pe,Be,nt,!1),Je!==null&&Yn!==null&&Vh(Te,Yn,Je,nt,!0)}}e:{if(pe=J?ht(J):window,Be=pe.nodeName&&pe.nodeName.toLowerCase(),Be==="select"||Be==="input"&&pe.type==="file")var et=ai;else if(_y(pe))if(SM)et=Mf;else{et=Uy;var At=AC}else Be=pe.nodeName,!Be||Be.toLowerCase()!=="input"||pe.type!=="checkbox"&&pe.type!=="radio"?J&&Er(J.elementType)&&(et=ai):et=By;if(et&&(et=et(e,J))){Nf(Te,et,l,Ee);break e}At&&At(e,pe,J),e==="focusout"&&J&&pe.type==="number"&&J.memoizedProps.value!=null&&Ty(pe,"number",pe.value)}switch(At=J?ht(J):window,e){case"focusin":(_y(At)||At.contentEditable==="true")&&(yg=At,JC=J,_0=null);break;case"focusout":_0=JC=yg=null;break;case"mousedown":eE=!0;break;case"contextmenu":case"mouseup":case"dragend":eE=!1,Tx(Te,l,Ee);break;case"selectionchange":if(Z_)break;case"keydown":case"keyup":Tx(Te,l,Ee)}var gt;if(WC)e:{switch(e){case"compositionstart":var mt="onCompositionStart";break e;case"compositionend":mt="onCompositionEnd";break e;case"compositionupdate":mt="onCompositionUpdate";break e}mt=void 0}else gg?Ru(e,l)&&(mt="onCompositionEnd"):e==="keydown"&&l.keyCode===gM&&(mt="onCompositionStart");mt&&(yM&&l.locale!=="ko"&&(gg||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&gg&&(gt=rc()):(Od=Ee,QC="value"in Od?Od.value:Od.textContent,gg=!0)),At=ar(J,mt),0<At.length&&(mt=new pM(mt,e,null,l,Ee),Te.push({event:mt,listeners:At}),gt?mt.data=gt:(gt=vs(l),gt!==null&&(mt.data=gt)))),(gt=$_?zy(e,l):Up(e,l))&&(mt=ar(J,"onBeforeInput"),0<mt.length&&(At=new D_("onBeforeInput","beforeinput",null,l,Ee),Te.push({event:At,listeners:mt}),At.data=gt)),Jt(Te,e,J,l,Ee)}wn(Te,t)})}function Un(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ar(e,t){for(var l=t+"Capture",u=[];e!==null;){var g=e,b=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||b===null||(g=Nr(e,l),g!=null&&u.unshift(Un(e,g,b)),g=Nr(e,t),g!=null&&u.push(Un(e,g,b))),e.tag===3)return u;e=e.return}return[]}function Uc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vh(e,t,l,u,g){for(var b=t._reactName,M=[];l!==null&&l!==u;){var _=l,X=_.alternate,J=_.stateNode;if(_=_.tag,X!==null&&X===u)break;_!==5&&_!==26&&_!==27||J===null||(X=J,g?(J=Nr(l,b),J!=null&&M.unshift(Un(l,J,X))):g||(J=Nr(l,b),J!=null&&M.push(Un(l,J,X)))),l=l.return}M.length!==0&&e.push({event:t,listeners:M})}function Do(e,t){Sx(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||dM||(dM=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var l={registrationNameDependencies:Wr,possibleRegistrationNames:Md};Er(e)||typeof t.is=="string"||kC(e,t,l),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function ea(e,t,l,u){t!==l&&(l=or(l),or(t)!==l&&(u[e]=t))}function pm(e,t,l){t.forEach(function(u){l[zs(u)]=u==="style"?Ri(e):e.getAttribute(u)})}function ta(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function Hh(e,t){return e=e.namespaceURI===_t||e.namespaceURI===Ht?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function or(e){return ue(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",ae(e)),be(e)),(typeof e=="string"?e:""+e).replace(w6,`
|
|
190
|
+
`).replace(C6,"")}function Fb(e,t){return t=or(t),or(e)===t}function gn(e,t,l,u,g,b){switch(l){case"children":typeof u=="string"?(Sf(u,t,!1),t==="body"||t==="textarea"&&u===""||lc(e,u)):(typeof u=="number"||typeof u=="bigint")&&(Sf(""+u,t,!1),t!=="body"&&lc(e,""+u));break;case"className":pn(e,"class",u);break;case"tabIndex":pn(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":pn(e,l,u);break;case"style":Dy(e,u,b);break;case"data":if(t!=="object"){pn(e,"data",u);break}case"src":case"href":if(u===""&&(t!=="a"||l!=="href")){console.error(l==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',l,l),e.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(l);break}ie(u,l),u=wf(""+u),e.setAttribute(l,u);break;case"action":case"formAction":if(u!=null&&(t==="form"?l==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof u=="function"&&(g.encType==null&&g.method==null||OS||(OS=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),g.target==null||RS||(RS=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?l==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||g.type==="submit"||g.type==="image"||MS?t!=="button"||g.type==null||g.type==="submit"||MS?typeof u=="function"&&(g.name==null||KR||(KR=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),g.formEncType==null&&g.formMethod==null||OS||(OS=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),g.formTarget==null||RS||(RS=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(MS=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(MS=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(l==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof u=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(l==="formAction"?(t!=="input"&&gn(e,t,"name",g.name,g,null),gn(e,t,"formEncType",g.formEncType,g,null),gn(e,t,"formMethod",g.formMethod,g,null),gn(e,t,"formTarget",g.formTarget,g,null)):(gn(e,t,"encType",g.encType,g,null),gn(e,t,"method",g.method,g,null),gn(e,t,"target",g.target,g,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(l);break}ie(u,l),u=wf(""+u),e.setAttribute(l,u);break;case"onClick":u!=null&&(typeof u!="function"&&ta(l,u),e.onclick=xl);break;case"onScroll":u!=null&&(typeof u!="function"&&ta(l,u),Ct("scroll",e));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&ta(l,u),Ct("scrollend",e));break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(l=u.__html,l!=null){if(g.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=l}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}ie(u,l),l=wf(""+u),e.setAttributeNS(Fm,"xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?(ie(u,l),e.setAttribute(l,""+u)):e.removeAttribute(l);break;case"inert":u!==""||jS[l]||(jS[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":u===!0?e.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?(ie(u,l),e.setAttribute(l,u)):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?(ie(u,l),e.setAttribute(l,u)):e.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(l):(ie(u,l),e.setAttribute(l,u));break;case"popover":Ct("beforetoggle",e),Ct("toggle",e),Rt(e,"popover",u);break;case"xlinkActuate":Hn(e,Fm,"xlink:actuate",u);break;case"xlinkArcrole":Hn(e,Fm,"xlink:arcrole",u);break;case"xlinkRole":Hn(e,Fm,"xlink:role",u);break;case"xlinkShow":Hn(e,Fm,"xlink:show",u);break;case"xlinkTitle":Hn(e,Fm,"xlink:title",u);break;case"xlinkType":Hn(e,Fm,"xlink:type",u);break;case"xmlBase":Hn(e,$E,"xml:base",u);break;case"xmlLang":Hn(e,$E,"xml:lang",u);break;case"xmlSpace":Hn(e,$E,"xml:space",u);break;case"is":b!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Rt(e,"is",u);break;case"innerText":case"textContent":break;case"popoverTarget":FR||u==null||typeof u!="object"||(FR=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",u));default:!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N"?(l=vx(l),Rt(e,l,u)):Wr.hasOwnProperty(l)&&u!=null&&typeof u!="function"&&ta(l,u)}}function sd(e,t,l,u,g,b){switch(l){case"style":Dy(e,u,b);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(l=u.__html,l!=null){if(g.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=l}}break;case"children":typeof u=="string"?lc(e,u):(typeof u=="number"||typeof u=="bigint")&&lc(e,""+u);break;case"onScroll":u!=null&&(typeof u!="function"&&ta(l,u),Ct("scroll",e));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&ta(l,u),Ct("scrollend",e));break;case"onClick":u!=null&&(typeof u!="function"&&ta(l,u),e.onclick=xl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Wr.hasOwnProperty(l))u!=null&&typeof u!="function"&&ta(l,u);else e:{if(l[0]==="o"&&l[1]==="n"&&(g=l.endsWith("Capture"),t=l.slice(2,g?l.length-7:void 0),b=e[zo]||null,b=b!=null?b[l]:null,typeof b=="function"&&e.removeEventListener(t,b,g),typeof u=="function")){typeof b!="function"&&b!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,u,g);break e}l in e?e[l]=u:u===!0?e.setAttribute(l,""):Rt(e,l,u)}}}function Pn(e,t,l){switch(Do(t,l),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ct("error",e),Ct("load",e);var u=!1,g=!1,b;for(b in l)if(l.hasOwnProperty(b)){var M=l[b];if(M!=null)switch(b){case"src":u=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:gn(e,t,b,M,l,null)}}g&&gn(e,t,"srcSet",l.srcSet,l,null),u&&gn(e,t,"src",l.src,l,null);return;case"input":oo("input",l),Ct("invalid",e);var _=b=M=g=null,X=null,J=null;for(u in l)if(l.hasOwnProperty(u)){var Ee=l[u];if(Ee!=null)switch(u){case"name":g=Ee;break;case"type":M=Ee;break;case"checked":X=Ee;break;case"defaultChecked":J=Ee;break;case"value":b=Ee;break;case"defaultValue":_=Ee;break;case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:gn(e,t,u,Ee,l,null)}}vo(e,l),Mp(e,b,_,X,J,M,g,!1);return;case"select":oo("select",l),Ct("invalid",e),u=M=b=null;for(g in l)if(l.hasOwnProperty(g)&&(_=l[g],_!=null))switch(g){case"value":b=_;break;case"defaultValue":M=_;break;case"multiple":u=_;default:gn(e,t,g,_,l,null)}Rp(e,l),t=b,l=M,e.multiple=!!u,t!=null?wr(e,!!u,t,!1):l!=null&&wr(e,!!u,l,!0);return;case"textarea":oo("textarea",l),Ct("invalid",e),b=g=u=null;for(M in l)if(l.hasOwnProperty(M)&&(_=l[M],_!=null))switch(M){case"value":u=_;break;case"defaultValue":g=_;break;case"children":b=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:gn(e,t,M,_,l,null)}tc(e,l),wu(e,u,g,b);return;case"option":bx(e,l);for(X in l)l.hasOwnProperty(X)&&(u=l[X],u!=null)&&(X==="selected"?e.selected=u&&typeof u!="function"&&typeof u!="symbol":gn(e,t,X,u,l,null));return;case"dialog":Ct("beforetoggle",e),Ct("toggle",e),Ct("cancel",e),Ct("close",e);break;case"iframe":case"object":Ct("load",e);break;case"video":case"audio":for(u=0;u<dv.length;u++)Ct(dv[u],e);break;case"image":Ct("error",e),Ct("load",e);break;case"details":Ct("toggle",e);break;case"embed":case"source":case"link":Ct("error",e),Ct("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(J in l)if(l.hasOwnProperty(J)&&(u=l[J],u!=null))switch(J){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:gn(e,t,J,u,l,null)}return;default:if(Er(t)){for(Ee in l)l.hasOwnProperty(Ee)&&(u=l[Ee],u!==void 0&&sd(e,t,Ee,u,l,void 0));return}}for(_ in l)l.hasOwnProperty(_)&&(u=l[_],u!=null&&gn(e,t,_,u,l,null))}function Na(e,t,l,u){switch(Do(t,u),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,b=null,M=null,_=null,X=null,J=null,Ee=null;for(Be in l){var Te=l[Be];if(l.hasOwnProperty(Be)&&Te!=null)switch(Be){case"checked":break;case"value":break;case"defaultValue":X=Te;default:u.hasOwnProperty(Be)||gn(e,t,Be,null,u,Te)}}for(var pe in u){var Be=u[pe];if(Te=l[pe],u.hasOwnProperty(pe)&&(Be!=null||Te!=null))switch(pe){case"type":b=Be;break;case"name":g=Be;break;case"checked":J=Be;break;case"defaultChecked":Ee=Be;break;case"value":M=Be;break;case"defaultValue":_=Be;break;case"children":case"dangerouslySetInnerHTML":if(Be!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Be!==Te&&gn(e,t,pe,Be,u,Te)}}t=l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null,u=u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null,t||!u||ZR||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),ZR=!0),!t||u||QR||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),QR=!0),ei(e,M,_,X,J,Ee,b,g);return;case"select":Be=M=_=pe=null;for(b in l)if(X=l[b],l.hasOwnProperty(b)&&X!=null)switch(b){case"value":break;case"multiple":Be=X;default:u.hasOwnProperty(b)||gn(e,t,b,null,u,X)}for(g in u)if(b=u[g],X=l[g],u.hasOwnProperty(g)&&(b!=null||X!=null))switch(g){case"value":pe=b;break;case"defaultValue":_=b;break;case"multiple":M=b;default:b!==X&&gn(e,t,g,b,u,X)}u=_,t=M,l=Be,pe!=null?wr(e,!!t,pe,!1):!!l!=!!t&&(u!=null?wr(e,!!t,u,!0):wr(e,!!t,t?[]:"",!1));return;case"textarea":Be=pe=null;for(_ in l)if(g=l[_],l.hasOwnProperty(_)&&g!=null&&!u.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:gn(e,t,_,null,u,g)}for(M in u)if(g=u[M],b=l[M],u.hasOwnProperty(M)&&(g!=null||b!=null))switch(M){case"value":pe=g;break;case"defaultValue":Be=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:g!==b&&gn(e,t,M,g,u,b)}nc(e,pe,Be);return;case"option":for(var Je in l)pe=l[Je],l.hasOwnProperty(Je)&&pe!=null&&!u.hasOwnProperty(Je)&&(Je==="selected"?e.selected=!1:gn(e,t,Je,null,u,pe));for(X in u)pe=u[X],Be=l[X],u.hasOwnProperty(X)&&pe!==Be&&(pe!=null||Be!=null)&&(X==="selected"?e.selected=pe&&typeof pe!="function"&&typeof pe!="symbol":gn(e,t,X,pe,u,Be));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var nt in l)pe=l[nt],l.hasOwnProperty(nt)&&pe!=null&&!u.hasOwnProperty(nt)&&gn(e,t,nt,null,u,pe);for(J in u)if(pe=u[J],Be=l[J],u.hasOwnProperty(J)&&pe!==Be&&(pe!=null||Be!=null))switch(J){case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:gn(e,t,J,pe,u,Be)}return;default:if(Er(t)){for(var Yn in l)pe=l[Yn],l.hasOwnProperty(Yn)&&pe!==void 0&&!u.hasOwnProperty(Yn)&&sd(e,t,Yn,void 0,u,pe);for(Ee in u)pe=u[Ee],Be=l[Ee],!u.hasOwnProperty(Ee)||pe===Be||pe===void 0&&Be===void 0||sd(e,t,Ee,pe,u,Be);return}}for(var on in l)pe=l[on],l.hasOwnProperty(on)&&pe!=null&&!u.hasOwnProperty(on)&&gn(e,t,on,null,u,pe);for(Te in u)pe=u[Te],Be=l[Te],!u.hasOwnProperty(Te)||pe===Be||pe==null&&Be==null||gn(e,t,Te,pe,u,Be)}function zs(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Ri(e){var t={};e=e.style;for(var l=0;l<e.length;l++){var u=e[l];t[u]=e.getPropertyValue(u)}return t}function Pr(e,t,l){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var u,g=u="",b;for(b in t)if(t.hasOwnProperty(b)){var M=t[b];M!=null&&typeof M!="boolean"&&M!==""&&(b.indexOf("--")===0?(Oe(M,b),u+=g+b+":"+(""+M).trim()):typeof M!="number"||M===0||ut.has(b)?(Oe(M,b),u+=g+b.replace(He,"-$1").toLowerCase().replace(rt,"-ms-")+":"+(""+M).trim()):u+=g+b.replace(He,"-$1").toLowerCase().replace(rt,"-ms-")+":"+M+"px",g=";")}u=u||null,t=e.getAttribute("style"),t!==u&&(u=or(u),or(t)!==u&&(l.style=Ri(e)))}}function Io(e,t,l,u,g,b){if(g.delete(l),e=e.getAttribute(l),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(ie(u,t),e===""+u)return}ea(t,e,u,b)}function Ih(e,t,l,u,g,b){if(g.delete(l),e=e.getAttribute(l),e===null){switch(typeof u){case"function":case"symbol":return}if(!u)return}else switch(typeof u){case"function":case"symbol":break;default:if(u)return}ea(t,e,u,b)}function Yh(e,t,l,u,g,b){if(g.delete(l),e=e.getAttribute(l),e===null)switch(typeof u){case"undefined":case"function":case"symbol":return}else if(u!=null)switch(typeof u){case"function":case"symbol":break;default:if(ie(u,l),e===""+u)return}ea(t,e,u,b)}function id(e,t,l,u,g,b){if(g.delete(l),e=e.getAttribute(l),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(u))return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(!isNaN(u)&&(ie(u,t),e===""+u))return}ea(t,e,u,b)}function hm(e,t,l,u,g,b){if(g.delete(l),e=e.getAttribute(l),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(ie(u,t),l=wf(""+u),e===l)return}ea(t,e,u,b)}function Yo(e,t,l,u){for(var g={},b=new Set,M=e.attributes,_=0;_<M.length;_++)switch(M[_].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:b.add(M[_].name)}if(Er(t)){for(var X in l)if(l.hasOwnProperty(X)){var J=l[X];if(J!=null){if(Wr.hasOwnProperty(X))typeof J!="function"&&ta(X,J);else if(l.suppressHydrationWarning!==!0)switch(X){case"children":typeof J!="string"&&typeof J!="number"||ea("children",e.textContent,J,g);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":M=e.innerHTML,J=J?J.__html:void 0,J!=null&&(J=Hh(e,J),ea(X,M,J,g));continue;case"style":b.delete(X),Pr(e,J,g);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":b.delete(X.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",X);continue;case"className":b.delete("class"),M=lo(e,"class",J),ea("className",M,J,g);continue;default:u.context===ru&&t!=="svg"&&t!=="math"?b.delete(X.toLowerCase()):b.delete(X),M=lo(e,X,J),ea(X,M,J,g)}}}}else for(J in l)if(l.hasOwnProperty(J)&&(X=l[J],X!=null)){if(Wr.hasOwnProperty(J))typeof X!="function"&&ta(J,X);else if(l.suppressHydrationWarning!==!0)switch(J){case"children":typeof X!="string"&&typeof X!="number"||ea("children",e.textContent,X,g);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":M=e.innerHTML,X=X?X.__html:void 0,X!=null&&(X=Hh(e,X),M!==X&&(g[J]={__html:M}));continue;case"className":Io(e,J,"class",X,b,g);continue;case"tabIndex":Io(e,J,"tabindex",X,b,g);continue;case"style":b.delete(J),Pr(e,X,g);continue;case"multiple":b.delete(J),ea(J,e.multiple,X,g);continue;case"muted":b.delete(J),ea(J,e.muted,X,g);continue;case"autoFocus":b.delete("autofocus"),ea(J,e.autofocus,X,g);continue;case"data":if(t!=="object"){b.delete(J),M=e.getAttribute("data"),ea(J,M,X,g);continue}case"src":case"href":if(!(X!==""||t==="a"&&J==="href"||t==="object"&&J==="data")){console.error(J==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',J,J);continue}hm(e,J,J,X,b,g);continue;case"action":case"formAction":if(M=e.getAttribute(J),typeof X=="function"){b.delete(J.toLowerCase()),J==="formAction"?(b.delete("name"),b.delete("formenctype"),b.delete("formmethod"),b.delete("formtarget")):(b.delete("enctype"),b.delete("method"),b.delete("target"));continue}else if(M===E6){b.delete(J.toLowerCase()),ea(J,"function",X,g);continue}hm(e,J,J.toLowerCase(),X,b,g);continue;case"xlinkHref":hm(e,J,"xlink:href",X,b,g);continue;case"contentEditable":Yh(e,J,"contenteditable",X,b,g);continue;case"spellCheck":Yh(e,J,"spellcheck",X,b,g);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Yh(e,J,J,X,b,g);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Ih(e,J,J.toLowerCase(),X,b,g);continue;case"capture":case"download":e:{_=e;var Ee=M=J,Te=g;if(b.delete(Ee),_=_.getAttribute(Ee),_===null)switch(typeof X){case"undefined":case"function":case"symbol":break e;default:if(X===!1)break e}else if(X!=null)switch(typeof X){case"function":case"symbol":break;case"boolean":if(X===!0&&_==="")break e;break;default:if(ie(X,M),_===""+X)break e}ea(M,_,X,Te)}continue;case"cols":case"rows":case"size":case"span":e:{if(_=e,Ee=M=J,Te=g,b.delete(Ee),_=_.getAttribute(Ee),_===null)switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(X)||1>X)break e}else if(X!=null)switch(typeof X){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(X)||1>X)&&(ie(X,M),_===""+X))break e}ea(M,_,X,Te)}continue;case"rowSpan":id(e,J,"rowspan",X,b,g);continue;case"start":id(e,J,J,X,b,g);continue;case"xHeight":Io(e,J,"x-height",X,b,g);continue;case"xlinkActuate":Io(e,J,"xlink:actuate",X,b,g);continue;case"xlinkArcrole":Io(e,J,"xlink:arcrole",X,b,g);continue;case"xlinkRole":Io(e,J,"xlink:role",X,b,g);continue;case"xlinkShow":Io(e,J,"xlink:show",X,b,g);continue;case"xlinkTitle":Io(e,J,"xlink:title",X,b,g);continue;case"xlinkType":Io(e,J,"xlink:type",X,b,g);continue;case"xmlBase":Io(e,J,"xml:base",X,b,g);continue;case"xmlLang":Io(e,J,"xml:lang",X,b,g);continue;case"xmlSpace":Io(e,J,"xml:space",X,b,g);continue;case"inert":X!==""||jS[J]||(jS[J]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",J)),Ih(e,J,J,X,b,g);continue;default:if(!(2<J.length)||J[0]!=="o"&&J[0]!=="O"||J[1]!=="n"&&J[1]!=="N"){_=vx(J),M=!1,u.context===ru&&t!=="svg"&&t!=="math"?b.delete(_.toLowerCase()):(Ee=J.toLowerCase(),Ee=ir.hasOwnProperty(Ee)&&ir[Ee]||null,Ee!==null&&Ee!==J&&(M=!0,b.delete(Ee)),b.delete(_));e:if(Ee=e,Te=_,_=X,bo(Te))if(Ee.hasAttribute(Te))Ee=Ee.getAttribute(Te),ie(_,Te),_=Ee===""+_?_:Ee;else{switch(typeof _){case"function":case"symbol":break e;case"boolean":if(Ee=Te.toLowerCase().slice(0,5),Ee!=="data-"&&Ee!=="aria-")break e}_=_===void 0?void 0:null}else _=void 0;M||ea(J,_,X,g)}}}return 0<b.size&&l.suppressHydrationWarning!==!0&&pm(e,b,g),Object.keys(g).length===0?null:g}function l1(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function ko(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function r1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var g=l[u],b=g.transferSize,M=g.initiatorType,_=g.duration;if(b&&_&&ko(M)){for(M=0,_=g.responseEnd,u+=1;u<l.length;u++){var X=l[u],J=X.startTime;if(J>_)break;var Ee=X.transferSize,Te=X.initiatorType;Ee&&ko(Te)&&(X=X.responseEnd,M+=Ee*(X<_?1:(_-J)/(X-J)))}if(--u,t+=8*(b+M)/(g.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function gm(e){return e.nodeType===9?e:e.ownerDocument}function s1(e){switch(e){case Ht:return Yg;case _t:return kS;default:return ru}}function _s(e,t){if(e===ru)switch(t){case"svg":return Yg;case"math":return kS;default:return ru}return e===Yg&&t==="foreignObject"?ru:e}function cd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function Wb(){var e=window.event;return e&&e.type==="popstate"?e===FE?!1:(FE=e,!0):(FE=null,!1)}function $r(){var e=window.event;return e&&e!==pv?e.type:null}function ud(){var e=window.event;return e&&e!==pv?e.timeStamp:-1.1}function i1(e){setTimeout(function(){throw e})}function c1(e,t,l){switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&e.focus();break;case"img":l.src?e.src=l.src:l.srcSet&&(e.srcset=l.srcSet)}}function u1(){}function qh(e,t,l,u){Na(e,t,l,u),e[zo]=u}function Gh(e){lc(e,"")}function HC(e,t,l){e.nodeValue=l}function d1(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[zo]||null;if(t!==null){var l=tt(e);l!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,fe(l,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,fe(l,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Oi(e){return e==="head"}function f1(e,t){e.removeChild(t)}function m1(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function Bc(e,t){var l=t,u=0;do{var g=l.nextSibling;if(e.removeChild(l),g&&g.nodeType===8)if(l=g.data,l===mv||l===DS){if(u===0){e.removeChild(g),Ic(t);return}u--}else if(l===fv||l===$d||l===Jm||l===Ig||l===Wm)u++;else if(l===T6)Bs(e.ownerDocument.documentElement);else if(l===R6){l=e.ownerDocument.head,Bs(l);for(var b=l.firstChild;b;){var M=b.nextSibling,_=b.nodeName;b[Td]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&b.rel.toLowerCase()==="stylesheet"||l.removeChild(b),b=M}}else l===M6&&Bs(e.ownerDocument.body);l=g}while(l);Ic(t)}function ym(e,t){var l=e;e=0;do{var u=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l===mv){if(e===0)break;e--}else l!==fv&&l!==$d&&l!==Jm&&l!==Ig||e++;l=u}while(l)}function p1(e){ym(e,!0)}function h1(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function g1(e){e.nodeValue=""}function y1(e){ym(e,!1)}function b1(e,t){t=t[O6],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function v1(e,t){e.nodeValue=t}function dd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":dd(l),at(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function x1(e,t,l,u){for(;e.nodeType===1;){var g=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[Td])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(b=e.getAttribute("rel"),b==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(b!==g.rel||e.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||e.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||e.getAttribute("title")!==(g.title==null?null:g.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(b=e.getAttribute("src"),(b!==(g.src==null?null:g.src)||e.getAttribute("type")!==(g.type==null?null:g.type)||e.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&b&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){ie(g.name,"name");var b=g.name==null?null:""+g.name;if(g.type==="hidden"&&e.getAttribute("name")===b)return e}else return e;if(e=il(e.nextSibling),e===null)break}return null}function S1(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=il(e.nextSibling),e===null))return null;return e}function Cn(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=il(e.nextSibling),e===null))return null;return e}function bm(e){return e.data===$d||e.data===Jm}function Jb(e){return e.data===Ig||e.data===$d&&e.ownerDocument.readyState!==JR}function w1(e,t){var l=e.ownerDocument;if(e.data===Jm)e._reactRetry=t;else if(e.data!==$d||l.readyState!==JR)t();else{var u=function(){t(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function il(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===fv||t===Ig||t===$d||t===Jm||t===Wm||t===QE||t===WR)break;if(t===mv||t===DS)return null}}return e}function C1(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),l={},u=e.attributes,g=0;g<u.length;g++){var b=u[g];l[zs(b.name)]=b.name.toLowerCase()==="style"?Ri(e):b.value}return{type:t,props:l}}return e.nodeType===8?e.data===Wm?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function E1(e,t,l){return l===null||l[N6]!==!0?(e.nodeValue===t?e=null:(t=or(t),e=or(e.nodeValue)===t?null:e.nodeValue),e):null}function fd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l===mv||l===DS){if(t===0)return il(e.nextSibling);t--}else l!==fv&&l!==Ig&&l!==$d&&l!==Jm&&l!==Wm||t++}e=e.nextSibling}return null}function Lc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l===fv||l===Ig||l===$d||l===Jm||l===Wm){if(t===0)return e;t--}else l!==mv&&l!==DS||t++}e=e.previousSibling}return null}function e0(e){Ic(e)}function Xh(e){Ic(e)}function t0(e){Ic(e)}function Us(e,t,l,u,g){switch(g&&xf(e,u.ancestorInfo),t=gm(l),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Qr(e,t,l,u){if(!l[Vs]&&tt(l)){var g=l.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",g,g,g)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(g=l.attributes;g.length;)l.removeAttributeNode(g[0]);Pn(l,e,t),l[$n]=u,l[zo]=t}function Bs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);at(e)}function Ph(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function n0(e,t,l){var u=qg;if(u&&typeof t=="string"&&t){var g=Mn(t);g='link[rel="'+e+'"][href="'+g+'"]',typeof l=="string"&&(g+='[crossorigin="'+l+'"]'),lO.has(g)||(lO.add(g),e={rel:e,crossOrigin:l,href:t},u.querySelector(g)===null&&(t=u.createElement("link"),Pn(t,"link",e),it(t),u.head.appendChild(t)))}}function a0(e,t,l,u){var g=(g=cl.current)?Ph(g):null;if(!g)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=Vc(l.href),t=Yt(g).hoistableStyles,u=t.get(l),u||(u={type:"style",instance:null,count:0,state:null},t.set(l,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Vc(l.href);var b=Yt(g).hoistableStyles,M=b.get(e);if(!M&&(g=g.ownerDocument||g,M={type:"stylesheet",instance:null,count:0,state:{loading:tp,preload:null}},b.set(e,M),(b=g.querySelector(xm(e)))&&!b._p&&(M.instance=b,M.state.loading=hv|cs),!us.has(e))){var _={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy};us.set(e,_),b||N1(g,e,_,M.state)}if(t&&u===null)throw l=`
|
|
191
|
+
|
|
192
|
+
- `+vm(t)+`
|
|
193
|
+
+ `+vm(l),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+l);return M}if(t&&u!==null)throw l=`
|
|
194
|
+
|
|
195
|
+
- `+vm(t)+`
|
|
196
|
+
+ `+vm(l),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+l);return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(l=Hc(l),t=Yt(g).hoistableScripts,u=t.get(l),u||(u={type:"script",instance:null,count:0,state:null},t.set(l,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function vm(e){var t=0,l="<link";return typeof e.rel=="string"?(t++,l+=' rel="'+e.rel+'"'):ul.call(e,"rel")&&(t++,l+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,l+=' href="'+e.href+'"'):ul.call(e,"href")&&(t++,l+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,l+=' precedence="'+e.precedence+'"'):ul.call(e,"precedence")&&(t++,l+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(l+=" ..."),l+" />"}function Vc(e){return'href="'+Mn(e)+'"'}function xm(e){return'link[rel="stylesheet"]['+e+"]"}function $h(e){return qt({},e,{"data-precedence":e.precedence,precedence:null})}function N1(e,t,l,u){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?u.loading=hv:(t=e.createElement("link"),u.preload=t,t.addEventListener("load",function(){return u.loading|=hv}),t.addEventListener("error",function(){return u.loading|=aO}),Pn(t,"link",l),it(t),e.head.appendChild(t))}function Hc(e){return'[src="'+Mn(e)+'"]'}function Sm(e){return"script[async]"+e}function Qh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var u=e.querySelector('style[data-href~="'+Mn(l.href)+'"]');if(u)return t.instance=u,it(u),u;var g=qt({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),it(u),Pn(u,"style",g),md(u,l.precedence,e),t.instance=u;case"stylesheet":g=Vc(l.href);var b=e.querySelector(xm(g));if(b)return t.state.loading|=cs,t.instance=b,it(b),b;u=$h(l),(g=us.get(g))&&o0(u,g),b=(e.ownerDocument||e).createElement("link"),it(b);var M=b;return M._p=new Promise(function(_,X){M.onload=_,M.onerror=X}),Pn(b,"link",u),t.state.loading|=cs,md(b,l.precedence,e),t.instance=b;case"script":return b=Hc(l.src),(g=e.querySelector(Sm(b)))?(t.instance=g,it(g),g):(u=l,(g=us.get(b))&&(u=qt({},l),l0(u,g)),e=e.ownerDocument||e,g=e.createElement("script"),it(g),Pn(g,"link",u),e.head.appendChild(g),t.instance=g);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&cs)===tp&&(u=t.instance,t.state.loading|=cs,md(u,l.precedence,e));return t.instance}function md(e,t,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=u.length?u[u.length-1]:null,b=g,M=0;M<u.length;M++){var _=u[M];if(_.dataset.precedence===t)b=_;else if(b!==g)break}b?b.parentNode.insertBefore(e,b.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function o0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function l0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function pd(e,t,l){if(AS===null){var u=new Map,g=AS=new Map;g.set(l,u)}else g=AS,u=g.get(l),u||(u=new Map,g.set(l,u));if(u.has(e))return u;for(u.set(e,null),l=l.getElementsByTagName(e),g=0;g<l.length;g++){var b=l[g];if(!(b[Td]||b[$n]||e==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!==Ht){var M=b.getAttribute(t)||"";M=e+M;var _=u.get(M);_?_.push(b):u.set(M,[b])}}return u}function T1(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function M1(e,t,l){var u=!l.ancestorInfo.containerTagInScope;if(l.context===Yg||t.itemProp!=null)return!u||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){u&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var g=t.onError,b=t.disabled;l=[],t.onLoad&&l.push("`onLoad`"),g&&l.push("`onError`"),b!=null&&l.push("`disabled`"),g=l1(l,"and"),g+=l.length===1?" prop":" props",b=l.length===1?"an "+g:"the "+g,l.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,b,g)}u&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return t.rel==="stylesheet"?(e=t.precedence,t=t.disabled,typeof e!="string"&&u&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null):!0;case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){u&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":u&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Zt(e){return!(e.type==="stylesheet"&&(e.state.loading&oO)===tp)}function r0(e,t,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&cs)===tp){if(l.instance===null){var g=Vc(u.href),b=t.querySelector(xm(g));if(b){t=b._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=hd.bind(e),t.then(e,e)),l.state.loading|=cs,l.instance=b,it(b);return}b=t.ownerDocument||t,u=$h(u),(g=us.get(g))&&o0(u,g),b=b.createElement("link"),it(b);var M=b;M._p=new Promise(function(_,X){M.onload=_,M.onerror=X}),Pn(b,"link",u),l.instance=b}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&oO)===tp&&(e.count++,l=hd.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}function Zh(e,t){return e.stylesheets&&e.count===0&&wm(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var u=setTimeout(function(){if(e.stylesheets&&wm(e,e.stylesheets),e.unsuspend){var b=e.unsuspend;e.unsuspend=null,b()}},k6+t);0<e.imgBytes&&JE===0&&(JE=125*r1()*z6);var g=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&wm(e,e.stylesheets),e.unsuspend)){var b=e.unsuspend;e.unsuspend=null,b()}},(e.imgBytes>JE?50:A6)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(g)}}:null}function hd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wm(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function wm(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,zS=new Map,t.forEach(s0,e),zS=null,hd.call(e))}function s0(e,t){if(!(t.state.loading&cs)){var l=zS.get(e);if(l)var u=l.get(e2);else{l=new Map,zS.set(e,l);for(var g=e.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<g.length;b++){var M=g[b];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(l.set(M.dataset.precedence,M),u=M)}u&&l.set(e2,u)}g=t.instance,M=g.getAttribute("data-precedence"),b=l.get(M)||u,b===u&&l.set(e2,g),l.set(M,g),this.count++,u=hd.bind(this),g.addEventListener("load",u),g.addEventListener("error",u),b?b.parentNode.insertBefore(g,b.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(g,e.firstChild)),t.state.loading|=cs}}function Cm(e,t,l,u,g,b,M,_,X){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ep,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ln(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ln(0),this.hiddenUpdates=ln(null),this.identifierPrefix=u,this.onUncaughtError=g,this.onCaughtError=b,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=l?"hydrateRoot()":"createRoot()"}function Em(e,t,l,u,g,b,M,_,X,J,Ee,Te){return e=new Cm(e,t,l,M,X,J,Ee,Te,_),t=o6,b===!0&&(t|=Xo|Hs),t|=Gt,b=N(3,null,null,t),e.current=b,b.stateNode=e,t=Qp(),hc(t),e.pooledCache=t,hc(t),b.memoizedState={element:u,isDehydrated:l,cache:t},Wt(b),e}function R1(e){return e?(e=kd,e):kd}function Kh(e,t,l,u,g,b){if(Ta&&typeof Ta.onScheduleFiberRoot=="function")try{Ta.onScheduleFiberRoot(Xc,u,l)}catch(M){Kr||(Kr=!0,console.error("React instrumentation encountered an error: %o",M))}g=R1(g),u.context===null?u.context=g:u.pendingContext=g,Zr&&Go!==null&&!cO&&(cO=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
197
|
+
|
|
198
|
+
Check the render method of %s.`,Z(Go)||"Unknown")),u=Ca(t),u.payload={element:l},b=b===void 0?null:b,b!==null&&(typeof b!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",b),u.callback=b),l=Dr(e,u,t),l!==null&&(Rr(t,"root.render()",null),Ot(l,e,t),Ml(l,e,t))}function O1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function i0(e,t){O1(e,t),(e=e.alternate)&&O1(e,t)}function c0(e){if(e.tag===13||e.tag===31){var t=ro(e,67108864);t!==null&&Ot(t,e,67108864),i0(e,67108864)}}function u0(e){if(e.tag===13||e.tag===31){var t=io(e);t=Wn(t);var l=ro(e,t);l!==null&&Ot(l,e,t),i0(e,t)}}function jn(){return Go}function d0(e,t,l,u){var g=Ve.T;Ve.T=null;var b=yn.p;try{yn.p=Ma,f0(e,t,l,u)}finally{yn.p=b,Ve.T=g}}function Fa(e,t,l,u){var g=Ve.T;Ve.T=null;var b=yn.p;try{yn.p=Ja,f0(e,t,l,u)}finally{yn.p=b,Ve.T=g}}function f0(e,t,l,u){if(US){var g=Fh(u);if(g===null)nr(e,t,u,BS,l),Jh(e,u);else if(j1(g,e,t,l,u))u.stopPropagation();else if(Jh(e,u),t&4&&-1<U6.indexOf(e)){for(;g!==null;){var b=tt(g);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var M=Ie(b.pendingLanes);if(M!==0){var _=b;for(_.pendingLanes|=2,_.entangledLanes|=2;M;){var X=1<<31-Wa(M);_.entanglements[1]|=X,M&=~X}Ho(b),(un&(to|fr))===po&&(vS=La()+BR,Gr(0))}}break;case 31:case 13:_=ro(b,2),_!==null&&Ot(_,b,2),sl(),i0(b,2)}if(b=Fh(u),b===null&&nr(e,t,u,BS,l),b===g)break;g=b}g!==null&&u.stopPropagation()}else nr(e,t,u,null,l)}}function Fh(e){return e=Hl(e),m0(e)}function m0(e){if(BS=null,e=lt(e),e!==null){var t=A(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=z(t),e!==null)return e;e=null}else if(l===31){if(e=B(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return BS=e,null}function Wh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Ma;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Ja;case"message":switch(jm()){case C0:return Ma;case ig:return Ja;case Gc:case U1:return uo;case cg:return zi;default:return uo}default:return uo}}function Jh(e,t){switch(e){case"focusin":case"focusout":Qd=null;break;case"dragenter":case"dragleave":Zd=null;break;case"mouseover":case"mouseout":Kd=null;break;case"pointerover":case"pointerout":yv.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bv.delete(t.pointerId)}}function ji(e,t,l,u,g,b){return e===null||e.nativeEvent!==b?(e={blockedOn:t,domEventName:l,eventSystemFlags:u,nativeEvent:b,targetContainers:[g]},t!==null&&(t=tt(t),t!==null&&c0(t)),e):(e.eventSystemFlags|=u,t=e.targetContainers,g!==null&&t.indexOf(g)===-1&&t.push(g),e)}function j1(e,t,l,u,g){switch(t){case"focusin":return Qd=ji(Qd,e,t,l,u,g),!0;case"dragenter":return Zd=ji(Zd,e,t,l,u,g),!0;case"mouseover":return Kd=ji(Kd,e,t,l,u,g),!0;case"pointerover":var b=g.pointerId;return yv.set(b,ji(yv.get(b)||null,e,t,l,u,g)),!0;case"gotpointercapture":return b=g.pointerId,bv.set(b,ji(bv.get(b)||null,e,t,l,u,g)),!0}return!1}function p0(e){var t=lt(e.target);if(t!==null){var l=A(t);if(l!==null){if(t=l.tag,t===13){if(t=z(l),t!==null){e.blockedOn=t,mn(e.priority,function(){u0(l)});return}}else if(t===31){if(t=B(l),t!==null){e.blockedOn=t,mn(e.priority,function(){u0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function gd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Fh(e.nativeEvent);if(l===null){l=e.nativeEvent;var u=new l.constructor(l.type,l),g=u;R0!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),R0=g,l.target.dispatchEvent(u),R0===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),R0=null}else return t=tt(l),t!==null&&c0(t),e.blockedOn=l,!1;t.shift()}return!0}function eg(e,t,l){gd(e)&&l.delete(t)}function IC(){t2=!1,Qd!==null&&gd(Qd)&&(Qd=null),Zd!==null&&gd(Zd)&&(Zd=null),Kd!==null&&gd(Kd)&&(Kd=null),yv.forEach(eg),bv.forEach(eg)}function Nm(e,t){e.blockedOn===t&&(e.blockedOn=null,t2||(t2=!0,pa.unstable_scheduleCallback(pa.unstable_NormalPriority,IC)))}function D1(e){LS!==e&&(LS=e,pa.unstable_scheduleCallback(pa.unstable_NormalPriority,function(){LS===e&&(LS=null);for(var t=0;t<e.length;t+=3){var l=e[t],u=e[t+1],g=e[t+2];if(typeof u!="function"){if(m0(u||l)===null)continue;break}var b=tt(l);b!==null&&(e.splice(t,3),t-=3,l={pending:!0,data:g,method:l.method,action:u},Object.freeze(l),Os(b,l,u,g))}}))}function Ic(e){function t(X){return Nm(X,e)}Qd!==null&&Nm(Qd,e),Zd!==null&&Nm(Zd,e),Kd!==null&&Nm(Kd,e),yv.forEach(t),bv.forEach(t);for(var l=0;l<Fd.length;l++){var u=Fd[l];u.blockedOn===e&&(u.blockedOn=null)}for(;0<Fd.length&&(l=Fd[0],l.blockedOn===null);)p0(l),l.blockedOn===null&&Fd.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var g=l[u],b=l[u+1],M=g[zo]||null;if(typeof b=="function")M||D1(l);else if(M){var _=null;if(b&&b.hasAttribute("formAction")){if(g=b,M=b[zo]||null)_=M.formAction;else if(m0(g)!==null)continue}else _=M.action;typeof _=="function"?l[u+1]=_:(l.splice(u,3),u-=3),D1(l)}}}function k1(){function e(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(M){return g=M})},focusReset:"manual",scroll:"manual"})}function t(){g!==null&&(g(),g=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,g=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),g!==null&&(g(),g=null)}}}function h0(e){this._internalRoot=e}function lr(e){this._internalRoot=e}function g0(e){e[Vs]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var pa=G4(),Tm=Qe,YC=yN,qt=Object.assign,A1=Symbol.for("react.element"),Dl=Symbol.for("react.transitional.element"),Di=Symbol.for("react.portal"),yd=Symbol.for("react.fragment"),Ao=Symbol.for("react.strict_mode"),Mm=Symbol.for("react.profiler"),tg=Symbol.for("react.consumer"),rr=Symbol.for("react.context"),bd=Symbol.for("react.forward_ref"),Yc=Symbol.for("react.suspense"),qo=Symbol.for("react.suspense_list"),Rm=Symbol.for("react.memo"),co=Symbol.for("react.lazy"),sr=Symbol.for("react.activity"),qC=Symbol.for("react.memo_cache_sentinel"),z1=Symbol.iterator,vd=Symbol.for("react.client.reference"),xa=Array.isArray,Ve=Tm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,yn=YC.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,GC=Object.freeze({pending:!1,data:null,method:null,action:null}),y0=[],b0=[],Ls=-1,ki=Q(null),xd=Q(null),cl=Q(null),Ai=Q(null),Sd=0,_1,qc,wd,v0,Om,ng,ag;oe.__reactDisabledLog=!0;var Cd,x0,og=!1,S0=new(typeof WeakMap=="function"?WeakMap:Map),Go=null,Zr=!1,ul=Object.prototype.hasOwnProperty,w0=pa.unstable_scheduleCallback,lg=pa.unstable_cancelCallback,rg=pa.unstable_shouldYield,sg=pa.unstable_requestPaint,La=pa.unstable_now,jm=pa.unstable_getCurrentPriorityLevel,C0=pa.unstable_ImmediatePriority,ig=pa.unstable_UserBlockingPriority,Gc=pa.unstable_NormalPriority,U1=pa.unstable_LowPriority,cg=pa.unstable_IdlePriority,E0=pa.log,B1=pa.unstable_setDisableYieldValue,Xc=null,Ta=null,Kr=!1,Fr=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Wa=Math.clz32?Math.clz32:De,N0=Math.log,ug=Math.LN2,Ed=256,Dm=262144,Nd=4194304,Ma=2,Ja=8,uo=32,zi=268435456,kl=Math.random().toString(36).slice(2),$n="__reactFiber$"+kl,zo="__reactProps$"+kl,Vs="__reactContainer$"+kl,Pc="__reactEvents$"+kl,XC="__reactListeners$"+kl,L1="__reactHandles$"+kl,km="__reactResources$"+kl,Td="__reactMarker$"+kl,V1=new Set,Wr={},Md={},H1={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Rd=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),T0={},dg={},fg=/[\n"\\]/g,M0=!1,I1=!1,Am=!1,a=!1,r=!1,c=!1,p=["value","defaultValue"],E=!1,T=/["'&<>\n\t]|^\s|\s$/,I="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),ne="applet caption html table td th marquee object template foreignObject desc title".split(" "),ye=ne.concat(["button"]),_e="dd dt li option optgroup p rp rt".split(" "),Ye={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Xe={},Ue={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},He=/([A-Z])/g,rt=/^ms-/,St=/^(?:webkit|moz|o)[A-Z]/,Dn=/^-ms-/,ke=/-(.)/g,Ne=/;\s*$/,Ae={},Ge={},pt=!1,cn=!1,ut=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),_t="http://www.w3.org/1998/Math/MathML",Ht="http://www.w3.org/2000/svg",fn=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ir={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Y1={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},mg={},g_=RegExp("^(aria)-[: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]*$"),y_=RegExp("^(aria)[A-Z][: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]*$"),dM=!1,dl={},fM=/^on./,b_=/^on[^A-Z]/,v_=RegExp("^(aria)-[: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]*$"),x_=RegExp("^(aria)[A-Z][: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]*$"),S_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,R0=null,pg=null,hg=null,PC=!1,_i=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$C=!1;if(_i)try{var O0={};Object.defineProperty(O0,"passive",{get:function(){$C=!0}}),window.addEventListener("test",O0,O0),window.removeEventListener("test",O0,O0)}catch{$C=!1}var Od=null,QC=null,q1=null,zm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},G1=Da(zm),j0=qt({},zm,{view:0,detail:0}),w_=Da(j0),ZC,KC,D0,X1=qt({},j0,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ef,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==D0&&(D0&&e.type==="mousemove"?(ZC=e.screenX-D0.screenX,KC=e.screenY-D0.screenY):KC=ZC=0,D0=e),ZC)},movementY:function(e){return"movementY"in e?e.movementY:KC}}),mM=Da(X1),C_=qt({},X1,{dataTransfer:0}),E_=Da(C_),N_=qt({},j0,{relatedTarget:0}),FC=Da(N_),T_=qt({},zm,{animationName:0,elapsedTime:0,pseudoElement:0}),M_=Da(T_),R_=qt({},zm,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),O_=Da(R_),j_=qt({},zm,{data:0}),pM=Da(j_),D_=pM,k_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},A_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},z_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},__=qt({},j0,{key:function(e){if(e.key){var t=k_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Cf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?A_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ef,charCode:function(e){return e.type==="keypress"?Cf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),U_=Da(__),B_=qt({},X1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hM=Da(B_),L_=qt({},j0,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ef}),V_=Da(L_),H_=qt({},zm,{propertyName:0,elapsedTime:0,pseudoElement:0}),I_=Da(H_),Y_=qt({},X1,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),q_=Da(Y_),G_=qt({},zm,{newState:0,oldState:0}),X_=Da(G_),P_=[9,13,27,32],gM=229,WC=_i&&"CompositionEvent"in window,k0=null;_i&&"documentMode"in document&&(k0=document.documentMode);var $_=_i&&"TextEvent"in window&&!k0,yM=_i&&(!WC||k0&&8<k0&&11>=k0),bM=32,vM=String.fromCharCode(bM),xM=!1,gg=!1,Q_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},A0=null,z0=null,SM=!1;_i&&(SM=Bp("input")&&(!document.documentMode||9<document.documentMode));var fl=typeof Object.is=="function"?Object.is:Lp,Z_=_i&&"documentMode"in document&&11>=document.documentMode,yg=null,JC=null,_0=null,eE=!1,bg={animationend:sc("Animation","AnimationEnd"),animationiteration:sc("Animation","AnimationIteration"),animationstart:sc("Animation","AnimationStart"),transitionrun:sc("Transition","TransitionRun"),transitionstart:sc("Transition","TransitionStart"),transitioncancel:sc("Transition","TransitionCancel"),transitionend:sc("Transition","TransitionEnd")},tE={},wM={};_i&&(wM=document.createElement("div").style,"AnimationEvent"in window||(delete bg.animationend.animation,delete bg.animationiteration.animation,delete bg.animationstart.animation),"TransitionEvent"in window||delete bg.transitionend.transition);var CM=ic("animationend"),EM=ic("animationiteration"),NM=ic("animationstart"),K_=ic("transitionrun"),F_=ic("transitionstart"),W_=ic("transitioncancel"),TM=ic("transitionend"),MM=new Map,nE="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");nE.push("scrollEnd");var RM=0;if(typeof performance=="object"&&typeof performance.now=="function")var J_=performance,OM=function(){return J_.now()};else{var e6=Date;OM=function(){return e6.now()}}var aE=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},t6="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",P1=0,oE=1,lE=2,rE=3,$1="– ",Q1="+ ",jM=" ",Qn=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Jr="Components ⚛",an="Scheduler ⚛",rn="Blocking",jd=!1,$c={color:"primary",properties:null,tooltipText:"",track:Jr},Dd={start:-0,end:-0,detail:{devtools:$c}},n6=["Changed Props",""],DM="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",a6=["Changed Props",DM],U0=1,Qc=2,es=[],vg=0,sE=0,kd={};Object.freeze(kd);var ts=null,xg=null,Et=0,o6=1,Gt=2,Xo=8,Hs=16,l6=32,kM=!1;try{var AM=Object.preventExtensions({})}catch{kM=!0}var iE=new WeakMap,Sg=[],wg=0,Z1=null,B0=0,ns=[],as=0,_m=null,Zc=1,Kc="",_o=null,Zn=null,tn=!1,Ui=!1,cr=null,Ad=null,os=!1,cE=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),uE=Q(null),dE=Q(null),zM={},K1=null,Cg=null,Eg=!1,r6=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,u){e.push(u)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},s6=pa.unstable_scheduleCallback,i6=pa.unstable_NormalPriority,Va={$$typeof:rr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Ha=pa.unstable_now,F1=console.createTask?console.createTask:function(){return null},L0=1,W1=2,fo=-0,zd=-0,Fc=-0,Wc=null,ml=-1.1,Um=-0,ia=-0,yt=-1.1,wt=-1.1,na=null,ha=!1,Bm=-0,Bi=-1.1,V0=null,_d=0,fE=null,mE=null,Lm=-1.1,H0=null,Ng=-1.1,J1=-1.1,Jc=-0,eu=-1.1,ls=-1.1,pE=0,I0=null,_M=null,UM=null,Ud=-1.1,Vm=null,Bd=-1.1,eS=-1.1,BM=-0,LM=-0,tS=0,c6=null,VM=0,Y0=-1.1,nS=!1,aS=!1,q0=null,hE=0,Hm=0,Tg=null,HM=Ve.S;Ve.S=function(e,t){if(_R=La(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>eu&&0>ls){eu=Ha();var l=ud(),u=$r();(l!==Bd||u!==Vm)&&(Bd=-1.1),Ud=l,Vm=u}ws(e,t)}HM!==null&&HM(e,t)};var Im=Q(null),Is={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},G0=[],X0=[],P0=[],$0=[],Q0=[],Z0=[],Ym=new Set;Is.recordUnsafeLifecycleWarnings=function(e,t){Ym.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&G0.push(e),e.mode&Xo&&typeof t.UNSAFE_componentWillMount=="function"&&X0.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&P0.push(e),e.mode&Xo&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&$0.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Q0.push(e),e.mode&Xo&&typeof t.UNSAFE_componentWillUpdate=="function"&&Z0.push(e))},Is.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<G0.length&&(G0.forEach(function(_){e.add(Z(_)||"Component"),Ym.add(_.type)}),G0=[]);var t=new Set;0<X0.length&&(X0.forEach(function(_){t.add(Z(_)||"Component"),Ym.add(_.type)}),X0=[]);var l=new Set;0<P0.length&&(P0.forEach(function(_){l.add(Z(_)||"Component"),Ym.add(_.type)}),P0=[]);var u=new Set;0<$0.length&&($0.forEach(function(_){u.add(Z(_)||"Component"),Ym.add(_.type)}),$0=[]);var g=new Set;0<Q0.length&&(Q0.forEach(function(_){g.add(Z(_)||"Component"),Ym.add(_.type)}),Q0=[]);var b=new Set;if(0<Z0.length&&(Z0.forEach(function(_){b.add(Z(_)||"Component"),Ym.add(_.type)}),Z0=[]),0<t.size){var M=w(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
199
|
+
|
|
200
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
201
|
+
|
|
202
|
+
Please update the following components: %s`,M)}0<u.size&&(M=w(u),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
203
|
+
|
|
204
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
205
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
206
|
+
|
|
207
|
+
Please update the following components: %s`,M)),0<b.size&&(M=w(b),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
208
|
+
|
|
209
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
210
|
+
|
|
211
|
+
Please update the following components: %s`,M)),0<e.size&&(M=w(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
212
|
+
|
|
213
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
214
|
+
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
215
|
+
|
|
216
|
+
Please update the following components: %s`,M)),0<l.size&&(M=w(l),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
217
|
+
|
|
218
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
219
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
220
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
221
|
+
|
|
222
|
+
Please update the following components: %s`,M)),0<g.size&&(M=w(g),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
223
|
+
|
|
224
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
225
|
+
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
226
|
+
|
|
227
|
+
Please update the following components: %s`,M))};var oS=new Map,IM=new Set;Is.recordLegacyContextWarning=function(e,t){for(var l=null,u=e;u!==null;)u.mode&Xo&&(l=u),u=u.return;l===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!IM.has(e.type)&&(u=oS.get(l),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(u===void 0&&(u=[],oS.set(l,u)),u.push(e))},Is.flushLegacyContextWarning=function(){oS.forEach(function(e){if(e.length!==0){var t=e[0],l=new Set;e.forEach(function(g){l.add(Z(g)||"Component"),IM.add(g.type)});var u=w(l);fe(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
228
|
+
|
|
229
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
230
|
+
|
|
231
|
+
Please update the following components: %s
|
|
232
|
+
|
|
233
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,u)})}})},Is.discardPendingWarnings=function(){G0=[],X0=[],P0=[],$0=[],Q0=[],Z0=[],oS=new Map};var YM={react_stack_bottom_frame:function(e,t,l){var u=Zr;Zr=!0;try{return e(t,l)}finally{Zr=u}}},gE=YM.react_stack_bottom_frame.bind(YM),qM={react_stack_bottom_frame:function(e){var t=Zr;Zr=!0;try{return e.render()}finally{Zr=t}}},GM=qM.react_stack_bottom_frame.bind(qM),XM={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(l){Vt(e,e.return,l)}}},yE=XM.react_stack_bottom_frame.bind(XM),PM={react_stack_bottom_frame:function(e,t,l,u,g){try{t.componentDidUpdate(l,u,g)}catch(b){Vt(e,e.return,b)}}},$M=PM.react_stack_bottom_frame.bind(PM),QM={react_stack_bottom_frame:function(e,t){var l=t.stack;e.componentDidCatch(t.value,{componentStack:l!==null?l:""})}},u6=QM.react_stack_bottom_frame.bind(QM),ZM={react_stack_bottom_frame:function(e,t,l){try{l.componentWillUnmount()}catch(u){Vt(e,t,u)}}},KM=ZM.react_stack_bottom_frame.bind(ZM),FM={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},d6=FM.react_stack_bottom_frame.bind(FM),WM={react_stack_bottom_frame:function(e,t,l){try{l()}catch(u){Vt(e,t,u)}}},f6=WM.react_stack_bottom_frame.bind(WM),JM={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},m6=JM.react_stack_bottom_frame.bind(JM),Mg=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),bE=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),lS=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),rS={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},qm=null,K0=!1,Rg=null,F0=0,Xt=null,vE,eR=vE=!1,tR={},nR={},aR={};C=function(e,t,l){if(l!==null&&typeof l=="object"&&l._store&&(!l._store.validated&&l.key==null||l._store.validated===2)){if(typeof l._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");l._store.validated=1;var u=Z(e),g=u||"null";if(!tR[g]){tR[g]=!0,l=l._owner,e=e._debugOwner;var b="";e&&typeof e.tag=="number"&&(g=Z(e))&&(b=`
|
|
234
|
+
|
|
235
|
+
Check the render method of \``+g+"`."),b||u&&(b=`
|
|
236
|
+
|
|
237
|
+
Check the top-level render call using <`+u+">.");var M="";l!=null&&e!==l&&(u=null,typeof l.tag=="number"?u=Z(l):typeof l.name=="string"&&(u=l.name),u&&(M=" It was passed a child from "+u+".")),fe(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',b,M)})}}};var Gm=Aa(!0),oR=Aa(!1),lR=0,rR=1,sR=2,xE=3,Ld=!1,iR=!1,SE=null,wE=!1,Og=Q(null),sS=Q(0),ur=Q(null),rs=null,jg=1,W0=2,Ra=Q(0),iS=0,ss=1,pl=2,dr=4,hl=8,Dg,cR=new Set,uR=new Set,CE=new Set,dR=new Set,tu=0,kt=null,Bn=null,Ia=null,cS=!1,kg=!1,Xm=!1,uS=0,J0=0,nu=null,p6=0,h6=25,Le=null,is=null,au=-1,ev=!1,tv={readContext:hn,use:Ts,useCallback:ra,useContext:ra,useEffect:ra,useImperativeHandle:ra,useLayoutEffect:ra,useInsertionEffect:ra,useMemo:ra,useReducer:ra,useRef:ra,useState:ra,useDebugValue:ra,useDeferredValue:ra,useTransition:ra,useSyncExternalStore:ra,useId:ra,useHostTransitionStatus:ra,useFormState:ra,useActionState:ra,useOptimistic:ra,useMemoCache:ra,useCacheRefresh:ra};tv.useEffectEvent=ra;var EE=null,fR=null,NE=null,mR=null,Li=null,Ys=null,dS=null;EE={readContext:function(e){return hn(e)},use:Ts,useCallback:function(e,t){return Le="useCallback",Dt(),Ns(t),lh(e,t)},useContext:function(e){return Le="useContext",Dt(),hn(e)},useEffect:function(e,t){return Le="useEffect",Dt(),Ns(t),Nc(e,t)},useImperativeHandle:function(e,t,l){return Le="useImperativeHandle",Dt(),Ns(l),_r(e,t,l)},useInsertionEffect:function(e,t){Le="useInsertionEffect",Dt(),Ns(t),vi(4,pl,e,t)},useLayoutEffect:function(e,t){return Le="useLayoutEffect",Dt(),Ns(t),No(e,t)},useMemo:function(e,t){Le="useMemo",Dt(),Ns(t);var l=Ve.H;Ve.H=Li;try{return To(e,t)}finally{Ve.H=l}},useReducer:function(e,t,l){Le="useReducer",Dt();var u=Ve.H;Ve.H=Li;try{return Hu(e,t,l)}finally{Ve.H=u}},useRef:function(e){return Le="useRef",Dt(),oh(e)},useState:function(e){Le="useState",Dt();var t=Ve.H;Ve.H=Li;try{return hi(e)}finally{Ve.H=t}},useDebugValue:function(){Le="useDebugValue",Dt()},useDeferredValue:function(e,t){return Le="useDeferredValue",Dt(),Xu(e,t)},useTransition:function(){return Le="useTransition",Dt(),xi()},useSyncExternalStore:function(e,t,l){return Le="useSyncExternalStore",Dt(),Iu(e,t,l)},useId:function(){return Le="useId",Dt(),Qf()},useFormState:function(e,t){return Le="useFormState",Dt(),Bf(),nl(e,t)},useActionState:function(e,t){return Le="useActionState",Dt(),nl(e,t)},useOptimistic:function(e){return Le="useOptimistic",Dt(),Ec(e)},useHostTransitionStatus:js,useMemoCache:el,useCacheRefresh:function(){return Le="useCacheRefresh",Dt(),rh()},useEffectEvent:function(e){return Le="useEffectEvent",Dt(),Pf(e)}},fR={readContext:function(e){return hn(e)},use:Ts,useCallback:function(e,t){return Le="useCallback",Pe(),lh(e,t)},useContext:function(e){return Le="useContext",Pe(),hn(e)},useEffect:function(e,t){return Le="useEffect",Pe(),Nc(e,t)},useImperativeHandle:function(e,t,l){return Le="useImperativeHandle",Pe(),_r(e,t,l)},useInsertionEffect:function(e,t){Le="useInsertionEffect",Pe(),vi(4,pl,e,t)},useLayoutEffect:function(e,t){return Le="useLayoutEffect",Pe(),No(e,t)},useMemo:function(e,t){Le="useMemo",Pe();var l=Ve.H;Ve.H=Li;try{return To(e,t)}finally{Ve.H=l}},useReducer:function(e,t,l){Le="useReducer",Pe();var u=Ve.H;Ve.H=Li;try{return Hu(e,t,l)}finally{Ve.H=u}},useRef:function(e){return Le="useRef",Pe(),oh(e)},useState:function(e){Le="useState",Pe();var t=Ve.H;Ve.H=Li;try{return hi(e)}finally{Ve.H=t}},useDebugValue:function(){Le="useDebugValue",Pe()},useDeferredValue:function(e,t){return Le="useDeferredValue",Pe(),Xu(e,t)},useTransition:function(){return Le="useTransition",Pe(),xi()},useSyncExternalStore:function(e,t,l){return Le="useSyncExternalStore",Pe(),Iu(e,t,l)},useId:function(){return Le="useId",Pe(),Qf()},useActionState:function(e,t){return Le="useActionState",Pe(),nl(e,t)},useFormState:function(e,t){return Le="useFormState",Pe(),Bf(),nl(e,t)},useOptimistic:function(e){return Le="useOptimistic",Pe(),Ec(e)},useHostTransitionStatus:js,useMemoCache:el,useCacheRefresh:function(){return Le="useCacheRefresh",Pe(),rh()},useEffectEvent:function(e){return Le="useEffectEvent",Pe(),Pf(e)}},NE={readContext:function(e){return hn(e)},use:Ts,useCallback:function(e,t){return Le="useCallback",Pe(),Fl(e,t)},useContext:function(e){return Le="useContext",Pe(),hn(e)},useEffect:function(e,t){Le="useEffect",Pe(),Ea(2048,hl,e,t)},useImperativeHandle:function(e,t,l){return Le="useImperativeHandle",Pe(),Gu(e,t,l)},useInsertionEffect:function(e,t){return Le="useInsertionEffect",Pe(),Ea(4,pl,e,t)},useLayoutEffect:function(e,t){return Le="useLayoutEffect",Pe(),Ea(4,dr,e,t)},useMemo:function(e,t){Le="useMemo",Pe();var l=Ve.H;Ve.H=Ys;try{return Xn(e,t)}finally{Ve.H=l}},useReducer:function(e,t,l){Le="useReducer",Pe();var u=Ve.H;Ve.H=Ys;try{return Sc(e,t,l)}finally{Ve.H=u}},useRef:function(){return Le="useRef",Pe(),xn().memoizedState},useState:function(){Le="useState",Pe();var e=Ve.H;Ve.H=Ys;try{return Sc(tl)}finally{Ve.H=e}},useDebugValue:function(){Le="useDebugValue",Pe()},useDeferredValue:function(e,t){return Le="useDeferredValue",Pe(),Ur(e,t)},useTransition:function(){return Le="useTransition",Pe(),Hx()},useSyncExternalStore:function(e,t,l){return Le="useSyncExternalStore",Pe(),Cc(e,t,l)},useId:function(){return Le="useId",Pe(),xn().memoizedState},useFormState:function(e){return Le="useFormState",Pe(),Bf(),yi(e)},useActionState:function(e){return Le="useActionState",Pe(),yi(e)},useOptimistic:function(e,t){return Le="useOptimistic",Pe(),qf(e,t)},useHostTransitionStatus:js,useMemoCache:el,useCacheRefresh:function(){return Le="useCacheRefresh",Pe(),xn().memoizedState},useEffectEvent:function(e){return Le="useEffectEvent",Pe(),qu(e)}},mR={readContext:function(e){return hn(e)},use:Ts,useCallback:function(e,t){return Le="useCallback",Pe(),Fl(e,t)},useContext:function(e){return Le="useContext",Pe(),hn(e)},useEffect:function(e,t){Le="useEffect",Pe(),Ea(2048,hl,e,t)},useImperativeHandle:function(e,t,l){return Le="useImperativeHandle",Pe(),Gu(e,t,l)},useInsertionEffect:function(e,t){return Le="useInsertionEffect",Pe(),Ea(4,pl,e,t)},useLayoutEffect:function(e,t){return Le="useLayoutEffect",Pe(),Ea(4,dr,e,t)},useMemo:function(e,t){Le="useMemo",Pe();var l=Ve.H;Ve.H=dS;try{return Xn(e,t)}finally{Ve.H=l}},useReducer:function(e,t,l){Le="useReducer",Pe();var u=Ve.H;Ve.H=dS;try{return wc(e,t,l)}finally{Ve.H=u}},useRef:function(){return Le="useRef",Pe(),xn().memoizedState},useState:function(){Le="useState",Pe();var e=Ve.H;Ve.H=dS;try{return wc(tl)}finally{Ve.H=e}},useDebugValue:function(){Le="useDebugValue",Pe()},useDeferredValue:function(e,t){return Le="useDeferredValue",Pe(),Bt(e,t)},useTransition:function(){return Le="useTransition",Pe(),Jn()},useSyncExternalStore:function(e,t,l){return Le="useSyncExternalStore",Pe(),Cc(e,t,l)},useId:function(){return Le="useId",Pe(),xn().memoizedState},useFormState:function(e){return Le="useFormState",Pe(),Bf(),bi(e)},useActionState:function(e){return Le="useActionState",Pe(),bi(e)},useOptimistic:function(e,t){return Le="useOptimistic",Pe(),Gf(e,t)},useHostTransitionStatus:js,useMemoCache:el,useCacheRefresh:function(){return Le="useCacheRefresh",Pe(),xn().memoizedState},useEffectEvent:function(e){return Le="useEffectEvent",Pe(),qu(e)}},Li={readContext:function(e){return v(),hn(e)},use:function(e){return y(),Ts(e)},useCallback:function(e,t){return Le="useCallback",y(),Dt(),lh(e,t)},useContext:function(e){return Le="useContext",y(),Dt(),hn(e)},useEffect:function(e,t){return Le="useEffect",y(),Dt(),Nc(e,t)},useImperativeHandle:function(e,t,l){return Le="useImperativeHandle",y(),Dt(),_r(e,t,l)},useInsertionEffect:function(e,t){Le="useInsertionEffect",y(),Dt(),vi(4,pl,e,t)},useLayoutEffect:function(e,t){return Le="useLayoutEffect",y(),Dt(),No(e,t)},useMemo:function(e,t){Le="useMemo",y(),Dt();var l=Ve.H;Ve.H=Li;try{return To(e,t)}finally{Ve.H=l}},useReducer:function(e,t,l){Le="useReducer",y(),Dt();var u=Ve.H;Ve.H=Li;try{return Hu(e,t,l)}finally{Ve.H=u}},useRef:function(e){return Le="useRef",y(),Dt(),oh(e)},useState:function(e){Le="useState",y(),Dt();var t=Ve.H;Ve.H=Li;try{return hi(e)}finally{Ve.H=t}},useDebugValue:function(){Le="useDebugValue",y(),Dt()},useDeferredValue:function(e,t){return Le="useDeferredValue",y(),Dt(),Xu(e,t)},useTransition:function(){return Le="useTransition",y(),Dt(),xi()},useSyncExternalStore:function(e,t,l){return Le="useSyncExternalStore",y(),Dt(),Iu(e,t,l)},useId:function(){return Le="useId",y(),Dt(),Qf()},useFormState:function(e,t){return Le="useFormState",y(),Dt(),nl(e,t)},useActionState:function(e,t){return Le="useActionState",y(),Dt(),nl(e,t)},useOptimistic:function(e){return Le="useOptimistic",y(),Dt(),Ec(e)},useMemoCache:function(e){return y(),el(e)},useHostTransitionStatus:js,useCacheRefresh:function(){return Le="useCacheRefresh",Dt(),rh()},useEffectEvent:function(e){return Le="useEffectEvent",y(),Dt(),Pf(e)}},Ys={readContext:function(e){return v(),hn(e)},use:function(e){return y(),Ts(e)},useCallback:function(e,t){return Le="useCallback",y(),Pe(),Fl(e,t)},useContext:function(e){return Le="useContext",y(),Pe(),hn(e)},useEffect:function(e,t){Le="useEffect",y(),Pe(),Ea(2048,hl,e,t)},useImperativeHandle:function(e,t,l){return Le="useImperativeHandle",y(),Pe(),Gu(e,t,l)},useInsertionEffect:function(e,t){return Le="useInsertionEffect",y(),Pe(),Ea(4,pl,e,t)},useLayoutEffect:function(e,t){return Le="useLayoutEffect",y(),Pe(),Ea(4,dr,e,t)},useMemo:function(e,t){Le="useMemo",y(),Pe();var l=Ve.H;Ve.H=Ys;try{return Xn(e,t)}finally{Ve.H=l}},useReducer:function(e,t,l){Le="useReducer",y(),Pe();var u=Ve.H;Ve.H=Ys;try{return Sc(e,t,l)}finally{Ve.H=u}},useRef:function(){return Le="useRef",y(),Pe(),xn().memoizedState},useState:function(){Le="useState",y(),Pe();var e=Ve.H;Ve.H=Ys;try{return Sc(tl)}finally{Ve.H=e}},useDebugValue:function(){Le="useDebugValue",y(),Pe()},useDeferredValue:function(e,t){return Le="useDeferredValue",y(),Pe(),Ur(e,t)},useTransition:function(){return Le="useTransition",y(),Pe(),Hx()},useSyncExternalStore:function(e,t,l){return Le="useSyncExternalStore",y(),Pe(),Cc(e,t,l)},useId:function(){return Le="useId",y(),Pe(),xn().memoizedState},useFormState:function(e){return Le="useFormState",y(),Pe(),yi(e)},useActionState:function(e){return Le="useActionState",y(),Pe(),yi(e)},useOptimistic:function(e,t){return Le="useOptimistic",y(),Pe(),qf(e,t)},useMemoCache:function(e){return y(),el(e)},useHostTransitionStatus:js,useCacheRefresh:function(){return Le="useCacheRefresh",Pe(),xn().memoizedState},useEffectEvent:function(e){return Le="useEffectEvent",y(),Pe(),qu(e)}},dS={readContext:function(e){return v(),hn(e)},use:function(e){return y(),Ts(e)},useCallback:function(e,t){return Le="useCallback",y(),Pe(),Fl(e,t)},useContext:function(e){return Le="useContext",y(),Pe(),hn(e)},useEffect:function(e,t){Le="useEffect",y(),Pe(),Ea(2048,hl,e,t)},useImperativeHandle:function(e,t,l){return Le="useImperativeHandle",y(),Pe(),Gu(e,t,l)},useInsertionEffect:function(e,t){return Le="useInsertionEffect",y(),Pe(),Ea(4,pl,e,t)},useLayoutEffect:function(e,t){return Le="useLayoutEffect",y(),Pe(),Ea(4,dr,e,t)},useMemo:function(e,t){Le="useMemo",y(),Pe();var l=Ve.H;Ve.H=Ys;try{return Xn(e,t)}finally{Ve.H=l}},useReducer:function(e,t,l){Le="useReducer",y(),Pe();var u=Ve.H;Ve.H=Ys;try{return wc(e,t,l)}finally{Ve.H=u}},useRef:function(){return Le="useRef",y(),Pe(),xn().memoizedState},useState:function(){Le="useState",y(),Pe();var e=Ve.H;Ve.H=Ys;try{return wc(tl)}finally{Ve.H=e}},useDebugValue:function(){Le="useDebugValue",y(),Pe()},useDeferredValue:function(e,t){return Le="useDeferredValue",y(),Pe(),Bt(e,t)},useTransition:function(){return Le="useTransition",y(),Pe(),Jn()},useSyncExternalStore:function(e,t,l){return Le="useSyncExternalStore",y(),Pe(),Cc(e,t,l)},useId:function(){return Le="useId",y(),Pe(),xn().memoizedState},useFormState:function(e){return Le="useFormState",y(),Pe(),bi(e)},useActionState:function(e){return Le="useActionState",y(),Pe(),bi(e)},useOptimistic:function(e,t){return Le="useOptimistic",y(),Pe(),Gf(e,t)},useMemoCache:function(e){return y(),el(e)},useHostTransitionStatus:js,useCacheRefresh:function(){return Le="useCacheRefresh",Pe(),xn().memoizedState},useEffectEvent:function(e){return Le="useEffectEvent",y(),Pe(),qu(e)}};var pR={},hR=new Set,gR=new Set,yR=new Set,bR=new Set,vR=new Set,xR=new Set,SR=new Set,wR=new Set,CR=new Set,ER=new Set;Object.freeze(pR);var TE={enqueueSetState:function(e,t,l){e=e._reactInternals;var u=io(e),g=Ca(u);g.payload=t,l!=null&&(Oc(l),g.callback=l),t=Dr(e,g,u),t!==null&&(Rr(u,"this.setState()",e),Ot(t,e,u),Ml(t,e,u))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var u=io(e),g=Ca(u);g.tag=rR,g.payload=t,l!=null&&(Oc(l),g.callback=l),t=Dr(e,g,u),t!==null&&(Rr(u,"this.replaceState()",e),Ot(t,e,u),Ml(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=io(e),u=Ca(l);u.tag=sR,t!=null&&(Oc(t),u.callback=t),t=Dr(e,u,l),t!==null&&(Rr(l,"this.forceUpdate()",e),Ot(t,e,l),Ml(t,e,l))}},Ag=null,ME=null,RE=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Ya=!1,NR={},TR={},MR={},RR={},zg=!1,OR={},fS={},OE={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},jR=!1,DR=null;DR=new Set;var ou=!1,qa=!1,jE=!1,kR=typeof WeakSet=="function"?WeakSet:Set,mo=null,_g=null,Ug=null,Ga=null,Al=!1,qs=null,eo=!1,nv=8192,g6={getCacheForType:function(e){var t=hn(Va),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return hn(Va).controller.signal},getOwner:function(){return Go}};if(typeof Symbol=="function"&&Symbol.for){var av=Symbol.for;av("selector.component"),av("selector.has_pseudo_class"),av("selector.role"),av("selector.test_id"),av("selector.text")}var y6=[],b6=typeof WeakMap=="function"?WeakMap:Map,po=0,to=2,fr=4,lu=0,ov=1,Pm=2,mS=3,Vd=4,pS=6,AR=5,un=po,Ln=null,Qt=null,Pt=0,zl=0,hS=1,$m=2,lv=3,zR=4,DE=5,rv=6,gS=7,kE=8,Qm=9,kn=zl,mr=null,Hd=!1,Bg=!1,AE=!1,Vi=0,ca=lu,Id=0,Yd=0,zE=0,_l=0,Zm=0,sv=null,gl=null,yS=!1,bS=0,_R=0,UR=300,vS=1/0,BR=500,iv=null,Sa=null,qd=null,xS=0,_E=1,UE=2,LR=3,Gd=0,VR=1,HR=2,IR=3,YR=4,SS=5,Xa=0,Xd=null,Lg=null,Gs=0,BE=0,LE=-0,VE=null,qR=null,GR=null,Xs=xS,XR=null,v6=50,cv=0,HE=null,IE=!1,wS=!1,x6=50,Km=0,uv=null,Vg=!1,CS=null,PR=!1,$R=new Set,S6={},ES=null,Hg=null,YE=!1,qE=!1,NS=!1,GE=!1,Pd=0,XE={};(function(){for(var e=0;e<nE.length;e++){var t=nE[e],l=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Il(l,"on"+t)}Il(CM,"onAnimationEnd"),Il(EM,"onAnimationIteration"),Il(NM,"onAnimationStart"),Il("dblclick","onDoubleClick"),Il("focusin","onFocus"),Il("focusout","onBlur"),Il(K_,"onTransitionRun"),Il(F_,"onTransitionStart"),Il(W_,"onTransitionCancel"),Il(TM,"onTransitionEnd")})(),yo("onMouseEnter",["mouseout","mouseover"]),yo("onMouseLeave",["mouseout","mouseover"]),yo("onPointerEnter",["pointerout","pointerover"]),yo("onPointerLeave",["pointerout","pointerover"]),oa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),oa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),oa("onBeforeInput",["compositionend","keypress","textInput","paste"]),oa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),oa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),oa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dv="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),PE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(dv)),TS="_reactListening"+Math.random().toString(36).slice(2),QR=!1,ZR=!1,MS=!1,KR=!1,RS=!1,OS=!1,FR=!1,jS={},w6=/\r\n?/g,C6=/\u0000|\uFFFD/g,Fm="http://www.w3.org/1999/xlink",$E="http://www.w3.org/XML/1998/namespace",E6="javascript:throw new Error('React form unexpectedly submitted.')",N6="suppressHydrationWarning",Wm="&",DS="/&",fv="$",mv="/$",$d="$?",Jm="$~",Ig="$!",T6="html",M6="body",R6="head",QE="F!",WR="F",JR="loading",O6="style",ru=0,Yg=1,kS=2,ZE=null,KE=null,eO={dialog:!0,webview:!0},FE=null,pv=void 0,tO=typeof setTimeout=="function"?setTimeout:void 0,j6=typeof clearTimeout=="function"?clearTimeout:void 0,ep=-1,nO=typeof Promise=="function"?Promise:void 0,D6=typeof queueMicrotask=="function"?queueMicrotask:typeof nO<"u"?function(e){return nO.resolve(null).then(e).catch(i1)}:tO,WE=null,tp=0,hv=1,aO=2,oO=3,cs=4,us=new Map,lO=new Set,su=yn.d;yn.d={f:function(){var e=su.f(),t=sl();return e||t},r:function(e){var t=tt(e);t!==null&&t.tag===5&&t.type==="form"?Pu(t):su.r(e)},D:function(e){su.D(e),n0("dns-prefetch",e,null)},C:function(e,t){su.C(e,t),n0("preconnect",e,t)},L:function(e,t,l){su.L(e,t,l);var u=qg;if(u&&e&&t){var g='link[rel="preload"][as="'+Mn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(g+='[imagesrcset="'+Mn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(g+='[imagesizes="'+Mn(l.imageSizes)+'"]')):g+='[href="'+Mn(e)+'"]';var b=g;switch(t){case"style":b=Vc(e);break;case"script":b=Hc(e)}us.has(b)||(e=qt({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),us.set(b,e),u.querySelector(g)!==null||t==="style"&&u.querySelector(xm(b))||t==="script"&&u.querySelector(Sm(b))||(t=u.createElement("link"),Pn(t,"link",e),it(t),u.head.appendChild(t)))}},m:function(e,t){su.m(e,t);var l=qg;if(l&&e){var u=t&&typeof t.as=="string"?t.as:"script",g='link[rel="modulepreload"][as="'+Mn(u)+'"][href="'+Mn(e)+'"]',b=g;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Hc(e)}if(!us.has(b)&&(e=qt({rel:"modulepreload",href:e},t),us.set(b,e),l.querySelector(g)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Sm(b)))return}u=l.createElement("link"),Pn(u,"link",e),it(u),l.head.appendChild(u)}}},X:function(e,t){su.X(e,t);var l=qg;if(l&&e){var u=Yt(l).hoistableScripts,g=Hc(e),b=u.get(g);b||(b=l.querySelector(Sm(g)),b||(e=qt({src:e,async:!0},t),(t=us.get(g))&&l0(e,t),b=l.createElement("script"),it(b),Pn(b,"link",e),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},u.set(g,b))}},S:function(e,t,l){su.S(e,t,l);var u=qg;if(u&&e){var g=Yt(u).hoistableStyles,b=Vc(e);t=t||"default";var M=g.get(b);if(!M){var _={loading:tp,preload:null};if(M=u.querySelector(xm(b)))_.loading=hv|cs;else{e=qt({rel:"stylesheet",href:e,"data-precedence":t},l),(l=us.get(b))&&o0(e,l);var X=M=u.createElement("link");it(X),Pn(X,"link",e),X._p=new Promise(function(J,Ee){X.onload=J,X.onerror=Ee}),X.addEventListener("load",function(){_.loading|=hv}),X.addEventListener("error",function(){_.loading|=aO}),_.loading|=cs,md(M,t,u)}M={type:"stylesheet",instance:M,count:1,state:_},g.set(b,M)}}},M:function(e,t){su.M(e,t);var l=qg;if(l&&e){var u=Yt(l).hoistableScripts,g=Hc(e),b=u.get(g);b||(b=l.querySelector(Sm(g)),b||(e=qt({src:e,async:!0,type:"module"},t),(t=us.get(g))&&l0(e,t),b=l.createElement("script"),it(b),Pn(b,"link",e),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},u.set(g,b))}}};var qg=typeof document>"u"?null:document,AS=null,k6=6e4,A6=800,z6=500,JE=0,e2=null,zS=null,np=GC,gv={$$typeof:rr,Provider:null,Consumer:null,_currentValue:np,_currentValue2:np,_threadCount:0},rO="%c%s%c",sO="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",iO="",_S=" ",_6=Function.prototype.bind,cO=!1,uO=null,dO=null,fO=null,mO=null,pO=null,hO=null,gO=null,yO=null,bO=null,vO=null;uO=function(e,t,l,u){t=n(e,t),t!==null&&(l=o(t.memoizedState,l,0,u),t.memoizedState=l,t.baseState=l,e.memoizedProps=qt({},e.memoizedProps),l=ro(e,2),l!==null&&Ot(l,e,2))},dO=function(e,t,l){t=n(e,t),t!==null&&(l=d(t.memoizedState,l,0),t.memoizedState=l,t.baseState=l,e.memoizedProps=qt({},e.memoizedProps),l=ro(e,2),l!==null&&Ot(l,e,2))},fO=function(e,t,l,u){t=n(e,t),t!==null&&(l=s(t.memoizedState,l,u),t.memoizedState=l,t.baseState=l,e.memoizedProps=qt({},e.memoizedProps),l=ro(e,2),l!==null&&Ot(l,e,2))},mO=function(e,t,l){e.pendingProps=o(e.memoizedProps,t,0,l),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=ro(e,2),t!==null&&Ot(t,e,2)},pO=function(e,t){e.pendingProps=d(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=ro(e,2),t!==null&&Ot(t,e,2)},hO=function(e,t,l){e.pendingProps=s(e.memoizedProps,t,l),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=ro(e,2),t!==null&&Ot(t,e,2)},gO=function(e){var t=ro(e,2);t!==null&&Ot(t,e,2)},yO=function(e){var t=nn(),l=ro(e,t);l!==null&&Ot(l,e,t)},bO=function(e){h=e},vO=function(e){f=e};var US=!0,BS=null,t2=!1,Qd=null,Zd=null,Kd=null,yv=new Map,bv=new Map,Fd=[],U6="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),LS=null;if(lr.prototype.render=h0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var l=arguments;typeof l[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):D(l[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof l[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),l=e;var u=t.current,g=io(u);Kh(u,g,l,t,null,null)},lr.prototype.unmount=h0.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(un&(to|fr))!==po&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Kh(e.current,2,null,e,null,null),sl(),t[Vs]=null}},lr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mt();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Fd.length&&t!==0&&t<Fd[l].priority;l++);Fd.splice(l,0,e),l===0&&p0(e)}},(function(){var e=Tm.version;if(e!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
238
|
+
- react: `+(e+`
|
|
239
|
+
- react-dom: 19.2.4
|
|
240
|
+
Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),yn.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=L(t),e=e!==null?k(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Ve,reconcilerVersion:"19.2.4"};return e.overrideHookState=uO,e.overrideHookStateDeletePath=dO,e.overrideHookStateRenamePath=fO,e.overrideProps=mO,e.overridePropsDeletePath=pO,e.overridePropsRenamePath=hO,e.scheduleUpdate=gO,e.scheduleRetry=yO,e.setErrorHandler=bO,e.setSuspenseHandler=vO,e.scheduleRefresh=O,e.scheduleRoot=R,e.setRefreshHandler=j,e.getCurrentFiber=jn,Me(e)})()&&_i&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var xO=window.location.protocol;/^(https?|file):$/.test(xO)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(xO==="file:"?`
|
|
241
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Ov.createRoot=function(e,t){if(!D(e))throw Error("Target container is not a DOM element.");g0(e);var l=!1,u="",g=ch,b=uh,M=ub;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Dl&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
242
|
+
|
|
243
|
+
let root = createRoot(domContainer);
|
|
244
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(u=t.identifierPrefix),t.onUncaughtError!==void 0&&(g=t.onUncaughtError),t.onCaughtError!==void 0&&(b=t.onCaughtError),t.onRecoverableError!==void 0&&(M=t.onRecoverableError)),t=Em(e,1,!1,null,null,l,u,null,g,b,M,k1),e[Vs]=t.current,Mi(e),new h0(t)},Ov.hydrateRoot=function(e,t,l){if(!D(e))throw Error("Target container is not a DOM element.");g0(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var u=!1,g="",b=ch,M=uh,_=ub,X=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(M=l.onCaughtError),l.onRecoverableError!==void 0&&(_=l.onRecoverableError),l.formState!==void 0&&(X=l.formState)),t=Em(e,1,!0,t,l??null,u,g,X,b,M,_,k1),t.context=R1(null),l=t.current,u=io(l),u=Wn(u),g=Ca(u),g.callback=null,Dr(l,g,u),Rr(u,"hydrateRoot()",null),l=u,t.current.lanes=l,Tt(t,l),Ho(t),e[Vs]=t.current,Mi(e),new lr(t)},Ov.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ov}var TD;function RP(){if(TD)return dw.exports;TD=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(o){console.error(o)}}}return process.env.NODE_ENV==="production"?(n(),dw.exports=TP()):dw.exports=MP(),dw.exports}var uM=RP();const OP={confirm:m.jsx(kD,{className:"size-5 text-blue-500"}),info:m.jsx(hy,{className:"size-5 text-blue-500"}),success:m.jsx(cf,{className:"size-5 text-green-500"}),error:m.jsx(uf,{className:"size-5 text-red-500"}),warning:m.jsx(gy,{className:"size-5 text-yellow-500"})};function X4({open:n,onInternalClose:o,type:s="confirm",title:i,content:d,icon:f,onOk:h,onCancel:y,okText:v="OK",cancelText:x="Cancel",okType:C="primary",okButtonProps:w,cancelButtonProps:N,closable:R=!1,closeIcon:O,confirmLoading:j=!1,width:D=416,centered:A=!1,mask:z=!0,maskClosable:B=!1,zIndex:U,className:L,style:k}){const V=S.useCallback(G=>{h?.(G),o()},[h,o]),H=S.useCallback(G=>{y?.(G),o()},[y,o]),K=f??OP[s??"confirm"],Z=typeof D=="number"?`${D}px`:D,Q=s==="confirm";return m.jsx(cM,{open:n,onOpenChange:G=>{G||H({})},disablePointerDismissal:!B,children:m.jsxs(OC,{children:[z&&m.jsx(TC,{className:"fixed inset-0 isolate z-50 bg-black/45 duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",style:U?{zIndex:U}:void 0}),m.jsxs(RC,{"data-slot":"confirm-modal-content",className:$("fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 rounded-xl bg-background p-6 text-sm ring-1 ring-foreground/10 duration-100 outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",A?"top-1/2":"top-[100px] translate-y-0",L),style:{maxWidth:Z,...U?{zIndex:U}:{},...k},children:[R&&m.jsxs(MC,{render:m.jsx(pf,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[O??m.jsx(go,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]}),m.jsxs("div",{className:"flex gap-3",children:[K&&m.jsx("span",{className:"mt-0.5 flex-shrink-0",children:K}),m.jsxs("div",{className:"flex-1 space-y-2",children:[i&&m.jsx(jC,{className:"text-base font-semibold leading-tight",children:i}),d&&m.jsx("div",{className:"text-sm text-muted-foreground",children:d})]})]}),m.jsxs("div",{className:"mt-6 flex items-center justify-end gap-2",children:[Q&&m.jsx(Qi,{type:"default",onClick:H,...N,children:x}),m.jsx(Qi,{type:C,loading:j,onClick:V,...w,children:v})]})]})]})})}function yx(n,o){const s=document.createElement("div");document.body.appendChild(s);let i=null,d={...n,type:o},f=!0;function h(){i||(i=uM.createRoot(s)),i.render(m.jsx(X4,{...d,open:f,onInternalClose:()=>{f=!1,h(),setTimeout(()=>{i?.unmount(),i=null,s.parentNode&&s.parentNode.removeChild(s),d.afterClose?.()},300)}}))}return h(),{destroy:()=>{f=!1,h(),setTimeout(()=>{i?.unmount(),i=null,s.parentNode&&s.parentNode.removeChild(s)},300)},update:y=>{d={...d,...y},h()}}}function jP(n){return yx(n,"confirm")}function DP(n){return yx(n,"info")}function kP(n){return yx(n,"success")}function AP(n){return yx(n,"error")}function zP(n){return yx(n,"warning")}let _P=0;function P4(){const[n,o]=S.useState([]),s=S.useRef([]);s.current=n;const i=S.useCallback(y=>{o(v=>v.map(x=>x.id===y?{...x,open:!1}:x)),setTimeout(()=>{o(v=>v.filter(x=>x.id!==y))},300)},[]),d=S.useCallback((y,v)=>{const x=`modal-hook-${++_P}`,C={id:x,config:{...y,type:v},open:!0,type:v};return o(w=>[...w,C]),{destroy:()=>i(x),update:w=>{o(N=>N.map(R=>R.id===x?{...R,config:{...R.config,...w}}:R))}}},[i]),f=S.useMemo(()=>({confirm:y=>d(y,"confirm"),info:y=>d(y,"info"),success:y=>d(y,"success"),error:y=>d(y,"error"),warning:y=>d(y,"warning")}),[d]),h=S.useMemo(()=>m.jsx(m.Fragment,{children:n.map(y=>m.jsx(X4,{...y.config,open:y.open,onInternalClose:()=>i(y.id)},y.id))}),[n,i]);return[f,h]}const Tp=q4;Tp.confirm=jP;Tp.info=DP;Tp.success=kP;Tp.error=AP;Tp.warning=zP;Tp.useModal=P4;const UP={default:378,large:736},BP={default:378,large:736},LP={right:"inset-y-0 right-0 h-full border-l data-open:animate-in data-open:fade-in-0 data-open:slide-in-from-right-10 data-closed:animate-out data-closed:fade-out-0 data-closed:slide-out-to-right-10",left:"inset-y-0 left-0 h-full border-r data-open:animate-in data-open:fade-in-0 data-open:slide-in-from-left-10 data-closed:animate-out data-closed:fade-out-0 data-closed:slide-out-to-left-10",top:"inset-x-0 top-0 w-full border-b data-open:animate-in data-open:fade-in-0 data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-closed:slide-out-to-top-10",bottom:"inset-x-0 bottom-0 w-full border-t data-open:animate-in data-open:fade-in-0 data-open:slide-in-from-bottom-10 data-closed:animate-out data-closed:fade-out-0 data-closed:slide-out-to-bottom-10"},$4=S.forwardRef((n,o)=>{const{open:s=!1,onClose:i,title:d,placement:f="right",width:h,height:y,footer:v,extra:x,closable:C=!0,mask:w=!0,destroyOnHidden:N=!1,loading:R=!1,size:O="default",afterOpenChange:j,zIndex:D,children:A,className:z,style:B}=n,[U,L]=S.useState(s);S.useEffect(()=>{L(s)},[s]);const k=S.useCallback(Q=>{Q||i?.({}),L(Q),j?.(Q)},[i,j]);if(!U&&N)return null;const V=f==="left"||f==="right",H=h??(V?UP[O]:void 0),K=y??(V?void 0:BP[O]),Z={};return V&&H&&(Z.width=typeof H=="number"?`${H}px`:H),!V&&K&&(Z.height=typeof K=="number"?`${K}px`:K),m.jsx(cM,{open:U,onOpenChange:k,disablePointerDismissal:!1,children:m.jsxs(OC,{children:[w&&m.jsx(TC,{className:"fixed inset-0 z-50 bg-black/45 duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",style:D?{zIndex:D}:void 0}),m.jsxs(RC,{ref:o,"data-slot":"drawer-content",className:$("fixed z-50 flex flex-col bg-background text-sm shadow-lg transition duration-200 ease-in-out",LP[f],z),style:{...Z,...D?{zIndex:D}:{},...B},children:[(d||C||x)&&m.jsxs("div",{className:"flex items-center justify-between border-b px-6 py-4",children:[m.jsx("div",{className:"flex items-center gap-2",children:d&&m.jsx(jC,{className:"text-base font-semibold leading-none",children:d})}),m.jsxs("div",{className:"flex items-center gap-2",children:[x,C&&m.jsxs(MC,{render:m.jsx(pf,{variant:"ghost",size:"icon-sm"}),children:[m.jsx(go,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}),m.jsx("div",{className:"flex-1 overflow-auto px-6 py-4",children:R?m.jsx("div",{className:"flex items-center justify-center py-8",children:m.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):A}),v&&m.jsx("div",{className:"flex items-center justify-end gap-2 border-t px-6 py-3",children:v})]})]})})});$4.displayName="Drawer";const VP=$4,HP={success:m.jsx(cf,{className:"size-4 text-green-500"}),info:m.jsx(hy,{className:"size-4 text-blue-500"}),warning:m.jsx(gy,{className:"size-4 text-yellow-500"}),error:m.jsx(uf,{className:"size-4 text-red-500"}),loading:m.jsx(Zs,{className:"size-4 animate-spin text-blue-500"})};function IP({messages:n,top:o=8}){return m.jsx("div",{className:"pointer-events-none fixed inset-x-0 z-[1010] flex flex-col items-center gap-2",style:{top:o},children:n.map(s=>m.jsxs("div",{className:$("pointer-events-auto flex items-center gap-2 rounded-lg bg-background px-4 py-2.5 text-sm shadow-lg ring-1 ring-foreground/10 transition-all duration-200",s.closing?"translate-y-[-10px] opacity-0":"translate-y-0 opacity-100 animate-in fade-in-0 slide-in-from-top-2"),style:s.config.style,onClick:s.config.onClick,children:[s.config.icon??HP[s.type],m.jsx("span",{children:s.config.content})]},s.id))})}let pp={top:8,duration:3,maxCount:void 0},fs=[],YP=0,Y2=null,sp=null;function qP(){return sp&&sp.parentNode||(sp=document.createElement("div"),sp.setAttribute("data-message-container","true"),(pp.getContainer?.()??document.body).appendChild(sp)),sp}function $v(){const n=qP();Y2||(Y2=uM.createRoot(n)),Y2.render(m.jsx(IP,{messages:[...fs],top:pp.top}))}function Cw(n){const o=fs.find(s=>s.id===n);o&&(o.closing=!0,$v(),setTimeout(()=>{fs=fs.filter(s=>s.id!==n),o.config.onClose?.(),$v()},200))}function Qg(n,o){const s=o.key?.toString()??`msg-${++YP}`,i=o.duration??pp.duration??3,d=fs.findIndex(v=>v.id===s),f={id:s,config:o,type:n,closing:!1};if(d>=0)fs[d]=f;else{if(pp.maxCount&&fs.length>=pp.maxCount){const v=fs[0];v&&Cw(v.id)}fs.push(f)}$v();let h=null;i>0&&(h=setTimeout(()=>{Cw(s)},i*1e3));const y=(()=>{h&&clearTimeout(h),Cw(s)});return y.then=v=>new Promise(x=>{const C=setInterval(()=>{fs.find(w=>w.id===s)||(clearInterval(C),v(),x())},50)}),y}function jv(n,o,s){return typeof n=="object"&&n!==null&&!S.isValidElement(n)&&"content"in n?n:{content:n,duration:o,onClose:s}}const GP={success:(n,o,s)=>Qg("success",jv(n,o,s)),error:(n,o,s)=>Qg("error",jv(n,o,s)),info:(n,o,s)=>Qg("info",jv(n,o,s)),warning:(n,o,s)=>Qg("warning",jv(n,o,s)),loading:(n,o,s)=>Qg("loading",jv(n,o,s)),open:n=>Qg(n.type??"info",n),destroy:n=>{n!==void 0?Cw(n.toString()):(fs.forEach(o=>{o.closing=!0}),$v(),setTimeout(()=>{fs=[],$v()},200))},config:n=>{pp={...pp,...n}}},XP={success:m.jsx(cf,{className:"size-4 text-green-500"}),info:m.jsx(hy,{className:"size-4 text-blue-500"}),warning:m.jsx(gy,{className:"size-4 text-yellow-500"}),error:m.jsx(uf,{className:"size-4 text-red-500"}),loading:m.jsx(Zs,{className:"size-4 animate-spin text-blue-500"})};let PP=0;function Q4(){const[n,o]=S.useState([]),s=S.useRef(new Map),i=S.useRef({top:8,duration:3}),d=S.useCallback(x=>{o(C=>C.map(w=>w.id===x?{...w,closing:!0}:w)),setTimeout(()=>{o(C=>(C.find(N=>N.id===x)?.config.onClose?.(),C.filter(N=>N.id!==x)))},200)},[]),f=S.useCallback((x,C)=>{const w=C.key?.toString()??`hook-msg-${++PP}`,N=C.duration??i.current.duration??3,R={id:w,config:C,type:x,closing:!1};o(D=>{const A=D.findIndex(z=>z.id===w);if(A>=0){const z=[...D];return z[A]=R,z}return i.current.maxCount&&D.length>=i.current.maxCount?[...D.slice(1),R]:[...D,R]});const O=s.current.get(w);if(O&&clearTimeout(O),N>0){const D=setTimeout(()=>d(w),N*1e3);s.current.set(w,D)}const j=(()=>{const D=s.current.get(w);D&&clearTimeout(D),d(w)});return j.then=D=>new Promise(A=>{const z=setInterval(()=>{o(B=>(B.find(U=>U.id===w)||(clearInterval(z),D(),A()),B))},50)}),j},[d]),h=S.useCallback((x,C,w)=>typeof x=="object"&&x!==null&&!S.isValidElement(x)&&"content"in x?x:{content:x,duration:C,onClose:w},[]),y=S.useMemo(()=>({success:(x,C,w)=>f("success",h(x,C,w)),error:(x,C,w)=>f("error",h(x,C,w)),info:(x,C,w)=>f("info",h(x,C,w)),warning:(x,C,w)=>f("warning",h(x,C,w)),loading:(x,C,w)=>f("loading",h(x,C,w)),open:x=>f(x.type??"info",x),destroy:x=>{x!==void 0?d(x.toString()):(o(C=>C.map(w=>({...w,closing:!0}))),setTimeout(()=>o([]),200))},config:x=>{i.current={...i.current,...x}}}),[f,h,d]),v=S.useMemo(()=>m.jsx("div",{className:"pointer-events-none fixed inset-x-0 z-[1010] flex flex-col items-center gap-2",style:{top:i.current.top??8},children:n.map(x=>m.jsxs("div",{className:$("pointer-events-auto flex items-center gap-2 rounded-lg bg-background px-4 py-2.5 text-sm shadow-lg ring-1 ring-foreground/10 transition-all duration-200",x.closing?"translate-y-[-10px] opacity-0":"translate-y-0 opacity-100 animate-in fade-in-0 slide-in-from-top-2"),style:x.config.style,onClick:x.config.onClick,children:[x.config.icon??XP[x.type],m.jsx("span",{children:x.config.content})]},x.id))}),[n]);return[y,v]}const Z4=GP;Z4.useMessage=Q4;const $P={success:m.jsx(cf,{className:"size-5 text-green-500"}),info:m.jsx(hy,{className:"size-5 text-blue-500"}),warning:m.jsx(gy,{className:"size-5 text-yellow-500"}),error:m.jsx(uf,{className:"size-5 text-red-500"})},QP={top:"inset-x-0 top-0 items-center",topLeft:"top-0 left-0 items-start",topRight:"top-0 right-0 items-end",bottom:"inset-x-0 bottom-0 items-center",bottomLeft:"bottom-0 left-0 items-start",bottomRight:"bottom-0 right-0 items-end"},ZP=(n,o)=>o?"translate-x-0 opacity-0 scale-95":{top:"animate-in fade-in-0 slide-in-from-top-5",topLeft:"animate-in fade-in-0 slide-in-from-left-5",topRight:"animate-in fade-in-0 slide-in-from-right-5",bottom:"animate-in fade-in-0 slide-in-from-bottom-5",bottomLeft:"animate-in fade-in-0 slide-in-from-left-5",bottomRight:"animate-in fade-in-0 slide-in-from-right-5"}[n];function KP({instance:n,placement:o,onClose:s}){const{config:i,type:d,closing:f,id:h,createdAt:y}=n,v=i.message??i.title,x=i.closable!==!1,C=i.showProgress??!1,w=i.pauseOnHover??!0,N=i.duration??4.5,[R,O]=S.useState(!1),[j,D]=S.useState(100);return S.useEffect(()=>{if(!C||N<=0)return;const A=y;let z=0,B=0;const U=()=>{if(R){z||(z=Date.now()),L=requestAnimationFrame(U);return}z&&(B+=Date.now()-z,z=0);const k=Date.now()-A-B,V=Math.max(0,100-k/(N*1e3)*100);D(V),V>0&&(L=requestAnimationFrame(U))};let L=requestAnimationFrame(U);return()=>cancelAnimationFrame(L)},[C,N,y,R]),m.jsxs("div",{className:$("pointer-events-auto relative w-[384px] max-w-[calc(100vw-2rem)] overflow-hidden rounded-lg bg-background p-4 shadow-lg ring-1 ring-foreground/10 transition-all duration-200",ZP(o,f)),style:i.style,onClick:i.onClick,onMouseEnter:()=>w&&O(!0),onMouseLeave:()=>w&&O(!1),children:[m.jsxs("div",{className:"flex gap-3",children:[(i.icon||d)&&m.jsx("span",{className:"mt-0.5 flex-shrink-0",children:i.icon??(d?$P[d]:null)}),m.jsxs("div",{className:"flex-1 space-y-1",children:[v&&m.jsx("div",{className:"text-sm font-semibold",children:v}),i.description&&m.jsx("div",{className:"text-sm text-muted-foreground",children:i.description}),i.actions&&m.jsx("div",{className:"mt-3 flex items-center gap-2",children:i.actions})]}),x&&m.jsx("button",{type:"button",onClick:A=>{A.stopPropagation(),s(h)},className:"flex-shrink-0 rounded-sm p-0.5 opacity-50 transition-opacity hover:opacity-100",children:i.closeIcon??m.jsx(go,{className:"size-4"})})]}),C&&N>0&&m.jsx("div",{className:"absolute inset-x-0 bottom-0 h-1 bg-muted",children:m.jsx("div",{className:"h-full bg-primary transition-all duration-100",style:{width:`${j}%`}})})]})}function K4({notifications:n,placement:o,top:s=24,bottom:i=24,onClose:d}){const f=o.startsWith("top")||o==="top";return m.jsx("div",{className:$("pointer-events-none fixed z-[1010] flex flex-col gap-3 p-4",QP[o]),style:f?{top:s}:{bottom:i},children:n.map(h=>m.jsx(KP,{instance:h,placement:o,onClose:d},h.id))})}let hp={top:24,bottom:24,placement:"topRight",maxCount:void 0,stack:!0},yl={},FP=0,q2={},mw={};function WP(n){if(mw[n]&&mw[n].parentNode)return mw[n];const o=document.createElement("div");return o.setAttribute("data-notification-container",n),document.body.appendChild(o),mw[n]=o,o}function Qv(n){const o=WP(n);q2[n]||(q2[n]=uM.createRoot(o));const s=yl[n]??[];q2[n].render(m.jsx(K4,{notifications:[...s],placement:n,top:hp.top,bottom:hp.bottom,onClose:Xw}))}function Xw(n){for(const o of Object.keys(yl)){const i=yl[o].find(d=>d.id===n);if(i){i.closing=!0,Qv(o),setTimeout(()=>{yl[o]=yl[o].filter(d=>d.id!==n),i.config.onClose?.(),Qv(o)},200);break}}}function Dv(n,o){const s=n.placement??hp.placement??"topRight",i=n.key?.toString()??`notif-${++FP}`,d=n.duration??4.5;yl[s]||(yl[s]=[]);const f={id:i,config:{...n,type:o},type:o,closing:!1,createdAt:Date.now()},h=yl[s].findIndex(y=>y.id===i);if(h>=0)yl[s][h]=f;else{if(hp.maxCount&&yl[s].length>=hp.maxCount){const y=yl[s][0];y&&Xw(y.id)}yl[s].push(f)}Qv(s),d>0&&setTimeout(()=>Xw(i),d*1e3)}const JP={success:n=>Dv(n,"success"),error:n=>Dv(n,"error"),info:n=>Dv(n,"info"),warning:n=>Dv(n,"warning"),open:n=>Dv(n,n.type),destroy:n=>{if(n!==void 0)Xw(n.toString());else for(const o of Object.keys(yl))yl[o].forEach(s=>{s.closing=!0}),Qv(o),setTimeout(()=>{yl[o]=[],Qv(o)},200)},config:n=>{hp={...hp,...n}}};let e$=0;function F4(){const[n,o]=S.useState([]),s=S.useRef({top:24,bottom:24,placement:"topRight"}),i=S.useCallback(v=>{o(x=>x.map(C=>C.id===v?{...C,closing:!0}:C)),setTimeout(()=>{o(x=>(x.find(w=>w.id===v)?.config.onClose?.(),x.filter(w=>w.id!==v)))},200)},[]),d=S.useCallback((v,x)=>{const C=v.key?.toString()??`hook-notif-${++e$}`,w=v.duration??4.5,N={id:C,config:{...v,type:x},type:x,closing:!1,createdAt:Date.now()};o(R=>{const O=R.findIndex(j=>j.id===C);if(O>=0){const j=[...R];return j[O]=N,j}return s.current.maxCount&&R.length>=s.current.maxCount?[...R.slice(1),N]:[...R,N]}),w>0&&setTimeout(()=>i(C),w*1e3)},[i]),f=S.useMemo(()=>({success:v=>d(v,"success"),error:v=>d(v,"error"),info:v=>d(v,"info"),warning:v=>d(v,"warning"),open:v=>d(v,v.type),destroy:v=>{v!==void 0?i(v.toString()):(o(x=>x.map(C=>({...C,closing:!0}))),setTimeout(()=>o([]),200))},config:v=>{s.current={...s.current,...v}}}),[d,i]),h=S.useMemo(()=>{const v={};for(const x of n){const C=x.config.placement??s.current.placement??"topRight";v[C]||(v[C]=[]),v[C].push(x)}return v},[n]),y=S.useMemo(()=>m.jsx(m.Fragment,{children:Object.entries(h).map(([v,x])=>m.jsx(K4,{notifications:x,placement:v,top:s.current.top,bottom:s.current.bottom,onClose:i},v))}),[h,i]);return[f,y]}const W4=JP;W4.useNotification=F4;function t$(n){return{top:{side:"top",align:"center"},topLeft:{side:"top",align:"start"},topRight:{side:"top",align:"end"},bottom:{side:"bottom",align:"center"},bottomLeft:{side:"bottom",align:"start"},bottomRight:{side:"bottom",align:"end"},left:{side:"left",align:"center"},leftTop:{side:"left",align:"start"},leftBottom:{side:"left",align:"end"},right:{side:"right",align:"center"},rightTop:{side:"right",align:"start"},rightBottom:{side:"right",align:"end"}}[n]??{side:"top",align:"center"}}const J4=S.forwardRef((n,o)=>{const{title:s,description:i,onConfirm:d,onCancel:f,okText:h="OK",cancelText:y="Cancel",okType:v="primary",okButtonProps:x,cancelButtonProps:C,icon:w,disabled:N=!1,placement:R="top",open:O,onOpenChange:j,showCancel:D=!0,children:A,className:z}=n,[B,U]=S.useState(!1),L=O!==void 0,k=L?O:B,V=S.useCallback(W=>{N&&W||(L||U(W),j?.(W))},[N,L,j]),H=S.useCallback(W=>{d?.(W),V(!1)},[d,V]),K=S.useCallback(W=>{f?.(W),V(!1)},[f,V]),Z=typeof s=="function"?s():s,Q=typeof i=="function"?i():i,{side:G,align:q}=t$(R);return m.jsxs(c5,{open:k,onOpenChange:V,children:[m.jsx(u5,{ref:o,render:m.jsx("span",{}),children:A}),m.jsxs(d5,{side:G,align:q,sideOffset:8,className:$("w-auto min-w-[200px] max-w-[300px]",z),children:[m.jsxs("div",{className:"flex gap-2",children:[m.jsx("span",{className:"mt-0.5 flex-shrink-0",children:w??m.jsx(kD,{className:"size-4 text-yellow-500"})}),m.jsxs("div",{className:"flex-1 space-y-1",children:[Z&&m.jsx("div",{className:"text-sm font-medium",children:Z}),Q&&m.jsx("div",{className:"text-xs text-muted-foreground",children:Q})]})]}),m.jsxs("div",{className:"mt-3 flex items-center justify-end gap-2",children:[D&&m.jsx(Qi,{type:"default",size:"small",onClick:K,...C,children:y}),m.jsx(Qi,{type:v,size:"small",onClick:H,...x,children:h})]})]})]})});J4.displayName="Popconfirm";const n$=J4,a$={normal:"var(--color-primary, #3b82f6)",active:"var(--color-primary, #3b82f6)",success:"#22c55e",exception:"#ef4444"},gN={normal:"text-muted-foreground",active:"text-muted-foreground",success:"text-green-500",exception:"text-red-500"};function e_(n,o){return typeof n=="string"?n:a$[o]}function t_(n,o){return n||(o>=100?"success":"normal")}function o$({percent:n=0,status:o,strokeColor:s,showInfo:i=!0,size:d="default",steps:f,format:h,strokeLinecap:y="round",success:v,railColor:x,strokeWidth:C,className:w,style:N}){const R=t_(o,n),O=e_(s,R),j=d==="small",D=C??(Array.isArray(d)?d[1]:j?4:8),A=Array.isArray(d)?d[0]:void 0,z=S.useMemo(()=>i?h?h(n,v?.percent):R==="success"?m.jsx(cf,{className:"size-4 text-green-500"}):R==="exception"?m.jsx(uf,{className:"size-4 text-red-500"}):`${Math.round(n)}%`:null,[i,h,n,v?.percent,R]);if(f&&f>0){const B=Math.round(n/100*f);return m.jsxs("div",{className:$("flex items-center gap-1",w),style:{width:A,...N},children:[m.jsx("div",{className:"flex flex-1 gap-0.5",children:Array.from({length:f},(U,L)=>m.jsx("div",{className:"flex-1 rounded-sm",style:{height:D,backgroundColor:L<B?O:x??"var(--color-muted)",borderRadius:y==="round"?D/2:void 0}},L))}),i&&m.jsx("span",{className:$("ml-2 text-sm tabular-nums",gN[R]),children:z})]})}return m.jsxs("div",{className:$("flex items-center gap-2",w),style:{width:A,...N},children:[m.jsxs("div",{className:"relative flex-1 overflow-hidden",style:{height:D,backgroundColor:x??"var(--color-muted)",borderRadius:y==="round"?D/2:void 0},children:[v?.percent!==void 0&&v.percent>0&&m.jsx("div",{className:"absolute inset-y-0 left-0 transition-all duration-300",style:{width:`${Math.min(v.percent,100)}%`,backgroundColor:v.strokeColor??"#22c55e",borderRadius:y==="round"?D/2:void 0}}),m.jsx("div",{className:$("absolute inset-y-0 left-0 transition-all duration-300",R==="active"&&"after:absolute after:inset-0 after:animate-pulse after:bg-white/25"),style:{width:`${Math.min(n,100)}%`,backgroundColor:O,borderRadius:y==="round"?D/2:void 0}})]}),i&&m.jsx("span",{className:$("flex-shrink-0 text-sm tabular-nums",gN[R]),children:z})]})}function l$({percent:n=0,type:o="circle",status:s,strokeColor:i,showInfo:d=!0,size:f="default",format:h,strokeLinecap:y="round",success:v,railColor:x,strokeWidth:C,className:w,style:N}){const R=t_(s,n),O=e_(i,R),j=Array.isArray(f)?f[0]:f==="small"?60:120,D=C??(f==="small"?4:6),A=(j-D)/2,z=2*Math.PI*A,B=o==="dashboard",U=B?75:0,L=B?U/360:0,k=z*(1-L),V=k-k*Math.min(n,100)/100,H=v?.percent!==void 0?k-k*Math.min(v.percent,100)/100:k,K=B?90+U/2:-90,Z=S.useMemo(()=>d?h?h(n,v?.percent):R==="success"?m.jsx(cf,{className:"size-6 text-green-500"}):R==="exception"?m.jsx(uf,{className:"size-6 text-red-500"}):`${Math.round(n)}%`:null,[d,h,n,v?.percent,R]);return m.jsxs("div",{className:$("relative inline-flex items-center justify-center",w),style:{width:j,height:j,...N},children:[m.jsxs("svg",{width:j,height:j,viewBox:`0 0 ${j} ${j}`,children:[m.jsx("circle",{cx:j/2,cy:j/2,r:A,fill:"none",stroke:x??"var(--color-muted)",strokeWidth:D,strokeDasharray:`${k} ${z-k}`,strokeLinecap:y,transform:`rotate(${K} ${j/2} ${j/2})`}),v?.percent!==void 0&&v.percent>0&&m.jsx("circle",{cx:j/2,cy:j/2,r:A,fill:"none",stroke:v.strokeColor??"#22c55e",strokeWidth:D,strokeDasharray:`${k} ${z-k}`,strokeDashoffset:H,strokeLinecap:y,transform:`rotate(${K} ${j/2} ${j/2})`,className:"transition-all duration-300"}),m.jsx("circle",{cx:j/2,cy:j/2,r:A,fill:"none",stroke:O,strokeWidth:D,strokeDasharray:`${k} ${z-k}`,strokeDashoffset:V,strokeLinecap:y,transform:`rotate(${K} ${j/2} ${j/2})`,className:"transition-all duration-300"})]}),d&&m.jsx("span",{className:$("absolute inset-0 flex items-center justify-center text-sm font-medium tabular-nums",gN[R]),children:Z})]})}const n_=S.forwardRef((n,o)=>{const{type:s="line",...i}=n;return s==="circle"||s==="dashboard"?m.jsx("div",{ref:o,children:m.jsx(l$,{type:s,...i})}):m.jsx("div",{ref:o,children:m.jsx(o$,{...i})})});n_.displayName="Progress";const r$=n_,MD={small:"size-4",middle:"size-6",large:"size-8"},a_=S.forwardRef((n,o)=>{const{spinning:s=!0,size:i,delay:d,indicator:f,tip:h,description:y,fullscreen:v=!1,percent:x,wrapperClassName:C,children:w,className:N,style:R}=n,O=Ws(i),j=h??y,[D,A]=S.useState(d?!1:s);S.useEffect(()=>{if(!d){A(s);return}if(s){const U=setTimeout(()=>A(!0),d);return()=>clearTimeout(U)}else A(!1)},[s,d]);const z=S.useMemo(()=>{if(f)return f;if(x!==void 0&&x!=="auto"){const U=typeof x=="number"?x:0,L=10,k=2*Math.PI*L,V=k-k*U/100;return m.jsxs("svg",{className:$("animate-spin",MD[O]),viewBox:"0 0 24 24",children:[m.jsx("circle",{cx:"12",cy:"12",r:L,fill:"none",stroke:"currentColor",strokeWidth:"3",opacity:"0.2"}),m.jsx("circle",{cx:"12",cy:"12",r:L,fill:"none",stroke:"currentColor",strokeWidth:"3",strokeDasharray:k,strokeDashoffset:V,strokeLinecap:"round",className:"transition-all duration-200"})]})}return m.jsx(Zs,{className:$("animate-spin text-primary",MD[O])})},[f,x,O]),B=m.jsxs("div",{className:$("flex flex-col items-center justify-center gap-2"),children:[z,j&&D&&m.jsx("span",{className:"text-sm text-primary",children:j})]});return v?D?m.jsx("div",{ref:o,className:$("fixed inset-0 z-[1000] flex items-center justify-center bg-background/80 backdrop-blur-sm",N),style:R,children:B}):null:w?m.jsxs("div",{ref:o,className:$("relative",C),style:R,children:[m.jsx("div",{className:$("transition-opacity duration-200",D&&"pointer-events-none select-none opacity-30"),children:w}),D&&m.jsx("div",{className:$("absolute inset-0 flex items-center justify-center",N),children:B})]}):D?m.jsx("div",{ref:o,className:$("inline-flex",N),style:R,children:B}):null});a_.displayName="Spin";const s$=a_,o_=S.forwardRef((n,o)=>{const{active:s=!1,loading:i=!0,avatar:d=!1,title:f=!0,paragraph:h=!0,round:y=!1,children:v,className:x,style:C}=n;if(!i)return m.jsx(m.Fragment,{children:v});const w=d===!0?{shape:"circle",size:"default"}:d===!1?null:d,N=f===!0?{width:"38%"}:f===!1?null:f,R=h===!0?{rows:3}:h===!1?null:h,O=R?.rows??3,j=R?.width;function D(z){return Array.isArray(j)?j[z]??"100%":j!==void 0&&z===O-1?j:z===O-1?"61%":"100%"}const A=w?.size==="small"?32:w?.size==="large"?48:typeof w?.size=="number"?w.size:40;return m.jsxs("div",{ref:o,className:$("flex gap-4",x),style:C,children:[w&&m.jsx(Pa,{className:$("flex-shrink-0",w.shape==="square"?"rounded-md":"rounded-full",s&&"animate-pulse"),style:{width:A,height:A}}),m.jsxs("div",{className:"flex-1 space-y-3",children:[N&&m.jsx(Pa,{className:$("h-4",y&&"rounded-full",s&&"animate-pulse"),style:{width:typeof N.width=="number"?`${N.width}px`:N.width}}),R&&m.jsx("div",{className:"space-y-2",children:Array.from({length:O},(z,B)=>{const U=D(B);return m.jsx(Pa,{className:$("h-3",y&&"rounded-full",s&&"animate-pulse"),style:{width:typeof U=="number"?`${U}px`:U}},B)})})]})]})});o_.displayName="Skeleton";const l_=S.forwardRef(({active:n=!1,shape:o="circle",size:s="default",className:i,style:d},f)=>{const h=s==="small"?32:s==="large"?48:typeof s=="number"?s:40;return m.jsx(Pa,{ref:f,className:$(o==="square"?"rounded-md":"rounded-full",n&&"animate-pulse",i),style:{width:h,height:h,...d}})});l_.displayName="Skeleton.Avatar";const r_=S.forwardRef(({active:n=!1,size:o="default",shape:s="default",block:i=!1,className:d,style:f},h)=>{const y={small:28,default:32,large:36},v={small:64,default:80,large:96},x=y[o],C=i?"100%":v[o];return m.jsx(Pa,{ref:h,className:$(s==="circle"?"rounded-full aspect-square":s==="round"?"rounded-full":"rounded-md",n&&"animate-pulse",d),style:{height:x,width:s==="circle"?x:C,...f}})});r_.displayName="Skeleton.Button";const s_=S.forwardRef(({active:n=!1,size:o="default",block:s=!1,className:i,style:d},f)=>{const y={small:28,default:32,large:36}[o];return m.jsx(Pa,{ref:f,className:$("rounded-md",n&&"animate-pulse",i),style:{height:y,width:s?"100%":200,...d}})});s_.displayName="Skeleton.Input";const i_=S.forwardRef(({active:n=!1,className:o,style:s},i)=>m.jsx(Pa,{ref:i,className:$("flex items-center justify-center rounded-md",n&&"animate-pulse",o),style:{width:96,height:96,...s},children:m.jsx(b8,{className:"size-6 text-muted-foreground/50"})}));i_.displayName="Skeleton.Image";const c_=S.forwardRef(({active:n=!1,children:o,className:s,style:i},d)=>m.jsx(Pa,{ref:d,className:$("flex items-center justify-center rounded-md",n&&"animate-pulse",s),style:{width:96,height:96,...i},children:o}));c_.displayName="Skeleton.Node";const Ny=o_;Ny.Avatar=l_;Ny.Button=r_;Ny.Input=s_;Ny.Image=i_;Ny.Node=c_;const i$={success:m.jsx(cf,{className:"size-16 text-green-500"}),error:m.jsx(uf,{className:"size-16 text-red-500"}),info:m.jsx(hy,{className:"size-16 text-blue-500"}),warning:m.jsx(gy,{className:"size-16 text-yellow-500"}),403:m.jsx(O8,{className:"size-16 text-muted-foreground"}),404:m.jsx(u8,{className:"size-16 text-muted-foreground"}),500:m.jsx(M8,{className:"size-16 text-muted-foreground"})},c$={success:"Success",error:"Error",info:"Info",warning:"Warning",403:"403",404:"404",500:"500"},u$={403:"Sorry, you are not authorized to access this page.",404:"Sorry, the page you visited does not exist.",500:"Sorry, something went wrong on the server."},u_=S.forwardRef((n,o)=>{const{status:s="info",title:i,subTitle:d,icon:f,extra:h,children:y,className:v,style:x}=n,C=String(s),w=f??i$[C],N=i??c$[C],R=d??u$[C];return m.jsxs("div",{ref:o,className:$("flex flex-col items-center justify-center px-8 py-12 text-center",v),style:x,children:[w&&m.jsx("div",{className:"mb-6",children:w}),N&&m.jsx("h3",{className:"mb-2 text-2xl font-semibold text-foreground",children:N}),R&&m.jsx("p",{className:"mb-6 max-w-md text-sm text-muted-foreground",children:R}),h&&m.jsx("div",{className:"mb-6 flex flex-wrap items-center justify-center gap-2",children:h}),y&&m.jsx("div",{className:"w-full",children:y})]})});u_.displayName="Result";const d$=u_,f$={color:"rgba(0, 0, 0, 0.15)",fontSize:16,fontWeight:"normal",fontFamily:"sans-serif",fontStyle:"normal",textAlign:"center"};function m$(n){const{content:o,image:s,width:i,height:d,rotate:f,gap:h,font:y,devicePixelRatio:v,onReady:x}=n,[C,w]=h,N=i+C,R=d+w,O=N*2,j=R*2,D=document.createElement("canvas");D.width=O*v,D.height=j*v,D.style.width=`${O}px`,D.style.height=`${j}px`;const A=D.getContext("2d");if(!A)return;A.scale(v,v);function z(L,k,V){if(L.save(),L.translate(k+i/2,V+d/2),L.rotate(f*Math.PI/180),s){const H=new Image;return H.crossOrigin="anonymous",H.onload=()=>{L.drawImage(H,-i/2,-d/2,i,d),L.restore(),x(D.toDataURL(),O,j)},H.src=s,L.restore(),!1}if(o){L.textAlign=y.textAlign,L.textBaseline="middle",L.font=`${y.fontStyle} ${y.fontWeight} ${y.fontSize}px ${y.fontFamily}`,L.fillStyle=y.color;const H=Array.isArray(o)?o:[o],K=y.fontSize*1.5,Q=-(H.length*K)/2+K/2;H.forEach((G,q)=>{L.fillText(G,0,Q+q*K)})}return L.restore(),!0}const B=z(A,0,0),U=z(A,N,R);B!==!1&&U!==!1&&x(D.toDataURL(),O,j)}const d_=S.forwardRef((n,o)=>{const{content:s,image:i,width:d,height:f,rotate:h=-22,gap:y=[100,100],offset:v,font:x,zIndex:C=9,children:w,className:N,style:R}=n,[O,j]=S.useState(""),[D,A]=S.useState([0,0]),z=S.useMemo(()=>({...f$,...x}),[x]),B=d??(i?120:void 0),U=S.useMemo(()=>{if(B!==void 0)return B;if(!s)return 120;const H=Array.isArray(s)?s:[s],K=Math.max(...H.map(Z=>Z.length));return Math.max(K*z.fontSize*.7,80)},[B,s,z.fontSize]),L=f??(i?64:void 0),k=S.useMemo(()=>{if(L!==void 0)return L;if(!s)return 64;const H=Array.isArray(s)?s:[s];return Math.max(H.length*z.fontSize*1.5+8,32)},[L,s,z.fontSize]);S.useEffect(()=>{if(!s&&!i){j("");return}const H=window.devicePixelRatio||1;m$({content:s,image:i,width:U,height:k,rotate:h,gap:y,font:z,devicePixelRatio:H,onReady:(K,Z,Q)=>{j(K),A([Z,Q])}})},[s,i,U,k,h,y,z]);const V={};return v&&(V.left=v[0],V.top=v[1]),m.jsxs("div",{ref:o,className:$("relative",N),style:R,children:[w,O&&m.jsx("div",{className:"pointer-events-none absolute inset-0",style:{zIndex:C,backgroundImage:`url(${O})`,backgroundRepeat:"repeat",backgroundSize:D[0]?`${D[0]}px ${D[1]}px`:void 0,...V}})]})});d_.displayName="Watermark";const p$=d_,f_=({offsetTop:n,offsetBottom:o,target:s,onChange:i,children:d,className:f,style:h})=>{const[y,v]=S.useState(!1),[x,C]=S.useState({}),[w,N]=S.useState({}),R=S.useRef(null),O=S.useRef(!1),j=o!==void 0&&n===void 0,D=j?o??0:n??0;return S.useEffect(()=>{const A=s?s():window,z=R.current;if(!z)return;const B=()=>{if(A instanceof Window)return{top:0,bottom:window.innerHeight,height:window.innerHeight};const L=A.getBoundingClientRect();return{top:L.top,bottom:L.bottom,height:L.height}},U=()=>{const L=z.getBoundingClientRect(),k=B();let V=!1;if(j?V=L.bottom>k.bottom-D:V=L.top<=k.top+D,V!==O.current&&(O.current=V,v(V),i?.(V)),V){C({width:L.width,height:L.height});const H={position:"fixed",width:L.width,zIndex:100};j?H.bottom=D:H.top=k.top+D,N(H)}};return U(),A.addEventListener("scroll",U,{passive:!0}),window.addEventListener("resize",U,{passive:!0}),()=>{A.removeEventListener("scroll",U),window.removeEventListener("resize",U)}},[D,j,s,i]),y?m.jsxs("div",{ref:R,className:$(f),style:h,children:[m.jsx("div",{style:x}),m.jsx("div",{style:w,children:d})]}):m.jsx("div",{ref:R,className:$(f),style:h,children:d})};f_.displayName="Affix";const m_=S.createContext(null);function h$(){const n=S.useContext(m_);if(!n)throw new Error("App.useApp() must be used within an <App> component. Wrap your application with <App> to use the useApp hook.");return n}const p_=({children:n,className:o,style:s,component:i="div"})=>{const[d,f]=Q4(),[h,y]=F4(),[v,x]=P4(),C=S.useMemo(()=>({message:d,notification:h,modal:v}),[d,h,v]),w=m.jsxs(m_.Provider,{value:C,children:[f,y,x,n]});return i===!1?w:m.jsx(i,{className:$(o),style:s,children:w})};p_.displayName="App";const h_=p_;h_.useApp=h$;const g$={colorPrimary:"--primary",colorSuccess:"--success",colorWarning:"--warning",colorError:"--destructive",colorInfo:"--info",colorTextBase:"--foreground",colorBgBase:"--background",borderRadius:"--radius",fontSize:"--orizon-font-size-base"};function y$(n,o){for(const[s,i]of Object.entries(g$)){const d=o[s];d!==void 0&&(s==="borderRadius"?n.style.setProperty(i,`${d}px`):s==="fontSize"?n.style.setProperty(i,`${d}px`):typeof d=="string"&&n.style.setProperty(i,d))}}const b$={defaultAlgorithm:"default",darkAlgorithm:"dark",compactAlgorithm:"compact"};function v$({theme:n,componentSize:o,direction:s,children:i}){const d=S.useRef(null);S.useEffect(()=>{d.current&&n?.token&&y$(d.current,n.token)},[n?.token]);const f=n?.algorithm==="dark",h=S.useMemo(()=>({theme:n,componentSize:o,direction:s}),[n,o,s]);return m.jsx(MN.Provider,{value:h,children:m.jsx("div",{ref:d,className:f?"dark":void 0,dir:s,style:{display:"contents"},children:i})})}function x$(){return S.useContext(MN)}exports.Affix=f_;exports.Alert=Y4;exports.Anchor=Cz;exports.App=h_;exports.AutoComplete=rX;exports.Avatar=Vz;exports.Badge=qz;exports.Breadcrumb=mz;exports.Button=Qi;exports.Calendar=Uq;exports.Card=bT;exports.Carousel=Bq;exports.Cascader=mX;exports.Checkbox=t4;exports.Col=wk;exports.Collapse=b9;exports.ColorPicker=LX;exports.ConfigProvider=v$;exports.DatePicker=N4;exports.Descriptions=S9;exports.Divider=Ck;exports.Drawer=VP;exports.Dropdown=yz;exports.Empty=jT;exports.Flex=vk;exports.FloatButton=RN;exports.Form=Cy;exports.Image=k5;exports.Input=gx;exports.InputNumber=oX;exports.Layout=Fv;exports.List=v5;exports.Masonry=w7;exports.Mentions=YX;exports.Menu=bz;exports.Modal=Tp;exports.Pagination=pz;exports.Popconfirm=n$;exports.Popover=g9;exports.Progress=r$;exports.QRCode=Hq;exports.Radio=aM;exports.Rate=GX;exports.Result=d$;exports.Row=Sk;exports.Segmented=j9;exports.Select=zG;exports.Skeleton=Ny;exports.Slider=$X;exports.Space=bk;exports.Spin=s$;exports.Splitter=Rz;exports.Statistic=E5;exports.Steps=xz;exports.Switch=QG;exports.Table=R7;exports.Tabs=bA;exports.Tag=$z;exports.TimePicker=R4;exports.Timeline=k9;exports.Tooltip=l9;exports.Tour=Gq;exports.Transfer=ZX;exports.Tree=R5;exports.TreeSelect=tP;exports.Typography=Kv;exports.Upload=I4;exports.Watermark=p$;exports.message=Z4;exports.notification=W4;exports.theme=b$;exports.useConfig=x$;
|