sqlmesh 0.181.2.dev9__py3-none-any.whl → 0.181.2.dev10__py3-none-any.whl
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.
- sqlmesh/_version.py +2 -2
- {sqlmesh-0.181.2.dev9.dist-info → sqlmesh-0.181.2.dev10.dist-info}/METADATA +1 -1
- {sqlmesh-0.181.2.dev9.dist-info → sqlmesh-0.181.2.dev10.dist-info}/RECORD +49 -49
- web/client/dist/assets/{Audits-DRkR6sg0.js → Audits-BnT_XU4z.js} +1 -1
- web/client/dist/assets/{Banner-BXisqtMu.js → Banner-CIGf1CgX.js} +1 -1
- web/client/dist/assets/{ChevronDownIcon-D8CFPQ96.js → ChevronDownIcon-D3eSCae0.js} +1 -1
- web/client/dist/assets/{ChevronRightIcon-BpRv8ZN4.js → ChevronRightIcon-BYX0d3Wq.js} +1 -1
- web/client/dist/assets/{Content-KG4KSDDO.js → Content-C-dbt7Qf.js} +1 -1
- web/client/dist/assets/{Content-pMJLtxGr.js → Content-PeLqYFgC.js} +1 -1
- web/client/dist/assets/{Data-D-rZnh8x.js → Data-CR1hP4VP.js} +1 -1
- web/client/dist/assets/{DataCatalog-BJTDeU-_.js → DataCatalog-D3ACH3Kc.js} +1 -1
- web/client/dist/assets/{Editor-C8-1rqZ2.js → Editor-BiQM-0yy.js} +1 -1
- web/client/dist/assets/{Editor-Cpn7iBcm.js → Editor-DAPqExjL.js} +1 -1
- web/client/dist/assets/{Errors-DyDRdQyq.js → Errors-fiNNK-UR.js} +1 -1
- web/client/dist/assets/{FileExplorer-CmdsG4yG.js → FileExplorer-axtC_Ai-.js} +1 -1
- web/client/dist/assets/{Footer-D4ok48Gm.js → Footer-BK44TAno.js} +1 -1
- web/client/dist/assets/{Header-BVwdhMQQ.js → Header-BAp2F5ka.js} +1 -1
- web/client/dist/assets/{Input-CxOCLTNw.js → Input-C5uXc-nB.js} +1 -1
- web/client/dist/assets/Lineage-_5zC2lrH.js +1 -0
- web/client/dist/assets/{ListboxShow-YBO3HIHQ.js → ListboxShow-DvjSHd_L.js} +1 -1
- web/client/dist/assets/{ModelLineage-BFuK5Bgk.js → ModelLineage-Vjinxl8m.js} +1 -1
- web/client/dist/assets/{Models-Dn2xoUA7.js → Models-DdFxJdwq.js} +1 -1
- web/client/dist/assets/{Page-kOwPk8A6.js → Page-BjM3k1UE.js} +1 -1
- web/client/dist/assets/{Plan-BQe3-3RL.js → Plan-D-yXZg-l.js} +1 -1
- web/client/dist/assets/{PlusCircleIcon-CXYicjof.js → PlusCircleIcon-rlJbTzSO.js} +1 -1
- web/client/dist/assets/{ReportErrors-DaAC3YF4.js → ReportErrors-DTvhPb_i.js} +1 -1
- web/client/dist/assets/{Root-BIGZcS_U.js → Root-hF35YwMr.js} +1 -1
- web/client/dist/assets/{SearchList-Lag39srv.js → SearchList--GtSxkZn.js} +1 -1
- web/client/dist/assets/{SelectEnvironment-0MCV04NI.js → SelectEnvironment-BNlbuzcL.js} +1 -1
- web/client/dist/assets/{SourceList-CTL41Fia.js → SourceList-B0glAf8v.js} +1 -1
- web/client/dist/assets/{SourceListItem-6mIYlySR.js → SourceListItem-BUiMwOLB.js} +1 -1
- web/client/dist/assets/{SplitPane-7_khUxNG.js → SplitPane-Bec3_12u.js} +1 -1
- web/client/dist/assets/{Tests-DSsKelgd.js → Tests-egYRjgvR.js} +1 -1
- web/client/dist/assets/{Welcome-C0F3fb3h.js → Welcome-uoXIxnJO.js} +1 -1
- web/client/dist/assets/{context-B0V9EzWJ.js → context-CDuVFxib.js} +42 -34
- web/client/dist/assets/{context-pytQSsK4.js → context-DhtR-yn6.js} +1 -1
- web/client/dist/assets/{editor-CmeEFdEz.js → editor-D99craz3.js} +1 -1
- web/client/dist/assets/{file-DY5SRTK1.js → file-DIuTD7Ex.js} +1 -1
- web/client/dist/assets/{help-Bm8ph9oI.js → help-5fQwnZLr.js} +1 -1
- web/client/dist/assets/{index-BWibl-Ee.js → index-DZbqZ0F2.js} +1 -1
- web/client/dist/assets/index-Dqo42q_-.js +82 -0
- web/client/dist/assets/{plan-BUTy2uM-.js → plan-BIkqMXq0.js} +1 -1
- web/client/dist/assets/{project-CtAE3tsj.js → project-DHnuzhZ_.js} +1 -1
- web/client/dist/assets/{transition-CiMBgn_Y.js → transition-BpitCk1w.js} +1 -1
- web/client/dist/index.html +1 -1
- web/client/dist/assets/Lineage-ZXdxdqzl.js +0 -1
- web/client/dist/assets/index-C22hdM_h.js +0 -90
- {sqlmesh-0.181.2.dev9.dist-info → sqlmesh-0.181.2.dev10.dist-info}/WHEEL +0 -0
- {sqlmesh-0.181.2.dev9.dist-info → sqlmesh-0.181.2.dev10.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.181.2.dev9.dist-info → sqlmesh-0.181.2.dev10.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.181.2.dev9.dist-info → sqlmesh-0.181.2.dev10.dist-info}/top_level.txt +0 -0
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode(`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.scrollbar--horizontal::-webkit-scrollbar{height:var(--scrollbar-size)}.scrollbar--vertical::-webkit-scrollbar{width:var(--scrollbar-size)}.scrollbar::-webkit-scrollbar-track{background:transparent}.scrollbar::-webkit-scrollbar-thumb{background:var(--scrollbar-backgroud);border-radius:var(--scrollbar-radius)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-10{bottom:2.5rem}.left-0{left:0}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-10{top:2.5rem}.top-6{top:1.5rem}.top-8{top:2rem}.isolate{isolation:isolate}.\\!z-10{z-index:10!important}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\\[1000\\]{z-index:1000}.z-\\[1\\]{z-index:1}.z-\\[2\\]{z-index:2}.z-\\[3\\]{z-index:3}.z-\\[4\\]{z-index:4}.z-\\[5\\]{z-index:5}.z-\\[6\\]{z-index:6}.\\!m-0{margin:0!important}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.\\!mx-0{margin-left:0!important;margin-right:0!important}.\\!my-0{margin-top:0!important;margin-bottom:0!important}.mx-0{margin-left:0;margin-right:0}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.my-0{margin-top:0;margin-bottom:0}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.\\!ml-0\\.5{margin-left:.125rem!important}.\\!mr-1{margin-right:.25rem!important}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-6{margin-right:1.5rem}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.mt-9{margin-top:2.25rem}.mt-\\[0\\.125rem\\]{margin-top:.125rem}.mt-\\[6px\\]{margin-top:6px}.\\!block{display:block!important}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-\\[14px\\]{height:14px}.h-\\[16rem\\]{height:16rem}.h-\\[1px\\]{height:1px}.h-\\[25px\\]{height:25px}.h-\\[25rem\\]{height:25rem}.h-full{height:100%}.max-h-60{max-height:15rem}.max-h-8{max-height:2rem}.max-h-80{max-height:20rem}.max-h-\\[1rem\\]{max-height:1rem}.max-h-\\[20vh\\]{max-height:20vh}.max-h-\\[2rem\\]{max-height:2rem}.max-h-\\[30vh\\]{max-height:30vh}.max-h-\\[40vh\\]{max-height:40vh}.max-h-\\[50vh\\]{max-height:50vh}.max-h-\\[80vh\\]{max-height:80vh}.min-h-8,.min-h-\\[2rem\\]{min-height:2rem}.min-h-full{min-height:100%}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\\[20rem\\]{width:20rem}.w-\\[90vw\\]{width:90vw}.w-full{width:100%}.min-w-10{min-width:2.5rem}.min-w-16{min-width:4rem}.min-w-4{min-width:1rem}.min-w-6{min-width:1.5rem}.min-w-\\[10rem\\]{min-width:10rem}.min-w-\\[16rem\\]{min-width:16rem}.min-w-\\[1rem\\]{min-width:1rem}.min-w-\\[20rem\\]{min-width:20rem}.min-w-\\[6rem\\]{min-width:6rem}.min-w-\\[7rem\\]{min-width:7rem}.min-w-\\[8rem\\]{min-width:8rem}.max-w-4{max-width:1rem}.max-w-\\[100\\%\\]{max-width:100%}.max-w-\\[20rem\\]{max-width:20rem}.max-w-\\[40rem\\]{max-width:40rem}.max-w-\\[50rem\\]{max-width:50rem}.max-w-\\[50vw\\]{max-width:50vw}.max-w-\\[80rem\\]{max-width:80rem}.max-w-\\[90\\%\\]{max-width:90%}.max-w-full{max-width:100%}.max-w-none{max-width:none}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.border-separate{border-collapse:separate}.-translate-x-\\[100\\%\\]{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[40\\%\\]{--tw-translate-y: -40%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-7{--tw-translate-x: 1.75rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[10px\\]{--tw-translate-x: 10px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.\\!cursor-grabbing{cursor:grabbing!important}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-ellipsis,.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.\\!rounded-full{border-radius:9999px!important}.\\!rounded-lg{border-radius:.5rem!important}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[0\\.25rem\\]{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-b-md{border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-t-\\[8px\\]{border-top-left-radius:8px;border-top-right-radius:8px}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.\\!border-none{border-style:none!important}.border-none{border-style:none}.\\!border-neutral-20{border-color:var(--color-neutral-20)!important}.border-accent-500{border-color:var(--color-accent-500)}.border-brand-500{border-color:var(--color-brand-500)}.border-current{border-color:currentColor}.border-danger-500{border-color:var(--color-danger-500)}.border-divider{border-color:var(--color-divider)}.border-inherit{border-color:inherit}.border-light{border-color:var(--color-light)}.border-neutral-10{border-color:var(--color-neutral-10)}.border-neutral-100{border-color:var(--color-neutral-100)}.border-neutral-200{border-color:var(--color-neutral-200)}.border-neutral-300{border-color:var(--color-neutral-300)}.border-neutral-400{border-color:var(--color-neutral-400)}.border-neutral-500{border-color:var(--color-neutral-500)}.border-neutral-600{border-color:var(--color-neutral-600)}.border-primary-400{border-color:var(--color-primary-400)}.border-primary-500{border-color:var(--color-primary-500)}.border-secondary-100{border-color:var(--color-secondary-100)}.border-secondary-20{border-color:var(--color-secondary-20)}.border-secondary-30{border-color:var(--color-secondary-30)}.border-secondary-500{border-color:var(--color-secondary-500)}.border-success-500{border-color:var(--color-success-500)}.border-transparent{border-color:transparent}.border-warning-500{border-color:var(--color-warning-500)}.border-r-theme-darker{border-right-color:var(--color-theme-darker)}.\\!bg-danger-5{background-color:var(--color-danger-5)!important}.\\!bg-success-10{background-color:var(--color-success-10)!important}.\\!bg-theme{background-color:var(--color-theme)!important}.bg-accent-200{background-color:var(--color-accent-200)}.bg-accent-500{background-color:var(--color-accent-500)}.bg-brand-10{background-color:var(--color-brand-10)}.bg-brand-500{background-color:var(--color-brand-500)}.bg-current{background-color:currentColor}.bg-danger-10{background-color:var(--color-danger-10)}.bg-danger-5{background-color:var(--color-danger-5)}.bg-danger-500{background-color:var(--color-danger-500)}.bg-dark-lighter{background-color:var(--color-dark-lighter)}.bg-light{background-color:var(--color-light)}.bg-neutral-10{background-color:var(--color-neutral-10)}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-neutral-30{background-color:var(--color-neutral-30)}.bg-neutral-400{background-color:var(--color-neutral-400)}.bg-neutral-5{background-color:var(--color-neutral-5)}.bg-neutral-500{background-color:var(--color-neutral-500)}.bg-neutral-600{background-color:var(--color-neutral-600)}.bg-overlay{background-color:var(--color-overlay)}.bg-primary-10{background-color:var(--color-primary-10)}.bg-primary-5{background-color:var(--color-primary-5)}.bg-primary-500{background-color:var(--color-primary-500)}.bg-primary-900{background-color:var(--color-primary-900)}.bg-secondary-10{background-color:var(--color-secondary-10)}.bg-secondary-20{background-color:var(--color-secondary-20)}.bg-secondary-5{background-color:var(--color-secondary-5)}.bg-secondary-500{background-color:var(--color-secondary-500)}.bg-success-10{background-color:var(--color-success-10)}.bg-success-5{background-color:var(--color-success-5)}.bg-success-500{background-color:var(--color-success-500)}.bg-theme{background-color:var(--color-theme)}.bg-theme-lighter{background-color:var(--color-theme-lighter)}.bg-transparent{background-color:transparent}.bg-warning-10{background-color:var(--color-warning-10)}.bg-warning-5{background-color:var(--color-warning-5)}.bg-warning-500{background-color:var(--color-warning-500)}.bg-none{background-image:none}.fill-danger-500{fill:var(--color-danger-500)}.fill-neutral-500{fill:var(--color-neutral-500)}.fill-primary-500{fill:var(--color-primary-500)}.fill-prose{fill:var(--color-text)}.fill-secondary-500{fill:var(--color-secondary-500)}.fill-success-500{fill:var(--color-success-500)}.fill-theme-lighter{fill:var(--color-theme-lighter)}.fill-warning-500{fill:var(--color-warning-500)}.stroke-neutral-200{stroke:var(--color-neutral-200)}.\\!p-0{padding:0!important}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.\\!px-0{padding-left:0!important;padding-right:0!important}.\\!px-1{padding-left:.25rem!important;padding-right:.25rem!important}.\\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.\\!py-0\\.5{padding-top:.125rem!important;padding-bottom:.125rem!important}.\\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-\\[0\\.25rem\\]{padding-left:.25rem;padding-right:.25rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\\[0\\.125rem\\]{padding-top:.125rem;padding-bottom:.125rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pl-0\\.5{padding-left:.125rem}.pl-1{padding-left:.25rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pl-\\[25px\\]{padding-left:25px}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-\\[35px\\]{padding-right:35px}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-\\[3px\\]{padding-top:3px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-6xl{font-size:3.75rem;line-height:1}.text-\\[0\\.5rem\\]{font-size:.5rem}.text-\\[0\\.65rem\\]{font-size:.65rem}.text-\\[0\\.6rem\\]{font-size:.6rem}.text-\\[10px\\]{font-size:10px}.text-\\[4rem\\]{font-size:4rem}.text-\\[9px\\]{font-size:9px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.slashed-zero{--tw-slashed-zero: slashed-zero;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.\\!text-danger-500{color:var(--color-danger-500)!important}.\\!text-success-500{color:var(--color-success-500)!important}.text-accent-500{color:var(--color-accent-500)}.text-brand-500{color:var(--color-brand-500)}.text-danger-100{color:var(--color-danger-100)}.text-danger-500{color:var(--color-danger-500)}.text-danger-600{color:var(--color-danger-600)}.text-danger-700{color:var(--color-danger-700)}.text-inherit{color:inherit}.text-light{color:var(--color-light)}.text-neutral-100{color:var(--color-neutral-100)}.text-neutral-300{color:var(--color-neutral-300)}.text-neutral-400{color:var(--color-neutral-400)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-70{color:var(--color-neutral-70)}.text-neutral-700{color:var(--color-neutral-700)}.text-neutral-800{color:var(--color-neutral-800)}.text-neutral-900{color:var(--color-neutral-900)}.text-primary-100{color:var(--color-primary-100)}.text-primary-300{color:var(--color-primary-300)}.text-primary-500{color:var(--color-primary-500)}.text-primary-600{color:var(--color-primary-600)}.text-primary-900{color:var(--color-primary-900)}.text-prose{color:var(--color-text)}.text-secondary-10{color:var(--color-secondary-10)}.text-secondary-100{color:var(--color-secondary-100)}.text-secondary-400{color:var(--color-secondary-400)}.text-secondary-500{color:var(--color-secondary-500)}.text-secondary-600{color:var(--color-secondary-600)}.text-success-100{color:var(--color-success-100)}.text-success-500{color:var(--color-success-500)}.text-success-600{color:var(--color-success-600)}.text-theme-darker{color:var(--color-theme-darker)}.text-warning-100{color:var(--color-warning-100)}.text-warning-500{color:var(--color-warning-500)}.text-warning-600{color:var(--color-warning-600)}.text-warning-700{color:var(--color-warning-700)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-90{opacity:.9}.\\!shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.\\!outline-primary-500{outline-color:var(--color-primary-500)!important}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-8{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(8px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-accent-50{--tw-ring-color: var(--color-accent-50)}.ring-brand-50{--tw-ring-color: var(--color-brand-50)}.ring-neutral-50{--tw-ring-color: var(--color-neutral-50)}.ring-primary-10{--tw-ring-color: var(--color-primary-10)}.ring-secondary-300{--tw-ring-color: var(--color-secondary-300)}.ring-opacity-5{--tw-ring-opacity: .05}.ring-opacity-60{--tw-ring-opacity: .6}.ring-offset-2{--tw-ring-offset-width: 2px}.ring-offset-secondary-100{--tw-ring-offset-color: var(--color-secondary-100)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-lg{--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\\@container{container-type:inline-size}.hover\\:scrollbar:hover::-webkit-scrollbar-track{background:transparent}.hover\\:scrollbar:hover::-webkit-scrollbar-thumb{background:var(--scrollbar-backgroud);border-radius:var(--scrollbar-radius)}.placeholder\\:text-neutral-300::-moz-placeholder{color:var(--color-neutral-300)}.placeholder\\:text-neutral-300::placeholder{color:var(--color-neutral-300)}.first\\:border-0:first-child{border-width:0px}.last\\:m-0:last-child{margin:0}.last\\:mr-0:last-child{margin-right:0}.last\\:border-r-0:last-child{border-right-width:0px}.odd\\:bg-neutral-10:nth-child(odd){background-color:var(--color-neutral-10)}.even\\:bg-neutral-5:nth-child(2n){background-color:var(--color-neutral-5)}.hover\\:bg-accent-500:hover{background-color:var(--color-accent-500)}.hover\\:bg-danger-5:hover{background-color:var(--color-danger-5)}.hover\\:bg-danger-500:hover{background-color:var(--color-danger-500)}.hover\\:bg-danger-600:hover{background-color:var(--color-danger-600)}.hover\\:bg-neutral-20:hover{background-color:var(--color-neutral-20)}.hover\\:bg-neutral-300:hover{background-color:var(--color-neutral-300)}.hover\\:bg-neutral-5:hover{background-color:var(--color-neutral-5)}.hover\\:bg-primary-400:hover{background-color:var(--color-primary-400)}.hover\\:bg-primary-5:hover{background-color:var(--color-primary-5)}.hover\\:bg-secondary-600:hover{background-color:var(--color-secondary-600)}.hover\\:bg-success-5:hover{background-color:var(--color-success-5)}.hover\\:bg-success-600:hover{background-color:var(--color-success-600)}.hover\\:bg-theme-darker:hover{background-color:var(--color-theme-darker)}.hover\\:bg-transparent:hover{background-color:transparent}.hover\\:bg-warning-5:hover{background-color:var(--color-warning-5)}.hover\\:bg-warning-600:hover{background-color:var(--color-warning-600)}.hover\\:text-light:hover{color:var(--color-light)}.hover\\:text-neutral-900:hover{color:var(--color-neutral-900)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:border-secondary-500:focus{border-color:var(--color-secondary-500)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:border-accent-500:focus-visible{border-color:var(--color-accent-500)}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-light:focus-visible{--tw-ring-color: var(--color-light)}.focus-visible\\:ring-opacity-75:focus-visible{--tw-ring-opacity: .75}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-brand-300:focus-visible{--tw-ring-offset-color: var(--color-brand-300)}.active\\:bg-danger-400:active{background-color:var(--color-danger-400)}.active\\:bg-neutral-10:active{background-color:var(--color-neutral-10)}.active\\:bg-neutral-200:active{background-color:var(--color-neutral-200)}.active\\:bg-neutral-300:active{background-color:var(--color-neutral-300)}.active\\:bg-primary-400:active{background-color:var(--color-primary-400)}.active\\:bg-secondary-400:active{background-color:var(--color-secondary-400)}.active\\:bg-success-400:active{background-color:var(--color-success-400)}.active\\:bg-warning-400:active{background-color:var(--color-warning-400)}.group:hover .group-hover\\:ml-2{margin-left:.5rem}.group:hover .group-hover\\:mr-0{margin-right:0}.group:hover .group-hover\\:inline-block{display:inline-block}.group:hover .group-hover\\:hidden{display:none}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[highlighted\\]\\:bg-brand-500[data-highlighted]{background-color:var(--color-brand-500)}.data-\\[highlighted\\]\\:text-brand-100[data-highlighted]{color:var(--color-brand-100)}.data-\\[highlighted\\]\\:outline-none[data-highlighted]{outline:2px solid transparent;outline-offset:2px}@container (min-width: 24rem){.\\@sm\\:min-w-\\[12rem\\]{min-width:12rem}}@container (min-width: 32rem){.\\@lg\\:block{display:block}.\\@lg\\:contents{display:contents}.\\@lg\\:hidden{display:none}}@container (min-width: 40rem){.\\@\\[40rem\\]\\:static{position:static}.\\@\\[40rem\\]\\:flex{display:flex}.\\@\\[40rem\\]\\:hidden{display:none}.\\@\\[40rem\\]\\:items-end{align-items:flex-end}.\\@\\[40rem\\]\\:justify-end{justify-content:flex-end}.\\@\\[40rem\\]\\:pr-0{padding-right:0}}.dark\\:border-accent-300:is([mode=dark] *){border-color:var(--color-accent-300)}.dark\\:border-dark:is([mode=dark] *){border-color:var(--color-dark)}.dark\\:border-dark-lighter:is([mode=dark] *){border-color:var(--color-dark-lighter)}.dark\\:border-neutral-300:is([mode=dark] *){border-color:var(--color-neutral-300)}.dark\\:border-neutral-600:is([mode=dark] *){border-color:var(--color-neutral-600)}.dark\\:border-neutral-700:is([mode=dark] *){border-color:var(--color-neutral-700)}.dark\\:border-neutral-800:is([mode=dark] *){border-color:var(--color-neutral-800)}.dark\\:border-primary-500:is([mode=dark] *){border-color:var(--color-primary-500)}.dark\\:border-r-theme-lighter:is([mode=dark] *){border-right-color:var(--color-theme-lighter)}.dark\\:bg-accent-300:is([mode=dark] *){background-color:var(--color-accent-300)}.dark\\:bg-danger-20:is([mode=dark] *){background-color:var(--color-danger-20)}.dark\\:bg-danger-500:is([mode=dark] *){background-color:var(--color-danger-500)}.dark\\:bg-dark:is([mode=dark] *){background-color:var(--color-dark)}.dark\\:bg-dark-lighter:is([mode=dark] *){background-color:var(--color-dark-lighter)}.dark\\:bg-neutral-20:is([mode=dark] *){background-color:var(--color-neutral-20)}.dark\\:bg-neutral-300:is([mode=dark] *){background-color:var(--color-neutral-300)}.dark\\:bg-neutral-400:is([mode=dark] *){background-color:var(--color-neutral-400)}.dark\\:bg-primary-10:is([mode=dark] *){background-color:var(--color-primary-10)}.dark\\:bg-primary-20:is([mode=dark] *){background-color:var(--color-primary-20)}.dark\\:bg-primary-300:is([mode=dark] *){background-color:var(--color-primary-300)}.dark\\:bg-primary-500:is([mode=dark] *){background-color:var(--color-primary-500)}.dark\\:bg-theme-lighter:is([mode=dark] *){background-color:var(--color-theme-lighter)}.dark\\:bg-warning-400:is([mode=dark] *){background-color:var(--color-warning-400)}.dark\\:stroke-neutral-800:is([mode=dark] *){stroke:var(--color-neutral-800)}.dark\\:text-accent-300:is([mode=dark] *){color:var(--color-accent-300)}.dark\\:text-danger-100:is([mode=dark] *){color:var(--color-danger-100)}.dark\\:text-danger-300:is([mode=dark] *){color:var(--color-danger-300)}.dark\\:text-danger-400:is([mode=dark] *){color:var(--color-danger-400)}.dark\\:text-dark-lighter:is([mode=dark] *){color:var(--color-dark-lighter)}.dark\\:text-light:is([mode=dark] *){color:var(--color-light)}.dark\\:text-neutral-100:is([mode=dark] *){color:var(--color-neutral-100)}.dark\\:text-neutral-200:is([mode=dark] *){color:var(--color-neutral-200)}.dark\\:text-neutral-300:is([mode=dark] *){color:var(--color-neutral-300)}.dark\\:text-neutral-400:is([mode=dark] *){color:var(--color-neutral-400)}.dark\\:text-neutral-500:is([mode=dark] *){color:var(--color-neutral-500)}.dark\\:text-neutral-600:is([mode=dark] *){color:var(--color-neutral-600)}.dark\\:text-neutral-800:is([mode=dark] *){color:var(--color-neutral-800)}.dark\\:text-primary-10:is([mode=dark] *){color:var(--color-primary-10)}.dark\\:text-primary-100:is([mode=dark] *){color:var(--color-primary-100)}.dark\\:text-primary-300:is([mode=dark] *){color:var(--color-primary-300)}.dark\\:text-primary-400:is([mode=dark] *){color:var(--color-primary-400)}.dark\\:text-primary-500:is([mode=dark] *){color:var(--color-primary-500)}.dark\\:text-primary-70:is([mode=dark] *){color:var(--color-primary-70)}.dark\\:text-secondary-300:is([mode=dark] *){color:var(--color-secondary-300)}.dark\\:text-secondary-400:is([mode=dark] *){color:var(--color-secondary-400)}.dark\\:text-success-300:is([mode=dark] *){color:var(--color-success-300)}.dark\\:text-success-400:is([mode=dark] *){color:var(--color-success-400)}.dark\\:text-success-500:is([mode=dark] *){color:var(--color-success-500)}.dark\\:text-theme-lighter:is([mode=dark] *){color:var(--color-theme-lighter)}.dark\\:text-warning-300:is([mode=dark] *){color:var(--color-warning-300)}.dark\\:text-warning-400:is([mode=dark] *){color:var(--color-warning-400)}.dark\\:text-warning-500:is([mode=dark] *){color:var(--color-warning-500)}.dark\\:text-warning-800:is([mode=dark] *){color:var(--color-warning-800)}.dark\\:ring-primary-50:is([mode=dark] *){--tw-ring-color: var(--color-primary-50)}.dark\\:placeholder\\:text-neutral-700:is([mode=dark] *)::-moz-placeholder{color:var(--color-neutral-700)}.dark\\:placeholder\\:text-neutral-700:is([mode=dark] *)::placeholder{color:var(--color-neutral-700)}.dark\\:hover\\:bg-neutral-10:hover:is([mode=dark] *){background-color:var(--color-neutral-10)}.dark\\:hover\\:bg-theme-lighter:hover:is([mode=dark] *){background-color:var(--color-theme-lighter)}.dark\\:hover\\:text-neutral-100:hover:is([mode=dark] *){color:var(--color-neutral-100)}@media (min-width: 640px){.sm\\:not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.sm\\:mr-1{margin-right:.25rem}.sm\\:inline{display:inline}.sm\\:w-auto{width:auto}.sm\\:items-baseline{align-items:baseline}.sm\\:justify-between{justify-content:space-between}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\\:ml-2{margin-left:.5rem}.md\\:mr-2{margin-right:.5rem}.md\\:w-\\[50\\%\\]{width:50%}.md\\:flex-nowrap{flex-wrap:nowrap}.md\\:text-\\[6rem\\]{font-size:6rem}}@media (min-width: 1024px){.lg\\:text-\\[9rem\\]{font-size:9rem}}
|
|
2
|
-
.gutter{background-color:var(--color-brand);background-repeat:no-repeat;background-position:50%;z-index:1}.gutter:hover{background-color:var(--color-brand)!important;outline:1px solid var(--color-brand)}.gutter.gutter-vertical{cursor:row-resize;background-color:var(--color-divider)}.gutter.gutter-horizontal{cursor:col-resize;background-color:var(--color-divider)}.split{box-sizing:border-box;overflow-y:auto;overflow-x:hidden}
|
|
3
|
-
.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:grab}.react-flow__node.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;background-color:#333}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{border-width:1px;border-style:solid;border-color:#bbb}.react-flow__node-default.selected,.react-flow__node-default:focus,.react-flow__node-default:focus-visible,.react-flow__node-input.selected,.react-flow__node-input:focus,.react-flow__node-input:focus-visible,.react-flow__node-output.selected,.react-flow__node-output:focus,.react-flow__node-output:focus-visible,.react-flow__node-group.selected,.react-flow__node-group:focus,.react-flow__node-group:focus-visible{outline:none;border:1px solid #555}.react-flow__nodesselection-rect,.react-flow__selection{background:#9696b41a;border:1px dotted rgba(155,155,155,.8)}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__node{z-index:10!important}.react-flow__handle{background-color:currentColor}.react-flow__node.react-flow__node-model:hover,.react-flow__node.react-flow__node-model:active{z-index:20!important}react-flow__attribution{background:transparent}.lineage__column-source b{font-weight:900;color:var(--color-primary)}.react-flow__edge{pointer-events:none!important;z-index:-1!important}.react-flow__background path{stroke:inherit}.ͼ1.cm-focused{outline:1px dotted #212121}.ͼ1{position:relative!important;box-sizing:border-box;display:flex!important;flex-direction:column}.ͼ1 .cm-scroller{display:flex!important;align-items:flex-start!important;font-family:monospace;line-height:1.4;height:100%;overflow-x:auto;position:relative;z-index:0;overflow-anchor:none}.ͼ1 .cm-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only}.ͼ1 .cm-content{margin:0;flex-grow:2;flex-shrink:0;display:block;white-space:pre;word-wrap:normal;box-sizing:border-box;min-height:100%;padding:4px 0;outline:none}.ͼ1 .cm-lineWrapping{white-space:pre-wrap;white-space:break-spaces;word-break:break-word;overflow-wrap:anywhere;flex-shrink:1}.ͼ2 .cm-content{caret-color:#000}.ͼ3 .cm-content{caret-color:#fff}.ͼ1 .cm-line{display:block;padding:0 2px 0 6px}.ͼ1 .cm-layer>*{position:absolute}.ͼ1 .cm-layer{position:absolute;left:0;top:0;contain:size style}.ͼ2 .cm-selectionBackground{background:#d9d9d9}.ͼ3 .cm-selectionBackground{background:#222}.ͼ2.cm-focused>.cm-scroller>.cm-selectionLayer .cm-selectionBackground{background:#d7d4f0}.ͼ3.cm-focused>.cm-scroller>.cm-selectionLayer .cm-selectionBackground{background:#233}.ͼ1 .cm-cursorLayer{pointer-events:none}.ͼ1.cm-focused>.cm-scroller>.cm-cursorLayer{animation:steps(1) cm-blink 1.2s infinite}@keyframes cm-blink{50%{opacity:0}}@keyframes cm-blink2{50%{opacity:0}}.ͼ1 .cm-cursor,.ͼ1 .cm-dropCursor{border-left:1.2px solid black;margin-left:-.6px;pointer-events:none}.ͼ1 .cm-cursor{display:none}.ͼ3 .cm-cursor{border-left-color:#ddd}.ͼ1 .cm-dropCursor{position:absolute}.ͼ1.cm-focused>.cm-scroller>.cm-cursorLayer .cm-cursor{display:block}.ͼ1 .cm-iso{unicode-bidi:isolate}.ͼ1 .cm-announced{position:fixed;top:-10000px}@media print{.ͼ1 .cm-announced{display:none}}.ͼ2 .cm-activeLine{background-color:#cef4}.ͼ3 .cm-activeLine{background-color:#9ef3}.ͼ2 .cm-specialChar{color:red}.ͼ3 .cm-specialChar{color:#f78}.ͼ1 .cm-gutters{flex-shrink:0;display:flex;height:100%;box-sizing:border-box;inset-inline-start:0;z-index:200}.ͼ2 .cm-gutters{background-color:#f5f5f5;color:#6c6c6c;border-right:1px solid #ddd}.ͼ3 .cm-gutters{background-color:#333338;color:#ccc}.ͼ1 .cm-gutter{display:flex!important;flex-direction:column;flex-shrink:0;box-sizing:border-box;min-height:100%;overflow:hidden}.ͼ1 .cm-gutterElement{box-sizing:border-box}.ͼ1 .cm-lineNumbers .cm-gutterElement{padding:0 3px 0 5px;min-width:20px;text-align:right;white-space:nowrap}.ͼ2 .cm-activeLineGutter{background-color:#e2f2ff}.ͼ3 .cm-activeLineGutter{background-color:#222227}.ͼ1 .cm-panels{box-sizing:border-box;position:sticky;left:0;right:0;z-index:300}.ͼ2 .cm-panels{background-color:#f5f5f5;color:#000}.ͼ2 .cm-panels-top{border-bottom:1px solid #ddd}.ͼ2 .cm-panels-bottom{border-top:1px solid #ddd}.ͼ3 .cm-panels{background-color:#333338;color:#fff}.ͼ1 .cm-tab{display:inline-block;overflow:hidden;vertical-align:bottom}.ͼ1 .cm-widgetBuffer{vertical-align:text-top;height:1em;width:0;display:inline}.ͼ1 .cm-placeholder{color:#888;display:inline-block;vertical-align:top}.ͼ1 .cm-highlightSpace{background-image:radial-gradient(circle at 50% 55%,#aaa 20%,transparent 5%);background-position:center}.ͼ1 .cm-highlightTab{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>');background-size:auto 100%;background-position:right 90%;background-repeat:no-repeat}.ͼ1 .cm-trailingSpace{background-color:#f325}.ͼ1 .cm-button{vertical-align:middle;color:inherit;font-size:70%;padding:.2em 1em;border-radius:1px}.ͼ2 .cm-button:active{background-image:linear-gradient(#b4b4b4,#d0d3d6)}.ͼ2 .cm-button{background-image:linear-gradient(#eff1f5,#d9d9df);border:1px solid #888}.ͼ3 .cm-button:active{background-image:linear-gradient(#111,#333)}.ͼ3 .cm-button{background-image:linear-gradient(#393939,#111);border:1px solid #888}.ͼ1 .cm-textfield{vertical-align:middle;color:inherit;font-size:70%;border:1px solid silver;padding:.2em .5em}.ͼ2 .cm-textfield{background-color:#fff}.ͼ3 .cm-textfield{border:1px solid #555;background-color:inherit}.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul>li,.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul>completion-section{padding:1px 3px;line-height:1.2}.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul>li{overflow-x:hidden;text-overflow:ellipsis;cursor:pointer}.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul>completion-section{display:list-item;border-bottom:1px solid silver;padding-left:.5em;opacity:.7}.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul{font-family:monospace;white-space:nowrap;overflow:hidden auto;max-width:700px;max-width:min(700px,95vw);min-width:250px;max-height:10em;height:100%;list-style:none;margin:0;padding:0}.ͼ2 .cm-tooltip-autocomplete ul li[aria-selected]{background:#17c;color:#fff}.ͼ2 .cm-tooltip-autocomplete-disabled ul li[aria-selected]{background:#777}.ͼ3 .cm-tooltip-autocomplete ul li[aria-selected]{background:#347;color:#fff}.ͼ3 .cm-tooltip-autocomplete-disabled ul li[aria-selected]{background:#444}.ͼ1 .cm-completionListIncompleteTop:before,.ͼ1 .cm-completionListIncompleteBottom:after{content:"···";opacity:.5;display:block;text-align:center}.ͼ1 .cm-tooltip.cm-completionInfo{position:absolute;padding:3px 9px;width:-moz-max-content;width:max-content;max-width:400px;box-sizing:border-box;white-space:pre-line}.ͼ1 .cm-completionInfo.cm-completionInfo-left{right:100%}.ͼ1 .cm-completionInfo.cm-completionInfo-right{left:100%}.ͼ1 .cm-completionInfo.cm-completionInfo-left-narrow{right:30px}.ͼ1 .cm-completionInfo.cm-completionInfo-right-narrow{left:30px}.ͼ2 .cm-snippetField{background-color:#0002}.ͼ3 .cm-snippetField{background-color:#fff2}.ͼ1 .cm-snippetFieldPosition{vertical-align:text-top;width:0;height:1.15em;display:inline-block;margin:0 -.7px -.7em;border-left:1.4px dotted #888}.ͼ1 .cm-completionMatchedText{text-decoration:underline}.ͼ1 .cm-completionDetail{margin-left:.5em;font-style:italic}.ͼ1 .cm-completionIcon{font-size:90%;width:.8em;display:inline-block;text-align:center;padding-right:.6em;opacity:.6;box-sizing:content-box}.ͼ1 .cm-completionIcon-function:after,.ͼ1 .cm-completionIcon-method:after{content:"ƒ"}.ͼ1 .cm-completionIcon-class:after{content:"○"}.ͼ1 .cm-completionIcon-interface:after{content:"◌"}.ͼ1 .cm-completionIcon-variable:after{content:"𝑥"}.ͼ1 .cm-completionIcon-constant:after{content:"𝐶"}.ͼ1 .cm-completionIcon-type:after{content:"𝑡"}.ͼ1 .cm-completionIcon-enum:after{content:"∪"}.ͼ1 .cm-completionIcon-property:after{content:"□"}.ͼ1 .cm-completionIcon-keyword:after{content:"🔑︎"}.ͼ1 .cm-completionIcon-namespace:after{content:"▢"}.ͼ1 .cm-completionIcon-text:after{content:"abc";font-size:50%;vertical-align:middle}.ͼ1 .cm-tooltip{z-index:500;box-sizing:border-box}.ͼ2 .cm-tooltip{border:1px solid #bbb;background-color:#f5f5f5}.ͼ2 .cm-tooltip-section:not(:first-child){border-top:1px solid #bbb}.ͼ3 .cm-tooltip{background-color:#333338;color:#fff}.ͼ1 .cm-tooltip-arrow:before,.ͼ1 .cm-tooltip-arrow:after{content:"";position:absolute;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent}.ͼ1 .cm-tooltip-above .cm-tooltip-arrow:before{border-top:7px solid #bbb}.ͼ1 .cm-tooltip-above .cm-tooltip-arrow:after{border-top:7px solid #f5f5f5;bottom:1px}.ͼ1 .cm-tooltip-above .cm-tooltip-arrow{bottom:-7px}.ͼ1 .cm-tooltip-below .cm-tooltip-arrow:before{border-bottom:7px solid #bbb}.ͼ1 .cm-tooltip-below .cm-tooltip-arrow:after{border-bottom:7px solid #f5f5f5;top:1px}.ͼ1 .cm-tooltip-below .cm-tooltip-arrow{top:-7px}.ͼ1 .cm-tooltip-arrow{height:7px;width:14px;position:absolute;z-index:-1;overflow:hidden}.ͼ3 .cm-tooltip .cm-tooltip-arrow:before{border-top-color:#333338;border-bottom-color:#333338}.ͼ3 .cm-tooltip .cm-tooltip-arrow:after{border-top-color:transparent;border-bottom-color:transparent}.ͼ1 .cm-selectionMatch{background-color:#99ff7780}.ͼ1 .cm-searchMatch .cm-selectionMatch{background-color:transparent}.ͼ1.cm-focused .cm-matchingBracket{background-color:#328c8252}.ͼ1.cm-focused .cm-nonmatchingBracket{background-color:#b554}.ͼ1 .cm-foldPlaceholder{background-color:#eee;border:1px solid #ddd;color:#888;border-radius:.2em;margin:0 1px;padding:0 1px;cursor:pointer}.ͼ1 .cm-foldGutter span{padding:0 1px;cursor:pointer}.ͼ63{color:#8e908c}.ͼ64{color:#c82829}.ͼ65{color:#f5871f}.ͼ66{color:#c99e00}.ͼ67{color:#718c00}.ͼ68{color:#3e999f}.ͼ69{color:#4271ae}.ͼ6a{color:#8959a8}.ͼ6b{color:#4d4d4c}.ͼ62{background-color:#fff;color:#4d4d4c}.ͼ62 .cm-content{caret-color:#aeafad}.ͼ62 .cm-cursor,.ͼ62 .cm-dropCursor{border-left-color:#aeafad}.ͼ62 .cm-content ::-moz-selection{background-color:#d6d6d6}.ͼ62.cm-focused .cm-selectionBackgroundm .cm-selectionBackground,.ͼ62 .cm-content ::selection{background-color:#d6d6d6}.ͼ62 .cm-activeLine{background-color:#efefef}.ͼ62 .cm-gutters{background-color:#fff;color:#4d4d4c80}.ͼ62 .cm-activeLineGutter{background-color:#efefef}.ͼ15{background-color:#fff}.ͼ5{color:#404740}.ͼ6{text-decoration:underline}.ͼ7{text-decoration:underline;font-weight:700}.ͼ8{font-style:italic}.ͼ9{font-weight:700}.ͼa{text-decoration:line-through}.ͼb{color:#708}.ͼc{color:#219}.ͼd{color:#164}.ͼe{color:#a11}.ͼf{color:#e40}.ͼg{color:#00f}.ͼh{color:#30a}.ͼi{color:#085}.ͼj{color:#167}.ͼk{color:#256}.ͼl{color:#00c}.ͼm{color:#940}.ͼn{color:red}.ͼ7b{height:100%;width:100%}.ͼ7b .cm-scroller{height:100%!important}.ͼ79{height:100%;width:100%}.ͼ79 .cm-scroller{height:100%!important}.ͼ77{height:100%;width:100%}.ͼ77 .cm-scroller{height:100%!important}.ͼ75{height:100%;width:100%}.ͼ75 .cm-scroller{height:100%!important}.ͼ73{height:100%;width:100%}.ͼ73 .cm-scroller{height:100%!important}.ͼ71{height:100%;width:100%}.ͼ71 .cm-scroller{height:100%!important}.ͼ4 .cm-line ::-moz-selection,.ͼ4 .cm-line::-moz-selection{background-color:transparent!important}.ͼ4 .cm-line ::selection,.ͼ4 .cm-line::selection{background-color:transparent!important}.ͼ4 .cm-line{caret-color:transparent!important}.ͼ4 .cm-content :focus::-moz-selection,.ͼ4 .cm-content :focus ::-moz-selection{background-color:Highlight!important}.ͼ4 .cm-content :focus::selection,.ͼ4 .cm-content :focus ::selection{background-color:Highlight!important}.ͼ4 .cm-content :focus{caret-color:initial!important}.ͼ4 .cm-content{caret-color:transparent!important}.cm-editor,.cm-editor .cm-content{background-color:var(--color-editor);color:var(--color-editor-text);font-weight:400;font-size:.85rem;width:100%}.cm-editor .cm-gutters{background-color:var(--color-editor);border:none;padding-left:.25rem;padding-right:.5rem}.cm-editor .cm-activeLineGutter,.cm-editor .cm-activeLine{color:var(--color-editor-active-line-text)}.cm-editor .cm-line::-moz-selection,.cm-editor .cm-line>*::-moz-selection{background-color:var(--color-brand-100)!important;color:var(--color-brand-700)!important}.cm-editor .cm-line::selection,.cm-editor .cm-line>*::selection{background-color:var(--color-brand-100)!important;color:var(--color-brand-700)!important}.cm-editor .cm-tooltip.cm-tooltip-autocomplete{margin-top:.25rem}.cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul{border-radius:.35rem;padding:.25rem;color:var(--color-text)}.cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul>li{padding:.25rem .5rem;cursor:pointer;border-radius:.3rem;border:1px solid transparent;font-weight:400;display:flex;align-items:center}.cm-editor .cm-tooltip-autocomplete>ul>li[aria-selected=true]{color:var(--color-text)}.cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul>li .cm-completionMatchedText{opacity:1;font-weight:700;text-decoration:none}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column,.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model{margin-right:1.5rem}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon:before{display:inline-block;padding:.125rem .25rem;border-radius:.25rem}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon{display:none}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column,.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model{display:block;opacity:1}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column:before{content:"col";font-weight:700}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model:before{content:"mdl";font-weight:700}.cm-editor .cm-scroller{font-family:inherit}.cm-editor .cm-scroller::-webkit-scrollbar,.cm-editor .cm-tooltip.cm-tooltip-autocomplete ul::-webkit-scrollbar{height:var(--scrollbar-size);width:var(--scrollbar-size)}.cm-editor .cm-scroller::-webkit-scrollbar-track,.cm-editor .cm-tooltip.cm-tooltip-autocomplete ul::-webkit-scrollbar-track{background:transparent}.cm-editor .cm-scroller::-webkit-scrollbar-thumb,.cm-editor .cm-tooltip.cm-tooltip-autocomplete ul::-webkit-scrollbar-thumb{background:var(--color-neutral-40);border-radius:var(--scrollbar-radius)}.cm-editor .cm-tooltip{border:none!important;outline:none!important;background:var(--color-theme)!important}.sqlmesh-expression{background:var(--color-secondary-10);box-shadow:inset 0 -1px 0 0 var(--color-secondary-500),inset 0 1px 0 0 var(--color-secondary-500)}.sqlmesh-model,.sqlmesh-model>span{display:inline-block;color:var(--color-primary-500);box-shadow:inset 0 -2px 0 0 transparent;font-weight:700}.sqlmesh-model.--is-action-mode,.sqlmesh-model.--is-action-mode>span{cursor:pointer;box-shadow:inset 0 -2px 0 0 var(--color-primary-300)}.sqlmesh-model.--is-action-mode:hover{opacity:.8}.sqlmesh-model.--is-active-model,.sqlmesh-model.--is-active-model:hover,.sqlmesh-model.--is-active-model>span,.sqlmesh-model.--is-active-model:hover>span{box-shadow:none;cursor:default;opacity:1}.sqlmesh-model__column.--is-original,.sqlmesh-model__column.--is-original>span,.sqlmesh-model__column.--is-alias,.sqlmesh-model__column.--is-alias>span{display:inline-block;color:var(--color-accent-300);font-weight:700}.sqlmesh-model__column.--is-active-model.--is-alias,.sqlmesh-model__column.--is-active-model.--is-alias>span{display:inline-block;color:var(--color-brand-300);font-weight:700;box-shadow:inset 0 -2px 0 0 transparent}.sqlmesh-model__column.--is-active-model.--is-alias.--is-action-mode,.sqlmesh-model__column.--is-active-model.--is-alias.--is-action-mode>span{cursor:pointer;box-shadow:inset 0 -2px 0 0 var(--color-brand-300)}.sqlmesh-model__column.--is-action-mode:hover{opacity:.8}[mode=dark] .cm-editor .cm-activeLineGutter,[mode=dark] .cm-editor .cm-activeLine{background-color:var(--color-neutral-30)}[mode=dark] .cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model:before{color:var(--color-secondary-300);background:var(--color-secondary-20)}[mode=dark] .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul>li .cm-completionMatchedText{color:var(--color-accent-200);background:var(--color-accent-50)}[mode=dark] .cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column:before{color:var(--color-brand-500);background:var(--color-brand-10)}[mode=dark] .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul{border:1px solid var(--color-neutral-50)!important;box-shadow:0 2px 3px 0 var(--color-neutral-20)}[mode=dark] .cm-editor .cm-tooltip-autocomplete>ul>li[aria-selected=true]{background:var(--color-neutral-30);border:1px solid var(--color-neutral-50)!important}[mode=light] .cm-editor .cm-activeLineGutter,[mode=light] .cm-editor .cm-activeLine{background-color:var(--color-neutral-10)}[mode=light] .cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model:before{color:var(--color-secondary-500);background:var(--color-secondary-10)}[mode=light] .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul>li .cm-completionMatchedText{color:var(--color-accent-500);background:var(--color-accent-5)}[mode=light] .cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column:before{color:var(--color-brand-500);background:var(--color-brand-20)}[mode=light] .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul{border:1px solid var(--color-neutral-20)!important;box-shadow:0 2px 3px 0 var(--color-neutral-20)}[mode=light] .cm-editor .cm-tooltip-autocomplete>ul>li[aria-selected=true]{background:var(--color-neutral-5);border:1px solid var(--color-neutral-10)!important}`)),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
4
|
-
var RS=Object.defineProperty;var FS=(n,e,t)=>e in n?RS(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var wt=(n,e,t)=>FS(n,typeof e!="symbol"?e+"":e,t);function lg(n,e){for(var t=0;t<e.length;t++){const s=e[t];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in n)){const u=Object.getOwnPropertyDescriptor(s,a);u&&Object.defineProperty(n,a,u.get?u:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var nD=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Qd={exports:{}},ga={},Hd={exports:{}},Pe={};/**
|
|
5
|
-
* @license React
|
|
6
|
-
* react.production.min.js
|
|
7
|
-
*
|
|
8
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
-
*
|
|
10
|
-
* This source code is licensed under the MIT license found in the
|
|
11
|
-
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var Bm;function TS(){if(Bm)return Pe;Bm=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function S(D){return D===null||typeof D!="object"?null:(D=v&&D[v]||D["@@iterator"],typeof D=="function"?D:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,A={};function M(D,k,ge){this.props=D,this.context=k,this.refs=A,this.updater=ge||I}M.prototype.isReactComponent={},M.prototype.setState=function(D,k){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,k,"setState")},M.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function K(){}K.prototype=M.prototype;function W(D,k,ge){this.props=D,this.context=k,this.refs=A,this.updater=ge||I}var Y=W.prototype=new K;Y.constructor=W,T(Y,M.prototype),Y.isPureReactComponent=!0;var q=Array.isArray,ce=Object.prototype.hasOwnProperty,Z={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function V(D,k,ge){var xe,we={},Me=null,Ue=null;if(k!=null)for(xe in k.ref!==void 0&&(Ue=k.ref),k.key!==void 0&&(Me=""+k.key),k)ce.call(k,xe)&&!x.hasOwnProperty(xe)&&(we[xe]=k[xe]);var je=arguments.length-2;if(je===1)we.children=ge;else if(1<je){for(var ft=Array(je),en=0;en<je;en++)ft[en]=arguments[en+2];we.children=ft}if(D&&D.defaultProps)for(xe in je=D.defaultProps,je)we[xe]===void 0&&(we[xe]=je[xe]);return{$$typeof:n,type:D,key:Me,ref:Ue,props:we,_owner:Z.current}}function pe(D,k){return{$$typeof:n,type:D.type,key:k,ref:D.ref,props:D.props,_owner:D._owner}}function ue(D){return typeof D=="object"&&D!==null&&D.$$typeof===n}function Ye(D){var k={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ge){return k[ge]})}var We=/\/+/g;function Xe(D,k){return typeof D=="object"&&D!==null&&D.key!=null?Ye(""+D.key):k.toString(36)}function dt(D,k,ge,xe,we){var Me=typeof D;(Me==="undefined"||Me==="boolean")&&(D=null);var Ue=!1;if(D===null)Ue=!0;else switch(Me){case"string":case"number":Ue=!0;break;case"object":switch(D.$$typeof){case n:case e:Ue=!0}}if(Ue)return Ue=D,we=we(Ue),D=xe===""?"."+Xe(Ue,0):xe,q(we)?(ge="",D!=null&&(ge=D.replace(We,"$&/")+"/"),dt(we,k,ge,"",function(en){return en})):we!=null&&(ue(we)&&(we=pe(we,ge+(!we.key||Ue&&Ue.key===we.key?"":(""+we.key).replace(We,"$&/")+"/")+D)),k.push(we)),1;if(Ue=0,xe=xe===""?".":xe+":",q(D))for(var je=0;je<D.length;je++){Me=D[je];var ft=xe+Xe(Me,je);Ue+=dt(Me,k,ge,ft,we)}else if(ft=S(D),typeof ft=="function")for(D=ft.call(D),je=0;!(Me=D.next()).done;)Me=Me.value,ft=xe+Xe(Me,je++),Ue+=dt(Me,k,ge,ft,we);else if(Me==="object")throw k=String(D),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.");return Ue}function Tt(D,k,ge){if(D==null)return D;var xe=[],we=0;return dt(D,xe,"","",function(Me){return k.call(ge,Me,we++)}),xe}function Pt(D){if(D._status===-1){var k=D._result;k=k(),k.then(function(ge){(D._status===0||D._status===-1)&&(D._status=1,D._result=ge)},function(ge){(D._status===0||D._status===-1)&&(D._status=2,D._result=ge)}),D._status===-1&&(D._status=0,D._result=k)}if(D._status===1)return D._result.default;throw D._result}var at={current:null},Q={transition:null},de={ReactCurrentDispatcher:at,ReactCurrentBatchConfig:Q,ReactCurrentOwner:Z};function J(){throw Error("act(...) is not supported in production builds of React.")}return Pe.Children={map:Tt,forEach:function(D,k,ge){Tt(D,function(){k.apply(this,arguments)},ge)},count:function(D){var k=0;return Tt(D,function(){k++}),k},toArray:function(D){return Tt(D,function(k){return k})||[]},only:function(D){if(!ue(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},Pe.Component=M,Pe.Fragment=t,Pe.Profiler=a,Pe.PureComponent=W,Pe.StrictMode=s,Pe.Suspense=p,Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=de,Pe.act=J,Pe.cloneElement=function(D,k,ge){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var xe=T({},D.props),we=D.key,Me=D.ref,Ue=D._owner;if(k!=null){if(k.ref!==void 0&&(Me=k.ref,Ue=Z.current),k.key!==void 0&&(we=""+k.key),D.type&&D.type.defaultProps)var je=D.type.defaultProps;for(ft in k)ce.call(k,ft)&&!x.hasOwnProperty(ft)&&(xe[ft]=k[ft]===void 0&&je!==void 0?je[ft]:k[ft])}var ft=arguments.length-2;if(ft===1)xe.children=ge;else if(1<ft){je=Array(ft);for(var en=0;en<ft;en++)je[en]=arguments[en+2];xe.children=je}return{$$typeof:n,type:D.type,key:we,ref:Me,props:xe,_owner:Ue}},Pe.createContext=function(D){return D={$$typeof:d,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:u,_context:D},D.Consumer=D},Pe.createElement=V,Pe.createFactory=function(D){var k=V.bind(null,D);return k.type=D,k},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(D){return{$$typeof:h,render:D}},Pe.isValidElement=ue,Pe.lazy=function(D){return{$$typeof:g,_payload:{_status:-1,_result:D},_init:Pt}},Pe.memo=function(D,k){return{$$typeof:y,type:D,compare:k===void 0?null:k}},Pe.startTransition=function(D){var k=Q.transition;Q.transition={};try{D()}finally{Q.transition=k}},Pe.unstable_act=J,Pe.useCallback=function(D,k){return at.current.useCallback(D,k)},Pe.useContext=function(D){return at.current.useContext(D)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(D){return at.current.useDeferredValue(D)},Pe.useEffect=function(D,k){return at.current.useEffect(D,k)},Pe.useId=function(){return at.current.useId()},Pe.useImperativeHandle=function(D,k,ge){return at.current.useImperativeHandle(D,k,ge)},Pe.useInsertionEffect=function(D,k){return at.current.useInsertionEffect(D,k)},Pe.useLayoutEffect=function(D,k){return at.current.useLayoutEffect(D,k)},Pe.useMemo=function(D,k){return at.current.useMemo(D,k)},Pe.useReducer=function(D,k,ge){return at.current.useReducer(D,k,ge)},Pe.useRef=function(D){return at.current.useRef(D)},Pe.useState=function(D){return at.current.useState(D)},Pe.useSyncExternalStore=function(D,k,ge){return at.current.useSyncExternalStore(D,k,ge)},Pe.useTransition=function(){return at.current.useTransition()},Pe.version="18.3.1",Pe}var km;function Ua(){return km||(km=1,Hd.exports=TS()),Hd.exports}/**
|
|
13
|
-
* @license React
|
|
14
|
-
* react-jsx-runtime.production.min.js
|
|
15
|
-
*
|
|
16
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the MIT license found in the
|
|
19
|
-
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/var Um;function MS(){if(Um)return ga;Um=1;var n=Ua(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(h,p,y){var g,v={},S=null,I=null;y!==void 0&&(S=""+y),p.key!==void 0&&(S=""+p.key),p.ref!==void 0&&(I=p.ref);for(g in p)s.call(p,g)&&!u.hasOwnProperty(g)&&(v[g]=p[g]);if(h&&h.defaultProps)for(g in p=h.defaultProps,p)v[g]===void 0&&(v[g]=p[g]);return{$$typeof:e,type:h,key:S,ref:I,props:v,_owner:a.current}}return ga.Fragment=t,ga.jsx=d,ga.jsxs=d,ga}var jm;function AS(){return jm||(jm=1,Qd.exports=MS()),Qd.exports}var B=AS(),N=Ua();const Do=tc(N),PS=lg({__proto__:null,default:Do},[N]);function NS(n){return n===!0}function Ui(n){return n===!1}function rD(n){return qt(n)||Ui(n)}function ug(n){return typeof n=="string"}function LS(n){return n===""}function Da(n){return qt(n)||LS(n)}function iD(n){return ug(n)?n:""}function sD(n){return ug(n)&&n.trim()!==""}function nc(n){return Array.isArray(n)&&n.length>0}function cg(n){return Array.isArray(n)&&n.length===0}function oD(n){return dg(n)&&cg(Object.keys(n))}function aD(n){return dg(n)&&nc(Object.keys(n))}function dg(n){return typeof n=="object"&&sn(n)&&n.constructor===Object}function qt(n){return n==null}function sn(n){return n!=null}function lD(n){if(!qt(n))try{const e=new Date(n);return isNaN(e.getTime())?void 0:e}catch{return}}function uD(n,e="yyyy-mm-dd",t=!0){if(qt(n))return"";const s=t?n.getUTCFullYear():n.getFullYear(),a=g(t?n.getUTCMonth()+1:n.getMonth()+1),u=g(t?n.getUTCDate():n.getDate()),d=g(t?n.getUTCHours():n.getHours()),h=g(t?n.getUTCMinutes():n.getMinutes()),p=g(t?n.getUTCSeconds():n.getSeconds());return{"mm/dd/yyyy":`${a}/${u}/${s}`,"yyyy-mm-dd":`${s}-${a}-${u}`,"yyyy-mm-dd hh-mm-ss":`${s}-${a}-${u} ${d}:${h}:${p}`}[e]??n.toDateString();function g(v){return v.toString().padStart(2,"0")}}function cD(n,e){return n.includes(e)}function dD(n,e,t=100){return qt(n)||qt(e)||e===0||isNaN(n)||isNaN(e)||isNaN(t)?0:n/e*t}function BS(n){if(!qt(n))try{return n==="undefined"?void 0:JSON.parse(n??"")}catch{console.log("parsing error on",{value:n});return}}function fD(n,e=500,t=!1){let s;return function(...u){const d=t&&qt(s);clearTimeout(s),s=setTimeout(()=>{s=void 0,Ui(t)&&n(...u)},e),d&&n(...u)}}function ff(){const n=new Date().getTime().toString(36),e=Math.random().toString(36).substring(2,8);return n+e}function hD(...n){return n.filter(Boolean).join("__")}function pD(n,e){const t=(Date.now()%1e5).toString(16);return`${qt(n)?"":`${n}_`}${t}${e??""}`.toLowerCase()}function mD(n,e=0,t=5,s="...",a){const u=n.length;return t=Math.abs(t),a=qt(a)?t:Math.abs(a),e>u||t+a>=u?n:a===0?n.substring(0,t)+s:n.substring(0,t)+s+n.substring(u-a)}const qd=window.localStorage;function fg(n,e){function t(){try{const u=qd.getItem(n);return BS(u)}catch(u){console.log(u)}}function s(u){try{const d=Object.assign({},t(),u);qd.setItem(n,JSON.stringify(d))}catch(d){console.log(d)}}function a(){qd.removeItem(n)}return[t,s,a]}const no={Light:"light",Dark:"dark"},kS={mode:no.Light},hg=N.createContext(kS);function US({children:n}){var d;const[e,t]=fg("color-scheme"),s=((d=e())==null?void 0:d.mode)??(window.matchMedia("(prefers-color-scheme: dark)").matches?no.Dark:no.Light),[a,u]=N.useState(s);return N.useEffect(()=>{t({mode:a}),document.documentElement.setAttribute("mode",a)},[a]),B.jsx(hg.Provider,{value:{mode:a,toggleColorScheme(){u(a===no.Light?no.Dark:no.Light)}},children:n})}function yD(){return N.useContext(hg)}var su={},Kd={exports:{}},hn={},Yd={exports:{}},Gd={};/**
|
|
21
|
-
* @license React
|
|
22
|
-
* scheduler.production.min.js
|
|
23
|
-
*
|
|
24
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
25
|
-
*
|
|
26
|
-
* This source code is licensed under the MIT license found in the
|
|
27
|
-
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var zm;function jS(){return zm||(zm=1,function(n){function e(Q,de){var J=Q.length;Q.push(de);e:for(;0<J;){var D=J-1>>>1,k=Q[D];if(0<a(k,de))Q[D]=de,Q[J]=k,J=D;else break e}}function t(Q){return Q.length===0?null:Q[0]}function s(Q){if(Q.length===0)return null;var de=Q[0],J=Q.pop();if(J!==de){Q[0]=J;e:for(var D=0,k=Q.length,ge=k>>>1;D<ge;){var xe=2*(D+1)-1,we=Q[xe],Me=xe+1,Ue=Q[Me];if(0>a(we,J))Me<k&&0>a(Ue,we)?(Q[D]=Ue,Q[Me]=J,D=Me):(Q[D]=we,Q[xe]=J,D=xe);else if(Me<k&&0>a(Ue,J))Q[D]=Ue,Q[Me]=J,D=Me;else break e}}return de}function a(Q,de){var J=Q.sortIndex-de.sortIndex;return J!==0?J:Q.id-de.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],y=[],g=1,v=null,S=3,I=!1,T=!1,A=!1,M=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Y(Q){for(var de=t(y);de!==null;){if(de.callback===null)s(y);else if(de.startTime<=Q)s(y),de.sortIndex=de.expirationTime,e(p,de);else break;de=t(y)}}function q(Q){if(A=!1,Y(Q),!T)if(t(p)!==null)T=!0,Pt(ce);else{var de=t(y);de!==null&&at(q,de.startTime-Q)}}function ce(Q,de){T=!1,A&&(A=!1,K(V),V=-1),I=!0;var J=S;try{for(Y(de),v=t(p);v!==null&&(!(v.expirationTime>de)||Q&&!Ye());){var D=v.callback;if(typeof D=="function"){v.callback=null,S=v.priorityLevel;var k=D(v.expirationTime<=de);de=n.unstable_now(),typeof k=="function"?v.callback=k:v===t(p)&&s(p),Y(de)}else s(p);v=t(p)}if(v!==null)var ge=!0;else{var xe=t(y);xe!==null&&at(q,xe.startTime-de),ge=!1}return ge}finally{v=null,S=J,I=!1}}var Z=!1,x=null,V=-1,pe=5,ue=-1;function Ye(){return!(n.unstable_now()-ue<pe)}function We(){if(x!==null){var Q=n.unstable_now();ue=Q;var de=!0;try{de=x(!0,Q)}finally{de?Xe():(Z=!1,x=null)}}else Z=!1}var Xe;if(typeof W=="function")Xe=function(){W(We)};else if(typeof MessageChannel<"u"){var dt=new MessageChannel,Tt=dt.port2;dt.port1.onmessage=We,Xe=function(){Tt.postMessage(null)}}else Xe=function(){M(We,0)};function Pt(Q){x=Q,Z||(Z=!0,Xe())}function at(Q,de){V=M(function(){Q(n.unstable_now())},de)}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(Q){Q.callback=null},n.unstable_continueExecution=function(){T||I||(T=!0,Pt(ce))},n.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pe=0<Q?Math.floor(1e3/Q):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_getFirstCallbackNode=function(){return t(p)},n.unstable_next=function(Q){switch(S){case 1:case 2:case 3:var de=3;break;default:de=S}var J=S;S=de;try{return Q()}finally{S=J}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(Q,de){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var J=S;S=Q;try{return de()}finally{S=J}},n.unstable_scheduleCallback=function(Q,de,J){var D=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?D+J:D):J=D,Q){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=J+k,Q={id:g++,callback:de,priorityLevel:Q,startTime:J,expirationTime:k,sortIndex:-1},J>D?(Q.sortIndex=J,e(y,Q),t(p)===null&&Q===t(y)&&(A?(K(V),V=-1):A=!0,at(q,J-D))):(Q.sortIndex=k,e(p,Q),T||I||(T=!0,Pt(ce))),Q},n.unstable_shouldYield=Ye,n.unstable_wrapCallback=function(Q){var de=S;return function(){var J=S;S=de;try{return Q.apply(this,arguments)}finally{S=J}}}}(Gd)),Gd}var Vm;function zS(){return Vm||(Vm=1,Yd.exports=jS()),Yd.exports}/**
|
|
29
|
-
* @license React
|
|
30
|
-
* react-dom.production.min.js
|
|
31
|
-
*
|
|
32
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the MIT license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var $m;function VS(){if($m)return hn;$m=1;var n=Ua(),e=zS();function t(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,o=1;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function u(r,i){d(r,i),d(r+"Capture",i)}function d(r,i){for(a[r]=i,r=0;r<i.length;r++)s.add(i[r])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,y=/^[: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]*$/,g={},v={};function S(r){return p.call(v,r)?!0:p.call(g,r)?!1:y.test(r)?v[r]=!0:(g[r]=!0,!1)}function I(r,i,o,l){if(o!==null&&o.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return l?!1:o!==null?!o.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function T(r,i,o,l){if(i===null||typeof i>"u"||I(r,i,o,l))return!0;if(l)return!1;if(o!==null)switch(o.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function A(r,i,o,l,c,f,m){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=l,this.attributeNamespace=c,this.mustUseProperty=o,this.propertyName=r,this.type=i,this.sanitizeURL=f,this.removeEmptyString=m}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){M[r]=new A(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];M[i]=new A(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){M[r]=new A(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){M[r]=new A(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){M[r]=new A(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){M[r]=new A(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){M[r]=new A(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){M[r]=new A(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){M[r]=new A(r,5,!1,r.toLowerCase(),null,!1,!1)});var K=/[\-:]([a-z])/g;function W(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var i=r.replace(K,W);M[i]=new A(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(K,W);M[i]=new A(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(K,W);M[i]=new A(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){M[r]=new A(r,1,!1,r.toLowerCase(),null,!1,!1)}),M.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){M[r]=new A(r,1,!1,r.toLowerCase(),null,!0,!0)});function Y(r,i,o,l){var c=M.hasOwnProperty(i)?M[i]:null;(c!==null?c.type!==0:l||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(T(i,o,c,l)&&(o=null),l||c===null?S(i)&&(o===null?r.removeAttribute(i):r.setAttribute(i,""+o)):c.mustUseProperty?r[c.propertyName]=o===null?c.type===3?!1:"":o:(i=c.attributeName,l=c.attributeNamespace,o===null?r.removeAttribute(i):(c=c.type,o=c===3||c===4&&o===!0?"":""+o,l?r.setAttributeNS(l,i,o):r.setAttribute(i,o))))}var q=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ce=Symbol.for("react.element"),Z=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),pe=Symbol.for("react.profiler"),ue=Symbol.for("react.provider"),Ye=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),Xe=Symbol.for("react.suspense"),dt=Symbol.for("react.suspense_list"),Tt=Symbol.for("react.memo"),Pt=Symbol.for("react.lazy"),at=Symbol.for("react.offscreen"),Q=Symbol.iterator;function de(r){return r===null||typeof r!="object"?null:(r=Q&&r[Q]||r["@@iterator"],typeof r=="function"?r:null)}var J=Object.assign,D;function k(r){if(D===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);D=i&&i[1]||""}return`
|
|
37
|
-
`+D+r}var ge=!1;function xe(r,i){if(!r||ge)return"";ge=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(P){var l=P}Reflect.construct(r,[],i)}else{try{i.call()}catch(P){l=P}r.call(i.prototype)}else{try{throw Error()}catch(P){l=P}r()}}catch(P){if(P&&l&&typeof P.stack=="string"){for(var c=P.stack.split(`
|
|
38
|
-
`),f=l.stack.split(`
|
|
39
|
-
`),m=c.length-1,w=f.length-1;1<=m&&0<=w&&c[m]!==f[w];)w--;for(;1<=m&&0<=w;m--,w--)if(c[m]!==f[w]){if(m!==1||w!==1)do if(m--,w--,0>w||c[m]!==f[w]){var b=`
|
|
40
|
-
`+c[m].replace(" at new "," at ");return r.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",r.displayName)),b}while(1<=m&&0<=w);break}}}finally{ge=!1,Error.prepareStackTrace=o}return(r=r?r.displayName||r.name:"")?k(r):""}function we(r){switch(r.tag){case 5:return k(r.type);case 16:return k("Lazy");case 13:return k("Suspense");case 19:return k("SuspenseList");case 0:case 2:case 15:return r=xe(r.type,!1),r;case 11:return r=xe(r.type.render,!1),r;case 1:return r=xe(r.type,!0),r;default:return""}}function Me(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case x:return"Fragment";case Z:return"Portal";case pe:return"Profiler";case V:return"StrictMode";case Xe:return"Suspense";case dt:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Ye:return(r.displayName||"Context")+".Consumer";case ue:return(r._context.displayName||"Context")+".Provider";case We:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Tt:return i=r.displayName||null,i!==null?i:Me(r.type)||"Memo";case Pt:i=r._payload,r=r._init;try{return Me(r(i))}catch{}}return null}function Ue(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Me(i);case 8:return i===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function je(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function ft(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function en(r){var i=ft(r)?"checked":"value",o=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),l=""+r[i];if(!r.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,f=o.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return c.call(this)},set:function(m){l=""+m,f.call(this,m)}}),Object.defineProperty(r,i,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(m){l=""+m},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function xs(r){r._valueTracker||(r._valueTracker=en(r))}function jt(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var o=i.getValue(),l="";return r&&(l=ft(r)?r.checked?"true":"false":r.value),r=l,r!==o?(i.setValue(r),!0):!1}function Wn(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Ds(r,i){var o=i.checked;return J({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??r._wrapperState.initialChecked})}function Ka(r,i){var o=i.defaultValue==null?"":i.defaultValue,l=i.checked!=null?i.checked:i.defaultChecked;o=je(i.value!=null?i.value:o),r._wrapperState={initialChecked:l,initialValue:o,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function ur(r,i){i=i.checked,i!=null&&Y(r,"checked",i,!1)}function Fo(r,i){ur(r,i);var o=je(i.value),l=i.type;if(o!=null)l==="number"?(o===0&&r.value===""||r.value!=o)&&(r.value=""+o):r.value!==""+o&&(r.value=""+o);else if(l==="submit"||l==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?Cs(r,i.type,o):i.hasOwnProperty("defaultValue")&&Cs(r,i.type,je(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function Ya(r,i,o){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var l=i.type;if(!(l!=="submit"&&l!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,o||i===r.value||(r.value=i),r.defaultValue=i}o=r.name,o!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,o!==""&&(r.name=o)}function Cs(r,i,o){(i!=="number"||Wn(r.ownerDocument)!==r)&&(o==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+o&&(r.defaultValue=""+o))}var Ki=Array.isArray;function li(r,i,o,l){if(r=r.options,i){i={};for(var c=0;c<o.length;c++)i["$"+o[c]]=!0;for(o=0;o<r.length;o++)c=i.hasOwnProperty("$"+r[o].value),r[o].selected!==c&&(r[o].selected=c),c&&l&&(r[o].defaultSelected=!0)}else{for(o=""+je(o),i=null,c=0;c<r.length;c++){if(r[c].value===o){r[c].selected=!0,l&&(r[c].defaultSelected=!0);return}i!==null||r[c].disabled||(i=r[c])}i!==null&&(i.selected=!0)}}function To(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(t(91));return J({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Ga(r,i){var o=i.value;if(o==null){if(o=i.children,i=i.defaultValue,o!=null){if(i!=null)throw Error(t(92));if(Ki(o)){if(1<o.length)throw Error(t(93));o=o[0]}i=o}i==null&&(i=""),o=i}r._wrapperState={initialValue:je(o)}}function cr(r,i){var o=je(i.value),l=je(i.defaultValue);o!=null&&(o=""+o,o!==r.value&&(r.value=o),i.defaultValue==null&&r.defaultValue!==o&&(r.defaultValue=o)),l!=null&&(r.defaultValue=""+l)}function ui(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function Mo(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Yi(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?Mo(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var bn,Rn=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,o,l,c){MSApp.execUnsafeLocalFunction(function(){return r(i,o,l,c)})}:r}(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(bn=bn||document.createElement("div"),bn.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=bn.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function ci(r,i){if(i){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=i;return}}r.textContent=i}var dr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cc=["Webkit","ms","Moz","O"];Object.keys(dr).forEach(function(r){cc.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),dr[i]=dr[r]})});function Qn(r,i,o){return i==null||typeof i=="boolean"||i===""?"":o||typeof i!="number"||i===0||dr.hasOwnProperty(r)&&dr[r]?(""+i).trim():i+"px"}function Ao(r,i){r=r.style;for(var o in i)if(i.hasOwnProperty(o)){var l=o.indexOf("--")===0,c=Qn(o,i[o],l);o==="float"&&(o="cssFloat"),l?r.setProperty(o,c):r[o]=c}}var Ja=J({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Os(r,i){if(i){if(Ja[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(t(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(t(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(t(61))}if(i.style!=null&&typeof i.style!="object")throw Error(t(62))}}function Po(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";switch(r){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 Rs=null;function di(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Fs=null,fr=null,hr=null;function Xa(r){if(r=na(r)){if(typeof Fs!="function")throw Error(t(280));var i=r.stateNode;i&&(i=Sl(i),Fs(r.stateNode,r.type,i))}}function No(r){fr?hr?hr.push(r):hr=[r]:fr=r}function Za(){if(fr){var r=fr,i=hr;if(hr=fr=null,Xa(r),i)for(r=0;r<i.length;r++)Xa(i[r])}}function Lo(r,i){return r(i)}function Gi(){}var fi=!1;function el(r,i,o){if(fi)return r(i,o);fi=!0;try{return Lo(r,i,o)}finally{fi=!1,(fr!==null||hr!==null)&&(Gi(),Za())}}function Ji(r,i){var o=r.stateNode;if(o===null)return null;var l=Sl(o);if(l===null)return null;o=l[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(r=r.type,l=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!l;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(t(231,i,typeof o));return o}var _=!1;if(h)try{var C={};Object.defineProperty(C,"passive",{get:function(){_=!0}}),window.addEventListener("test",C,C),window.removeEventListener("test",C,C)}catch{_=!1}function L(r,i,o,l,c,f,m,w,b){var P=Array.prototype.slice.call(arguments,3);try{i.apply(o,P)}catch(z){this.onError(z)}}var U=!1,G=null,le=!1,me=null,re={onError:function(r){U=!0,G=r}};function se(r,i,o,l,c,f,m,w,b){U=!1,G=null,L.apply(re,arguments)}function ee(r,i,o,l,c,f,m,w,b){if(se.apply(this,arguments),U){if(U){var P=G;U=!1,G=null}else throw Error(t(198));le||(le=!0,me=P)}}function ne(r){var i=r,o=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(o=i.return),r=i.return;while(r)}return i.tag===3?o:null}function Se(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function Le(r){if(ne(r)!==r)throw Error(t(188))}function Nt(r){var i=r.alternate;if(!i){if(i=ne(r),i===null)throw Error(t(188));return i!==r?null:r}for(var o=r,l=i;;){var c=o.return;if(c===null)break;var f=c.alternate;if(f===null){if(l=c.return,l!==null){o=l;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===o)return Le(c),r;if(f===l)return Le(c),i;f=f.sibling}throw Error(t(188))}if(o.return!==l.return)o=c,l=f;else{for(var m=!1,w=c.child;w;){if(w===o){m=!0,o=c,l=f;break}if(w===l){m=!0,l=c,o=f;break}w=w.sibling}if(!m){for(w=f.child;w;){if(w===o){m=!0,o=f,l=c;break}if(w===l){m=!0,l=f,o=c;break}w=w.sibling}if(!m)throw Error(t(189))}}if(o.alternate!==l)throw Error(t(190))}if(o.tag!==3)throw Error(t(188));return o.stateNode.current===o?r:i}function Ze(r){return r=Nt(r),r!==null?ze(r):null}function ze(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=ze(r);if(i!==null)return i;r=r.sibling}return null}var pt=e.unstable_scheduleCallback,Pr=e.unstable_cancelCallback,Xi=e.unstable_shouldYield,Hn=e.unstable_requestPaint,Qe=e.unstable_now,Bo=e.unstable_getCurrentPriorityLevel,Nr=e.unstable_ImmediatePriority,pr=e.unstable_UserBlockingPriority,Lr=e.unstable_NormalPriority,Ts=e.unstable_LowPriority,Be=e.unstable_IdlePriority,lt=null,Wt=null;function Zi(r){if(Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(lt,r,void 0,(r.current.flags&128)===128)}catch{}}var He=Math.clz32?Math.clz32:dc,hi=Math.log,tl=Math.LN2;function dc(r){return r>>>=0,r===0?32:31-(hi(r)/tl|0)|0}var nl=64,rl=4194304;function ko(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function il(r,i){var o=r.pendingLanes;if(o===0)return 0;var l=0,c=r.suspendedLanes,f=r.pingedLanes,m=o&268435455;if(m!==0){var w=m&~c;w!==0?l=ko(w):(f&=m,f!==0&&(l=ko(f)))}else m=o&~c,m!==0?l=ko(m):f!==0&&(l=ko(f));if(l===0)return 0;if(i!==0&&i!==l&&(i&c)===0&&(c=l&-l,f=i&-i,c>=f||c===16&&(f&4194240)!==0))return i;if((l&4)!==0&&(l|=o&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=l;0<i;)o=31-He(i),c=1<<o,l|=r[o],i&=~c;return l}function K0(r,i){switch(r){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Y0(r,i){for(var o=r.suspendedLanes,l=r.pingedLanes,c=r.expirationTimes,f=r.pendingLanes;0<f;){var m=31-He(f),w=1<<m,b=c[m];b===-1?((w&o)===0||(w&l)!==0)&&(c[m]=K0(w,i)):b<=i&&(r.expiredLanes|=w),f&=~w}}function fc(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function ph(){var r=nl;return nl<<=1,(nl&4194240)===0&&(nl=64),r}function hc(r){for(var i=[],o=0;31>o;o++)i.push(r);return i}function Uo(r,i,o){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-He(i),r[i]=o}function G0(r,i){var o=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var l=r.eventTimes;for(r=r.expirationTimes;0<o;){var c=31-He(o),f=1<<c;i[c]=0,l[c]=-1,r[c]=-1,o&=~f}}function pc(r,i){var o=r.entangledLanes|=i;for(r=r.entanglements;o;){var l=31-He(o),c=1<<l;c&i|r[l]&i&&(r[l]|=i),o&=~c}}var et=0;function mh(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var yh,mc,gh,vh,wh,yc=!1,sl=[],pi=null,mi=null,yi=null,jo=new Map,zo=new Map,gi=[],J0="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 submit".split(" ");function Sh(r,i){switch(r){case"focusin":case"focusout":pi=null;break;case"dragenter":case"dragleave":mi=null;break;case"mouseover":case"mouseout":yi=null;break;case"pointerover":case"pointerout":jo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":zo.delete(i.pointerId)}}function Vo(r,i,o,l,c,f){return r===null||r.nativeEvent!==f?(r={blockedOn:i,domEventName:o,eventSystemFlags:l,nativeEvent:f,targetContainers:[c]},i!==null&&(i=na(i),i!==null&&mc(i)),r):(r.eventSystemFlags|=l,i=r.targetContainers,c!==null&&i.indexOf(c)===-1&&i.push(c),r)}function X0(r,i,o,l,c){switch(i){case"focusin":return pi=Vo(pi,r,i,o,l,c),!0;case"dragenter":return mi=Vo(mi,r,i,o,l,c),!0;case"mouseover":return yi=Vo(yi,r,i,o,l,c),!0;case"pointerover":var f=c.pointerId;return jo.set(f,Vo(jo.get(f)||null,r,i,o,l,c)),!0;case"gotpointercapture":return f=c.pointerId,zo.set(f,Vo(zo.get(f)||null,r,i,o,l,c)),!0}return!1}function _h(r){var i=es(r.target);if(i!==null){var o=ne(i);if(o!==null){if(i=o.tag,i===13){if(i=Se(o),i!==null){r.blockedOn=i,wh(r.priority,function(){gh(o)});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function ol(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var o=vc(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(o===null){o=r.nativeEvent;var l=new o.constructor(o.type,o);Rs=l,o.target.dispatchEvent(l),Rs=null}else return i=na(o),i!==null&&mc(i),r.blockedOn=o,!1;i.shift()}return!0}function bh(r,i,o){ol(r)&&o.delete(i)}function Z0(){yc=!1,pi!==null&&ol(pi)&&(pi=null),mi!==null&&ol(mi)&&(mi=null),yi!==null&&ol(yi)&&(yi=null),jo.forEach(bh),zo.forEach(bh)}function $o(r,i){r.blockedOn===i&&(r.blockedOn=null,yc||(yc=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Z0)))}function Wo(r){function i(c){return $o(c,r)}if(0<sl.length){$o(sl[0],r);for(var o=1;o<sl.length;o++){var l=sl[o];l.blockedOn===r&&(l.blockedOn=null)}}for(pi!==null&&$o(pi,r),mi!==null&&$o(mi,r),yi!==null&&$o(yi,r),jo.forEach(i),zo.forEach(i),o=0;o<gi.length;o++)l=gi[o],l.blockedOn===r&&(l.blockedOn=null);for(;0<gi.length&&(o=gi[0],o.blockedOn===null);)_h(o),o.blockedOn===null&&gi.shift()}var Ms=q.ReactCurrentBatchConfig,al=!0;function ew(r,i,o,l){var c=et,f=Ms.transition;Ms.transition=null;try{et=1,gc(r,i,o,l)}finally{et=c,Ms.transition=f}}function tw(r,i,o,l){var c=et,f=Ms.transition;Ms.transition=null;try{et=4,gc(r,i,o,l)}finally{et=c,Ms.transition=f}}function gc(r,i,o,l){if(al){var c=vc(r,i,o,l);if(c===null)Nc(r,i,l,ll,o),Sh(r,l);else if(X0(c,r,i,o,l))l.stopPropagation();else if(Sh(r,l),i&4&&-1<J0.indexOf(r)){for(;c!==null;){var f=na(c);if(f!==null&&yh(f),f=vc(r,i,o,l),f===null&&Nc(r,i,l,ll,o),f===c)break;c=f}c!==null&&l.stopPropagation()}else Nc(r,i,l,null,o)}}var ll=null;function vc(r,i,o,l){if(ll=null,r=di(l),r=es(r),r!==null)if(i=ne(r),i===null)r=null;else if(o=i.tag,o===13){if(r=Se(i),r!==null)return r;r=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null);return ll=r,null}function Ih(r){switch(r){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Bo()){case Nr:return 1;case pr:return 4;case Lr:case Ts:return 16;case Be:return 536870912;default:return 16}default:return 16}}var vi=null,wc=null,ul=null;function Eh(){if(ul)return ul;var r,i=wc,o=i.length,l,c="value"in vi?vi.value:vi.textContent,f=c.length;for(r=0;r<o&&i[r]===c[r];r++);var m=o-r;for(l=1;l<=m&&i[o-l]===c[f-l];l++);return ul=c.slice(r,1<l?1-l:void 0)}function cl(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function dl(){return!0}function xh(){return!1}function In(r){function i(o,l,c,f,m){this._reactName=o,this._targetInst=c,this.type=l,this.nativeEvent=f,this.target=m,this.currentTarget=null;for(var w in r)r.hasOwnProperty(w)&&(o=r[w],this[w]=o?o(f):f[w]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?dl:xh,this.isPropagationStopped=xh,this}return J(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=dl)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=dl)},persist:function(){},isPersistent:dl}),i}var As={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sc=In(As),Qo=J({},As,{view:0,detail:0}),nw=In(Qo),_c,bc,Ho,fl=J({},Qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ec,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Ho&&(Ho&&r.type==="mousemove"?(_c=r.screenX-Ho.screenX,bc=r.screenY-Ho.screenY):bc=_c=0,Ho=r),_c)},movementY:function(r){return"movementY"in r?r.movementY:bc}}),Dh=In(fl),rw=J({},fl,{dataTransfer:0}),iw=In(rw),sw=J({},Qo,{relatedTarget:0}),Ic=In(sw),ow=J({},As,{animationName:0,elapsedTime:0,pseudoElement:0}),aw=In(ow),lw=J({},As,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),uw=In(lw),cw=J({},As,{data:0}),Ch=In(cw),dw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fw={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"},hw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pw(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=hw[r])?!!i[r]:!1}function Ec(){return pw}var mw=J({},Qo,{key:function(r){if(r.key){var i=dw[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=cl(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?fw[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ec,charCode:function(r){return r.type==="keypress"?cl(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?cl(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),yw=In(mw),gw=J({},fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Oh=In(gw),vw=J({},Qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ec}),ww=In(vw),Sw=J({},As,{propertyName:0,elapsedTime:0,pseudoElement:0}),_w=In(Sw),bw=J({},fl,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Iw=In(bw),Ew=[9,13,27,32],xc=h&&"CompositionEvent"in window,qo=null;h&&"documentMode"in document&&(qo=document.documentMode);var xw=h&&"TextEvent"in window&&!qo,Rh=h&&(!xc||qo&&8<qo&&11>=qo),Fh=" ",Th=!1;function Mh(r,i){switch(r){case"keyup":return Ew.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ah(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ps=!1;function Dw(r,i){switch(r){case"compositionend":return Ah(i);case"keypress":return i.which!==32?null:(Th=!0,Fh);case"textInput":return r=i.data,r===Fh&&Th?null:r;default:return null}}function Cw(r,i){if(Ps)return r==="compositionend"||!xc&&Mh(r,i)?(r=Eh(),ul=wc=vi=null,Ps=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Rh&&i.locale!=="ko"?null:i.data;default:return null}}var Ow={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 Ph(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!Ow[r.type]:i==="textarea"}function Nh(r,i,o,l){No(l),i=gl(i,"onChange"),0<i.length&&(o=new Sc("onChange","change",null,o,l),r.push({event:o,listeners:i}))}var Ko=null,Yo=null;function Rw(r){Zh(r,0)}function hl(r){var i=Us(r);if(jt(i))return r}function Fw(r,i){if(r==="change")return i}var Lh=!1;if(h){var Dc;if(h){var Cc="oninput"in document;if(!Cc){var Bh=document.createElement("div");Bh.setAttribute("oninput","return;"),Cc=typeof Bh.oninput=="function"}Dc=Cc}else Dc=!1;Lh=Dc&&(!document.documentMode||9<document.documentMode)}function kh(){Ko&&(Ko.detachEvent("onpropertychange",Uh),Yo=Ko=null)}function Uh(r){if(r.propertyName==="value"&&hl(Yo)){var i=[];Nh(i,Yo,r,di(r)),el(Rw,i)}}function Tw(r,i,o){r==="focusin"?(kh(),Ko=i,Yo=o,Ko.attachEvent("onpropertychange",Uh)):r==="focusout"&&kh()}function Mw(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return hl(Yo)}function Aw(r,i){if(r==="click")return hl(i)}function Pw(r,i){if(r==="input"||r==="change")return hl(i)}function Nw(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var qn=typeof Object.is=="function"?Object.is:Nw;function Go(r,i){if(qn(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var o=Object.keys(r),l=Object.keys(i);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var c=o[l];if(!p.call(i,c)||!qn(r[c],i[c]))return!1}return!0}function jh(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function zh(r,i){var o=jh(r);r=0;for(var l;o;){if(o.nodeType===3){if(l=r+o.textContent.length,r<=i&&l>=i)return{node:o,offset:i-r};r=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=jh(o)}}function Vh(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?Vh(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function $h(){for(var r=window,i=Wn();i instanceof r.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)r=i.contentWindow;else break;i=Wn(r.document)}return i}function Oc(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function Lw(r){var i=$h(),o=r.focusedElem,l=r.selectionRange;if(i!==o&&o&&o.ownerDocument&&Vh(o.ownerDocument.documentElement,o)){if(l!==null&&Oc(o)){if(i=l.start,r=l.end,r===void 0&&(r=i),"selectionStart"in o)o.selectionStart=i,o.selectionEnd=Math.min(r,o.value.length);else if(r=(i=o.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var c=o.textContent.length,f=Math.min(l.start,c);l=l.end===void 0?f:Math.min(l.end,c),!r.extend&&f>l&&(c=l,l=f,f=c),c=zh(o,f);var m=zh(o,l);c&&m&&(r.rangeCount!==1||r.anchorNode!==c.node||r.anchorOffset!==c.offset||r.focusNode!==m.node||r.focusOffset!==m.offset)&&(i=i.createRange(),i.setStart(c.node,c.offset),r.removeAllRanges(),f>l?(r.addRange(i),r.extend(m.node,m.offset)):(i.setEnd(m.node,m.offset),r.addRange(i)))}}for(i=[],r=o;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<i.length;o++)r=i[o],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var Bw=h&&"documentMode"in document&&11>=document.documentMode,Ns=null,Rc=null,Jo=null,Fc=!1;function Wh(r,i,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Fc||Ns==null||Ns!==Wn(l)||(l=Ns,"selectionStart"in l&&Oc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Jo&&Go(Jo,l)||(Jo=l,l=gl(Rc,"onSelect"),0<l.length&&(i=new Sc("onSelect","select",null,i,o),r.push({event:i,listeners:l}),i.target=Ns)))}function pl(r,i){var o={};return o[r.toLowerCase()]=i.toLowerCase(),o["Webkit"+r]="webkit"+i,o["Moz"+r]="moz"+i,o}var Ls={animationend:pl("Animation","AnimationEnd"),animationiteration:pl("Animation","AnimationIteration"),animationstart:pl("Animation","AnimationStart"),transitionend:pl("Transition","TransitionEnd")},Tc={},Qh={};h&&(Qh=document.createElement("div").style,"AnimationEvent"in window||(delete Ls.animationend.animation,delete Ls.animationiteration.animation,delete Ls.animationstart.animation),"TransitionEvent"in window||delete Ls.transitionend.transition);function ml(r){if(Tc[r])return Tc[r];if(!Ls[r])return r;var i=Ls[r],o;for(o in i)if(i.hasOwnProperty(o)&&o in Qh)return Tc[r]=i[o];return r}var Hh=ml("animationend"),qh=ml("animationiteration"),Kh=ml("animationstart"),Yh=ml("transitionend"),Gh=new Map,Jh="abort auxClick 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(" ");function wi(r,i){Gh.set(r,i),u(i,[r])}for(var Mc=0;Mc<Jh.length;Mc++){var Ac=Jh[Mc],kw=Ac.toLowerCase(),Uw=Ac[0].toUpperCase()+Ac.slice(1);wi(kw,"on"+Uw)}wi(Hh,"onAnimationEnd"),wi(qh,"onAnimationIteration"),wi(Kh,"onAnimationStart"),wi("dblclick","onDoubleClick"),wi("focusin","onFocus"),wi("focusout","onBlur"),wi(Yh,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xo="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(" "),jw=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xo));function Xh(r,i,o){var l=r.type||"unknown-event";r.currentTarget=o,ee(l,i,void 0,r),r.currentTarget=null}function Zh(r,i){i=(i&4)!==0;for(var o=0;o<r.length;o++){var l=r[o],c=l.event;l=l.listeners;e:{var f=void 0;if(i)for(var m=l.length-1;0<=m;m--){var w=l[m],b=w.instance,P=w.currentTarget;if(w=w.listener,b!==f&&c.isPropagationStopped())break e;Xh(c,w,P),f=b}else for(m=0;m<l.length;m++){if(w=l[m],b=w.instance,P=w.currentTarget,w=w.listener,b!==f&&c.isPropagationStopped())break e;Xh(c,w,P),f=b}}}if(le)throw r=me,le=!1,me=null,r}function mt(r,i){var o=i[zc];o===void 0&&(o=i[zc]=new Set);var l=r+"__bubble";o.has(l)||(ep(i,r,2,!1),o.add(l))}function Pc(r,i,o){var l=0;i&&(l|=4),ep(o,r,l,i)}var yl="_reactListening"+Math.random().toString(36).slice(2);function Zo(r){if(!r[yl]){r[yl]=!0,s.forEach(function(o){o!=="selectionchange"&&(jw.has(o)||Pc(o,!1,r),Pc(o,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[yl]||(i[yl]=!0,Pc("selectionchange",!1,i))}}function ep(r,i,o,l){switch(Ih(i)){case 1:var c=ew;break;case 4:c=tw;break;default:c=gc}o=c.bind(null,i,o,r),c=void 0,!_||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(c=!0),l?c!==void 0?r.addEventListener(i,o,{capture:!0,passive:c}):r.addEventListener(i,o,!0):c!==void 0?r.addEventListener(i,o,{passive:c}):r.addEventListener(i,o,!1)}function Nc(r,i,o,l,c){var f=l;if((i&1)===0&&(i&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var w=l.stateNode.containerInfo;if(w===c||w.nodeType===8&&w.parentNode===c)break;if(m===4)for(m=l.return;m!==null;){var b=m.tag;if((b===3||b===4)&&(b=m.stateNode.containerInfo,b===c||b.nodeType===8&&b.parentNode===c))return;m=m.return}for(;w!==null;){if(m=es(w),m===null)return;if(b=m.tag,b===5||b===6){l=f=m;continue e}w=w.parentNode}}l=l.return}el(function(){var P=f,z=di(o),$=[];e:{var j=Gh.get(r);if(j!==void 0){var X=Sc,ie=r;switch(r){case"keypress":if(cl(o)===0)break e;case"keydown":case"keyup":X=yw;break;case"focusin":ie="focus",X=Ic;break;case"focusout":ie="blur",X=Ic;break;case"beforeblur":case"afterblur":X=Ic;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=Dh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=iw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=ww;break;case Hh:case qh:case Kh:X=aw;break;case Yh:X=_w;break;case"scroll":X=nw;break;case"wheel":X=Iw;break;case"copy":case"cut":case"paste":X=uw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=Oh}var oe=(i&4)!==0,Ot=!oe&&r==="scroll",R=oe?j!==null?j+"Capture":null:j;oe=[];for(var E=P,F;E!==null;){F=E;var H=F.stateNode;if(F.tag===5&&H!==null&&(F=H,R!==null&&(H=Ji(E,R),H!=null&&oe.push(ea(E,H,F)))),Ot)break;E=E.return}0<oe.length&&(j=new X(j,ie,null,o,z),$.push({event:j,listeners:oe}))}}if((i&7)===0){e:{if(j=r==="mouseover"||r==="pointerover",X=r==="mouseout"||r==="pointerout",j&&o!==Rs&&(ie=o.relatedTarget||o.fromElement)&&(es(ie)||ie[Br]))break e;if((X||j)&&(j=z.window===z?z:(j=z.ownerDocument)?j.defaultView||j.parentWindow:window,X?(ie=o.relatedTarget||o.toElement,X=P,ie=ie?es(ie):null,ie!==null&&(Ot=ne(ie),ie!==Ot||ie.tag!==5&&ie.tag!==6)&&(ie=null)):(X=null,ie=P),X!==ie)){if(oe=Dh,H="onMouseLeave",R="onMouseEnter",E="mouse",(r==="pointerout"||r==="pointerover")&&(oe=Oh,H="onPointerLeave",R="onPointerEnter",E="pointer"),Ot=X==null?j:Us(X),F=ie==null?j:Us(ie),j=new oe(H,E+"leave",X,o,z),j.target=Ot,j.relatedTarget=F,H=null,es(z)===P&&(oe=new oe(R,E+"enter",ie,o,z),oe.target=F,oe.relatedTarget=Ot,H=oe),Ot=H,X&&ie)t:{for(oe=X,R=ie,E=0,F=oe;F;F=Bs(F))E++;for(F=0,H=R;H;H=Bs(H))F++;for(;0<E-F;)oe=Bs(oe),E--;for(;0<F-E;)R=Bs(R),F--;for(;E--;){if(oe===R||R!==null&&oe===R.alternate)break t;oe=Bs(oe),R=Bs(R)}oe=null}else oe=null;X!==null&&tp($,j,X,oe,!1),ie!==null&&Ot!==null&&tp($,Ot,ie,oe,!0)}}e:{if(j=P?Us(P):window,X=j.nodeName&&j.nodeName.toLowerCase(),X==="select"||X==="input"&&j.type==="file")var ae=Fw;else if(Ph(j))if(Lh)ae=Pw;else{ae=Mw;var fe=Tw}else(X=j.nodeName)&&X.toLowerCase()==="input"&&(j.type==="checkbox"||j.type==="radio")&&(ae=Aw);if(ae&&(ae=ae(r,P))){Nh($,ae,o,z);break e}fe&&fe(r,j,P),r==="focusout"&&(fe=j._wrapperState)&&fe.controlled&&j.type==="number"&&Cs(j,"number",j.value)}switch(fe=P?Us(P):window,r){case"focusin":(Ph(fe)||fe.contentEditable==="true")&&(Ns=fe,Rc=P,Jo=null);break;case"focusout":Jo=Rc=Ns=null;break;case"mousedown":Fc=!0;break;case"contextmenu":case"mouseup":case"dragend":Fc=!1,Wh($,o,z);break;case"selectionchange":if(Bw)break;case"keydown":case"keyup":Wh($,o,z)}var he;if(xc)e:{switch(r){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Ps?Mh(r,o)&&(ye="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(ye="onCompositionStart");ye&&(Rh&&o.locale!=="ko"&&(Ps||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Ps&&(he=Eh()):(vi=z,wc="value"in vi?vi.value:vi.textContent,Ps=!0)),fe=gl(P,ye),0<fe.length&&(ye=new Ch(ye,r,null,o,z),$.push({event:ye,listeners:fe}),he?ye.data=he:(he=Ah(o),he!==null&&(ye.data=he)))),(he=xw?Dw(r,o):Cw(r,o))&&(P=gl(P,"onBeforeInput"),0<P.length&&(z=new Ch("onBeforeInput","beforeinput",null,o,z),$.push({event:z,listeners:P}),z.data=he))}Zh($,i)})}function ea(r,i,o){return{instance:r,listener:i,currentTarget:o}}function gl(r,i){for(var o=i+"Capture",l=[];r!==null;){var c=r,f=c.stateNode;c.tag===5&&f!==null&&(c=f,f=Ji(r,o),f!=null&&l.unshift(ea(r,f,c)),f=Ji(r,i),f!=null&&l.push(ea(r,f,c))),r=r.return}return l}function Bs(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function tp(r,i,o,l,c){for(var f=i._reactName,m=[];o!==null&&o!==l;){var w=o,b=w.alternate,P=w.stateNode;if(b!==null&&b===l)break;w.tag===5&&P!==null&&(w=P,c?(b=Ji(o,f),b!=null&&m.unshift(ea(o,b,w))):c||(b=Ji(o,f),b!=null&&m.push(ea(o,b,w)))),o=o.return}m.length!==0&&r.push({event:i,listeners:m})}var zw=/\r\n?/g,Vw=/\u0000|\uFFFD/g;function np(r){return(typeof r=="string"?r:""+r).replace(zw,`
|
|
41
|
-
`).replace(Vw,"")}function vl(r,i,o){if(i=np(i),np(r)!==i&&o)throw Error(t(425))}function wl(){}var Lc=null,Bc=null;function kc(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Uc=typeof setTimeout=="function"?setTimeout:void 0,$w=typeof clearTimeout=="function"?clearTimeout:void 0,rp=typeof Promise=="function"?Promise:void 0,Ww=typeof queueMicrotask=="function"?queueMicrotask:typeof rp<"u"?function(r){return rp.resolve(null).then(r).catch(Qw)}:Uc;function Qw(r){setTimeout(function(){throw r})}function jc(r,i){var o=i,l=0;do{var c=o.nextSibling;if(r.removeChild(o),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(l===0){r.removeChild(c),Wo(i);return}l--}else o!=="$"&&o!=="$?"&&o!=="$!"||l++;o=c}while(o);Wo(i)}function Si(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return r}function ip(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"){if(i===0)return r;i--}else o==="/$"&&i++}r=r.previousSibling}return null}var ks=Math.random().toString(36).slice(2),mr="__reactFiber$"+ks,ta="__reactProps$"+ks,Br="__reactContainer$"+ks,zc="__reactEvents$"+ks,Hw="__reactListeners$"+ks,qw="__reactHandles$"+ks;function es(r){var i=r[mr];if(i)return i;for(var o=r.parentNode;o;){if(i=o[Br]||o[mr]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(r=ip(r);r!==null;){if(o=r[mr])return o;r=ip(r)}return i}r=o,o=r.parentNode}return null}function na(r){return r=r[mr]||r[Br],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Us(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(t(33))}function Sl(r){return r[ta]||null}var Vc=[],js=-1;function _i(r){return{current:r}}function yt(r){0>js||(r.current=Vc[js],Vc[js]=null,js--)}function ht(r,i){js++,Vc[js]=r.current,r.current=i}var bi={},Kt=_i(bi),ln=_i(!1),ts=bi;function zs(r,i){var o=r.type.contextTypes;if(!o)return bi;var l=r.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===i)return l.__reactInternalMemoizedMaskedChildContext;var c={},f;for(f in o)c[f]=i[f];return l&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=c),c}function un(r){return r=r.childContextTypes,r!=null}function _l(){yt(ln),yt(Kt)}function sp(r,i,o){if(Kt.current!==bi)throw Error(t(168));ht(Kt,i),ht(ln,o)}function op(r,i,o){var l=r.stateNode;if(i=i.childContextTypes,typeof l.getChildContext!="function")return o;l=l.getChildContext();for(var c in l)if(!(c in i))throw Error(t(108,Ue(r)||"Unknown",c));return J({},o,l)}function bl(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||bi,ts=Kt.current,ht(Kt,r),ht(ln,ln.current),!0}function ap(r,i,o){var l=r.stateNode;if(!l)throw Error(t(169));o?(r=op(r,i,ts),l.__reactInternalMemoizedMergedChildContext=r,yt(ln),yt(Kt),ht(Kt,r)):yt(ln),ht(ln,o)}var kr=null,Il=!1,$c=!1;function lp(r){kr===null?kr=[r]:kr.push(r)}function Kw(r){Il=!0,lp(r)}function Ii(){if(!$c&&kr!==null){$c=!0;var r=0,i=et;try{var o=kr;for(et=1;r<o.length;r++){var l=o[r];do l=l(!0);while(l!==null)}kr=null,Il=!1}catch(c){throw kr!==null&&(kr=kr.slice(r+1)),pt(Nr,Ii),c}finally{et=i,$c=!1}}return null}var Vs=[],$s=0,El=null,xl=0,Fn=[],Tn=0,ns=null,Ur=1,jr="";function rs(r,i){Vs[$s++]=xl,Vs[$s++]=El,El=r,xl=i}function up(r,i,o){Fn[Tn++]=Ur,Fn[Tn++]=jr,Fn[Tn++]=ns,ns=r;var l=Ur;r=jr;var c=32-He(l)-1;l&=~(1<<c),o+=1;var f=32-He(i)+c;if(30<f){var m=c-c%5;f=(l&(1<<m)-1).toString(32),l>>=m,c-=m,Ur=1<<32-He(i)+c|o<<c|l,jr=f+r}else Ur=1<<f|o<<c|l,jr=r}function Wc(r){r.return!==null&&(rs(r,1),up(r,1,0))}function Qc(r){for(;r===El;)El=Vs[--$s],Vs[$s]=null,xl=Vs[--$s],Vs[$s]=null;for(;r===ns;)ns=Fn[--Tn],Fn[Tn]=null,jr=Fn[--Tn],Fn[Tn]=null,Ur=Fn[--Tn],Fn[Tn]=null}var En=null,xn=null,vt=!1,Kn=null;function cp(r,i){var o=Nn(5,null,null,0);o.elementType="DELETED",o.stateNode=i,o.return=r,i=r.deletions,i===null?(r.deletions=[o],r.flags|=16):i.push(o)}function dp(r,i){switch(r.tag){case 5:var o=r.type;return i=i.nodeType!==1||o.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(r.stateNode=i,En=r,xn=Si(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,En=r,xn=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(o=ns!==null?{id:Ur,overflow:jr}:null,r.memoizedState={dehydrated:i,treeContext:o,retryLane:1073741824},o=Nn(18,null,null,0),o.stateNode=i,o.return=r,r.child=o,En=r,xn=null,!0):!1;default:return!1}}function Hc(r){return(r.mode&1)!==0&&(r.flags&128)===0}function qc(r){if(vt){var i=xn;if(i){var o=i;if(!dp(r,i)){if(Hc(r))throw Error(t(418));i=Si(o.nextSibling);var l=En;i&&dp(r,i)?cp(l,o):(r.flags=r.flags&-4097|2,vt=!1,En=r)}}else{if(Hc(r))throw Error(t(418));r.flags=r.flags&-4097|2,vt=!1,En=r}}}function fp(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;En=r}function Dl(r){if(r!==En)return!1;if(!vt)return fp(r),vt=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!kc(r.type,r.memoizedProps)),i&&(i=xn)){if(Hc(r))throw hp(),Error(t(418));for(;i;)cp(r,i),i=Si(i.nextSibling)}if(fp(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(t(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"){if(i===0){xn=Si(r.nextSibling);break e}i--}else o!=="$"&&o!=="$!"&&o!=="$?"||i++}r=r.nextSibling}xn=null}}else xn=En?Si(r.stateNode.nextSibling):null;return!0}function hp(){for(var r=xn;r;)r=Si(r.nextSibling)}function Ws(){xn=En=null,vt=!1}function Kc(r){Kn===null?Kn=[r]:Kn.push(r)}var Yw=q.ReactCurrentBatchConfig;function ra(r,i,o){if(r=o.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(t(309));var l=o.stateNode}if(!l)throw Error(t(147,r));var c=l,f=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===f?i.ref:(i=function(m){var w=c.refs;m===null?delete w[f]:w[f]=m},i._stringRef=f,i)}if(typeof r!="string")throw Error(t(284));if(!o._owner)throw Error(t(290,r))}return r}function Cl(r,i){throw r=Object.prototype.toString.call(i),Error(t(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function pp(r){var i=r._init;return i(r._payload)}function mp(r){function i(R,E){if(r){var F=R.deletions;F===null?(R.deletions=[E],R.flags|=16):F.push(E)}}function o(R,E){if(!r)return null;for(;E!==null;)i(R,E),E=E.sibling;return null}function l(R,E){for(R=new Map;E!==null;)E.key!==null?R.set(E.key,E):R.set(E.index,E),E=E.sibling;return R}function c(R,E){return R=Ti(R,E),R.index=0,R.sibling=null,R}function f(R,E,F){return R.index=F,r?(F=R.alternate,F!==null?(F=F.index,F<E?(R.flags|=2,E):F):(R.flags|=2,E)):(R.flags|=1048576,E)}function m(R){return r&&R.alternate===null&&(R.flags|=2),R}function w(R,E,F,H){return E===null||E.tag!==6?(E=Ud(F,R.mode,H),E.return=R,E):(E=c(E,F),E.return=R,E)}function b(R,E,F,H){var ae=F.type;return ae===x?z(R,E,F.props.children,H,F.key):E!==null&&(E.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Pt&&pp(ae)===E.type)?(H=c(E,F.props),H.ref=ra(R,E,F),H.return=R,H):(H=Jl(F.type,F.key,F.props,null,R.mode,H),H.ref=ra(R,E,F),H.return=R,H)}function P(R,E,F,H){return E===null||E.tag!==4||E.stateNode.containerInfo!==F.containerInfo||E.stateNode.implementation!==F.implementation?(E=jd(F,R.mode,H),E.return=R,E):(E=c(E,F.children||[]),E.return=R,E)}function z(R,E,F,H,ae){return E===null||E.tag!==7?(E=ds(F,R.mode,H,ae),E.return=R,E):(E=c(E,F),E.return=R,E)}function $(R,E,F){if(typeof E=="string"&&E!==""||typeof E=="number")return E=Ud(""+E,R.mode,F),E.return=R,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ce:return F=Jl(E.type,E.key,E.props,null,R.mode,F),F.ref=ra(R,null,E),F.return=R,F;case Z:return E=jd(E,R.mode,F),E.return=R,E;case Pt:var H=E._init;return $(R,H(E._payload),F)}if(Ki(E)||de(E))return E=ds(E,R.mode,F,null),E.return=R,E;Cl(R,E)}return null}function j(R,E,F,H){var ae=E!==null?E.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return ae!==null?null:w(R,E,""+F,H);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case ce:return F.key===ae?b(R,E,F,H):null;case Z:return F.key===ae?P(R,E,F,H):null;case Pt:return ae=F._init,j(R,E,ae(F._payload),H)}if(Ki(F)||de(F))return ae!==null?null:z(R,E,F,H,null);Cl(R,F)}return null}function X(R,E,F,H,ae){if(typeof H=="string"&&H!==""||typeof H=="number")return R=R.get(F)||null,w(E,R,""+H,ae);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case ce:return R=R.get(H.key===null?F:H.key)||null,b(E,R,H,ae);case Z:return R=R.get(H.key===null?F:H.key)||null,P(E,R,H,ae);case Pt:var fe=H._init;return X(R,E,F,fe(H._payload),ae)}if(Ki(H)||de(H))return R=R.get(F)||null,z(E,R,H,ae,null);Cl(E,H)}return null}function ie(R,E,F,H){for(var ae=null,fe=null,he=E,ye=E=0,$t=null;he!==null&&ye<F.length;ye++){he.index>ye?($t=he,he=null):$t=he.sibling;var qe=j(R,he,F[ye],H);if(qe===null){he===null&&(he=$t);break}r&&he&&qe.alternate===null&&i(R,he),E=f(qe,E,ye),fe===null?ae=qe:fe.sibling=qe,fe=qe,he=$t}if(ye===F.length)return o(R,he),vt&&rs(R,ye),ae;if(he===null){for(;ye<F.length;ye++)he=$(R,F[ye],H),he!==null&&(E=f(he,E,ye),fe===null?ae=he:fe.sibling=he,fe=he);return vt&&rs(R,ye),ae}for(he=l(R,he);ye<F.length;ye++)$t=X(he,R,ye,F[ye],H),$t!==null&&(r&&$t.alternate!==null&&he.delete($t.key===null?ye:$t.key),E=f($t,E,ye),fe===null?ae=$t:fe.sibling=$t,fe=$t);return r&&he.forEach(function(Mi){return i(R,Mi)}),vt&&rs(R,ye),ae}function oe(R,E,F,H){var ae=de(F);if(typeof ae!="function")throw Error(t(150));if(F=ae.call(F),F==null)throw Error(t(151));for(var fe=ae=null,he=E,ye=E=0,$t=null,qe=F.next();he!==null&&!qe.done;ye++,qe=F.next()){he.index>ye?($t=he,he=null):$t=he.sibling;var Mi=j(R,he,qe.value,H);if(Mi===null){he===null&&(he=$t);break}r&&he&&Mi.alternate===null&&i(R,he),E=f(Mi,E,ye),fe===null?ae=Mi:fe.sibling=Mi,fe=Mi,he=$t}if(qe.done)return o(R,he),vt&&rs(R,ye),ae;if(he===null){for(;!qe.done;ye++,qe=F.next())qe=$(R,qe.value,H),qe!==null&&(E=f(qe,E,ye),fe===null?ae=qe:fe.sibling=qe,fe=qe);return vt&&rs(R,ye),ae}for(he=l(R,he);!qe.done;ye++,qe=F.next())qe=X(he,R,ye,qe.value,H),qe!==null&&(r&&qe.alternate!==null&&he.delete(qe.key===null?ye:qe.key),E=f(qe,E,ye),fe===null?ae=qe:fe.sibling=qe,fe=qe);return r&&he.forEach(function(OS){return i(R,OS)}),vt&&rs(R,ye),ae}function Ot(R,E,F,H){if(typeof F=="object"&&F!==null&&F.type===x&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case ce:e:{for(var ae=F.key,fe=E;fe!==null;){if(fe.key===ae){if(ae=F.type,ae===x){if(fe.tag===7){o(R,fe.sibling),E=c(fe,F.props.children),E.return=R,R=E;break e}}else if(fe.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Pt&&pp(ae)===fe.type){o(R,fe.sibling),E=c(fe,F.props),E.ref=ra(R,fe,F),E.return=R,R=E;break e}o(R,fe);break}else i(R,fe);fe=fe.sibling}F.type===x?(E=ds(F.props.children,R.mode,H,F.key),E.return=R,R=E):(H=Jl(F.type,F.key,F.props,null,R.mode,H),H.ref=ra(R,E,F),H.return=R,R=H)}return m(R);case Z:e:{for(fe=F.key;E!==null;){if(E.key===fe)if(E.tag===4&&E.stateNode.containerInfo===F.containerInfo&&E.stateNode.implementation===F.implementation){o(R,E.sibling),E=c(E,F.children||[]),E.return=R,R=E;break e}else{o(R,E);break}else i(R,E);E=E.sibling}E=jd(F,R.mode,H),E.return=R,R=E}return m(R);case Pt:return fe=F._init,Ot(R,E,fe(F._payload),H)}if(Ki(F))return ie(R,E,F,H);if(de(F))return oe(R,E,F,H);Cl(R,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,E!==null&&E.tag===6?(o(R,E.sibling),E=c(E,F),E.return=R,R=E):(o(R,E),E=Ud(F,R.mode,H),E.return=R,R=E),m(R)):o(R,E)}return Ot}var Qs=mp(!0),yp=mp(!1),Ol=_i(null),Rl=null,Hs=null,Yc=null;function Gc(){Yc=Hs=Rl=null}function Jc(r){var i=Ol.current;yt(Ol),r._currentValue=i}function Xc(r,i,o){for(;r!==null;){var l=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,l!==null&&(l.childLanes|=i)):l!==null&&(l.childLanes&i)!==i&&(l.childLanes|=i),r===o)break;r=r.return}}function qs(r,i){Rl=r,Yc=Hs=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&(cn=!0),r.firstContext=null)}function Mn(r){var i=r._currentValue;if(Yc!==r)if(r={context:r,memoizedValue:i,next:null},Hs===null){if(Rl===null)throw Error(t(308));Hs=r,Rl.dependencies={lanes:0,firstContext:r}}else Hs=Hs.next=r;return i}var is=null;function Zc(r){is===null?is=[r]:is.push(r)}function gp(r,i,o,l){var c=i.interleaved;return c===null?(o.next=o,Zc(i)):(o.next=c.next,c.next=o),i.interleaved=o,zr(r,l)}function zr(r,i){r.lanes|=i;var o=r.alternate;for(o!==null&&(o.lanes|=i),o=r,r=r.return;r!==null;)r.childLanes|=i,o=r.alternate,o!==null&&(o.childLanes|=i),o=r,r=r.return;return o.tag===3?o.stateNode:null}var Ei=!1;function ed(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vp(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Vr(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function xi(r,i,o){var l=r.updateQueue;if(l===null)return null;if(l=l.shared,($e&2)!==0){var c=l.pending;return c===null?i.next=i:(i.next=c.next,c.next=i),l.pending=i,zr(r,o)}return c=l.interleaved,c===null?(i.next=i,Zc(l)):(i.next=c.next,c.next=i),l.interleaved=i,zr(r,o)}function Fl(r,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194240)!==0)){var l=i.lanes;l&=r.pendingLanes,o|=l,i.lanes=o,pc(r,o)}}function wp(r,i){var o=r.updateQueue,l=r.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var c=null,f=null;if(o=o.firstBaseUpdate,o!==null){do{var m={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};f===null?c=f=m:f=f.next=m,o=o.next}while(o!==null);f===null?c=f=i:f=f.next=i}else c=f=i;o={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:l.shared,effects:l.effects},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=i:r.next=i,o.lastBaseUpdate=i}function Tl(r,i,o,l){var c=r.updateQueue;Ei=!1;var f=c.firstBaseUpdate,m=c.lastBaseUpdate,w=c.shared.pending;if(w!==null){c.shared.pending=null;var b=w,P=b.next;b.next=null,m===null?f=P:m.next=P,m=b;var z=r.alternate;z!==null&&(z=z.updateQueue,w=z.lastBaseUpdate,w!==m&&(w===null?z.firstBaseUpdate=P:w.next=P,z.lastBaseUpdate=b))}if(f!==null){var $=c.baseState;m=0,z=P=b=null,w=f;do{var j=w.lane,X=w.eventTime;if((l&j)===j){z!==null&&(z=z.next={eventTime:X,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var ie=r,oe=w;switch(j=i,X=o,oe.tag){case 1:if(ie=oe.payload,typeof ie=="function"){$=ie.call(X,$,j);break e}$=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=oe.payload,j=typeof ie=="function"?ie.call(X,$,j):ie,j==null)break e;$=J({},$,j);break e;case 2:Ei=!0}}w.callback!==null&&w.lane!==0&&(r.flags|=64,j=c.effects,j===null?c.effects=[w]:j.push(w))}else X={eventTime:X,lane:j,tag:w.tag,payload:w.payload,callback:w.callback,next:null},z===null?(P=z=X,b=$):z=z.next=X,m|=j;if(w=w.next,w===null){if(w=c.shared.pending,w===null)break;j=w,w=j.next,j.next=null,c.lastBaseUpdate=j,c.shared.pending=null}}while(!0);if(z===null&&(b=$),c.baseState=b,c.firstBaseUpdate=P,c.lastBaseUpdate=z,i=c.shared.interleaved,i!==null){c=i;do m|=c.lane,c=c.next;while(c!==i)}else f===null&&(c.shared.lanes=0);as|=m,r.lanes=m,r.memoizedState=$}}function Sp(r,i,o){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var l=r[i],c=l.callback;if(c!==null){if(l.callback=null,l=o,typeof c!="function")throw Error(t(191,c));c.call(l)}}}var ia={},yr=_i(ia),sa=_i(ia),oa=_i(ia);function ss(r){if(r===ia)throw Error(t(174));return r}function td(r,i){switch(ht(oa,i),ht(sa,r),ht(yr,ia),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Yi(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=Yi(i,r)}yt(yr),ht(yr,i)}function Ks(){yt(yr),yt(sa),yt(oa)}function _p(r){ss(oa.current);var i=ss(yr.current),o=Yi(i,r.type);i!==o&&(ht(sa,r),ht(yr,o))}function nd(r){sa.current===r&&(yt(yr),yt(sa))}var _t=_i(0);function Ml(r){for(var i=r;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var rd=[];function id(){for(var r=0;r<rd.length;r++)rd[r]._workInProgressVersionPrimary=null;rd.length=0}var Al=q.ReactCurrentDispatcher,sd=q.ReactCurrentBatchConfig,os=0,bt=null,Lt=null,zt=null,Pl=!1,aa=!1,la=0,Gw=0;function Yt(){throw Error(t(321))}function od(r,i){if(i===null)return!1;for(var o=0;o<i.length&&o<r.length;o++)if(!qn(r[o],i[o]))return!1;return!0}function ad(r,i,o,l,c,f){if(os=f,bt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Al.current=r===null||r.memoizedState===null?eS:tS,r=o(l,c),aa){f=0;do{if(aa=!1,la=0,25<=f)throw Error(t(301));f+=1,zt=Lt=null,i.updateQueue=null,Al.current=nS,r=o(l,c)}while(aa)}if(Al.current=Bl,i=Lt!==null&&Lt.next!==null,os=0,zt=Lt=bt=null,Pl=!1,i)throw Error(t(300));return r}function ld(){var r=la!==0;return la=0,r}function gr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?bt.memoizedState=zt=r:zt=zt.next=r,zt}function An(){if(Lt===null){var r=bt.alternate;r=r!==null?r.memoizedState:null}else r=Lt.next;var i=zt===null?bt.memoizedState:zt.next;if(i!==null)zt=i,Lt=r;else{if(r===null)throw Error(t(310));Lt=r,r={memoizedState:Lt.memoizedState,baseState:Lt.baseState,baseQueue:Lt.baseQueue,queue:Lt.queue,next:null},zt===null?bt.memoizedState=zt=r:zt=zt.next=r}return zt}function ua(r,i){return typeof i=="function"?i(r):i}function ud(r){var i=An(),o=i.queue;if(o===null)throw Error(t(311));o.lastRenderedReducer=r;var l=Lt,c=l.baseQueue,f=o.pending;if(f!==null){if(c!==null){var m=c.next;c.next=f.next,f.next=m}l.baseQueue=c=f,o.pending=null}if(c!==null){f=c.next,l=l.baseState;var w=m=null,b=null,P=f;do{var z=P.lane;if((os&z)===z)b!==null&&(b=b.next={lane:0,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),l=P.hasEagerState?P.eagerState:r(l,P.action);else{var $={lane:z,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null};b===null?(w=b=$,m=l):b=b.next=$,bt.lanes|=z,as|=z}P=P.next}while(P!==null&&P!==f);b===null?m=l:b.next=w,qn(l,i.memoizedState)||(cn=!0),i.memoizedState=l,i.baseState=m,i.baseQueue=b,o.lastRenderedState=l}if(r=o.interleaved,r!==null){c=r;do f=c.lane,bt.lanes|=f,as|=f,c=c.next;while(c!==r)}else c===null&&(o.lanes=0);return[i.memoizedState,o.dispatch]}function cd(r){var i=An(),o=i.queue;if(o===null)throw Error(t(311));o.lastRenderedReducer=r;var l=o.dispatch,c=o.pending,f=i.memoizedState;if(c!==null){o.pending=null;var m=c=c.next;do f=r(f,m.action),m=m.next;while(m!==c);qn(f,i.memoizedState)||(cn=!0),i.memoizedState=f,i.baseQueue===null&&(i.baseState=f),o.lastRenderedState=f}return[f,l]}function bp(){}function Ip(r,i){var o=bt,l=An(),c=i(),f=!qn(l.memoizedState,c);if(f&&(l.memoizedState=c,cn=!0),l=l.queue,dd(Dp.bind(null,o,l,r),[r]),l.getSnapshot!==i||f||zt!==null&&zt.memoizedState.tag&1){if(o.flags|=2048,ca(9,xp.bind(null,o,l,c,i),void 0,null),Vt===null)throw Error(t(349));(os&30)!==0||Ep(o,i,c)}return c}function Ep(r,i,o){r.flags|=16384,r={getSnapshot:i,value:o},i=bt.updateQueue,i===null?(i={lastEffect:null,stores:null},bt.updateQueue=i,i.stores=[r]):(o=i.stores,o===null?i.stores=[r]:o.push(r))}function xp(r,i,o,l){i.value=o,i.getSnapshot=l,Cp(i)&&Op(r)}function Dp(r,i,o){return o(function(){Cp(i)&&Op(r)})}function Cp(r){var i=r.getSnapshot;r=r.value;try{var o=i();return!qn(r,o)}catch{return!0}}function Op(r){var i=zr(r,1);i!==null&&Xn(i,r,1,-1)}function Rp(r){var i=gr();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:r},i.queue=r,r=r.dispatch=Zw.bind(null,bt,r),[i.memoizedState,r]}function ca(r,i,o,l){return r={tag:r,create:i,destroy:o,deps:l,next:null},i=bt.updateQueue,i===null?(i={lastEffect:null,stores:null},bt.updateQueue=i,i.lastEffect=r.next=r):(o=i.lastEffect,o===null?i.lastEffect=r.next=r:(l=o.next,o.next=r,r.next=l,i.lastEffect=r)),r}function Fp(){return An().memoizedState}function Nl(r,i,o,l){var c=gr();bt.flags|=r,c.memoizedState=ca(1|i,o,void 0,l===void 0?null:l)}function Ll(r,i,o,l){var c=An();l=l===void 0?null:l;var f=void 0;if(Lt!==null){var m=Lt.memoizedState;if(f=m.destroy,l!==null&&od(l,m.deps)){c.memoizedState=ca(i,o,f,l);return}}bt.flags|=r,c.memoizedState=ca(1|i,o,f,l)}function Tp(r,i){return Nl(8390656,8,r,i)}function dd(r,i){return Ll(2048,8,r,i)}function Mp(r,i){return Ll(4,2,r,i)}function Ap(r,i){return Ll(4,4,r,i)}function Pp(r,i){if(typeof i=="function")return r=r(),i(r),function(){i(null)};if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function Np(r,i,o){return o=o!=null?o.concat([r]):null,Ll(4,4,Pp.bind(null,i,r),o)}function fd(){}function Lp(r,i){var o=An();i=i===void 0?null:i;var l=o.memoizedState;return l!==null&&i!==null&&od(i,l[1])?l[0]:(o.memoizedState=[r,i],r)}function Bp(r,i){var o=An();i=i===void 0?null:i;var l=o.memoizedState;return l!==null&&i!==null&&od(i,l[1])?l[0]:(r=r(),o.memoizedState=[r,i],r)}function kp(r,i,o){return(os&21)===0?(r.baseState&&(r.baseState=!1,cn=!0),r.memoizedState=o):(qn(o,i)||(o=ph(),bt.lanes|=o,as|=o,r.baseState=!0),i)}function Jw(r,i){var o=et;et=o!==0&&4>o?o:4,r(!0);var l=sd.transition;sd.transition={};try{r(!1),i()}finally{et=o,sd.transition=l}}function Up(){return An().memoizedState}function Xw(r,i,o){var l=Ri(r);if(o={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null},jp(r))zp(i,o);else if(o=gp(r,i,o,l),o!==null){var c=nn();Xn(o,r,l,c),Vp(o,i,l)}}function Zw(r,i,o){var l=Ri(r),c={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(jp(r))zp(i,c);else{var f=r.alternate;if(r.lanes===0&&(f===null||f.lanes===0)&&(f=i.lastRenderedReducer,f!==null))try{var m=i.lastRenderedState,w=f(m,o);if(c.hasEagerState=!0,c.eagerState=w,qn(w,m)){var b=i.interleaved;b===null?(c.next=c,Zc(i)):(c.next=b.next,b.next=c),i.interleaved=c;return}}catch{}finally{}o=gp(r,i,c,l),o!==null&&(c=nn(),Xn(o,r,l,c),Vp(o,i,l))}}function jp(r){var i=r.alternate;return r===bt||i!==null&&i===bt}function zp(r,i){aa=Pl=!0;var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}function Vp(r,i,o){if((o&4194240)!==0){var l=i.lanes;l&=r.pendingLanes,o|=l,i.lanes=o,pc(r,o)}}var Bl={readContext:Mn,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useInsertionEffect:Yt,useLayoutEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useMutableSource:Yt,useSyncExternalStore:Yt,useId:Yt,unstable_isNewReconciler:!1},eS={readContext:Mn,useCallback:function(r,i){return gr().memoizedState=[r,i===void 0?null:i],r},useContext:Mn,useEffect:Tp,useImperativeHandle:function(r,i,o){return o=o!=null?o.concat([r]):null,Nl(4194308,4,Pp.bind(null,i,r),o)},useLayoutEffect:function(r,i){return Nl(4194308,4,r,i)},useInsertionEffect:function(r,i){return Nl(4,2,r,i)},useMemo:function(r,i){var o=gr();return i=i===void 0?null:i,r=r(),o.memoizedState=[r,i],r},useReducer:function(r,i,o){var l=gr();return i=o!==void 0?o(i):i,l.memoizedState=l.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},l.queue=r,r=r.dispatch=Xw.bind(null,bt,r),[l.memoizedState,r]},useRef:function(r){var i=gr();return r={current:r},i.memoizedState=r},useState:Rp,useDebugValue:fd,useDeferredValue:function(r){return gr().memoizedState=r},useTransition:function(){var r=Rp(!1),i=r[0];return r=Jw.bind(null,r[1]),gr().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,o){var l=bt,c=gr();if(vt){if(o===void 0)throw Error(t(407));o=o()}else{if(o=i(),Vt===null)throw Error(t(349));(os&30)!==0||Ep(l,i,o)}c.memoizedState=o;var f={value:o,getSnapshot:i};return c.queue=f,Tp(Dp.bind(null,l,f,r),[r]),l.flags|=2048,ca(9,xp.bind(null,l,f,o,i),void 0,null),o},useId:function(){var r=gr(),i=Vt.identifierPrefix;if(vt){var o=jr,l=Ur;o=(l&~(1<<32-He(l)-1)).toString(32)+o,i=":"+i+"R"+o,o=la++,0<o&&(i+="H"+o.toString(32)),i+=":"}else o=Gw++,i=":"+i+"r"+o.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},tS={readContext:Mn,useCallback:Lp,useContext:Mn,useEffect:dd,useImperativeHandle:Np,useInsertionEffect:Mp,useLayoutEffect:Ap,useMemo:Bp,useReducer:ud,useRef:Fp,useState:function(){return ud(ua)},useDebugValue:fd,useDeferredValue:function(r){var i=An();return kp(i,Lt.memoizedState,r)},useTransition:function(){var r=ud(ua)[0],i=An().memoizedState;return[r,i]},useMutableSource:bp,useSyncExternalStore:Ip,useId:Up,unstable_isNewReconciler:!1},nS={readContext:Mn,useCallback:Lp,useContext:Mn,useEffect:dd,useImperativeHandle:Np,useInsertionEffect:Mp,useLayoutEffect:Ap,useMemo:Bp,useReducer:cd,useRef:Fp,useState:function(){return cd(ua)},useDebugValue:fd,useDeferredValue:function(r){var i=An();return Lt===null?i.memoizedState=r:kp(i,Lt.memoizedState,r)},useTransition:function(){var r=cd(ua)[0],i=An().memoizedState;return[r,i]},useMutableSource:bp,useSyncExternalStore:Ip,useId:Up,unstable_isNewReconciler:!1};function Yn(r,i){if(r&&r.defaultProps){i=J({},i),r=r.defaultProps;for(var o in r)i[o]===void 0&&(i[o]=r[o]);return i}return i}function hd(r,i,o,l){i=r.memoizedState,o=o(l,i),o=o==null?i:J({},i,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var kl={isMounted:function(r){return(r=r._reactInternals)?ne(r)===r:!1},enqueueSetState:function(r,i,o){r=r._reactInternals;var l=nn(),c=Ri(r),f=Vr(l,c);f.payload=i,o!=null&&(f.callback=o),i=xi(r,f,c),i!==null&&(Xn(i,r,c,l),Fl(i,r,c))},enqueueReplaceState:function(r,i,o){r=r._reactInternals;var l=nn(),c=Ri(r),f=Vr(l,c);f.tag=1,f.payload=i,o!=null&&(f.callback=o),i=xi(r,f,c),i!==null&&(Xn(i,r,c,l),Fl(i,r,c))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var o=nn(),l=Ri(r),c=Vr(o,l);c.tag=2,i!=null&&(c.callback=i),i=xi(r,c,l),i!==null&&(Xn(i,r,l,o),Fl(i,r,l))}};function $p(r,i,o,l,c,f,m){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(l,f,m):i.prototype&&i.prototype.isPureReactComponent?!Go(o,l)||!Go(c,f):!0}function Wp(r,i,o){var l=!1,c=bi,f=i.contextType;return typeof f=="object"&&f!==null?f=Mn(f):(c=un(i)?ts:Kt.current,l=i.contextTypes,f=(l=l!=null)?zs(r,c):bi),i=new i(o,f),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=kl,r.stateNode=i,i._reactInternals=r,l&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=c,r.__reactInternalMemoizedMaskedChildContext=f),i}function Qp(r,i,o,l){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,l),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,l),i.state!==r&&kl.enqueueReplaceState(i,i.state,null)}function pd(r,i,o,l){var c=r.stateNode;c.props=o,c.state=r.memoizedState,c.refs={},ed(r);var f=i.contextType;typeof f=="object"&&f!==null?c.context=Mn(f):(f=un(i)?ts:Kt.current,c.context=zs(r,f)),c.state=r.memoizedState,f=i.getDerivedStateFromProps,typeof f=="function"&&(hd(r,i,f,o),c.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(i=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),i!==c.state&&kl.enqueueReplaceState(c,c.state,null),Tl(r,o,c,l),c.state=r.memoizedState),typeof c.componentDidMount=="function"&&(r.flags|=4194308)}function Ys(r,i){try{var o="",l=i;do o+=we(l),l=l.return;while(l);var c=o}catch(f){c=`
|
|
42
|
-
Error generating stack: `+f.message+`
|
|
43
|
-
`+f.stack}return{value:r,source:i,stack:c,digest:null}}function md(r,i,o){return{value:r,source:null,stack:o??null,digest:i??null}}function yd(r,i){try{console.error(i.value)}catch(o){setTimeout(function(){throw o})}}var rS=typeof WeakMap=="function"?WeakMap:Map;function Hp(r,i,o){o=Vr(-1,o),o.tag=3,o.payload={element:null};var l=i.value;return o.callback=function(){Ql||(Ql=!0,Td=l),yd(r,i)},o}function qp(r,i,o){o=Vr(-1,o),o.tag=3;var l=r.type.getDerivedStateFromError;if(typeof l=="function"){var c=i.value;o.payload=function(){return l(c)},o.callback=function(){yd(r,i)}}var f=r.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(o.callback=function(){yd(r,i),typeof l!="function"&&(Ci===null?Ci=new Set([this]):Ci.add(this));var m=i.stack;this.componentDidCatch(i.value,{componentStack:m!==null?m:""})}),o}function Kp(r,i,o){var l=r.pingCache;if(l===null){l=r.pingCache=new rS;var c=new Set;l.set(i,c)}else c=l.get(i),c===void 0&&(c=new Set,l.set(i,c));c.has(o)||(c.add(o),r=gS.bind(null,r,i,o),i.then(r,r))}function Yp(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function Gp(r,i,o,l,c){return(r.mode&1)===0?(r===i?r.flags|=65536:(r.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(i=Vr(-1,1),i.tag=2,xi(o,i,1))),o.lanes|=1),r):(r.flags|=65536,r.lanes=c,r)}var iS=q.ReactCurrentOwner,cn=!1;function tn(r,i,o,l){i.child=r===null?yp(i,null,o,l):Qs(i,r.child,o,l)}function Jp(r,i,o,l,c){o=o.render;var f=i.ref;return qs(i,c),l=ad(r,i,o,l,f,c),o=ld(),r!==null&&!cn?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~c,$r(r,i,c)):(vt&&o&&Wc(i),i.flags|=1,tn(r,i,l,c),i.child)}function Xp(r,i,o,l,c){if(r===null){var f=o.type;return typeof f=="function"&&!kd(f)&&f.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(i.tag=15,i.type=f,Zp(r,i,f,l,c)):(r=Jl(o.type,null,l,i,i.mode,c),r.ref=i.ref,r.return=i,i.child=r)}if(f=r.child,(r.lanes&c)===0){var m=f.memoizedProps;if(o=o.compare,o=o!==null?o:Go,o(m,l)&&r.ref===i.ref)return $r(r,i,c)}return i.flags|=1,r=Ti(f,l),r.ref=i.ref,r.return=i,i.child=r}function Zp(r,i,o,l,c){if(r!==null){var f=r.memoizedProps;if(Go(f,l)&&r.ref===i.ref)if(cn=!1,i.pendingProps=l=f,(r.lanes&c)!==0)(r.flags&131072)!==0&&(cn=!0);else return i.lanes=r.lanes,$r(r,i,c)}return gd(r,i,o,l,c)}function em(r,i,o){var l=i.pendingProps,c=l.children,f=r!==null?r.memoizedState:null;if(l.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},ht(Js,Dn),Dn|=o;else{if((o&1073741824)===0)return r=f!==null?f.baseLanes|o:o,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,ht(Js,Dn),Dn|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=f!==null?f.baseLanes:o,ht(Js,Dn),Dn|=l}else f!==null?(l=f.baseLanes|o,i.memoizedState=null):l=o,ht(Js,Dn),Dn|=l;return tn(r,i,c,o),i.child}function tm(r,i){var o=i.ref;(r===null&&o!==null||r!==null&&r.ref!==o)&&(i.flags|=512,i.flags|=2097152)}function gd(r,i,o,l,c){var f=un(o)?ts:Kt.current;return f=zs(i,f),qs(i,c),o=ad(r,i,o,l,f,c),l=ld(),r!==null&&!cn?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~c,$r(r,i,c)):(vt&&l&&Wc(i),i.flags|=1,tn(r,i,o,c),i.child)}function nm(r,i,o,l,c){if(un(o)){var f=!0;bl(i)}else f=!1;if(qs(i,c),i.stateNode===null)jl(r,i),Wp(i,o,l),pd(i,o,l,c),l=!0;else if(r===null){var m=i.stateNode,w=i.memoizedProps;m.props=w;var b=m.context,P=o.contextType;typeof P=="object"&&P!==null?P=Mn(P):(P=un(o)?ts:Kt.current,P=zs(i,P));var z=o.getDerivedStateFromProps,$=typeof z=="function"||typeof m.getSnapshotBeforeUpdate=="function";$||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w!==l||b!==P)&&Qp(i,m,l,P),Ei=!1;var j=i.memoizedState;m.state=j,Tl(i,l,m,c),b=i.memoizedState,w!==l||j!==b||ln.current||Ei?(typeof z=="function"&&(hd(i,o,z,l),b=i.memoizedState),(w=Ei||$p(i,o,w,l,j,b,P))?($||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(i.flags|=4194308)):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=l,i.memoizedState=b),m.props=l,m.state=b,m.context=P,l=w):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{m=i.stateNode,vp(r,i),w=i.memoizedProps,P=i.type===i.elementType?w:Yn(i.type,w),m.props=P,$=i.pendingProps,j=m.context,b=o.contextType,typeof b=="object"&&b!==null?b=Mn(b):(b=un(o)?ts:Kt.current,b=zs(i,b));var X=o.getDerivedStateFromProps;(z=typeof X=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w!==$||j!==b)&&Qp(i,m,l,b),Ei=!1,j=i.memoizedState,m.state=j,Tl(i,l,m,c);var ie=i.memoizedState;w!==$||j!==ie||ln.current||Ei?(typeof X=="function"&&(hd(i,o,X,l),ie=i.memoizedState),(P=Ei||$p(i,o,P,l,j,ie,b)||!1)?(z||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,ie,b),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,ie,b)),typeof m.componentDidUpdate=="function"&&(i.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof m.componentDidUpdate!="function"||w===r.memoizedProps&&j===r.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===r.memoizedProps&&j===r.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=ie),m.props=l,m.state=ie,m.context=b,l=P):(typeof m.componentDidUpdate!="function"||w===r.memoizedProps&&j===r.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===r.memoizedProps&&j===r.memoizedState||(i.flags|=1024),l=!1)}return vd(r,i,o,l,f,c)}function vd(r,i,o,l,c,f){tm(r,i);var m=(i.flags&128)!==0;if(!l&&!m)return c&&ap(i,o,!1),$r(r,i,f);l=i.stateNode,iS.current=i;var w=m&&typeof o.getDerivedStateFromError!="function"?null:l.render();return i.flags|=1,r!==null&&m?(i.child=Qs(i,r.child,null,f),i.child=Qs(i,null,w,f)):tn(r,i,w,f),i.memoizedState=l.state,c&&ap(i,o,!0),i.child}function rm(r){var i=r.stateNode;i.pendingContext?sp(r,i.pendingContext,i.pendingContext!==i.context):i.context&&sp(r,i.context,!1),td(r,i.containerInfo)}function im(r,i,o,l,c){return Ws(),Kc(c),i.flags|=256,tn(r,i,o,l),i.child}var wd={dehydrated:null,treeContext:null,retryLane:0};function Sd(r){return{baseLanes:r,cachePool:null,transitions:null}}function sm(r,i,o){var l=i.pendingProps,c=_t.current,f=!1,m=(i.flags&128)!==0,w;if((w=m)||(w=r!==null&&r.memoizedState===null?!1:(c&2)!==0),w?(f=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(c|=1),ht(_t,c&1),r===null)return qc(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((i.mode&1)===0?i.lanes=1:r.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(m=l.children,r=l.fallback,f?(l=i.mode,f=i.child,m={mode:"hidden",children:m},(l&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=m):f=Xl(m,l,0,null),r=ds(r,l,o,null),f.return=i,r.return=i,f.sibling=r,i.child=f,i.child.memoizedState=Sd(o),i.memoizedState=wd,r):_d(i,m));if(c=r.memoizedState,c!==null&&(w=c.dehydrated,w!==null))return sS(r,i,m,l,w,c,o);if(f){f=l.fallback,m=i.mode,c=r.child,w=c.sibling;var b={mode:"hidden",children:l.children};return(m&1)===0&&i.child!==c?(l=i.child,l.childLanes=0,l.pendingProps=b,i.deletions=null):(l=Ti(c,b),l.subtreeFlags=c.subtreeFlags&14680064),w!==null?f=Ti(w,f):(f=ds(f,m,o,null),f.flags|=2),f.return=i,l.return=i,l.sibling=f,i.child=l,l=f,f=i.child,m=r.child.memoizedState,m=m===null?Sd(o):{baseLanes:m.baseLanes|o,cachePool:null,transitions:m.transitions},f.memoizedState=m,f.childLanes=r.childLanes&~o,i.memoizedState=wd,l}return f=r.child,r=f.sibling,l=Ti(f,{mode:"visible",children:l.children}),(i.mode&1)===0&&(l.lanes=o),l.return=i,l.sibling=null,r!==null&&(o=i.deletions,o===null?(i.deletions=[r],i.flags|=16):o.push(r)),i.child=l,i.memoizedState=null,l}function _d(r,i){return i=Xl({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function Ul(r,i,o,l){return l!==null&&Kc(l),Qs(i,r.child,null,o),r=_d(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function sS(r,i,o,l,c,f,m){if(o)return i.flags&256?(i.flags&=-257,l=md(Error(t(422))),Ul(r,i,m,l)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(f=l.fallback,c=i.mode,l=Xl({mode:"visible",children:l.children},c,0,null),f=ds(f,c,m,null),f.flags|=2,l.return=i,f.return=i,l.sibling=f,i.child=l,(i.mode&1)!==0&&Qs(i,r.child,null,m),i.child.memoizedState=Sd(m),i.memoizedState=wd,f);if((i.mode&1)===0)return Ul(r,i,m,null);if(c.data==="$!"){if(l=c.nextSibling&&c.nextSibling.dataset,l)var w=l.dgst;return l=w,f=Error(t(419)),l=md(f,l,void 0),Ul(r,i,m,l)}if(w=(m&r.childLanes)!==0,cn||w){if(l=Vt,l!==null){switch(m&-m){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(l.suspendedLanes|m))!==0?0:c,c!==0&&c!==f.retryLane&&(f.retryLane=c,zr(r,c),Xn(l,r,c,-1))}return Bd(),l=md(Error(t(421))),Ul(r,i,m,l)}return c.data==="$?"?(i.flags|=128,i.child=r.child,i=vS.bind(null,r),c._reactRetry=i,null):(r=f.treeContext,xn=Si(c.nextSibling),En=i,vt=!0,Kn=null,r!==null&&(Fn[Tn++]=Ur,Fn[Tn++]=jr,Fn[Tn++]=ns,Ur=r.id,jr=r.overflow,ns=i),i=_d(i,l.children),i.flags|=4096,i)}function om(r,i,o){r.lanes|=i;var l=r.alternate;l!==null&&(l.lanes|=i),Xc(r.return,i,o)}function bd(r,i,o,l,c){var f=r.memoizedState;f===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:c}:(f.isBackwards=i,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=o,f.tailMode=c)}function am(r,i,o){var l=i.pendingProps,c=l.revealOrder,f=l.tail;if(tn(r,i,l.children,o),l=_t.current,(l&2)!==0)l=l&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&om(r,o,i);else if(r.tag===19)om(r,o,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}l&=1}if(ht(_t,l),(i.mode&1)===0)i.memoizedState=null;else switch(c){case"forwards":for(o=i.child,c=null;o!==null;)r=o.alternate,r!==null&&Ml(r)===null&&(c=o),o=o.sibling;o=c,o===null?(c=i.child,i.child=null):(c=o.sibling,o.sibling=null),bd(i,!1,c,o,f);break;case"backwards":for(o=null,c=i.child,i.child=null;c!==null;){if(r=c.alternate,r!==null&&Ml(r)===null){i.child=c;break}r=c.sibling,c.sibling=o,o=c,c=r}bd(i,!0,o,null,f);break;case"together":bd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function jl(r,i){(i.mode&1)===0&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function $r(r,i,o){if(r!==null&&(i.dependencies=r.dependencies),as|=i.lanes,(o&i.childLanes)===0)return null;if(r!==null&&i.child!==r.child)throw Error(t(153));if(i.child!==null){for(r=i.child,o=Ti(r,r.pendingProps),i.child=o,o.return=i;r.sibling!==null;)r=r.sibling,o=o.sibling=Ti(r,r.pendingProps),o.return=i;o.sibling=null}return i.child}function oS(r,i,o){switch(i.tag){case 3:rm(i),Ws();break;case 5:_p(i);break;case 1:un(i.type)&&bl(i);break;case 4:td(i,i.stateNode.containerInfo);break;case 10:var l=i.type._context,c=i.memoizedProps.value;ht(Ol,l._currentValue),l._currentValue=c;break;case 13:if(l=i.memoizedState,l!==null)return l.dehydrated!==null?(ht(_t,_t.current&1),i.flags|=128,null):(o&i.child.childLanes)!==0?sm(r,i,o):(ht(_t,_t.current&1),r=$r(r,i,o),r!==null?r.sibling:null);ht(_t,_t.current&1);break;case 19:if(l=(o&i.childLanes)!==0,(r.flags&128)!==0){if(l)return am(r,i,o);i.flags|=128}if(c=i.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ht(_t,_t.current),l)break;return null;case 22:case 23:return i.lanes=0,em(r,i,o)}return $r(r,i,o)}var lm,Id,um,cm;lm=function(r,i){for(var o=i.child;o!==null;){if(o.tag===5||o.tag===6)r.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Id=function(){},um=function(r,i,o,l){var c=r.memoizedProps;if(c!==l){r=i.stateNode,ss(yr.current);var f=null;switch(o){case"input":c=Ds(r,c),l=Ds(r,l),f=[];break;case"select":c=J({},c,{value:void 0}),l=J({},l,{value:void 0}),f=[];break;case"textarea":c=To(r,c),l=To(r,l),f=[];break;default:typeof c.onClick!="function"&&typeof l.onClick=="function"&&(r.onclick=wl)}Os(o,l);var m;o=null;for(P in c)if(!l.hasOwnProperty(P)&&c.hasOwnProperty(P)&&c[P]!=null)if(P==="style"){var w=c[P];for(m in w)w.hasOwnProperty(m)&&(o||(o={}),o[m]="")}else P!=="dangerouslySetInnerHTML"&&P!=="children"&&P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&P!=="autoFocus"&&(a.hasOwnProperty(P)?f||(f=[]):(f=f||[]).push(P,null));for(P in l){var b=l[P];if(w=c!=null?c[P]:void 0,l.hasOwnProperty(P)&&b!==w&&(b!=null||w!=null))if(P==="style")if(w){for(m in w)!w.hasOwnProperty(m)||b&&b.hasOwnProperty(m)||(o||(o={}),o[m]="");for(m in b)b.hasOwnProperty(m)&&w[m]!==b[m]&&(o||(o={}),o[m]=b[m])}else o||(f||(f=[]),f.push(P,o)),o=b;else P==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,w=w?w.__html:void 0,b!=null&&w!==b&&(f=f||[]).push(P,b)):P==="children"?typeof b!="string"&&typeof b!="number"||(f=f||[]).push(P,""+b):P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&(a.hasOwnProperty(P)?(b!=null&&P==="onScroll"&&mt("scroll",r),f||w===b||(f=[])):(f=f||[]).push(P,b))}o&&(f=f||[]).push("style",o);var P=f;(i.updateQueue=P)&&(i.flags|=4)}},cm=function(r,i,o,l){o!==l&&(i.flags|=4)};function da(r,i){if(!vt)switch(r.tailMode){case"hidden":i=r.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:l.sibling=null}}function Gt(r){var i=r.alternate!==null&&r.alternate.child===r.child,o=0,l=0;if(i)for(var c=r.child;c!==null;)o|=c.lanes|c.childLanes,l|=c.subtreeFlags&14680064,l|=c.flags&14680064,c.return=r,c=c.sibling;else for(c=r.child;c!==null;)o|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=r,c=c.sibling;return r.subtreeFlags|=l,r.childLanes=o,i}function aS(r,i,o){var l=i.pendingProps;switch(Qc(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gt(i),null;case 1:return un(i.type)&&_l(),Gt(i),null;case 3:return l=i.stateNode,Ks(),yt(ln),yt(Kt),id(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(Dl(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Kn!==null&&(Pd(Kn),Kn=null))),Id(r,i),Gt(i),null;case 5:nd(i);var c=ss(oa.current);if(o=i.type,r!==null&&i.stateNode!=null)um(r,i,o,l,c),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!l){if(i.stateNode===null)throw Error(t(166));return Gt(i),null}if(r=ss(yr.current),Dl(i)){l=i.stateNode,o=i.type;var f=i.memoizedProps;switch(l[mr]=i,l[ta]=f,r=(i.mode&1)!==0,o){case"dialog":mt("cancel",l),mt("close",l);break;case"iframe":case"object":case"embed":mt("load",l);break;case"video":case"audio":for(c=0;c<Xo.length;c++)mt(Xo[c],l);break;case"source":mt("error",l);break;case"img":case"image":case"link":mt("error",l),mt("load",l);break;case"details":mt("toggle",l);break;case"input":Ka(l,f),mt("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!f.multiple},mt("invalid",l);break;case"textarea":Ga(l,f),mt("invalid",l)}Os(o,f),c=null;for(var m in f)if(f.hasOwnProperty(m)){var w=f[m];m==="children"?typeof w=="string"?l.textContent!==w&&(f.suppressHydrationWarning!==!0&&vl(l.textContent,w,r),c=["children",w]):typeof w=="number"&&l.textContent!==""+w&&(f.suppressHydrationWarning!==!0&&vl(l.textContent,w,r),c=["children",""+w]):a.hasOwnProperty(m)&&w!=null&&m==="onScroll"&&mt("scroll",l)}switch(o){case"input":xs(l),Ya(l,f,!0);break;case"textarea":xs(l),ui(l);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(l.onclick=wl)}l=c,i.updateQueue=l,l!==null&&(i.flags|=4)}else{m=c.nodeType===9?c:c.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Mo(o)),r==="http://www.w3.org/1999/xhtml"?o==="script"?(r=m.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof l.is=="string"?r=m.createElement(o,{is:l.is}):(r=m.createElement(o),o==="select"&&(m=r,l.multiple?m.multiple=!0:l.size&&(m.size=l.size))):r=m.createElementNS(r,o),r[mr]=i,r[ta]=l,lm(r,i,!1,!1),i.stateNode=r;e:{switch(m=Po(o,l),o){case"dialog":mt("cancel",r),mt("close",r),c=l;break;case"iframe":case"object":case"embed":mt("load",r),c=l;break;case"video":case"audio":for(c=0;c<Xo.length;c++)mt(Xo[c],r);c=l;break;case"source":mt("error",r),c=l;break;case"img":case"image":case"link":mt("error",r),mt("load",r),c=l;break;case"details":mt("toggle",r),c=l;break;case"input":Ka(r,l),c=Ds(r,l),mt("invalid",r);break;case"option":c=l;break;case"select":r._wrapperState={wasMultiple:!!l.multiple},c=J({},l,{value:void 0}),mt("invalid",r);break;case"textarea":Ga(r,l),c=To(r,l),mt("invalid",r);break;default:c=l}Os(o,c),w=c;for(f in w)if(w.hasOwnProperty(f)){var b=w[f];f==="style"?Ao(r,b):f==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,b!=null&&Rn(r,b)):f==="children"?typeof b=="string"?(o!=="textarea"||b!=="")&&ci(r,b):typeof b=="number"&&ci(r,""+b):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(a.hasOwnProperty(f)?b!=null&&f==="onScroll"&&mt("scroll",r):b!=null&&Y(r,f,b,m))}switch(o){case"input":xs(r),Ya(r,l,!1);break;case"textarea":xs(r),ui(r);break;case"option":l.value!=null&&r.setAttribute("value",""+je(l.value));break;case"select":r.multiple=!!l.multiple,f=l.value,f!=null?li(r,!!l.multiple,f,!1):l.defaultValue!=null&&li(r,!!l.multiple,l.defaultValue,!0);break;default:typeof c.onClick=="function"&&(r.onclick=wl)}switch(o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Gt(i),null;case 6:if(r&&i.stateNode!=null)cm(r,i,r.memoizedProps,l);else{if(typeof l!="string"&&i.stateNode===null)throw Error(t(166));if(o=ss(oa.current),ss(yr.current),Dl(i)){if(l=i.stateNode,o=i.memoizedProps,l[mr]=i,(f=l.nodeValue!==o)&&(r=En,r!==null))switch(r.tag){case 3:vl(l.nodeValue,o,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&vl(l.nodeValue,o,(r.mode&1)!==0)}f&&(i.flags|=4)}else l=(o.nodeType===9?o:o.ownerDocument).createTextNode(l),l[mr]=i,i.stateNode=l}return Gt(i),null;case 13:if(yt(_t),l=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(vt&&xn!==null&&(i.mode&1)!==0&&(i.flags&128)===0)hp(),Ws(),i.flags|=98560,f=!1;else if(f=Dl(i),l!==null&&l.dehydrated!==null){if(r===null){if(!f)throw Error(t(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(t(317));f[mr]=i}else Ws(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Gt(i),f=!1}else Kn!==null&&(Pd(Kn),Kn=null),f=!0;if(!f)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=o,i):(l=l!==null,l!==(r!==null&&r.memoizedState!==null)&&l&&(i.child.flags|=8192,(i.mode&1)!==0&&(r===null||(_t.current&1)!==0?Bt===0&&(Bt=3):Bd())),i.updateQueue!==null&&(i.flags|=4),Gt(i),null);case 4:return Ks(),Id(r,i),r===null&&Zo(i.stateNode.containerInfo),Gt(i),null;case 10:return Jc(i.type._context),Gt(i),null;case 17:return un(i.type)&&_l(),Gt(i),null;case 19:if(yt(_t),f=i.memoizedState,f===null)return Gt(i),null;if(l=(i.flags&128)!==0,m=f.rendering,m===null)if(l)da(f,!1);else{if(Bt!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(m=Ml(r),m!==null){for(i.flags|=128,da(f,!1),l=m.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),i.subtreeFlags=0,l=o,o=i.child;o!==null;)f=o,r=l,f.flags&=14680066,m=f.alternate,m===null?(f.childLanes=0,f.lanes=r,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=m.childLanes,f.lanes=m.lanes,f.child=m.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=m.memoizedProps,f.memoizedState=m.memoizedState,f.updateQueue=m.updateQueue,f.type=m.type,r=m.dependencies,f.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),o=o.sibling;return ht(_t,_t.current&1|2),i.child}r=r.sibling}f.tail!==null&&Qe()>Xs&&(i.flags|=128,l=!0,da(f,!1),i.lanes=4194304)}else{if(!l)if(r=Ml(m),r!==null){if(i.flags|=128,l=!0,o=r.updateQueue,o!==null&&(i.updateQueue=o,i.flags|=4),da(f,!0),f.tail===null&&f.tailMode==="hidden"&&!m.alternate&&!vt)return Gt(i),null}else 2*Qe()-f.renderingStartTime>Xs&&o!==1073741824&&(i.flags|=128,l=!0,da(f,!1),i.lanes=4194304);f.isBackwards?(m.sibling=i.child,i.child=m):(o=f.last,o!==null?o.sibling=m:i.child=m,f.last=m)}return f.tail!==null?(i=f.tail,f.rendering=i,f.tail=i.sibling,f.renderingStartTime=Qe(),i.sibling=null,o=_t.current,ht(_t,l?o&1|2:o&1),i):(Gt(i),null);case 22:case 23:return Ld(),l=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==l&&(i.flags|=8192),l&&(i.mode&1)!==0?(Dn&1073741824)!==0&&(Gt(i),i.subtreeFlags&6&&(i.flags|=8192)):Gt(i),null;case 24:return null;case 25:return null}throw Error(t(156,i.tag))}function lS(r,i){switch(Qc(i),i.tag){case 1:return un(i.type)&&_l(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return Ks(),yt(ln),yt(Kt),id(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return nd(i),null;case 13:if(yt(_t),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(t(340));Ws()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return yt(_t),null;case 4:return Ks(),null;case 10:return Jc(i.type._context),null;case 22:case 23:return Ld(),null;case 24:return null;default:return null}}var zl=!1,Jt=!1,uS=typeof WeakSet=="function"?WeakSet:Set,te=null;function Gs(r,i){var o=r.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(l){Dt(r,i,l)}else o.current=null}function Ed(r,i,o){try{o()}catch(l){Dt(r,i,l)}}var dm=!1;function cS(r,i){if(Lc=al,r=$h(),Oc(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var c=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{o.nodeType,f.nodeType}catch{o=null;break e}var m=0,w=-1,b=-1,P=0,z=0,$=r,j=null;t:for(;;){for(var X;$!==o||c!==0&&$.nodeType!==3||(w=m+c),$!==f||l!==0&&$.nodeType!==3||(b=m+l),$.nodeType===3&&(m+=$.nodeValue.length),(X=$.firstChild)!==null;)j=$,$=X;for(;;){if($===r)break t;if(j===o&&++P===c&&(w=m),j===f&&++z===l&&(b=m),(X=$.nextSibling)!==null)break;$=j,j=$.parentNode}$=X}o=w===-1||b===-1?null:{start:w,end:b}}else o=null}o=o||{start:0,end:0}}else o=null;for(Bc={focusedElem:r,selectionRange:o},al=!1,te=i;te!==null;)if(i=te,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,te=r;else for(;te!==null;){i=te;try{var ie=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(ie!==null){var oe=ie.memoizedProps,Ot=ie.memoizedState,R=i.stateNode,E=R.getSnapshotBeforeUpdate(i.elementType===i.type?oe:Yn(i.type,oe),Ot);R.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var F=i.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(H){Dt(i,i.return,H)}if(r=i.sibling,r!==null){r.return=i.return,te=r;break}te=i.return}return ie=dm,dm=!1,ie}function fa(r,i,o){var l=i.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var c=l=l.next;do{if((c.tag&r)===r){var f=c.destroy;c.destroy=void 0,f!==void 0&&Ed(i,o,f)}c=c.next}while(c!==l)}}function Vl(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&r)===r){var l=o.create;o.destroy=l()}o=o.next}while(o!==i)}}function xd(r){var i=r.ref;if(i!==null){var o=r.stateNode;switch(r.tag){case 5:r=o;break;default:r=o}typeof i=="function"?i(r):i.current=r}}function fm(r){var i=r.alternate;i!==null&&(r.alternate=null,fm(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[mr],delete i[ta],delete i[zc],delete i[Hw],delete i[qw])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function hm(r){return r.tag===5||r.tag===3||r.tag===4}function pm(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||hm(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Dd(r,i,o){var l=r.tag;if(l===5||l===6)r=r.stateNode,i?o.nodeType===8?o.parentNode.insertBefore(r,i):o.insertBefore(r,i):(o.nodeType===8?(i=o.parentNode,i.insertBefore(r,o)):(i=o,i.appendChild(r)),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=wl));else if(l!==4&&(r=r.child,r!==null))for(Dd(r,i,o),r=r.sibling;r!==null;)Dd(r,i,o),r=r.sibling}function Cd(r,i,o){var l=r.tag;if(l===5||l===6)r=r.stateNode,i?o.insertBefore(r,i):o.appendChild(r);else if(l!==4&&(r=r.child,r!==null))for(Cd(r,i,o),r=r.sibling;r!==null;)Cd(r,i,o),r=r.sibling}var Qt=null,Gn=!1;function Di(r,i,o){for(o=o.child;o!==null;)mm(r,i,o),o=o.sibling}function mm(r,i,o){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(lt,o)}catch{}switch(o.tag){case 5:Jt||Gs(o,i);case 6:var l=Qt,c=Gn;Qt=null,Di(r,i,o),Qt=l,Gn=c,Qt!==null&&(Gn?(r=Qt,o=o.stateNode,r.nodeType===8?r.parentNode.removeChild(o):r.removeChild(o)):Qt.removeChild(o.stateNode));break;case 18:Qt!==null&&(Gn?(r=Qt,o=o.stateNode,r.nodeType===8?jc(r.parentNode,o):r.nodeType===1&&jc(r,o),Wo(r)):jc(Qt,o.stateNode));break;case 4:l=Qt,c=Gn,Qt=o.stateNode.containerInfo,Gn=!0,Di(r,i,o),Qt=l,Gn=c;break;case 0:case 11:case 14:case 15:if(!Jt&&(l=o.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){c=l=l.next;do{var f=c,m=f.destroy;f=f.tag,m!==void 0&&((f&2)!==0||(f&4)!==0)&&Ed(o,i,m),c=c.next}while(c!==l)}Di(r,i,o);break;case 1:if(!Jt&&(Gs(o,i),l=o.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=o.memoizedProps,l.state=o.memoizedState,l.componentWillUnmount()}catch(w){Dt(o,i,w)}Di(r,i,o);break;case 21:Di(r,i,o);break;case 22:o.mode&1?(Jt=(l=Jt)||o.memoizedState!==null,Di(r,i,o),Jt=l):Di(r,i,o);break;default:Di(r,i,o)}}function ym(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var o=r.stateNode;o===null&&(o=r.stateNode=new uS),i.forEach(function(l){var c=wS.bind(null,r,l);o.has(l)||(o.add(l),l.then(c,c))})}}function Jn(r,i){var o=i.deletions;if(o!==null)for(var l=0;l<o.length;l++){var c=o[l];try{var f=r,m=i,w=m;e:for(;w!==null;){switch(w.tag){case 5:Qt=w.stateNode,Gn=!1;break e;case 3:Qt=w.stateNode.containerInfo,Gn=!0;break e;case 4:Qt=w.stateNode.containerInfo,Gn=!0;break e}w=w.return}if(Qt===null)throw Error(t(160));mm(f,m,c),Qt=null,Gn=!1;var b=c.alternate;b!==null&&(b.return=null),c.return=null}catch(P){Dt(c,i,P)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)gm(i,r),i=i.sibling}function gm(r,i){var o=r.alternate,l=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Jn(i,r),vr(r),l&4){try{fa(3,r,r.return),Vl(3,r)}catch(oe){Dt(r,r.return,oe)}try{fa(5,r,r.return)}catch(oe){Dt(r,r.return,oe)}}break;case 1:Jn(i,r),vr(r),l&512&&o!==null&&Gs(o,o.return);break;case 5:if(Jn(i,r),vr(r),l&512&&o!==null&&Gs(o,o.return),r.flags&32){var c=r.stateNode;try{ci(c,"")}catch(oe){Dt(r,r.return,oe)}}if(l&4&&(c=r.stateNode,c!=null)){var f=r.memoizedProps,m=o!==null?o.memoizedProps:f,w=r.type,b=r.updateQueue;if(r.updateQueue=null,b!==null)try{w==="input"&&f.type==="radio"&&f.name!=null&&ur(c,f),Po(w,m);var P=Po(w,f);for(m=0;m<b.length;m+=2){var z=b[m],$=b[m+1];z==="style"?Ao(c,$):z==="dangerouslySetInnerHTML"?Rn(c,$):z==="children"?ci(c,$):Y(c,z,$,P)}switch(w){case"input":Fo(c,f);break;case"textarea":cr(c,f);break;case"select":var j=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!f.multiple;var X=f.value;X!=null?li(c,!!f.multiple,X,!1):j!==!!f.multiple&&(f.defaultValue!=null?li(c,!!f.multiple,f.defaultValue,!0):li(c,!!f.multiple,f.multiple?[]:"",!1))}c[ta]=f}catch(oe){Dt(r,r.return,oe)}}break;case 6:if(Jn(i,r),vr(r),l&4){if(r.stateNode===null)throw Error(t(162));c=r.stateNode,f=r.memoizedProps;try{c.nodeValue=f}catch(oe){Dt(r,r.return,oe)}}break;case 3:if(Jn(i,r),vr(r),l&4&&o!==null&&o.memoizedState.isDehydrated)try{Wo(i.containerInfo)}catch(oe){Dt(r,r.return,oe)}break;case 4:Jn(i,r),vr(r);break;case 13:Jn(i,r),vr(r),c=r.child,c.flags&8192&&(f=c.memoizedState!==null,c.stateNode.isHidden=f,!f||c.alternate!==null&&c.alternate.memoizedState!==null||(Fd=Qe())),l&4&&ym(r);break;case 22:if(z=o!==null&&o.memoizedState!==null,r.mode&1?(Jt=(P=Jt)||z,Jn(i,r),Jt=P):Jn(i,r),vr(r),l&8192){if(P=r.memoizedState!==null,(r.stateNode.isHidden=P)&&!z&&(r.mode&1)!==0)for(te=r,z=r.child;z!==null;){for($=te=z;te!==null;){switch(j=te,X=j.child,j.tag){case 0:case 11:case 14:case 15:fa(4,j,j.return);break;case 1:Gs(j,j.return);var ie=j.stateNode;if(typeof ie.componentWillUnmount=="function"){l=j,o=j.return;try{i=l,ie.props=i.memoizedProps,ie.state=i.memoizedState,ie.componentWillUnmount()}catch(oe){Dt(l,o,oe)}}break;case 5:Gs(j,j.return);break;case 22:if(j.memoizedState!==null){Sm($);continue}}X!==null?(X.return=j,te=X):Sm($)}z=z.sibling}e:for(z=null,$=r;;){if($.tag===5){if(z===null){z=$;try{c=$.stateNode,P?(f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(w=$.stateNode,b=$.memoizedProps.style,m=b!=null&&b.hasOwnProperty("display")?b.display:null,w.style.display=Qn("display",m))}catch(oe){Dt(r,r.return,oe)}}}else if($.tag===6){if(z===null)try{$.stateNode.nodeValue=P?"":$.memoizedProps}catch(oe){Dt(r,r.return,oe)}}else if(($.tag!==22&&$.tag!==23||$.memoizedState===null||$===r)&&$.child!==null){$.child.return=$,$=$.child;continue}if($===r)break e;for(;$.sibling===null;){if($.return===null||$.return===r)break e;z===$&&(z=null),$=$.return}z===$&&(z=null),$.sibling.return=$.return,$=$.sibling}}break;case 19:Jn(i,r),vr(r),l&4&&ym(r);break;case 21:break;default:Jn(i,r),vr(r)}}function vr(r){var i=r.flags;if(i&2){try{e:{for(var o=r.return;o!==null;){if(hm(o)){var l=o;break e}o=o.return}throw Error(t(160))}switch(l.tag){case 5:var c=l.stateNode;l.flags&32&&(ci(c,""),l.flags&=-33);var f=pm(r);Cd(r,f,c);break;case 3:case 4:var m=l.stateNode.containerInfo,w=pm(r);Dd(r,w,m);break;default:throw Error(t(161))}}catch(b){Dt(r,r.return,b)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function dS(r,i,o){te=r,vm(r)}function vm(r,i,o){for(var l=(r.mode&1)!==0;te!==null;){var c=te,f=c.child;if(c.tag===22&&l){var m=c.memoizedState!==null||zl;if(!m){var w=c.alternate,b=w!==null&&w.memoizedState!==null||Jt;w=zl;var P=Jt;if(zl=m,(Jt=b)&&!P)for(te=c;te!==null;)m=te,b=m.child,m.tag===22&&m.memoizedState!==null?_m(c):b!==null?(b.return=m,te=b):_m(c);for(;f!==null;)te=f,vm(f),f=f.sibling;te=c,zl=w,Jt=P}wm(r)}else(c.subtreeFlags&8772)!==0&&f!==null?(f.return=c,te=f):wm(r)}}function wm(r){for(;te!==null;){var i=te;if((i.flags&8772)!==0){var o=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Jt||Vl(5,i);break;case 1:var l=i.stateNode;if(i.flags&4&&!Jt)if(o===null)l.componentDidMount();else{var c=i.elementType===i.type?o.memoizedProps:Yn(i.type,o.memoizedProps);l.componentDidUpdate(c,o.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var f=i.updateQueue;f!==null&&Sp(i,f,l);break;case 3:var m=i.updateQueue;if(m!==null){if(o=null,i.child!==null)switch(i.child.tag){case 5:o=i.child.stateNode;break;case 1:o=i.child.stateNode}Sp(i,m,o)}break;case 5:var w=i.stateNode;if(o===null&&i.flags&4){o=w;var b=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":b.autoFocus&&o.focus();break;case"img":b.src&&(o.src=b.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var P=i.alternate;if(P!==null){var z=P.memoizedState;if(z!==null){var $=z.dehydrated;$!==null&&Wo($)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}Jt||i.flags&512&&xd(i)}catch(j){Dt(i,i.return,j)}}if(i===r){te=null;break}if(o=i.sibling,o!==null){o.return=i.return,te=o;break}te=i.return}}function Sm(r){for(;te!==null;){var i=te;if(i===r){te=null;break}var o=i.sibling;if(o!==null){o.return=i.return,te=o;break}te=i.return}}function _m(r){for(;te!==null;){var i=te;try{switch(i.tag){case 0:case 11:case 15:var o=i.return;try{Vl(4,i)}catch(b){Dt(i,o,b)}break;case 1:var l=i.stateNode;if(typeof l.componentDidMount=="function"){var c=i.return;try{l.componentDidMount()}catch(b){Dt(i,c,b)}}var f=i.return;try{xd(i)}catch(b){Dt(i,f,b)}break;case 5:var m=i.return;try{xd(i)}catch(b){Dt(i,m,b)}}}catch(b){Dt(i,i.return,b)}if(i===r){te=null;break}var w=i.sibling;if(w!==null){w.return=i.return,te=w;break}te=i.return}}var fS=Math.ceil,$l=q.ReactCurrentDispatcher,Od=q.ReactCurrentOwner,Pn=q.ReactCurrentBatchConfig,$e=0,Vt=null,Mt=null,Ht=0,Dn=0,Js=_i(0),Bt=0,ha=null,as=0,Wl=0,Rd=0,pa=null,dn=null,Fd=0,Xs=1/0,Wr=null,Ql=!1,Td=null,Ci=null,Hl=!1,Oi=null,ql=0,ma=0,Md=null,Kl=-1,Yl=0;function nn(){return($e&6)!==0?Qe():Kl!==-1?Kl:Kl=Qe()}function Ri(r){return(r.mode&1)===0?1:($e&2)!==0&&Ht!==0?Ht&-Ht:Yw.transition!==null?(Yl===0&&(Yl=ph()),Yl):(r=et,r!==0||(r=window.event,r=r===void 0?16:Ih(r.type)),r)}function Xn(r,i,o,l){if(50<ma)throw ma=0,Md=null,Error(t(185));Uo(r,o,l),(($e&2)===0||r!==Vt)&&(r===Vt&&(($e&2)===0&&(Wl|=o),Bt===4&&Fi(r,Ht)),fn(r,l),o===1&&$e===0&&(i.mode&1)===0&&(Xs=Qe()+500,Il&&Ii()))}function fn(r,i){var o=r.callbackNode;Y0(r,i);var l=il(r,r===Vt?Ht:0);if(l===0)o!==null&&Pr(o),r.callbackNode=null,r.callbackPriority=0;else if(i=l&-l,r.callbackPriority!==i){if(o!=null&&Pr(o),i===1)r.tag===0?Kw(Im.bind(null,r)):lp(Im.bind(null,r)),Ww(function(){($e&6)===0&&Ii()}),o=null;else{switch(mh(l)){case 1:o=Nr;break;case 4:o=pr;break;case 16:o=Lr;break;case 536870912:o=Be;break;default:o=Lr}o=Tm(o,bm.bind(null,r))}r.callbackPriority=i,r.callbackNode=o}}function bm(r,i){if(Kl=-1,Yl=0,($e&6)!==0)throw Error(t(327));var o=r.callbackNode;if(Zs()&&r.callbackNode!==o)return null;var l=il(r,r===Vt?Ht:0);if(l===0)return null;if((l&30)!==0||(l&r.expiredLanes)!==0||i)i=Gl(r,l);else{i=l;var c=$e;$e|=2;var f=xm();(Vt!==r||Ht!==i)&&(Wr=null,Xs=Qe()+500,us(r,i));do try{mS();break}catch(w){Em(r,w)}while(!0);Gc(),$l.current=f,$e=c,Mt!==null?i=0:(Vt=null,Ht=0,i=Bt)}if(i!==0){if(i===2&&(c=fc(r),c!==0&&(l=c,i=Ad(r,c))),i===1)throw o=ha,us(r,0),Fi(r,l),fn(r,Qe()),o;if(i===6)Fi(r,l);else{if(c=r.current.alternate,(l&30)===0&&!hS(c)&&(i=Gl(r,l),i===2&&(f=fc(r),f!==0&&(l=f,i=Ad(r,f))),i===1))throw o=ha,us(r,0),Fi(r,l),fn(r,Qe()),o;switch(r.finishedWork=c,r.finishedLanes=l,i){case 0:case 1:throw Error(t(345));case 2:cs(r,dn,Wr);break;case 3:if(Fi(r,l),(l&130023424)===l&&(i=Fd+500-Qe(),10<i)){if(il(r,0)!==0)break;if(c=r.suspendedLanes,(c&l)!==l){nn(),r.pingedLanes|=r.suspendedLanes&c;break}r.timeoutHandle=Uc(cs.bind(null,r,dn,Wr),i);break}cs(r,dn,Wr);break;case 4:if(Fi(r,l),(l&4194240)===l)break;for(i=r.eventTimes,c=-1;0<l;){var m=31-He(l);f=1<<m,m=i[m],m>c&&(c=m),l&=~f}if(l=c,l=Qe()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*fS(l/1960))-l,10<l){r.timeoutHandle=Uc(cs.bind(null,r,dn,Wr),l);break}cs(r,dn,Wr);break;case 5:cs(r,dn,Wr);break;default:throw Error(t(329))}}}return fn(r,Qe()),r.callbackNode===o?bm.bind(null,r):null}function Ad(r,i){var o=pa;return r.current.memoizedState.isDehydrated&&(us(r,i).flags|=256),r=Gl(r,i),r!==2&&(i=dn,dn=o,i!==null&&Pd(i)),r}function Pd(r){dn===null?dn=r:dn.push.apply(dn,r)}function hS(r){for(var i=r;;){if(i.flags&16384){var o=i.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var l=0;l<o.length;l++){var c=o[l],f=c.getSnapshot;c=c.value;try{if(!qn(f(),c))return!1}catch{return!1}}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Fi(r,i){for(i&=~Rd,i&=~Wl,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var o=31-He(i),l=1<<o;r[o]=-1,i&=~l}}function Im(r){if(($e&6)!==0)throw Error(t(327));Zs();var i=il(r,0);if((i&1)===0)return fn(r,Qe()),null;var o=Gl(r,i);if(r.tag!==0&&o===2){var l=fc(r);l!==0&&(i=l,o=Ad(r,l))}if(o===1)throw o=ha,us(r,0),Fi(r,i),fn(r,Qe()),o;if(o===6)throw Error(t(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,cs(r,dn,Wr),fn(r,Qe()),null}function Nd(r,i){var o=$e;$e|=1;try{return r(i)}finally{$e=o,$e===0&&(Xs=Qe()+500,Il&&Ii())}}function ls(r){Oi!==null&&Oi.tag===0&&($e&6)===0&&Zs();var i=$e;$e|=1;var o=Pn.transition,l=et;try{if(Pn.transition=null,et=1,r)return r()}finally{et=l,Pn.transition=o,$e=i,($e&6)===0&&Ii()}}function Ld(){Dn=Js.current,yt(Js)}function us(r,i){r.finishedWork=null,r.finishedLanes=0;var o=r.timeoutHandle;if(o!==-1&&(r.timeoutHandle=-1,$w(o)),Mt!==null)for(o=Mt.return;o!==null;){var l=o;switch(Qc(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&_l();break;case 3:Ks(),yt(ln),yt(Kt),id();break;case 5:nd(l);break;case 4:Ks();break;case 13:yt(_t);break;case 19:yt(_t);break;case 10:Jc(l.type._context);break;case 22:case 23:Ld()}o=o.return}if(Vt=r,Mt=r=Ti(r.current,null),Ht=Dn=i,Bt=0,ha=null,Rd=Wl=as=0,dn=pa=null,is!==null){for(i=0;i<is.length;i++)if(o=is[i],l=o.interleaved,l!==null){o.interleaved=null;var c=l.next,f=o.pending;if(f!==null){var m=f.next;f.next=c,l.next=m}o.pending=l}is=null}return r}function Em(r,i){do{var o=Mt;try{if(Gc(),Al.current=Bl,Pl){for(var l=bt.memoizedState;l!==null;){var c=l.queue;c!==null&&(c.pending=null),l=l.next}Pl=!1}if(os=0,zt=Lt=bt=null,aa=!1,la=0,Od.current=null,o===null||o.return===null){Bt=1,ha=i,Mt=null;break}e:{var f=r,m=o.return,w=o,b=i;if(i=Ht,w.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){var P=b,z=w,$=z.tag;if((z.mode&1)===0&&($===0||$===11||$===15)){var j=z.alternate;j?(z.updateQueue=j.updateQueue,z.memoizedState=j.memoizedState,z.lanes=j.lanes):(z.updateQueue=null,z.memoizedState=null)}var X=Yp(m);if(X!==null){X.flags&=-257,Gp(X,m,w,f,i),X.mode&1&&Kp(f,P,i),i=X,b=P;var ie=i.updateQueue;if(ie===null){var oe=new Set;oe.add(b),i.updateQueue=oe}else ie.add(b);break e}else{if((i&1)===0){Kp(f,P,i),Bd();break e}b=Error(t(426))}}else if(vt&&w.mode&1){var Ot=Yp(m);if(Ot!==null){(Ot.flags&65536)===0&&(Ot.flags|=256),Gp(Ot,m,w,f,i),Kc(Ys(b,w));break e}}f=b=Ys(b,w),Bt!==4&&(Bt=2),pa===null?pa=[f]:pa.push(f),f=m;do{switch(f.tag){case 3:f.flags|=65536,i&=-i,f.lanes|=i;var R=Hp(f,b,i);wp(f,R);break e;case 1:w=b;var E=f.type,F=f.stateNode;if((f.flags&128)===0&&(typeof E.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(Ci===null||!Ci.has(F)))){f.flags|=65536,i&=-i,f.lanes|=i;var H=qp(f,w,i);wp(f,H);break e}}f=f.return}while(f!==null)}Cm(o)}catch(ae){i=ae,Mt===o&&o!==null&&(Mt=o=o.return);continue}break}while(!0)}function xm(){var r=$l.current;return $l.current=Bl,r===null?Bl:r}function Bd(){(Bt===0||Bt===3||Bt===2)&&(Bt=4),Vt===null||(as&268435455)===0&&(Wl&268435455)===0||Fi(Vt,Ht)}function Gl(r,i){var o=$e;$e|=2;var l=xm();(Vt!==r||Ht!==i)&&(Wr=null,us(r,i));do try{pS();break}catch(c){Em(r,c)}while(!0);if(Gc(),$e=o,$l.current=l,Mt!==null)throw Error(t(261));return Vt=null,Ht=0,Bt}function pS(){for(;Mt!==null;)Dm(Mt)}function mS(){for(;Mt!==null&&!Xi();)Dm(Mt)}function Dm(r){var i=Fm(r.alternate,r,Dn);r.memoizedProps=r.pendingProps,i===null?Cm(r):Mt=i,Od.current=null}function Cm(r){var i=r;do{var o=i.alternate;if(r=i.return,(i.flags&32768)===0){if(o=aS(o,i,Dn),o!==null){Mt=o;return}}else{if(o=lS(o,i),o!==null){o.flags&=32767,Mt=o;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Bt=6,Mt=null;return}}if(i=i.sibling,i!==null){Mt=i;return}Mt=i=r}while(i!==null);Bt===0&&(Bt=5)}function cs(r,i,o){var l=et,c=Pn.transition;try{Pn.transition=null,et=1,yS(r,i,o,l)}finally{Pn.transition=c,et=l}return null}function yS(r,i,o,l){do Zs();while(Oi!==null);if(($e&6)!==0)throw Error(t(327));o=r.finishedWork;var c=r.finishedLanes;if(o===null)return null;if(r.finishedWork=null,r.finishedLanes=0,o===r.current)throw Error(t(177));r.callbackNode=null,r.callbackPriority=0;var f=o.lanes|o.childLanes;if(G0(r,f),r===Vt&&(Mt=Vt=null,Ht=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Hl||(Hl=!0,Tm(Lr,function(){return Zs(),null})),f=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||f){f=Pn.transition,Pn.transition=null;var m=et;et=1;var w=$e;$e|=4,Od.current=null,cS(r,o),gm(o,r),Lw(Bc),al=!!Lc,Bc=Lc=null,r.current=o,dS(o),Hn(),$e=w,et=m,Pn.transition=f}else r.current=o;if(Hl&&(Hl=!1,Oi=r,ql=c),f=r.pendingLanes,f===0&&(Ci=null),Zi(o.stateNode),fn(r,Qe()),i!==null)for(l=r.onRecoverableError,o=0;o<i.length;o++)c=i[o],l(c.value,{componentStack:c.stack,digest:c.digest});if(Ql)throw Ql=!1,r=Td,Td=null,r;return(ql&1)!==0&&r.tag!==0&&Zs(),f=r.pendingLanes,(f&1)!==0?r===Md?ma++:(ma=0,Md=r):ma=0,Ii(),null}function Zs(){if(Oi!==null){var r=mh(ql),i=Pn.transition,o=et;try{if(Pn.transition=null,et=16>r?16:r,Oi===null)var l=!1;else{if(r=Oi,Oi=null,ql=0,($e&6)!==0)throw Error(t(331));var c=$e;for($e|=4,te=r.current;te!==null;){var f=te,m=f.child;if((te.flags&16)!==0){var w=f.deletions;if(w!==null){for(var b=0;b<w.length;b++){var P=w[b];for(te=P;te!==null;){var z=te;switch(z.tag){case 0:case 11:case 15:fa(8,z,f)}var $=z.child;if($!==null)$.return=z,te=$;else for(;te!==null;){z=te;var j=z.sibling,X=z.return;if(fm(z),z===P){te=null;break}if(j!==null){j.return=X,te=j;break}te=X}}}var ie=f.alternate;if(ie!==null){var oe=ie.child;if(oe!==null){ie.child=null;do{var Ot=oe.sibling;oe.sibling=null,oe=Ot}while(oe!==null)}}te=f}}if((f.subtreeFlags&2064)!==0&&m!==null)m.return=f,te=m;else e:for(;te!==null;){if(f=te,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:fa(9,f,f.return)}var R=f.sibling;if(R!==null){R.return=f.return,te=R;break e}te=f.return}}var E=r.current;for(te=E;te!==null;){m=te;var F=m.child;if((m.subtreeFlags&2064)!==0&&F!==null)F.return=m,te=F;else e:for(m=E;te!==null;){if(w=te,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:Vl(9,w)}}catch(ae){Dt(w,w.return,ae)}if(w===m){te=null;break e}var H=w.sibling;if(H!==null){H.return=w.return,te=H;break e}te=w.return}}if($e=c,Ii(),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(lt,r)}catch{}l=!0}return l}finally{et=o,Pn.transition=i}}return!1}function Om(r,i,o){i=Ys(o,i),i=Hp(r,i,1),r=xi(r,i,1),i=nn(),r!==null&&(Uo(r,1,i),fn(r,i))}function Dt(r,i,o){if(r.tag===3)Om(r,r,o);else for(;i!==null;){if(i.tag===3){Om(i,r,o);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ci===null||!Ci.has(l))){r=Ys(o,r),r=qp(i,r,1),i=xi(i,r,1),r=nn(),i!==null&&(Uo(i,1,r),fn(i,r));break}}i=i.return}}function gS(r,i,o){var l=r.pingCache;l!==null&&l.delete(i),i=nn(),r.pingedLanes|=r.suspendedLanes&o,Vt===r&&(Ht&o)===o&&(Bt===4||Bt===3&&(Ht&130023424)===Ht&&500>Qe()-Fd?us(r,0):Rd|=o),fn(r,i)}function Rm(r,i){i===0&&((r.mode&1)===0?i=1:(i=rl,rl<<=1,(rl&130023424)===0&&(rl=4194304)));var o=nn();r=zr(r,i),r!==null&&(Uo(r,i,o),fn(r,o))}function vS(r){var i=r.memoizedState,o=0;i!==null&&(o=i.retryLane),Rm(r,o)}function wS(r,i){var o=0;switch(r.tag){case 13:var l=r.stateNode,c=r.memoizedState;c!==null&&(o=c.retryLane);break;case 19:l=r.stateNode;break;default:throw Error(t(314))}l!==null&&l.delete(i),Rm(r,o)}var Fm;Fm=function(r,i,o){if(r!==null)if(r.memoizedProps!==i.pendingProps||ln.current)cn=!0;else{if((r.lanes&o)===0&&(i.flags&128)===0)return cn=!1,oS(r,i,o);cn=(r.flags&131072)!==0}else cn=!1,vt&&(i.flags&1048576)!==0&&up(i,xl,i.index);switch(i.lanes=0,i.tag){case 2:var l=i.type;jl(r,i),r=i.pendingProps;var c=zs(i,Kt.current);qs(i,o),c=ad(null,i,l,r,c,o);var f=ld();return i.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,un(l)?(f=!0,bl(i)):f=!1,i.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,ed(i),c.updater=kl,i.stateNode=c,c._reactInternals=i,pd(i,l,r,o),i=vd(null,i,l,!0,f,o)):(i.tag=0,vt&&f&&Wc(i),tn(null,i,c,o),i=i.child),i;case 16:l=i.elementType;e:{switch(jl(r,i),r=i.pendingProps,c=l._init,l=c(l._payload),i.type=l,c=i.tag=_S(l),r=Yn(l,r),c){case 0:i=gd(null,i,l,r,o);break e;case 1:i=nm(null,i,l,r,o);break e;case 11:i=Jp(null,i,l,r,o);break e;case 14:i=Xp(null,i,l,Yn(l.type,r),o);break e}throw Error(t(306,l,""))}return i;case 0:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:Yn(l,c),gd(r,i,l,c,o);case 1:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:Yn(l,c),nm(r,i,l,c,o);case 3:e:{if(rm(i),r===null)throw Error(t(387));l=i.pendingProps,f=i.memoizedState,c=f.element,vp(r,i),Tl(i,l,null,o);var m=i.memoizedState;if(l=m.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},i.updateQueue.baseState=f,i.memoizedState=f,i.flags&256){c=Ys(Error(t(423)),i),i=im(r,i,l,o,c);break e}else if(l!==c){c=Ys(Error(t(424)),i),i=im(r,i,l,o,c);break e}else for(xn=Si(i.stateNode.containerInfo.firstChild),En=i,vt=!0,Kn=null,o=yp(i,null,l,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Ws(),l===c){i=$r(r,i,o);break e}tn(r,i,l,o)}i=i.child}return i;case 5:return _p(i),r===null&&qc(i),l=i.type,c=i.pendingProps,f=r!==null?r.memoizedProps:null,m=c.children,kc(l,c)?m=null:f!==null&&kc(l,f)&&(i.flags|=32),tm(r,i),tn(r,i,m,o),i.child;case 6:return r===null&&qc(i),null;case 13:return sm(r,i,o);case 4:return td(i,i.stateNode.containerInfo),l=i.pendingProps,r===null?i.child=Qs(i,null,l,o):tn(r,i,l,o),i.child;case 11:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:Yn(l,c),Jp(r,i,l,c,o);case 7:return tn(r,i,i.pendingProps,o),i.child;case 8:return tn(r,i,i.pendingProps.children,o),i.child;case 12:return tn(r,i,i.pendingProps.children,o),i.child;case 10:e:{if(l=i.type._context,c=i.pendingProps,f=i.memoizedProps,m=c.value,ht(Ol,l._currentValue),l._currentValue=m,f!==null)if(qn(f.value,m)){if(f.children===c.children&&!ln.current){i=$r(r,i,o);break e}}else for(f=i.child,f!==null&&(f.return=i);f!==null;){var w=f.dependencies;if(w!==null){m=f.child;for(var b=w.firstContext;b!==null;){if(b.context===l){if(f.tag===1){b=Vr(-1,o&-o),b.tag=2;var P=f.updateQueue;if(P!==null){P=P.shared;var z=P.pending;z===null?b.next=b:(b.next=z.next,z.next=b),P.pending=b}}f.lanes|=o,b=f.alternate,b!==null&&(b.lanes|=o),Xc(f.return,o,i),w.lanes|=o;break}b=b.next}}else if(f.tag===10)m=f.type===i.type?null:f.child;else if(f.tag===18){if(m=f.return,m===null)throw Error(t(341));m.lanes|=o,w=m.alternate,w!==null&&(w.lanes|=o),Xc(m,o,i),m=f.sibling}else m=f.child;if(m!==null)m.return=f;else for(m=f;m!==null;){if(m===i){m=null;break}if(f=m.sibling,f!==null){f.return=m.return,m=f;break}m=m.return}f=m}tn(r,i,c.children,o),i=i.child}return i;case 9:return c=i.type,l=i.pendingProps.children,qs(i,o),c=Mn(c),l=l(c),i.flags|=1,tn(r,i,l,o),i.child;case 14:return l=i.type,c=Yn(l,i.pendingProps),c=Yn(l.type,c),Xp(r,i,l,c,o);case 15:return Zp(r,i,i.type,i.pendingProps,o);case 17:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:Yn(l,c),jl(r,i),i.tag=1,un(l)?(r=!0,bl(i)):r=!1,qs(i,o),Wp(i,l,c),pd(i,l,c,o),vd(null,i,l,!0,r,o);case 19:return am(r,i,o);case 22:return em(r,i,o)}throw Error(t(156,i.tag))};function Tm(r,i){return pt(r,i)}function SS(r,i,o,l){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(r,i,o,l){return new SS(r,i,o,l)}function kd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function _S(r){if(typeof r=="function")return kd(r)?1:0;if(r!=null){if(r=r.$$typeof,r===We)return 11;if(r===Tt)return 14}return 2}function Ti(r,i){var o=r.alternate;return o===null?(o=Nn(r.tag,i,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=i,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&14680064,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,i=r.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o}function Jl(r,i,o,l,c,f){var m=2;if(l=r,typeof r=="function")kd(r)&&(m=1);else if(typeof r=="string")m=5;else e:switch(r){case x:return ds(o.children,c,f,i);case V:m=8,c|=8;break;case pe:return r=Nn(12,o,i,c|2),r.elementType=pe,r.lanes=f,r;case Xe:return r=Nn(13,o,i,c),r.elementType=Xe,r.lanes=f,r;case dt:return r=Nn(19,o,i,c),r.elementType=dt,r.lanes=f,r;case at:return Xl(o,c,f,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case ue:m=10;break e;case Ye:m=9;break e;case We:m=11;break e;case Tt:m=14;break e;case Pt:m=16,l=null;break e}throw Error(t(130,r==null?r:typeof r,""))}return i=Nn(m,o,i,c),i.elementType=r,i.type=l,i.lanes=f,i}function ds(r,i,o,l){return r=Nn(7,r,l,i),r.lanes=o,r}function Xl(r,i,o,l){return r=Nn(22,r,l,i),r.elementType=at,r.lanes=o,r.stateNode={isHidden:!1},r}function Ud(r,i,o){return r=Nn(6,r,null,i),r.lanes=o,r}function jd(r,i,o){return i=Nn(4,r.children!==null?r.children:[],r.key,i),i.lanes=o,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function bS(r,i,o,l,c){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hc(0),this.expirationTimes=hc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hc(0),this.identifierPrefix=l,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function zd(r,i,o,l,c,f,m,w,b){return r=new bS(r,i,o,w,b),i===1?(i=1,f===!0&&(i|=8)):i=0,f=Nn(3,null,null,i),r.current=f,f.stateNode=r,f.memoizedState={element:l,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},ed(f),r}function IS(r,i,o){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Z,key:l==null?null:""+l,children:r,containerInfo:i,implementation:o}}function Mm(r){if(!r)return bi;r=r._reactInternals;e:{if(ne(r)!==r||r.tag!==1)throw Error(t(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(un(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(t(171))}if(r.tag===1){var o=r.type;if(un(o))return op(r,o,i)}return i}function Am(r,i,o,l,c,f,m,w,b){return r=zd(o,l,!0,r,c,f,m,w,b),r.context=Mm(null),o=r.current,l=nn(),c=Ri(o),f=Vr(l,c),f.callback=i??null,xi(o,f,c),r.current.lanes=c,Uo(r,c,l),fn(r,l),r}function Zl(r,i,o,l){var c=i.current,f=nn(),m=Ri(c);return o=Mm(o),i.context===null?i.context=o:i.pendingContext=o,i=Vr(f,m),i.payload={element:r},l=l===void 0?null:l,l!==null&&(i.callback=l),r=xi(c,i,m),r!==null&&(Xn(r,c,m,f),Fl(r,c,m)),m}function eu(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Pm(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<i?o:i}}function Vd(r,i){Pm(r,i),(r=r.alternate)&&Pm(r,i)}function ES(){return null}var Nm=typeof reportError=="function"?reportError:function(r){console.error(r)};function $d(r){this._internalRoot=r}tu.prototype.render=$d.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(t(409));Zl(r,i,null,null)},tu.prototype.unmount=$d.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;ls(function(){Zl(null,r,null,null)}),i[Br]=null}};function tu(r){this._internalRoot=r}tu.prototype.unstable_scheduleHydration=function(r){if(r){var i=vh();r={blockedOn:null,target:r,priority:i};for(var o=0;o<gi.length&&i!==0&&i<gi[o].priority;o++);gi.splice(o,0,r),o===0&&_h(r)}};function Wd(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function nu(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Lm(){}function xS(r,i,o,l,c){if(c){if(typeof l=="function"){var f=l;l=function(){var P=eu(m);f.call(P)}}var m=Am(i,l,r,0,null,!1,!1,"",Lm);return r._reactRootContainer=m,r[Br]=m.current,Zo(r.nodeType===8?r.parentNode:r),ls(),m}for(;c=r.lastChild;)r.removeChild(c);if(typeof l=="function"){var w=l;l=function(){var P=eu(b);w.call(P)}}var b=zd(r,0,!1,null,null,!1,!1,"",Lm);return r._reactRootContainer=b,r[Br]=b.current,Zo(r.nodeType===8?r.parentNode:r),ls(function(){Zl(i,b,o,l)}),b}function ru(r,i,o,l,c){var f=o._reactRootContainer;if(f){var m=f;if(typeof c=="function"){var w=c;c=function(){var b=eu(m);w.call(b)}}Zl(i,m,r,c)}else m=xS(o,i,r,c,l);return eu(m)}yh=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var o=ko(i.pendingLanes);o!==0&&(pc(i,o|1),fn(i,Qe()),($e&6)===0&&(Xs=Qe()+500,Ii()))}break;case 13:ls(function(){var l=zr(r,1);if(l!==null){var c=nn();Xn(l,r,1,c)}}),Vd(r,1)}},mc=function(r){if(r.tag===13){var i=zr(r,134217728);if(i!==null){var o=nn();Xn(i,r,134217728,o)}Vd(r,134217728)}},gh=function(r){if(r.tag===13){var i=Ri(r),o=zr(r,i);if(o!==null){var l=nn();Xn(o,r,i,l)}Vd(r,i)}},vh=function(){return et},wh=function(r,i){var o=et;try{return et=r,i()}finally{et=o}},Fs=function(r,i,o){switch(i){case"input":if(Fo(r,o),i=o.name,o.type==="radio"&&i!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<o.length;i++){var l=o[i];if(l!==r&&l.form===r.form){var c=Sl(l);if(!c)throw Error(t(90));jt(l),Fo(l,c)}}}break;case"textarea":cr(r,o);break;case"select":i=o.value,i!=null&&li(r,!!o.multiple,i,!1)}},Lo=Nd,Gi=ls;var DS={usingClientEntryPoint:!1,Events:[na,Us,Sl,No,Za,Nd]},ya={findFiberByHostInstance:es,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},CS={bundleType:ya.bundleType,version:ya.version,rendererPackageName:ya.rendererPackageName,rendererConfig:ya.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:q.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Ze(r),r===null?null:r.stateNode},findFiberByHostInstance:ya.findFiberByHostInstance||ES,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{lt=iu.inject(CS),Wt=iu}catch{}}return hn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=DS,hn.createPortal=function(r,i){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wd(i))throw Error(t(200));return IS(r,i,null,o)},hn.createRoot=function(r,i){if(!Wd(r))throw Error(t(299));var o=!1,l="",c=Nm;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onRecoverableError!==void 0&&(c=i.onRecoverableError)),i=zd(r,1,!1,null,null,o,!1,l,c),r[Br]=i.current,Zo(r.nodeType===8?r.parentNode:r),new $d(i)},hn.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(t(188)):(r=Object.keys(r).join(","),Error(t(268,r)));return r=Ze(i),r=r===null?null:r.stateNode,r},hn.flushSync=function(r){return ls(r)},hn.hydrate=function(r,i,o){if(!nu(i))throw Error(t(200));return ru(null,r,i,!0,o)},hn.hydrateRoot=function(r,i,o){if(!Wd(r))throw Error(t(405));var l=o!=null&&o.hydratedSources||null,c=!1,f="",m=Nm;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onRecoverableError!==void 0&&(m=o.onRecoverableError)),i=Am(i,null,r,1,o??null,c,!1,f,m),r[Br]=i.current,Zo(r),l)for(r=0;r<l.length;r++)o=l[r],c=o._getVersion,c=c(o._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[o,c]:i.mutableSourceEagerHydrationData.push(o,c);return new tu(i)},hn.render=function(r,i,o){if(!nu(i))throw Error(t(200));return ru(null,r,i,!1,o)},hn.unmountComponentAtNode=function(r){if(!nu(r))throw Error(t(40));return r._reactRootContainer?(ls(function(){ru(null,null,r,!1,function(){r._reactRootContainer=null,r[Br]=null})}),!0):!1},hn.unstable_batchedUpdates=Nd,hn.unstable_renderSubtreeIntoContainer=function(r,i,o,l){if(!nu(o))throw Error(t(200));if(r==null||r._reactInternals===void 0)throw Error(t(38));return ru(r,i,o,!1,l)},hn.version="18.3.1-next-f1338f8080-20240426",hn}var Wm;function pg(){if(Wm)return Kd.exports;Wm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),Kd.exports=VS(),Kd.exports}var Qm;function $S(){if(Qm)return su;Qm=1;var n=pg();return su.createRoot=n.createRoot,su.hydrateRoot=n.hydrateRoot,su}var WS=$S();const QS=tc(WS);class Co{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Ra=typeof window>"u"||"Deno"in window;function Bn(){}function HS(n,e){return typeof n=="function"?n(e):n}function hf(n){return typeof n=="number"&&n>=0&&n!==1/0}function mg(n,e){return Math.max(n+(e||0)-Date.now(),0)}function Ia(n,e,t){return ja(n)?typeof e=="function"?{...t,queryKey:n,queryFn:e}:{...e,queryKey:n}:n}function qS(n,e,t){return ja(n)?{...e,mutationKey:n}:typeof n=="function"?{...e,mutationFn:n}:{...n}}function Ni(n,e,t){return ja(n)?[{...e,queryKey:n},t]:[n||{},e]}function Hm(n,e){const{type:t="all",exact:s,fetchStatus:a,predicate:u,queryKey:d,stale:h}=n;if(ja(d)){if(s){if(e.queryHash!==Pf(d,e.options))return!1}else if(!vu(e.queryKey,d))return!1}if(t!=="all"){const p=e.isActive();if(t==="active"&&!p||t==="inactive"&&p)return!1}return!(typeof h=="boolean"&&e.isStale()!==h||typeof a<"u"&&a!==e.state.fetchStatus||u&&!u(e))}function qm(n,e){const{exact:t,fetching:s,predicate:a,mutationKey:u}=n;if(ja(u)){if(!e.options.mutationKey)return!1;if(t){if(ys(e.options.mutationKey)!==ys(u))return!1}else if(!vu(e.options.mutationKey,u))return!1}return!(typeof s=="boolean"&&e.state.status==="loading"!==s||a&&!a(e))}function Pf(n,e){return((e==null?void 0:e.queryKeyHashFn)||ys)(n)}function ys(n){return JSON.stringify(n,(e,t)=>pf(t)?Object.keys(t).sort().reduce((s,a)=>(s[a]=t[a],s),{}):t)}function vu(n,e){return yg(n,e)}function yg(n,e){return n===e?!0:typeof n!=typeof e?!1:n&&e&&typeof n=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!yg(n[t],e[t])):!1}function gg(n,e){if(n===e)return n;const t=Km(n)&&Km(e);if(t||pf(n)&&pf(e)){const s=t?n.length:Object.keys(n).length,a=t?e:Object.keys(e),u=a.length,d=t?[]:{};let h=0;for(let p=0;p<u;p++){const y=t?p:a[p];d[y]=gg(n[y],e[y]),d[y]===n[y]&&h++}return s===u&&h===s?n:d}return e}function wu(n,e){if(n&&!e||e&&!n)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}function Km(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function pf(n){if(!Ym(n))return!1;const e=n.constructor;if(typeof e>"u")return!0;const t=e.prototype;return!(!Ym(t)||!t.hasOwnProperty("isPrototypeOf"))}function Ym(n){return Object.prototype.toString.call(n)==="[object Object]"}function ja(n){return Array.isArray(n)}function vg(n){return new Promise(e=>{setTimeout(e,n)})}function Gm(n){vg(0).then(n)}function KS(){if(typeof AbortController=="function")return new AbortController}function mf(n,e,t){return t.isDataEqual!=null&&t.isDataEqual(n,e)?n:typeof t.structuralSharing=="function"?t.structuralSharing(n,e):t.structuralSharing!==!1?gg(n,e):e}class YS extends Co{constructor(){super(),this.setup=e=>{if(!Ra&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Su=new YS,Jm=["online","offline"];class GS extends Co{constructor(){super(),this.setup=e=>{if(!Ra&&window.addEventListener){const t=()=>e();return Jm.forEach(s=>{window.addEventListener(s,t,!1)}),()=>{Jm.forEach(s=>{window.removeEventListener(s,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(s=>{typeof s=="boolean"?this.setOnline(s):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const _u=new GS;function JS(n){return Math.min(1e3*2**n,3e4)}function rc(n){return(n??"online")==="online"?_u.isOnline():!0}class wg{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function Ca(n){return n instanceof wg}function Sg(n){let e=!1,t=0,s=!1,a,u,d;const h=new Promise((M,K)=>{u=M,d=K}),p=M=>{s||(I(new wg(M)),n.abort==null||n.abort())},y=()=>{e=!0},g=()=>{e=!1},v=()=>!Su.isFocused()||n.networkMode!=="always"&&!_u.isOnline(),S=M=>{s||(s=!0,n.onSuccess==null||n.onSuccess(M),a==null||a(),u(M))},I=M=>{s||(s=!0,n.onError==null||n.onError(M),a==null||a(),d(M))},T=()=>new Promise(M=>{a=K=>{const W=s||!v();return W&&M(K),W},n.onPause==null||n.onPause()}).then(()=>{a=void 0,s||n.onContinue==null||n.onContinue()}),A=()=>{if(s)return;let M;try{M=n.fn()}catch(K){M=Promise.reject(K)}Promise.resolve(M).then(S).catch(K=>{var W,Y;if(s)return;const q=(W=n.retry)!=null?W:3,ce=(Y=n.retryDelay)!=null?Y:JS,Z=typeof ce=="function"?ce(t,K):ce,x=q===!0||typeof q=="number"&&t<q||typeof q=="function"&&q(t,K);if(e||!x){I(K);return}t++,n.onFail==null||n.onFail(t,K),vg(Z).then(()=>{if(v())return T()}).then(()=>{e?I(K):A()})})};return rc(n.networkMode)?A():T().then(A),{promise:h,cancel:p,continue:()=>(a==null?void 0:a())?h:Promise.resolve(),cancelRetry:y,continueRetry:g}}const Nf=console;function XS(){let n=[],e=0,t=g=>{g()},s=g=>{g()};const a=g=>{let v;e++;try{v=g()}finally{e--,e||h()}return v},u=g=>{e?n.push(g):Gm(()=>{t(g)})},d=g=>(...v)=>{u(()=>{g(...v)})},h=()=>{const g=n;n=[],g.length&&Gm(()=>{s(()=>{g.forEach(v=>{t(v)})})})};return{batch:a,batchCalls:d,schedule:u,setNotifyFunction:g=>{t=g},setBatchNotifyFunction:g=>{s=g}}}const Ct=XS();class _g{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hf(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(Ra?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class ZS extends _g{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Nf,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||e_(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const s=mf(this.state.data,e,this.options);return this.dispatch({data:s,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),s}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const s=this.promise;return(t=this.retryer)==null||t.cancel(e),s?s.then(Bn).catch(Bn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!mg(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var s,a;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var u;return(u=this.retryer)==null||u.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const I=this.observers.find(T=>T.options.queryFn);I&&this.setOptions(I.options)}const d=KS(),h={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},p=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>{if(d)return this.abortSignalConsumed=!0,d.signal}})};p(h);const y=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(h)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),g={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:y};if(p(g),(s=this.options.behavior)==null||s.onFetch(g),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=g.fetchOptions)==null?void 0:a.meta)){var v;this.dispatch({type:"fetch",meta:(v=g.fetchOptions)==null?void 0:v.meta})}const S=I=>{if(Ca(I)&&I.silent||this.dispatch({type:"error",error:I}),!Ca(I)){var T,A,M,K;(T=(A=this.cache.config).onError)==null||T.call(A,I,this),(M=(K=this.cache.config).onSettled)==null||M.call(K,this.state.data,I,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Sg({fn:g.fetchFn,abort:d==null?void 0:d.abort.bind(d),onSuccess:I=>{var T,A,M,K;if(typeof I>"u"){S(new Error(this.queryHash+" data is undefined"));return}this.setData(I),(T=(A=this.cache.config).onSuccess)==null||T.call(A,I,this),(M=(K=this.cache.config).onSettled)==null||M.call(K,I,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:S,onFail:(I,T)=>{this.dispatch({type:"failed",failureCount:I,error:T})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=s=>{var a,u;switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(a=e.meta)!=null?a:null,fetchStatus:rc(this.options.networkMode)?"fetching":"paused",...!s.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:(u=e.dataUpdatedAt)!=null?u:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const d=e.error;return Ca(d)&&d.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...s,error:d,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),Ct.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function e_(n){const e=typeof n.initialData=="function"?n.initialData():n.initialData,t=typeof e<"u",s=t?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class bg extends Co{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,s){var a;const u=t.queryKey,d=(a=t.queryHash)!=null?a:Pf(u,t);let h=this.get(d);return h||(h=new ZS({cache:this,logger:e.getLogger(),queryKey:u,queryHash:d,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(u)}),this.add(h)),h}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(s=>s!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){Ct.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[s]=Ni(e,t);return typeof s.exact>"u"&&(s.exact=!0),this.queries.find(a=>Hm(s,a))}findAll(e,t){const[s]=Ni(e,t);return Object.keys(s).length>0?this.queries.filter(a=>Hm(s,a)):this.queries}notify(e){Ct.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){Ct.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){Ct.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class t_ extends _g{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Nf,this.observers=[],this.state=e.state||Ig(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var x;return this.retryer=Sg({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(V,pe)=>{this.dispatch({type:"failed",failureCount:V,error:pe})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(x=this.options.retry)!=null?x:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var s,a,u,d,h,p,y,g;if(!t){var v,S,I,T;this.dispatch({type:"loading",variables:this.options.variables}),await((v=(S=this.mutationCache.config).onMutate)==null?void 0:v.call(S,this.state.variables,this));const V=await((I=(T=this.options).onMutate)==null?void 0:I.call(T,this.state.variables));V!==this.state.context&&this.dispatch({type:"loading",context:V,variables:this.state.variables})}const x=await e();return await((s=(a=this.mutationCache.config).onSuccess)==null?void 0:s.call(a,x,this.state.variables,this.state.context,this)),await((u=(d=this.options).onSuccess)==null?void 0:u.call(d,x,this.state.variables,this.state.context)),await((h=(p=this.mutationCache.config).onSettled)==null?void 0:h.call(p,x,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,x,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:x}),x}catch(x){try{var A,M,K,W,Y,q,ce,Z;throw await((A=(M=this.mutationCache.config).onError)==null?void 0:A.call(M,x,this.state.variables,this.state.context,this)),await((K=(W=this.options).onError)==null?void 0:K.call(W,x,this.state.variables,this.state.context)),await((Y=(q=this.mutationCache.config).onSettled)==null?void 0:Y.call(q,void 0,x,this.state.variables,this.state.context,this)),await((ce=(Z=this.options).onSettled)==null?void 0:ce.call(Z,void 0,x,this.state.variables,this.state.context)),x}finally{this.dispatch({type:"error",error:x})}}}dispatch(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"loading":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!rc(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...s,...e.state}}};this.state=t(this.state),Ct.batch(()=>{this.observers.forEach(s=>{s.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function Ig(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class n_ extends Co{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,s){const a=new t_({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:s,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(a),a}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){Ct.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>qm(e,t))}findAll(e){return this.mutations.filter(t=>qm(e,t))}notify(e){Ct.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(s=>s.state.isPaused);return Ct.batch(()=>t.reduce((s,a)=>s.then(()=>a.continue().catch(Bn)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function r_(){return{onFetch:n=>{n.fetchFn=()=>{var e,t,s,a,u,d;const h=(e=n.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,p=(s=n.fetchOptions)==null||(a=s.meta)==null?void 0:a.fetchMore,y=p==null?void 0:p.pageParam,g=(p==null?void 0:p.direction)==="forward",v=(p==null?void 0:p.direction)==="backward",S=((u=n.state.data)==null?void 0:u.pages)||[],I=((d=n.state.data)==null?void 0:d.pageParams)||[];let T=I,A=!1;const M=Z=>{Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>{var x;if((x=n.signal)!=null&&x.aborted)A=!0;else{var V;(V=n.signal)==null||V.addEventListener("abort",()=>{A=!0})}return n.signal}})},K=n.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+n.options.queryHash+"'")),W=(Z,x,V,pe)=>(T=pe?[x,...T]:[...T,x],pe?[V,...Z]:[...Z,V]),Y=(Z,x,V,pe)=>{if(A)return Promise.reject("Cancelled");if(typeof V>"u"&&!x&&Z.length)return Promise.resolve(Z);const ue={queryKey:n.queryKey,pageParam:V,meta:n.options.meta};M(ue);const Ye=K(ue);return Promise.resolve(Ye).then(Xe=>W(Z,V,Xe,pe))};let q;if(!S.length)q=Y([]);else if(g){const Z=typeof y<"u",x=Z?y:Xm(n.options,S);q=Y(S,Z,x)}else if(v){const Z=typeof y<"u",x=Z?y:i_(n.options,S);q=Y(S,Z,x,!0)}else{T=[];const Z=typeof n.options.getNextPageParam>"u";q=(h&&S[0]?h(S[0],0,S):!0)?Y([],Z,I[0]):Promise.resolve(W([],I[0],S[0]));for(let V=1;V<S.length;V++)q=q.then(pe=>{if(h&&S[V]?h(S[V],V,S):!0){const Ye=Z?I[V]:Xm(n.options,pe);return Y(pe,Z,Ye)}return Promise.resolve(W(pe,I[V],S[V]))})}return q.then(Z=>({pages:Z,pageParams:T}))}}}}function Xm(n,e){return n.getNextPageParam==null?void 0:n.getNextPageParam(e[e.length-1],e)}function i_(n,e){return n.getPreviousPageParam==null?void 0:n.getPreviousPageParam(e[0],e)}class s_{constructor(e={}){this.queryCache=e.queryCache||new bg,this.mutationCache=e.mutationCache||new n_,this.logger=e.logger||Nf,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Su.subscribe(()=>{Su.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=_u.subscribe(()=>{_u.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[s]=Ni(e,t);return s.fetchStatus="fetching",this.queryCache.findAll(s).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var s;return(s=this.queryCache.find(e,t))==null?void 0:s.state.data}ensureQueryData(e,t,s){const a=Ia(e,t,s),u=this.getQueryData(a.queryKey);return u?Promise.resolve(u):this.fetchQuery(a)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:s})=>{const a=s.data;return[t,a]})}setQueryData(e,t,s){const a=this.queryCache.find(e),u=a==null?void 0:a.state.data,d=HS(t,u);if(typeof d>"u")return;const h=Ia(e),p=this.defaultQueryOptions(h);return this.queryCache.build(this,p).setData(d,{...s,manual:!0})}setQueriesData(e,t,s){return Ct.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,s)]))}getQueryState(e,t){var s;return(s=this.queryCache.find(e,t))==null?void 0:s.state}removeQueries(e,t){const[s]=Ni(e,t),a=this.queryCache;Ct.batch(()=>{a.findAll(s).forEach(u=>{a.remove(u)})})}resetQueries(e,t,s){const[a,u]=Ni(e,t,s),d=this.queryCache,h={type:"active",...a};return Ct.batch(()=>(d.findAll(a).forEach(p=>{p.reset()}),this.refetchQueries(h,u)))}cancelQueries(e,t,s){const[a,u={}]=Ni(e,t,s);typeof u.revert>"u"&&(u.revert=!0);const d=Ct.batch(()=>this.queryCache.findAll(a).map(h=>h.cancel(u)));return Promise.all(d).then(Bn).catch(Bn)}invalidateQueries(e,t,s){const[a,u]=Ni(e,t,s);return Ct.batch(()=>{var d,h;if(this.queryCache.findAll(a).forEach(y=>{y.invalidate()}),a.refetchType==="none")return Promise.resolve();const p={...a,type:(d=(h=a.refetchType)!=null?h:a.type)!=null?d:"active"};return this.refetchQueries(p,u)})}refetchQueries(e,t,s){const[a,u]=Ni(e,t,s),d=Ct.batch(()=>this.queryCache.findAll(a).filter(p=>!p.isDisabled()).map(p=>{var y;return p.fetch(void 0,{...u,cancelRefetch:(y=u==null?void 0:u.cancelRefetch)!=null?y:!0,meta:{refetchPage:a.refetchPage}})}));let h=Promise.all(d).then(Bn);return u!=null&&u.throwOnError||(h=h.catch(Bn)),h}fetchQuery(e,t,s){const a=Ia(e,t,s),u=this.defaultQueryOptions(a);typeof u.retry>"u"&&(u.retry=!1);const d=this.queryCache.build(this,u);return d.isStaleByTime(u.staleTime)?d.fetch(u):Promise.resolve(d.state.data)}prefetchQuery(e,t,s){return this.fetchQuery(e,t,s).then(Bn).catch(Bn)}fetchInfiniteQuery(e,t,s){const a=Ia(e,t,s);return a.behavior=r_(),this.fetchQuery(a)}prefetchInfiniteQuery(e,t,s){return this.fetchInfiniteQuery(e,t,s).then(Bn).catch(Bn)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const s=this.queryDefaults.find(a=>ys(e)===ys(a.queryKey));s?s.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(s=>vu(e,s.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const s=this.mutationDefaults.find(a=>ys(e)===ys(a.mutationKey));s?s.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(s=>vu(e,s.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Pf(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class o_ extends Co{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Zm(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yf(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yf(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const s=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),wu(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();const u=this.hasListeners();u&&ey(this.currentQuery,a,this.options,s)&&this.executeFetch(),this.updateResult(t),u&&(this.currentQuery!==a||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();const d=this.computeRefetchInterval();u&&(this.currentQuery!==a||this.options.enabled!==s.enabled||d!==this.currentRefetchInterval)&&this.updateRefetchInterval(d)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),s=this.createResult(t,e);return l_(this,s,e)&&(this.currentResult=s,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),s}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(s=>{Object.defineProperty(t,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),e[s])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),s=this.client.getQueryCache().build(this.client,t);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(Bn)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Ra||this.currentResult.isStale||!hf(this.options.staleTime))return;const t=mg(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(Ra||this.options.enabled===!1||!hf(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Su.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const s=this.currentQuery,a=this.options,u=this.currentResult,d=this.currentResultState,h=this.currentResultOptions,p=e!==s,y=p?e.state:this.currentQueryInitialState,g=p?this.currentResult:this.previousQueryResult,{state:v}=e;let{dataUpdatedAt:S,error:I,errorUpdatedAt:T,fetchStatus:A,status:M}=v,K=!1,W=!1,Y;if(t._optimisticResults){const V=this.hasListeners(),pe=!V&&Zm(e,t),ue=V&&ey(e,s,t,a);(pe||ue)&&(A=rc(e.options.networkMode)?"fetching":"paused",S||(M="loading")),t._optimisticResults==="isRestoring"&&(A="idle")}if(t.keepPreviousData&&!v.dataUpdatedAt&&g!=null&&g.isSuccess&&M!=="error")Y=g.data,S=g.dataUpdatedAt,M=g.status,K=!0;else if(t.select&&typeof v.data<"u")if(u&&v.data===(d==null?void 0:d.data)&&t.select===this.selectFn)Y=this.selectResult;else try{this.selectFn=t.select,Y=t.select(v.data),Y=mf(u==null?void 0:u.data,Y,t),this.selectResult=Y,this.selectError=null}catch(V){this.selectError=V}else Y=v.data;if(typeof t.placeholderData<"u"&&typeof Y>"u"&&M==="loading"){let V;if(u!=null&&u.isPlaceholderData&&t.placeholderData===(h==null?void 0:h.placeholderData))V=u.data;else if(V=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof V<"u")try{V=t.select(V),this.selectError=null}catch(pe){this.selectError=pe}typeof V<"u"&&(M="success",Y=mf(u==null?void 0:u.data,V,t),W=!0)}this.selectError&&(I=this.selectError,Y=this.selectResult,T=Date.now(),M="error");const q=A==="fetching",ce=M==="loading",Z=M==="error";return{status:M,fetchStatus:A,isLoading:ce,isSuccess:M==="success",isError:Z,isInitialLoading:ce&&q,data:Y,dataUpdatedAt:S,error:I,errorUpdatedAt:T,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>y.dataUpdateCount||v.errorUpdateCount>y.errorUpdateCount,isFetching:q,isRefetching:q&&!ce,isLoadingError:Z&&v.dataUpdatedAt===0,isPaused:A==="paused",isPlaceholderData:W,isPreviousData:K,isRefetchError:Z&&v.dataUpdatedAt!==0,isStale:Lf(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,wu(s,t))return;this.currentResult=s;const a={cache:!0},u=()=>{if(!t)return!0;const{notifyOnChangeProps:d}=this.options,h=typeof d=="function"?d():d;if(h==="all"||!h&&!this.trackedProps.size)return!0;const p=new Set(h??this.trackedProps);return this.options.useErrorBoundary&&p.add("error"),Object.keys(this.currentResult).some(y=>{const g=y;return this.currentResult[g]!==t[g]&&p.has(g)})};(e==null?void 0:e.listeners)!==!1&&u()&&(a.listeners=!0),this.notify({...a,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!Ca(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){Ct.batch(()=>{if(e.onSuccess){var t,s,a,u;(t=(s=this.options).onSuccess)==null||t.call(s,this.currentResult.data),(a=(u=this.options).onSettled)==null||a.call(u,this.currentResult.data,null)}else if(e.onError){var d,h,p,y;(d=(h=this.options).onError)==null||d.call(h,this.currentResult.error),(p=(y=this.options).onSettled)==null||p.call(y,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:g})=>{g(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function a_(n,e){return e.enabled!==!1&&!n.state.dataUpdatedAt&&!(n.state.status==="error"&&e.retryOnMount===!1)}function Zm(n,e){return a_(n,e)||n.state.dataUpdatedAt>0&&yf(n,e,e.refetchOnMount)}function yf(n,e,t){if(e.enabled!==!1){const s=typeof t=="function"?t(n):t;return s==="always"||s!==!1&&Lf(n,e)}return!1}function ey(n,e,t,s){return t.enabled!==!1&&(n!==e||s.enabled===!1)&&(!t.suspense||n.state.status!=="error")&&Lf(n,t)}function Lf(n,e){return n.isStaleByTime(e.staleTime)}function l_(n,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!wu(n.getCurrentResult(),e)}class u_ extends Co{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const s=this.options;this.options=this.client.defaultMutationOptions(e),wu(s,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(t=this.currentMutation)==null||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.currentMutation)==null||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();const t={listeners:!0};e.type==="success"?t.onSuccess=!0:e.type==="error"&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof e<"u"?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:Ig(),t={...e,isLoading:e.status==="loading",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){Ct.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(e.onSuccess){var t,s,a,u;(t=(s=this.mutateOptions).onSuccess)==null||t.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(a=(u=this.mutateOptions).onSettled)==null||a.call(u,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(e.onError){var d,h,p,y;(d=(h=this.mutateOptions).onError)==null||d.call(h,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(p=(y=this.mutateOptions).onSettled)==null||p.call(y,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}e.listeners&&this.listeners.forEach(({listener:g})=>{g(this.currentResult)})})}}var Eg=pg();const c_=tc(Eg),d_=lg({__proto__:null,default:c_},[Eg]);var Jd={exports:{}},Xd={};/**
|
|
44
|
-
* @license React
|
|
45
|
-
* use-sync-external-store-shim.production.js
|
|
46
|
-
*
|
|
47
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
48
|
-
*
|
|
49
|
-
* This source code is licensed under the MIT license found in the
|
|
50
|
-
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/var ty;function f_(){if(ty)return Xd;ty=1;var n=Ua();function e(v,S){return v===S&&(v!==0||1/v===1/S)||v!==v&&S!==S}var t=typeof Object.is=="function"?Object.is:e,s=n.useState,a=n.useEffect,u=n.useLayoutEffect,d=n.useDebugValue;function h(v,S){var I=S(),T=s({inst:{value:I,getSnapshot:S}}),A=T[0].inst,M=T[1];return u(function(){A.value=I,A.getSnapshot=S,p(A)&&M({inst:A})},[v,I,S]),a(function(){return p(A)&&M({inst:A}),v(function(){p(A)&&M({inst:A})})},[v]),d(I),I}function p(v){var S=v.getSnapshot;v=v.value;try{var I=S();return!t(v,I)}catch{return!0}}function y(v,S){return S()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:h;return Xd.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:g,Xd}var ny;function xg(){return ny||(ny=1,Jd.exports=f_()),Jd.exports}var h_=xg();const Dg=h_.useSyncExternalStore,ry=N.createContext(void 0),Cg=N.createContext(!1);function Og(n,e){return n||(e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=ry),window.ReactQueryClientContext):ry)}const Bf=({context:n}={})=>{const e=N.useContext(Og(n,N.useContext(Cg)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},p_=({client:n,children:e,context:t,contextSharing:s=!1})=>{N.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]);const a=Og(t,s);return N.createElement(Cg.Provider,{value:!t&&s},N.createElement(a.Provider,{value:n},e))},Rg=N.createContext(!1),m_=()=>N.useContext(Rg);Rg.Provider;function y_(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}const g_=N.createContext(y_()),v_=()=>N.useContext(g_);function Fg(n,e){return typeof n=="function"?n(...e):!!n}const w_=(n,e)=>{(n.suspense||n.useErrorBoundary)&&(e.isReset()||(n.retryOnMount=!1))},S_=n=>{N.useEffect(()=>{n.clearReset()},[n])},__=({result:n,errorResetBoundary:e,useErrorBoundary:t,query:s})=>n.isError&&!e.isReset()&&!n.isFetching&&Fg(t,[n.error,s]),b_=n=>{n.suspense&&typeof n.staleTime!="number"&&(n.staleTime=1e3)},I_=(n,e)=>n.isLoading&&n.isFetching&&!e,E_=(n,e,t)=>(n==null?void 0:n.suspense)&&I_(e,t),x_=(n,e,t)=>e.fetchOptimistic(n).then(({data:s})=>{n.onSuccess==null||n.onSuccess(s),n.onSettled==null||n.onSettled(s,null)}).catch(s=>{t.clearReset(),n.onError==null||n.onError(s),n.onSettled==null||n.onSettled(void 0,s)});function D_(n,e){const t=Bf({context:n.context}),s=m_(),a=v_(),u=t.defaultQueryOptions(n);u._optimisticResults=s?"isRestoring":"optimistic",u.onError&&(u.onError=Ct.batchCalls(u.onError)),u.onSuccess&&(u.onSuccess=Ct.batchCalls(u.onSuccess)),u.onSettled&&(u.onSettled=Ct.batchCalls(u.onSettled)),b_(u),w_(u,a),S_(a);const[d]=N.useState(()=>new e(t,u)),h=d.getOptimisticResult(u);if(Dg(N.useCallback(p=>{const y=s?()=>{}:d.subscribe(Ct.batchCalls(p));return d.updateResult(),y},[d,s]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),N.useEffect(()=>{d.setOptions(u,{listeners:!1})},[u,d]),E_(u,h,s))throw x_(u,d,a);if(__({result:h,errorResetBoundary:a,useErrorBoundary:u.useErrorBoundary,query:d.getCurrentQuery()}))throw h.error;return u.notifyOnChangeProps?h:d.trackResult(h)}function C_(n,e,t){const s=Ia(n,e,t);return D_(s,o_)}function O_(n,e,t){const s=qS(n,e),a=Bf({context:s.context}),[u]=N.useState(()=>new u_(a,s));N.useEffect(()=>{u.setOptions(s)},[u,s]);const d=Dg(N.useCallback(p=>u.subscribe(Ct.batchCalls(p)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),h=N.useCallback((p,y)=>{u.mutate(p,y).catch(R_)},[u]);if(d.error&&Fg(u.options.useErrorBoundary,[d.error]))throw d.error;return{...d,mutate:h,mutateAsync:d.mutate}}function R_(){}const F_=function(){const e=typeof document<"u"&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),T_=function(n){return"/"+n},iy={},an=function(e,t,s){let a=Promise.resolve();if(t&&t.length>0){let d=function(y){return Promise.all(y.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),p=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));a=d(t.map(y=>{if(y=T_(y),y in iy)return;iy[y]=!0;const g=y.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${v}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":F_,g||(S.as="script"),S.crossOrigin="",S.href=y,p&&S.setAttribute("nonce",p),document.head.appendChild(S),g)return new Promise((I,T)=>{S.addEventListener("load",I),S.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${y}`)))})}))}function u(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return a.then(d=>{for(const h of d||[])h.status==="rejected"&&u(h.reason);return e().catch(u)})};/**
|
|
52
|
-
* @remix-run/router v1.23.0
|
|
53
|
-
*
|
|
54
|
-
* Copyright (c) Remix Software Inc.
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the MIT license found in the
|
|
57
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
58
|
-
*
|
|
59
|
-
* @license MIT
|
|
60
|
-
*/function St(){return St=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},St.apply(this,arguments)}var At;(function(n){n.Pop="POP",n.Push="PUSH",n.Replace="REPLACE"})(At||(At={}));const sy="popstate";function M_(n){n===void 0&&(n={});function e(s,a){let{pathname:u,search:d,hash:h}=s.location;return Fa("",{pathname:u,search:d,hash:h},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function t(s,a){return typeof a=="string"?a:Es(a)}return P_(e,t,null,n)}function Ne(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function yo(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function A_(){return Math.random().toString(36).substr(2,8)}function oy(n,e){return{usr:n.state,key:n.key,idx:e}}function Fa(n,e,t,s){return t===void 0&&(t=null),St({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Wi(e):e,{state:t,key:e&&e.key||s||A_()})}function Es(n){let{pathname:e="/",search:t="",hash:s=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),s&&s!=="#"&&(e+=s.charAt(0)==="#"?s:"#"+s),e}function Wi(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let s=n.indexOf("?");s>=0&&(e.search=n.substr(s),n=n.substr(0,s)),n&&(e.pathname=n)}return e}function P_(n,e,t,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:u=!1}=s,d=a.history,h=At.Pop,p=null,y=g();y==null&&(y=0,d.replaceState(St({},d.state,{idx:y}),""));function g(){return(d.state||{idx:null}).idx}function v(){h=At.Pop;let M=g(),K=M==null?null:M-y;y=M,p&&p({action:h,location:A.location,delta:K})}function S(M,K){h=At.Push;let W=Fa(A.location,M,K);y=g()+1;let Y=oy(W,y),q=A.createHref(W);try{d.pushState(Y,"",q)}catch(ce){if(ce instanceof DOMException&&ce.name==="DataCloneError")throw ce;a.location.assign(q)}u&&p&&p({action:h,location:A.location,delta:1})}function I(M,K){h=At.Replace;let W=Fa(A.location,M,K);y=g();let Y=oy(W,y),q=A.createHref(W);d.replaceState(Y,"",q),u&&p&&p({action:h,location:A.location,delta:0})}function T(M){let K=a.location.origin!=="null"?a.location.origin:a.location.href,W=typeof M=="string"?M:Es(M);return W=W.replace(/ $/,"%20"),Ne(K,"No window.location.(origin|href) available to create URL for href: "+W),new URL(W,K)}let A={get action(){return h},get location(){return n(a,d)},listen(M){if(p)throw new Error("A history only accepts one active listener");return a.addEventListener(sy,v),p=M,()=>{a.removeEventListener(sy,v),p=null}},createHref(M){return e(a,M)},createURL:T,encodeLocation(M){let K=T(M);return{pathname:K.pathname,search:K.search,hash:K.hash}},push:S,replace:I,go(M){return d.go(M)}};return A}var nt;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(nt||(nt={}));const N_=new Set(["lazy","caseSensitive","path","id","index","children"]);function L_(n){return n.index===!0}function bu(n,e,t,s){return t===void 0&&(t=[]),s===void 0&&(s={}),n.map((a,u)=>{let d=[...t,String(u)],h=typeof a.id=="string"?a.id:d.join("-");if(Ne(a.index!==!0||!a.children,"Cannot specify children on an index route"),Ne(!s[h],'Found a route id collision on id "'+h+`". Route id's must be globally unique within Data Router usages`),L_(a)){let p=St({},a,e(a),{id:h});return s[h]=p,p}else{let p=St({},a,e(a),{id:h,children:void 0});return s[h]=p,a.children&&(p.children=bu(a.children,e,d,s)),p}})}function hs(n,e,t){return t===void 0&&(t="/"),du(n,e,t,!1)}function du(n,e,t,s){let a=typeof e=="string"?Wi(e):e,u=ni(a.pathname||"/",t);if(u==null)return null;let d=Tg(n);k_(d);let h=null;for(let p=0;h==null&&p<d.length;++p){let y=Y_(u);h=q_(d[p],y,s)}return h}function B_(n,e){let{route:t,pathname:s,params:a}=n;return{id:t.id,pathname:s,params:a,data:e[t.id],handle:t.handle}}function Tg(n,e,t,s){e===void 0&&(e=[]),t===void 0&&(t=[]),s===void 0&&(s="");let a=(u,d,h)=>{let p={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};p.relativePath.startsWith("/")&&(Ne(p.relativePath.startsWith(s),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(s.length));let y=ei([s,p.relativePath]),g=t.concat(p);u.children&&u.children.length>0&&(Ne(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+y+'".')),Tg(u.children,e,g,y)),!(u.path==null&&!u.index)&&e.push({path:y,score:Q_(y,u.index),routesMeta:g})};return n.forEach((u,d)=>{var h;if(u.path===""||!((h=u.path)!=null&&h.includes("?")))a(u,d);else for(let p of Mg(u.path))a(u,d,p)}),e}function Mg(n){let e=n.split("/");if(e.length===0)return[];let[t,...s]=e,a=t.endsWith("?"),u=t.replace(/\?$/,"");if(s.length===0)return a?[u,""]:[u];let d=Mg(s.join("/")),h=[];return h.push(...d.map(p=>p===""?u:[u,p].join("/"))),a&&h.push(...d),h.map(p=>n.startsWith("/")&&p===""?"/":p)}function k_(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:H_(e.routesMeta.map(s=>s.childrenIndex),t.routesMeta.map(s=>s.childrenIndex)))}const U_=/^:[\w-]+$/,j_=3,z_=2,V_=1,$_=10,W_=-2,ay=n=>n==="*";function Q_(n,e){let t=n.split("/"),s=t.length;return t.some(ay)&&(s+=W_),e&&(s+=z_),t.filter(a=>!ay(a)).reduce((a,u)=>a+(U_.test(u)?j_:u===""?V_:$_),s)}function H_(n,e){return n.length===e.length&&n.slice(0,-1).every((s,a)=>s===e[a])?n[n.length-1]-e[e.length-1]:0}function q_(n,e,t){t===void 0&&(t=!1);let{routesMeta:s}=n,a={},u="/",d=[];for(let h=0;h<s.length;++h){let p=s[h],y=h===s.length-1,g=u==="/"?e:e.slice(u.length)||"/",v=Iu({path:p.relativePath,caseSensitive:p.caseSensitive,end:y},g),S=p.route;if(!v&&y&&t&&!s[s.length-1].route.index&&(v=Iu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},g)),!v)return null;Object.assign(a,v.params),d.push({params:a,pathname:ei([u,v.pathname]),pathnameBase:X_(ei([u,v.pathnameBase])),route:S}),v.pathnameBase!=="/"&&(u=ei([u,v.pathnameBase]))}return d}function Iu(n,e){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[t,s]=K_(n.path,n.caseSensitive,n.end),a=e.match(t);if(!a)return null;let u=a[0],d=u.replace(/(.)\/+$/,"$1"),h=a.slice(1);return{params:s.reduce((y,g,v)=>{let{paramName:S,isOptional:I}=g;if(S==="*"){let A=h[v]||"";d=u.slice(0,u.length-A.length).replace(/(.)\/+$/,"$1")}const T=h[v];return I&&!T?y[S]=void 0:y[S]=(T||"").replace(/%2F/g,"/"),y},{}),pathname:u,pathnameBase:d,pattern:n}}function K_(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),yo(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let s=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,p)=>(s.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(s.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),s]}function Y_(n){try{return n.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return yo(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function ni(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,s=n.charAt(t);return s&&s!=="/"?null:n.slice(t)||"/"}function G_(n,e){e===void 0&&(e="/");let{pathname:t,search:s="",hash:a=""}=typeof n=="string"?Wi(n):n;return{pathname:t?t.startsWith("/")?t:J_(t,e):e,search:Z_(s),hash:e1(a)}}function J_(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function Zd(n,e,t,s){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Ag(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function kf(n,e){let t=Ag(n);return e?t.map((s,a)=>a===t.length-1?s.pathname:s.pathnameBase):t.map(s=>s.pathnameBase)}function Uf(n,e,t,s){s===void 0&&(s=!1);let a;typeof n=="string"?a=Wi(n):(a=St({},n),Ne(!a.pathname||!a.pathname.includes("?"),Zd("?","pathname","search",a)),Ne(!a.pathname||!a.pathname.includes("#"),Zd("#","pathname","hash",a)),Ne(!a.search||!a.search.includes("#"),Zd("#","search","hash",a)));let u=n===""||a.pathname==="",d=u?"/":a.pathname,h;if(d==null)h=t;else{let v=e.length-1;if(!s&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),v-=1;a.pathname=S.join("/")}h=v>=0?e[v]:"/"}let p=G_(a,h),y=d&&d!=="/"&&d.endsWith("/"),g=(u||d===".")&&t.endsWith("/");return!p.pathname.endsWith("/")&&(y||g)&&(p.pathname+="/"),p}const ei=n=>n.join("/").replace(/\/\/+/g,"/"),X_=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Z_=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,e1=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;class Eu{constructor(e,t,s,a){a===void 0&&(a=!1),this.status=e,this.statusText=t||"",this.internal=a,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}}function Ta(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const Pg=["post","put","patch","delete"],t1=new Set(Pg),n1=["get",...Pg],r1=new Set(n1),i1=new Set([301,302,303,307,308]),s1=new Set([307,308]),ef={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},o1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},va={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},jf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,a1=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),Ng="remix-router-transitions";function l1(n){const e=n.window?n.window:typeof window<"u"?window:void 0,t=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",s=!t;Ne(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(n.mapRouteProperties)a=n.mapRouteProperties;else if(n.detectErrorBoundary){let _=n.detectErrorBoundary;a=C=>({hasErrorBoundary:_(C)})}else a=a1;let u={},d=bu(n.routes,a,void 0,u),h,p=n.basename||"/",y=n.dataStrategy||f1,g=n.patchRoutesOnNavigation,v=St({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},n.future),S=null,I=new Set,T=null,A=null,M=null,K=n.hydrationData!=null,W=hs(d,n.history.location,p),Y=!1,q=null;if(W==null&&!g){let _=mn(404,{pathname:n.history.location.pathname}),{matches:C,route:L}=vy(d);W=C,q={[L.id]:_}}W&&!n.hydrationData&&Gi(W,d,n.history.location.pathname).active&&(W=null);let ce;if(W)if(W.some(_=>_.route.lazy))ce=!1;else if(!W.some(_=>_.route.loader))ce=!0;else if(v.v7_partialHydration){let _=n.hydrationData?n.hydrationData.loaderData:null,C=n.hydrationData?n.hydrationData.errors:null;if(C){let L=W.findIndex(U=>C[U.route.id]!==void 0);ce=W.slice(0,L+1).every(U=>!vf(U.route,_,C))}else ce=W.every(L=>!vf(L.route,_,C))}else ce=n.hydrationData!=null;else if(ce=!1,W=[],v.v7_partialHydration){let _=Gi(null,d,n.history.location.pathname);_.active&&_.matches&&(Y=!0,W=_.matches)}let Z,x={historyAction:n.history.action,location:n.history.location,matches:W,initialized:ce,navigation:ef,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||q,fetchers:new Map,blockers:new Map},V=At.Pop,pe=!1,ue,Ye=!1,We=new Map,Xe=null,dt=!1,Tt=!1,Pt=[],at=new Set,Q=new Map,de=0,J=-1,D=new Map,k=new Set,ge=new Map,xe=new Map,we=new Set,Me=new Map,Ue=new Map,je;function ft(){if(S=n.history.listen(_=>{let{action:C,location:L,delta:U}=_;if(je){je(),je=void 0;return}yo(Ue.size===0||U!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let G=Fs({currentLocation:x.location,nextLocation:L,historyAction:C});if(G&&U!=null){let le=new Promise(me=>{je=me});n.history.go(U*-1),di(G,{state:"blocked",location:L,proceed(){di(G,{state:"proceeding",proceed:void 0,reset:void 0,location:L}),le.then(()=>n.history.go(U))},reset(){let me=new Map(x.blockers);me.set(G,va),jt({blockers:me})}});return}return ur(C,L)}),t){D1(e,We);let _=()=>C1(e,We);e.addEventListener("pagehide",_),Xe=()=>e.removeEventListener("pagehide",_)}return x.initialized||ur(At.Pop,x.location,{initialHydration:!0}),Z}function en(){S&&S(),Xe&&Xe(),I.clear(),ue&&ue.abort(),x.fetchers.forEach((_,C)=>dr(C)),x.blockers.forEach((_,C)=>Rs(C))}function xs(_){return I.add(_),()=>I.delete(_)}function jt(_,C){C===void 0&&(C={}),x=St({},x,_);let L=[],U=[];v.v7_fetcherPersist&&x.fetchers.forEach((G,le)=>{G.state==="idle"&&(we.has(le)?U.push(le):L.push(le))}),we.forEach(G=>{!x.fetchers.has(G)&&!Q.has(G)&&U.push(G)}),[...I].forEach(G=>G(x,{deletedFetchers:U,viewTransitionOpts:C.viewTransitionOpts,flushSync:C.flushSync===!0})),v.v7_fetcherPersist?(L.forEach(G=>x.fetchers.delete(G)),U.forEach(G=>dr(G))):U.forEach(G=>we.delete(G))}function Wn(_,C,L){var U,G;let{flushSync:le}=L===void 0?{}:L,me=x.actionData!=null&&x.navigation.formMethod!=null&&er(x.navigation.formMethod)&&x.navigation.state==="loading"&&((U=_.state)==null?void 0:U._isRedirect)!==!0,re;C.actionData?Object.keys(C.actionData).length>0?re=C.actionData:re=null:me?re=x.actionData:re=null;let se=C.loaderData?yy(x.loaderData,C.loaderData,C.matches||[],C.errors):x.loaderData,ee=x.blockers;ee.size>0&&(ee=new Map(ee),ee.forEach((Le,Nt)=>ee.set(Nt,va)));let ne=pe===!0||x.navigation.formMethod!=null&&er(x.navigation.formMethod)&&((G=_.state)==null?void 0:G._isRedirect)!==!0;h&&(d=h,h=void 0),dt||V===At.Pop||(V===At.Push?n.history.push(_,_.state):V===At.Replace&&n.history.replace(_,_.state));let Se;if(V===At.Pop){let Le=We.get(x.location.pathname);Le&&Le.has(_.pathname)?Se={currentLocation:x.location,nextLocation:_}:We.has(_.pathname)&&(Se={currentLocation:_,nextLocation:x.location})}else if(Ye){let Le=We.get(x.location.pathname);Le?Le.add(_.pathname):(Le=new Set([_.pathname]),We.set(x.location.pathname,Le)),Se={currentLocation:x.location,nextLocation:_}}jt(St({},C,{actionData:re,loaderData:se,historyAction:V,location:_,initialized:!0,navigation:ef,revalidation:"idle",restoreScrollPosition:Lo(_,C.matches||x.matches),preventScrollReset:ne,blockers:ee}),{viewTransitionOpts:Se,flushSync:le===!0}),V=At.Pop,pe=!1,Ye=!1,dt=!1,Tt=!1,Pt=[]}async function Ds(_,C){if(typeof _=="number"){n.history.go(_);return}let L=gf(x.location,x.matches,p,v.v7_prependBasename,_,v.v7_relativeSplatPath,C==null?void 0:C.fromRouteId,C==null?void 0:C.relative),{path:U,submission:G,error:le}=ly(v.v7_normalizeFormMethod,!1,L,C),me=x.location,re=Fa(x.location,U,C&&C.state);re=St({},re,n.history.encodeLocation(re));let se=C&&C.replace!=null?C.replace:void 0,ee=At.Push;se===!0?ee=At.Replace:se===!1||G!=null&&er(G.formMethod)&&G.formAction===x.location.pathname+x.location.search&&(ee=At.Replace);let ne=C&&"preventScrollReset"in C?C.preventScrollReset===!0:void 0,Se=(C&&C.flushSync)===!0,Le=Fs({currentLocation:me,nextLocation:re,historyAction:ee});if(Le){di(Le,{state:"blocked",location:re,proceed(){di(Le,{state:"proceeding",proceed:void 0,reset:void 0,location:re}),Ds(_,C)},reset(){let Nt=new Map(x.blockers);Nt.set(Le,va),jt({blockers:Nt})}});return}return await ur(ee,re,{submission:G,pendingError:le,preventScrollReset:ne,replace:C&&C.replace,enableViewTransition:C&&C.viewTransition,flushSync:Se})}function Ka(){if(Yi(),jt({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){ur(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}ur(V||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation,enableViewTransition:Ye===!0})}}async function ur(_,C,L){ue&&ue.abort(),ue=null,V=_,dt=(L&&L.startUninterruptedRevalidation)===!0,Za(x.location,x.matches),pe=(L&&L.preventScrollReset)===!0,Ye=(L&&L.enableViewTransition)===!0;let U=h||d,G=L&&L.overrideNavigation,le=L!=null&&L.initialHydration&&x.matches&&x.matches.length>0&&!Y?x.matches:hs(U,C,p),me=(L&&L.flushSync)===!0;if(le&&x.initialized&&!Tt&&v1(x.location,C)&&!(L&&L.submission&&er(L.submission.formMethod))){Wn(C,{matches:le},{flushSync:me});return}let re=Gi(le,U,C.pathname);if(re.active&&re.matches&&(le=re.matches),!le){let{error:Ze,notFoundMatches:ze,route:pt}=fr(C.pathname);Wn(C,{matches:ze,loaderData:{},errors:{[pt.id]:Ze}},{flushSync:me});return}ue=new AbortController;let se=eo(n.history,C,ue.signal,L&&L.submission),ee;if(L&&L.pendingError)ee=[ps(le).route.id,{type:nt.error,error:L.pendingError}];else if(L&&L.submission&&er(L.submission.formMethod)){let Ze=await Fo(se,C,L.submission,le,re.active,{replace:L.replace,flushSync:me});if(Ze.shortCircuited)return;if(Ze.pendingActionResult){let[ze,pt]=Ze.pendingActionResult;if(Cn(pt)&&Ta(pt.error)&&pt.error.status===404){ue=null,Wn(C,{matches:Ze.matches,loaderData:{},errors:{[ze]:pt.error}});return}}le=Ze.matches||le,ee=Ze.pendingActionResult,G=tf(C,L.submission),me=!1,re.active=!1,se=eo(n.history,se.url,se.signal)}let{shortCircuited:ne,matches:Se,loaderData:Le,errors:Nt}=await Ya(se,C,le,re.active,G,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,L&&L.initialHydration===!0,me,ee);ne||(ue=null,Wn(C,St({matches:Se||le},gy(ee),{loaderData:Le,errors:Nt})))}async function Fo(_,C,L,U,G,le){le===void 0&&(le={}),Yi();let me=E1(C,L);if(jt({navigation:me},{flushSync:le.flushSync===!0}),G){let ee=await fi(U,C.pathname,_.signal);if(ee.type==="aborted")return{shortCircuited:!0};if(ee.type==="error"){let ne=ps(ee.partialMatches).route.id;return{matches:ee.partialMatches,pendingActionResult:[ne,{type:nt.error,error:ee.error}]}}else if(ee.matches)U=ee.matches;else{let{notFoundMatches:ne,error:Se,route:Le}=fr(C.pathname);return{matches:ne,pendingActionResult:[Le.id,{type:nt.error,error:Se}]}}}let re,se=Ea(U,C);if(!se.route.action&&!se.route.lazy)re={type:nt.error,error:mn(405,{method:_.method,pathname:C.pathname,routeId:se.route.id})};else if(re=(await ui("action",x,_,[se],U,null))[se.route.id],_.signal.aborted)return{shortCircuited:!0};if(gs(re)){let ee;return le&&le.replace!=null?ee=le.replace:ee=hy(re.response.headers.get("Location"),new URL(_.url),p)===x.location.pathname+x.location.search,await cr(_,re,!0,{submission:L,replace:ee}),{shortCircuited:!0}}if(ki(re))throw mn(400,{type:"defer-action"});if(Cn(re)){let ee=ps(U,se.route.id);return(le&&le.replace)!==!0&&(V=At.Push),{matches:U,pendingActionResult:[ee.route.id,re]}}return{matches:U,pendingActionResult:[se.route.id,re]}}async function Ya(_,C,L,U,G,le,me,re,se,ee,ne){let Se=G||tf(C,le),Le=le||me||Sy(Se),Nt=!dt&&(!v.v7_partialHydration||!se);if(U){if(Nt){let lt=Cs(ne);jt(St({navigation:Se},lt!==void 0?{actionData:lt}:{}),{flushSync:ee})}let Be=await fi(L,C.pathname,_.signal);if(Be.type==="aborted")return{shortCircuited:!0};if(Be.type==="error"){let lt=ps(Be.partialMatches).route.id;return{matches:Be.partialMatches,loaderData:{},errors:{[lt]:Be.error}}}else if(Be.matches)L=Be.matches;else{let{error:lt,notFoundMatches:Wt,route:Zi}=fr(C.pathname);return{matches:Wt,loaderData:{},errors:{[Zi.id]:lt}}}}let Ze=h||d,[ze,pt]=cy(n.history,x,L,Le,C,v.v7_partialHydration&&se===!0,v.v7_skipActionErrorRevalidation,Tt,Pt,at,we,ge,k,Ze,p,ne);if(hr(Be=>!(L&&L.some(lt=>lt.route.id===Be))||ze&&ze.some(lt=>lt.route.id===Be)),J=++de,ze.length===0&&pt.length===0){let Be=Ja();return Wn(C,St({matches:L,loaderData:{},errors:ne&&Cn(ne[1])?{[ne[0]]:ne[1].error}:null},gy(ne),Be?{fetchers:new Map(x.fetchers)}:{}),{flushSync:ee}),{shortCircuited:!0}}if(Nt){let Be={};if(!U){Be.navigation=Se;let lt=Cs(ne);lt!==void 0&&(Be.actionData=lt)}pt.length>0&&(Be.fetchers=Ki(pt)),jt(Be,{flushSync:ee})}pt.forEach(Be=>{Qn(Be.key),Be.controller&&Q.set(Be.key,Be.controller)});let Pr=()=>pt.forEach(Be=>Qn(Be.key));ue&&ue.signal.addEventListener("abort",Pr);let{loaderResults:Xi,fetcherResults:Hn}=await Mo(x,L,ze,pt,_);if(_.signal.aborted)return{shortCircuited:!0};ue&&ue.signal.removeEventListener("abort",Pr),pt.forEach(Be=>Q.delete(Be.key));let Qe=ou(Xi);if(Qe)return await cr(_,Qe.result,!0,{replace:re}),{shortCircuited:!0};if(Qe=ou(Hn),Qe)return k.add(Qe.key),await cr(_,Qe.result,!0,{replace:re}),{shortCircuited:!0};let{loaderData:Bo,errors:Nr}=my(x,L,Xi,ne,pt,Hn,Me);Me.forEach((Be,lt)=>{Be.subscribe(Wt=>{(Wt||Be.done)&&Me.delete(lt)})}),v.v7_partialHydration&&se&&x.errors&&(Nr=St({},x.errors,Nr));let pr=Ja(),Lr=Os(J),Ts=pr||Lr||pt.length>0;return St({matches:L,loaderData:Bo,errors:Nr},Ts?{fetchers:new Map(x.fetchers)}:{})}function Cs(_){if(_&&!Cn(_[1]))return{[_[0]]:_[1].data};if(x.actionData)return Object.keys(x.actionData).length===0?null:x.actionData}function Ki(_){return _.forEach(C=>{let L=x.fetchers.get(C.key),U=wa(void 0,L?L.data:void 0);x.fetchers.set(C.key,U)}),new Map(x.fetchers)}function li(_,C,L,U){if(s)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Qn(_);let G=(U&&U.flushSync)===!0,le=h||d,me=gf(x.location,x.matches,p,v.v7_prependBasename,L,v.v7_relativeSplatPath,C,U==null?void 0:U.relative),re=hs(le,me,p),se=Gi(re,le,me);if(se.active&&se.matches&&(re=se.matches),!re){Rn(_,C,mn(404,{pathname:me}),{flushSync:G});return}let{path:ee,submission:ne,error:Se}=ly(v.v7_normalizeFormMethod,!0,me,U);if(Se){Rn(_,C,Se,{flushSync:G});return}let Le=Ea(re,ee),Nt=(U&&U.preventScrollReset)===!0;if(ne&&er(ne.formMethod)){To(_,C,ee,Le,re,se.active,G,Nt,ne);return}ge.set(_,{routeId:C,path:ee}),Ga(_,C,ee,Le,re,se.active,G,Nt,ne)}async function To(_,C,L,U,G,le,me,re,se){Yi(),ge.delete(_);function ee(He){if(!He.route.action&&!He.route.lazy){let hi=mn(405,{method:se.formMethod,pathname:L,routeId:C});return Rn(_,C,hi,{flushSync:me}),!0}return!1}if(!le&&ee(U))return;let ne=x.fetchers.get(_);bn(_,x1(se,ne),{flushSync:me});let Se=new AbortController,Le=eo(n.history,L,Se.signal,se);if(le){let He=await fi(G,new URL(Le.url).pathname,Le.signal,_);if(He.type==="aborted")return;if(He.type==="error"){Rn(_,C,He.error,{flushSync:me});return}else if(He.matches){if(G=He.matches,U=Ea(G,L),ee(U))return}else{Rn(_,C,mn(404,{pathname:L}),{flushSync:me});return}}Q.set(_,Se);let Nt=de,ze=(await ui("action",x,Le,[U],G,_))[U.route.id];if(Le.signal.aborted){Q.get(_)===Se&&Q.delete(_);return}if(v.v7_fetcherPersist&&we.has(_)){if(gs(ze)||Cn(ze)){bn(_,Pi(void 0));return}}else{if(gs(ze))if(Q.delete(_),J>Nt){bn(_,Pi(void 0));return}else return k.add(_),bn(_,wa(se)),cr(Le,ze,!1,{fetcherSubmission:se,preventScrollReset:re});if(Cn(ze)){Rn(_,C,ze.error);return}}if(ki(ze))throw mn(400,{type:"defer-action"});let pt=x.navigation.location||x.location,Pr=eo(n.history,pt,Se.signal),Xi=h||d,Hn=x.navigation.state!=="idle"?hs(Xi,x.navigation.location,p):x.matches;Ne(Hn,"Didn't find any matches after fetcher action");let Qe=++de;D.set(_,Qe);let Bo=wa(se,ze.data);x.fetchers.set(_,Bo);let[Nr,pr]=cy(n.history,x,Hn,se,pt,!1,v.v7_skipActionErrorRevalidation,Tt,Pt,at,we,ge,k,Xi,p,[U.route.id,ze]);pr.filter(He=>He.key!==_).forEach(He=>{let hi=He.key,tl=x.fetchers.get(hi),dc=wa(void 0,tl?tl.data:void 0);x.fetchers.set(hi,dc),Qn(hi),He.controller&&Q.set(hi,He.controller)}),jt({fetchers:new Map(x.fetchers)});let Lr=()=>pr.forEach(He=>Qn(He.key));Se.signal.addEventListener("abort",Lr);let{loaderResults:Ts,fetcherResults:Be}=await Mo(x,Hn,Nr,pr,Pr);if(Se.signal.aborted)return;Se.signal.removeEventListener("abort",Lr),D.delete(_),Q.delete(_),pr.forEach(He=>Q.delete(He.key));let lt=ou(Ts);if(lt)return cr(Pr,lt.result,!1,{preventScrollReset:re});if(lt=ou(Be),lt)return k.add(lt.key),cr(Pr,lt.result,!1,{preventScrollReset:re});let{loaderData:Wt,errors:Zi}=my(x,Hn,Ts,void 0,pr,Be,Me);if(x.fetchers.has(_)){let He=Pi(ze.data);x.fetchers.set(_,He)}Os(Qe),x.navigation.state==="loading"&&Qe>J?(Ne(V,"Expected pending action"),ue&&ue.abort(),Wn(x.navigation.location,{matches:Hn,loaderData:Wt,errors:Zi,fetchers:new Map(x.fetchers)})):(jt({errors:Zi,loaderData:yy(x.loaderData,Wt,Hn,Zi),fetchers:new Map(x.fetchers)}),Tt=!1)}async function Ga(_,C,L,U,G,le,me,re,se){let ee=x.fetchers.get(_);bn(_,wa(se,ee?ee.data:void 0),{flushSync:me});let ne=new AbortController,Se=eo(n.history,L,ne.signal);if(le){let ze=await fi(G,new URL(Se.url).pathname,Se.signal,_);if(ze.type==="aborted")return;if(ze.type==="error"){Rn(_,C,ze.error,{flushSync:me});return}else if(ze.matches)G=ze.matches,U=Ea(G,L);else{Rn(_,C,mn(404,{pathname:L}),{flushSync:me});return}}Q.set(_,ne);let Le=de,Ze=(await ui("loader",x,Se,[U],G,_))[U.route.id];if(ki(Ze)&&(Ze=await zf(Ze,Se.signal,!0)||Ze),Q.get(_)===ne&&Q.delete(_),!Se.signal.aborted){if(we.has(_)){bn(_,Pi(void 0));return}if(gs(Ze))if(J>Le){bn(_,Pi(void 0));return}else{k.add(_),await cr(Se,Ze,!1,{preventScrollReset:re});return}if(Cn(Ze)){Rn(_,C,Ze.error);return}Ne(!ki(Ze),"Unhandled fetcher deferred data"),bn(_,Pi(Ze.data))}}async function cr(_,C,L,U){let{submission:G,fetcherSubmission:le,preventScrollReset:me,replace:re}=U===void 0?{}:U;C.response.headers.has("X-Remix-Revalidate")&&(Tt=!0);let se=C.response.headers.get("Location");Ne(se,"Expected a Location header on the redirect Response"),se=hy(se,new URL(_.url),p);let ee=Fa(x.location,se,{_isRedirect:!0});if(t){let ze=!1;if(C.response.headers.has("X-Remix-Reload-Document"))ze=!0;else if(jf.test(se)){const pt=n.history.createURL(se);ze=pt.origin!==e.location.origin||ni(pt.pathname,p)==null}if(ze){re?e.location.replace(se):e.location.assign(se);return}}ue=null;let ne=re===!0||C.response.headers.has("X-Remix-Replace")?At.Replace:At.Push,{formMethod:Se,formAction:Le,formEncType:Nt}=x.navigation;!G&&!le&&Se&&Le&&Nt&&(G=Sy(x.navigation));let Ze=G||le;if(s1.has(C.response.status)&&Ze&&er(Ze.formMethod))await ur(ne,ee,{submission:St({},Ze,{formAction:se}),preventScrollReset:me||pe,enableViewTransition:L?Ye:void 0});else{let ze=tf(ee,G);await ur(ne,ee,{overrideNavigation:ze,fetcherSubmission:le,preventScrollReset:me||pe,enableViewTransition:L?Ye:void 0})}}async function ui(_,C,L,U,G,le){let me,re={};try{me=await h1(y,_,C,L,U,G,le,u,a)}catch(se){return U.forEach(ee=>{re[ee.route.id]={type:nt.error,error:se}}),re}for(let[se,ee]of Object.entries(me))if(w1(ee)){let ne=ee.result;re[se]={type:nt.redirect,response:y1(ne,L,se,G,p,v.v7_relativeSplatPath)}}else re[se]=await m1(ee);return re}async function Mo(_,C,L,U,G){let le=_.matches,me=ui("loader",_,G,L,C,null),re=Promise.all(U.map(async ne=>{if(ne.matches&&ne.match&&ne.controller){let Le=(await ui("loader",_,eo(n.history,ne.path,ne.controller.signal),[ne.match],ne.matches,ne.key))[ne.match.route.id];return{[ne.key]:Le}}else return Promise.resolve({[ne.key]:{type:nt.error,error:mn(404,{pathname:ne.path})}})})),se=await me,ee=(await re).reduce((ne,Se)=>Object.assign(ne,Se),{});return await Promise.all([b1(C,se,G.signal,le,_.loaderData),I1(C,ee,U)]),{loaderResults:se,fetcherResults:ee}}function Yi(){Tt=!0,Pt.push(...hr()),ge.forEach((_,C)=>{Q.has(C)&&at.add(C),Qn(C)})}function bn(_,C,L){L===void 0&&(L={}),x.fetchers.set(_,C),jt({fetchers:new Map(x.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function Rn(_,C,L,U){U===void 0&&(U={});let G=ps(x.matches,C);dr(_),jt({errors:{[G.route.id]:L},fetchers:new Map(x.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function ci(_){return xe.set(_,(xe.get(_)||0)+1),we.has(_)&&we.delete(_),x.fetchers.get(_)||o1}function dr(_){let C=x.fetchers.get(_);Q.has(_)&&!(C&&C.state==="loading"&&D.has(_))&&Qn(_),ge.delete(_),D.delete(_),k.delete(_),v.v7_fetcherPersist&&we.delete(_),at.delete(_),x.fetchers.delete(_)}function cc(_){let C=(xe.get(_)||0)-1;C<=0?(xe.delete(_),we.add(_),v.v7_fetcherPersist||dr(_)):xe.set(_,C),jt({fetchers:new Map(x.fetchers)})}function Qn(_){let C=Q.get(_);C&&(C.abort(),Q.delete(_))}function Ao(_){for(let C of _){let L=ci(C),U=Pi(L.data);x.fetchers.set(C,U)}}function Ja(){let _=[],C=!1;for(let L of k){let U=x.fetchers.get(L);Ne(U,"Expected fetcher: "+L),U.state==="loading"&&(k.delete(L),_.push(L),C=!0)}return Ao(_),C}function Os(_){let C=[];for(let[L,U]of D)if(U<_){let G=x.fetchers.get(L);Ne(G,"Expected fetcher: "+L),G.state==="loading"&&(Qn(L),D.delete(L),C.push(L))}return Ao(C),C.length>0}function Po(_,C){let L=x.blockers.get(_)||va;return Ue.get(_)!==C&&Ue.set(_,C),L}function Rs(_){x.blockers.delete(_),Ue.delete(_)}function di(_,C){let L=x.blockers.get(_)||va;Ne(L.state==="unblocked"&&C.state==="blocked"||L.state==="blocked"&&C.state==="blocked"||L.state==="blocked"&&C.state==="proceeding"||L.state==="blocked"&&C.state==="unblocked"||L.state==="proceeding"&&C.state==="unblocked","Invalid blocker state transition: "+L.state+" -> "+C.state);let U=new Map(x.blockers);U.set(_,C),jt({blockers:U})}function Fs(_){let{currentLocation:C,nextLocation:L,historyAction:U}=_;if(Ue.size===0)return;Ue.size>1&&yo(!1,"A router only supports one blocker at a time");let G=Array.from(Ue.entries()),[le,me]=G[G.length-1],re=x.blockers.get(le);if(!(re&&re.state==="proceeding")&&me({currentLocation:C,nextLocation:L,historyAction:U}))return le}function fr(_){let C=mn(404,{pathname:_}),L=h||d,{matches:U,route:G}=vy(L);return hr(),{notFoundMatches:U,route:G,error:C}}function hr(_){let C=[];return Me.forEach((L,U)=>{(!_||_(U))&&(L.cancel(),C.push(U),Me.delete(U))}),C}function Xa(_,C,L){if(T=_,M=C,A=L||null,!K&&x.navigation===ef){K=!0;let U=Lo(x.location,x.matches);U!=null&&jt({restoreScrollPosition:U})}return()=>{T=null,M=null,A=null}}function No(_,C){return A&&A(_,C.map(U=>B_(U,x.loaderData)))||_.key}function Za(_,C){if(T&&M){let L=No(_,C);T[L]=M()}}function Lo(_,C){if(T){let L=No(_,C),U=T[L];if(typeof U=="number")return U}return null}function Gi(_,C,L){if(g)if(_){if(Object.keys(_[0].params).length>0)return{active:!0,matches:du(C,L,p,!0)}}else return{active:!0,matches:du(C,L,p,!0)||[]};return{active:!1,matches:null}}async function fi(_,C,L,U){if(!g)return{type:"success",matches:_};let G=_;for(;;){let le=h==null,me=h||d,re=u;try{await g({signal:L,path:C,matches:G,fetcherKey:U,patch:(ne,Se)=>{L.aborted||fy(ne,Se,me,re,a)}})}catch(ne){return{type:"error",error:ne,partialMatches:G}}finally{le&&!L.aborted&&(d=[...d])}if(L.aborted)return{type:"aborted"};let se=hs(me,C,p);if(se)return{type:"success",matches:se};let ee=du(me,C,p,!0);if(!ee||G.length===ee.length&&G.every((ne,Se)=>ne.route.id===ee[Se].route.id))return{type:"success",matches:null};G=ee}}function el(_){u={},h=bu(_,a,void 0,u)}function Ji(_,C){let L=h==null;fy(_,C,h||d,u,a),L&&(d=[...d],jt({}))}return Z={get basename(){return p},get future(){return v},get state(){return x},get routes(){return d},get window(){return e},initialize:ft,subscribe:xs,enableScrollRestoration:Xa,navigate:Ds,fetch:li,revalidate:Ka,createHref:_=>n.history.createHref(_),encodeLocation:_=>n.history.encodeLocation(_),getFetcher:ci,deleteFetcher:cc,dispose:en,getBlocker:Po,deleteBlocker:Rs,patchRoutes:Ji,_internalFetchControllers:Q,_internalActiveDeferreds:Me,_internalSetRoutes:el},Z}function u1(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function gf(n,e,t,s,a,u,d,h){let p,y;if(d){p=[];for(let v of e)if(p.push(v),v.route.id===d){y=v;break}}else p=e,y=e[e.length-1];let g=Uf(a||".",kf(p,u),ni(n.pathname,t)||n.pathname,h==="path");if(a==null&&(g.search=n.search,g.hash=n.hash),(a==null||a===""||a===".")&&y){let v=Vf(g.search);if(y.route.index&&!v)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!y.route.index&&v){let S=new URLSearchParams(g.search),I=S.getAll("index");S.delete("index"),I.filter(A=>A).forEach(A=>S.append("index",A));let T=S.toString();g.search=T?"?"+T:""}}return s&&t!=="/"&&(g.pathname=g.pathname==="/"?t:ei([t,g.pathname])),Es(g)}function ly(n,e,t,s){if(!s||!u1(s))return{path:t};if(s.formMethod&&!_1(s.formMethod))return{path:t,error:mn(405,{method:s.formMethod})};let a=()=>({path:t,error:mn(400,{type:"invalid-body"})}),u=s.formMethod||"get",d=n?u.toUpperCase():u.toLowerCase(),h=kg(t);if(s.body!==void 0){if(s.formEncType==="text/plain"){if(!er(d))return a();let S=typeof s.body=="string"?s.body:s.body instanceof FormData||s.body instanceof URLSearchParams?Array.from(s.body.entries()).reduce((I,T)=>{let[A,M]=T;return""+I+A+"="+M+`
|
|
61
|
-
`},""):String(s.body);return{path:t,submission:{formMethod:d,formAction:h,formEncType:s.formEncType,formData:void 0,json:void 0,text:S}}}else if(s.formEncType==="application/json"){if(!er(d))return a();try{let S=typeof s.body=="string"?JSON.parse(s.body):s.body;return{path:t,submission:{formMethod:d,formAction:h,formEncType:s.formEncType,formData:void 0,json:S,text:void 0}}}catch{return a()}}}Ne(typeof FormData=="function","FormData is not available in this environment");let p,y;if(s.formData)p=wf(s.formData),y=s.formData;else if(s.body instanceof FormData)p=wf(s.body),y=s.body;else if(s.body instanceof URLSearchParams)p=s.body,y=py(p);else if(s.body==null)p=new URLSearchParams,y=new FormData;else try{p=new URLSearchParams(s.body),y=py(p)}catch{return a()}let g={formMethod:d,formAction:h,formEncType:s&&s.formEncType||"application/x-www-form-urlencoded",formData:y,json:void 0,text:void 0};if(er(g.formMethod))return{path:t,submission:g};let v=Wi(t);return e&&v.search&&Vf(v.search)&&p.append("index",""),v.search="?"+p,{path:Es(v),submission:g}}function uy(n,e,t){t===void 0&&(t=!1);let s=n.findIndex(a=>a.route.id===e);return s>=0?n.slice(0,t?s+1:s):n}function cy(n,e,t,s,a,u,d,h,p,y,g,v,S,I,T,A){let M=A?Cn(A[1])?A[1].error:A[1].data:void 0,K=n.createURL(e.location),W=n.createURL(a),Y=t;u&&e.errors?Y=uy(t,Object.keys(e.errors)[0],!0):A&&Cn(A[1])&&(Y=uy(t,A[0]));let q=A?A[1].statusCode:void 0,ce=d&&q&&q>=400,Z=Y.filter((V,pe)=>{let{route:ue}=V;if(ue.lazy)return!0;if(ue.loader==null)return!1;if(u)return vf(ue,e.loaderData,e.errors);if(c1(e.loaderData,e.matches[pe],V)||p.some(Xe=>Xe===V.route.id))return!0;let Ye=e.matches[pe],We=V;return dy(V,St({currentUrl:K,currentParams:Ye.params,nextUrl:W,nextParams:We.params},s,{actionResult:M,actionStatus:q,defaultShouldRevalidate:ce?!1:h||K.pathname+K.search===W.pathname+W.search||K.search!==W.search||Lg(Ye,We)}))}),x=[];return v.forEach((V,pe)=>{if(u||!t.some(dt=>dt.route.id===V.routeId)||g.has(pe))return;let ue=hs(I,V.path,T);if(!ue){x.push({key:pe,routeId:V.routeId,path:V.path,matches:null,match:null,controller:null});return}let Ye=e.fetchers.get(pe),We=Ea(ue,V.path),Xe=!1;S.has(pe)?Xe=!1:y.has(pe)?(y.delete(pe),Xe=!0):Ye&&Ye.state!=="idle"&&Ye.data===void 0?Xe=h:Xe=dy(We,St({currentUrl:K,currentParams:e.matches[e.matches.length-1].params,nextUrl:W,nextParams:t[t.length-1].params},s,{actionResult:M,actionStatus:q,defaultShouldRevalidate:ce?!1:h})),Xe&&x.push({key:pe,routeId:V.routeId,path:V.path,matches:ue,match:We,controller:new AbortController})}),[Z,x]}function vf(n,e,t){if(n.lazy)return!0;if(!n.loader)return!1;let s=e!=null&&e[n.id]!==void 0,a=t!=null&&t[n.id]!==void 0;return!s&&a?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!s&&!a}function c1(n,e,t){let s=!e||t.route.id!==e.route.id,a=n[t.route.id]===void 0;return s||a}function Lg(n,e){let t=n.route.path;return n.pathname!==e.pathname||t!=null&&t.endsWith("*")&&n.params["*"]!==e.params["*"]}function dy(n,e){if(n.route.shouldRevalidate){let t=n.route.shouldRevalidate(e);if(typeof t=="boolean")return t}return e.defaultShouldRevalidate}function fy(n,e,t,s,a){var u;let d;if(n){let y=s[n];Ne(y,"No route found to patch children into: routeId = "+n),y.children||(y.children=[]),d=y.children}else d=t;let h=e.filter(y=>!d.some(g=>Bg(y,g))),p=bu(h,a,[n||"_","patch",String(((u=d)==null?void 0:u.length)||"0")],s);d.push(...p)}function Bg(n,e){return"id"in n&&"id"in e&&n.id===e.id?!0:n.index===e.index&&n.path===e.path&&n.caseSensitive===e.caseSensitive?(!n.children||n.children.length===0)&&(!e.children||e.children.length===0)?!0:n.children.every((t,s)=>{var a;return(a=e.children)==null?void 0:a.some(u=>Bg(t,u))}):!1}async function d1(n,e,t){if(!n.lazy)return;let s=await n.lazy();if(!n.lazy)return;let a=t[n.id];Ne(a,"No route found in manifest");let u={};for(let d in s){let p=a[d]!==void 0&&d!=="hasErrorBoundary";yo(!p,'Route "'+a.id+'" has a static property "'+d+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+d+'" will be ignored.')),!p&&!N_.has(d)&&(u[d]=s[d])}Object.assign(a,u),Object.assign(a,St({},e(a),{lazy:void 0}))}async function f1(n){let{matches:e}=n,t=e.filter(a=>a.shouldLoad);return(await Promise.all(t.map(a=>a.resolve()))).reduce((a,u,d)=>Object.assign(a,{[t[d].route.id]:u}),{})}async function h1(n,e,t,s,a,u,d,h,p,y){let g=u.map(I=>I.route.lazy?d1(I.route,p,h):void 0),v=u.map((I,T)=>{let A=g[T],M=a.some(W=>W.route.id===I.route.id);return St({},I,{shouldLoad:M,resolve:async W=>(W&&s.method==="GET"&&(I.route.lazy||I.route.loader)&&(M=!0),M?p1(e,s,I,A,W,y):Promise.resolve({type:nt.data,result:void 0}))})}),S=await n({matches:v,request:s,params:u[0].params,fetcherKey:d,context:y});try{await Promise.all(g)}catch{}return S}async function p1(n,e,t,s,a,u){let d,h,p=y=>{let g,v=new Promise((T,A)=>g=A);h=()=>g(),e.signal.addEventListener("abort",h);let S=T=>typeof y!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+n+'" [routeId: '+t.route.id+"]"))):y({request:e,params:t.params,context:u},...T!==void 0?[T]:[]),I=(async()=>{try{return{type:"data",result:await(a?a(A=>S(A)):S())}}catch(T){return{type:"error",result:T}}})();return Promise.race([I,v])};try{let y=t.route[n];if(s)if(y){let g,[v]=await Promise.all([p(y).catch(S=>{g=S}),s]);if(g!==void 0)throw g;d=v}else if(await s,y=t.route[n],y)d=await p(y);else if(n==="action"){let g=new URL(e.url),v=g.pathname+g.search;throw mn(405,{method:e.method,pathname:v,routeId:t.route.id})}else return{type:nt.data,result:void 0};else if(y)d=await p(y);else{let g=new URL(e.url),v=g.pathname+g.search;throw mn(404,{pathname:v})}Ne(d.result!==void 0,"You defined "+(n==="action"?"an action":"a loader")+" for route "+('"'+t.route.id+"\" but didn't return anything from your `"+n+"` ")+"function. Please return a value or `null`.")}catch(y){return{type:nt.error,result:y}}finally{h&&e.signal.removeEventListener("abort",h)}return d}async function m1(n){let{result:e,type:t}=n;if(Ug(e)){let v;try{let S=e.headers.get("Content-Type");S&&/\bapplication\/json\b/.test(S)?e.body==null?v=null:v=await e.json():v=await e.text()}catch(S){return{type:nt.error,error:S}}return t===nt.error?{type:nt.error,error:new Eu(e.status,e.statusText,v),statusCode:e.status,headers:e.headers}:{type:nt.data,data:v,statusCode:e.status,headers:e.headers}}if(t===nt.error){if(wy(e)){var s,a;if(e.data instanceof Error){var u,d;return{type:nt.error,error:e.data,statusCode:(u=e.init)==null?void 0:u.status,headers:(d=e.init)!=null&&d.headers?new Headers(e.init.headers):void 0}}return{type:nt.error,error:new Eu(((s=e.init)==null?void 0:s.status)||500,void 0,e.data),statusCode:Ta(e)?e.status:void 0,headers:(a=e.init)!=null&&a.headers?new Headers(e.init.headers):void 0}}return{type:nt.error,error:e,statusCode:Ta(e)?e.status:void 0}}if(S1(e)){var h,p;return{type:nt.deferred,deferredData:e,statusCode:(h=e.init)==null?void 0:h.status,headers:((p=e.init)==null?void 0:p.headers)&&new Headers(e.init.headers)}}if(wy(e)){var y,g;return{type:nt.data,data:e.data,statusCode:(y=e.init)==null?void 0:y.status,headers:(g=e.init)!=null&&g.headers?new Headers(e.init.headers):void 0}}return{type:nt.data,data:e}}function y1(n,e,t,s,a,u){let d=n.headers.get("Location");if(Ne(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!jf.test(d)){let h=s.slice(0,s.findIndex(p=>p.route.id===t)+1);d=gf(new URL(e.url),h,a,!0,d,u),n.headers.set("Location",d)}return n}function hy(n,e,t){if(jf.test(n)){let s=n,a=s.startsWith("//")?new URL(e.protocol+s):new URL(s),u=ni(a.pathname,t)!=null;if(a.origin===e.origin&&u)return a.pathname+a.search+a.hash}return n}function eo(n,e,t,s){let a=n.createURL(kg(e)).toString(),u={signal:t};if(s&&er(s.formMethod)){let{formMethod:d,formEncType:h}=s;u.method=d.toUpperCase(),h==="application/json"?(u.headers=new Headers({"Content-Type":h}),u.body=JSON.stringify(s.json)):h==="text/plain"?u.body=s.text:h==="application/x-www-form-urlencoded"&&s.formData?u.body=wf(s.formData):u.body=s.formData}return new Request(a,u)}function wf(n){let e=new URLSearchParams;for(let[t,s]of n.entries())e.append(t,typeof s=="string"?s:s.name);return e}function py(n){let e=new FormData;for(let[t,s]of n.entries())e.append(t,s);return e}function g1(n,e,t,s,a){let u={},d=null,h,p=!1,y={},g=t&&Cn(t[1])?t[1].error:void 0;return n.forEach(v=>{if(!(v.route.id in e))return;let S=v.route.id,I=e[S];if(Ne(!gs(I),"Cannot handle redirect results in processLoaderData"),Cn(I)){let T=I.error;g!==void 0&&(T=g,g=void 0),d=d||{};{let A=ps(n,S);d[A.route.id]==null&&(d[A.route.id]=T)}u[S]=void 0,p||(p=!0,h=Ta(I.error)?I.error.status:500),I.headers&&(y[S]=I.headers)}else ki(I)?(s.set(S,I.deferredData),u[S]=I.deferredData.data,I.statusCode!=null&&I.statusCode!==200&&!p&&(h=I.statusCode),I.headers&&(y[S]=I.headers)):(u[S]=I.data,I.statusCode&&I.statusCode!==200&&!p&&(h=I.statusCode),I.headers&&(y[S]=I.headers))}),g!==void 0&&t&&(d={[t[0]]:g},u[t[0]]=void 0),{loaderData:u,errors:d,statusCode:h||200,loaderHeaders:y}}function my(n,e,t,s,a,u,d){let{loaderData:h,errors:p}=g1(e,t,s,d);return a.forEach(y=>{let{key:g,match:v,controller:S}=y,I=u[g];if(Ne(I,"Did not find corresponding fetcher result"),!(S&&S.signal.aborted))if(Cn(I)){let T=ps(n.matches,v==null?void 0:v.route.id);p&&p[T.route.id]||(p=St({},p,{[T.route.id]:I.error})),n.fetchers.delete(g)}else if(gs(I))Ne(!1,"Unhandled fetcher revalidation redirect");else if(ki(I))Ne(!1,"Unhandled fetcher deferred data");else{let T=Pi(I.data);n.fetchers.set(g,T)}}),{loaderData:h,errors:p}}function yy(n,e,t,s){let a=St({},e);for(let u of t){let d=u.route.id;if(e.hasOwnProperty(d)?e[d]!==void 0&&(a[d]=e[d]):n[d]!==void 0&&u.route.loader&&(a[d]=n[d]),s&&s.hasOwnProperty(d))break}return a}function gy(n){return n?Cn(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function ps(n,e){return(e?n.slice(0,n.findIndex(s=>s.route.id===e)+1):[...n]).reverse().find(s=>s.route.hasErrorBoundary===!0)||n[0]}function vy(n){let e=n.length===1?n[0]:n.find(t=>t.index||!t.path||t.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function mn(n,e){let{pathname:t,routeId:s,method:a,type:u,message:d}=e===void 0?{}:e,h="Unknown Server Error",p="Unknown @remix-run/router error";return n===400?(h="Bad Request",a&&t&&s?p="You made a "+a+' request to "'+t+'" but '+('did not provide a `loader` for route "'+s+'", ')+"so there is no way to handle the request.":u==="defer-action"?p="defer() is not supported in actions":u==="invalid-body"&&(p="Unable to encode submission body")):n===403?(h="Forbidden",p='Route "'+s+'" does not match URL "'+t+'"'):n===404?(h="Not Found",p='No route matches URL "'+t+'"'):n===405&&(h="Method Not Allowed",a&&t&&s?p="You made a "+a.toUpperCase()+' request to "'+t+'" but '+('did not provide an `action` for route "'+s+'", ')+"so there is no way to handle the request.":a&&(p='Invalid request method "'+a.toUpperCase()+'"')),new Eu(n||500,h,new Error(p),!0)}function ou(n){let e=Object.entries(n);for(let t=e.length-1;t>=0;t--){let[s,a]=e[t];if(gs(a))return{key:s,result:a}}}function kg(n){let e=typeof n=="string"?Wi(n):n;return Es(St({},e,{hash:""}))}function v1(n,e){return n.pathname!==e.pathname||n.search!==e.search?!1:n.hash===""?e.hash!=="":n.hash===e.hash?!0:e.hash!==""}function w1(n){return Ug(n.result)&&i1.has(n.result.status)}function ki(n){return n.type===nt.deferred}function Cn(n){return n.type===nt.error}function gs(n){return(n&&n.type)===nt.redirect}function wy(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function S1(n){let e=n;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function Ug(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function _1(n){return r1.has(n.toLowerCase())}function er(n){return t1.has(n.toLowerCase())}async function b1(n,e,t,s,a){let u=Object.entries(e);for(let d=0;d<u.length;d++){let[h,p]=u[d],y=n.find(S=>(S==null?void 0:S.route.id)===h);if(!y)continue;let g=s.find(S=>S.route.id===y.route.id),v=g!=null&&!Lg(g,y)&&(a&&a[y.route.id])!==void 0;ki(p)&&v&&await zf(p,t,!1).then(S=>{S&&(e[h]=S)})}}async function I1(n,e,t){for(let s=0;s<t.length;s++){let{key:a,routeId:u,controller:d}=t[s],h=e[a];n.find(y=>(y==null?void 0:y.route.id)===u)&&ki(h)&&(Ne(d,"Expected an AbortController for revalidating fetcher deferred result"),await zf(h,d.signal,!0).then(y=>{y&&(e[a]=y)}))}}async function zf(n,e,t){if(t===void 0&&(t=!1),!await n.deferredData.resolveData(e)){if(t)try{return{type:nt.data,data:n.deferredData.unwrappedData}}catch(a){return{type:nt.error,error:a}}return{type:nt.data,data:n.deferredData.data}}}function Vf(n){return new URLSearchParams(n).getAll("index").some(e=>e==="")}function Ea(n,e){let t=typeof e=="string"?Wi(e).search:e.search;if(n[n.length-1].route.index&&Vf(t||""))return n[n.length-1];let s=Ag(n);return s[s.length-1]}function Sy(n){let{formMethod:e,formAction:t,formEncType:s,text:a,formData:u,json:d}=n;if(!(!e||!t||!s)){if(a!=null)return{formMethod:e,formAction:t,formEncType:s,formData:void 0,json:void 0,text:a};if(u!=null)return{formMethod:e,formAction:t,formEncType:s,formData:u,json:void 0,text:void 0};if(d!==void 0)return{formMethod:e,formAction:t,formEncType:s,formData:void 0,json:d,text:void 0}}}function tf(n,e){return e?{state:"loading",location:n,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function E1(n,e){return{state:"submitting",location:n,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function wa(n,e){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function x1(n,e){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:e?e.data:void 0}}function Pi(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function D1(n,e){try{let t=n.sessionStorage.getItem(Ng);if(t){let s=JSON.parse(t);for(let[a,u]of Object.entries(s||{}))u&&Array.isArray(u)&&e.set(a,new Set(u||[]))}}catch{}}function C1(n,e){if(e.size>0){let t={};for(let[s,a]of e)t[s]=[...a];try{n.sessionStorage.setItem(Ng,JSON.stringify(t))}catch(s){yo(!1,"Failed to save applied view transitions in sessionStorage ("+s+").")}}}/**
|
|
62
|
-
* React Router v6.30.0
|
|
63
|
-
*
|
|
64
|
-
* Copyright (c) Remix Software Inc.
|
|
65
|
-
*
|
|
66
|
-
* This source code is licensed under the MIT license found in the
|
|
67
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
68
|
-
*
|
|
69
|
-
* @license MIT
|
|
70
|
-
*/function xu(){return xu=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},xu.apply(this,arguments)}const za=N.createContext(null),$f=N.createContext(null),Qi=N.createContext(null),Wf=N.createContext(null),si=N.createContext({outlet:null,matches:[],isDataRoute:!1}),jg=N.createContext(null);function O1(n,e){let{relative:t}=e===void 0?{}:e;Va()||Ne(!1);let{basename:s,navigator:a}=N.useContext(Qi),{hash:u,pathname:d,search:h}=ic(n,{relative:t}),p=d;return s!=="/"&&(p=d==="/"?s:ei([s,d])),a.createHref({pathname:p,search:h,hash:u})}function Va(){return N.useContext(Wf)!=null}function $a(){return Va()||Ne(!1),N.useContext(Wf).location}function zg(n){N.useContext(Qi).static||N.useLayoutEffect(n)}function R1(){let{isDataRoute:n}=N.useContext(si);return n?$1():F1()}function F1(){Va()||Ne(!1);let n=N.useContext(za),{basename:e,future:t,navigator:s}=N.useContext(Qi),{matches:a}=N.useContext(si),{pathname:u}=$a(),d=JSON.stringify(kf(a,t.v7_relativeSplatPath)),h=N.useRef(!1);return zg(()=>{h.current=!0}),N.useCallback(function(y,g){if(g===void 0&&(g={}),!h.current)return;if(typeof y=="number"){s.go(y);return}let v=Uf(y,JSON.parse(d),u,g.relative==="path");n==null&&e!=="/"&&(v.pathname=v.pathname==="/"?e:ei([e,v.pathname])),(g.replace?s.replace:s.push)(v,g.state,g)},[e,s,d,u,n])}const T1=N.createContext(null);function M1(n){let e=N.useContext(si).outlet;return e&&N.createElement(T1.Provider,{value:n},e)}function gD(){let{matches:n}=N.useContext(si),e=n[n.length-1];return e?e.params:{}}function ic(n,e){let{relative:t}=e===void 0?{}:e,{future:s}=N.useContext(Qi),{matches:a}=N.useContext(si),{pathname:u}=$a(),d=JSON.stringify(kf(a,s.v7_relativeSplatPath));return N.useMemo(()=>Uf(n,JSON.parse(d),u,t==="path"),[n,d,u,t])}function A1(n,e,t,s){Va()||Ne(!1);let{navigator:a,static:u}=N.useContext(Qi),{matches:d}=N.useContext(si),h=d[d.length-1],p=h?h.params:{};h&&h.pathname;let y=h?h.pathnameBase:"/";h&&h.route;let g=$a(),v;v=g;let S=v.pathname||"/",I=S;if(y!=="/"){let M=y.replace(/^\//,"").split("/");I="/"+S.replace(/^\//,"").split("/").slice(M.length).join("/")}let T=!u&&t&&t.matches&&t.matches.length>0?t.matches:hs(n,{pathname:I});return k1(T&&T.map(M=>Object.assign({},M,{params:Object.assign({},p,M.params),pathname:ei([y,a.encodeLocation?a.encodeLocation(M.pathname).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?y:ei([y,a.encodeLocation?a.encodeLocation(M.pathnameBase).pathname:M.pathnameBase])})),d,t,s)}function P1(){let n=V1(),e=Ta(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},e),t?N.createElement("pre",{style:a},t):null,null)}const N1=N.createElement(P1,null);class L1 extends N.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?N.createElement(si.Provider,{value:this.props.routeContext},N.createElement(jg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function B1(n){let{routeContext:e,match:t,children:s}=n,a=N.useContext(za);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),N.createElement(si.Provider,{value:e},s)}function k1(n,e,t,s){var a;if(e===void 0&&(e=[]),t===void 0&&(t=null),s===void 0&&(s=null),n==null){var u;if(!t)return null;if(t.errors)n=t.matches;else if((u=s)!=null&&u.v7_partialHydration&&e.length===0&&!t.initialized&&t.matches.length>0)n=t.matches;else return null}let d=n,h=(a=t)==null?void 0:a.errors;if(h!=null){let g=d.findIndex(v=>v.route.id&&(h==null?void 0:h[v.route.id])!==void 0);g>=0||Ne(!1),d=d.slice(0,Math.min(d.length,g+1))}let p=!1,y=-1;if(t&&s&&s.v7_partialHydration)for(let g=0;g<d.length;g++){let v=d[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(y=g),v.route.id){let{loaderData:S,errors:I}=t,T=v.route.loader&&S[v.route.id]===void 0&&(!I||I[v.route.id]===void 0);if(v.route.lazy||T){p=!0,y>=0?d=d.slice(0,y+1):d=[d[0]];break}}}return d.reduceRight((g,v,S)=>{let I,T=!1,A=null,M=null;t&&(I=h&&v.route.id?h[v.route.id]:void 0,A=v.route.errorElement||N1,p&&(y<0&&S===0?(W1("route-fallback"),T=!0,M=null):y===S&&(T=!0,M=v.route.hydrateFallbackElement||null)));let K=e.concat(d.slice(0,S+1)),W=()=>{let Y;return I?Y=A:T?Y=M:v.route.Component?Y=N.createElement(v.route.Component,null):v.route.element?Y=v.route.element:Y=g,N.createElement(B1,{match:v,routeContext:{outlet:g,matches:K,isDataRoute:t!=null},children:Y})};return t&&(v.route.ErrorBoundary||v.route.errorElement||S===0)?N.createElement(L1,{location:t.location,revalidation:t.revalidation,component:A,error:I,children:W(),routeContext:{outlet:null,matches:K,isDataRoute:!0}}):W()},null)}var Vg=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(Vg||{}),$g=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}($g||{});function U1(n){let e=N.useContext(za);return e||Ne(!1),e}function j1(n){let e=N.useContext($f);return e||Ne(!1),e}function z1(n){let e=N.useContext(si);return e||Ne(!1),e}function Wg(n){let e=z1(),t=e.matches[e.matches.length-1];return t.route.id||Ne(!1),t.route.id}function V1(){var n;let e=N.useContext(jg),t=j1(),s=Wg();return e!==void 0?e:(n=t.errors)==null?void 0:n[s]}function $1(){let{router:n}=U1(Vg.UseNavigateStable),e=Wg($g.UseNavigateStable),t=N.useRef(!1);return zg(()=>{t.current=!0}),N.useCallback(function(a,u){u===void 0&&(u={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,xu({fromRouteId:e},u)))},[n,e])}const _y={};function W1(n,e,t){_y[n]||(_y[n]=!0)}function Q1(n,e){n==null||n.v7_startTransition,(n==null?void 0:n.v7_relativeSplatPath)===void 0&&(!e||e.v7_relativeSplatPath),e&&(e.v7_fetcherPersist,e.v7_normalizeFormMethod,e.v7_partialHydration,e.v7_skipActionErrorRevalidation)}function vD(n){return M1(n.context)}function H1(n){let{basename:e="/",children:t=null,location:s,navigationType:a=At.Pop,navigator:u,static:d=!1,future:h}=n;Va()&&Ne(!1);let p=e.replace(/^\/*/,"/"),y=N.useMemo(()=>({basename:p,navigator:u,static:d,future:xu({v7_relativeSplatPath:!1},h)}),[p,h,u,d]);typeof s=="string"&&(s=Wi(s));let{pathname:g="/",search:v="",hash:S="",state:I=null,key:T="default"}=s,A=N.useMemo(()=>{let M=ni(g,p);return M==null?null:{location:{pathname:M,search:v,hash:S,state:I,key:T},navigationType:a}},[p,g,v,S,I,T,a]);return A==null?null:N.createElement(Qi.Provider,{value:y},N.createElement(Wf.Provider,{children:t,value:A}))}new Promise(()=>{});function q1(n){let e={hasErrorBoundary:n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&Object.assign(e,{element:N.createElement(n.Component),Component:void 0}),n.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:N.createElement(n.HydrateFallback),HydrateFallback:void 0}),n.ErrorBoundary&&Object.assign(e,{errorElement:N.createElement(n.ErrorBoundary),ErrorBoundary:void 0}),e}/**
|
|
71
|
-
* React Router DOM v6.30.0
|
|
72
|
-
*
|
|
73
|
-
* Copyright (c) Remix Software Inc.
|
|
74
|
-
*
|
|
75
|
-
* This source code is licensed under the MIT license found in the
|
|
76
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
77
|
-
*
|
|
78
|
-
* @license MIT
|
|
79
|
-
*/function go(){return go=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},go.apply(this,arguments)}function Qg(n,e){if(n==null)return{};var t={},s=Object.keys(n),a,u;for(u=0;u<s.length;u++)a=s[u],!(e.indexOf(a)>=0)&&(t[a]=n[a]);return t}function K1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Y1(n,e){return n.button===0&&(!e||e==="_self")&&!K1(n)}const G1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],J1=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],X1="6";try{window.__reactRouterVersion=X1}catch{}function Z1(n,e){return l1({basename:e==null?void 0:e.basename,future:go({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:M_({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||eb(),routes:n,mapRouteProperties:q1,dataStrategy:e==null?void 0:e.dataStrategy,patchRoutesOnNavigation:e==null?void 0:e.patchRoutesOnNavigation,window:e==null?void 0:e.window}).initialize()}function eb(){var n;let e=(n=window)==null?void 0:n.__staticRouterHydrationData;return e&&e.errors&&(e=go({},e,{errors:tb(e.errors)})),e}function tb(n){if(!n)return null;let e=Object.entries(n),t={};for(let[s,a]of e)if(a&&a.__type==="RouteErrorResponse")t[s]=new Eu(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let u=window[a.__subType];if(typeof u=="function")try{let d=new u(a.message);d.stack="",t[s]=d}catch{}}if(t[s]==null){let u=new Error(a.message);u.stack="",t[s]=u}}else t[s]=a;return t}const Hg=N.createContext({isTransitioning:!1}),nb=N.createContext(new Map),rb="startTransition",by=PS[rb],ib="flushSync",Iy=d_[ib];function sb(n){by?by(n):n()}function Sa(n){Iy?Iy(n):n()}class ob{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=s=>{this.status==="pending"&&(this.status="resolved",e(s))},this.reject=s=>{this.status==="pending"&&(this.status="rejected",t(s))}})}}function ab(n){let{fallbackElement:e,router:t,future:s}=n,[a,u]=N.useState(t.state),[d,h]=N.useState(),[p,y]=N.useState({isTransitioning:!1}),[g,v]=N.useState(),[S,I]=N.useState(),[T,A]=N.useState(),M=N.useRef(new Map),{v7_startTransition:K}=s||{},W=N.useCallback(V=>{K?sb(V):V()},[K]),Y=N.useCallback((V,pe)=>{let{deletedFetchers:ue,flushSync:Ye,viewTransitionOpts:We}=pe;V.fetchers.forEach((dt,Tt)=>{dt.data!==void 0&&M.current.set(Tt,dt.data)}),ue.forEach(dt=>M.current.delete(dt));let Xe=t.window==null||t.window.document==null||typeof t.window.document.startViewTransition!="function";if(!We||Xe){Ye?Sa(()=>u(V)):W(()=>u(V));return}if(Ye){Sa(()=>{S&&(g&&g.resolve(),S.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:We.currentLocation,nextLocation:We.nextLocation})});let dt=t.window.document.startViewTransition(()=>{Sa(()=>u(V))});dt.finished.finally(()=>{Sa(()=>{v(void 0),I(void 0),h(void 0),y({isTransitioning:!1})})}),Sa(()=>I(dt));return}S?(g&&g.resolve(),S.skipTransition(),A({state:V,currentLocation:We.currentLocation,nextLocation:We.nextLocation})):(h(V),y({isTransitioning:!0,flushSync:!1,currentLocation:We.currentLocation,nextLocation:We.nextLocation}))},[t.window,S,g,M,W]);N.useLayoutEffect(()=>t.subscribe(Y),[t,Y]),N.useEffect(()=>{p.isTransitioning&&!p.flushSync&&v(new ob)},[p]),N.useEffect(()=>{if(g&&d&&t.window){let V=d,pe=g.promise,ue=t.window.document.startViewTransition(async()=>{W(()=>u(V)),await pe});ue.finished.finally(()=>{v(void 0),I(void 0),h(void 0),y({isTransitioning:!1})}),I(ue)}},[W,d,g,t.window]),N.useEffect(()=>{g&&d&&a.location.key===d.location.key&&g.resolve()},[g,S,a.location,d]),N.useEffect(()=>{!p.isTransitioning&&T&&(h(T.state),y({isTransitioning:!0,flushSync:!1,currentLocation:T.currentLocation,nextLocation:T.nextLocation}),A(void 0))},[p.isTransitioning,T]),N.useEffect(()=>{},[]);let q=N.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:V=>t.navigate(V),push:(V,pe,ue)=>t.navigate(V,{state:pe,preventScrollReset:ue==null?void 0:ue.preventScrollReset}),replace:(V,pe,ue)=>t.navigate(V,{replace:!0,state:pe,preventScrollReset:ue==null?void 0:ue.preventScrollReset})}),[t]),ce=t.basename||"/",Z=N.useMemo(()=>({router:t,navigator:q,static:!1,basename:ce}),[t,q,ce]),x=N.useMemo(()=>({v7_relativeSplatPath:t.future.v7_relativeSplatPath}),[t.future.v7_relativeSplatPath]);return N.useEffect(()=>Q1(s,t.future),[s,t.future]),N.createElement(N.Fragment,null,N.createElement(za.Provider,{value:Z},N.createElement($f.Provider,{value:a},N.createElement(nb.Provider,{value:M.current},N.createElement(Hg.Provider,{value:p},N.createElement(H1,{basename:ce,location:a.location,navigationType:a.historyAction,navigator:q,future:x},a.initialized||t.future.v7_partialHydration?N.createElement(lb,{routes:t.routes,future:t.future,state:a}):e))))),null)}const lb=N.memo(ub);function ub(n){let{routes:e,future:t,state:s}=n;return A1(e,void 0,s,t)}const cb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",db=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qg=N.forwardRef(function(e,t){let{onClick:s,relative:a,reloadDocument:u,replace:d,state:h,target:p,to:y,preventScrollReset:g,viewTransition:v}=e,S=Qg(e,G1),{basename:I}=N.useContext(Qi),T,A=!1;if(typeof y=="string"&&db.test(y)&&(T=y,cb))try{let Y=new URL(window.location.href),q=y.startsWith("//")?new URL(Y.protocol+y):new URL(y),ce=ni(q.pathname,I);q.origin===Y.origin&&ce!=null?y=ce+q.search+q.hash:A=!0}catch{}let M=O1(y,{relative:a}),K=hb(y,{replace:d,state:h,target:p,preventScrollReset:g,relative:a,viewTransition:v});function W(Y){s&&s(Y),Y.defaultPrevented||K(Y)}return N.createElement("a",go({},S,{href:T||M,onClick:A||u?s:W,ref:t,target:p}))}),wD=N.forwardRef(function(e,t){let{"aria-current":s="page",caseSensitive:a=!1,className:u="",end:d=!1,style:h,to:p,viewTransition:y,children:g}=e,v=Qg(e,J1),S=ic(p,{relative:v.relative}),I=$a(),T=N.useContext($f),{navigator:A,basename:M}=N.useContext(Qi),K=T!=null&&pb(S)&&y===!0,W=A.encodeLocation?A.encodeLocation(S).pathname:S.pathname,Y=I.pathname,q=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;a||(Y=Y.toLowerCase(),q=q?q.toLowerCase():null,W=W.toLowerCase()),q&&M&&(q=ni(q,M)||q);const ce=W!=="/"&&W.endsWith("/")?W.length-1:W.length;let Z=Y===W||!d&&Y.startsWith(W)&&Y.charAt(ce)==="/",x=q!=null&&(q===W||!d&&q.startsWith(W)&&q.charAt(W.length)==="/"),V={isActive:Z,isPending:x,isTransitioning:K},pe=Z?s:void 0,ue;typeof u=="function"?ue=u(V):ue=[u,Z?"active":null,x?"pending":null,K?"transitioning":null].filter(Boolean).join(" ");let Ye=typeof h=="function"?h(V):h;return N.createElement(qg,go({},v,{"aria-current":pe,className:ue,ref:t,style:Ye,to:p,viewTransition:y}),typeof g=="function"?g(V):g)});var Sf;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(Sf||(Sf={}));var Ey;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(Ey||(Ey={}));function fb(n){let e=N.useContext(za);return e||Ne(!1),e}function hb(n,e){let{target:t,replace:s,state:a,preventScrollReset:u,relative:d,viewTransition:h}=e===void 0?{}:e,p=R1(),y=$a(),g=ic(n,{relative:d});return N.useCallback(v=>{if(Y1(v,t)){v.preventDefault();let S=s!==void 0?s:Es(y)===Es(g);p(n,{replace:S,state:a,preventScrollReset:u,relative:d,viewTransition:h})}},[y,p,g,s,a,t,n,u,d,h])}function pb(n,e){e===void 0&&(e={});let t=N.useContext(Hg);t==null&&Ne(!1);let{basename:s}=fb(Sf.useViewTransitionState),a=ic(n,{relative:e.relative});if(!t.isTransitioning)return!1;let u=ni(t.currentLocation.pathname,s)||t.currentLocation.pathname,d=ni(t.nextLocation.pathname,s)||t.nextLocation.pathname;return Iu(a.pathname,d)!=null||Iu(a.pathname,u)!=null}function Kg(n){var e,t,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(e=0;e<a;e++)n[e]&&(t=Kg(n[e]))&&(s&&(s+=" "),s+=t)}else for(t in n)n[t]&&(s&&(s+=" "),s+=t);return s}function Tr(){for(var n,e,t=0,s="",a=arguments.length;t<a;t++)(n=arguments[t])&&(e=Kg(n))&&(s&&(s+=" "),s+=e);return s}const Rt={xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"xl"},it={Primary:"primary",Alternative:"alternative",Secondary:"secondary",Success:"success",Danger:"danger",Warning:"warning",Info:"info",Neutral:"neutral"},SD={Left:"left",Right:"right"},xy=new Map([[Rt.sm,""],[Rt.md,"-2"],[Rt.lg,"-4"]]);function Dy({size:n=Rt.sm,orientation:e="horizontal",className:t}){return B.jsx("span",{className:Tr(["block border-divider",e==="horizontal"&&`w-full border-b${xy.get(n)??""}`,e==="vertical"&&`h-full border-r${xy.get(n)??""}`],t)})}const Yg=function({children:e}){return B.jsx(B.Fragment,{children:e})};function mb({children:n,layout:e="vertical"}){return B.jsx("div",{className:Tr("font-sans w-full h-full flex overflow-hidden",e==="horizontal"?"flex-row":"flex-col"),children:n})}Yg.Page=mb;const _D={Circle:"circle"},bD={Ghost:"ghost"},yb=new Map([["primary","border-primary-500 bg-primary-500 hover:bg-primary-400 active:bg-primary-400 text-light"],["alternative","border-neutral-300 bg-neutral-5 hover:bg-neutral-20 active:bg-neutral-200 text-neutral-600"],["secondary","border-secondary-500 bg-secondary-500 hover:bg-secondary-600 active:bg-secondary-400 text-neutral-100"],["success","border-success-500 bg-success-500 hover:bg-success-600 active:bg-success-400 text-neutral-100"],["danger","border-danger-500 bg-danger-500 hover:bg-danger-600 active:bg-danger-400 text-neutral-100"],["warning","border-warning-500 bg-warning-500 hover:bg-warning-600 active:bg-warning-400 text-neutral-100"],["neutral","border-neutral-200 bg-neutral-200 hover:bg-neutral-300 active:bg-neutral-300 text-primary-900"],["info","border-transparent bg-neutral-10 dark:bg-neutral-20 active:bg-neutral-10 text-neutral-700 dark:text-neutral-200"]]),gb=new Map([["rounded","rounded-md"],["square","rounded-none"],["circle","rounded-full"]]),vb=new Map([[Rt.xs,"text-xs leading-2 border"],[Rt.sm,"px-2 py-[0.125rem] text-xs leading-4 border-2"],[Rt.md,"px-3 py-2 text-base leading-6 border-2"],[Rt.lg,"px-4 py-3 text-lg border-4"]]),ID=Gg(Do.forwardRef(Sb)),wb=Gg(Do.forwardRef(_b));function Sb({type:n="button",disabled:e=!1,children:t=[],form:s,autoFocus:a,tabIndex:u,onClick:d,className:h},p){return B.jsx("button",{ref:p,type:n,autoFocus:a,tabIndex:u,form:s,disabled:e,onClick:d,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),y.stopPropagation(),d==null||d(y))},className:h,children:t})}function _b({children:n=[],autoFocus:e,tabIndex:t,className:s},a){return B.jsx("div",{ref:a,autoFocus:e,tabIndex:t,className:s,children:n})}function Gg(n){return Do.forwardRef(function({type:t="button",disabled:s=!1,variant:a="primary",shape:u="rounded",size:d=Rt.md,children:h=[],className:p,form:y,autoFocus:g,tabIndex:v,onClick:S},I){return B.jsx(n,{ref:I,type:t,disabled:s,form:y,autoFocus:g,tabIndex:v,onClick:S,className:Tr("whitespace-nowrap flex m-1 items-center justify-center font-bold","focus:ring-4 focus:outline-none focus:border-secondary-500","ring-secondary-300 ring-opacity-60 ring-offset ring-offset-secondary-100",gb.get(u),vb.get(d),s?"opacity-50 bg-neutral-10 dark:bg-neutral-20 border-transparent text-prose cursor-not-allowed":yb.get(a),p),children:h})})}function pn({description:n,link:e,headline:t="Not Found",message:s="Go Back Home"}){return B.jsx(Yg.Page,{children:B.jsx("div",{className:"flex items-center justify-center w-full h-full",children:B.jsxs("div",{className:"text-center",children:[B.jsx("h1",{className:"text-[4rem] md:text-[6rem] lg:text-[9rem] text-secondary-10 dark:text-primary-10 mb-4",children:t}),sn(n)&&B.jsx("p",{className:"mb-10 py-5 px-4 text-neutral-70 dark:text-primary-70 w-full bg-primary-10 rounded-md",children:n}),sn(e)&&B.jsx("div",{className:"inline-block",children:B.jsx(wb,{variant:it.Alternative,children:B.jsx(qg,{to:e,children:s})})})]})})})}function ms({style:n,className:e,variant:t=it.Info}){return B.jsxs("svg",{style:n,className:Tr("animate-spin bg-transparent rounded-full",e),viewBox:"0 0 64 64",xmlns:"http://www.w3.org/2000/svg","aria-label":"Loading",role:"img",children:[B.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 59.7128C31.3054 68.5494 50.8763 63.3054 59.7128 48C68.5494 32.6946 63.3054 13.1237 48 4.28719C32.6946 -4.54937 13.1237 0.694636 4.28719 16C-4.54937 31.3054 0.694637 50.8763 16 59.7128ZM23 47.5885C31.6093 52.559 42.6179 49.6093 47.5885 41C52.559 32.3907 49.6093 21.3821 41 16.4115C32.3907 11.441 21.3821 14.3907 16.4115 23C11.441 31.6093 14.3907 42.6179 23 47.5885Z",className:"fill-theme-lighter"}),B.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.5827 26.5161C49.2259 21.9157 46.1691 17.8082 41.6875 15.2208C37.4263 12.7606 32.6191 12.103 28.1488 13.0114L25.1365 1.76921C32.4854 0.0988895 40.4586 1.08788 47.5 5.15321C54.7617 9.34574 59.6854 16.0326 61.8138 23.5067L50.5827 26.5161Z",className:Tr(t===it.Primary&&"fill-primary-500",t===it.Secondary&&"fill-secondary-500",t===it.Success&&"fill-success-500",t===it.Warning&&"fill-warning-500",t===it.Danger&&"fill-danger-500",t===it.Info&&"fill-neutral-500"),stroke:Tr(t===it.Primary&&"var(--color-primary-500)",t===it.Secondary&&"var(--color-secondary-500)",t===it.Success&&"var(--color-success-500)",t===it.Warning&&"var(--color-warning-500)",t===it.Danger&&"var(--color-danger-500)",t===it.Info&&"var(--color-neutral-500)"),strokeWidth:"4"})]})}function bb({as:n="p",size:e=Rt.sm,variant:t=it.Info,text:s,className:a}){const u=n;return B.jsx(u,{className:Tr("font-bold whitespace-nowrap",t===it.Primary&&"text-primary-600 dark:text-primary-400",t===it.Secondary&&"text-secondary-600 dark:text-secondary-400",t===it.Success&&"text-success-600 dark:text-success-400",t===it.Warning&&"text-warning-600 dark:text-warning-400",t===it.Danger&&"text-danger-600 dark:text-danger-400",t===it.Info&&"text-neutral-600 dark:text-neutral-400",e===Rt.xs&&"text-xs",e===Rt.sm&&"text-md",e===Rt.md&&"text-lg",e===Rt.lg&&"text-2xl",e===Rt.xl&&"text-4xl",a),children:s})}function ro({hasSpinner:n=!1,size:e=Rt.sm,variant:t=it.Info,text:s,children:a,className:u}){return B.jsx("span",{className:Tr(t===it.Primary&&"text-primary-600 dark:text-primary-400",t===it.Secondary&&"text-secondary-600 dark:text-secondary-400",t===it.Success&&"text-success-600 dark:text-success-400",t===it.Warning&&"text-warning-600 dark:text-warning-400",t===it.Danger&&"text-danger-600 dark:text-danger-400",t===it.Info&&"text-neutral-600 dark:text-neutral-400",u),children:B.jsxs("span",{className:"flex items-center w-full",children:[n&&B.jsx(ms,{variant:t,className:Tr(e===Rt.xs&&"w-2 h-2 mr-2",e===Rt.sm&&"w-3 h-3 mr-2",e===Rt.md&&"w-4 h-4 mr-2",e===Rt.lg&&"w-5 h-5 mr-4",e===Rt.xl&&"w-6 h-6 mr-4")}),sn(s)?B.jsx(bb,{size:e,variant:t,text:s}):a]})})}var Cy=function(){return Cy=Object.assign||function(e){for(var t,s=1,a=arguments.length;s<a;s++){t=arguments[s];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(e[u]=t[u])}return e},Cy.apply(this,arguments)};function ED(n,e){var t={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&e.indexOf(s)<0&&(t[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(n);a<s.length;a++)e.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(n,s[a])&&(t[s[a]]=n[s[a]]);return t}function ve(n,e,t,s){function a(u){return u instanceof t?u:new t(function(d){d(u)})}return new(t||(t=Promise))(function(u,d){function h(g){try{y(s.next(g))}catch(v){d(v)}}function p(g){try{y(s.throw(g))}catch(v){d(v)}}function y(g){g.done?u(g.value):a(g.value).then(h,p)}y((s=s.apply(n,e||[])).next())})}function Oy(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],s=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&s>=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function xD(n,e,t){if(t||arguments.length===2)for(var s=0,a=e.length,u;s<a;s++)(u||!(s in e))&&(u||(u=Array.prototype.slice.call(e,0,s)),u[s]=e[s]);return n.concat(u||Array.prototype.slice.call(e))}function Te(n){return this instanceof Te?(this.v=n,this):new Te(n)}function Fr(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=t.apply(n,e||[]),a,u=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),h("next"),h("throw"),h("return",d),a[Symbol.asyncIterator]=function(){return this},a;function d(I){return function(T){return Promise.resolve(T).then(I,v)}}function h(I,T){s[I]&&(a[I]=function(A){return new Promise(function(M,K){u.push([I,A,M,K])>1||p(I,A)})},T&&(a[I]=T(a[I])))}function p(I,T){try{y(s[I](T))}catch(A){S(u[0][3],A)}}function y(I){I.value instanceof Te?Promise.resolve(I.value.v).then(g,v):S(u[0][2],I)}function g(I){p("next",I)}function v(I){p("throw",I)}function S(I,T){I(T),u.shift(),u.length&&p(u[0][0],u[0][1])}}function fu(n){var e,t;return e={},s("next"),s("throw",function(a){throw a}),s("return"),e[Symbol.iterator]=function(){return this},e;function s(a,u){e[a]=n[a]?function(d){return(t=!t)?{value:Te(n[a](d)),done:!1}:u?u(d):d}:u}}function uo(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof Oy=="function"?Oy(n):n[Symbol.iterator](),t={},s("next"),s("throw"),s("return"),t[Symbol.asyncIterator]=function(){return this},t);function s(u){t[u]=n[u]&&function(d){return new Promise(function(h,p){d=n[u](d),a(h,p,d.done,d.value)})}}function a(u,d,h,p){Promise.resolve(p).then(function(y){u({value:y,done:h})},d)}}const Ib=new TextDecoder("utf-8"),_f=n=>Ib.decode(n),Eb=new TextEncoder,Qf=n=>Eb.encode(n),xb=n=>typeof n=="number",Db=n=>typeof n=="boolean",rn=n=>typeof n=="function",ir=n=>n!=null&&Object(n)===n,Ma=n=>ir(n)&&rn(n.then),sc=n=>ir(n)&&rn(n[Symbol.iterator]),Hf=n=>ir(n)&&rn(n[Symbol.asyncIterator]),bf=n=>ir(n)&&ir(n.schema),Jg=n=>ir(n)&&"done"in n&&"value"in n,Xg=n=>ir(n)&&rn(n.stat)&&xb(n.fd),Zg=n=>ir(n)&&qf(n.body),ev=n=>"_getDOMStream"in n&&"_getNodeStream"in n,qf=n=>ir(n)&&rn(n.cancel)&&rn(n.getReader)&&!ev(n),tv=n=>ir(n)&&rn(n.read)&&rn(n.pipe)&&Db(n.readable)&&!ev(n),Cb=n=>ir(n)&&rn(n.clear)&&rn(n.bytes)&&rn(n.position)&&rn(n.setPosition)&&rn(n.capacity)&&rn(n.getBufferIdentifier)&&rn(n.createLong),Kf=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function Ob(n){const e=n[0]?[n[0]]:[];let t,s,a,u;for(let d,h,p=0,y=0,g=n.length;++p<g;){if(d=e[y],h=n[p],!d||!h||d.buffer!==h.buffer||h.byteOffset<d.byteOffset){h&&(e[++y]=h);continue}if({byteOffset:t,byteLength:a}=d,{byteOffset:s,byteLength:u}=h,t+a<s||s+u<t){h&&(e[++y]=h);continue}e[y]=new Uint8Array(d.buffer,t,s-t+u)}return e}function Ry(n,e,t=0,s=e.byteLength){const a=n.byteLength,u=new Uint8Array(n.buffer,n.byteOffset,a),d=new Uint8Array(e.buffer,e.byteOffset,Math.min(s,a));return u.set(d,t),n}function Mr(n,e){const t=Ob(n),s=t.reduce((g,v)=>g+v.byteLength,0);let a,u,d,h=0,p=-1;const y=Math.min(e||Number.POSITIVE_INFINITY,s);for(const g=t.length;++p<g;){if(a=t[p],u=a.subarray(0,Math.min(a.length,y-h)),y<=h+u.length){u.length<a.length?t[p]=a.subarray(u.length):u.length===a.length&&p++,d?Ry(d,u,h):d=u;break}Ry(d||(d=new Uint8Array(y)),u,h),h+=u.length}return[d||new Uint8Array(0),t.slice(p),s-(d?d.byteLength:0)]}function ut(n,e){let t=Jg(e)?e.value:e;return t instanceof n?n===Uint8Array?new n(t.buffer,t.byteOffset,t.byteLength):t:t?(typeof t=="string"&&(t=Qf(t)),t instanceof ArrayBuffer?new n(t):t instanceof Kf?new n(t):Cb(t)?ut(n,t.bytes()):ArrayBuffer.isView(t)?t.byteLength<=0?new n(0):new n(t.buffer,t.byteOffset,t.byteLength/n.BYTES_PER_ELEMENT):n.from(t)):new n(0)}const _a=n=>ut(Int32Array,n),Ge=n=>ut(Uint8Array,n),If=n=>(n.next(),n);function*Rb(n,e){const t=function*(a){yield a},s=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Kf?t(e):sc(e)?e:t(e);return yield*If(function*(a){let u=null;do u=a.next(yield ut(n,u));while(!u.done)}(s[Symbol.iterator]())),new n}const Fb=n=>Rb(Uint8Array,n);function nv(n,e){return Fr(this,arguments,function*(){if(Ma(e))return yield Te(yield Te(yield*fu(uo(nv(n,yield Te(e))))));const s=function(d){return Fr(this,arguments,function*(){yield yield Te(yield Te(d))})},a=function(d){return Fr(this,arguments,function*(){yield Te(yield*fu(uo(If(function*(h){let p=null;do p=h.next(yield p==null?void 0:p.value);while(!p.done)}(d[Symbol.iterator]())))))})},u=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Kf?s(e):sc(e)?a(e):Hf(e)?e:s(e);return yield Te(yield*fu(uo(If(function(d){return Fr(this,arguments,function*(){let h=null;do h=yield Te(d.next(yield yield Te(ut(n,h))));while(!h.done)})}(u[Symbol.asyncIterator]()))))),yield Te(new n)})}const Tb=n=>nv(Uint8Array,n);function Mb(n,e){let t=0;const s=n.length;if(s!==e.length)return!1;if(s>0)do if(n[t]!==e[t])return!1;while(++t<s);return!0}const kn={fromIterable(n){return au(Ab(n))},fromAsyncIterable(n){return au(Pb(n))},fromDOMStream(n){return au(Nb(n))},fromNodeStream(n){return au(Bb(n))},toDOMStream(n,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(n,e){throw new Error('"toNodeStream" not available in this environment')}},au=n=>(n.next(),n);function*Ab(n){let e,t=!1,s=[],a,u,d,h=0;function p(){return u==="peek"?Mr(s,d)[0]:([a,s,h]=Mr(s,d),a)}({cmd:u,size:d}=yield null);const y=Fb(n)[Symbol.iterator]();try{do if({done:e,value:a}=Number.isNaN(d-h)?y.next():y.next(d-h),!e&&a.byteLength>0&&(s.push(a),h+=a.byteLength),e||d<=h)do({cmd:u,size:d}=yield p());while(d<h);while(!e)}catch(g){(t=!0)&&typeof y.throw=="function"&&y.throw(g)}finally{t===!1&&typeof y.return=="function"&&y.return(null)}return null}function Pb(n){return Fr(this,arguments,function*(){let t,s=!1,a=[],u,d,h,p=0;function y(){return d==="peek"?Mr(a,h)[0]:([u,a,p]=Mr(a,h),u)}({cmd:d,size:h}=yield yield Te(null));const g=Tb(n)[Symbol.asyncIterator]();try{do if({done:t,value:u}=Number.isNaN(h-p)?yield Te(g.next()):yield Te(g.next(h-p)),!t&&u.byteLength>0&&(a.push(u),p+=u.byteLength),t||h<=p)do({cmd:d,size:h}=yield yield Te(y()));while(h<p);while(!t)}catch(v){(s=!0)&&typeof g.throw=="function"&&(yield Te(g.throw(v)))}finally{s===!1&&typeof g.return=="function"&&(yield Te(g.return(new Uint8Array(0))))}return yield Te(null)})}function Nb(n){return Fr(this,arguments,function*(){let t=!1,s=!1,a=[],u,d,h,p=0;function y(){return d==="peek"?Mr(a,h)[0]:([u,a,p]=Mr(a,h),u)}({cmd:d,size:h}=yield yield Te(null));const g=new Lb(n);try{do if({done:t,value:u}=Number.isNaN(h-p)?yield Te(g.read()):yield Te(g.read(h-p)),!t&&u.byteLength>0&&(a.push(Ge(u)),p+=u.byteLength),t||h<=p)do({cmd:d,size:h}=yield yield Te(y()));while(h<p);while(!t)}catch(v){(s=!0)&&(yield Te(g.cancel(v)))}finally{s===!1?yield Te(g.cancel()):n.locked&&g.releaseLock()}return yield Te(null)})}class Lb{constructor(e){this.source=e,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return ve(this,void 0,void 0,function*(){const{reader:t,source:s}=this;t&&(yield t.cancel(e).catch(()=>{})),s&&s.locked&&this.releaseLock()})}read(e){return ve(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};const t=yield this.reader.read();return!t.done&&(t.value=Ge(t)),t})}}const nf=(n,e)=>{const t=a=>s([e,a]);let s;return[e,t,new Promise(a=>(s=a)&&n.once(e,t))]};function Bb(n){return Fr(this,arguments,function*(){const t=[];let s="error",a=!1,u=null,d,h,p=0,y=[],g;function v(){return d==="peek"?Mr(y,h)[0]:([g,y,p]=Mr(y,h),g)}if({cmd:d,size:h}=yield yield Te(null),n.isTTY)return yield yield Te(new Uint8Array(0)),yield Te(null);try{t[0]=nf(n,"end"),t[1]=nf(n,"error");do{if(t[2]=nf(n,"readable"),[s,u]=yield Te(Promise.race(t.map(I=>I[2]))),s==="error")break;if((a=s==="end")||(Number.isFinite(h-p)?(g=Ge(n.read(h-p)),g.byteLength<h-p&&(g=Ge(n.read()))):g=Ge(n.read()),g.byteLength>0&&(y.push(g),p+=g.byteLength)),a||h<=p)do({cmd:d,size:h}=yield yield Te(v()));while(h<p)}while(!a)}finally{yield Te(S(t,s==="error"?u:null))}return yield Te(null);function S(I,T){return g=y=null,new Promise((A,M)=>{for(const[K,W]of I)n.off(K,W);try{const K=n.destroy;K&&K.call(n,T),T=void 0}catch(K){T=K||T}finally{T!=null?M(T):A()}})}})}var Vn;(function(n){n[n.V1=0]="V1",n[n.V2=1]="V2",n[n.V3=2]="V3",n[n.V4=3]="V4",n[n.V5=4]="V5"})(Vn||(Vn={}));var sr;(function(n){n[n.Sparse=0]="Sparse",n[n.Dense=1]="Dense"})(sr||(sr={}));var wn;(function(n){n[n.HALF=0]="HALF",n[n.SINGLE=1]="SINGLE",n[n.DOUBLE=2]="DOUBLE"})(wn||(wn={}));var ri;(function(n){n[n.DAY=0]="DAY",n[n.MILLISECOND=1]="MILLISECOND"})(ri||(ri={}));var Ke;(function(n){n[n.SECOND=0]="SECOND",n[n.MILLISECOND=1]="MILLISECOND",n[n.MICROSECOND=2]="MICROSECOND",n[n.NANOSECOND=3]="NANOSECOND"})(Ke||(Ke={}));var ji;(function(n){n[n.YEAR_MONTH=0]="YEAR_MONTH",n[n.DAY_TIME=1]="DAY_TIME",n[n.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(ji||(ji={}));var st;(function(n){n[n.NONE=0]="NONE",n[n.Schema=1]="Schema",n[n.DictionaryBatch=2]="DictionaryBatch",n[n.RecordBatch=3]="RecordBatch",n[n.Tensor=4]="Tensor",n[n.SparseTensor=5]="SparseTensor"})(st||(st={}));var O;(function(n){n[n.NONE=0]="NONE",n[n.Null=1]="Null",n[n.Int=2]="Int",n[n.Float=3]="Float",n[n.Binary=4]="Binary",n[n.Utf8=5]="Utf8",n[n.Bool=6]="Bool",n[n.Decimal=7]="Decimal",n[n.Date=8]="Date",n[n.Time=9]="Time",n[n.Timestamp=10]="Timestamp",n[n.Interval=11]="Interval",n[n.List=12]="List",n[n.Struct=13]="Struct",n[n.Union=14]="Union",n[n.FixedSizeBinary=15]="FixedSizeBinary",n[n.FixedSizeList=16]="FixedSizeList",n[n.Map=17]="Map",n[n.Dictionary=-1]="Dictionary",n[n.Int8=-2]="Int8",n[n.Int16=-3]="Int16",n[n.Int32=-4]="Int32",n[n.Int64=-5]="Int64",n[n.Uint8=-6]="Uint8",n[n.Uint16=-7]="Uint16",n[n.Uint32=-8]="Uint32",n[n.Uint64=-9]="Uint64",n[n.Float16=-10]="Float16",n[n.Float32=-11]="Float32",n[n.Float64=-12]="Float64",n[n.DateDay=-13]="DateDay",n[n.DateMillisecond=-14]="DateMillisecond",n[n.TimestampSecond=-15]="TimestampSecond",n[n.TimestampMillisecond=-16]="TimestampMillisecond",n[n.TimestampMicrosecond=-17]="TimestampMicrosecond",n[n.TimestampNanosecond=-18]="TimestampNanosecond",n[n.TimeSecond=-19]="TimeSecond",n[n.TimeMillisecond=-20]="TimeMillisecond",n[n.TimeMicrosecond=-21]="TimeMicrosecond",n[n.TimeNanosecond=-22]="TimeNanosecond",n[n.DenseUnion=-23]="DenseUnion",n[n.SparseUnion=-24]="SparseUnion",n[n.IntervalDayTime=-25]="IntervalDayTime",n[n.IntervalYearMonth=-26]="IntervalYearMonth"})(O||(O={}));var qr;(function(n){n[n.OFFSET=0]="OFFSET",n[n.DATA=1]="DATA",n[n.VALIDITY=2]="VALIDITY",n[n.TYPE=3]="TYPE"})(qr||(qr={}));const kb=void 0;function Aa(n){if(n===null)return"null";if(n===kb)return"undefined";switch(typeof n){case"number":return`${n}`;case"bigint":return`${n}`;case"string":return`"${n}"`}return typeof n[Symbol.toPrimitive]=="function"?n[Symbol.toPrimitive]("string"):ArrayBuffer.isView(n)?n instanceof BigInt64Array||n instanceof BigUint64Array?`[${[...n].map(e=>Aa(e))}]`:`[${n}]`:ArrayBuffer.isView(n)?`[${n}]`:JSON.stringify(n,(e,t)=>typeof t=="bigint"?`${t}`:t)}const Ub=Symbol.for("isArrowBigNum");function lr(n,...e){return e.length===0?Object.setPrototypeOf(ut(this.TypedArray,n),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(n,...e),this.constructor.prototype)}lr.prototype[Ub]=!0;lr.prototype.toJSON=function(){return`"${Na(this)}"`};lr.prototype.valueOf=function(){return rv(this)};lr.prototype.toString=function(){return Na(this)};lr.prototype[Symbol.toPrimitive]=function(n="default"){switch(n){case"number":return rv(this);case"string":return Na(this);case"default":return jb(this)}return Na(this)};function co(...n){return lr.apply(this,n)}function fo(...n){return lr.apply(this,n)}function Pa(...n){return lr.apply(this,n)}Object.setPrototypeOf(co.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(fo.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(Pa.prototype,Object.create(Uint32Array.prototype));Object.assign(co.prototype,lr.prototype,{constructor:co,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array});Object.assign(fo.prototype,lr.prototype,{constructor:fo,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Object.assign(Pa.prototype,lr.prototype,{constructor:Pa,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});function rv(n){const{buffer:e,byteOffset:t,length:s,signed:a}=n,u=new BigUint64Array(e,t,s),d=a&&u.at(-1)&BigInt(1)<<BigInt(63);let h=BigInt(d?1:0),p=BigInt(0);if(d){for(const y of u)h+=~y*(BigInt(1)<<BigInt(32)*p++);h*=BigInt(-1)}else for(const y of u)h+=y*(BigInt(1)<<BigInt(32)*p++);return h}const Na=n=>{if(n.byteLength===8)return`${new n.BigIntArray(n.buffer,n.byteOffset,1)[0]}`;if(!n.signed)return rf(n);let e=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2);if(new Int16Array([e.at(-1)])[0]>=0)return rf(n);e=e.slice();let s=1;for(let u=0;u<e.length;u++){const d=e[u],h=~d+s;e[u]=h,s&=d===0?1:0}return`-${rf(e)}`},jb=n=>n.byteLength===8?new n.BigIntArray(n.buffer,n.byteOffset,1)[0]:Na(n);function rf(n){let e="";const t=new Uint32Array(2);let s=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2);const a=new Uint32Array((s=new Uint16Array(s).reverse()).buffer);let u=-1;const d=s.length-1;do{for(t[0]=s[u=0];u<d;)s[u++]=t[1]=t[0]/10,t[0]=(t[0]-t[1]*10<<16)+s[u];s[u]=t[1]=t[0]/10,t[0]=t[0]-t[1]*10,e=`${t[0]}${e}`}while(a[0]||a[1]||a[2]||a[3]);return e??"0"}class Yf{static new(e,t){switch(t){case!0:return new co(e);case!1:return new fo(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new co(e)}return e.byteLength===16?new Pa(e):new fo(e)}static signed(e){return new co(e)}static unsigned(e){return new fo(e)}static decimal(e){return new Pa(e)}constructor(e,t){return Yf.new(e,t)}}function or(n){if(typeof n=="bigint"&&(n<Number.MIN_SAFE_INTEGER||n>Number.MAX_SAFE_INTEGER))throw new TypeError(`${n} is not safe to convert to a number.`);return Number(n)}var iv,sv,ov,av,lv,uv,cv,dv,fv,hv,pv,mv,yv,gv,vv,wv,Sv,_v,bv;class Re{static isNull(e){return(e==null?void 0:e.typeId)===O.Null}static isInt(e){return(e==null?void 0:e.typeId)===O.Int}static isFloat(e){return(e==null?void 0:e.typeId)===O.Float}static isBinary(e){return(e==null?void 0:e.typeId)===O.Binary}static isUtf8(e){return(e==null?void 0:e.typeId)===O.Utf8}static isBool(e){return(e==null?void 0:e.typeId)===O.Bool}static isDecimal(e){return(e==null?void 0:e.typeId)===O.Decimal}static isDate(e){return(e==null?void 0:e.typeId)===O.Date}static isTime(e){return(e==null?void 0:e.typeId)===O.Time}static isTimestamp(e){return(e==null?void 0:e.typeId)===O.Timestamp}static isInterval(e){return(e==null?void 0:e.typeId)===O.Interval}static isList(e){return(e==null?void 0:e.typeId)===O.List}static isStruct(e){return(e==null?void 0:e.typeId)===O.Struct}static isUnion(e){return(e==null?void 0:e.typeId)===O.Union}static isFixedSizeBinary(e){return(e==null?void 0:e.typeId)===O.FixedSizeBinary}static isFixedSizeList(e){return(e==null?void 0:e.typeId)===O.FixedSizeList}static isMap(e){return(e==null?void 0:e.typeId)===O.Map}static isDictionary(e){return(e==null?void 0:e.typeId)===O.Dictionary}static isDenseUnion(e){return Re.isUnion(e)&&e.mode===sr.Dense}static isSparseUnion(e){return Re.isUnion(e)&&e.mode===sr.Sparse}get typeId(){return O.NONE}}iv=Symbol.toStringTag;Re[iv]=(n=>(n.children=null,n.ArrayType=Array,n[Symbol.toStringTag]="DataType"))(Re.prototype);let zi=class extends Re{toString(){return"Null"}get typeId(){return O.Null}};sv=Symbol.toStringTag;zi[sv]=(n=>n[Symbol.toStringTag]="Null")(zi.prototype);class Vi extends Re{constructor(e,t){super(),this.isSigned=e,this.bitWidth=t}get typeId(){return O.Int}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}ov=Symbol.toStringTag;Vi[ov]=(n=>(n.isSigned=null,n.bitWidth=null,n[Symbol.toStringTag]="Int"))(Vi.prototype);class La extends Vi{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(La.prototype,"ArrayType",{value:Int32Array});class Ba extends Re{constructor(e){super(),this.precision=e}get typeId(){return O.Float}get ArrayType(){switch(this.precision){case wn.HALF:return Uint16Array;case wn.SINGLE:return Float32Array;case wn.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}av=Symbol.toStringTag;Ba[av]=(n=>(n.precision=null,n[Symbol.toStringTag]="Float"))(Ba.prototype);let Du=class extends Re{constructor(){super()}get typeId(){return O.Binary}toString(){return"Binary"}};lv=Symbol.toStringTag;Du[lv]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Binary"))(Du.prototype);let Cu=class extends Re{constructor(){super()}get typeId(){return O.Utf8}toString(){return"Utf8"}};uv=Symbol.toStringTag;Cu[uv]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Utf8"))(Cu.prototype);let Ou=class extends Re{constructor(){super()}get typeId(){return O.Bool}toString(){return"Bool"}};cv=Symbol.toStringTag;Ou[cv]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Bool"))(Ou.prototype);let Ru=class extends Re{constructor(e,t,s=128){super(),this.scale=e,this.precision=t,this.bitWidth=s}get typeId(){return O.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};dv=Symbol.toStringTag;Ru[dv]=(n=>(n.scale=null,n.precision=null,n.ArrayType=Uint32Array,n[Symbol.toStringTag]="Decimal"))(Ru.prototype);class Fu extends Re{constructor(e){super(),this.unit=e}get typeId(){return O.Date}toString(){return`Date${(this.unit+1)*32}<${ri[this.unit]}>`}}fv=Symbol.toStringTag;Fu[fv]=(n=>(n.unit=null,n.ArrayType=Int32Array,n[Symbol.toStringTag]="Date"))(Fu.prototype);class ka extends Re{constructor(e,t){super(),this.unit=e,this.bitWidth=t}get typeId(){return O.Time}toString(){return`Time${this.bitWidth}<${Ke[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}hv=Symbol.toStringTag;ka[hv]=(n=>(n.unit=null,n.bitWidth=null,n[Symbol.toStringTag]="Time"))(ka.prototype);class Tu extends Re{constructor(e,t){super(),this.unit=e,this.timezone=t}get typeId(){return O.Timestamp}toString(){return`Timestamp<${Ke[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}pv=Symbol.toStringTag;Tu[pv]=(n=>(n.unit=null,n.timezone=null,n.ArrayType=Int32Array,n[Symbol.toStringTag]="Timestamp"))(Tu.prototype);class Mu extends Re{constructor(e){super(),this.unit=e}get typeId(){return O.Interval}toString(){return`Interval<${ji[this.unit]}>`}}mv=Symbol.toStringTag;Mu[mv]=(n=>(n.unit=null,n.ArrayType=Int32Array,n[Symbol.toStringTag]="Interval"))(Mu.prototype);let Au=class extends Re{constructor(e){super(),this.children=[e]}get typeId(){return O.List}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};yv=Symbol.toStringTag;Au[yv]=(n=>(n.children=null,n[Symbol.toStringTag]="List"))(Au.prototype);class on extends Re{constructor(e){super(),this.children=e}get typeId(){return O.Struct}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}gv=Symbol.toStringTag;on[gv]=(n=>(n.children=null,n[Symbol.toStringTag]="Struct"))(on.prototype);class Pu extends Re{constructor(e,t,s){super(),this.mode=e,this.children=s,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((a,u,d)=>(a[u]=d)&&a||a,Object.create(null))}get typeId(){return O.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(" | ")}>`}}vv=Symbol.toStringTag;Pu[vv]=(n=>(n.mode=null,n.typeIds=null,n.children=null,n.typeIdToChildIndex=null,n.ArrayType=Int8Array,n[Symbol.toStringTag]="Union"))(Pu.prototype);let Nu=class extends Re{constructor(e){super(),this.byteWidth=e}get typeId(){return O.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};wv=Symbol.toStringTag;Nu[wv]=(n=>(n.byteWidth=null,n.ArrayType=Uint8Array,n[Symbol.toStringTag]="FixedSizeBinary"))(Nu.prototype);let Lu=class extends Re{constructor(e,t){super(),this.listSize=e,this.children=[t]}get typeId(){return O.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};Sv=Symbol.toStringTag;Lu[Sv]=(n=>(n.children=null,n.listSize=null,n[Symbol.toStringTag]="FixedSizeList"))(Lu.prototype);class Bu extends Re{constructor(e,t=!1){super(),this.children=[e],this.keysSorted=t}get typeId(){return O.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}_v=Symbol.toStringTag;Bu[_v]=(n=>(n.children=null,n.keysSorted=null,n[Symbol.toStringTag]="Map_"))(Bu.prototype);const zb=(n=>()=>++n)(-1);class vo extends Re{constructor(e,t,s,a){super(),this.indices=t,this.dictionary=e,this.isOrdered=a||!1,this.id=s==null?zb():or(s)}get typeId(){return O.Dictionary}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}bv=Symbol.toStringTag;vo[bv]=(n=>(n.id=null,n.indices=null,n.isOrdered=null,n.dictionary=null,n[Symbol.toStringTag]="Dictionary"))(vo.prototype);function Kr(n){const e=n;switch(n.typeId){case O.Decimal:return n.bitWidth/32;case O.Timestamp:return 2;case O.Date:return 1+e.unit;case O.Interval:return 1+e.unit;case O.FixedSizeList:return e.listSize;case O.FixedSizeBinary:return e.byteWidth;default:return 1}}class Ve{visitMany(e,...t){return e.map((s,a)=>this.visit(s,...t.map(u=>u[a])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return Vb(this,e,t)}getVisitFnByTypeId(e,t=!0){return io(this,e,t)}visitNull(e,...t){return null}visitBool(e,...t){return null}visitInt(e,...t){return null}visitFloat(e,...t){return null}visitUtf8(e,...t){return null}visitBinary(e,...t){return null}visitFixedSizeBinary(e,...t){return null}visitDate(e,...t){return null}visitTimestamp(e,...t){return null}visitTime(e,...t){return null}visitDecimal(e,...t){return null}visitList(e,...t){return null}visitStruct(e,...t){return null}visitUnion(e,...t){return null}visitDictionary(e,...t){return null}visitInterval(e,...t){return null}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}}function Vb(n,e,t=!0){return typeof e=="number"?io(n,e,t):typeof e=="string"&&e in O?io(n,O[e],t):e&&e instanceof Re?io(n,Fy(e),t):e!=null&&e.type&&e.type instanceof Re?io(n,Fy(e.type),t):io(n,O.NONE,t)}function io(n,e,t=!0){let s=null;switch(e){case O.Null:s=n.visitNull;break;case O.Bool:s=n.visitBool;break;case O.Int:s=n.visitInt;break;case O.Int8:s=n.visitInt8||n.visitInt;break;case O.Int16:s=n.visitInt16||n.visitInt;break;case O.Int32:s=n.visitInt32||n.visitInt;break;case O.Int64:s=n.visitInt64||n.visitInt;break;case O.Uint8:s=n.visitUint8||n.visitInt;break;case O.Uint16:s=n.visitUint16||n.visitInt;break;case O.Uint32:s=n.visitUint32||n.visitInt;break;case O.Uint64:s=n.visitUint64||n.visitInt;break;case O.Float:s=n.visitFloat;break;case O.Float16:s=n.visitFloat16||n.visitFloat;break;case O.Float32:s=n.visitFloat32||n.visitFloat;break;case O.Float64:s=n.visitFloat64||n.visitFloat;break;case O.Utf8:s=n.visitUtf8;break;case O.Binary:s=n.visitBinary;break;case O.FixedSizeBinary:s=n.visitFixedSizeBinary;break;case O.Date:s=n.visitDate;break;case O.DateDay:s=n.visitDateDay||n.visitDate;break;case O.DateMillisecond:s=n.visitDateMillisecond||n.visitDate;break;case O.Timestamp:s=n.visitTimestamp;break;case O.TimestampSecond:s=n.visitTimestampSecond||n.visitTimestamp;break;case O.TimestampMillisecond:s=n.visitTimestampMillisecond||n.visitTimestamp;break;case O.TimestampMicrosecond:s=n.visitTimestampMicrosecond||n.visitTimestamp;break;case O.TimestampNanosecond:s=n.visitTimestampNanosecond||n.visitTimestamp;break;case O.Time:s=n.visitTime;break;case O.TimeSecond:s=n.visitTimeSecond||n.visitTime;break;case O.TimeMillisecond:s=n.visitTimeMillisecond||n.visitTime;break;case O.TimeMicrosecond:s=n.visitTimeMicrosecond||n.visitTime;break;case O.TimeNanosecond:s=n.visitTimeNanosecond||n.visitTime;break;case O.Decimal:s=n.visitDecimal;break;case O.List:s=n.visitList;break;case O.Struct:s=n.visitStruct;break;case O.Union:s=n.visitUnion;break;case O.DenseUnion:s=n.visitDenseUnion||n.visitUnion;break;case O.SparseUnion:s=n.visitSparseUnion||n.visitUnion;break;case O.Dictionary:s=n.visitDictionary;break;case O.Interval:s=n.visitInterval;break;case O.IntervalDayTime:s=n.visitIntervalDayTime||n.visitInterval;break;case O.IntervalYearMonth:s=n.visitIntervalYearMonth||n.visitInterval;break;case O.FixedSizeList:s=n.visitFixedSizeList;break;case O.Map:s=n.visitMap;break}if(typeof s=="function")return s;if(!t)return()=>null;throw new Error(`Unrecognized type '${O[e]}'`)}function Fy(n){switch(n.typeId){case O.Null:return O.Null;case O.Int:{const{bitWidth:e,isSigned:t}=n;switch(e){case 8:return t?O.Int8:O.Uint8;case 16:return t?O.Int16:O.Uint16;case 32:return t?O.Int32:O.Uint32;case 64:return t?O.Int64:O.Uint64}return O.Int}case O.Float:switch(n.precision){case wn.HALF:return O.Float16;case wn.SINGLE:return O.Float32;case wn.DOUBLE:return O.Float64}return O.Float;case O.Binary:return O.Binary;case O.Utf8:return O.Utf8;case O.Bool:return O.Bool;case O.Decimal:return O.Decimal;case O.Time:switch(n.unit){case Ke.SECOND:return O.TimeSecond;case Ke.MILLISECOND:return O.TimeMillisecond;case Ke.MICROSECOND:return O.TimeMicrosecond;case Ke.NANOSECOND:return O.TimeNanosecond}return O.Time;case O.Timestamp:switch(n.unit){case Ke.SECOND:return O.TimestampSecond;case Ke.MILLISECOND:return O.TimestampMillisecond;case Ke.MICROSECOND:return O.TimestampMicrosecond;case Ke.NANOSECOND:return O.TimestampNanosecond}return O.Timestamp;case O.Date:switch(n.unit){case ri.DAY:return O.DateDay;case ri.MILLISECOND:return O.DateMillisecond}return O.Date;case O.Interval:switch(n.unit){case ji.DAY_TIME:return O.IntervalDayTime;case ji.YEAR_MONTH:return O.IntervalYearMonth}return O.Interval;case O.Map:return O.Map;case O.List:return O.List;case O.Struct:return O.Struct;case O.Union:switch(n.mode){case sr.Dense:return O.DenseUnion;case sr.Sparse:return O.SparseUnion}return O.Union;case O.FixedSizeBinary:return O.FixedSizeBinary;case O.FixedSizeList:return O.FixedSizeList;case O.Dictionary:return O.Dictionary}throw new Error(`Unrecognized type '${O[n.typeId]}'`)}Ve.prototype.visitInt8=null;Ve.prototype.visitInt16=null;Ve.prototype.visitInt32=null;Ve.prototype.visitInt64=null;Ve.prototype.visitUint8=null;Ve.prototype.visitUint16=null;Ve.prototype.visitUint32=null;Ve.prototype.visitUint64=null;Ve.prototype.visitFloat16=null;Ve.prototype.visitFloat32=null;Ve.prototype.visitFloat64=null;Ve.prototype.visitDateDay=null;Ve.prototype.visitDateMillisecond=null;Ve.prototype.visitTimestampSecond=null;Ve.prototype.visitTimestampMillisecond=null;Ve.prototype.visitTimestampMicrosecond=null;Ve.prototype.visitTimestampNanosecond=null;Ve.prototype.visitTimeSecond=null;Ve.prototype.visitTimeMillisecond=null;Ve.prototype.visitTimeMicrosecond=null;Ve.prototype.visitTimeNanosecond=null;Ve.prototype.visitDenseUnion=null;Ve.prototype.visitSparseUnion=null;Ve.prototype.visitIntervalDayTime=null;Ve.prototype.visitIntervalYearMonth=null;const Iv=new Float64Array(1),to=new Uint32Array(Iv.buffer);function Ev(n){const e=(n&31744)>>10,t=(n&1023)/1024,s=Math.pow(-1,(n&32768)>>15);switch(e){case 31:return s*(t?Number.NaN:1/0);case 0:return s*(t?6103515625e-14*t:0)}return s*Math.pow(2,e-15)*(1+t)}function $b(n){if(n!==n)return 32256;Iv[0]=n;const e=(to[1]&2147483648)>>16&65535;let t=to[1]&2146435072,s=0;return t>=1089470464?to[0]>0?t=31744:(t=(t&2080374784)>>16,s=(to[1]&1048575)>>10):t<=1056964608?(s=1048576+(to[1]&1048575),s=1048576+(s<<(t>>20)-998)>>21,t=0):(t=t-1056964608>>10,s=(to[1]&1048575)+512>>10),e|t|s&65535}class De extends Ve{}function Fe(n){return(e,t,s)=>{if(e.setValid(t,s!=null))return n(e,t,s)}}const Wb=(n,e,t)=>{n[e]=Math.trunc(t/864e5)},Gf=(n,e,t)=>{n[e]=Math.trunc(t%4294967296),n[e+1]=Math.trunc(t/4294967296)},Qb=(n,e,t)=>{n[e]=Math.trunc(t*1e3%4294967296),n[e+1]=Math.trunc(t*1e3/4294967296)},Hb=(n,e,t)=>{n[e]=Math.trunc(t*1e6%4294967296),n[e+1]=Math.trunc(t*1e6/4294967296)},xv=(n,e,t,s)=>{if(t+1<e.length){const{[t]:a,[t+1]:u}=e;n.set(s.subarray(0,u-a),a)}},qb=({offset:n,values:e},t,s)=>{const a=n+t;s?e[a>>3]|=1<<a%8:e[a>>3]&=~(1<<a%8)},oi=({values:n},e,t)=>{n[e]=t},Jf=({values:n},e,t)=>{n[e]=t},Dv=({values:n},e,t)=>{n[e]=$b(t)},Kb=(n,e,t)=>{switch(n.type.precision){case wn.HALF:return Dv(n,e,t);case wn.SINGLE:case wn.DOUBLE:return Jf(n,e,t)}},Cv=({values:n},e,t)=>{Wb(n,e,t.valueOf())},Ov=({values:n},e,t)=>{Gf(n,e*2,t.valueOf())},Yb=({stride:n,values:e},t,s)=>{e.set(s.subarray(0,n),n*t)},Gb=({values:n,valueOffsets:e},t,s)=>xv(n,e,t,s),Jb=({values:n,valueOffsets:e},t,s)=>{xv(n,e,t,Qf(s))},Xb=(n,e,t)=>{n.type.unit===ri.DAY?Cv(n,e,t):Ov(n,e,t)},Rv=({values:n},e,t)=>Gf(n,e*2,t/1e3),Fv=({values:n},e,t)=>Gf(n,e*2,t),Tv=({values:n},e,t)=>Qb(n,e*2,t),Mv=({values:n},e,t)=>Hb(n,e*2,t),Zb=(n,e,t)=>{switch(n.type.unit){case Ke.SECOND:return Rv(n,e,t);case Ke.MILLISECOND:return Fv(n,e,t);case Ke.MICROSECOND:return Tv(n,e,t);case Ke.NANOSECOND:return Mv(n,e,t)}},Av=({values:n},e,t)=>{n[e]=t},Pv=({values:n},e,t)=>{n[e]=t},Nv=({values:n},e,t)=>{n[e]=t},Lv=({values:n},e,t)=>{n[e]=t},eI=(n,e,t)=>{switch(n.type.unit){case Ke.SECOND:return Av(n,e,t);case Ke.MILLISECOND:return Pv(n,e,t);case Ke.MICROSECOND:return Nv(n,e,t);case Ke.NANOSECOND:return Lv(n,e,t)}},tI=({values:n,stride:e},t,s)=>{n.set(s.subarray(0,e),e*t)},nI=(n,e,t)=>{const s=n.children[0],a=n.valueOffsets,u=$n.getVisitFn(s);if(Array.isArray(t))for(let d=-1,h=a[e],p=a[e+1];h<p;)u(s,h++,t[++d]);else for(let d=-1,h=a[e],p=a[e+1];h<p;)u(s,h++,t.get(++d))},rI=(n,e,t)=>{const s=n.children[0],{valueOffsets:a}=n,u=$n.getVisitFn(s);let{[e]:d,[e+1]:h}=a;const p=t instanceof Map?t.entries():Object.entries(t);for(const y of p)if(u(s,d,y),++d>=h)break},iI=(n,e)=>(t,s,a,u)=>s&&t(s,n,e[u]),sI=(n,e)=>(t,s,a,u)=>s&&t(s,n,e.get(u)),oI=(n,e)=>(t,s,a,u)=>s&&t(s,n,e.get(a.name)),aI=(n,e)=>(t,s,a,u)=>s&&t(s,n,e[a.name]),lI=(n,e,t)=>{const s=n.type.children.map(u=>$n.getVisitFn(u.type)),a=t instanceof Map?oI(e,t):t instanceof ot?sI(e,t):Array.isArray(t)?iI(e,t):aI(e,t);n.type.children.forEach((u,d)=>a(s[d],n.children[d],u,d))},uI=(n,e,t)=>{n.type.mode===sr.Dense?Bv(n,e,t):kv(n,e,t)},Bv=(n,e,t)=>{const s=n.type.typeIdToChildIndex[n.typeIds[e]],a=n.children[s];$n.visit(a,n.valueOffsets[e],t)},kv=(n,e,t)=>{const s=n.type.typeIdToChildIndex[n.typeIds[e]],a=n.children[s];$n.visit(a,e,t)},cI=(n,e,t)=>{var s;(s=n.dictionary)===null||s===void 0||s.set(n.values[e],t)},dI=(n,e,t)=>{n.type.unit===ji.DAY_TIME?Uv(n,e,t):jv(n,e,t)},Uv=({values:n},e,t)=>{n.set(t.subarray(0,2),2*e)},jv=({values:n},e,t)=>{n[e]=t[0]*12+t[1]%12},fI=(n,e,t)=>{const{stride:s}=n,a=n.children[0],u=$n.getVisitFn(a);if(Array.isArray(t))for(let d=-1,h=e*s;++d<s;)u(a,h+d,t[d]);else for(let d=-1,h=e*s;++d<s;)u(a,h+d,t.get(d))};De.prototype.visitBool=Fe(qb);De.prototype.visitInt=Fe(oi);De.prototype.visitInt8=Fe(oi);De.prototype.visitInt16=Fe(oi);De.prototype.visitInt32=Fe(oi);De.prototype.visitInt64=Fe(oi);De.prototype.visitUint8=Fe(oi);De.prototype.visitUint16=Fe(oi);De.prototype.visitUint32=Fe(oi);De.prototype.visitUint64=Fe(oi);De.prototype.visitFloat=Fe(Kb);De.prototype.visitFloat16=Fe(Dv);De.prototype.visitFloat32=Fe(Jf);De.prototype.visitFloat64=Fe(Jf);De.prototype.visitUtf8=Fe(Jb);De.prototype.visitBinary=Fe(Gb);De.prototype.visitFixedSizeBinary=Fe(Yb);De.prototype.visitDate=Fe(Xb);De.prototype.visitDateDay=Fe(Cv);De.prototype.visitDateMillisecond=Fe(Ov);De.prototype.visitTimestamp=Fe(Zb);De.prototype.visitTimestampSecond=Fe(Rv);De.prototype.visitTimestampMillisecond=Fe(Fv);De.prototype.visitTimestampMicrosecond=Fe(Tv);De.prototype.visitTimestampNanosecond=Fe(Mv);De.prototype.visitTime=Fe(eI);De.prototype.visitTimeSecond=Fe(Av);De.prototype.visitTimeMillisecond=Fe(Pv);De.prototype.visitTimeMicrosecond=Fe(Nv);De.prototype.visitTimeNanosecond=Fe(Lv);De.prototype.visitDecimal=Fe(tI);De.prototype.visitList=Fe(nI);De.prototype.visitStruct=Fe(lI);De.prototype.visitUnion=Fe(uI);De.prototype.visitDenseUnion=Fe(Bv);De.prototype.visitSparseUnion=Fe(kv);De.prototype.visitDictionary=Fe(cI);De.prototype.visitInterval=Fe(dI);De.prototype.visitIntervalDayTime=Fe(Uv);De.prototype.visitIntervalYearMonth=Fe(jv);De.prototype.visitFixedSizeList=Fe(fI);De.prototype.visitMap=Fe(rI);const $n=new De,tr=Symbol.for("parent"),ho=Symbol.for("rowIndex");class Xf{constructor(e,t){return this[tr]=e,this[ho]=t,new Proxy(this,new pI)}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[ho],t=this[tr],s=t.type.children,a={};for(let u=-1,d=s.length;++u<d;)a[s[u].name]=Sn.visit(t.children[u],e);return a}toString(){return`{${[...this].map(([e,t])=>`${Aa(e)}: ${Aa(t)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new hI(this[tr],this[ho])}}class hI{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const e=this.childIndex;return e<this.numChildren?(this.childIndex=e+1,{done:!1,value:[this.childFields[e].name,Sn.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(Xf.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[tr]:{writable:!0,enumerable:!1,configurable:!1,value:null},[ho]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class pI{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[tr].type.children.map(t=>t.name)}has(e,t){return e[tr].type.children.findIndex(s=>s.name===t)!==-1}getOwnPropertyDescriptor(e,t){if(e[tr].type.children.findIndex(s=>s.name===t)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];const s=e[tr].type.children.findIndex(a=>a.name===t);if(s!==-1){const a=Sn.visit(e[tr].children[s],e[ho]);return Reflect.set(e,t,a),a}}set(e,t,s){const a=e[tr].type.children.findIndex(u=>u.name===t);return a!==-1?($n.visit(e[tr].children[a],e[ho],s),Reflect.set(e,t,s)):Reflect.has(e,t)||typeof t=="symbol"?Reflect.set(e,t,s):!1}}class _e extends Ve{}function Ce(n){return(e,t)=>e.getValid(t)?n(e,t):null}const mI=(n,e)=>864e5*n[e],Zf=(n,e)=>4294967296*n[e+1]+(n[e]>>>0),yI=(n,e)=>4294967296*(n[e+1]/1e3)+(n[e]>>>0)/1e3,gI=(n,e)=>4294967296*(n[e+1]/1e6)+(n[e]>>>0)/1e6,zv=n=>new Date(n),vI=(n,e)=>zv(mI(n,e)),wI=(n,e)=>zv(Zf(n,e)),SI=(n,e)=>null,Vv=(n,e,t)=>{if(t+1>=e.length)return null;const s=e[t],a=e[t+1];return n.subarray(s,a)},_I=({offset:n,values:e},t)=>{const s=n+t;return(e[s>>3]&1<<s%8)!==0},$v=({values:n},e)=>vI(n,e),Wv=({values:n},e)=>wI(n,e*2),Hi=({stride:n,values:e},t)=>e[n*t],bI=({stride:n,values:e},t)=>Ev(e[n*t]),Qv=({values:n},e)=>n[e],II=({stride:n,values:e},t)=>e.subarray(n*t,n*(t+1)),EI=({values:n,valueOffsets:e},t)=>Vv(n,e,t),xI=({values:n,valueOffsets:e},t)=>{const s=Vv(n,e,t);return s!==null?_f(s):null},DI=({values:n},e)=>n[e],CI=({type:n,values:e},t)=>n.precision!==wn.HALF?e[t]:Ev(e[t]),OI=(n,e)=>n.type.unit===ri.DAY?$v(n,e):Wv(n,e),Hv=({values:n},e)=>1e3*Zf(n,e*2),qv=({values:n},e)=>Zf(n,e*2),Kv=({values:n},e)=>yI(n,e*2),Yv=({values:n},e)=>gI(n,e*2),RI=(n,e)=>{switch(n.type.unit){case Ke.SECOND:return Hv(n,e);case Ke.MILLISECOND:return qv(n,e);case Ke.MICROSECOND:return Kv(n,e);case Ke.NANOSECOND:return Yv(n,e)}},Gv=({values:n},e)=>n[e],Jv=({values:n},e)=>n[e],Xv=({values:n},e)=>n[e],Zv=({values:n},e)=>n[e],FI=(n,e)=>{switch(n.type.unit){case Ke.SECOND:return Gv(n,e);case Ke.MILLISECOND:return Jv(n,e);case Ke.MICROSECOND:return Xv(n,e);case Ke.NANOSECOND:return Zv(n,e)}},TI=({values:n,stride:e},t)=>Yf.decimal(n.subarray(e*t,e*(t+1))),MI=(n,e)=>{const{valueOffsets:t,stride:s,children:a}=n,{[e*s]:u,[e*s+1]:d}=t,p=a[0].slice(u,d-u);return new ot([p])},AI=(n,e)=>{const{valueOffsets:t,children:s}=n,{[e]:a,[e+1]:u}=t,d=s[0];return new eh(d.slice(a,u-a))},PI=(n,e)=>new Xf(n,e),NI=(n,e)=>n.type.mode===sr.Dense?e0(n,e):t0(n,e),e0=(n,e)=>{const t=n.type.typeIdToChildIndex[n.typeIds[e]],s=n.children[t];return Sn.visit(s,n.valueOffsets[e])},t0=(n,e)=>{const t=n.type.typeIdToChildIndex[n.typeIds[e]],s=n.children[t];return Sn.visit(s,e)},LI=(n,e)=>{var t;return(t=n.dictionary)===null||t===void 0?void 0:t.get(n.values[e])},BI=(n,e)=>n.type.unit===ji.DAY_TIME?n0(n,e):r0(n,e),n0=({values:n},e)=>n.subarray(2*e,2*(e+1)),r0=({values:n},e)=>{const t=n[e],s=new Int32Array(2);return s[0]=Math.trunc(t/12),s[1]=Math.trunc(t%12),s},kI=(n,e)=>{const{stride:t,children:s}=n,u=s[0].slice(e*t,t);return new ot([u])};_e.prototype.visitNull=Ce(SI);_e.prototype.visitBool=Ce(_I);_e.prototype.visitInt=Ce(DI);_e.prototype.visitInt8=Ce(Hi);_e.prototype.visitInt16=Ce(Hi);_e.prototype.visitInt32=Ce(Hi);_e.prototype.visitInt64=Ce(Qv);_e.prototype.visitUint8=Ce(Hi);_e.prototype.visitUint16=Ce(Hi);_e.prototype.visitUint32=Ce(Hi);_e.prototype.visitUint64=Ce(Qv);_e.prototype.visitFloat=Ce(CI);_e.prototype.visitFloat16=Ce(bI);_e.prototype.visitFloat32=Ce(Hi);_e.prototype.visitFloat64=Ce(Hi);_e.prototype.visitUtf8=Ce(xI);_e.prototype.visitBinary=Ce(EI);_e.prototype.visitFixedSizeBinary=Ce(II);_e.prototype.visitDate=Ce(OI);_e.prototype.visitDateDay=Ce($v);_e.prototype.visitDateMillisecond=Ce(Wv);_e.prototype.visitTimestamp=Ce(RI);_e.prototype.visitTimestampSecond=Ce(Hv);_e.prototype.visitTimestampMillisecond=Ce(qv);_e.prototype.visitTimestampMicrosecond=Ce(Kv);_e.prototype.visitTimestampNanosecond=Ce(Yv);_e.prototype.visitTime=Ce(FI);_e.prototype.visitTimeSecond=Ce(Gv);_e.prototype.visitTimeMillisecond=Ce(Jv);_e.prototype.visitTimeMicrosecond=Ce(Xv);_e.prototype.visitTimeNanosecond=Ce(Zv);_e.prototype.visitDecimal=Ce(TI);_e.prototype.visitList=Ce(MI);_e.prototype.visitStruct=Ce(PI);_e.prototype.visitUnion=Ce(NI);_e.prototype.visitDenseUnion=Ce(e0);_e.prototype.visitSparseUnion=Ce(t0);_e.prototype.visitDictionary=Ce(LI);_e.prototype.visitInterval=Ce(BI);_e.prototype.visitIntervalDayTime=Ce(n0);_e.prototype.visitIntervalYearMonth=Ce(r0);_e.prototype.visitFixedSizeList=Ce(kI);_e.prototype.visitMap=Ce(AI);const Sn=new _e,Er=Symbol.for("keys"),po=Symbol.for("vals");class eh{constructor(e){return this[Er]=new ot([e.children[0]]).memoize(),this[po]=e.children[1],new Proxy(this,new jI)}[Symbol.iterator](){return new UI(this[Er],this[po])}get size(){return this[Er].length}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[Er],t=this[po],s={};for(let a=-1,u=e.length;++a<u;)s[e.get(a)]=Sn.visit(t,a);return s}toString(){return`{${[...this].map(([e,t])=>`${Aa(e)}: ${Aa(t)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class UI{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){const e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),Sn.visit(this.vals,e)]})}}class jI{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Er].toArray().map(String)}has(e,t){return e[Er].includes(t)}getOwnPropertyDescriptor(e,t){if(e[Er].indexOf(t)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];const s=e[Er].indexOf(t);if(s!==-1){const a=Sn.visit(Reflect.get(e,po),s);return Reflect.set(e,t,a),a}}set(e,t,s){const a=e[Er].indexOf(t);return a!==-1?($n.visit(Reflect.get(e,po),a,s),Reflect.set(e,t,s)):Reflect.has(e,t)?Reflect.set(e,t,s):!1}}Object.defineProperties(eh.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Er]:{writable:!0,enumerable:!1,configurable:!1,value:null},[po]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let Ty;function i0(n,e,t,s){const{length:a=0}=n;let u=typeof e!="number"?0:e,d=typeof t!="number"?a:t;return u<0&&(u=(u%a+a)%a),d<0&&(d=(d%a+a)%a),d<u&&(Ty=u,u=d,d=Ty),d>a&&(d=a),s?s(n,u,d):[u,d]}const My=n=>n!==n;function Oo(n){if(typeof n!=="object"||n===null)return My(n)?My:t=>t===n;if(n instanceof Date){const t=n.valueOf();return s=>s instanceof Date?s.valueOf()===t:!1}return ArrayBuffer.isView(n)?t=>t?Mb(n,t):!1:n instanceof Map?VI(n):Array.isArray(n)?zI(n):n instanceof ot?$I(n):WI(n,!0)}function zI(n){const e=[];for(let t=-1,s=n.length;++t<s;)e[t]=Oo(n[t]);return oc(e)}function VI(n){let e=-1;const t=[];for(const s of n.values())t[++e]=Oo(s);return oc(t)}function $I(n){const e=[];for(let t=-1,s=n.length;++t<s;)e[t]=Oo(n.get(t));return oc(e)}function WI(n,e=!1){const t=Object.keys(n);if(!e&&t.length===0)return()=>!1;const s=[];for(let a=-1,u=t.length;++a<u;)s[a]=Oo(n[t[a]]);return oc(s,t)}function oc(n,e){return t=>{if(!t||typeof t!="object")return!1;switch(t.constructor){case Array:return QI(n,t);case Map:return Ay(n,t,t.keys());case eh:case Xf:case Object:case void 0:return Ay(n,t,e||Object.keys(t))}return t instanceof ot?HI(n,t):!1}}function QI(n,e){const t=n.length;if(e.length!==t)return!1;for(let s=-1;++s<t;)if(!n[s](e[s]))return!1;return!0}function HI(n,e){const t=n.length;if(e.length!==t)return!1;for(let s=-1;++s<t;)if(!n[s](e.get(s)))return!1;return!0}function Ay(n,e,t){const s=t[Symbol.iterator](),a=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),u=e instanceof Map?e.values():Object.values(e)[Symbol.iterator]();let d=0;const h=n.length;let p=u.next(),y=s.next(),g=a.next();for(;d<h&&!y.done&&!g.done&&!p.done&&!(y.value!==g.value||!n[d](p.value));++d,y=s.next(),g=a.next(),p=u.next());return d===h&&y.done&&g.done&&p.done?!0:(s.return&&s.return(),a.return&&a.return(),u.return&&u.return(),!1)}function s0(n,e,t,s){return(t&1<<s)!==0}function qI(n,e,t,s){return(t&1<<s)>>s}function KI(n,e,t){const s=t.byteLength+7&-8;if(n>0||t.byteLength<s){const a=new Uint8Array(s);return a.set(n%8===0?t.subarray(n>>3):Ef(new th(t,n,e,null,s0)).subarray(0,s)),a}return t}function Ef(n){const e=[];let t=0,s=0,a=0;for(const d of n)d&&(a|=1<<s),++s===8&&(e[t++]=a,a=s=0);(t===0||s>0)&&(e[t++]=a);const u=new Uint8Array(e.length+7&-8);return u.set(e),u}class th{constructor(e,t,s,a,u){this.bytes=e,this.length=s,this.context=a,this.get=u,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}function xf(n,e,t){if(t-e<=0)return 0;if(t-e<8){let u=0;for(const d of new th(n,e,t-e,n,qI))u+=d;return u}const s=t>>3<<3,a=e+(e%8===0?0:8-e%8);return xf(n,e,a)+xf(n,s,t)+YI(n,a>>3,s-a>>3)}function YI(n,e,t){let s=0,a=Math.trunc(e);const u=new DataView(n.buffer,n.byteOffset,n.byteLength),d=t===void 0?n.byteLength:a+t;for(;d-a>=4;)s+=sf(u.getUint32(a)),a+=4;for(;d-a>=2;)s+=sf(u.getUint16(a)),a+=2;for(;d-a>=1;)s+=sf(u.getUint8(a)),a+=1;return s}function sf(n){let e=Math.trunc(n);return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}const GI=-1;let It=class Df{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let e=0;const{valueOffsets:t,values:s,nullBitmap:a,typeIds:u}=this;return t&&(e+=t.byteLength),s&&(e+=s.byteLength),a&&(e+=a.byteLength),u&&(e+=u.byteLength),this.children.reduce((d,h)=>d+h.byteLength,e)}get nullCount(){let e=this._nullCount,t;return e<=GI&&(t=this.nullBitmap)&&(this._nullCount=e=this.length-xf(t,this.offset,this.offset+this.length)),e}constructor(e,t,s,a,u,d=[],h){this.type=e,this.children=d,this.dictionary=h,this.offset=Math.floor(Math.max(t||0,0)),this.length=Math.floor(Math.max(s||0,0)),this._nullCount=Math.floor(Math.max(a||0,-1));let p;u instanceof Df?(this.stride=u.stride,this.values=u.values,this.typeIds=u.typeIds,this.nullBitmap=u.nullBitmap,this.valueOffsets=u.valueOffsets):(this.stride=Kr(e),u&&((p=u[0])&&(this.valueOffsets=p),(p=u[1])&&(this.values=p),(p=u[2])&&(this.nullBitmap=p),(p=u[3])&&(this.typeIds=p))),this.nullable=this._nullCount!==0&&this.nullBitmap&&this.nullBitmap.byteLength>0}getValid(e){if(this.nullable&&this.nullCount>0){const t=this.offset+e;return(this.nullBitmap[t>>3]&1<<t%8)!==0}return!0}setValid(e,t){if(!this.nullable)return t;if(!this.nullBitmap||this.nullBitmap.byteLength<=e>>3){const{nullBitmap:p}=this._changeLengthAndBackfillNullBitmap(this.length);Object.assign(this,{nullBitmap:p,_nullCount:0})}const{nullBitmap:s,offset:a}=this,u=a+e>>3,d=(a+e)%8,h=s[u]>>d&1;return t?h===0&&(s[u]|=1<<d,this._nullCount=this.nullCount+1):h===1&&(s[u]&=~(1<<d),this._nullCount=this.nullCount-1),t}clone(e=this.type,t=this.offset,s=this.length,a=this._nullCount,u=this,d=this.children){return new Df(e,t,s,a,u,d,this.dictionary)}slice(e,t){const{stride:s,typeId:a,children:u}=this,d=+(this._nullCount===0)-1,h=a===16?s:1,p=this._sliceBuffers(e,t,s,a);return this.clone(this.type,this.offset+e,t,d,p,u.length===0||this.valueOffsets?u:this._sliceChildren(u,h*e,h*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===O.Null)return this.clone(this.type,0,e,0);const{length:t,nullCount:s}=this,a=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);a[t>>3]=(1<<t-(t&-8))-1,s>0&&a.set(KI(this.offset,t,this.nullBitmap),0);const u=this.buffers;return u[qr.VALIDITY]=a,this.clone(this.type,0,e,s+(e-t),u)}_sliceBuffers(e,t,s,a){let u;const{buffers:d}=this;return(u=d[qr.TYPE])&&(d[qr.TYPE]=u.subarray(e,e+t)),(u=d[qr.OFFSET])&&(d[qr.OFFSET]=u.subarray(e,e+t+1))||(u=d[qr.DATA])&&(d[qr.DATA]=a===6?u:u.subarray(s*e,s*(e+t))),d}_sliceChildren(e,t,s){return e.map(a=>a.slice(t,s))}};It.prototype.children=Object.freeze([]);class Oa extends Ve{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){const{["type"]:t,["offset"]:s=0,["length"]:a=0}=e;return new It(t,s,a,0)}visitBool(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length>>3,["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitInt(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length,["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitFloat(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length,["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitUtf8(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.data),u=Ge(e.nullBitmap),d=_a(e.valueOffsets),{["length"]:h=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new It(t,s,h,p,[d,a,u])}visitBinary(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.data),u=Ge(e.nullBitmap),d=_a(e.valueOffsets),{["length"]:h=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new It(t,s,h,p,[d,a,u])}visitFixedSizeBinary(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/Kr(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitDate(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/Kr(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitTimestamp(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/Kr(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitTime(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/Kr(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitDecimal(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/Kr(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitList(e){const{["type"]:t,["offset"]:s=0,["child"]:a}=e,u=Ge(e.nullBitmap),d=_a(e.valueOffsets),{["length"]:h=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new It(t,s,h,p,[d,void 0,u],[a])}visitStruct(e){const{["type"]:t,["offset"]:s=0,["children"]:a=[]}=e,u=Ge(e.nullBitmap),{length:d=a.reduce((p,{length:y})=>Math.max(p,y),0),nullCount:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,void 0,u],a)}visitUnion(e){const{["type"]:t,["offset"]:s=0,["children"]:a=[]}=e,u=Ge(e.nullBitmap),d=ut(t.ArrayType,e.typeIds),{["length"]:h=d.length,["nullCount"]:p=e.nullBitmap?-1:0}=e;if(Re.isSparseUnion(t))return new It(t,s,h,p,[void 0,void 0,u,d],a);const y=_a(e.valueOffsets);return new It(t,s,h,p,[y,void 0,u,d],a)}visitDictionary(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.indices.ArrayType,e.data),{["dictionary"]:d=new ot([new Oa().visit({type:t.dictionary})])}=e,{["length"]:h=u.length,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new It(t,s,h,p,[void 0,u,a],[],d)}visitInterval(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/Kr(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,u,a])}visitFixedSizeList(e){const{["type"]:t,["offset"]:s=0,["child"]:a=new Oa().visit({type:t.valueType})}=e,u=Ge(e.nullBitmap),{["length"]:d=a.length/Kr(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new It(t,s,d,h,[void 0,void 0,u],[a])}visitMap(e){const{["type"]:t,["offset"]:s=0,["child"]:a=new Oa().visit({type:t.childType})}=e,u=Ge(e.nullBitmap),d=_a(e.valueOffsets),{["length"]:h=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new It(t,s,h,p,[d,void 0,u],[a])}}function ke(n){return new Oa().visit(n)}class Py{constructor(e=0,t){this.numChunks=e,this.getChunkIterator=t,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function o0(n){return n.reduce((e,t)=>e+t.nullCount,0)}function a0(n){return n.reduce((e,t,s)=>(e[s+1]=e[s]+t.length,e),new Uint32Array(n.length+1))}function l0(n,e,t,s){const a=[];for(let u=-1,d=n.length;++u<d;){const h=n[u],p=e[u],{length:y}=h;if(p>=s)break;if(t>=p+y)continue;if(p>=t&&p+y<=s){a.push(h);continue}const g=Math.max(0,t-p),v=Math.min(s-p,y);a.push(h.slice(g,v-g))}return a.length===0&&a.push(n[0].slice(0,0)),a}function nh(n,e,t,s){let a=0,u=0,d=e.length-1;do{if(a>=d-1)return t<e[d]?s(n,a,t-e[a]):null;u=a+Math.trunc((d-a)*.5),t<e[u]?d=u:a=u}while(a<d)}function rh(n,e){return n.getValid(e)}function mo(n){function e(t,s,a){return n(t[s],a)}return function(t){const s=this.data;return nh(s,this._offsets,t,e)}}function u0(n){let e;function t(s,a,u){return n(s[a],u,e)}return function(s,a){const u=this.data;e=a;const d=nh(u,this._offsets,s,t);return e=void 0,d}}function c0(n){let e;function t(s,a,u){let d=u,h=0,p=0;for(let y=a-1,g=s.length;++y<g;){const v=s[y];if(~(h=n(v,e,d)))return p+h;d=0,p+=v.length}return-1}return function(s,a){e=s;const u=this.data,d=typeof a!="number"?t(u,0,0):nh(u,this._offsets,a,t);return e=void 0,d}}class be extends Ve{}function JI(n,e){return e===null&&n.length>0?0:-1}function XI(n,e){const{nullBitmap:t}=n;if(!t||n.nullCount<=0)return-1;let s=0;for(const a of new th(t,n.offset+(e||0),n.length,t,s0)){if(!a)return s;++s}return-1}function Ae(n,e,t){if(e===void 0)return-1;if(e===null)return XI(n,t);const s=Sn.getVisitFn(n),a=Oo(e);for(let u=(t||0)-1,d=n.length;++u<d;)if(a(s(n,u)))return u;return-1}function d0(n,e,t){const s=Sn.getVisitFn(n),a=Oo(e);for(let u=(t||0)-1,d=n.length;++u<d;)if(a(s(n,u)))return u;return-1}be.prototype.visitNull=JI;be.prototype.visitBool=Ae;be.prototype.visitInt=Ae;be.prototype.visitInt8=Ae;be.prototype.visitInt16=Ae;be.prototype.visitInt32=Ae;be.prototype.visitInt64=Ae;be.prototype.visitUint8=Ae;be.prototype.visitUint16=Ae;be.prototype.visitUint32=Ae;be.prototype.visitUint64=Ae;be.prototype.visitFloat=Ae;be.prototype.visitFloat16=Ae;be.prototype.visitFloat32=Ae;be.prototype.visitFloat64=Ae;be.prototype.visitUtf8=Ae;be.prototype.visitBinary=Ae;be.prototype.visitFixedSizeBinary=Ae;be.prototype.visitDate=Ae;be.prototype.visitDateDay=Ae;be.prototype.visitDateMillisecond=Ae;be.prototype.visitTimestamp=Ae;be.prototype.visitTimestampSecond=Ae;be.prototype.visitTimestampMillisecond=Ae;be.prototype.visitTimestampMicrosecond=Ae;be.prototype.visitTimestampNanosecond=Ae;be.prototype.visitTime=Ae;be.prototype.visitTimeSecond=Ae;be.prototype.visitTimeMillisecond=Ae;be.prototype.visitTimeMicrosecond=Ae;be.prototype.visitTimeNanosecond=Ae;be.prototype.visitDecimal=Ae;be.prototype.visitList=Ae;be.prototype.visitStruct=Ae;be.prototype.visitUnion=Ae;be.prototype.visitDenseUnion=d0;be.prototype.visitSparseUnion=d0;be.prototype.visitDictionary=Ae;be.prototype.visitInterval=Ae;be.prototype.visitIntervalDayTime=Ae;be.prototype.visitIntervalYearMonth=Ae;be.prototype.visitFixedSizeList=Ae;be.prototype.visitMap=Ae;const ku=new be;class Ie extends Ve{}function Oe(n){const{type:e}=n;if(n.nullCount===0&&n.stride===1&&(e.typeId===O.Timestamp||e instanceof Vi&&e.bitWidth!==64||e instanceof ka&&e.bitWidth!==64||e instanceof Ba&&e.precision!==wn.HALF))return new Py(n.data.length,s=>{const a=n.data[s];return a.values.subarray(0,a.length)[Symbol.iterator]()});let t=0;return new Py(n.data.length,s=>{const u=n.data[s].length,d=n.slice(t,t+u);return t+=u,new ZI(d)})}class ZI{constructor(e){this.vector=e,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}Ie.prototype.visitNull=Oe;Ie.prototype.visitBool=Oe;Ie.prototype.visitInt=Oe;Ie.prototype.visitInt8=Oe;Ie.prototype.visitInt16=Oe;Ie.prototype.visitInt32=Oe;Ie.prototype.visitInt64=Oe;Ie.prototype.visitUint8=Oe;Ie.prototype.visitUint16=Oe;Ie.prototype.visitUint32=Oe;Ie.prototype.visitUint64=Oe;Ie.prototype.visitFloat=Oe;Ie.prototype.visitFloat16=Oe;Ie.prototype.visitFloat32=Oe;Ie.prototype.visitFloat64=Oe;Ie.prototype.visitUtf8=Oe;Ie.prototype.visitBinary=Oe;Ie.prototype.visitFixedSizeBinary=Oe;Ie.prototype.visitDate=Oe;Ie.prototype.visitDateDay=Oe;Ie.prototype.visitDateMillisecond=Oe;Ie.prototype.visitTimestamp=Oe;Ie.prototype.visitTimestampSecond=Oe;Ie.prototype.visitTimestampMillisecond=Oe;Ie.prototype.visitTimestampMicrosecond=Oe;Ie.prototype.visitTimestampNanosecond=Oe;Ie.prototype.visitTime=Oe;Ie.prototype.visitTimeSecond=Oe;Ie.prototype.visitTimeMillisecond=Oe;Ie.prototype.visitTimeMicrosecond=Oe;Ie.prototype.visitTimeNanosecond=Oe;Ie.prototype.visitDecimal=Oe;Ie.prototype.visitList=Oe;Ie.prototype.visitStruct=Oe;Ie.prototype.visitUnion=Oe;Ie.prototype.visitDenseUnion=Oe;Ie.prototype.visitSparseUnion=Oe;Ie.prototype.visitDictionary=Oe;Ie.prototype.visitInterval=Oe;Ie.prototype.visitIntervalDayTime=Oe;Ie.prototype.visitIntervalYearMonth=Oe;Ie.prototype.visitFixedSizeList=Oe;Ie.prototype.visitMap=Oe;const ih=new Ie,eE=(n,e)=>n+e;class qi extends Ve{visitNull(e,t){return 0}visitInt(e,t){return e.type.bitWidth/8}visitFloat(e,t){return e.type.ArrayType.BYTES_PER_ELEMENT}visitBool(e,t){return 1/8}visitDecimal(e,t){return e.type.bitWidth/8}visitDate(e,t){return(e.type.unit+1)*4}visitTime(e,t){return e.type.bitWidth/8}visitTimestamp(e,t){return e.type.unit===Ke.SECOND?4:8}visitInterval(e,t){return(e.type.unit+1)*4}visitStruct(e,t){return e.children.reduce((s,a)=>s+Ar.visit(a,t),0)}visitFixedSizeBinary(e,t){return e.type.byteWidth}visitMap(e,t){return 8+e.children.reduce((s,a)=>s+Ar.visit(a,t),0)}visitDictionary(e,t){var s;return e.type.indices.bitWidth/8+(((s=e.dictionary)===null||s===void 0?void 0:s.getByteLength(e.values[t]))||0)}}const tE=({valueOffsets:n},e)=>8+(n[e+1]-n[e]),nE=({valueOffsets:n},e)=>8+(n[e+1]-n[e]),rE=({valueOffsets:n,stride:e,children:t},s)=>{const a=t[0],{[s*e]:u}=n,{[s*e+1]:d}=n,h=Ar.getVisitFn(a.type),p=a.slice(u,d-u);let y=8;for(let g=-1,v=d-u;++g<v;)y+=h(p,g);return y},iE=({stride:n,children:e},t)=>{const s=e[0],a=s.slice(t*n,n),u=Ar.getVisitFn(s.type);let d=0;for(let h=-1,p=a.length;++h<p;)d+=u(a,h);return d},sE=(n,e)=>n.type.mode===sr.Dense?f0(n,e):h0(n,e),f0=({type:n,children:e,typeIds:t,valueOffsets:s},a)=>{const u=n.typeIdToChildIndex[t[a]];return 8+Ar.visit(e[u],s[a])},h0=({children:n},e)=>4+Ar.visitMany(n,n.map(()=>e)).reduce(eE,0);qi.prototype.visitUtf8=tE;qi.prototype.visitBinary=nE;qi.prototype.visitList=rE;qi.prototype.visitFixedSizeList=iE;qi.prototype.visitUnion=sE;qi.prototype.visitDenseUnion=f0;qi.prototype.visitSparseUnion=h0;const Ar=new qi;var p0;const m0={},y0={};class ot{constructor(e){var t,s,a;const u=e[0]instanceof ot?e.flatMap(h=>h.data):e;if(u.length===0||u.some(h=>!(h instanceof It)))throw new TypeError("Vector constructor expects an Array of Data instances.");const d=(t=u[0])===null||t===void 0?void 0:t.type;switch(u.length){case 0:this._offsets=[0];break;case 1:{const{get:h,set:p,indexOf:y,byteLength:g}=m0[d.typeId],v=u[0];this.isValid=S=>rh(v,S),this.get=S=>h(v,S),this.set=(S,I)=>p(v,S,I),this.indexOf=S=>y(v,S),this.getByteLength=S=>g(v,S),this._offsets=[0,v.length];break}default:Object.setPrototypeOf(this,y0[d.typeId]),this._offsets=a0(u);break}this.data=u,this.type=d,this.stride=Kr(d),this.numChildren=(a=(s=d.children)===null||s===void 0?void 0:s.length)!==null&&a!==void 0?a:0,this.length=this._offsets.at(-1)}get byteLength(){return this._byteLength===-1&&(this._byteLength=this.data.reduce((e,t)=>e+t.byteLength,0)),this._byteLength}get nullCount(){return this._nullCount===-1&&(this._nullCount=o0(this.data)),this._nullCount}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${O[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>0}getByteLength(e){return 0}[Symbol.iterator](){return ih.visit(this)}concat(...e){return new ot(this.data.concat(e.flatMap(t=>t.data).flat(Number.POSITIVE_INFINITY)))}slice(e,t){return new ot(i0(this,e,t,({data:s,_offsets:a},u,d)=>l0(s,a,u,d)))}toJSON(){return[...this]}toArray(){const{type:e,data:t,length:s,stride:a,ArrayType:u}=this;switch(e.typeId){case O.Int:case O.Float:case O.Decimal:case O.Time:case O.Timestamp:switch(t.length){case 0:return new u;case 1:return t[0].values.subarray(0,s*a);default:return t.reduce((d,{values:h,length:p})=>(d.array.set(h.subarray(0,p*a),d.offset),d.offset+=p*a,d),{array:new u(s*a),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(e){var t;return this.getChildAt((t=this.type.children)===null||t===void 0?void 0:t.findIndex(s=>s.name===e))}getChildAt(e){return e>-1&&e<this.numChildren?new ot(this.data.map(({children:t})=>t[e])):null}get isMemoized(){return Re.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(Re.isDictionary(this.type)){const e=new Uu(this.data[0].dictionary),t=this.data.map(s=>{const a=s.clone();return a.dictionary=e,a});return new ot(t)}return new Uu(this)}unmemoize(){if(Re.isDictionary(this.type)&&this.isMemoized){const e=this.data[0].dictionary.unmemoize(),t=this.data.map(s=>{const a=s.clone();return a.dictionary=e,a});return new ot(t)}return this}}p0=Symbol.toStringTag;ot[p0]=(n=>{n.type=Re.prototype,n.data=[],n.length=0,n.stride=1,n.numChildren=0,n._nullCount=-1,n._byteLength=-1,n._offsets=new Uint32Array([0]),n[Symbol.isConcatSpreadable]=!0;const e=Object.keys(O).map(t=>O[t]).filter(t=>typeof t=="number"&&t!==O.NONE);for(const t of e){const s=Sn.getVisitFnByTypeId(t),a=$n.getVisitFnByTypeId(t),u=ku.getVisitFnByTypeId(t),d=Ar.getVisitFnByTypeId(t);m0[t]={get:s,set:a,indexOf:u,byteLength:d},y0[t]=Object.create(n,{isValid:{value:mo(rh)},get:{value:mo(Sn.getVisitFnByTypeId(t))},set:{value:u0($n.getVisitFnByTypeId(t))},indexOf:{value:c0(ku.getVisitFnByTypeId(t))},getByteLength:{value:mo(Ar.getVisitFnByTypeId(t))}})}return"Vector"})(ot.prototype);class Uu extends ot{constructor(e){super(e.data);const t=this.get,s=this.set,a=this.slice,u=new Array(this.length);Object.defineProperty(this,"get",{value(d){const h=u[d];if(h!==void 0)return h;const p=t.call(this,d);return u[d]=p,p}}),Object.defineProperty(this,"set",{value(d,h){s.call(this,d,h),u[d]=h}}),Object.defineProperty(this,"slice",{value:(d,h)=>new Uu(a.call(this,d,h))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new ot(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class Cf{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,t,s,a){return e.prep(8,24),e.writeInt64(BigInt(a??0)),e.pad(4),e.writeInt32(s),e.writeInt64(BigInt(t??0)),e.offset()}}const of=2,xr=4,Gr=4,ct=4,Li=new Int32Array(2),Ny=new Float32Array(Li.buffer),Ly=new Float64Array(Li.buffer),lu=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Of;(function(n){n[n.UTF8_BYTES=1]="UTF8_BYTES",n[n.UTF16_STRING=2]="UTF16_STRING"})(Of||(Of={}));let wo=class g0{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(e){return new g0(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readUint64(e){return BigInt.asUintN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readFloat32(e){return Li[0]=this.readInt32(e),Ny[0]}readFloat64(e){return Li[lu?0:1]=this.readInt32(e),Li[lu?1:0]=this.readInt32(e+4),Ly[0]}writeInt8(e,t){this.bytes_[e]=t}writeUint8(e,t){this.bytes_[e]=t}writeInt16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,Number(BigInt.asIntN(32,t))),this.writeInt32(e+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(e,t){this.writeUint32(e,Number(BigInt.asUintN(32,t))),this.writeUint32(e+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(e,t){Ny[0]=t,this.writeInt32(e,Li[0])}writeFloat64(e,t){Ly[0]=t,this.writeInt32(e,Li[lu?0:1]),this.writeInt32(e+4,Li[lu?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+xr+Gr)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let e="";for(let t=0;t<Gr;t++)e+=String.fromCharCode(this.readInt8(this.position_+xr+t));return e}__offset(e,t){const s=e-this.readInt32(e);return t<this.readInt16(s)?this.readInt16(s+t):0}__union(e,t){return e.bb_pos=t+this.readInt32(t),e.bb=this,e}__string(e,t){e+=this.readInt32(e);const s=this.readInt32(e);e+=xr;const a=this.bytes_.subarray(e,e+s);return t===Of.UTF8_BYTES?a:this.text_decoder_.decode(a)}__union_with_string(e,t){return typeof e=="string"?this.__string(t):this.__union(e,t)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+xr}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(e.length!=Gr)throw new Error("FlatBuffers: file identifier must be length "+Gr);for(let t=0;t<Gr;t++)if(e.charCodeAt(t)!=this.readInt8(this.position()+xr+t))return!1;return!0}createScalarList(e,t){const s=[];for(let a=0;a<t;++a){const u=e(a);u!==null&&s.push(u)}return s}createObjList(e,t){const s=[];for(let a=0;a<t;++a){const u=e(a);u!==null&&s.push(u.unpack())}return s}},v0=class w0{constructor(e){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let t;e?t=e:t=1024,this.bb=wo.allocate(t),this.space=t}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(e){this.force_defaults=e}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(e,t){e>this.minalign&&(this.minalign=e);const s=~(this.bb.capacity()-this.space+t)+1&e-1;for(;this.space<s+e+t;){const a=this.bb.capacity();this.bb=w0.growByteBuffer(this.bb),this.space+=this.bb.capacity()-a}this.pad(s)}pad(e){for(let t=0;t<e;t++)this.bb.writeInt8(--this.space,0)}writeInt8(e){this.bb.writeInt8(this.space-=1,e)}writeInt16(e){this.bb.writeInt16(this.space-=2,e)}writeInt32(e){this.bb.writeInt32(this.space-=4,e)}writeInt64(e){this.bb.writeInt64(this.space-=8,e)}writeFloat32(e){this.bb.writeFloat32(this.space-=4,e)}writeFloat64(e){this.bb.writeFloat64(this.space-=8,e)}addInt8(e){this.prep(1,0),this.writeInt8(e)}addInt16(e){this.prep(2,0),this.writeInt16(e)}addInt32(e){this.prep(4,0),this.writeInt32(e)}addInt64(e){this.prep(8,0),this.writeInt64(e)}addFloat32(e){this.prep(4,0),this.writeFloat32(e)}addFloat64(e){this.prep(8,0),this.writeFloat64(e)}addFieldInt8(e,t,s){(this.force_defaults||t!=s)&&(this.addInt8(t),this.slot(e))}addFieldInt16(e,t,s){(this.force_defaults||t!=s)&&(this.addInt16(t),this.slot(e))}addFieldInt32(e,t,s){(this.force_defaults||t!=s)&&(this.addInt32(t),this.slot(e))}addFieldInt64(e,t,s){(this.force_defaults||t!==s)&&(this.addInt64(t),this.slot(e))}addFieldFloat32(e,t,s){(this.force_defaults||t!=s)&&(this.addFloat32(t),this.slot(e))}addFieldFloat64(e,t,s){(this.force_defaults||t!=s)&&(this.addFloat64(t),this.slot(e))}addFieldOffset(e,t,s){(this.force_defaults||t!=s)&&(this.addOffset(t),this.slot(e))}addFieldStruct(e,t,s){t!=s&&(this.nested(t),this.slot(e))}nested(e){if(e!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(e){this.vtable!==null&&(this.vtable[e]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(e){const t=e.capacity();if(t&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const s=t<<1,a=wo.allocate(s);return a.setPosition(s-t),a.bytes().set(e.bytes(),s-t),a}addOffset(e){this.prep(xr,0),this.writeInt32(this.offset()-e+xr)}startObject(e){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=e;for(let t=0;t<e;t++)this.vtable[t]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);const e=this.offset();let t=this.vtable_in_use-1;for(;t>=0&&this.vtable[t]==0;t--);const s=t+1;for(;t>=0;t--)this.addInt16(this.vtable[t]!=0?e-this.vtable[t]:0);const a=2;this.addInt16(e-this.object_start);const u=(s+a)*of;this.addInt16(u);let d=0;const h=this.space;e:for(t=0;t<this.vtables.length;t++){const p=this.bb.capacity()-this.vtables[t];if(u==this.bb.readInt16(p)){for(let y=of;y<u;y+=of)if(this.bb.readInt16(h+y)!=this.bb.readInt16(p+y))continue e;d=this.vtables[t];break}}return d?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,d-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e}finish(e,t,s){const a=s?ct:0;if(t){const u=t;if(this.prep(this.minalign,xr+Gr+a),u.length!=Gr)throw new TypeError("FlatBuffers: file identifier must be length "+Gr);for(let d=Gr-1;d>=0;d--)this.writeInt8(u.charCodeAt(d))}this.prep(this.minalign,xr+a),this.addOffset(e),a&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,t){this.finish(e,t,!0)}requiredField(e,t){const s=this.bb.capacity()-e,a=s-this.bb.readInt32(s);if(!(t<this.bb.readInt16(a)&&this.bb.readInt16(a+t)!=0))throw new TypeError("FlatBuffers: field "+t+" must be set")}startVector(e,t,s){this.notNested(),this.vector_num_elems=t,this.prep(xr,e*t),this.prep(s,e*t)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(e))return this.string_maps.get(e);const t=this.createString(e);return this.string_maps.set(e,t),t}createString(e){if(e==null)return 0;let t;e instanceof Uint8Array?t=e:t=this.text_encoder.encode(e),this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length);for(let s=0,a=this.space,u=this.bb.bytes();s<t.length;s++)u[a++]=t[s];return this.endVector()}createObjectOffset(e){return e===null?0:typeof e=="string"?this.createString(e):e.pack(this)}createObjectOffsetList(e){const t=[];for(let s=0;s<e.length;++s){const a=e[s];if(a!==null)t.push(this.createObjectOffset(a));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return t}createStructOffsetList(e,t){return t(this,e.length),this.createObjectOffsetList(e.slice().reverse()),this.endVector()}};class kt{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsKeyValue(e,t){return(t||new kt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,t){return e.setPosition(e.position()+ct),(t||new kt).__init(e.readInt32(e.position())+e.position(),e)}key(e){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}value(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,t){e.addFieldOffset(0,t,0)}static addValue(e,t){e.addFieldOffset(1,t,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(e,t,s){return kt.startKeyValue(e),kt.addKey(e,t),kt.addValue(e,s),kt.endKeyValue(e)}}var So;(function(n){n[n.V1=0]="V1",n[n.V2=1]="V2",n[n.V3=2]="V3",n[n.V4=3]="V4",n[n.V5=4]="V5"})(So||(So={}));var _o;(function(n){n[n.Little=0]="Little",n[n.Big=1]="Big"})(_o||(_o={}));var ju;(function(n){n[n.DenseArray=0]="DenseArray"})(ju||(ju={}));class On{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInt(e,t){return(t||new On).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,t){return e.setPosition(e.position()+ct),(t||new On).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startInt(e){e.startObject(2)}static addBitWidth(e,t){e.addFieldInt32(0,t,0)}static addIsSigned(e,t){e.addFieldInt8(1,+t,0)}static endInt(e){return e.endObject()}static createInt(e,t,s){return On.startInt(e),On.addBitWidth(e,t),On.addIsSigned(e,s),On.endInt(e)}}class Jr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryEncoding(e,t){return(t||new Jr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,t){return e.setPosition(e.position()+ct),(t||new Jr).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}indexType(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new On).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isOrdered(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}dictionaryKind(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):ju.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,t){e.addFieldInt64(0,t,BigInt("0"))}static addIndexType(e,t){e.addFieldOffset(1,t,0)}static addIsOrdered(e,t){e.addFieldInt8(2,+t,0)}static addDictionaryKind(e,t){e.addFieldInt16(3,t,ju.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}}class vs{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBinary(e,t){return(t||new vs).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,t){return e.setPosition(e.position()+ct),(t||new vs).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return vs.startBinary(e),vs.endBinary(e)}}class ws{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBool(e,t){return(t||new ws).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,t){return e.setPosition(e.position()+ct),(t||new ws).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return ws.startBool(e),ws.endBool(e)}}var zu;(function(n){n[n.DAY=0]="DAY",n[n.MILLISECOND=1]="MILLISECOND"})(zu||(zu={}));let hu=class so{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDate(e,t){return(t||new so).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,t){return e.setPosition(e.position()+ct),(t||new so).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):zu.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,zu.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,t){return so.startDate(e),so.addUnit(e,t),so.endDate(e)}};class gn{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDecimal(e,t){return(t||new gn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,t){return e.setPosition(e.position()+ct),(t||new gn).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,t){e.addFieldInt32(0,t,0)}static addScale(e,t){e.addFieldInt32(1,t,0)}static addBitWidth(e,t){e.addFieldInt32(2,t,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,t,s,a){return gn.startDecimal(e),gn.addPrecision(e,t),gn.addScale(e,s),gn.addBitWidth(e,a),gn.endDecimal(e)}}var bo;(function(n){n[n.SECOND=0]="SECOND",n[n.MILLISECOND=1]="MILLISECOND",n[n.MICROSECOND=2]="MICROSECOND",n[n.NANOSECOND=3]="NANOSECOND"})(bo||(bo={}));class Dr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeBinary(e,t){return(t||new Dr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,t){return e.setPosition(e.position()+ct),(t||new Dr).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,t){return Dr.startFixedSizeBinary(e),Dr.addByteWidth(e,t),Dr.endFixedSizeBinary(e)}}class Cr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeList(e,t){return(t||new Cr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,t){return e.setPosition(e.position()+ct),(t||new Cr).__init(e.readInt32(e.position())+e.position(),e)}listSize(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,t){return Cr.startFixedSizeList(e),Cr.addListSize(e,t),Cr.endFixedSizeList(e)}}var Vu;(function(n){n[n.HALF=0]="HALF",n[n.SINGLE=1]="SINGLE",n[n.DOUBLE=2]="DOUBLE"})(Vu||(Vu={}));class Or{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFloatingPoint(e,t){return(t||new Or).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,t){return e.setPosition(e.position()+ct),(t||new Or).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Vu.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,t){e.addFieldInt16(0,t,Vu.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,t){return Or.startFloatingPoint(e),Or.addPrecision(e,t),Or.endFloatingPoint(e)}}var $u;(function(n){n[n.YEAR_MONTH=0]="YEAR_MONTH",n[n.DAY_TIME=1]="DAY_TIME",n[n.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})($u||($u={}));class Rr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInterval(e,t){return(t||new Rr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,t){return e.setPosition(e.position()+ct),(t||new Rr).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):$u.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,$u.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,t){return Rr.startInterval(e),Rr.addUnit(e,t),Rr.endInterval(e)}}class Ss{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsList(e,t){return(t||new Ss).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,t){return e.setPosition(e.position()+ct),(t||new Ss).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return Ss.startList(e),Ss.endList(e)}}let pu=class oo{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMap(e,t){return(t||new oo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,t){return e.setPosition(e.position()+ct),(t||new oo).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){const e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startMap(e){e.startObject(1)}static addKeysSorted(e,t){e.addFieldInt8(0,+t,0)}static endMap(e){return e.endObject()}static createMap(e,t){return oo.startMap(e),oo.addKeysSorted(e,t),oo.endMap(e)}};class _s{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsNull(e,t){return(t||new _s).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,t){return e.setPosition(e.position()+ct),(t||new _s).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return _s.startNull(e),_s.endNull(e)}}class bs{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsStruct_(e,t){return(t||new bs).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,t){return e.setPosition(e.position()+ct),(t||new bs).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return bs.startStruct_(e),bs.endStruct_(e)}}class Un{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTime(e,t){return(t||new Un).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,t){return e.setPosition(e.position()+ct),(t||new Un).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):bo.MILLISECOND}bitWidth(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,bo.MILLISECOND)}static addBitWidth(e,t){e.addFieldInt32(1,t,32)}static endTime(e){return e.endObject()}static createTime(e,t,s){return Un.startTime(e),Un.addUnit(e,t),Un.addBitWidth(e,s),Un.endTime(e)}}class jn{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTimestamp(e,t){return(t||new jn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,t){return e.setPosition(e.position()+ct),(t||new jn).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):bo.SECOND}timezone(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,bo.SECOND)}static addTimezone(e,t){e.addFieldOffset(1,t,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,t,s){return jn.startTimestamp(e),jn.addUnit(e,t),jn.addTimezone(e,s),jn.endTimestamp(e)}}var Wu;(function(n){n[n.Sparse=0]="Sparse",n[n.Dense=1]="Dense"})(Wu||(Wu={}));class vn{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUnion(e,t){return(t||new vn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,t){return e.setPosition(e.position()+ct),(t||new vn).__init(e.readInt32(e.position())+e.position(),e)}mode(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Wu.Sparse}typeIds(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb.__vector(this.bb_pos+t)+e*4):0}typeIdsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){const e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,t){e.addFieldInt16(0,t,Wu.Sparse)}static addTypeIds(e,t){e.addFieldOffset(1,t,0)}static createTypeIdsVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addInt32(t[s]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){return e.endObject()}static createUnion(e,t,s){return vn.startUnion(e),vn.addMode(e,t),vn.addTypeIds(e,s),vn.endUnion(e)}}class Is{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(e,t){return(t||new Is).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,t){return e.setPosition(e.position()+ct),(t||new Is).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return Is.startUtf8(e),Is.endUtf8(e)}}var Et;(function(n){n[n.NONE=0]="NONE",n[n.Null=1]="Null",n[n.Int=2]="Int",n[n.FloatingPoint=3]="FloatingPoint",n[n.Binary=4]="Binary",n[n.Utf8=5]="Utf8",n[n.Bool=6]="Bool",n[n.Decimal=7]="Decimal",n[n.Date=8]="Date",n[n.Time=9]="Time",n[n.Timestamp=10]="Timestamp",n[n.Interval=11]="Interval",n[n.List=12]="List",n[n.Struct_=13]="Struct_",n[n.Union=14]="Union",n[n.FixedSizeBinary=15]="FixedSizeBinary",n[n.FixedSizeList=16]="FixedSizeList",n[n.Map=17]="Map",n[n.Duration=18]="Duration",n[n.LargeBinary=19]="LargeBinary",n[n.LargeUtf8=20]="LargeUtf8",n[n.LargeList=21]="LargeList",n[n.RunEndEncoded=22]="RunEndEncoded"})(Et||(Et={}));let Ln=class mu{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(e,t){return(t||new mu).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,t){return e.setPosition(e.position()+ct),(t||new mu).__init(e.readInt32(e.position())+e.position(),e)}name(e){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}nullable(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}typeType(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):Et.NONE}type(e){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(e,this.bb_pos+t):null}dictionary(e){const t=this.bb.__offset(this.bb_pos,12);return t?(e||new Jr).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(e,t){const s=this.bb.__offset(this.bb_pos,14);return s?(t||new mu).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}childrenLength(){const e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const s=this.bb.__offset(this.bb_pos,16);return s?(t||new kt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,Et.NONE)}static addType(e,t){e.addFieldOffset(3,t,0)}static addDictionary(e,t){e.addFieldOffset(4,t,0)}static addChildren(e,t){e.addFieldOffset(5,t,0)}static createChildrenVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startChildrenVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(6,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){return e.endObject()}},br=class Hr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(e,t){return(t||new Hr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,t){return e.setPosition(e.position()+ct),(t||new Hr).__init(e.readInt32(e.position())+e.position(),e)}endianness(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):_o.Little}fields(e,t){const s=this.bb.__offset(this.bb_pos,6);return s?(t||new Ln).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}fieldsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const s=this.bb.__offset(this.bb_pos,8);return s?(t||new kt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+e*8):BigInt(0)}featuresLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,t){e.addFieldInt16(0,t,_o.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startFieldsVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(2,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static addFeatures(e,t){e.addFieldOffset(3,t,0)}static createFeaturesVector(e,t){e.startVector(8,t.length,8);for(let s=t.length-1;s>=0;s--)e.addInt64(t[s]);return e.endVector()}static startFeaturesVector(e,t){e.startVector(8,t,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,t){e.finish(t)}static finishSizePrefixedSchemaBuffer(e,t){e.finish(t,void 0,!0)}static createSchema(e,t,s,a,u){return Hr.startSchema(e),Hr.addEndianness(e,t),Hr.addFields(e,s),Hr.addCustomMetadata(e,a),Hr.addFeatures(e,u),Hr.endSchema(e)}},wr=class Rf{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFooter(e,t){return(t||new Rf).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,t){return e.setPosition(e.position()+ct),(t||new Rf).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):So.V1}schema(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new br).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(e,t){const s=this.bb.__offset(this.bb_pos,8);return s?(t||new Cf).__init(this.bb.__vector(this.bb_pos+s)+e*24,this.bb):null}dictionariesLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,t){const s=this.bb.__offset(this.bb_pos,10);return s?(t||new Cf).__init(this.bb.__vector(this.bb_pos+s)+e*24,this.bb):null}recordBatchesLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const s=this.bb.__offset(this.bb_pos,12);return s?(t||new kt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,So.V1)}static addSchema(e,t){e.addFieldOffset(1,t,0)}static addDictionaries(e,t){e.addFieldOffset(2,t,0)}static startDictionariesVector(e,t){e.startVector(24,t,8)}static addRecordBatches(e,t){e.addFieldOffset(3,t,0)}static startRecordBatchesVector(e,t){e.startVector(24,t,8)}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,t){e.finish(t)}static finishSizePrefixedFooterBuffer(e,t){e.finish(t,void 0,!0)}};class Je{constructor(e=[],t,s){this.fields=e||[],this.metadata=t||new Map,s||(s=Ff(e)),this.dictionaries=s}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,t)=>`${t}: ${e}`).join(", ")} }>`}select(e){const t=new Set(e),s=this.fields.filter(a=>t.has(a.name));return new Je(s,this.metadata)}selectAt(e){const t=e.map(s=>this.fields[s]).filter(Boolean);return new Je(t,this.metadata)}assign(...e){const t=e[0]instanceof Je?e[0]:Array.isArray(e[0])?new Je(e[0]):new Je(e),s=[...this.fields],a=uu(uu(new Map,this.metadata),t.metadata),u=t.fields.filter(h=>{const p=s.findIndex(y=>y.name===h.name);return~p?(s[p]=h.clone({metadata:uu(uu(new Map,s[p].metadata),h.metadata)}))&&!1:!0}),d=Ff(u,new Map);return new Je([...s,...u],a,new Map([...this.dictionaries,...d]))}}Je.prototype.fields=null;Je.prototype.metadata=null;Je.prototype.dictionaries=null;class gt{static new(...e){let[t,s,a,u]=e;return e[0]&&typeof e[0]=="object"&&({name:t}=e[0],s===void 0&&(s=e[0].type),a===void 0&&(a=e[0].nullable),u===void 0&&(u=e[0].metadata)),new gt(`${t}`,s,a,u)}constructor(e,t,s=!1,a){this.name=e,this.type=t,this.nullable=s,this.metadata=a||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...e){let[t,s,a,u]=e;return!e[0]||typeof e[0]!="object"?[t=this.name,s=this.type,a=this.nullable,u=this.metadata]=e:{name:t=this.name,type:s=this.type,nullable:a=this.nullable,metadata:u=this.metadata}=e[0],gt.new(t,s,a,u)}}gt.prototype.type=null;gt.prototype.name=null;gt.prototype.nullable=null;gt.prototype.metadata=null;function uu(n,e){return new Map([...n||new Map,...e||new Map])}function Ff(n,e=new Map){for(let t=-1,s=n.length;++t<s;){const u=n[t].type;if(Re.isDictionary(u)){if(!e.has(u.id))e.set(u.id,u.dictionary);else if(e.get(u.id)!==u.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}u.children&&u.children.length>0&&Ff(u.children,e)}return e}var oE=v0,aE=wo;class sh{static decode(e){e=new aE(Ge(e));const t=wr.getRootAsFooter(e),s=Je.decode(t.schema());return new lE(s,t)}static encode(e){const t=new oE,s=Je.encode(t,e.schema);wr.startRecordBatchesVector(t,e.numRecordBatches);for(const d of[...e.recordBatches()].slice().reverse())Io.encode(t,d);const a=t.endVector();wr.startDictionariesVector(t,e.numDictionaries);for(const d of[...e.dictionaryBatches()].slice().reverse())Io.encode(t,d);const u=t.endVector();return wr.startFooter(t),wr.addSchema(t,s),wr.addVersion(t,Vn.V4),wr.addRecordBatches(t,a),wr.addDictionaries(t,u),wr.finishFooterBuffer(t,wr.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,t=Vn.V4,s,a){this.schema=e,this.version=t,s&&(this._recordBatches=s),a&&(this._dictionaryBatches=a)}*recordBatches(){for(let e,t=-1,s=this.numRecordBatches;++t<s;)(e=this.getRecordBatch(t))&&(yield e)}*dictionaryBatches(){for(let e,t=-1,s=this.numDictionaries;++t<s;)(e=this.getDictionaryBatch(t))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}}class lE extends sh{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(e,t){super(e,t.version()),this._footer=t}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){const t=this._footer.recordBatches(e);if(t)return Io.decode(t)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){const t=this._footer.dictionaries(e);if(t)return Io.decode(t)}return null}}class Io{static decode(e){return new Io(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,t){const{metaDataLength:s}=t,a=BigInt(t.offset),u=BigInt(t.bodyLength);return Cf.createBlock(e,a,s,u)}constructor(e,t,s){this.metaDataLength=e,this.offset=or(s),this.bodyLength=or(t)}}const xt=Object.freeze({done:!0,value:void 0});class By{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class S0{tee(){return this._getDOMStream().tee()}pipe(e,t){return this._getNodeStream().pipe(e,t)}pipeTo(e,t){return this._getDOMStream().pipeTo(e,t)}pipeThrough(e,t){return this._getDOMStream().pipeThrough(e,t)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class uE extends S0{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return ve(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){const{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(xt);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return kn.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return kn.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return ve(this,void 0,void 0,function*(){return yield this.abort(e),xt})}return(e){return ve(this,void 0,void 0,function*(){return yield this.close(),xt})}read(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((t,s)=>{this.resolvers.push({resolve:t,reject:s})}):Promise.resolve(xt)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class cE extends uE{write(e){if((e=Ge(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?_f(this.toUint8Array(!0)):this.toUint8Array(!1).then(_f)}toUint8Array(e=!1){return e?Mr(this._values)[0]:ve(this,void 0,void 0,function*(){var t,s,a,u;const d=[];let h=0;try{for(var p=!0,y=uo(this),g;g=yield y.next(),t=g.done,!t;p=!0){u=g.value,p=!1;const v=u;d.push(v),h+=v.byteLength}}catch(v){s={error:v}}finally{try{!p&&!t&&(a=y.return)&&(yield a.call(y))}finally{if(s)throw s.error}}return Mr(d,h)[0]})}}class Qu{constructor(e){e&&(this.source=new dE(kn.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class Eo{constructor(e){e instanceof Eo?this.source=e.source:e instanceof cE?this.source=new fs(kn.fromAsyncIterable(e)):tv(e)?this.source=new fs(kn.fromNodeStream(e)):qf(e)?this.source=new fs(kn.fromDOMStream(e)):Zg(e)?this.source=new fs(kn.fromDOMStream(e.body)):sc(e)?this.source=new fs(kn.fromIterable(e)):Ma(e)?this.source=new fs(kn.fromAsyncIterable(e)):Hf(e)&&(this.source=new fs(kn.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class dE{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,t="read"){return this.source.next({cmd:t,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||xt)}return(e){return Object.create(this.source.return&&this.source.return(e)||xt)}}class fs{constructor(e){this.source=e,this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}cancel(e){return ve(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return ve(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e,t="read"){return ve(this,void 0,void 0,function*(){return yield this.source.next({cmd:t,size:e})})}throw(e){return ve(this,void 0,void 0,function*(){const t=this.source.throw&&(yield this.source.throw(e))||xt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}return(e){return ve(this,void 0,void 0,function*(){const t=this.source.return&&(yield this.source.return(e))||xt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}}class ky extends Qu{constructor(e,t){super(),this.position=0,this.buffer=Ge(e),this.size=t===void 0?this.buffer.byteLength:t}readInt32(e){const{buffer:t,byteOffset:s}=this.readAt(e,4);return new DataView(t,s).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){const{buffer:t,size:s,position:a}=this;return t&&a<s?(typeof e!="number"&&(e=Number.POSITIVE_INFINITY),this.position=Math.min(s,a+Math.min(s-a,e)),t.subarray(a,this.position)):null}readAt(e,t){const s=this.buffer,a=Math.min(this.size,e+t);return s?s.subarray(e,a):new Uint8Array(t)}close(){this.buffer&&(this.buffer=null)}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}}class Hu extends Eo{constructor(e,t){super(),this.position=0,this._handle=e,typeof t=="number"?this.size=t:this._pending=ve(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return ve(this,void 0,void 0,function*(){const{buffer:t,byteOffset:s}=yield this.readAt(e,4);return new DataView(t,s).getInt32(0,!0)})}seek(e){return ve(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e<this.size})}read(e){return ve(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:t,size:s,position:a}=this;if(t&&a<s){typeof e!="number"&&(e=Number.POSITIVE_INFINITY);let u=a,d=0,h=0;const p=Math.min(s,u+Math.min(s-u,e)),y=new Uint8Array(Math.max(0,(this.position=p)-u));for(;(u+=h)<p&&(d+=h)<y.byteLength;)({bytesRead:h}=yield t.read(y,d,y.byteLength-d,u));return y}return null})}readAt(e,t){return ve(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:s,size:a}=this;if(s&&e+t<a){const u=Math.min(a,e+t),d=new Uint8Array(u-e);return(yield s.read(d,0,t,e)).buffer}return new Uint8Array(t)})}close(){return ve(this,void 0,void 0,function*(){const e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return ve(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return ve(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}}const fE=65536;function lo(n){return n<0&&(n=4294967295+n+1),`0x${n.toString(16)}`}const xo=8,oh=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class _0{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){const t=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),s=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]);let a=t[3]*s[3];this.buffer[0]=a&65535;let u=a>>>16;return a=t[2]*s[3],u+=a,a=t[3]*s[2]>>>0,u+=a,this.buffer[0]+=u<<16,this.buffer[1]=u>>>0<a?fE:0,this.buffer[1]+=u>>>16,this.buffer[1]+=t[1]*s[3]+t[2]*s[2]+t[3]*s[1],this.buffer[1]+=t[0]*s[3]+t[1]*s[2]+t[2]*s[1]+t[3]*s[0]<<16,this}_plus(e){const t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${lo(this.buffer[1])} ${lo(this.buffer[0])}`}}class tt extends _0{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,t=new Uint32Array(2)){return tt.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(2)){return tt.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(2)){const s=e.length,a=new tt(t);for(let u=0;u<s;){const d=xo<s-u?xo:s-u,h=new tt(new Uint32Array([Number.parseInt(e.slice(u,u+d),10),0])),p=new tt(new Uint32Array([oh[d],0]));a.times(p),a.plus(h),u+=d}return a}static convertArray(e){const t=new Uint32Array(e.length*2);for(let s=-1,a=e.length;++s<a;)tt.from(e[s],new Uint32Array(t.buffer,t.byteOffset+2*s*4,2));return t}static multiply(e,t){return new tt(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new tt(new Uint32Array(e.buffer)).plus(t)}}class yn extends _0{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){const t=this.buffer[1]<<0,s=e.buffer[1]<<0;return t<s||t===s&&this.buffer[0]<e.buffer[0]}static from(e,t=new Uint32Array(2)){return yn.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(2)){return yn.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(2)){const s=e.startsWith("-"),a=e.length,u=new yn(t);for(let d=s?1:0;d<a;){const h=xo<a-d?xo:a-d,p=new yn(new Uint32Array([Number.parseInt(e.slice(d,d+h),10),0])),y=new yn(new Uint32Array([oh[h],0]));u.times(y),u.plus(p),d+=h}return s?u.negate():u}static convertArray(e){const t=new Uint32Array(e.length*2);for(let s=-1,a=e.length;++s<a;)yn.from(e[s],new Uint32Array(t.buffer,t.byteOffset+2*s*4,2));return t}static multiply(e,t){return new yn(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new yn(new Uint32Array(e.buffer)).plus(t)}}class Ir{constructor(e){this.buffer=e}high(){return new yn(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new yn(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(e){const t=new tt(new Uint32Array([this.buffer[3],0])),s=new tt(new Uint32Array([this.buffer[2],0])),a=new tt(new Uint32Array([this.buffer[1],0])),u=new tt(new Uint32Array([this.buffer[0],0])),d=new tt(new Uint32Array([e.buffer[3],0])),h=new tt(new Uint32Array([e.buffer[2],0])),p=new tt(new Uint32Array([e.buffer[1],0])),y=new tt(new Uint32Array([e.buffer[0],0]));let g=tt.multiply(u,y);this.buffer[0]=g.low();const v=new tt(new Uint32Array([g.high(),0]));return g=tt.multiply(a,y),v.plus(g),g=tt.multiply(u,p),v.plus(g),this.buffer[1]=v.low(),this.buffer[3]=v.lessThan(g)?1:0,this.buffer[2]=v.high(),new tt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(tt.multiply(s,y)).plus(tt.multiply(a,p)).plus(tt.multiply(u,h)),this.buffer[3]+=tt.multiply(t,y).plus(tt.multiply(s,p)).plus(tt.multiply(a,h)).plus(tt.multiply(u,d)).low(),this}plus(e){const t=new Uint32Array(4);return t[3]=this.buffer[3]+e.buffer[3]>>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]<this.buffer[0]>>>0&&++t[1],t[1]<this.buffer[1]>>>0&&++t[2],t[2]<this.buffer[2]>>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return`${lo(this.buffer[3])} ${lo(this.buffer[2])} ${lo(this.buffer[1])} ${lo(this.buffer[0])}`}static multiply(e,t){return new Ir(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new Ir(new Uint32Array(e.buffer)).plus(t)}static from(e,t=new Uint32Array(4)){return Ir.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(4)){return Ir.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(4)){const s=e.startsWith("-"),a=e.length,u=new Ir(t);for(let d=s?1:0;d<a;){const h=xo<a-d?xo:a-d,p=new Ir(new Uint32Array([Number.parseInt(e.slice(d,d+h),10),0,0,0])),y=new Ir(new Uint32Array([oh[h],0,0,0]));u.times(y),u.plus(p),d+=h}return s?u.negate():u}static convertArray(e){const t=new Uint32Array(e.length*4);for(let s=-1,a=e.length;++s<a;)Ir.from(e[s],new Uint32Array(t.buffer,t.byteOffset+4*4*s,4));return t}}class b0 extends Ve{constructor(e,t,s,a){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=t,this.buffers=s,this.dictionaries=a}visit(e){return super.visit(e instanceof gt?e.type:e)}visitNull(e,{length:t}=this.nextFieldNode()){return ke({type:e,length:t})}visitBool(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitInt(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitFloat(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitUtf8(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinary(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitFixedSizeBinary(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitDate(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitTimestamp(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitTime(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitDecimal(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitList(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),children:this.visitMany(e.children)})}visitUnion(e){return e.mode===sr.Sparse?this.visitSparseUnion(e):this.visitDenseUnion(e)}visitDenseUnion(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitFixedSizeList(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),child:this.visit(e.children[0])})}visitMap(e,{length:t,nullCount:s}=this.nextFieldNode()){return ke({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,t,s=this.nextBufferRange()){return t>0&&this.readData(e,s)||new Uint8Array(0)}readOffsets(e,t){return this.readData(e,t)}readTypeIds(e,t){return this.readData(e,t)}readData(e,{length:t,offset:s}=this.nextBufferRange()){return this.bytes.subarray(s,s+t)}readDictionary(e){return this.dictionaries.get(e.id)}}class hE extends b0{constructor(e,t,s,a){super(new Uint8Array(0),t,s,a),this.sources=e}readNullBitmap(e,t,{offset:s}=this.nextBufferRange()){return t<=0?new Uint8Array(0):Ef(this.sources[s])}readOffsets(e,{offset:t}=this.nextBufferRange()){return ut(Uint8Array,ut(Int32Array,this.sources[t]))}readTypeIds(e,{offset:t}=this.nextBufferRange()){return ut(Uint8Array,ut(e.ArrayType,this.sources[t]))}readData(e,{offset:t}=this.nextBufferRange()){const{sources:s}=this;return Re.isTimestamp(e)||(Re.isInt(e)||Re.isTime(e))&&e.bitWidth===64||Re.isDate(e)&&e.unit===ri.MILLISECOND?ut(Uint8Array,yn.convertArray(s[t])):Re.isDecimal(e)?ut(Uint8Array,Ir.convertArray(s[t])):Re.isBinary(e)||Re.isFixedSizeBinary(e)?pE(s[t]):Re.isBool(e)?Ef(s[t]):Re.isUtf8(e)?Qf(s[t].join("")):ut(Uint8Array,ut(e.ArrayType,s[t].map(a=>+a)))}}function pE(n){const e=n.join(""),t=new Uint8Array(e.length/2);for(let s=0;s<e.length;s+=2)t[s>>1]=Number.parseInt(e.slice(s,s+2),16);return t}class Ee extends Ve{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((s,a)=>this.compareFields(s,t[a]))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}}function _n(n,e){return e instanceof n.constructor}function Wa(n,e){return n===e||_n(n,e)}function ai(n,e){return n===e||_n(n,e)&&n.bitWidth===e.bitWidth&&n.isSigned===e.isSigned}function ac(n,e){return n===e||_n(n,e)&&n.precision===e.precision}function mE(n,e){return n===e||_n(n,e)&&n.byteWidth===e.byteWidth}function ah(n,e){return n===e||_n(n,e)&&n.unit===e.unit}function Qa(n,e){return n===e||_n(n,e)&&n.unit===e.unit&&n.timezone===e.timezone}function Ha(n,e){return n===e||_n(n,e)&&n.unit===e.unit&&n.bitWidth===e.bitWidth}function yE(n,e){return n===e||_n(n,e)&&n.children.length===e.children.length&&$i.compareManyFields(n.children,e.children)}function gE(n,e){return n===e||_n(n,e)&&n.children.length===e.children.length&&$i.compareManyFields(n.children,e.children)}function lh(n,e){return n===e||_n(n,e)&&n.mode===e.mode&&n.typeIds.every((t,s)=>t===e.typeIds[s])&&$i.compareManyFields(n.children,e.children)}function vE(n,e){return n===e||_n(n,e)&&n.id===e.id&&n.isOrdered===e.isOrdered&&$i.visit(n.indices,e.indices)&&$i.visit(n.dictionary,e.dictionary)}function uh(n,e){return n===e||_n(n,e)&&n.unit===e.unit}function wE(n,e){return n===e||_n(n,e)&&n.listSize===e.listSize&&n.children.length===e.children.length&&$i.compareManyFields(n.children,e.children)}function SE(n,e){return n===e||_n(n,e)&&n.keysSorted===e.keysSorted&&n.children.length===e.children.length&&$i.compareManyFields(n.children,e.children)}Ee.prototype.visitNull=Wa;Ee.prototype.visitBool=Wa;Ee.prototype.visitInt=ai;Ee.prototype.visitInt8=ai;Ee.prototype.visitInt16=ai;Ee.prototype.visitInt32=ai;Ee.prototype.visitInt64=ai;Ee.prototype.visitUint8=ai;Ee.prototype.visitUint16=ai;Ee.prototype.visitUint32=ai;Ee.prototype.visitUint64=ai;Ee.prototype.visitFloat=ac;Ee.prototype.visitFloat16=ac;Ee.prototype.visitFloat32=ac;Ee.prototype.visitFloat64=ac;Ee.prototype.visitUtf8=Wa;Ee.prototype.visitBinary=Wa;Ee.prototype.visitFixedSizeBinary=mE;Ee.prototype.visitDate=ah;Ee.prototype.visitDateDay=ah;Ee.prototype.visitDateMillisecond=ah;Ee.prototype.visitTimestamp=Qa;Ee.prototype.visitTimestampSecond=Qa;Ee.prototype.visitTimestampMillisecond=Qa;Ee.prototype.visitTimestampMicrosecond=Qa;Ee.prototype.visitTimestampNanosecond=Qa;Ee.prototype.visitTime=Ha;Ee.prototype.visitTimeSecond=Ha;Ee.prototype.visitTimeMillisecond=Ha;Ee.prototype.visitTimeMicrosecond=Ha;Ee.prototype.visitTimeNanosecond=Ha;Ee.prototype.visitDecimal=Wa;Ee.prototype.visitList=yE;Ee.prototype.visitStruct=gE;Ee.prototype.visitUnion=lh;Ee.prototype.visitDenseUnion=lh;Ee.prototype.visitSparseUnion=lh;Ee.prototype.visitDictionary=vE;Ee.prototype.visitInterval=uh;Ee.prototype.visitIntervalDayTime=uh;Ee.prototype.visitIntervalYearMonth=uh;Ee.prototype.visitFixedSizeList=wE;Ee.prototype.visitMap=SE;const $i=new Ee;function _E(n,e){return $i.compareSchemas(n,e)}function af(n,e){return bE(n,e.map(t=>t.data.concat()))}function bE(n,e){const t=[...n.fields],s=[],a={numBatches:e.reduce((v,S)=>Math.max(v,S.length),0)};let u=0,d=0,h=-1;const p=e.length;let y,g=[];for(;a.numBatches-- >0;){for(d=Number.POSITIVE_INFINITY,h=-1;++h<p;)g[h]=y=e[h].shift(),d=Math.min(d,y?y.length:d);Number.isFinite(d)&&(g=IE(t,d,g,e,a),d>0&&(s[u++]=ke({type:new on(t),length:d,nullCount:0,children:g.slice()})))}return[n=n.assign(t),s.map(v=>new nr(n,v))]}function IE(n,e,t,s,a){var u;const d=(e+63&-64)>>3;for(let h=-1,p=s.length;++h<p;){const y=t[h],g=y==null?void 0:y.length;if(g>=e)g===e?t[h]=y:(t[h]=y.slice(0,e),a.numBatches=Math.max(a.numBatches,s[h].unshift(y.slice(e,g-e))));else{const v=n[h];n[h]=v.clone({nullable:!0}),t[h]=(u=y==null?void 0:y._changeLengthAndBackfillNullBitmap(e))!==null&&u!==void 0?u:ke({type:v.type,length:e,nullCount:e,nullBitmap:new Uint8Array(d)})}}return t}var I0;class zn{constructor(...e){var t,s;if(e.length===0)return this.batches=[],this.schema=new Je([]),this._offsets=[0],this;let a,u;e[0]instanceof Je&&(a=e.shift()),e.at(-1)instanceof Uint32Array&&(u=e.pop());const d=p=>{if(p){if(p instanceof nr)return[p];if(p instanceof zn)return p.batches;if(p instanceof It){if(p.type instanceof on)return[new nr(new Je(p.type.children),p)]}else{if(Array.isArray(p))return p.flatMap(y=>d(y));if(typeof p[Symbol.iterator]=="function")return[...p].flatMap(y=>d(y));if(typeof p=="object"){const y=Object.keys(p),g=y.map(I=>new ot([p[I]])),v=new Je(y.map((I,T)=>new gt(String(I),g[T].type))),[,S]=af(v,g);return S.length===0?[new nr(p)]:S}}}return[]},h=e.flatMap(p=>d(p));if(a=(s=a??((t=h[0])===null||t===void 0?void 0:t.schema))!==null&&s!==void 0?s:new Je([]),!(a instanceof Je))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const p of h){if(!(p instanceof nr))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!_E(a,p.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=a,this.batches=h,this._offsets=u??a0(this.data)}get data(){return this.batches.map(({data:e})=>e)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((e,t)=>e+t.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=o0(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}set(e,t){}indexOf(e,t){return-1}getByteLength(e){return 0}[Symbol.iterator](){return this.batches.length>0?ih.visit(new ot(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
|
|
80
|
-
${this.toArray().join(`,
|
|
81
|
-
`)}
|
|
82
|
-
]`}concat(...e){const t=this.schema,s=this.data.concat(e.flatMap(({data:a})=>a));return new zn(t,s.map(a=>new nr(t,a)))}slice(e,t){const s=this.schema;[e,t]=i0({length:this.numRows},e,t);const a=l0(this.data,this._offsets,e,t);return new zn(s,a.map(u=>new nr(s,u)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(t=>t.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){const t=this.data.map(s=>s.children[e]);if(t.length===0){const{type:s}=this.schema.fields[e],a=ke({type:s,length:0,nullCount:0});t.push(a._changeLengthAndBackfillNullBitmap(this.numRows))}return new ot(t)}return null}setChild(e,t){var s;return this.setChildAt((s=this.schema.fields)===null||s===void 0?void 0:s.findIndex(a=>a.name===e),t)}setChildAt(e,t){let s=this.schema,a=[...this.batches];if(e>-1&&e<this.numCols){t||(t=new ot([ke({type:new zi,length:this.numRows})]));const u=s.fields.slice(),d=u[e].clone({type:t.type}),h=this.schema.fields.map((p,y)=>this.getChildAt(y));[u[e],h[e]]=[d,t],[s,a]=af(s,h)}return new zn(s,a)}select(e){const t=this.schema.fields.reduce((s,a,u)=>s.set(a.name,u),new Map);return this.selectAt(e.map(s=>t.get(s)).filter(s=>s>-1))}selectAt(e){const t=this.schema.selectAt(e),s=this.batches.map(a=>a.selectAt(e));return new zn(t,s)}assign(e){const t=this.schema.fields,[s,a]=e.schema.fields.reduce((h,p,y)=>{const[g,v]=h,S=t.findIndex(I=>I.name===p.name);return~S?v[S]=y:g.push(y),h},[[],[]]),u=this.schema.assign(e.schema),d=[...t.map((h,p)=>[p,a[p]]).map(([h,p])=>p===void 0?this.getChildAt(h):e.getChildAt(p)),...s.map(h=>e.getChildAt(h))].filter(Boolean);return new zn(...af(u,d))}}I0=Symbol.toStringTag;zn[I0]=(n=>(n.schema=null,n.batches=[],n._offsets=new Uint32Array([0]),n._nullCount=-1,n[Symbol.isConcatSpreadable]=!0,n.isValid=mo(rh),n.get=mo(Sn.getVisitFn(O.Struct)),n.set=u0($n.getVisitFn(O.Struct)),n.indexOf=c0(ku.getVisitFn(O.Struct)),n.getByteLength=mo(Ar.getVisitFn(O.Struct)),"Table"))(zn.prototype);var E0;let nr=class xa{constructor(...e){switch(e.length){case 2:{if([this.schema]=e,!(this.schema instanceof Je))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=ke({nullCount:0,type:new on(this.schema.fields),children:this.schema.fields.map(t=>ke({type:t.type,nullCount:0}))})]=e,!(this.data instanceof It))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=Uy(this.schema,this.data.children);break}case 1:{const[t]=e,{fields:s,children:a,length:u}=Object.keys(t).reduce((p,y,g)=>(p.children[g]=t[y],p.length=Math.max(p.length,t[y].length),p.fields[g]=gt.new({name:y,type:t[y].type,nullable:!0}),p),{length:0,fields:new Array,children:new Array}),d=new Je(s),h=ke({type:new on(s),length:u,children:a,nullCount:0});[this.schema,this.data]=Uy(d,h.children,u);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=x0(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return Sn.visit(this.data,e)}set(e,t){return $n.visit(this.data,e,t)}indexOf(e,t){return ku.visit(this.data,e,t)}getByteLength(e){return Ar.visit(this.data,e)}[Symbol.iterator](){return ih.visit(new ot([this.data]))}toArray(){return[...this]}concat(...e){return new zn(this.schema,[this,...e])}slice(e,t){const[s]=new ot([this.data]).slice(e,t).data;return new xa(this.schema,s)}getChild(e){var t;return this.getChildAt((t=this.schema.fields)===null||t===void 0?void 0:t.findIndex(s=>s.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new ot([this.data.children[e]]):null}setChild(e,t){var s;return this.setChildAt((s=this.schema.fields)===null||s===void 0?void 0:s.findIndex(a=>a.name===e),t)}setChildAt(e,t){let s=this.schema,a=this.data;if(e>-1&&e<this.numCols){t||(t=new ot([ke({type:new zi,length:this.numRows})]));const u=s.fields.slice(),d=a.children.slice(),h=u[e].clone({type:t.type});[u[e],d[e]]=[h,t.data[0]],s=new Je(u,new Map(this.schema.metadata)),a=ke({type:new on(u),children:d})}return new xa(s,a)}select(e){const t=this.schema.select(e),s=new on(t.fields),a=[];for(const u of e){const d=this.schema.fields.findIndex(h=>h.name===u);~d&&(a[d]=this.data.children[d])}return new xa(t,ke({type:s,length:this.numRows,children:a}))}selectAt(e){const t=this.schema.selectAt(e),s=e.map(u=>this.data.children[u]).filter(Boolean),a=ke({type:new on(t.fields),length:this.numRows,children:s});return new xa(t,a)}};E0=Symbol.toStringTag;nr[E0]=(n=>(n._nullCount=-1,n[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(nr.prototype);function Uy(n,e,t=e.reduce((s,a)=>Math.max(s,a.length),0)){var s;const a=[...n.fields],u=[...e],d=(t+63&-64)>>3;for(const[h,p]of n.fields.entries()){const y=e[h];(!y||y.length!==t)&&(a[h]=p.clone({nullable:!0}),u[h]=(s=y==null?void 0:y._changeLengthAndBackfillNullBitmap(t))!==null&&s!==void 0?s:ke({type:p.type,length:t,nullCount:t,nullBitmap:new Uint8Array(d)}))}return[n.assign(a),ke({type:new on(a),length:t,children:u})]}function x0(n,e,t=new Map){for(let s=-1,a=n.length;++s<a;){const d=n[s].type,h=e[s];if(Re.isDictionary(d)){if(!t.has(d.id))h.dictionary&&t.set(d.id,h.dictionary);else if(t.get(d.id)!==h.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}d.children&&d.children.length>0&&x0(d.children,h.children,t)}return t}class D0 extends nr{constructor(e){const t=e.fields.map(a=>ke({type:a.type})),s=ke({type:new on(e.fields),nullCount:0,children:t});super(e,s)}}var qu;(function(n){n[n.BUFFER=0]="BUFFER"})(qu||(qu={}));var Ku;(function(n){n[n.LZ4_FRAME=0]="LZ4_FRAME",n[n.ZSTD=1]="ZSTD"})(Ku||(Ku={}));class Bi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBodyCompression(e,t){return(t||new Bi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,t){return e.setPosition(e.position()+ct),(t||new Bi).__init(e.readInt32(e.position())+e.position(),e)}codec(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):Ku.LZ4_FRAME}method(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):qu.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,t){e.addFieldInt8(0,t,Ku.LZ4_FRAME)}static addMethod(e,t){e.addFieldInt8(1,t,qu.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,t,s){return Bi.startBodyCompression(e),Bi.addCodec(e,t),Bi.addMethod(e,s),Bi.endBodyCompression(e)}}class C0{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(e,t,s){return e.prep(8,16),e.writeInt64(BigInt(s??0)),e.writeInt64(BigInt(t??0)),e.offset()}}let O0=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(e,t,s){return e.prep(8,16),e.writeInt64(BigInt(s??0)),e.writeInt64(BigInt(t??0)),e.offset()}},Yr=class Tf{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsRecordBatch(e,t){return(t||new Tf).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,t){return e.setPosition(e.position()+ct),(t||new Tf).__init(e.readInt32(e.position())+e.position(),e)}length(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}nodes(e,t){const s=this.bb.__offset(this.bb_pos,6);return s?(t||new O0).__init(this.bb.__vector(this.bb_pos+s)+e*16,this.bb):null}nodesLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,t){const s=this.bb.__offset(this.bb_pos,8);return s?(t||new C0).__init(this.bb.__vector(this.bb_pos+s)+e*16,this.bb):null}buffersLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){const t=this.bb.__offset(this.bb_pos,10);return t?(e||new Bi).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}static startRecordBatch(e){e.startObject(4)}static addLength(e,t){e.addFieldInt64(0,t,BigInt("0"))}static addNodes(e,t){e.addFieldOffset(1,t,0)}static startNodesVector(e,t){e.startVector(16,t,8)}static addBuffers(e,t){e.addFieldOffset(2,t,0)}static startBuffersVector(e,t){e.startVector(16,t,8)}static addCompression(e,t){e.addFieldOffset(3,t,0)}static endRecordBatch(e){return e.endObject()}},ao=class Mf{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryBatch(e,t){return(t||new Mf).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,t){return e.setPosition(e.position()+ct),(t||new Mf).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}data(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new Yr).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isDelta(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startDictionaryBatch(e){e.startObject(3)}static addId(e,t){e.addFieldInt64(0,t,BigInt("0"))}static addData(e,t){e.addFieldOffset(1,t,0)}static addIsDelta(e,t){e.addFieldInt8(2,+t,0)}static endDictionaryBatch(e){return e.endObject()}};var Yu;(function(n){n[n.NONE=0]="NONE",n[n.Schema=1]="Schema",n[n.DictionaryBatch=2]="DictionaryBatch",n[n.RecordBatch=3]="RecordBatch",n[n.Tensor=4]="Tensor",n[n.SparseTensor=5]="SparseTensor"})(Yu||(Yu={}));let Ai=class Sr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(e,t){return(t||new Sr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,t){return e.setPosition(e.position()+ct),(t||new Sr).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):So.V1}headerType(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):Yu.NONE}header(e){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}bodyLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}customMetadata(e,t){const s=this.bb.__offset(this.bb_pos,12);return s?(t||new kt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,So.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,Yu.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,BigInt("0"))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,t){e.finish(t)}static finishSizePrefixedMessageBuffer(e,t){e.finish(t,void 0,!0)}static createMessage(e,t,s,a,u,d){return Sr.startMessage(e),Sr.addVersion(e,t),Sr.addHeaderType(e,s),Sr.addHeader(e,a),Sr.addBodyLength(e,u),Sr.addCustomMetadata(e,d),Sr.endMessage(e)}};class EE extends Ve{visit(e,t){return e==null||t==null?void 0:super.visit(e,t)}visitNull(e,t){return _s.startNull(t),_s.endNull(t)}visitInt(e,t){return On.startInt(t),On.addBitWidth(t,e.bitWidth),On.addIsSigned(t,e.isSigned),On.endInt(t)}visitFloat(e,t){return Or.startFloatingPoint(t),Or.addPrecision(t,e.precision),Or.endFloatingPoint(t)}visitBinary(e,t){return vs.startBinary(t),vs.endBinary(t)}visitBool(e,t){return ws.startBool(t),ws.endBool(t)}visitUtf8(e,t){return Is.startUtf8(t),Is.endUtf8(t)}visitDecimal(e,t){return gn.startDecimal(t),gn.addScale(t,e.scale),gn.addPrecision(t,e.precision),gn.addBitWidth(t,e.bitWidth),gn.endDecimal(t)}visitDate(e,t){return hu.startDate(t),hu.addUnit(t,e.unit),hu.endDate(t)}visitTime(e,t){return Un.startTime(t),Un.addUnit(t,e.unit),Un.addBitWidth(t,e.bitWidth),Un.endTime(t)}visitTimestamp(e,t){const s=e.timezone&&t.createString(e.timezone)||void 0;return jn.startTimestamp(t),jn.addUnit(t,e.unit),s!==void 0&&jn.addTimezone(t,s),jn.endTimestamp(t)}visitInterval(e,t){return Rr.startInterval(t),Rr.addUnit(t,e.unit),Rr.endInterval(t)}visitList(e,t){return Ss.startList(t),Ss.endList(t)}visitStruct(e,t){return bs.startStruct_(t),bs.endStruct_(t)}visitUnion(e,t){vn.startTypeIdsVector(t,e.typeIds.length);const s=vn.createTypeIdsVector(t,e.typeIds);return vn.startUnion(t),vn.addMode(t,e.mode),vn.addTypeIds(t,s),vn.endUnion(t)}visitDictionary(e,t){const s=this.visit(e.indices,t);return Jr.startDictionaryEncoding(t),Jr.addId(t,BigInt(e.id)),Jr.addIsOrdered(t,e.isOrdered),s!==void 0&&Jr.addIndexType(t,s),Jr.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return Dr.startFixedSizeBinary(t),Dr.addByteWidth(t,e.byteWidth),Dr.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return Cr.startFixedSizeList(t),Cr.addListSize(t,e.listSize),Cr.endFixedSizeList(t)}visitMap(e,t){return pu.startMap(t),pu.addKeysSorted(t,e.keysSorted),pu.endMap(t)}}const lf=new EE;function xE(n,e=new Map){return new Je(CE(n,e),yu(n.customMetadata),e)}function R0(n){return new ar(n.count,F0(n.columns),T0(n.columns))}function DE(n){return new ii(R0(n.data),n.id,n.isDelta)}function CE(n,e){return(n.fields||[]).filter(Boolean).map(t=>gt.fromJSON(t,e))}function jy(n,e){return(n.children||[]).filter(Boolean).map(t=>gt.fromJSON(t,e))}function F0(n){return(n||[]).reduce((e,t)=>[...e,new Ro(t.count,OE(t.VALIDITY)),...F0(t.children)],[])}function T0(n,e=[]){for(let t=-1,s=(n||[]).length;++t<s;){const a=n[t];a.VALIDITY&&e.push(new Zr(e.length,a.VALIDITY.length)),a.TYPE&&e.push(new Zr(e.length,a.TYPE.length)),a.OFFSET&&e.push(new Zr(e.length,a.OFFSET.length)),a.DATA&&e.push(new Zr(e.length,a.DATA.length)),e=T0(a.children,e)}return e}function OE(n){return(n||[]).reduce((e,t)=>e+ +(t===0),0)}function RE(n,e){let t,s,a,u,d,h;return!e||!(u=n.dictionary)?(d=Vy(n,jy(n,e)),a=new gt(n.name,d,n.nullable,yu(n.customMetadata))):e.has(t=u.id)?(s=(s=u.indexType)?zy(s):new La,h=new vo(e.get(t),s,t,u.isOrdered),a=new gt(n.name,h,n.nullable,yu(n.customMetadata))):(s=(s=u.indexType)?zy(s):new La,e.set(t,d=Vy(n,jy(n,e))),h=new vo(d,s,t,u.isOrdered),a=new gt(n.name,h,n.nullable,yu(n.customMetadata))),a||null}function yu(n){return new Map(Object.entries(n||{}))}function zy(n){return new Vi(n.isSigned,n.bitWidth)}function Vy(n,e){const t=n.type.name;switch(t){case"NONE":return new zi;case"null":return new zi;case"binary":return new Du;case"utf8":return new Cu;case"bool":return new Ou;case"list":return new Au((e||[])[0]);case"struct":return new on(e||[]);case"struct_":return new on(e||[])}switch(t){case"int":{const s=n.type;return new Vi(s.isSigned,s.bitWidth)}case"floatingpoint":{const s=n.type;return new Ba(wn[s.precision])}case"decimal":{const s=n.type;return new Ru(s.scale,s.precision,s.bitWidth)}case"date":{const s=n.type;return new Fu(ri[s.unit])}case"time":{const s=n.type;return new ka(Ke[s.unit],s.bitWidth)}case"timestamp":{const s=n.type;return new Tu(Ke[s.unit],s.timezone)}case"interval":{const s=n.type;return new Mu(ji[s.unit])}case"union":{const s=n.type;return new Pu(sr[s.mode],s.typeIds||[],e||[])}case"fixedsizebinary":{const s=n.type;return new Nu(s.byteWidth)}case"fixedsizelist":{const s=n.type;return new Lu(s.listSize,(e||[])[0])}case"map":{const s=n.type;return new Bu((e||[])[0],s.keysSorted)}}throw new Error(`Unrecognized type: "${t}"`)}var FE=v0,TE=wo;class rr{static fromJSON(e,t){const s=new rr(0,Vn.V4,t);return s._createHeader=ME(e,t),s}static decode(e){e=new TE(Ge(e));const t=Ai.getRootAsMessage(e),s=t.bodyLength(),a=t.version(),u=t.headerType(),d=new rr(s,a,u);return d._createHeader=AE(t,u),d}static encode(e){const t=new FE;let s=-1;return e.isSchema()?s=Je.encode(t,e.header()):e.isRecordBatch()?s=ar.encode(t,e.header()):e.isDictionaryBatch()&&(s=ii.encode(t,e.header())),Ai.startMessage(t),Ai.addVersion(t,Vn.V4),Ai.addHeader(t,s),Ai.addHeaderType(t,e.headerType),Ai.addBodyLength(t,BigInt(e.bodyLength)),Ai.finishMessageBuffer(t,Ai.endMessage(t)),t.asUint8Array()}static from(e,t=0){if(e instanceof Je)return new rr(0,Vn.V4,st.Schema,e);if(e instanceof ar)return new rr(t,Vn.V4,st.RecordBatch,e);if(e instanceof ii)return new rr(t,Vn.V4,st.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===st.Schema}isRecordBatch(){return this.headerType===st.RecordBatch}isDictionaryBatch(){return this.headerType===st.DictionaryBatch}constructor(e,t,s,a){this._version=t,this._headerType=s,this.body=new Uint8Array(0),a&&(this._createHeader=()=>a),this._bodyLength=or(e)}}class ar{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(e,t,s){this._nodes=t,this._buffers=s,this._length=or(e)}}class ii{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(e,t,s=!1){this._data=e,this._isDelta=s,this._id=or(t)}}class Zr{constructor(e,t){this.offset=or(e),this.length=or(t)}}class Ro{constructor(e,t){this.length=or(e),this.nullCount=or(t)}}function ME(n,e){return()=>{switch(e){case st.Schema:return Je.fromJSON(n);case st.RecordBatch:return ar.fromJSON(n);case st.DictionaryBatch:return ii.fromJSON(n)}throw new Error(`Unrecognized Message type: { name: ${st[e]}, type: ${e} }`)}}function AE(n,e){return()=>{switch(e){case st.Schema:return Je.decode(n.header(new br));case st.RecordBatch:return ar.decode(n.header(new Yr),n.version());case st.DictionaryBatch:return ii.decode(n.header(new ao),n.version())}throw new Error(`Unrecognized Message type: { name: ${st[e]}, type: ${e} }`)}}gt.encode=WE;gt.decode=VE;gt.fromJSON=RE;Je.encode=$E;Je.decode=PE;Je.fromJSON=xE;ar.encode=QE;ar.decode=NE;ar.fromJSON=R0;ii.encode=HE;ii.decode=LE;ii.fromJSON=DE;Ro.encode=qE;Ro.decode=kE;Zr.encode=KE;Zr.decode=BE;function PE(n,e=new Map){const t=zE(n,e);return new Je(t,gu(n),e)}function NE(n,e=Vn.V4){if(n.compression()!==null)throw new Error("Record batch compression not implemented");return new ar(n.length(),UE(n),jE(n,e))}function LE(n,e=Vn.V4){return new ii(ar.decode(n.data(),e),n.id(),n.isDelta())}function BE(n){return new Zr(n.offset(),n.length())}function kE(n){return new Ro(n.length(),n.nullCount())}function UE(n){const e=[];for(let t,s=-1,a=-1,u=n.nodesLength();++s<u;)(t=n.nodes(s))&&(e[++a]=Ro.decode(t));return e}function jE(n,e){const t=[];for(let s,a=-1,u=-1,d=n.buffersLength();++a<d;)(s=n.buffers(a))&&(e<Vn.V4&&(s.bb_pos+=8*(a+1)),t[++u]=Zr.decode(s));return t}function zE(n,e){const t=[];for(let s,a=-1,u=-1,d=n.fieldsLength();++a<d;)(s=n.fields(a))&&(t[++u]=gt.decode(s,e));return t}function $y(n,e){const t=[];for(let s,a=-1,u=-1,d=n.childrenLength();++a<d;)(s=n.children(a))&&(t[++u]=gt.decode(s,e));return t}function VE(n,e){let t,s,a,u,d,h;return!e||!(h=n.dictionary())?(a=Qy(n,$y(n,e)),s=new gt(n.name(),a,n.nullable(),gu(n))):e.has(t=or(h.id()))?(u=(u=h.indexType())?Wy(u):new La,d=new vo(e.get(t),u,t,h.isOrdered()),s=new gt(n.name(),d,n.nullable(),gu(n))):(u=(u=h.indexType())?Wy(u):new La,e.set(t,a=Qy(n,$y(n,e))),d=new vo(a,u,t,h.isOrdered()),s=new gt(n.name(),d,n.nullable(),gu(n))),s||null}function gu(n){const e=new Map;if(n)for(let t,s,a=-1,u=Math.trunc(n.customMetadataLength());++a<u;)(t=n.customMetadata(a))&&(s=t.key())!=null&&e.set(s,t.value());return e}function Wy(n){return new Vi(n.isSigned(),n.bitWidth())}function Qy(n,e){const t=n.typeType();switch(t){case Et.NONE:return new zi;case Et.Null:return new zi;case Et.Binary:return new Du;case Et.Utf8:return new Cu;case Et.Bool:return new Ou;case Et.List:return new Au((e||[])[0]);case Et.Struct_:return new on(e||[])}switch(t){case Et.Int:{const s=n.type(new On);return new Vi(s.isSigned(),s.bitWidth())}case Et.FloatingPoint:{const s=n.type(new Or);return new Ba(s.precision())}case Et.Decimal:{const s=n.type(new gn);return new Ru(s.scale(),s.precision(),s.bitWidth())}case Et.Date:{const s=n.type(new hu);return new Fu(s.unit())}case Et.Time:{const s=n.type(new Un);return new ka(s.unit(),s.bitWidth())}case Et.Timestamp:{const s=n.type(new jn);return new Tu(s.unit(),s.timezone())}case Et.Interval:{const s=n.type(new Rr);return new Mu(s.unit())}case Et.Union:{const s=n.type(new vn);return new Pu(s.mode(),s.typeIdsArray()||[],e||[])}case Et.FixedSizeBinary:{const s=n.type(new Dr);return new Nu(s.byteWidth())}case Et.FixedSizeList:{const s=n.type(new Cr);return new Lu(s.listSize(),(e||[])[0])}case Et.Map:{const s=n.type(new pu);return new Bu((e||[])[0],s.keysSorted())}}throw new Error(`Unrecognized type: "${Et[t]}" (${t})`)}function $E(n,e){const t=e.fields.map(u=>gt.encode(n,u));br.startFieldsVector(n,t.length);const s=br.createFieldsVector(n,t),a=e.metadata&&e.metadata.size>0?br.createCustomMetadataVector(n,[...e.metadata].map(([u,d])=>{const h=n.createString(`${u}`),p=n.createString(`${d}`);return kt.startKeyValue(n),kt.addKey(n,h),kt.addValue(n,p),kt.endKeyValue(n)})):-1;return br.startSchema(n),br.addFields(n,s),br.addEndianness(n,YE?_o.Little:_o.Big),a!==-1&&br.addCustomMetadata(n,a),br.endSchema(n)}function WE(n,e){let t=-1,s=-1,a=-1;const u=e.type;let d=e.typeId;Re.isDictionary(u)?(d=u.dictionary.typeId,a=lf.visit(u,n),s=lf.visit(u.dictionary,n)):s=lf.visit(u,n);const h=(u.children||[]).map(g=>gt.encode(n,g)),p=Ln.createChildrenVector(n,h),y=e.metadata&&e.metadata.size>0?Ln.createCustomMetadataVector(n,[...e.metadata].map(([g,v])=>{const S=n.createString(`${g}`),I=n.createString(`${v}`);return kt.startKeyValue(n),kt.addKey(n,S),kt.addValue(n,I),kt.endKeyValue(n)})):-1;return e.name&&(t=n.createString(e.name)),Ln.startField(n),Ln.addType(n,s),Ln.addTypeType(n,d),Ln.addChildren(n,p),Ln.addNullable(n,!!e.nullable),t!==-1&&Ln.addName(n,t),a!==-1&&Ln.addDictionary(n,a),y!==-1&&Ln.addCustomMetadata(n,y),Ln.endField(n)}function QE(n,e){const t=e.nodes||[],s=e.buffers||[];Yr.startNodesVector(n,t.length);for(const d of t.slice().reverse())Ro.encode(n,d);const a=n.endVector();Yr.startBuffersVector(n,s.length);for(const d of s.slice().reverse())Zr.encode(n,d);const u=n.endVector();return Yr.startRecordBatch(n),Yr.addLength(n,BigInt(e.length)),Yr.addNodes(n,a),Yr.addBuffers(n,u),Yr.endRecordBatch(n)}function HE(n,e){const t=ar.encode(n,e.data);return ao.startDictionaryBatch(n),ao.addId(n,BigInt(e.id)),ao.addIsDelta(n,e.isDelta),ao.addData(n,t),ao.endDictionaryBatch(n)}function qE(n,e){return O0.createFieldNode(n,BigInt(e.length),BigInt(e.nullCount))}function KE(n,e){return C0.createBuffer(n,BigInt(e.offset),BigInt(e.length))}const YE=(()=>{const n=new ArrayBuffer(2);return new DataView(n).setInt16(0,256,!0),new Int16Array(n)[0]===256})(),ch=n=>`Expected ${st[n]} Message in stream, but was null or length 0.`,dh=n=>`Header pointer of flatbuffer-encoded ${st[n]} Message is null or length 0.`,M0=(n,e)=>`Expected to read ${n} metadata bytes, but only read ${e}.`,A0=(n,e)=>`Expected to read ${n} bytes for message body, but only read ${e}.`;class P0{constructor(e){this.source=e instanceof Qu?e:new Qu(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||e.value===-1&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?xt:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw new Error(ch(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);const t=Ge(this.source.read(e));if(t.byteLength<e)throw new Error(A0(e,t.byteLength));return t.byteOffset%8===0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()}readSchema(e=!1){const t=st.Schema,s=this.readMessage(t),a=s==null?void 0:s.header();if(e&&!a)throw new Error(dh(t));return a}readMetadataLength(){const e=this.source.read(lc),t=e&&new wo(e),s=(t==null?void 0:t.readInt32(0))||0;return{done:s===0,value:s}}readMetadata(e){const t=this.source.read(e);if(!t)return xt;if(t.byteLength<e)throw new Error(M0(e,t.byteLength));return{done:!1,value:rr.decode(t)}}}class GE{constructor(e,t){this.source=e instanceof Eo?e:Xg(e)?new Hu(e,t):new Eo(e)}[Symbol.asyncIterator](){return this}next(){return ve(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done||e.value===-1&&(e=yield this.readMetadataLength()).done||(e=yield this.readMetadata(e.value)).done?xt:e})}throw(e){return ve(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return ve(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return ve(this,void 0,void 0,function*(){let t;if((t=yield this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw new Error(ch(e));return t.value})}readMessageBody(e){return ve(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);const t=Ge(yield this.source.read(e));if(t.byteLength<e)throw new Error(A0(e,t.byteLength));return t.byteOffset%8===0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()})}readSchema(e=!1){return ve(this,void 0,void 0,function*(){const t=st.Schema,s=yield this.readMessage(t),a=s==null?void 0:s.header();if(e&&!a)throw new Error(dh(t));return a})}readMetadataLength(){return ve(this,void 0,void 0,function*(){const e=yield this.source.read(lc),t=e&&new wo(e),s=(t==null?void 0:t.readInt32(0))||0;return{done:s===0,value:s}})}readMetadata(e){return ve(this,void 0,void 0,function*(){const t=yield this.source.read(e);if(!t)return xt;if(t.byteLength<e)throw new Error(M0(e,t.byteLength));return{done:!1,value:rr.decode(t)}})}}class JE extends P0{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof By?e:new By(e)}next(){const{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:rr.fromJSON(e.schema,st.Schema)};if(this._dictionaryIndex<e.dictionaries.length){const t=e.dictionaries[this._dictionaryIndex++];return this._body=t.data.columns,{done:!1,value:rr.fromJSON(t,st.DictionaryBatch)}}if(this._batchIndex<e.batches.length){const t=e.batches[this._batchIndex++];return this._body=t.columns,{done:!1,value:rr.fromJSON(t,st.RecordBatch)}}return this._body=[],xt}readMessageBody(e){return t(this._body);function t(s){return(s||[]).reduce((a,u)=>[...a,...u.VALIDITY&&[u.VALIDITY]||[],...u.TYPE&&[u.TYPE]||[],...u.OFFSET&&[u.OFFSET]||[],...u.DATA&&[u.DATA]||[],...t(u.children)],[])}}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw new Error(ch(e));return t.value}readSchema(){const e=st.Schema,t=this.readMessage(e),s=t==null?void 0:t.header();if(!t||!s)throw new Error(dh(e));return s}}const lc=4,Af="ARROW1",Gu=new Uint8Array(Af.length);for(let n=0;n<Af.length;n+=1)Gu[n]=Af.codePointAt(n);function fh(n,e=0){for(let t=-1,s=Gu.length;++t<s;)if(Gu[t]!==n[e+t])return!1;return!0}const qa=Gu.length,N0=qa+lc,XE=qa*2+lc;class ti extends S0{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){const t=this._impl.open(e);return Ma(t)?t.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return kn.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return kn.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof ti?e:bf(e)?nx(e):Xg(e)?sx(e):Ma(e)?ve(this,void 0,void 0,function*(){return yield ti.from(yield e)}):Zg(e)||qf(e)||tv(e)||Hf(e)?ix(new Eo(e)):rx(new Qu(e))}static readAll(e){return e instanceof ti?e.isSync()?Hy(e):qy(e):bf(e)||ArrayBuffer.isView(e)||sc(e)||Jg(e)?Hy(e):qy(e)}}class Ju extends ti{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Fr(this,arguments,function*(){yield Te(yield*fu(uo(this[Symbol.iterator]())))})}}class Xu extends ti{constructor(e){super(e),this._impl=e}readAll(){var e,t,s,a;return ve(this,void 0,void 0,function*(){const u=new Array;try{for(var d=!0,h=uo(this),p;p=yield h.next(),e=p.done,!e;d=!0){a=p.value,d=!1;const y=a;u.push(y)}}catch(y){t={error:y}}finally{try{!d&&!e&&(s=h.return)&&(yield s.call(h))}finally{if(t)throw t.error}}return u})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class L0 extends Ju{constructor(e){super(e),this._impl=e}}class ZE extends Xu{constructor(e){super(e),this._impl=e}}class B0{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,t){const s=this._loadVectors(e,t,this.schema.fields),a=ke({type:new on(this.schema.fields),length:e.length,children:s});return new nr(this.schema,a)}_loadDictionaryBatch(e,t){const{id:s,isDelta:a}=e,{dictionaries:u,schema:d}=this,h=u.get(s);if(a||!h){const p=d.dictionaries.get(s),y=this._loadVectors(e.data,t,[p]);return(h&&a?h.concat(new ot(y)):new ot(y)).memoize()}return h.memoize()}_loadVectors(e,t,s){return new b0(t,e.nodes,e.buffers,this.dictionaries).visitMany(s)}}class Zu extends B0{constructor(e,t){super(t),this._reader=bf(e)?new JE(this._handle=e):new P0(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=U0(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):xt}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):xt}next(){if(this.closed)return xt;let e;const{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const s=e.header(),a=t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(s,a)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const s=e.header(),a=t.readMessageBody(e.bodyLength),u=this._loadDictionaryBatch(s,a);this.dictionaries.set(s.id,u)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new D0(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}}class ec extends B0{constructor(e,t){super(t),this._reader=new GE(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return ve(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return ve(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=U0(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return ve(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):xt})}return(e){return ve(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):xt})}next(){return ve(this,void 0,void 0,function*(){if(this.closed)return xt;let e;const{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const s=e.header(),a=yield t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(s,a)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const s=e.header(),a=yield t.readMessageBody(e.bodyLength),u=this._loadDictionaryBatch(s,a);this.dictionaries.set(s.id,u)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new D0(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return ve(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}}class k0 extends Zu{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,t){super(e instanceof ky?e:new ky(e),t)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var t;if(this.closed)return null;this._footer||this.open();const s=(t=this._footer)===null||t===void 0?void 0:t.getRecordBatch(e);if(s&&this._handle.seek(s.offset)){const a=this._reader.readMessage(st.RecordBatch);if(a!=null&&a.isRecordBatch()){const u=a.header(),d=this._reader.readMessageBody(a.bodyLength);return this._loadRecordBatch(u,d)}}return null}_readDictionaryBatch(e){var t;const s=(t=this._footer)===null||t===void 0?void 0:t.getDictionaryBatch(e);if(s&&this._handle.seek(s.offset)){const a=this._reader.readMessage(st.DictionaryBatch);if(a!=null&&a.isDictionaryBatch()){const u=a.header(),d=this._reader.readMessageBody(a.bodyLength),h=this._loadDictionaryBatch(u,d);this.dictionaries.set(u.id,h)}}}_readFooter(){const{_handle:e}=this,t=e.size-N0,s=e.readInt32(t),a=e.readAt(t-s,s);return sh.decode(a)}_readNextMessageAndValidate(e){var t;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const s=(t=this._footer)===null||t===void 0?void 0:t.getRecordBatch(this._recordBatchIndex);if(s&&this._handle.seek(s.offset))return this._reader.readMessage(e)}return null}}class ex extends ec{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,...t){const s=typeof t[0]!="number"?t.shift():void 0,a=t[0]instanceof Map?t.shift():void 0;super(e instanceof Hu?e:new Hu(e,s),a)}isFile(){return!0}isAsync(){return!0}open(e){const t=Object.create(null,{open:{get:()=>super.open}});return ve(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(const s of this._footer.dictionaryBatches())s&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)})}readRecordBatch(e){var t;return ve(this,void 0,void 0,function*(){if(this.closed)return null;this._footer||(yield this.open());const s=(t=this._footer)===null||t===void 0?void 0:t.getRecordBatch(e);if(s&&(yield this._handle.seek(s.offset))){const a=yield this._reader.readMessage(st.RecordBatch);if(a!=null&&a.isRecordBatch()){const u=a.header(),d=yield this._reader.readMessageBody(a.bodyLength);return this._loadRecordBatch(u,d)}}return null})}_readDictionaryBatch(e){var t;return ve(this,void 0,void 0,function*(){const s=(t=this._footer)===null||t===void 0?void 0:t.getDictionaryBatch(e);if(s&&(yield this._handle.seek(s.offset))){const a=yield this._reader.readMessage(st.DictionaryBatch);if(a!=null&&a.isDictionaryBatch()){const u=a.header(),d=yield this._reader.readMessageBody(a.bodyLength),h=this._loadDictionaryBatch(u,d);this.dictionaries.set(u.id,h)}}})}_readFooter(){return ve(this,void 0,void 0,function*(){const{_handle:e}=this;e._pending&&(yield e._pending);const t=e.size-N0,s=yield e.readInt32(t),a=yield e.readAt(t-s,s);return sh.decode(a)})}_readNextMessageAndValidate(e){return ve(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){const t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&(yield this._handle.seek(t.offset)))return yield this._reader.readMessage(e)}return null})}}class tx extends Zu{constructor(e,t){super(e,t)}_loadVectors(e,t,s){return new hE(t,e.nodes,e.buffers,this.dictionaries).visitMany(s)}}function U0(n,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:n.autoDestroy}function*Hy(n){const e=ti.from(n);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function qy(n){return Fr(this,arguments,function*(){const t=yield Te(ti.from(n));try{if(!(yield Te(t.open({autoDestroy:!1}))).closed)do yield yield Te(t);while(!(yield Te(t.reset().open())).closed)}finally{yield Te(t.cancel())}})}function nx(n){return new Ju(new tx(n))}function rx(n){const e=n.peek(qa+7&-8);return e&&e.byteLength>=4?fh(e)?new L0(new k0(n.read())):new Ju(new Zu(n)):new Ju(new Zu(function*(){}()))}function ix(n){return ve(this,void 0,void 0,function*(){const e=yield n.peek(qa+7&-8);return e&&e.byteLength>=4?fh(e)?new L0(new k0(yield n.read())):new Xu(new ec(n)):new Xu(new ec(function(){return Fr(this,arguments,function*(){})}()))})}function sx(n){return ve(this,void 0,void 0,function*(){const{size:e}=yield n.stat(),t=new Hu(n,e);return e>=XE&&fh(yield t.readAt(0,qa+7&-8))?new ZE(new ex(t)):new Xu(new ec(t))})}function j0(n){const e=ti.from(n);return Ma(e)?e.then(t=>j0(t)):e.isAsync()?e.readAll().then(t=>new zn(t)):new zn(e.readAll())}async function Ft(n,e){const{url:t,method:s,params:a,data:u,headers:d,credentials:h,mode:p,cache:y}=n,g=Object.keys({...a}).length>0,v=t.replace(/([^:]\/)\/+/g,"$1"),S=new URL(z0(v),window.location.origin);if(g){const I=Object.entries({...a}).reduce((T,[A,M])=>(M!=null&&(T[A]=String(M)),T),{});S.search=new URLSearchParams(I).toString()}return await new Promise((I,T)=>{fetch(S,{method:s,credentials:h,mode:p,cache:y,headers:ox(d),body:ax(u),signal:e==null?void 0:e.signal}).then(async A=>{if(A.status===204)return{ok:!0};const M=A.headers.get("Content-Type");if(qt(M))return{ok:!1,message:"Empty response"};if(A.status>=400)try{const q=await A.json();throw q.status=q.status??A.status,q}catch(q){throw{message:A.statusText,...q}}const K=M.includes("text/event-stream"),W=M.includes("application/json"),Y=M.includes("application/vnd.apache.arrow.stream");if(W)return await A.json();if(Y)return await j0(A);if(K){const ce=(await A.text()).trim().replace("data: ","").trim();return JSON.parse(ce)}}).then(I).catch(T)})}function ox(n){return{"Content-Type":"application/json",...n??{}}}function ax(n){try{return JSON.stringify(n)}catch{return""}}function z0(n="/"){let e=`${Da(window.__BASE_URL__)?"/":window.__BASE_URL__}/${n}`;for(;e.includes("//");)e=e.replaceAll("//","/");return e}const cu={python:"python",sql:"sql",seed:"seed",external:"external",source:"source"},_r={editor:"editor",files:"files","data-catalog":"data-catalog",plans:"plans",tests:"tests",audits:"audits",errors:"errors",data:"data",lineage:"lineage"},ND={NUMBER_1:1,NUMBER_2:2,NUMBER_3:3},LD={init:"init",success:"success",fail:"fail"},lx=(n,e)=>Ft({url:"/api/commands/apply",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),ux=(n,e)=>Ft({url:"/api/commands/evaluate",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),cx=(n,e)=>Ft({url:"/api/commands/fetchdf",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),dx=(n,e)=>Ft({url:"/api/commands/render",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),fx=n=>Ft({url:"/api/files",method:"GET"},n),hx=(n,e)=>Ft({url:`/api/files/${n}`,method:"GET"},e),px=(n,e,t)=>Ft({url:`/api/files/${n}`,method:"POST",headers:{"Content-Type":"application/json"},data:e},t),BD=(n,e)=>Ft({url:`/api/files/${n}`,method:"DELETE"},e),kD=(n,e,t)=>Ft({url:`/api/directories/${n}`,method:"POST",headers:{"Content-Type":"application/json"},data:e},t),UD=(n,e)=>Ft({url:`/api/directories/${n}`,method:"DELETE"},e),mx=(n,e)=>Ft({url:"/api/plan",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),yx=n=>Ft({url:"/api/plan/cancel",method:"POST"},n),gx=n=>Ft({url:"/api/environments",method:"GET"},n),jD=(n,e)=>Ft({url:`/api/environments/${n}`,method:"DELETE"},e),vx=(n,e,t,s)=>Ft({url:`/api/lineage/${n}/${e}`,method:"GET",params:t},s),wx=(n,e)=>Ft({url:`/api/lineage/${n}`,method:"GET"},e),Sx=n=>Ft({url:"/api/models",method:"GET"},n),_x=(n,e)=>Ft({url:`/api/models/${n}`,method:"GET"},e),bx=n=>Ft({url:"/api/meta",method:"GET"},n),Ix=n=>Ft({url:"/api/modules",method:"GET"},n),Ex=(n,e)=>Ft({url:"/api/table_diff",method:"GET",params:n},e),Qr=N.lazy(()=>an(()=>import("./Root-BIGZcS_U.js"),[])),xx=N.lazy(()=>an(()=>import("./Editor-Cpn7iBcm.js"),[])),Dx=N.lazy(()=>an(()=>import("./Plan-BQe3-3RL.js"),[])),Cx=N.lazy(()=>an(()=>import("./Content-KG4KSDDO.js"),[])),Ox=N.lazy(()=>an(()=>import("./DataCatalog-BJTDeU-_.js"),[])),Rx=N.lazy(()=>an(()=>import("./Tests-DSsKelgd.js"),[])),Fx=N.lazy(()=>an(()=>import("./Audits-DRkR6sg0.js"),[])),Tx=N.lazy(()=>an(()=>import("./Data-D-rZnh8x.js"),[])),uf=N.lazy(()=>an(()=>import("./Models-Dn2xoUA7.js"),[])),Mx=N.lazy(()=>an(()=>import("./Lineage-ZXdxdqzl.js"),[])),Ax=N.lazy(()=>an(()=>import("./Errors-DyDRdQyq.js"),[])),Px=N.lazy(()=>an(()=>import("./Content-pMJLtxGr.js"),[])),Zn=N.lazy(()=>an(()=>import("./Welcome-C0F3fb3h.js"),[])),rt={Home:"/",Editor:"/editor",DataCatalog:"/data-catalog",DataCatalogModels:"/data-catalog/models",Data:"/data",Lineage:"/lineage",LineageModels:"/lineage/models",Tests:"/tests",Audits:"/audits",Errors:"/errors",Plan:"/plan",NotFound:"/not-found"},Ky={plan:[_r.plans]};function Nx(n){const e=[{path:"*",element:nc(n.list)?B.jsx(pn,{link:rt.Home,message:"Back To Main"}):B.jsx(pn,{headline:"Empty"})},{path:rt.Home,element:B.jsx(Qr,{})},...[{path:rt.Editor,element:B.jsx(Qr,{content:B.jsx(xx,{})})},{path:rt.DataCatalog,element:B.jsx(Qr,{content:B.jsx(uf,{route:rt.DataCatalog})}),children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to the Data Catalog",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:B.jsx(pn,{link:rt.DataCatalog,message:"Back To Data Catalog"})},{path:"models",children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to the Data Catalog",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:B.jsx(pn,{link:rt.DataCatalog,message:"Back To Data Catalog"})},{path:":modelName",element:B.jsx(N.Suspense,{fallback:B.jsx("div",{className:"flex justify-center items-center w-full h-full",children:B.jsxs(ro,{className:"inline-block",children:[B.jsx(ms,{className:"w-3 h-3 border border-neutral-10 mr-4"}),B.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:B.jsx(Ox,{})})}]}]},{path:rt.Data,element:B.jsx(Qr,{content:B.jsx(uf,{route:rt.Data})}),children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to the Data",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:B.jsx(pn,{link:rt.Data,message:"Back To Data"})},{path:"models",children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to the Data",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:B.jsx(pn,{link:rt.Data,message:"Back To Data"})},{path:":modelName",element:B.jsx(N.Suspense,{fallback:B.jsx("div",{className:"flex justify-center items-center w-full h-full",children:B.jsxs(ro,{className:"inline-block",children:[B.jsx(ms,{className:"w-3 h-3 border border-neutral-10 mr-4"}),B.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:B.jsx(Tx,{})})}]}]},{path:rt.Lineage,element:B.jsx(Qr,{content:B.jsx(uf,{route:rt.Lineage})}),children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to the Lineage",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:B.jsx(pn,{link:rt.Lineage,message:"Back To Lineage"})},{path:"models",children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to the Lineage",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:B.jsx(pn,{link:rt.Lineage,message:"Back To Lineage"})},{path:":modelName",element:B.jsx(N.Suspense,{fallback:B.jsx("div",{className:"flex justify-center items-center w-full h-full",children:B.jsxs(ro,{className:"inline-block",children:[B.jsx(ms,{className:"w-3 h-3 border border-neutral-10 mr-4"}),B.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:B.jsx(Mx,{})})}]}]},{path:rt.Errors,element:B.jsx(Qr,{content:B.jsx(Ax,{})}),children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to errors report",tagline:"Here you can see all the errors that occurred."})},{path:"*",element:B.jsx(pn,{link:rt.Errors,message:"Back To Errors"})},{path:":id",element:B.jsx(N.Suspense,{fallback:B.jsx("div",{className:"flex justify-center items-center w-full h-full",children:B.jsxs(ro,{className:"inline-block",children:[B.jsx(ms,{className:"w-3 h-3 border border-neutral-10 mr-4"}),B.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:B.jsx(Px,{})})}]},{path:rt.Plan,element:B.jsx(Qr,{content:B.jsx(Dx,{})}),children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to plan",tagline:"Here you can run the plan and apply the changes."})},{path:"*",element:B.jsx(pn,{link:rt.Plan,message:"Back To Plan"})},{path:"environments",children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to plan",tagline:"Here you can run the plan and apply the changes."})},{path:"*",element:B.jsx(pn,{link:rt.Plan,message:"Back To Plan"})},{path:":environmentName",element:B.jsx(N.Suspense,{fallback:B.jsx("div",{className:"flex justify-center items-center w-full h-full",children:B.jsxs(ro,{className:"inline-block",children:[B.jsx(ms,{className:"w-3 h-3 border border-neutral-10 mr-4"}),B.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:B.jsx(Cx,{})})}]}]},{path:rt.Tests,element:B.jsx(Qr,{content:B.jsx(Rx,{})}),children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to tests report",tagline:"Here you can run tests and see the results."})},{path:"*",element:B.jsx(pn,{link:rt.Tests,message:"Back To Tests"})}]},{path:rt.Audits,element:B.jsx(Qr,{content:B.jsx(Fx,{})}),children:[{index:!0,element:B.jsx(Zn,{headline:"Welcome to audits report",tagline:"Here you can run audits and see the results."})},{path:"*",element:B.jsx(pn,{link:rt.Audits,message:"Back To Audits"})}]}].filter(t=>{var a;const s=t.path.replace("/","");return qt(Ky[s])?n.list.includes(s):(a=Ky[s])==null?void 0:a.some(u=>n.list.includes(u))})].filter(Boolean);return Z1(e,{basename:z0()})}const Ut={API:"api",General:"general",RunPlan:"run-plan",ApplyPlan:"apply-plan",CancelPlan:"cancel-plan",Environments:"environments",Models:"models",Fetchdf:"fetchdf",EvaluateModel:"evaluate-model",RenderQuery:"render-query",ColumnLineage:"column-lineage",ModelLineage:"model-lineage",Meta:"meta",Modules:"modules",FileExplorer:"file-explorer",Table:"table",TableDiff:"table-diff",SaveFile:"save-file"},V0=N.createContext({errors:new Set,addError:()=>({removeError:()=>{},error:{}}),removeError:()=>{},clearErrors:()=>{}});function Lx({children:n}){const[e,t]=N.useState(new Set);function s(d,h){const p={id:ff(),key:d,status:h.status,timestamp:h.timestamp??Date.now(),message:h.message,description:h.description,type:h.type,origin:h.origin,trigger:h.trigger,stack:h.stack,traceback:h.traceback};return t(y=>new Set(y.add(p))),{removeError:()=>a(p),error:p}}function a(d){t(h=>(h.forEach(p=>{(p===d||p.key===d)&&h.delete(p)}),new Set(h)))}function u(){t(new Set)}return B.jsx(V0.Provider,{value:{errors:e,addError:s,removeError:a,clearErrors:u},children:n})}function hh(){return N.useContext(V0)}const $0=60*1e3,Bx=5*$0,uc=10*$0;function kx(n){return Zt({queryKey:["/api/modules"],queryFn:Ix,enabled:!0},{...n,errorKey:Ut.Modules,trigger:"API -> useApiModules"})}function zD(n){return Zt({queryKey:["/api/meta"],queryFn:bx,enabled:!0},{...n,errorKey:Ut.Meta,trigger:"API -> useApiMeta"})}function VD(n){return Zt({queryKey:["/api/models"],queryFn:Sx},{...n,errorKey:Ut.Models,trigger:"API -> useApiModels"})}function $D(n,e){return Zt({queryKey:["/api/models",n],queryFn:async({signal:t})=>await _x(n,{signal:t})},{...e,errorKey:Ut.Models,trigger:"API -> useApiModel"})}function WD(n){return Zt({queryKey:["/api/files"],queryFn:fx},{...n,errorKey:Ut.FileExplorer,trigger:"API -> useApiFiles"})}function QD(n,e){return Zt({queryKey:["/api/files",n],queryFn:async({signal:t})=>await hx(n,{signal:t})},{...e,errorKey:Ut.FileExplorer,trigger:"API -> useApiFileByPath"})}function HD(n,e){return Zt({queryKey:["/api/lineage",n],queryFn:async({signal:t})=>await wx(n,{signal:t})},{...e,errorKey:Ut.ModelLineage,trigger:"API -> useApiModelLineage"})}function qD(n,e,t,s){return Zt({queryKey:["/api/lineage",n,e],queryFn:async({signal:a})=>await vx(n,e,s,{signal:a})},{...t,errorKey:Ut.ColumnLineage,trigger:"API -> useApiColumnLineage"})}function KD(n){return Zt({queryKey:["/api/environments"],queryFn:gx},{...n,errorKey:Ut.Environments,trigger:"API -> useApiEnvironments"})}function YD(n){return Zt({queryKey:["/api/commands/apply"],queryFn:yx},{...n,errorKey:Ut.CancelPlan,trigger:"API -> useApiCancelPlan"})}function GD(n,e,t){return Zt({queryKey:["/api/plan",n],async queryFn({signal:s}){return await mx({environment:n,plan_dates:e==null?void 0:e.planDates,plan_options:e==null?void 0:e.planOptions,categories:e==null?void 0:e.categories},{signal:s})}},{...t,errorKey:Ut.RunPlan,trigger:"API -> useApiPlanRun"})}function JD(n,e,t){return Zt({queryKey:["/api/commands/apply",n],async queryFn({signal:s}){return await lx({environment:n,plan_dates:e==null?void 0:e.planDates,plan_options:e==null?void 0:e.planOptions,categories:e==null?void 0:e.categories},{signal:s})}},{...t,errorKey:Ut.ApplyPlan,trigger:"API -> useApiPlanApply"})}function XD(n,e){return Zt({queryKey:["/api/commands/fetchd"],queryFn:async({signal:t})=>await cx(n,{signal:t})},{...e,errorKey:Ut.Fetchdf,trigger:"API -> useApiFetchdf",delay:uc})}function ZD(n,e){return Zt({queryKey:["/api/commands/render"],queryFn:async({signal:t})=>await dx(n,{signal:t})},{...e,errorKey:Ut.RenderQuery,trigger:"API -> useApiRender",delay:uc})}function eC(n,e){return Zt({queryKey:["/api/commands/table_diff"],queryFn:async({signal:t})=>await Ex(n,{signal:t})},{...e,errorKey:Ut.TableDiff,trigger:"API -> useApiTableDiff",delay:uc})}function tC(n,e){return Zt({queryKey:["/api/commands/evaluate"],queryFn:async({signal:t})=>await ux(n,{signal:t})},{...e,errorKey:Ut.EvaluateModel,trigger:"API -> useApiEvaluate",delay:uc})}function nC(n){const{addError:e}=hh();return O_({mutationFn:async({path:t,body:s})=>await px(t,s),onError(t){e(Ut.SaveFile,t)},async onMutate({path:t}){await n.cancelQueries({queryKey:["/api/files",t]})}})}function Zt(n,{delay:e=Bx,removeTimeoutErrorAfter:t,errorKey:s=Ut.API,trigger:a}){const u=n.queryKey.join(" -> "),d=Bf(),{addError:h}=hh(),[p,y]=N.useState(!1);let g,v=function(){console.log(`[REQUEST TIMEOUT] ${u} id: ${String(g)} timed out after ${e}ms`);const{removeError:q}=h(s,{message:"Request timed out",description:`Request ${u} with timeoutId: ${String(g)} timed out after ${e}ms`,timestamp:Date.now(),origin:"useQueryTimeout",trigger:a});y(!0),T(),sn(t)&&setTimeout(()=>q(),t)};function S(){console.log(`[CLEAR TIMEOUT] ${u} id: ${String(g)} at ${Date.now()}`),clearTimeout(g),g=void 0,v=void 0}function I(){g=setTimeout(()=>{v==null||v()},e),console.log(`[START TIMEOUT] ${u} id: ${String(g)} at ${Date.now()}`)}function T(){S(),d.cancelQueries({queryKey:n.queryKey}),console.log(`[REQUEST CANCELED] ${u} at ${Date.now()}`)}function A(Y){S(),Ca(Y)||Y.name==="AbortError"?console.log(`[REQUEST ABORTED] ${u} aborted by React Query at ${Date.now()}`):(console.log(`[REQUEST FAILED] ${u} failed at ${Date.now()}`),h(s,Y))}function M(){S(),console.log(`[REQUEST COMPLETED] ${u} completed at ${Date.now()}`)}async function K(...Y){return I(),n.queryFn(...Y)}const W=C_({cacheTime:0,enabled:!1,queryKey:n.queryKey,queryFn:K,meta:{...n.meta,onError:A,onSuccess:M}});return{...W,refetch:async(...Y)=>new Promise(q=>{W.refetch(...Y,{throwOnError:!0}).then(q).catch(ce=>ce)}),cancel:T,isTimeout:p}}class W0{constructor(e){wt(this,"_initial");wt(this,"isModel",!0);qt(e)?this._initial=Object.assign({id:ff()}):this._initial=sn(e==null?void 0:e.id)?e:new Proxy(Object.assign(e??{},{id:ff()}),{set(){throw new Error("Cannot change initial file")}})}get initial(){return this._initial}get id(){return this.initial.id}}class Yy extends W0{constructor(t=[]){super();wt(this,"modules",new Set);this.modules=new Set(t)}get list(){return Array.from(this.modules)}get isEmpty(){return this.modules.size===0}get hasErrors(){return this.modules.has(_r.errors)}get hasEditor(){return this.modules.has(_r.editor)}get hasFiles(){return this.modules.has(_r.files)}get hasProjectEditor(){return this.hasEditor&&this.hasFiles}get hasOnlyProjectEditor(){return this.modules.size===2&&this.hasProjectEditor}get hasOnlyDataCatalog(){return this.modules.size===1&&this.hasDataCatalog}get hasProjectEditorAndModule(){return this.modules.size===3&&this.hasProjectEditor&&Ui(this.hasErrors)}get hasDataCatalog(){return this.modules.has(_r["data-catalog"])}get hasPlans(){return this.modules.has(_r.plans)}get hasOnlyPlans(){return this.modules.size===1&&this.hasPlans}get hasOnlyPlansAndErrors(){return this.modules.size===2&&this.hasPlans&&this.hasErrors}get hasTests(){return this.modules.has(_r.tests)}get hasAudits(){return this.modules.has(_r.audits)}get hasData(){return this.modules.has(_r.data)}get hasLineage(){return this.modules.has(_r.lineage)}get hasModuleAndErrors(){return this.hasErrors&&(this.modules.size===2||this.modules.size===3&&this.hasProjectEditor)}get hasSingleModule(){return this.modules.size===1}get showModuleNavigation(){return this.isEmpty||this.hasSingleModule||this.hasOnlyProjectEditor||this.hasModuleAndErrors||this.hasOnlyDataCatalog?!1:this.hasProjectEditorAndModule?!0:Ui(this.isEmpty)}get showHistoryNavigation(){return this.hasOnlyProjectEditor||this.hasModuleAndErrors||this.hasOnlyDataCatalog?!1:this.hasProjectEditorAndModule||this.hasDataCatalog?!0:Ui(this.isEmpty)}get showNavigation(){return this.hasErrors||this.hasPlans||this.showHistoryNavigation}update(t=[]){this.modules=new Set(t)}defaultNavigationRoute(){return this.hasEditor?rt.Editor:this.hasPlans?rt.Plan:this.hasDataCatalog?rt.DataCatalog:rt.NotFound}}class Ux extends W0{constructor(t){super(t!=null&&t.isModel?t.initial:{...t,dialect:(t==null?void 0:t.dialect)??"Default",columns:(t==null?void 0:t.columns)??[],details:(t==null?void 0:t.details)??{}});wt(this,"_details",{});wt(this,"_detailsIndex","");wt(this,"name");wt(this,"fqn");wt(this,"path");wt(this,"full_path");wt(this,"dialect");wt(this,"type");wt(this,"columns");wt(this,"default_catalog");wt(this,"description");wt(this,"sql");wt(this,"definition");wt(this,"hash");this.name=encodeURI(this.initial.name),this.fqn=encodeURI(this.initial.fqn),this.default_catalog=this.initial.default_catalog,this.path=this.initial.path,this.full_path=this.initial.full_path,this.dialect=this.initial.dialect,this.description=this.initial.description,this.sql=this.initial.sql,this.definition=this.initial.definition,this.columns=this.initial.columns??[],this.type=this.initial.type,this.hash=this.initial.hash,this.details=this.initial.details??{}}get defaultCatalog(){return this.default_catalog}get details(){return this._details}set details(t){const s=[];for(const a of Object.values(t))nc(a)?a.forEach(u=>{s.push(...Object.values(u))}):s.push(a);this._details=t,this._detailsIndex=s.join(" ")}get index(){return[this.displayName,this.path,this.type,...this.columns.map(t=>Object.values(t)).flat(),this._detailsIndex,this.dialect,this.description].filter(Boolean).join(" ").toLowerCase()}get isModelPython(){return this.type===cu.python}get isModelSQL(){return this.type===cu.sql}get isModelSeed(){return this.type===cu.seed}get isModelExternal(){return this.type===cu.external}get displayName(){return decodeURI(this.name)}update(t={}){for(const[s,a]of Object.entries(t))s==="columns"?this.columns=a:s==="details"?this.details=a:s==="name"?this.name=encodeURI(a):s==="fqn"?this.fqn=encodeURI(a):s==="type"?this.type=a:s==="default_catalog"?this.default_catalog=a:s==="description"?this.description=a:s in this&&(this[s]=a)}}const jx={},Gy=n=>{let e;const t=new Set,s=(g,v)=>{const S=typeof g=="function"?g(e):g;if(!Object.is(S,e)){const I=e;e=v??(typeof S!="object"||S===null)?S:Object.assign({},e,S),t.forEach(T=>T(e,I))}},a=()=>e,p={setState:s,getState:a,getInitialState:()=>y,subscribe:g=>(t.add(g),()=>t.delete(g)),destroy:()=>{(jx?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}},y=e=n(s,a,p);return p},zx=n=>n?Gy(n):Gy;var cf={exports:{}},df={};/**
|
|
83
|
-
* @license React
|
|
84
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
85
|
-
*
|
|
86
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the MIT license found in the
|
|
89
|
-
* LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/var Jy;function Vx(){if(Jy)return df;Jy=1;var n=Ua(),e=xg();function t(y,g){return y===g&&(y!==0||1/y===1/g)||y!==y&&g!==g}var s=typeof Object.is=="function"?Object.is:t,a=e.useSyncExternalStore,u=n.useRef,d=n.useEffect,h=n.useMemo,p=n.useDebugValue;return df.useSyncExternalStoreWithSelector=function(y,g,v,S,I){var T=u(null);if(T.current===null){var A={hasValue:!1,value:null};T.current=A}else A=T.current;T=h(function(){function K(Z){if(!W){if(W=!0,Y=Z,Z=S(Z),I!==void 0&&A.hasValue){var x=A.value;if(I(x,Z))return q=x}return q=Z}if(x=q,s(Y,Z))return x;var V=S(Z);return I!==void 0&&I(x,V)?(Y=Z,x):(Y=Z,q=V)}var W=!1,Y,q,ce=v===void 0?null:v;return[function(){return K(g())},ce===null?void 0:function(){return K(ce())}]},[g,v,S,I]);var M=a(y,T[0],T[1]);return d(function(){A.hasValue=!0,A.value=M},[M]),p(M),M},df}var Xy;function $x(){return Xy||(Xy=1,cf.exports=Vx()),cf.exports}var Wx=$x();const Qx=tc(Wx),Q0={},{useDebugValue:Hx}=Do,{useSyncExternalStoreWithSelector:qx}=Qx;let Zy=!1;const Kx=n=>n;function Yx(n,e=Kx,t){(Q0?"production":void 0)!=="production"&&t&&!Zy&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Zy=!0);const s=qx(n.subscribe,n.getState,n.getServerState||n.getInitialState,e,t);return Hx(s),s}const eg=n=>{(Q0?"production":void 0)!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?zx(n):n,t=(s,a)=>Yx(e,s,a);return Object.assign(t,e),t},Gx=n=>n?eg(n):eg,ba={Empty:"",Prod:"prod"},Xr={Local:"local",Remote:"remote"},[tg,Jx]=fg("profile");class Xt{constructor(e,t,s=ba.Prod,a=!1,u=!1){wt(this,"_initial");wt(this,"_type");wt(this,"_createFrom");wt(this,"_isPinned",!1);wt(this,"_isDefault",!1);wt(this,"isModel",!0);this._initial=e,this._type=t??Xr.Local,this._createFrom=this._isDefault?ba.Empty:s,this._isPinned=a,this._isDefault=u}get id(){return this._initial.plan_id??""}get name(){return this._initial.name??ba.Empty}get type(){return this._type}get createFrom(){return this._createFrom}get isProd(){return this.name===ba.Prod}get isDefault(){return this._isDefault}set isDefault(e){this._isDefault=e}get isPinned(){return this._isPinned||this.isDefault||this.isProd}set isPinned(e){this._isPinned=e}get isInitial(){var e;return Da((e=this._initial)==null?void 0:e.plan_id)}get isLocal(){return this._type===Xr.Local}get isRemote(){return this._type===Xr.Remote}get isSyncronized(){return this.isRemote&&Ui(this.isInitial)}get isInitialProd(){return this.isInitial&&this.isProd}setType(e){this._type=e}setCreatedFrom(e){this._createFrom=e}update(e){this._initial=e}static save({environment:e,environments:t}){const s={};sn(e)&&(s.environment={name:e.name,plan_id:e.id,type:e.type,createFrom:e.createFrom,isPinned:e.isPinned,isDefault:e.isDefault}),sn(t)&&(s.environments=Xt.getOnlyLocal(t).map(a=>({name:a.name,plan_id:a.id,type:a.type,createFrom:a.createFrom,isPinned:a.isPinned,isDefault:a.isDefault}))),Jx(s)}static getOnlyLocal(e=[]){return e.filter(t=>Ui(Da(t.name))&&t.isLocal)}static getOnlyRemote(e=[]){return e.filter(t=>Ui(Da(t.name))&&t.isRemote)}static getEnvironment(){const{environment:e}=tg()??{};if(qt(e))return;const{name:t,plan_id:s,type:a,createFrom:u,isPinned:d,isDefault:h}=e;return new Xt({name:t,plan_id:s},a,u,d,h)}static getEnvironments(){const e=tg(),t=new Map;sn(e)&&sn(e.environment)&&t.set(e.environment.name,e.environment),sn(e)&&sn(e.environments)&&e.environments.forEach(a=>t.set(a.name,a));const s=[];return Array.from(t.entries()).forEach(([a,u])=>{s.push(new Xt({name:a,plan_id:u.plan_id},u.type,u.createFrom,u.isPinned,u.isDefault))}),cg(s)&&s.push(new Xt({name:ba.Prod},Xr.Local)),s}static sort(e){return e.sort(t=>t.isRemote?-1:1),e}}const ng="prod",H0=new Set(Xt.getEnvironments()),rg=Xt.getEnvironment()??H0.values().next().value,ig=Gx((n,e)=>({version:void 0,modules:new Yy,splitPaneSizes:[20,80],showConfirmation:!1,confirmations:[],environment:rg,environments:H0,initialStartDate:void 0,initialEndDate:void 0,models:new Map,lastSelectedModel:void 0,setLastSelectedModel(t){n(()=>({lastSelectedModel:t}))},setModules(t){n(()=>({modules:new Yy(t.list)}))},isModel(t){return e().models.has(t)},setSplitPaneSizes(t){n(()=>({splitPaneSizes:t}))},setVersion(t){n(()=>({version:t}))},setShowConfirmation(t){n(()=>({showConfirmation:t}))},addConfirmation(t){n(s=>(s.confirmations.push(t),{confirmations:Array.from(s.confirmations)}))},removeConfirmation(){const t=e();t.confirmations.shift(),n(()=>({confirmations:Array.from(t.confirmations)}))},setModels(t=[]){const s=e();n(()=>({models:t.reduce((a,u)=>{const d=new Ux(u);let h=s.models.get(d.path)??s.models.get(d.name)??s.models.get(d.fqn);return qt(h)?h=d:h.update(u),a.set(h.name,h),a.set(h.fqn,h),a.set(h.path,h),a},new Map)}))},getNextEnvironment(){return e().environments.values().next().value??rg},isExistingEnvironment(t){const s=e();if(t.isModel)return s.environments.has(t);let a=!1;return s.environments.forEach(u=>{u.name===t&&(a=!0)}),a},setEnvironment(t){n(()=>(Xt.save({environment:t}),{environment:t}))},addLocalEnvironment(t,s=ng){n(a=>{if(Da(t))return a;const u=new Xt({name:t},Xr.Local,s);return a.environments.add(u),a.setEnvironment(u),Xt.save({environments:Array.from(a.environments)}),{environments:new Set(a.environments)}})},removeLocalEnvironment(t){n(s=>(s.environments.delete(t),Xt.save({environments:Array.from(s.environments)}),{environments:new Set(s.environments)}))},addRemoteEnvironments(t=[],s,a=[]){n(u=>{const d=Array.from(u.environments);t.forEach(I=>{let T=d.find(({name:A})=>I.name===A);qt(T)?(T=new Xt(I,Xr.Remote),d.push(T)):(T.update(I),T.setType(Xr.Remote)),u.environment.name===I.name&&u.environment.update(I),T.isInitial&&T.isDefault&&u.setEnvironment(T)}),a.forEach(I=>{const T=d.find(({name:A})=>I===A);qt(T)?d.push(new Xt({name:I},Xr.Local,void 0,!0)):T.isPinned=!0});const h=Xt.getEnvironment();let p,y,g;d.forEach(I=>{switch(I.name){case ng:p=I;break;case(h==null?void 0:h.name):y=I;break;case s:I.isDefault=!0,g=I}});const v=u.environment??y??g,S=NS(p==null?void 0:p.isInitial)?p:v;return Xt.save({environments:d,environment:S}),Xt.sort(d),{environment:S,environments:new Set(d)}})},hasRemoteEnvironments(){const t=e();return Array.from(t.environments).some(({type:s})=>s===Xr.Remote)}}));function sg({children:n,className:e}){return B.jsx("div",{className:Tr("flex justify-center items-center w-full h-full",e),children:B.jsxs(ro,{className:"inline-block",children:[B.jsx(ms,{className:"w-3 h-3 border border-neutral-10 mr-4"}),B.jsx("h3",{className:"text-md",children:n})]})})}const q0=!!(window.__IS_HEADLESS__??!1),og=q0?void 0:N.lazy(()=>an(()=>import("./Header-BVwdhMQQ.js"),[])),ag=q0?void 0:N.lazy(()=>an(()=>import("./Footer-D4ok48Gm.js"),[]));function Xx(){const{addError:n}=hh(),e=ig(h=>h.modules),t=ig(h=>h.setModules),{refetch:s,cancel:a,isFetching:u}=kx();N.useEffect(()=>(s().then(({data:h})=>{e.update(h),t(e)}).catch(h=>n(Ut.Modules,h)),()=>{a()}),[]);const d=Nx(e);return B.jsxs(B.Fragment,{children:[sn(og)&&B.jsxs(B.Fragment,{children:[B.jsx(og,{}),B.jsx(Dy,{})]}),B.jsx("main",{className:"h-full overflow-hidden relative",children:u?B.jsx(sg,{className:"absolute w-full h-full bg-theme z-10",children:"Building Modules..."}):B.jsx(N.Suspense,{fallback:B.jsx(sg,{children:"Loading Page..."}),children:nc(e.list)?B.jsx(ab,{router:d}):B.jsx(pn,{description:"No Modules Found"})})}),sn(ag)&&B.jsxs(B.Fragment,{children:[B.jsx(Dy,{}),B.jsx(ag,{})]})]})}const Zx=new s_({queryCache:new bg({onError(n,e){e.meta.onError(n)},onSuccess(n,e){e.meta.onSuccess()}}),defaultOptions:{queries:{networkMode:"always",refetchOnWindowFocus:!1,retry:!1,staleTime:1/0}}});QS.createRoot(eD()).render(B.jsx(Do.StrictMode,{children:B.jsx(p_,{client:Zx,children:B.jsx(US,{children:B.jsx(Lx,{children:B.jsx(Xx,{})})})})}));function eD(){const n="root";let e=document.getElementById(n);if(sn(e))return e;const t=document.body,s=t.children[0];return e=document.createElement("div"),e.id=n,e.className="h-full w-full flex flex-col justify-start",s instanceof HTMLElement?t.insertBefore(e,s):t.appendChild(e),e}export{jD as $,WD as A,ID as B,LD as C,rD as D,no as E,cg as F,Ut as G,Yg as H,Dy as I,Da as J,ND as K,ro as L,Xt as M,wD as N,vD as O,dD as P,uD as Q,Do as R,ms as S,bb as T,gD as U,pn as V,mD as W,sD as X,Gg as Y,bD as Z,an as _,ig as a,W0 as a0,Gx as a1,tc as a2,ug as a3,$D as a4,lD as a5,ZD as a6,tC as a7,sg as a8,pD as a9,fg as aA,ff as aB,_D as aC,HD as aD,iD as aa,LS as ab,Eg as ac,c_ as ad,ED as ae,Cy as af,xD as ag,kD as ah,px as ai,BD as aj,UD as ak,eC as al,XD as am,cx as an,nD as ao,zx as ap,Qx as aq,hD as ar,SD as as,Bf as at,QD as au,nC as av,fD as aw,oD as ax,qD as ay,cu as az,Ui as b,Tr as c,hh as d,rt as e,PS as f,NS as g,nc as h,sn as i,B as j,KD as k,GD as l,Rt as m,it as n,aD as o,JD as p,YD as q,N as r,cD as s,R1 as t,yD as u,VD as v,qt as w,z0 as x,$a as y,zD as z};
|