quantcore-circuits 0.0.1__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.
- quantcore_circuits/__init__.py +57 -0
- quantcore_circuits/analysis/__init__.py +12 -0
- quantcore_circuits/analysis/_metal.py +70 -0
- quantcore_circuits/analysis/amplifiers.py +263 -0
- quantcore_circuits/analysis/circuits.py +117 -0
- quantcore_circuits/analysis/epr.py +231 -0
- quantcore_circuits/analysis/epr_lumped.py +372 -0
- quantcore_circuits/analysis/extract.py +119 -0
- quantcore_circuits/analysis/lom.py +80 -0
- quantcore_circuits/analysis/results.py +549 -0
- quantcore_circuits/analysis/store.py +81 -0
- quantcore_circuits/analysis/synthesis.py +118 -0
- quantcore_circuits/analysis/transmon.py +126 -0
- quantcore_circuits/assembly/__init__.py +17 -0
- quantcore_circuits/assembly/builder.py +127 -0
- quantcore_circuits/assembly/drc.py +683 -0
- quantcore_circuits/assembly/last_good.py +137 -0
- quantcore_circuits/assembly/netlist.py +174 -0
- quantcore_circuits/assembly/plan.py +605 -0
- quantcore_circuits/assembly/sidecar.py +270 -0
- quantcore_circuits/autotrack.py +605 -0
- quantcore_circuits/cards.py +878 -0
- quantcore_circuits/circuit/__init__.py +14 -0
- quantcore_circuits/circuit/adapters.py +305 -0
- quantcore_circuits/circuit/bridges.py +353 -0
- quantcore_circuits/circuit/consensus.py +158 -0
- quantcore_circuits/circuit/derive.py +28 -0
- quantcore_circuits/circuit/draw.py +198 -0
- quantcore_circuits/circuit/fill.py +828 -0
- quantcore_circuits/circuit/hamiltonian.py +193 -0
- quantcore_circuits/circuit/kinetic.py +102 -0
- quantcore_circuits/circuit/schema.py +139 -0
- quantcore_circuits/cli.py +1085 -0
- quantcore_circuits/codesign.py +1038 -0
- quantcore_circuits/data/selftest_q1_r1.json +44 -0
- quantcore_circuits/design/__init__.py +44 -0
- quantcore_circuits/design/io.py +98 -0
- quantcore_circuits/design/pyscript.py +395 -0
- quantcore_circuits/design/schema.py +398 -0
- quantcore_circuits/designer.py +625 -0
- quantcore_circuits/guiflow.py +991 -0
- quantcore_circuits/kqc_files.py +208 -0
- quantcore_circuits/layouts/__init__.py +118 -0
- quantcore_circuits/layouts/catalog.py +520 -0
- quantcore_circuits/layouts/chips/__init__.py +0 -0
- quantcore_circuits/layouts/chips/design_chip.py +325 -0
- quantcore_circuits/layouts/chips/frame.py +235 -0
- quantcore_circuits/layouts/junctions/__init__.py +0 -0
- quantcore_circuits/layouts/junctions/jj_fingers.py +99 -0
- quantcore_circuits/layouts/junctions/legacy_junctions.py +237 -0
- quantcore_circuits/layouts/junctions/sim_gap.py +48 -0
- quantcore_circuits/layouts/junctions/trilayer.py +541 -0
- quantcore_circuits/layouts/metal/__init__.py +105 -0
- quantcore_circuits/layouts/metal/component.py +332 -0
- quantcore_circuits/layouts/metal/geometry.py +462 -0
- quantcore_circuits/layouts/others/__init__.py +0 -0
- quantcore_circuits/layouts/others/amplifiers.py +1139 -0
- quantcore_circuits/layouts/others/bond_pad.py +119 -0
- quantcore_circuits/layouts/others/connector_pads.py +190 -0
- quantcore_circuits/layouts/others/couplers.py +21 -0
- quantcore_circuits/layouts/others/cpw_segment.py +131 -0
- quantcore_circuits/layouts/others/cpwe.py +661 -0
- quantcore_circuits/layouts/others/keepout.py +66 -0
- quantcore_circuits/layouts/others/legacy_resonators.py +645 -0
- quantcore_circuits/layouts/others/markers.py +201 -0
- quantcore_circuits/layouts/others/qpdk_cells.py +263 -0
- quantcore_circuits/layouts/others/shapes.py +114 -0
- quantcore_circuits/layouts/others/spirals.py +140 -0
- quantcore_circuits/layouts/others/sqdmetal_cells.py +90 -0
- quantcore_circuits/layouts/others/test_pads.py +461 -0
- quantcore_circuits/layouts/ports.py +119 -0
- quantcore_circuits/layouts/qubits/__init__.py +0 -0
- quantcore_circuits/layouts/qubits/legacy_transmon.py +124 -0
- quantcore_circuits/layouts/qubits/qpdk_cells.py +374 -0
- quantcore_circuits/layouts/qubits/sqdmetal_cells.py +376 -0
- quantcore_circuits/layouts/qubits/trilayer_concentric.py +65 -0
- quantcore_circuits/layouts/qubits/xmon.py +375 -0
- quantcore_circuits/layouts/registry.py +418 -0
- quantcore_circuits/layouts/wafers/__init__.py +0 -0
- quantcore_circuits/layouts/wafers/fab_export.py +454 -0
- quantcore_circuits/layouts/wafers/legacy_wafer.py +111 -0
- quantcore_circuits/layouts/wafers/wafer.py +469 -0
- quantcore_circuits/live/__init__.py +6 -0
- quantcore_circuits/live/klayout.py +225 -0
- quantcore_circuits/live/klive.py +61 -0
- quantcore_circuits/live/snapshot.py +185 -0
- quantcore_circuits/live/watch.py +93 -0
- quantcore_circuits/lom/__init__.py +15 -0
- quantcore_circuits/lom/builder.py +932 -0
- quantcore_circuits/lom/calibration.py +82 -0
- quantcore_circuits/lom/estimates.py +235 -0
- quantcore_circuits/lom/fragment.py +421 -0
- quantcore_circuits/lom/kqc_models.py +734 -0
- quantcore_circuits/lom/metal_models.py +917 -0
- quantcore_circuits/lom/quantcore_models.py +784 -0
- quantcore_circuits/lom/simulate.py +636 -0
- quantcore_circuits/lom/synthesize.py +189 -0
- quantcore_circuits/loop.py +610 -0
- quantcore_circuits/optimise.py +423 -0
- quantcore_circuits/pdk/__init__.py +451 -0
- quantcore_circuits/plots.py +876 -0
- quantcore_circuits/plugins.py +69 -0
- quantcore_circuits/review/__init__.py +57 -0
- quantcore_circuits/review/server.py +251 -0
- quantcore_circuits/review/static/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- quantcore_circuits/review/static/assets/index-CDHdrFyA.css +1 -0
- quantcore_circuits/review/static/assets/index-CSx05Og4.js +409 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-500-normal-BasfLYem.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-500-normal-CxZf_p3X.woff +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-600-normal-4D_pXhcN.woff +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-600-normal-CWCymEST.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-700-normal-CjBOestx.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-700-normal-DrXBdSj3.woff +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-600-normal-Bcila6Z-.woff +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-600-normal-Dfes3d0z.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-700-normal-BjwYoWNd.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-700-normal-LO58E6JB.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-500-normal-BIZE56-Y.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-greek-500-normal-Xzm54t5V.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-600-normal-BZpKdvQh.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-600-normal-plRanbMR.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-greek-700-normal-BUv2fZ6O.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-700-normal-C3JjAnD8.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-500-normal-2j5mBUwD.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-500-normal-C4iEst2y.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-600-normal-B8X0CLgF.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-600-normal-DRtmH8MT.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-700-normal-BoQ6DsYi.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-700-normal-qfdV9bQt.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
- quantcore_circuits/review/static/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
- quantcore_circuits/review/static/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-600-normal-CiBQ2DWP.woff +0 -0
- quantcore_circuits/review/static/assets/inter-latin-600-normal-LgqL8muc.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-700-normal-BLAVimhd.woff +0 -0
- quantcore_circuits/review/static/assets/inter-latin-700-normal-Yt3aPRUw.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-500-normal-BxGbmqWO.woff +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-600-normal-CIVaiw4L.woff +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-600-normal-D2bJ5OIk.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-700-normal-Ca8adRJv.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-700-normal-TidjK2hL.woff +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-500-normal-mJboJaSs.woff +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-600-normal-BuLX-rYi.woff +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-700-normal-BZaoP0fm.woff +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-700-normal-DlLaEgI2.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-cyrillic-500-normal-DJqRU3vO.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-cyrillic-500-normal-DmUKJPL_.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-greek-500-normal-D7SFKleX.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-greek-500-normal-JpySY46c.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-ext-500-normal-ckzbgY84.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-vietnamese-500-normal-DNRqzVM1.woff +0 -0
- quantcore_circuits/review/static/index.html +14 -0
- quantcore_circuits/review/static/logo-quantcore-black.png +0 -0
- quantcore_circuits/review/static/logo-quantcore-white.png +0 -0
- quantcore_circuits/review/static/sample/chip.png +0 -0
- quantcore_circuits/review/static/sample/chip_rev1.png +0 -0
- quantcore_circuits/review/static/sample/q1.png +0 -0
- quantcore_circuits/review/static/sample/q2.png +0 -0
- quantcore_circuits/review/static/sample-state.json +3747 -0
- quantcore_circuits/route/__init__.py +5 -0
- quantcore_circuits/route/router.py +694 -0
- quantcore_circuits/route/waveguide.py +187 -0
- quantcore_circuits/selftest.py +224 -0
- quantcore_circuits/sim_tools/__init__.py +6 -0
- quantcore_circuits/sim_tools/aedt_attach.py +66 -0
- quantcore_circuits/sim_tools/aedt_progress.py +224 -0
- quantcore_circuits/sim_tools/aedt_project.py +302 -0
- quantcore_circuits/sim_tools/aedt_scripts.py +397 -0
- quantcore_circuits/sim_tools/aedt_session.py +275 -0
- quantcore_circuits/sim_tools/ansys.py +90 -0
- quantcore_circuits/sim_tools/builder.py +1690 -0
- quantcore_circuits/sim_tools/export.py +470 -0
- quantcore_circuits/sim_tools/geometry_check.py +342 -0
- quantcore_circuits/sim_tools/hfss.py +583 -0
- quantcore_circuits/sim_tools/palace.py +197 -0
- quantcore_circuits/sim_tools/runner.py +179 -0
- quantcore_circuits/sim_tools/subset.py +364 -0
- quantcore_circuits/track.py +671 -0
- quantcore_circuits-0.0.1.dist-info/METADATA +204 -0
- quantcore_circuits-0.0.1.dist-info/RECORD +272 -0
- quantcore_circuits-0.0.1.dist-info/WHEEL +5 -0
- quantcore_circuits-0.0.1.dist-info/entry_points.txt +2 -0
- quantcore_circuits-0.0.1.dist-info/licenses/LICENSE +674 -0
- quantcore_circuits-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
var NN=Object.defineProperty;var MN=(e,t,r)=>t in e?NN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var i0=(e,t,r)=>MN(e,typeof t!="symbol"?t+"":t,r);function TN(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function Bg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bw={exports:{}},hh={},Fw={exports:{}},Se={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Ac=Symbol.for("react.element"),IN=Symbol.for("react.portal"),_N=Symbol.for("react.fragment"),DN=Symbol.for("react.strict_mode"),zN=Symbol.for("react.profiler"),RN=Symbol.for("react.provider"),LN=Symbol.for("react.context"),$N=Symbol.for("react.forward_ref"),BN=Symbol.for("react.suspense"),FN=Symbol.for("react.memo"),HN=Symbol.for("react.lazy"),kx=Symbol.iterator;function WN(e){return e===null||typeof e!="object"?null:(e=kx&&e[kx]||e["@@iterator"],typeof e=="function"?e:null)}var Hw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ww=Object.assign,Uw={};function ks(e,t,r){this.props=e,this.context=t,this.refs=Uw,this.updater=r||Hw}ks.prototype.isReactComponent={};ks.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ks.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qw(){}qw.prototype=ks.prototype;function Fg(e,t,r){this.props=e,this.context=t,this.refs=Uw,this.updater=r||Hw}var Hg=Fg.prototype=new qw;Hg.constructor=Fg;Ww(Hg,ks.prototype);Hg.isPureReactComponent=!0;var Ax=Array.isArray,Vw=Object.prototype.hasOwnProperty,Wg={current:null},Kw={key:!0,ref:!0,__self:!0,__source:!0};function Gw(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)Vw.call(t,n)&&!Kw.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)i[n]===void 0&&(i[n]=l[n]);return{$$typeof:Ac,type:e,key:a,ref:o,props:i,_owner:Wg.current}}function UN(e,t){return{$$typeof:Ac,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ug(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ac}function qN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Px=/\/+/g;function Ym(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qN(""+e.key):t.toString(36)}function nf(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Ac:case IN:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+Ym(o,0):n,Ax(i)?(r="",e!=null&&(r=e.replace(Px,"$&/")+"/"),nf(i,t,r,"",function(u){return u})):i!=null&&(Ug(i)&&(i=UN(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Px,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Ax(e))for(var l=0;l<e.length;l++){a=e[l];var s=n+Ym(a,l);o+=nf(a,t,r,s,i)}else if(s=WN(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=n+Ym(a,l++),o+=nf(a,t,r,s,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function a0(e,t,r){if(e==null)return e;var n=[],i=0;return nf(e,n,"","",function(a){return t.call(r,a,i++)}),n}function VN(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var vr={current:null},af={transition:null},KN={ReactCurrentDispatcher:vr,ReactCurrentBatchConfig:af,ReactCurrentOwner:Wg};function Yw(){throw Error("act(...) is not supported in production builds of React.")}Se.Children={map:a0,forEach:function(e,t,r){a0(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return a0(e,function(){t++}),t},toArray:function(e){return a0(e,function(t){return t})||[]},only:function(e){if(!Ug(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Se.Component=ks;Se.Fragment=_N;Se.Profiler=zN;Se.PureComponent=Fg;Se.StrictMode=DN;Se.Suspense=BN;Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=KN;Se.act=Yw;Se.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Ww({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=Wg.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Vw.call(t,s)&&!Kw.hasOwnProperty(s)&&(n[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];n.children=l}return{$$typeof:Ac,type:e.type,key:i,ref:a,props:n,_owner:o}};Se.createContext=function(e){return e={$$typeof:LN,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:RN,_context:e},e.Consumer=e};Se.createElement=Gw;Se.createFactory=function(e){var t=Gw.bind(null,e);return t.type=e,t};Se.createRef=function(){return{current:null}};Se.forwardRef=function(e){return{$$typeof:$N,render:e}};Se.isValidElement=Ug;Se.lazy=function(e){return{$$typeof:HN,_payload:{_status:-1,_result:e},_init:VN}};Se.memo=function(e,t){return{$$typeof:FN,type:e,compare:t===void 0?null:t}};Se.startTransition=function(e){var t=af.transition;af.transition={};try{e()}finally{af.transition=t}};Se.unstable_act=Yw;Se.useCallback=function(e,t){return vr.current.useCallback(e,t)};Se.useContext=function(e){return vr.current.useContext(e)};Se.useDebugValue=function(){};Se.useDeferredValue=function(e){return vr.current.useDeferredValue(e)};Se.useEffect=function(e,t){return vr.current.useEffect(e,t)};Se.useId=function(){return vr.current.useId()};Se.useImperativeHandle=function(e,t,r){return vr.current.useImperativeHandle(e,t,r)};Se.useInsertionEffect=function(e,t){return vr.current.useInsertionEffect(e,t)};Se.useLayoutEffect=function(e,t){return vr.current.useLayoutEffect(e,t)};Se.useMemo=function(e,t){return vr.current.useMemo(e,t)};Se.useReducer=function(e,t,r){return vr.current.useReducer(e,t,r)};Se.useRef=function(e){return vr.current.useRef(e)};Se.useState=function(e){return vr.current.useState(e)};Se.useSyncExternalStore=function(e,t,r){return vr.current.useSyncExternalStore(e,t,r)};Se.useTransition=function(){return vr.current.useTransition()};Se.version="18.3.1";Fw.exports=Se;var p=Fw.exports;const bi=Bg(p),qg=TN({__proto__:null,default:bi},[p]);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var GN=p,YN=Symbol.for("react.element"),XN=Symbol.for("react.fragment"),ZN=Object.prototype.hasOwnProperty,QN=GN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,JN={key:!0,ref:!0,__self:!0,__source:!0};function Xw(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)ZN.call(t,n)&&!JN.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:YN,type:e,key:a,ref:o,props:i,_owner:QN.current}}hh.Fragment=XN;hh.jsx=Xw;hh.jsxs=Xw;Bw.exports=hh;var h=Bw.exports,Pv={},Zw={exports:{}},Gr={},Qw={exports:{}},Jw={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(B,W){var K=B.length;B.push(W);e:for(;0<K;){var le=K-1>>>1,fe=B[le];if(0<i(fe,W))B[le]=W,B[K]=fe,K=le;else break e}}function r(B){return B.length===0?null:B[0]}function n(B){if(B.length===0)return null;var W=B[0],K=B.pop();if(K!==W){B[0]=K;e:for(var le=0,fe=B.length,He=fe>>>1;le<He;){var Ie=2*(le+1)-1,lt=B[Ie],zt=Ie+1,xt=B[zt];if(0>i(lt,K))zt<fe&&0>i(xt,lt)?(B[le]=xt,B[zt]=K,le=zt):(B[le]=lt,B[Ie]=K,le=Ie);else if(zt<fe&&0>i(xt,K))B[le]=xt,B[zt]=K,le=zt;else break e}}return W}function i(B,W){var K=B.sortIndex-W.sortIndex;return K!==0?K:B.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],c=1,f=null,d=3,m=!1,g=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,y=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 S(B){for(var W=r(u);W!==null;){if(W.callback===null)n(u);else if(W.startTime<=B)n(u),W.sortIndex=W.expirationTime,t(s,W);else break;W=r(u)}}function A(B){if(v=!1,S(B),!g)if(r(s)!==null)g=!0,X(P);else{var W=r(u);W!==null&&re(A,W.startTime-B)}}function P(B,W){g=!1,v&&(v=!1,y(N),N=-1),m=!0;var K=d;try{for(S(W),f=r(s);f!==null&&(!(f.expirationTime>W)||B&&!R());){var le=f.callback;if(typeof le=="function"){f.callback=null,d=f.priorityLevel;var fe=le(f.expirationTime<=W);W=e.unstable_now(),typeof fe=="function"?f.callback=fe:f===r(s)&&n(s),S(W)}else n(s);f=r(s)}if(f!==null)var He=!0;else{var Ie=r(u);Ie!==null&&re(A,Ie.startTime-W),He=!1}return He}finally{f=null,d=K,m=!1}}var O=!1,j=null,N=-1,_=5,z=-1;function R(){return!(e.unstable_now()-z<_)}function I(){if(j!==null){var B=e.unstable_now();z=B;var W=!0;try{W=j(!0,B)}finally{W?F():(O=!1,j=null)}}else O=!1}var F;if(typeof w=="function")F=function(){w(I)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,Z=H.port2;H.port1.onmessage=I,F=function(){Z.postMessage(null)}}else F=function(){x(I,0)};function X(B){j=B,O||(O=!0,F())}function re(B,W){N=x(function(){B(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_continueExecution=function(){g||m||(g=!0,X(P))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(s)},e.unstable_next=function(B){switch(d){case 1:case 2:case 3:var W=3;break;default:W=d}var K=d;d=W;try{return B()}finally{d=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,W){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var K=d;d=B;try{return W()}finally{d=K}},e.unstable_scheduleCallback=function(B,W,K){var le=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?le+K:le):K=le,B){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=K+fe,B={id:c++,callback:W,priorityLevel:B,startTime:K,expirationTime:fe,sortIndex:-1},K>le?(B.sortIndex=K,t(u,B),r(s)===null&&B===r(u)&&(v?(y(N),N=-1):v=!0,re(A,K-le))):(B.sortIndex=fe,t(s,B),g||m||(g=!0,X(P))),B},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(B){var W=d;return function(){var K=d;d=W;try{return B.apply(this,arguments)}finally{d=K}}}})(Jw);Qw.exports=Jw;var eM=Qw.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var tM=p,Ur=eM;function Y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var e8=new Set,zu={};function Xo(e,t){ts(e,t),ts(e+"Capture",t)}function ts(e,t){for(zu[e]=t,e=0;e<t.length;e++)e8.add(t[e])}var Bi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ev=Object.prototype.hasOwnProperty,rM=/^[: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]*$/,Ex={},Ox={};function nM(e){return Ev.call(Ox,e)?!0:Ev.call(Ex,e)?!1:rM.test(e)?Ox[e]=!0:(Ex[e]=!0,!1)}function iM(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function aM(e,t,r,n){if(t===null||typeof t>"u"||iM(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function gr(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Zt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Zt[e]=new gr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Zt[t]=new gr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Zt[e]=new gr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Zt[e]=new gr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Zt[e]=new gr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Zt[e]=new gr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Zt[e]=new gr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Zt[e]=new gr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Zt[e]=new gr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vg=/[\-:]([a-z])/g;function Kg(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Vg,Kg);Zt[t]=new gr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Vg,Kg);Zt[t]=new gr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Vg,Kg);Zt[t]=new gr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Zt[e]=new gr(e,1,!1,e.toLowerCase(),null,!1,!1)});Zt.xlinkHref=new gr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Zt[e]=new gr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gg(e,t,r,n){var i=Zt.hasOwnProperty(t)?Zt[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(aM(t,r,i,n)&&(r=null),n||i===null?nM(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var ea=tM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,o0=Symbol.for("react.element"),kl=Symbol.for("react.portal"),Al=Symbol.for("react.fragment"),Yg=Symbol.for("react.strict_mode"),Ov=Symbol.for("react.profiler"),t8=Symbol.for("react.provider"),r8=Symbol.for("react.context"),Xg=Symbol.for("react.forward_ref"),Cv=Symbol.for("react.suspense"),jv=Symbol.for("react.suspense_list"),Zg=Symbol.for("react.memo"),pa=Symbol.for("react.lazy"),n8=Symbol.for("react.offscreen"),Cx=Symbol.iterator;function Vs(e){return e===null||typeof e!="object"?null:(e=Cx&&e[Cx]||e["@@iterator"],typeof e=="function"?e:null)}var ot=Object.assign,Xm;function mu(e){if(Xm===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Xm=t&&t[1]||""}return`
|
|
34
|
+
`+Xm+e}var Zm=!1;function Qm(e,t){if(!e||Zm)return"";Zm=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
+
`),a=n.stack.split(`
|
|
36
|
+
`),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==a[l]){var s=`
|
|
37
|
+
`+i[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{Zm=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?mu(e):""}function oM(e){switch(e.tag){case 5:return mu(e.type);case 16:return mu("Lazy");case 13:return mu("Suspense");case 19:return mu("SuspenseList");case 0:case 2:case 15:return e=Qm(e.type,!1),e;case 11:return e=Qm(e.type.render,!1),e;case 1:return e=Qm(e.type,!0),e;default:return""}}function Nv(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Al:return"Fragment";case kl:return"Portal";case Ov:return"Profiler";case Yg:return"StrictMode";case Cv:return"Suspense";case jv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case r8:return(e.displayName||"Context")+".Consumer";case t8:return(e._context.displayName||"Context")+".Provider";case Xg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zg:return t=e.displayName||null,t!==null?t:Nv(e.type)||"Memo";case pa:t=e._payload,e=e._init;try{return Nv(e(t))}catch{}}return null}function lM(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nv(t);case 8:return t===Yg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function La(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function i8(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sM(e){var t=i8(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function l0(e){e._valueTracker||(e._valueTracker=sM(e))}function a8(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=i8(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Of(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Mv(e,t){var r=t.checked;return ot({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function jx(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=La(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function o8(e,t){t=t.checked,t!=null&&Gg(e,"checked",t,!1)}function Tv(e,t){o8(e,t);var r=La(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Iv(e,t.type,r):t.hasOwnProperty("defaultValue")&&Iv(e,t.type,La(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Nx(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Iv(e,t,r){(t!=="number"||Of(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var pu=Array.isArray;function Ll(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+La(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function _v(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Y(91));return ot({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Mx(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Y(92));if(pu(r)){if(1<r.length)throw Error(Y(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:La(r)}}function l8(e,t){var r=La(t.value),n=La(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Tx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function s8(e){switch(e){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 Dv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?s8(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var s0,u8=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(s0=s0||document.createElement("div"),s0.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=s0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ru(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Su={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},uM=["Webkit","ms","Moz","O"];Object.keys(Su).forEach(function(e){uM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Su[t]=Su[e]})});function c8(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Su.hasOwnProperty(e)&&Su[e]?(""+t).trim():t+"px"}function f8(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=c8(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var cM=ot({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 zv(e,t){if(t){if(cM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Y(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Y(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Y(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Y(62))}}function Rv(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lv=null;function Qg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $v=null,$l=null,Bl=null;function Ix(e){if(e=Oc(e)){if(typeof $v!="function")throw Error(Y(280));var t=e.stateNode;t&&(t=yh(t),$v(e.stateNode,e.type,t))}}function d8(e){$l?Bl?Bl.push(e):Bl=[e]:$l=e}function h8(){if($l){var e=$l,t=Bl;if(Bl=$l=null,Ix(e),t)for(e=0;e<t.length;e++)Ix(t[e])}}function m8(e,t){return e(t)}function p8(){}var Jm=!1;function v8(e,t,r){if(Jm)return e(t,r);Jm=!0;try{return m8(e,t,r)}finally{Jm=!1,($l!==null||Bl!==null)&&(p8(),h8())}}function Lu(e,t){var r=e.stateNode;if(r===null)return null;var n=yh(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(Y(231,t,typeof r));return r}var Bv=!1;if(Bi)try{var Ks={};Object.defineProperty(Ks,"passive",{get:function(){Bv=!0}}),window.addEventListener("test",Ks,Ks),window.removeEventListener("test",Ks,Ks)}catch{Bv=!1}function fM(e,t,r,n,i,a,o,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var ku=!1,Cf=null,jf=!1,Fv=null,dM={onError:function(e){ku=!0,Cf=e}};function hM(e,t,r,n,i,a,o,l,s){ku=!1,Cf=null,fM.apply(dM,arguments)}function mM(e,t,r,n,i,a,o,l,s){if(hM.apply(this,arguments),ku){if(ku){var u=Cf;ku=!1,Cf=null}else throw Error(Y(198));jf||(jf=!0,Fv=u)}}function Zo(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function g8(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _x(e){if(Zo(e)!==e)throw Error(Y(188))}function pM(e){var t=e.alternate;if(!t){if(t=Zo(e),t===null)throw Error(Y(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return _x(i),e;if(a===n)return _x(i),t;a=a.sibling}throw Error(Y(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,l=i.child;l;){if(l===r){o=!0,r=i,n=a;break}if(l===n){o=!0,n=i,r=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===r){o=!0,r=a,n=i;break}if(l===n){o=!0,n=a,r=i;break}l=l.sibling}if(!o)throw Error(Y(189))}}if(r.alternate!==n)throw Error(Y(190))}if(r.tag!==3)throw Error(Y(188));return r.stateNode.current===r?e:t}function y8(e){return e=pM(e),e!==null?x8(e):null}function x8(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=x8(e);if(t!==null)return t;e=e.sibling}return null}var b8=Ur.unstable_scheduleCallback,Dx=Ur.unstable_cancelCallback,vM=Ur.unstable_shouldYield,gM=Ur.unstable_requestPaint,vt=Ur.unstable_now,yM=Ur.unstable_getCurrentPriorityLevel,Jg=Ur.unstable_ImmediatePriority,w8=Ur.unstable_UserBlockingPriority,Nf=Ur.unstable_NormalPriority,xM=Ur.unstable_LowPriority,S8=Ur.unstable_IdlePriority,mh=null,Qn=null;function bM(e){if(Qn&&typeof Qn.onCommitFiberRoot=="function")try{Qn.onCommitFiberRoot(mh,e,void 0,(e.current.flags&128)===128)}catch{}}var On=Math.clz32?Math.clz32:kM,wM=Math.log,SM=Math.LN2;function kM(e){return e>>>=0,e===0?32:31-(wM(e)/SM|0)|0}var u0=64,c0=4194304;function vu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mf(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var l=o&~i;l!==0?n=vu(l):(a&=o,a!==0&&(n=vu(a)))}else o=r&~i,o!==0?n=vu(o):a!==0&&(n=vu(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-On(t),i=1<<r,n|=e[r],t&=~i;return n}function AM(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 PM(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-On(a),l=1<<o,s=i[o];s===-1?(!(l&r)||l&n)&&(i[o]=AM(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}function Hv(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function k8(){var e=u0;return u0<<=1,!(u0&4194240)&&(u0=64),e}function ep(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Pc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-On(t),e[t]=r}function EM(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-On(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function ey(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-On(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Ne=0;function A8(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var P8,ty,E8,O8,C8,Wv=!1,f0=[],Ea=null,Oa=null,Ca=null,$u=new Map,Bu=new Map,xa=[],OM="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 zx(e,t){switch(e){case"focusin":case"focusout":Ea=null;break;case"dragenter":case"dragleave":Oa=null;break;case"mouseover":case"mouseout":Ca=null;break;case"pointerover":case"pointerout":$u.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bu.delete(t.pointerId)}}function Gs(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Oc(t),t!==null&&ty(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function CM(e,t,r,n,i){switch(t){case"focusin":return Ea=Gs(Ea,e,t,r,n,i),!0;case"dragenter":return Oa=Gs(Oa,e,t,r,n,i),!0;case"mouseover":return Ca=Gs(Ca,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return $u.set(a,Gs($u.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Bu.set(a,Gs(Bu.get(a)||null,e,t,r,n,i)),!0}return!1}function j8(e){var t=mo(e.target);if(t!==null){var r=Zo(t);if(r!==null){if(t=r.tag,t===13){if(t=g8(r),t!==null){e.blockedOn=t,C8(e.priority,function(){E8(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function of(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Uv(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Lv=n,r.target.dispatchEvent(n),Lv=null}else return t=Oc(r),t!==null&&ty(t),e.blockedOn=r,!1;t.shift()}return!0}function Rx(e,t,r){of(e)&&r.delete(t)}function jM(){Wv=!1,Ea!==null&&of(Ea)&&(Ea=null),Oa!==null&&of(Oa)&&(Oa=null),Ca!==null&&of(Ca)&&(Ca=null),$u.forEach(Rx),Bu.forEach(Rx)}function Ys(e,t){e.blockedOn===t&&(e.blockedOn=null,Wv||(Wv=!0,Ur.unstable_scheduleCallback(Ur.unstable_NormalPriority,jM)))}function Fu(e){function t(i){return Ys(i,e)}if(0<f0.length){Ys(f0[0],e);for(var r=1;r<f0.length;r++){var n=f0[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Ea!==null&&Ys(Ea,e),Oa!==null&&Ys(Oa,e),Ca!==null&&Ys(Ca,e),$u.forEach(t),Bu.forEach(t),r=0;r<xa.length;r++)n=xa[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<xa.length&&(r=xa[0],r.blockedOn===null);)j8(r),r.blockedOn===null&&xa.shift()}var Fl=ea.ReactCurrentBatchConfig,Tf=!0;function NM(e,t,r,n){var i=Ne,a=Fl.transition;Fl.transition=null;try{Ne=1,ry(e,t,r,n)}finally{Ne=i,Fl.transition=a}}function MM(e,t,r,n){var i=Ne,a=Fl.transition;Fl.transition=null;try{Ne=4,ry(e,t,r,n)}finally{Ne=i,Fl.transition=a}}function ry(e,t,r,n){if(Tf){var i=Uv(e,t,r,n);if(i===null)cp(e,t,n,If,r),zx(e,n);else if(CM(i,e,t,r,n))n.stopPropagation();else if(zx(e,n),t&4&&-1<OM.indexOf(e)){for(;i!==null;){var a=Oc(i);if(a!==null&&P8(a),a=Uv(e,t,r,n),a===null&&cp(e,t,n,If,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else cp(e,t,n,null,r)}}var If=null;function Uv(e,t,r,n){if(If=null,e=Qg(n),e=mo(e),e!==null)if(t=Zo(e),t===null)e=null;else if(r=t.tag,r===13){if(e=g8(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return If=e,null}function N8(e){switch(e){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(yM()){case Jg:return 1;case w8:return 4;case Nf:case xM:return 16;case S8:return 536870912;default:return 16}default:return 16}}var Sa=null,ny=null,lf=null;function M8(){if(lf)return lf;var e,t=ny,r=t.length,n,i="value"in Sa?Sa.value:Sa.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return lf=i.slice(e,1<n?1-n:void 0)}function sf(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function d0(){return!0}function Lx(){return!1}function Yr(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?d0:Lx,this.isPropagationStopped=Lx,this}return ot(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=d0)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=d0)},persist:function(){},isPersistent:d0}),t}var As={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},iy=Yr(As),Ec=ot({},As,{view:0,detail:0}),TM=Yr(Ec),tp,rp,Xs,ph=ot({},Ec,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ay,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xs&&(Xs&&e.type==="mousemove"?(tp=e.screenX-Xs.screenX,rp=e.screenY-Xs.screenY):rp=tp=0,Xs=e),tp)},movementY:function(e){return"movementY"in e?e.movementY:rp}}),$x=Yr(ph),IM=ot({},ph,{dataTransfer:0}),_M=Yr(IM),DM=ot({},Ec,{relatedTarget:0}),np=Yr(DM),zM=ot({},As,{animationName:0,elapsedTime:0,pseudoElement:0}),RM=Yr(zM),LM=ot({},As,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$M=Yr(LM),BM=ot({},As,{data:0}),Bx=Yr(BM),FM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HM={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"},WM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function UM(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=WM[e])?!!t[e]:!1}function ay(){return UM}var qM=ot({},Ec,{key:function(e){if(e.key){var t=FM[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=sf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?HM[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ay,charCode:function(e){return e.type==="keypress"?sf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?sf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),VM=Yr(qM),KM=ot({},ph,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fx=Yr(KM),GM=ot({},Ec,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ay}),YM=Yr(GM),XM=ot({},As,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZM=Yr(XM),QM=ot({},ph,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),JM=Yr(QM),eT=[9,13,27,32],oy=Bi&&"CompositionEvent"in window,Au=null;Bi&&"documentMode"in document&&(Au=document.documentMode);var tT=Bi&&"TextEvent"in window&&!Au,T8=Bi&&(!oy||Au&&8<Au&&11>=Au),Hx=" ",Wx=!1;function I8(e,t){switch(e){case"keyup":return eT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _8(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pl=!1;function rT(e,t){switch(e){case"compositionend":return _8(t);case"keypress":return t.which!==32?null:(Wx=!0,Hx);case"textInput":return e=t.data,e===Hx&&Wx?null:e;default:return null}}function nT(e,t){if(Pl)return e==="compositionend"||!oy&&I8(e,t)?(e=M8(),lf=ny=Sa=null,Pl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return T8&&t.locale!=="ko"?null:t.data;default:return null}}var iT={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 Ux(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iT[e.type]:t==="textarea"}function D8(e,t,r,n){d8(n),t=_f(t,"onChange"),0<t.length&&(r=new iy("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Pu=null,Hu=null;function aT(e){V8(e,0)}function vh(e){var t=Cl(e);if(a8(t))return e}function oT(e,t){if(e==="change")return t}var z8=!1;if(Bi){var ip;if(Bi){var ap="oninput"in document;if(!ap){var qx=document.createElement("div");qx.setAttribute("oninput","return;"),ap=typeof qx.oninput=="function"}ip=ap}else ip=!1;z8=ip&&(!document.documentMode||9<document.documentMode)}function Vx(){Pu&&(Pu.detachEvent("onpropertychange",R8),Hu=Pu=null)}function R8(e){if(e.propertyName==="value"&&vh(Hu)){var t=[];D8(t,Hu,e,Qg(e)),v8(aT,t)}}function lT(e,t,r){e==="focusin"?(Vx(),Pu=t,Hu=r,Pu.attachEvent("onpropertychange",R8)):e==="focusout"&&Vx()}function sT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vh(Hu)}function uT(e,t){if(e==="click")return vh(t)}function cT(e,t){if(e==="input"||e==="change")return vh(t)}function fT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jn=typeof Object.is=="function"?Object.is:fT;function Wu(e,t){if(jn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!Ev.call(t,i)||!jn(e[i],t[i]))return!1}return!0}function Kx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gx(e,t){var r=Kx(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Kx(r)}}function L8(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?L8(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $8(){for(var e=window,t=Of();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Of(e.document)}return t}function ly(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function dT(e){var t=$8(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&L8(r.ownerDocument.documentElement,r)){if(n!==null&&ly(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=Gx(r,a);var o=Gx(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hT=Bi&&"documentMode"in document&&11>=document.documentMode,El=null,qv=null,Eu=null,Vv=!1;function Yx(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Vv||El==null||El!==Of(n)||(n=El,"selectionStart"in n&&ly(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Eu&&Wu(Eu,n)||(Eu=n,n=_f(qv,"onSelect"),0<n.length&&(t=new iy("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=El)))}function h0(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ol={animationend:h0("Animation","AnimationEnd"),animationiteration:h0("Animation","AnimationIteration"),animationstart:h0("Animation","AnimationStart"),transitionend:h0("Transition","TransitionEnd")},op={},B8={};Bi&&(B8=document.createElement("div").style,"AnimationEvent"in window||(delete Ol.animationend.animation,delete Ol.animationiteration.animation,delete Ol.animationstart.animation),"TransitionEvent"in window||delete Ol.transitionend.transition);function gh(e){if(op[e])return op[e];if(!Ol[e])return e;var t=Ol[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in B8)return op[e]=t[r];return e}var F8=gh("animationend"),H8=gh("animationiteration"),W8=gh("animationstart"),U8=gh("transitionend"),q8=new Map,Xx="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 Ga(e,t){q8.set(e,t),Xo(t,[e])}for(var lp=0;lp<Xx.length;lp++){var sp=Xx[lp],mT=sp.toLowerCase(),pT=sp[0].toUpperCase()+sp.slice(1);Ga(mT,"on"+pT)}Ga(F8,"onAnimationEnd");Ga(H8,"onAnimationIteration");Ga(W8,"onAnimationStart");Ga("dblclick","onDoubleClick");Ga("focusin","onFocus");Ga("focusout","onBlur");Ga(U8,"onTransitionEnd");ts("onMouseEnter",["mouseout","mouseover"]);ts("onMouseLeave",["mouseout","mouseover"]);ts("onPointerEnter",["pointerout","pointerover"]);ts("onPointerLeave",["pointerout","pointerover"]);Xo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Xo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xo("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gu="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(" "),vT=new Set("cancel close invalid load scroll toggle".split(" ").concat(gu));function Zx(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,mM(n,t,void 0,e),e.currentTarget=null}function V8(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;Zx(i,l,u),a=s}else for(o=0;o<n.length;o++){if(l=n[o],s=l.instance,u=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;Zx(i,l,u),a=s}}}if(jf)throw e=Fv,jf=!1,Fv=null,e}function Ue(e,t){var r=t[Zv];r===void 0&&(r=t[Zv]=new Set);var n=e+"__bubble";r.has(n)||(K8(t,e,2,!1),r.add(n))}function up(e,t,r){var n=0;t&&(n|=4),K8(r,e,n,t)}var m0="_reactListening"+Math.random().toString(36).slice(2);function Uu(e){if(!e[m0]){e[m0]=!0,e8.forEach(function(r){r!=="selectionchange"&&(vT.has(r)||up(r,!1,e),up(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[m0]||(t[m0]=!0,up("selectionchange",!1,t))}}function K8(e,t,r,n){switch(N8(t)){case 1:var i=NM;break;case 4:i=MM;break;default:i=ry}r=i.bind(null,t,r,e),i=void 0,!Bv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function cp(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;l!==null;){if(o=mo(l),o===null)return;if(s=o.tag,s===5||s===6){n=a=o;continue e}l=l.parentNode}}n=n.return}v8(function(){var u=a,c=Qg(r),f=[];e:{var d=q8.get(e);if(d!==void 0){var m=iy,g=e;switch(e){case"keypress":if(sf(r)===0)break e;case"keydown":case"keyup":m=VM;break;case"focusin":g="focus",m=np;break;case"focusout":g="blur",m=np;break;case"beforeblur":case"afterblur":m=np;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=$x;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=_M;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=YM;break;case F8:case H8:case W8:m=RM;break;case U8:m=ZM;break;case"scroll":m=TM;break;case"wheel":m=JM;break;case"copy":case"cut":case"paste":m=$M;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Fx}var v=(t&4)!==0,x=!v&&e==="scroll",y=v?d!==null?d+"Capture":null:d;v=[];for(var w=u,S;w!==null;){S=w;var A=S.stateNode;if(S.tag===5&&A!==null&&(S=A,y!==null&&(A=Lu(w,y),A!=null&&v.push(qu(w,A,S)))),x)break;w=w.return}0<v.length&&(d=new m(d,g,null,r,c),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",d&&r!==Lv&&(g=r.relatedTarget||r.fromElement)&&(mo(g)||g[Fi]))break e;if((m||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,m?(g=r.relatedTarget||r.toElement,m=u,g=g?mo(g):null,g!==null&&(x=Zo(g),g!==x||g.tag!==5&&g.tag!==6)&&(g=null)):(m=null,g=u),m!==g)){if(v=$x,A="onMouseLeave",y="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(v=Fx,A="onPointerLeave",y="onPointerEnter",w="pointer"),x=m==null?d:Cl(m),S=g==null?d:Cl(g),d=new v(A,w+"leave",m,r,c),d.target=x,d.relatedTarget=S,A=null,mo(c)===u&&(v=new v(y,w+"enter",g,r,c),v.target=S,v.relatedTarget=x,A=v),x=A,m&&g)t:{for(v=m,y=g,w=0,S=v;S;S=sl(S))w++;for(S=0,A=y;A;A=sl(A))S++;for(;0<w-S;)v=sl(v),w--;for(;0<S-w;)y=sl(y),S--;for(;w--;){if(v===y||y!==null&&v===y.alternate)break t;v=sl(v),y=sl(y)}v=null}else v=null;m!==null&&Qx(f,d,m,v,!1),g!==null&&x!==null&&Qx(f,x,g,v,!0)}}e:{if(d=u?Cl(u):window,m=d.nodeName&&d.nodeName.toLowerCase(),m==="select"||m==="input"&&d.type==="file")var P=oT;else if(Ux(d))if(z8)P=cT;else{P=sT;var O=lT}else(m=d.nodeName)&&m.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(P=uT);if(P&&(P=P(e,u))){D8(f,P,r,c);break e}O&&O(e,d,u),e==="focusout"&&(O=d._wrapperState)&&O.controlled&&d.type==="number"&&Iv(d,"number",d.value)}switch(O=u?Cl(u):window,e){case"focusin":(Ux(O)||O.contentEditable==="true")&&(El=O,qv=u,Eu=null);break;case"focusout":Eu=qv=El=null;break;case"mousedown":Vv=!0;break;case"contextmenu":case"mouseup":case"dragend":Vv=!1,Yx(f,r,c);break;case"selectionchange":if(hT)break;case"keydown":case"keyup":Yx(f,r,c)}var j;if(oy)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Pl?I8(e,r)&&(N="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(N="onCompositionStart");N&&(T8&&r.locale!=="ko"&&(Pl||N!=="onCompositionStart"?N==="onCompositionEnd"&&Pl&&(j=M8()):(Sa=c,ny="value"in Sa?Sa.value:Sa.textContent,Pl=!0)),O=_f(u,N),0<O.length&&(N=new Bx(N,e,null,r,c),f.push({event:N,listeners:O}),j?N.data=j:(j=_8(r),j!==null&&(N.data=j)))),(j=tT?rT(e,r):nT(e,r))&&(u=_f(u,"onBeforeInput"),0<u.length&&(c=new Bx("onBeforeInput","beforeinput",null,r,c),f.push({event:c,listeners:u}),c.data=j))}V8(f,t)})}function qu(e,t,r){return{instance:e,listener:t,currentTarget:r}}function _f(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Lu(e,r),a!=null&&n.unshift(qu(e,a,i)),a=Lu(e,t),a!=null&&n.push(qu(e,a,i))),e=e.return}return n}function sl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Qx(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var l=r,s=l.alternate,u=l.stateNode;if(s!==null&&s===n)break;l.tag===5&&u!==null&&(l=u,i?(s=Lu(r,a),s!=null&&o.unshift(qu(r,s,l))):i||(s=Lu(r,a),s!=null&&o.push(qu(r,s,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var gT=/\r\n?/g,yT=/\u0000|\uFFFD/g;function Jx(e){return(typeof e=="string"?e:""+e).replace(gT,`
|
|
38
|
+
`).replace(yT,"")}function p0(e,t,r){if(t=Jx(t),Jx(e)!==t&&r)throw Error(Y(425))}function Df(){}var Kv=null,Gv=null;function Yv(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xv=typeof setTimeout=="function"?setTimeout:void 0,xT=typeof clearTimeout=="function"?clearTimeout:void 0,eb=typeof Promise=="function"?Promise:void 0,bT=typeof queueMicrotask=="function"?queueMicrotask:typeof eb<"u"?function(e){return eb.resolve(null).then(e).catch(wT)}:Xv;function wT(e){setTimeout(function(){throw e})}function fp(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Fu(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Fu(t)}function ja(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function tb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ps=Math.random().toString(36).slice(2),Un="__reactFiber$"+Ps,Vu="__reactProps$"+Ps,Fi="__reactContainer$"+Ps,Zv="__reactEvents$"+Ps,ST="__reactListeners$"+Ps,kT="__reactHandles$"+Ps;function mo(e){var t=e[Un];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Fi]||r[Un]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=tb(e);e!==null;){if(r=e[Un])return r;e=tb(e)}return t}e=r,r=e.parentNode}return null}function Oc(e){return e=e[Un]||e[Fi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Cl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Y(33))}function yh(e){return e[Vu]||null}var Qv=[],jl=-1;function Ya(e){return{current:e}}function Ke(e){0>jl||(e.current=Qv[jl],Qv[jl]=null,jl--)}function $e(e,t){jl++,Qv[jl]=e.current,e.current=t}var $a={},ar=Ya($a),Cr=Ya(!1),jo=$a;function rs(e,t){var r=e.type.contextTypes;if(!r)return $a;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function jr(e){return e=e.childContextTypes,e!=null}function zf(){Ke(Cr),Ke(ar)}function rb(e,t,r){if(ar.current!==$a)throw Error(Y(168));$e(ar,t),$e(Cr,r)}function G8(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(Y(108,lM(e)||"Unknown",i));return ot({},r,n)}function Rf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$a,jo=ar.current,$e(ar,e),$e(Cr,Cr.current),!0}function nb(e,t,r){var n=e.stateNode;if(!n)throw Error(Y(169));r?(e=G8(e,t,jo),n.__reactInternalMemoizedMergedChildContext=e,Ke(Cr),Ke(ar),$e(ar,e)):Ke(Cr),$e(Cr,r)}var Si=null,xh=!1,dp=!1;function Y8(e){Si===null?Si=[e]:Si.push(e)}function AT(e){xh=!0,Y8(e)}function Xa(){if(!dp&&Si!==null){dp=!0;var e=0,t=Ne;try{var r=Si;for(Ne=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Si=null,xh=!1}catch(i){throw Si!==null&&(Si=Si.slice(e+1)),b8(Jg,Xa),i}finally{Ne=t,dp=!1}}return null}var Nl=[],Ml=0,Lf=null,$f=0,en=[],tn=0,No=null,Ci=1,ji="";function so(e,t){Nl[Ml++]=$f,Nl[Ml++]=Lf,Lf=e,$f=t}function X8(e,t,r){en[tn++]=Ci,en[tn++]=ji,en[tn++]=No,No=e;var n=Ci;e=ji;var i=32-On(n)-1;n&=~(1<<i),r+=1;var a=32-On(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,Ci=1<<32-On(t)+i|r<<i|n,ji=a+e}else Ci=1<<a|r<<i|n,ji=e}function sy(e){e.return!==null&&(so(e,1),X8(e,1,0))}function uy(e){for(;e===Lf;)Lf=Nl[--Ml],Nl[Ml]=null,$f=Nl[--Ml],Nl[Ml]=null;for(;e===No;)No=en[--tn],en[tn]=null,ji=en[--tn],en[tn]=null,Ci=en[--tn],en[tn]=null}var Wr=null,Fr=null,Qe=!1,kn=null;function Z8(e,t){var r=rn(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function ib(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Wr=e,Fr=ja(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Wr=e,Fr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=No!==null?{id:Ci,overflow:ji}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=rn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Wr=e,Fr=null,!0):!1;default:return!1}}function Jv(e){return(e.mode&1)!==0&&(e.flags&128)===0}function e1(e){if(Qe){var t=Fr;if(t){var r=t;if(!ib(e,t)){if(Jv(e))throw Error(Y(418));t=ja(r.nextSibling);var n=Wr;t&&ib(e,t)?Z8(n,r):(e.flags=e.flags&-4097|2,Qe=!1,Wr=e)}}else{if(Jv(e))throw Error(Y(418));e.flags=e.flags&-4097|2,Qe=!1,Wr=e}}}function ab(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Wr=e}function v0(e){if(e!==Wr)return!1;if(!Qe)return ab(e),Qe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Yv(e.type,e.memoizedProps)),t&&(t=Fr)){if(Jv(e))throw Q8(),Error(Y(418));for(;t;)Z8(e,t),t=ja(t.nextSibling)}if(ab(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Y(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Fr=ja(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Fr=null}}else Fr=Wr?ja(e.stateNode.nextSibling):null;return!0}function Q8(){for(var e=Fr;e;)e=ja(e.nextSibling)}function ns(){Fr=Wr=null,Qe=!1}function cy(e){kn===null?kn=[e]:kn.push(e)}var PT=ea.ReactCurrentBatchConfig;function Zs(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(Y(309));var n=r.stateNode}if(!n)throw Error(Y(147,e));var i=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var l=i.refs;o===null?delete l[a]:l[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(Y(284));if(!r._owner)throw Error(Y(290,e))}return e}function g0(e,t){throw e=Object.prototype.toString.call(t),Error(Y(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ob(e){var t=e._init;return t(e._payload)}function J8(e){function t(y,w){if(e){var S=y.deletions;S===null?(y.deletions=[w],y.flags|=16):S.push(w)}}function r(y,w){if(!e)return null;for(;w!==null;)t(y,w),w=w.sibling;return null}function n(y,w){for(y=new Map;w!==null;)w.key!==null?y.set(w.key,w):y.set(w.index,w),w=w.sibling;return y}function i(y,w){return y=Ia(y,w),y.index=0,y.sibling=null,y}function a(y,w,S){return y.index=S,e?(S=y.alternate,S!==null?(S=S.index,S<w?(y.flags|=2,w):S):(y.flags|=2,w)):(y.flags|=1048576,w)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,w,S,A){return w===null||w.tag!==6?(w=xp(S,y.mode,A),w.return=y,w):(w=i(w,S),w.return=y,w)}function s(y,w,S,A){var P=S.type;return P===Al?c(y,w,S.props.children,A,S.key):w!==null&&(w.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===pa&&ob(P)===w.type)?(A=i(w,S.props),A.ref=Zs(y,w,S),A.return=y,A):(A=pf(S.type,S.key,S.props,null,y.mode,A),A.ref=Zs(y,w,S),A.return=y,A)}function u(y,w,S,A){return w===null||w.tag!==4||w.stateNode.containerInfo!==S.containerInfo||w.stateNode.implementation!==S.implementation?(w=bp(S,y.mode,A),w.return=y,w):(w=i(w,S.children||[]),w.return=y,w)}function c(y,w,S,A,P){return w===null||w.tag!==7?(w=Ao(S,y.mode,A,P),w.return=y,w):(w=i(w,S),w.return=y,w)}function f(y,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return w=xp(""+w,y.mode,S),w.return=y,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case o0:return S=pf(w.type,w.key,w.props,null,y.mode,S),S.ref=Zs(y,null,w),S.return=y,S;case kl:return w=bp(w,y.mode,S),w.return=y,w;case pa:var A=w._init;return f(y,A(w._payload),S)}if(pu(w)||Vs(w))return w=Ao(w,y.mode,S,null),w.return=y,w;g0(y,w)}return null}function d(y,w,S,A){var P=w!==null?w.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return P!==null?null:l(y,w,""+S,A);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case o0:return S.key===P?s(y,w,S,A):null;case kl:return S.key===P?u(y,w,S,A):null;case pa:return P=S._init,d(y,w,P(S._payload),A)}if(pu(S)||Vs(S))return P!==null?null:c(y,w,S,A,null);g0(y,S)}return null}function m(y,w,S,A,P){if(typeof A=="string"&&A!==""||typeof A=="number")return y=y.get(S)||null,l(w,y,""+A,P);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case o0:return y=y.get(A.key===null?S:A.key)||null,s(w,y,A,P);case kl:return y=y.get(A.key===null?S:A.key)||null,u(w,y,A,P);case pa:var O=A._init;return m(y,w,S,O(A._payload),P)}if(pu(A)||Vs(A))return y=y.get(S)||null,c(w,y,A,P,null);g0(w,A)}return null}function g(y,w,S,A){for(var P=null,O=null,j=w,N=w=0,_=null;j!==null&&N<S.length;N++){j.index>N?(_=j,j=null):_=j.sibling;var z=d(y,j,S[N],A);if(z===null){j===null&&(j=_);break}e&&j&&z.alternate===null&&t(y,j),w=a(z,w,N),O===null?P=z:O.sibling=z,O=z,j=_}if(N===S.length)return r(y,j),Qe&&so(y,N),P;if(j===null){for(;N<S.length;N++)j=f(y,S[N],A),j!==null&&(w=a(j,w,N),O===null?P=j:O.sibling=j,O=j);return Qe&&so(y,N),P}for(j=n(y,j);N<S.length;N++)_=m(j,y,N,S[N],A),_!==null&&(e&&_.alternate!==null&&j.delete(_.key===null?N:_.key),w=a(_,w,N),O===null?P=_:O.sibling=_,O=_);return e&&j.forEach(function(R){return t(y,R)}),Qe&&so(y,N),P}function v(y,w,S,A){var P=Vs(S);if(typeof P!="function")throw Error(Y(150));if(S=P.call(S),S==null)throw Error(Y(151));for(var O=P=null,j=w,N=w=0,_=null,z=S.next();j!==null&&!z.done;N++,z=S.next()){j.index>N?(_=j,j=null):_=j.sibling;var R=d(y,j,z.value,A);if(R===null){j===null&&(j=_);break}e&&j&&R.alternate===null&&t(y,j),w=a(R,w,N),O===null?P=R:O.sibling=R,O=R,j=_}if(z.done)return r(y,j),Qe&&so(y,N),P;if(j===null){for(;!z.done;N++,z=S.next())z=f(y,z.value,A),z!==null&&(w=a(z,w,N),O===null?P=z:O.sibling=z,O=z);return Qe&&so(y,N),P}for(j=n(y,j);!z.done;N++,z=S.next())z=m(j,y,N,z.value,A),z!==null&&(e&&z.alternate!==null&&j.delete(z.key===null?N:z.key),w=a(z,w,N),O===null?P=z:O.sibling=z,O=z);return e&&j.forEach(function(I){return t(y,I)}),Qe&&so(y,N),P}function x(y,w,S,A){if(typeof S=="object"&&S!==null&&S.type===Al&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case o0:e:{for(var P=S.key,O=w;O!==null;){if(O.key===P){if(P=S.type,P===Al){if(O.tag===7){r(y,O.sibling),w=i(O,S.props.children),w.return=y,y=w;break e}}else if(O.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===pa&&ob(P)===O.type){r(y,O.sibling),w=i(O,S.props),w.ref=Zs(y,O,S),w.return=y,y=w;break e}r(y,O);break}else t(y,O);O=O.sibling}S.type===Al?(w=Ao(S.props.children,y.mode,A,S.key),w.return=y,y=w):(A=pf(S.type,S.key,S.props,null,y.mode,A),A.ref=Zs(y,w,S),A.return=y,y=A)}return o(y);case kl:e:{for(O=S.key;w!==null;){if(w.key===O)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){r(y,w.sibling),w=i(w,S.children||[]),w.return=y,y=w;break e}else{r(y,w);break}else t(y,w);w=w.sibling}w=bp(S,y.mode,A),w.return=y,y=w}return o(y);case pa:return O=S._init,x(y,w,O(S._payload),A)}if(pu(S))return g(y,w,S,A);if(Vs(S))return v(y,w,S,A);g0(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(r(y,w.sibling),w=i(w,S),w.return=y,y=w):(r(y,w),w=xp(S,y.mode,A),w.return=y,y=w),o(y)):r(y,w)}return x}var is=J8(!0),e9=J8(!1),Bf=Ya(null),Ff=null,Tl=null,fy=null;function dy(){fy=Tl=Ff=null}function hy(e){var t=Bf.current;Ke(Bf),e._currentValue=t}function t1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Hl(e,t){Ff=e,fy=Tl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(kr=!0),e.firstContext=null)}function cn(e){var t=e._currentValue;if(fy!==e)if(e={context:e,memoizedValue:t,next:null},Tl===null){if(Ff===null)throw Error(Y(308));Tl=e,Ff.dependencies={lanes:0,firstContext:e}}else Tl=Tl.next=e;return t}var po=null;function my(e){po===null?po=[e]:po.push(e)}function t9(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,my(t)):(r.next=i.next,i.next=r),t.interleaved=r,Hi(e,n)}function Hi(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var va=!1;function py(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function r9(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ii(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Na(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Pe&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Hi(e,r)}return i=n.interleaved,i===null?(t.next=t,my(n)):(t.next=i.next,i.next=t),n.interleaved=t,Hi(e,r)}function uf(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ey(e,r)}}function lb(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Hf(e,t,r,n){var i=e.updateQueue;va=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,u=s.next;s.next=null,o===null?a=u:o.next=u,o=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(a!==null){var f=i.baseState;o=0,c=u=s=null,l=a;do{var d=l.lane,m=l.eventTime;if((n&d)===d){c!==null&&(c=c.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,v=l;switch(d=t,m=r,v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(m,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,d=typeof g=="function"?g.call(m,f,d):g,d==null)break e;f=ot({},f,d);break e;case 2:va=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else m={eventTime:m,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=m,s=f):c=c.next=m,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(s=f),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);To|=o,e.lanes=o,e.memoizedState=f}}function sb(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(Y(191,i));i.call(n)}}}var Cc={},Jn=Ya(Cc),Ku=Ya(Cc),Gu=Ya(Cc);function vo(e){if(e===Cc)throw Error(Y(174));return e}function vy(e,t){switch($e(Gu,t),$e(Ku,e),$e(Jn,Cc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Dv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Dv(t,e)}Ke(Jn),$e(Jn,t)}function as(){Ke(Jn),Ke(Ku),Ke(Gu)}function n9(e){vo(Gu.current);var t=vo(Jn.current),r=Dv(t,e.type);t!==r&&($e(Ku,e),$e(Jn,r))}function gy(e){Ku.current===e&&(Ke(Jn),Ke(Ku))}var rt=Ya(0);function Wf(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hp=[];function yy(){for(var e=0;e<hp.length;e++)hp[e]._workInProgressVersionPrimary=null;hp.length=0}var cf=ea.ReactCurrentDispatcher,mp=ea.ReactCurrentBatchConfig,Mo=0,at=null,Et=null,Bt=null,Uf=!1,Ou=!1,Yu=0,ET=0;function Qt(){throw Error(Y(321))}function xy(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!jn(e[r],t[r]))return!1;return!0}function by(e,t,r,n,i,a){if(Mo=a,at=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,cf.current=e===null||e.memoizedState===null?NT:MT,e=r(n,i),Ou){a=0;do{if(Ou=!1,Yu=0,25<=a)throw Error(Y(301));a+=1,Bt=Et=null,t.updateQueue=null,cf.current=TT,e=r(n,i)}while(Ou)}if(cf.current=qf,t=Et!==null&&Et.next!==null,Mo=0,Bt=Et=at=null,Uf=!1,t)throw Error(Y(300));return e}function wy(){var e=Yu!==0;return Yu=0,e}function Fn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bt===null?at.memoizedState=Bt=e:Bt=Bt.next=e,Bt}function fn(){if(Et===null){var e=at.alternate;e=e!==null?e.memoizedState:null}else e=Et.next;var t=Bt===null?at.memoizedState:Bt.next;if(t!==null)Bt=t,Et=e;else{if(e===null)throw Error(Y(310));Et=e,e={memoizedState:Et.memoizedState,baseState:Et.baseState,baseQueue:Et.baseQueue,queue:Et.queue,next:null},Bt===null?at.memoizedState=Bt=e:Bt=Bt.next=e}return Bt}function Xu(e,t){return typeof t=="function"?t(e):t}function pp(e){var t=fn(),r=t.queue;if(r===null)throw Error(Y(311));r.lastRenderedReducer=e;var n=Et,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var l=o=null,s=null,u=a;do{var c=u.lane;if((Mo&c)===c)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(l=s=f,o=n):s=s.next=f,at.lanes|=c,To|=c}u=u.next}while(u!==null&&u!==a);s===null?o=n:s.next=l,jn(n,t.memoizedState)||(kr=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do a=i.lane,at.lanes|=a,To|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function vp(e){var t=fn(),r=t.queue;if(r===null)throw Error(Y(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);jn(a,t.memoizedState)||(kr=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function i9(){}function a9(e,t){var r=at,n=fn(),i=t(),a=!jn(n.memoizedState,i);if(a&&(n.memoizedState=i,kr=!0),n=n.queue,Sy(s9.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||Bt!==null&&Bt.memoizedState.tag&1){if(r.flags|=2048,Zu(9,l9.bind(null,r,n,i,t),void 0,null),Ft===null)throw Error(Y(349));Mo&30||o9(r,t,i)}return i}function o9(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=at.updateQueue,t===null?(t={lastEffect:null,stores:null},at.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function l9(e,t,r,n){t.value=r,t.getSnapshot=n,u9(t)&&c9(e)}function s9(e,t,r){return r(function(){u9(t)&&c9(e)})}function u9(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!jn(e,r)}catch{return!0}}function c9(e){var t=Hi(e,1);t!==null&&Cn(t,e,1,-1)}function ub(e){var t=Fn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xu,lastRenderedState:e},t.queue=e,e=e.dispatch=jT.bind(null,at,e),[t.memoizedState,e]}function Zu(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=at.updateQueue,t===null?(t={lastEffect:null,stores:null},at.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function f9(){return fn().memoizedState}function ff(e,t,r,n){var i=Fn();at.flags|=e,i.memoizedState=Zu(1|t,r,void 0,n===void 0?null:n)}function bh(e,t,r,n){var i=fn();n=n===void 0?null:n;var a=void 0;if(Et!==null){var o=Et.memoizedState;if(a=o.destroy,n!==null&&xy(n,o.deps)){i.memoizedState=Zu(t,r,a,n);return}}at.flags|=e,i.memoizedState=Zu(1|t,r,a,n)}function cb(e,t){return ff(8390656,8,e,t)}function Sy(e,t){return bh(2048,8,e,t)}function d9(e,t){return bh(4,2,e,t)}function h9(e,t){return bh(4,4,e,t)}function m9(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function p9(e,t,r){return r=r!=null?r.concat([e]):null,bh(4,4,m9.bind(null,t,e),r)}function ky(){}function v9(e,t){var r=fn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&xy(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function g9(e,t){var r=fn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&xy(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function y9(e,t,r){return Mo&21?(jn(r,t)||(r=k8(),at.lanes|=r,To|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,kr=!0),e.memoizedState=r)}function OT(e,t){var r=Ne;Ne=r!==0&&4>r?r:4,e(!0);var n=mp.transition;mp.transition={};try{e(!1),t()}finally{Ne=r,mp.transition=n}}function x9(){return fn().memoizedState}function CT(e,t,r){var n=Ta(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},b9(e))w9(t,r);else if(r=t9(e,t,r,n),r!==null){var i=pr();Cn(r,e,n,i),S9(r,t,n)}}function jT(e,t,r){var n=Ta(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(b9(e))w9(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,l=a(o,r);if(i.hasEagerState=!0,i.eagerState=l,jn(l,o)){var s=t.interleaved;s===null?(i.next=i,my(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}r=t9(e,t,i,n),r!==null&&(i=pr(),Cn(r,e,n,i),S9(r,t,n))}}function b9(e){var t=e.alternate;return e===at||t!==null&&t===at}function w9(e,t){Ou=Uf=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function S9(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ey(e,r)}}var qf={readContext:cn,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useInsertionEffect:Qt,useLayoutEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useMutableSource:Qt,useSyncExternalStore:Qt,useId:Qt,unstable_isNewReconciler:!1},NT={readContext:cn,useCallback:function(e,t){return Fn().memoizedState=[e,t===void 0?null:t],e},useContext:cn,useEffect:cb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ff(4194308,4,m9.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ff(4194308,4,e,t)},useInsertionEffect:function(e,t){return ff(4,2,e,t)},useMemo:function(e,t){var r=Fn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Fn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=CT.bind(null,at,e),[n.memoizedState,e]},useRef:function(e){var t=Fn();return e={current:e},t.memoizedState=e},useState:ub,useDebugValue:ky,useDeferredValue:function(e){return Fn().memoizedState=e},useTransition:function(){var e=ub(!1),t=e[0];return e=OT.bind(null,e[1]),Fn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=at,i=Fn();if(Qe){if(r===void 0)throw Error(Y(407));r=r()}else{if(r=t(),Ft===null)throw Error(Y(349));Mo&30||o9(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,cb(s9.bind(null,n,a,e),[e]),n.flags|=2048,Zu(9,l9.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Fn(),t=Ft.identifierPrefix;if(Qe){var r=ji,n=Ci;r=(n&~(1<<32-On(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Yu++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=ET++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},MT={readContext:cn,useCallback:v9,useContext:cn,useEffect:Sy,useImperativeHandle:p9,useInsertionEffect:d9,useLayoutEffect:h9,useMemo:g9,useReducer:pp,useRef:f9,useState:function(){return pp(Xu)},useDebugValue:ky,useDeferredValue:function(e){var t=fn();return y9(t,Et.memoizedState,e)},useTransition:function(){var e=pp(Xu)[0],t=fn().memoizedState;return[e,t]},useMutableSource:i9,useSyncExternalStore:a9,useId:x9,unstable_isNewReconciler:!1},TT={readContext:cn,useCallback:v9,useContext:cn,useEffect:Sy,useImperativeHandle:p9,useInsertionEffect:d9,useLayoutEffect:h9,useMemo:g9,useReducer:vp,useRef:f9,useState:function(){return vp(Xu)},useDebugValue:ky,useDeferredValue:function(e){var t=fn();return Et===null?t.memoizedState=e:y9(t,Et.memoizedState,e)},useTransition:function(){var e=vp(Xu)[0],t=fn().memoizedState;return[e,t]},useMutableSource:i9,useSyncExternalStore:a9,useId:x9,unstable_isNewReconciler:!1};function bn(e,t){if(e&&e.defaultProps){t=ot({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function r1(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:ot({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var wh={isMounted:function(e){return(e=e._reactInternals)?Zo(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=pr(),i=Ta(e),a=Ii(n,i);a.payload=t,r!=null&&(a.callback=r),t=Na(e,a,i),t!==null&&(Cn(t,e,i,n),uf(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=pr(),i=Ta(e),a=Ii(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=Na(e,a,i),t!==null&&(Cn(t,e,i,n),uf(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=pr(),n=Ta(e),i=Ii(r,n);i.tag=2,t!=null&&(i.callback=t),t=Na(e,i,n),t!==null&&(Cn(t,e,n,r),uf(t,e,n))}};function fb(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!Wu(r,n)||!Wu(i,a):!0}function k9(e,t,r){var n=!1,i=$a,a=t.contextType;return typeof a=="object"&&a!==null?a=cn(a):(i=jr(t)?jo:ar.current,n=t.contextTypes,a=(n=n!=null)?rs(e,i):$a),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=wh,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function db(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&wh.enqueueReplaceState(t,t.state,null)}function n1(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},py(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=cn(a):(a=jr(t)?jo:ar.current,i.context=rs(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(r1(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&wh.enqueueReplaceState(i,i.state,null),Hf(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function os(e,t){try{var r="",n=t;do r+=oM(n),n=n.return;while(n);var i=r}catch(a){i=`
|
|
39
|
+
Error generating stack: `+a.message+`
|
|
40
|
+
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function gp(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function i1(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var IT=typeof WeakMap=="function"?WeakMap:Map;function A9(e,t,r){r=Ii(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Kf||(Kf=!0,m1=n),i1(e,t)},r}function P9(e,t,r){r=Ii(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){i1(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){i1(e,t),typeof n!="function"&&(Ma===null?Ma=new Set([this]):Ma.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function hb(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new IT;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=KT.bind(null,e,t,r),t.then(e,e))}function mb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function pb(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Ii(-1,1),t.tag=2,Na(r,t,1))),r.lanes|=1),e)}var _T=ea.ReactCurrentOwner,kr=!1;function cr(e,t,r,n){t.child=e===null?e9(t,null,r,n):is(t,e.child,r,n)}function vb(e,t,r,n,i){r=r.render;var a=t.ref;return Hl(t,i),n=by(e,t,r,n,a,i),r=wy(),e!==null&&!kr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Wi(e,t,i)):(Qe&&r&&sy(t),t.flags|=1,cr(e,t,n,i),t.child)}function gb(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!My(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,E9(e,t,a,n,i)):(e=pf(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:Wu,r(o,n)&&e.ref===t.ref)return Wi(e,t,i)}return t.flags|=1,e=Ia(a,n),e.ref=t.ref,e.return=t,t.child=e}function E9(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(Wu(a,n)&&e.ref===t.ref)if(kr=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(kr=!0);else return t.lanes=e.lanes,Wi(e,t,i)}return a1(e,t,r,n,i)}function O9(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(_l,Rr),Rr|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$e(_l,Rr),Rr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,$e(_l,Rr),Rr|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,$e(_l,Rr),Rr|=n;return cr(e,t,i,r),t.child}function C9(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function a1(e,t,r,n,i){var a=jr(r)?jo:ar.current;return a=rs(t,a),Hl(t,i),r=by(e,t,r,n,a,i),n=wy(),e!==null&&!kr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Wi(e,t,i)):(Qe&&n&&sy(t),t.flags|=1,cr(e,t,r,i),t.child)}function yb(e,t,r,n,i){if(jr(r)){var a=!0;Rf(t)}else a=!1;if(Hl(t,i),t.stateNode===null)df(e,t),k9(t,r,n),n1(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=cn(u):(u=jr(r)?jo:ar.current,u=rs(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||s!==u)&&db(t,o,n,u),va=!1;var d=t.memoizedState;o.state=d,Hf(t,n,o,i),s=t.memoizedState,l!==n||d!==s||Cr.current||va?(typeof c=="function"&&(r1(t,r,c,n),s=t.memoizedState),(l=va||fb(t,r,l,n,d,s,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=s),o.props=n,o.state=s,o.context=u,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,r9(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:bn(t.type,l),o.props=u,f=t.pendingProps,d=o.context,s=r.contextType,typeof s=="object"&&s!==null?s=cn(s):(s=jr(r)?jo:ar.current,s=rs(t,s));var m=r.getDerivedStateFromProps;(c=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||d!==s)&&db(t,o,n,s),va=!1,d=t.memoizedState,o.state=d,Hf(t,n,o,i);var g=t.memoizedState;l!==f||d!==g||Cr.current||va?(typeof m=="function"&&(r1(t,r,m,n),g=t.memoizedState),(u=va||fb(t,r,u,n,d,g,s)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,g,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,g,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=g),o.props=n,o.state=g,o.context=s,n=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return o1(e,t,r,n,a,i)}function o1(e,t,r,n,i,a){C9(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&nb(t,r,!1),Wi(e,t,a);n=t.stateNode,_T.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=is(t,e.child,null,a),t.child=is(t,null,l,a)):cr(e,t,l,a),t.memoizedState=n.state,i&&nb(t,r,!0),t.child}function j9(e){var t=e.stateNode;t.pendingContext?rb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&rb(e,t.context,!1),vy(e,t.containerInfo)}function xb(e,t,r,n,i){return ns(),cy(i),t.flags|=256,cr(e,t,r,n),t.child}var l1={dehydrated:null,treeContext:null,retryLane:0};function s1(e){return{baseLanes:e,cachePool:null,transitions:null}}function N9(e,t,r){var n=t.pendingProps,i=rt.current,a=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),$e(rt,i&1),e===null)return e1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Ah(o,n,0,null),e=Ao(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=s1(r),t.memoizedState=l1,e):Ay(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return DT(e,t,o,n,l,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,l=i.sibling;var s={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=s,t.deletions=null):(n=Ia(i,s),n.subtreeFlags=i.subtreeFlags&14680064),l!==null?a=Ia(l,a):(a=Ao(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?s1(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=l1,n}return a=e.child,e=a.sibling,n=Ia(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Ay(e,t){return t=Ah({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function y0(e,t,r,n){return n!==null&&cy(n),is(t,e.child,null,r),e=Ay(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function DT(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=gp(Error(Y(422))),y0(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Ah({mode:"visible",children:n.children},i,0,null),a=Ao(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&is(t,e.child,null,o),t.child.memoizedState=s1(o),t.memoizedState=l1,a);if(!(t.mode&1))return y0(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var l=n.dgst;return n=l,a=Error(Y(419)),n=gp(a,n,void 0),y0(e,t,o,n)}if(l=(o&e.childLanes)!==0,kr||l){if(n=Ft,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Hi(e,i),Cn(n,e,i,-1))}return Ny(),n=gp(Error(Y(421))),y0(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=GT.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Fr=ja(i.nextSibling),Wr=t,Qe=!0,kn=null,e!==null&&(en[tn++]=Ci,en[tn++]=ji,en[tn++]=No,Ci=e.id,ji=e.overflow,No=t),t=Ay(t,n.children),t.flags|=4096,t)}function bb(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),t1(e.return,t,r)}function yp(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function M9(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(cr(e,t,n.children,r),n=rt.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bb(e,r,t);else if(e.tag===19)bb(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if($e(rt,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Wf(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),yp(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Wf(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}yp(t,!0,r,null,a);break;case"together":yp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function df(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wi(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),To|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Y(153));if(t.child!==null){for(e=t.child,r=Ia(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ia(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function zT(e,t,r){switch(t.tag){case 3:j9(t),ns();break;case 5:n9(t);break;case 1:jr(t.type)&&Rf(t);break;case 4:vy(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;$e(Bf,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?($e(rt,rt.current&1),t.flags|=128,null):r&t.child.childLanes?N9(e,t,r):($e(rt,rt.current&1),e=Wi(e,t,r),e!==null?e.sibling:null);$e(rt,rt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return M9(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),$e(rt,rt.current),n)break;return null;case 22:case 23:return t.lanes=0,O9(e,t,r)}return Wi(e,t,r)}var T9,u1,I9,_9;T9=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};u1=function(){};I9=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,vo(Jn.current);var a=null;switch(r){case"input":i=Mv(e,i),n=Mv(e,n),a=[];break;case"select":i=ot({},i,{value:void 0}),n=ot({},n,{value:void 0}),a=[];break;case"textarea":i=_v(e,i),n=_v(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Df)}zv(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(zu.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var s=n[u];if(l=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(r||(r={}),r[o]=s[o])}else r||(a||(a=[]),a.push(u,r)),r=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(zu.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&Ue("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};_9=function(e,t,r,n){r!==n&&(t.flags|=4)};function Qs(e,t){if(!Qe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Jt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function RT(e,t,r){var n=t.pendingProps;switch(uy(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jt(t),null;case 1:return jr(t.type)&&zf(),Jt(t),null;case 3:return n=t.stateNode,as(),Ke(Cr),Ke(ar),yy(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(v0(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,kn!==null&&(g1(kn),kn=null))),u1(e,t),Jt(t),null;case 5:gy(t);var i=vo(Gu.current);if(r=t.type,e!==null&&t.stateNode!=null)I9(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Y(166));return Jt(t),null}if(e=vo(Jn.current),v0(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Un]=t,n[Vu]=a,e=(t.mode&1)!==0,r){case"dialog":Ue("cancel",n),Ue("close",n);break;case"iframe":case"object":case"embed":Ue("load",n);break;case"video":case"audio":for(i=0;i<gu.length;i++)Ue(gu[i],n);break;case"source":Ue("error",n);break;case"img":case"image":case"link":Ue("error",n),Ue("load",n);break;case"details":Ue("toggle",n);break;case"input":jx(n,a),Ue("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ue("invalid",n);break;case"textarea":Mx(n,a),Ue("invalid",n)}zv(r,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="children"?typeof l=="string"?n.textContent!==l&&(a.suppressHydrationWarning!==!0&&p0(n.textContent,l,e),i=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&p0(n.textContent,l,e),i=["children",""+l]):zu.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&Ue("scroll",n)}switch(r){case"input":l0(n),Nx(n,a,!0);break;case"textarea":l0(n),Tx(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=Df)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=s8(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Un]=t,e[Vu]=n,T9(e,t,!1,!1),t.stateNode=e;e:{switch(o=Rv(r,n),r){case"dialog":Ue("cancel",e),Ue("close",e),i=n;break;case"iframe":case"object":case"embed":Ue("load",e),i=n;break;case"video":case"audio":for(i=0;i<gu.length;i++)Ue(gu[i],e);i=n;break;case"source":Ue("error",e),i=n;break;case"img":case"image":case"link":Ue("error",e),Ue("load",e),i=n;break;case"details":Ue("toggle",e),i=n;break;case"input":jx(e,n),i=Mv(e,n),Ue("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=ot({},n,{value:void 0}),Ue("invalid",e);break;case"textarea":Mx(e,n),i=_v(e,n),Ue("invalid",e);break;default:i=n}zv(r,i),l=i;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?f8(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&u8(e,s)):a==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&Ru(e,s):typeof s=="number"&&Ru(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(zu.hasOwnProperty(a)?s!=null&&a==="onScroll"&&Ue("scroll",e):s!=null&&Gg(e,a,s,o))}switch(r){case"input":l0(e),Nx(e,n,!1);break;case"textarea":l0(e),Tx(e);break;case"option":n.value!=null&&e.setAttribute("value",""+La(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?Ll(e,!!n.multiple,a,!1):n.defaultValue!=null&&Ll(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Df)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Jt(t),null;case 6:if(e&&t.stateNode!=null)_9(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Y(166));if(r=vo(Gu.current),vo(Jn.current),v0(t)){if(n=t.stateNode,r=t.memoizedProps,n[Un]=t,(a=n.nodeValue!==r)&&(e=Wr,e!==null))switch(e.tag){case 3:p0(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&p0(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Un]=t,t.stateNode=n}return Jt(t),null;case 13:if(Ke(rt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Qe&&Fr!==null&&t.mode&1&&!(t.flags&128))Q8(),ns(),t.flags|=98560,a=!1;else if(a=v0(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(Y(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(Y(317));a[Un]=t}else ns(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Jt(t),a=!1}else kn!==null&&(g1(kn),kn=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||rt.current&1?jt===0&&(jt=3):Ny())),t.updateQueue!==null&&(t.flags|=4),Jt(t),null);case 4:return as(),u1(e,t),e===null&&Uu(t.stateNode.containerInfo),Jt(t),null;case 10:return hy(t.type._context),Jt(t),null;case 17:return jr(t.type)&&zf(),Jt(t),null;case 19:if(Ke(rt),a=t.memoizedState,a===null)return Jt(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)Qs(a,!1);else{if(jt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Wf(e),o!==null){for(t.flags|=128,Qs(a,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return $e(rt,rt.current&1|2),t.child}e=e.sibling}a.tail!==null&&vt()>ls&&(t.flags|=128,n=!0,Qs(a,!1),t.lanes=4194304)}else{if(!n)if(e=Wf(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Qs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Qe)return Jt(t),null}else 2*vt()-a.renderingStartTime>ls&&r!==1073741824&&(t.flags|=128,n=!0,Qs(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=vt(),t.sibling=null,r=rt.current,$e(rt,n?r&1|2:r&1),t):(Jt(t),null);case 22:case 23:return jy(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Rr&1073741824&&(Jt(t),t.subtreeFlags&6&&(t.flags|=8192)):Jt(t),null;case 24:return null;case 25:return null}throw Error(Y(156,t.tag))}function LT(e,t){switch(uy(t),t.tag){case 1:return jr(t.type)&&zf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return as(),Ke(Cr),Ke(ar),yy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gy(t),null;case 13:if(Ke(rt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Y(340));ns()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ke(rt),null;case 4:return as(),null;case 10:return hy(t.type._context),null;case 22:case 23:return jy(),null;case 24:return null;default:return null}}var x0=!1,tr=!1,$T=typeof WeakSet=="function"?WeakSet:Set,ae=null;function Il(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){dt(e,t,n)}else r.current=null}function c1(e,t,r){try{r()}catch(n){dt(e,t,n)}}var wb=!1;function BT(e,t){if(Kv=Tf,e=$8(),ly(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,l=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var m;f!==r||i!==0&&f.nodeType!==3||(l=o+i),f!==a||n!==0&&f.nodeType!==3||(s=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===r&&++u===i&&(l=o),d===a&&++c===n&&(s=o),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(Gv={focusedElem:e,selectionRange:r},Tf=!1,ae=t;ae!==null;)if(t=ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ae=e;else for(;ae!==null;){t=ae;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,x=g.memoizedState,y=t.stateNode,w=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:bn(t.type,v),x);y.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Y(163))}}catch(A){dt(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,ae=e;break}ae=t.return}return g=wb,wb=!1,g}function Cu(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&c1(t,r,a)}i=i.next}while(i!==n)}}function Sh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function f1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function D9(e){var t=e.alternate;t!==null&&(e.alternate=null,D9(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Un],delete t[Vu],delete t[Zv],delete t[ST],delete t[kT])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function z9(e){return e.tag===5||e.tag===3||e.tag===4}function Sb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||z9(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function d1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Df));else if(n!==4&&(e=e.child,e!==null))for(d1(e,t,r),e=e.sibling;e!==null;)d1(e,t,r),e=e.sibling}function h1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(h1(e,t,r),e=e.sibling;e!==null;)h1(e,t,r),e=e.sibling}var Kt=null,wn=!1;function sa(e,t,r){for(r=r.child;r!==null;)R9(e,t,r),r=r.sibling}function R9(e,t,r){if(Qn&&typeof Qn.onCommitFiberUnmount=="function")try{Qn.onCommitFiberUnmount(mh,r)}catch{}switch(r.tag){case 5:tr||Il(r,t);case 6:var n=Kt,i=wn;Kt=null,sa(e,t,r),Kt=n,wn=i,Kt!==null&&(wn?(e=Kt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Kt.removeChild(r.stateNode));break;case 18:Kt!==null&&(wn?(e=Kt,r=r.stateNode,e.nodeType===8?fp(e.parentNode,r):e.nodeType===1&&fp(e,r),Fu(e)):fp(Kt,r.stateNode));break;case 4:n=Kt,i=wn,Kt=r.stateNode.containerInfo,wn=!0,sa(e,t,r),Kt=n,wn=i;break;case 0:case 11:case 14:case 15:if(!tr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&c1(r,t,o),i=i.next}while(i!==n)}sa(e,t,r);break;case 1:if(!tr&&(Il(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){dt(r,t,l)}sa(e,t,r);break;case 21:sa(e,t,r);break;case 22:r.mode&1?(tr=(n=tr)||r.memoizedState!==null,sa(e,t,r),tr=n):sa(e,t,r);break;default:sa(e,t,r)}}function kb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new $T),t.forEach(function(n){var i=YT.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function xn(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:Kt=l.stateNode,wn=!1;break e;case 3:Kt=l.stateNode.containerInfo,wn=!0;break e;case 4:Kt=l.stateNode.containerInfo,wn=!0;break e}l=l.return}if(Kt===null)throw Error(Y(160));R9(a,o,i),Kt=null,wn=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){dt(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)L9(t,e),t=t.sibling}function L9(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xn(t,e),Rn(e),n&4){try{Cu(3,e,e.return),Sh(3,e)}catch(v){dt(e,e.return,v)}try{Cu(5,e,e.return)}catch(v){dt(e,e.return,v)}}break;case 1:xn(t,e),Rn(e),n&512&&r!==null&&Il(r,r.return);break;case 5:if(xn(t,e),Rn(e),n&512&&r!==null&&Il(r,r.return),e.flags&32){var i=e.stateNode;try{Ru(i,"")}catch(v){dt(e,e.return,v)}}if(n&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=r!==null?r.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&o8(i,a),Rv(l,o);var u=Rv(l,a);for(o=0;o<s.length;o+=2){var c=s[o],f=s[o+1];c==="style"?f8(i,f):c==="dangerouslySetInnerHTML"?u8(i,f):c==="children"?Ru(i,f):Gg(i,c,f,u)}switch(l){case"input":Tv(i,a);break;case"textarea":l8(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var m=a.value;m!=null?Ll(i,!!a.multiple,m,!1):d!==!!a.multiple&&(a.defaultValue!=null?Ll(i,!!a.multiple,a.defaultValue,!0):Ll(i,!!a.multiple,a.multiple?[]:"",!1))}i[Vu]=a}catch(v){dt(e,e.return,v)}}break;case 6:if(xn(t,e),Rn(e),n&4){if(e.stateNode===null)throw Error(Y(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(v){dt(e,e.return,v)}}break;case 3:if(xn(t,e),Rn(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Fu(t.containerInfo)}catch(v){dt(e,e.return,v)}break;case 4:xn(t,e),Rn(e);break;case 13:xn(t,e),Rn(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(Oy=vt())),n&4&&kb(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(tr=(u=tr)||c,xn(t,e),tr=u):xn(t,e),Rn(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(ae=e,c=e.child;c!==null;){for(f=ae=c;ae!==null;){switch(d=ae,m=d.child,d.tag){case 0:case 11:case 14:case 15:Cu(4,d,d.return);break;case 1:Il(d,d.return);var g=d.stateNode;if(typeof g.componentWillUnmount=="function"){n=d,r=d.return;try{t=n,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){dt(n,r,v)}}break;case 5:Il(d,d.return);break;case 22:if(d.memoizedState!==null){Pb(f);continue}}m!==null?(m.return=d,ae=m):Pb(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=f.stateNode,s=f.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=c8("display",o))}catch(v){dt(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){dt(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:xn(t,e),Rn(e),n&4&&kb(e);break;case 21:break;default:xn(t,e),Rn(e)}}function Rn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(z9(r)){var n=r;break e}r=r.return}throw Error(Y(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Ru(i,""),n.flags&=-33);var a=Sb(e);h1(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,l=Sb(e);d1(e,l,o);break;default:throw Error(Y(161))}}catch(s){dt(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function FT(e,t,r){ae=e,$9(e)}function $9(e,t,r){for(var n=(e.mode&1)!==0;ae!==null;){var i=ae,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||x0;if(!o){var l=i.alternate,s=l!==null&&l.memoizedState!==null||tr;l=x0;var u=tr;if(x0=o,(tr=s)&&!u)for(ae=i;ae!==null;)o=ae,s=o.child,o.tag===22&&o.memoizedState!==null?Eb(i):s!==null?(s.return=o,ae=s):Eb(i);for(;a!==null;)ae=a,$9(a),a=a.sibling;ae=i,x0=l,tr=u}Ab(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,ae=a):Ab(e)}}function Ab(e){for(;ae!==null;){var t=ae;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:tr||Sh(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!tr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:bn(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&sb(t,a,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}sb(t,o,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Fu(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Y(163))}tr||t.flags&512&&f1(t)}catch(d){dt(t,t.return,d)}}if(t===e){ae=null;break}if(r=t.sibling,r!==null){r.return=t.return,ae=r;break}ae=t.return}}function Pb(e){for(;ae!==null;){var t=ae;if(t===e){ae=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ae=r;break}ae=t.return}}function Eb(e){for(;ae!==null;){var t=ae;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Sh(4,t)}catch(s){dt(t,r,s)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(s){dt(t,i,s)}}var a=t.return;try{f1(t)}catch(s){dt(t,a,s)}break;case 5:var o=t.return;try{f1(t)}catch(s){dt(t,o,s)}}}catch(s){dt(t,t.return,s)}if(t===e){ae=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ae=l;break}ae=t.return}}var HT=Math.ceil,Vf=ea.ReactCurrentDispatcher,Py=ea.ReactCurrentOwner,sn=ea.ReactCurrentBatchConfig,Pe=0,Ft=null,bt=null,Xt=0,Rr=0,_l=Ya(0),jt=0,Qu=null,To=0,kh=0,Ey=0,ju=null,Sr=null,Oy=0,ls=1/0,wi=null,Kf=!1,m1=null,Ma=null,b0=!1,ka=null,Gf=0,Nu=0,p1=null,hf=-1,mf=0;function pr(){return Pe&6?vt():hf!==-1?hf:hf=vt()}function Ta(e){return e.mode&1?Pe&2&&Xt!==0?Xt&-Xt:PT.transition!==null?(mf===0&&(mf=k8()),mf):(e=Ne,e!==0||(e=window.event,e=e===void 0?16:N8(e.type)),e):1}function Cn(e,t,r,n){if(50<Nu)throw Nu=0,p1=null,Error(Y(185));Pc(e,r,n),(!(Pe&2)||e!==Ft)&&(e===Ft&&(!(Pe&2)&&(kh|=r),jt===4&&ba(e,Xt)),Nr(e,n),r===1&&Pe===0&&!(t.mode&1)&&(ls=vt()+500,xh&&Xa()))}function Nr(e,t){var r=e.callbackNode;PM(e,t);var n=Mf(e,e===Ft?Xt:0);if(n===0)r!==null&&Dx(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Dx(r),t===1)e.tag===0?AT(Ob.bind(null,e)):Y8(Ob.bind(null,e)),bT(function(){!(Pe&6)&&Xa()}),r=null;else{switch(A8(n)){case 1:r=Jg;break;case 4:r=w8;break;case 16:r=Nf;break;case 536870912:r=S8;break;default:r=Nf}r=K9(r,B9.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function B9(e,t){if(hf=-1,mf=0,Pe&6)throw Error(Y(327));var r=e.callbackNode;if(Wl()&&e.callbackNode!==r)return null;var n=Mf(e,e===Ft?Xt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Yf(e,n);else{t=n;var i=Pe;Pe|=2;var a=H9();(Ft!==e||Xt!==t)&&(wi=null,ls=vt()+500,ko(e,t));do try{qT();break}catch(l){F9(e,l)}while(!0);dy(),Vf.current=a,Pe=i,bt!==null?t=0:(Ft=null,Xt=0,t=jt)}if(t!==0){if(t===2&&(i=Hv(e),i!==0&&(n=i,t=v1(e,i))),t===1)throw r=Qu,ko(e,0),ba(e,n),Nr(e,vt()),r;if(t===6)ba(e,n);else{if(i=e.current.alternate,!(n&30)&&!WT(i)&&(t=Yf(e,n),t===2&&(a=Hv(e),a!==0&&(n=a,t=v1(e,a))),t===1))throw r=Qu,ko(e,0),ba(e,n),Nr(e,vt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(Y(345));case 2:uo(e,Sr,wi);break;case 3:if(ba(e,n),(n&130023424)===n&&(t=Oy+500-vt(),10<t)){if(Mf(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){pr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Xv(uo.bind(null,e,Sr,wi),t);break}uo(e,Sr,wi);break;case 4:if(ba(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-On(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=vt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*HT(n/1960))-n,10<n){e.timeoutHandle=Xv(uo.bind(null,e,Sr,wi),n);break}uo(e,Sr,wi);break;case 5:uo(e,Sr,wi);break;default:throw Error(Y(329))}}}return Nr(e,vt()),e.callbackNode===r?B9.bind(null,e):null}function v1(e,t){var r=ju;return e.current.memoizedState.isDehydrated&&(ko(e,t).flags|=256),e=Yf(e,t),e!==2&&(t=Sr,Sr=r,t!==null&&g1(t)),e}function g1(e){Sr===null?Sr=e:Sr.push.apply(Sr,e)}function WT(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!jn(a(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ba(e,t){for(t&=~Ey,t&=~kh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-On(t),n=1<<r;e[r]=-1,t&=~n}}function Ob(e){if(Pe&6)throw Error(Y(327));Wl();var t=Mf(e,0);if(!(t&1))return Nr(e,vt()),null;var r=Yf(e,t);if(e.tag!==0&&r===2){var n=Hv(e);n!==0&&(t=n,r=v1(e,n))}if(r===1)throw r=Qu,ko(e,0),ba(e,t),Nr(e,vt()),r;if(r===6)throw Error(Y(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,uo(e,Sr,wi),Nr(e,vt()),null}function Cy(e,t){var r=Pe;Pe|=1;try{return e(t)}finally{Pe=r,Pe===0&&(ls=vt()+500,xh&&Xa())}}function Io(e){ka!==null&&ka.tag===0&&!(Pe&6)&&Wl();var t=Pe;Pe|=1;var r=sn.transition,n=Ne;try{if(sn.transition=null,Ne=1,e)return e()}finally{Ne=n,sn.transition=r,Pe=t,!(Pe&6)&&Xa()}}function jy(){Rr=_l.current,Ke(_l)}function ko(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,xT(r)),bt!==null)for(r=bt.return;r!==null;){var n=r;switch(uy(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&zf();break;case 3:as(),Ke(Cr),Ke(ar),yy();break;case 5:gy(n);break;case 4:as();break;case 13:Ke(rt);break;case 19:Ke(rt);break;case 10:hy(n.type._context);break;case 22:case 23:jy()}r=r.return}if(Ft=e,bt=e=Ia(e.current,null),Xt=Rr=t,jt=0,Qu=null,Ey=kh=To=0,Sr=ju=null,po!==null){for(t=0;t<po.length;t++)if(r=po[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var o=a.next;a.next=i,n.next=o}r.pending=n}po=null}return e}function F9(e,t){do{var r=bt;try{if(dy(),cf.current=qf,Uf){for(var n=at.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Uf=!1}if(Mo=0,Bt=Et=at=null,Ou=!1,Yu=0,Py.current=null,r===null||r.return===null){jt=1,Qu=t,bt=null;break}e:{var a=e,o=r.return,l=r,s=t;if(t=Xt,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=mb(o);if(m!==null){m.flags&=-257,pb(m,o,l,a,t),m.mode&1&&hb(a,u,t),t=m,s=u;var g=t.updateQueue;if(g===null){var v=new Set;v.add(s),t.updateQueue=v}else g.add(s);break e}else{if(!(t&1)){hb(a,u,t),Ny();break e}s=Error(Y(426))}}else if(Qe&&l.mode&1){var x=mb(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),pb(x,o,l,a,t),cy(os(s,l));break e}}a=s=os(s,l),jt!==4&&(jt=2),ju===null?ju=[a]:ju.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var y=A9(a,s,t);lb(a,y);break e;case 1:l=s;var w=a.type,S=a.stateNode;if(!(a.flags&128)&&(typeof w.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Ma===null||!Ma.has(S)))){a.flags|=65536,t&=-t,a.lanes|=t;var A=P9(a,l,t);lb(a,A);break e}}a=a.return}while(a!==null)}U9(r)}catch(P){t=P,bt===r&&r!==null&&(bt=r=r.return);continue}break}while(!0)}function H9(){var e=Vf.current;return Vf.current=qf,e===null?qf:e}function Ny(){(jt===0||jt===3||jt===2)&&(jt=4),Ft===null||!(To&268435455)&&!(kh&268435455)||ba(Ft,Xt)}function Yf(e,t){var r=Pe;Pe|=2;var n=H9();(Ft!==e||Xt!==t)&&(wi=null,ko(e,t));do try{UT();break}catch(i){F9(e,i)}while(!0);if(dy(),Pe=r,Vf.current=n,bt!==null)throw Error(Y(261));return Ft=null,Xt=0,jt}function UT(){for(;bt!==null;)W9(bt)}function qT(){for(;bt!==null&&!vM();)W9(bt)}function W9(e){var t=V9(e.alternate,e,Rr);e.memoizedProps=e.pendingProps,t===null?U9(e):bt=t,Py.current=null}function U9(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=LT(r,t),r!==null){r.flags&=32767,bt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{jt=6,bt=null;return}}else if(r=RT(r,t,Rr),r!==null){bt=r;return}if(t=t.sibling,t!==null){bt=t;return}bt=t=e}while(t!==null);jt===0&&(jt=5)}function uo(e,t,r){var n=Ne,i=sn.transition;try{sn.transition=null,Ne=1,VT(e,t,r,n)}finally{sn.transition=i,Ne=n}return null}function VT(e,t,r,n){do Wl();while(ka!==null);if(Pe&6)throw Error(Y(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Y(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(EM(e,a),e===Ft&&(bt=Ft=null,Xt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||b0||(b0=!0,K9(Nf,function(){return Wl(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=sn.transition,sn.transition=null;var o=Ne;Ne=1;var l=Pe;Pe|=4,Py.current=null,BT(e,r),L9(r,e),dT(Gv),Tf=!!Kv,Gv=Kv=null,e.current=r,FT(r),gM(),Pe=l,Ne=o,sn.transition=a}else e.current=r;if(b0&&(b0=!1,ka=e,Gf=i),a=e.pendingLanes,a===0&&(Ma=null),bM(r.stateNode),Nr(e,vt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Kf)throw Kf=!1,e=m1,m1=null,e;return Gf&1&&e.tag!==0&&Wl(),a=e.pendingLanes,a&1?e===p1?Nu++:(Nu=0,p1=e):Nu=0,Xa(),null}function Wl(){if(ka!==null){var e=A8(Gf),t=sn.transition,r=Ne;try{if(sn.transition=null,Ne=16>e?16:e,ka===null)var n=!1;else{if(e=ka,ka=null,Gf=0,Pe&6)throw Error(Y(331));var i=Pe;for(Pe|=4,ae=e.current;ae!==null;){var a=ae,o=a.child;if(ae.flags&16){var l=a.deletions;if(l!==null){for(var s=0;s<l.length;s++){var u=l[s];for(ae=u;ae!==null;){var c=ae;switch(c.tag){case 0:case 11:case 15:Cu(8,c,a)}var f=c.child;if(f!==null)f.return=c,ae=f;else for(;ae!==null;){c=ae;var d=c.sibling,m=c.return;if(D9(c),c===u){ae=null;break}if(d!==null){d.return=m,ae=d;break}ae=m}}}var g=a.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var x=v.sibling;v.sibling=null,v=x}while(v!==null)}}ae=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,ae=o;else e:for(;ae!==null;){if(a=ae,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Cu(9,a,a.return)}var y=a.sibling;if(y!==null){y.return=a.return,ae=y;break e}ae=a.return}}var w=e.current;for(ae=w;ae!==null;){o=ae;var S=o.child;if(o.subtreeFlags&2064&&S!==null)S.return=o,ae=S;else e:for(o=w;ae!==null;){if(l=ae,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Sh(9,l)}}catch(P){dt(l,l.return,P)}if(l===o){ae=null;break e}var A=l.sibling;if(A!==null){A.return=l.return,ae=A;break e}ae=l.return}}if(Pe=i,Xa(),Qn&&typeof Qn.onPostCommitFiberRoot=="function")try{Qn.onPostCommitFiberRoot(mh,e)}catch{}n=!0}return n}finally{Ne=r,sn.transition=t}}return!1}function Cb(e,t,r){t=os(r,t),t=A9(e,t,1),e=Na(e,t,1),t=pr(),e!==null&&(Pc(e,1,t),Nr(e,t))}function dt(e,t,r){if(e.tag===3)Cb(e,e,r);else for(;t!==null;){if(t.tag===3){Cb(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ma===null||!Ma.has(n))){e=os(r,e),e=P9(t,e,1),t=Na(t,e,1),e=pr(),t!==null&&(Pc(t,1,e),Nr(t,e));break}}t=t.return}}function KT(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=pr(),e.pingedLanes|=e.suspendedLanes&r,Ft===e&&(Xt&r)===r&&(jt===4||jt===3&&(Xt&130023424)===Xt&&500>vt()-Oy?ko(e,0):Ey|=r),Nr(e,t)}function q9(e,t){t===0&&(e.mode&1?(t=c0,c0<<=1,!(c0&130023424)&&(c0=4194304)):t=1);var r=pr();e=Hi(e,t),e!==null&&(Pc(e,t,r),Nr(e,r))}function GT(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),q9(e,r)}function YT(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Y(314))}n!==null&&n.delete(t),q9(e,r)}var V9;V9=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Cr.current)kr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return kr=!1,zT(e,t,r);kr=!!(e.flags&131072)}else kr=!1,Qe&&t.flags&1048576&&X8(t,$f,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;df(e,t),e=t.pendingProps;var i=rs(t,ar.current);Hl(t,r),i=by(null,t,n,e,i,r);var a=wy();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jr(n)?(a=!0,Rf(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,py(t),i.updater=wh,t.stateNode=i,i._reactInternals=t,n1(t,n,e,r),t=o1(null,t,n,!0,a,r)):(t.tag=0,Qe&&a&&sy(t),cr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(df(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=ZT(n),e=bn(n,e),i){case 0:t=a1(null,t,n,e,r);break e;case 1:t=yb(null,t,n,e,r);break e;case 11:t=vb(null,t,n,e,r);break e;case 14:t=gb(null,t,n,bn(n.type,e),r);break e}throw Error(Y(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:bn(n,i),a1(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:bn(n,i),yb(e,t,n,i,r);case 3:e:{if(j9(t),e===null)throw Error(Y(387));n=t.pendingProps,a=t.memoizedState,i=a.element,r9(e,t),Hf(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=os(Error(Y(423)),t),t=xb(e,t,n,r,i);break e}else if(n!==i){i=os(Error(Y(424)),t),t=xb(e,t,n,r,i);break e}else for(Fr=ja(t.stateNode.containerInfo.firstChild),Wr=t,Qe=!0,kn=null,r=e9(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ns(),n===i){t=Wi(e,t,r);break e}cr(e,t,n,r)}t=t.child}return t;case 5:return n9(t),e===null&&e1(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Yv(n,i)?o=null:a!==null&&Yv(n,a)&&(t.flags|=32),C9(e,t),cr(e,t,o,r),t.child;case 6:return e===null&&e1(t),null;case 13:return N9(e,t,r);case 4:return vy(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=is(t,null,n,r):cr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:bn(n,i),vb(e,t,n,i,r);case 7:return cr(e,t,t.pendingProps,r),t.child;case 8:return cr(e,t,t.pendingProps.children,r),t.child;case 12:return cr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,$e(Bf,n._currentValue),n._currentValue=o,a!==null)if(jn(a.value,o)){if(a.children===i.children&&!Cr.current){t=Wi(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(a.tag===1){s=Ii(-1,r&-r),s.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),t1(a.return,r,t),l.lanes|=r;break}s=s.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Y(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),t1(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}cr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Hl(t,r),i=cn(i),n=n(i),t.flags|=1,cr(e,t,n,r),t.child;case 14:return n=t.type,i=bn(n,t.pendingProps),i=bn(n.type,i),gb(e,t,n,i,r);case 15:return E9(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:bn(n,i),df(e,t),t.tag=1,jr(n)?(e=!0,Rf(t)):e=!1,Hl(t,r),k9(t,n,i),n1(t,n,i,r),o1(null,t,n,!0,e,r);case 19:return M9(e,t,r);case 22:return O9(e,t,r)}throw Error(Y(156,t.tag))};function K9(e,t){return b8(e,t)}function XT(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(e,t,r,n){return new XT(e,t,r,n)}function My(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ZT(e){if(typeof e=="function")return My(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xg)return 11;if(e===Zg)return 14}return 2}function Ia(e,t){var r=e.alternate;return r===null?(r=rn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function pf(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")My(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Al:return Ao(r.children,i,a,t);case Yg:o=8,i|=8;break;case Ov:return e=rn(12,r,t,i|2),e.elementType=Ov,e.lanes=a,e;case Cv:return e=rn(13,r,t,i),e.elementType=Cv,e.lanes=a,e;case jv:return e=rn(19,r,t,i),e.elementType=jv,e.lanes=a,e;case n8:return Ah(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case t8:o=10;break e;case r8:o=9;break e;case Xg:o=11;break e;case Zg:o=14;break e;case pa:o=16,n=null;break e}throw Error(Y(130,e==null?e:typeof e,""))}return t=rn(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Ao(e,t,r,n){return e=rn(7,e,n,t),e.lanes=r,e}function Ah(e,t,r,n){return e=rn(22,e,n,t),e.elementType=n8,e.lanes=r,e.stateNode={isHidden:!1},e}function xp(e,t,r){return e=rn(6,e,null,t),e.lanes=r,e}function bp(e,t,r){return t=rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QT(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ep(0),this.expirationTimes=ep(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ep(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ty(e,t,r,n,i,a,o,l,s){return e=new QT(e,t,r,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=rn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},py(a),e}function JT(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kl,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function G9(e){if(!e)return $a;e=e._reactInternals;e:{if(Zo(e)!==e||e.tag!==1)throw Error(Y(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Y(171))}if(e.tag===1){var r=e.type;if(jr(r))return G8(e,r,t)}return t}function Y9(e,t,r,n,i,a,o,l,s){return e=Ty(r,n,!0,e,i,a,o,l,s),e.context=G9(null),r=e.current,n=pr(),i=Ta(r),a=Ii(n,i),a.callback=t??null,Na(r,a,i),e.current.lanes=i,Pc(e,i,n),Nr(e,n),e}function Ph(e,t,r,n){var i=t.current,a=pr(),o=Ta(i);return r=G9(r),t.context===null?t.context=r:t.pendingContext=r,t=Ii(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Na(i,t,o),e!==null&&(Cn(e,i,o,a),uf(e,i,o)),o}function Xf(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function jb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Iy(e,t){jb(e,t),(e=e.alternate)&&jb(e,t)}function eI(){return null}var X9=typeof reportError=="function"?reportError:function(e){console.error(e)};function _y(e){this._internalRoot=e}Eh.prototype.render=_y.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Y(409));Ph(e,t,null,null)};Eh.prototype.unmount=_y.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Io(function(){Ph(null,e,null,null)}),t[Fi]=null}};function Eh(e){this._internalRoot=e}Eh.prototype.unstable_scheduleHydration=function(e){if(e){var t=O8();e={blockedOn:null,target:e,priority:t};for(var r=0;r<xa.length&&t!==0&&t<xa[r].priority;r++);xa.splice(r,0,e),r===0&&j8(e)}};function Dy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Oh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Nb(){}function tI(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var u=Xf(o);a.call(u)}}var o=Y9(t,n,e,0,null,!1,!1,"",Nb);return e._reactRootContainer=o,e[Fi]=o.current,Uu(e.nodeType===8?e.parentNode:e),Io(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var l=n;n=function(){var u=Xf(s);l.call(u)}}var s=Ty(e,0,!1,null,null,!1,!1,"",Nb);return e._reactRootContainer=s,e[Fi]=s.current,Uu(e.nodeType===8?e.parentNode:e),Io(function(){Ph(t,s,r,n)}),s}function Ch(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var l=i;i=function(){var s=Xf(o);l.call(s)}}Ph(t,o,e,i)}else o=tI(r,t,e,i,n);return Xf(o)}P8=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=vu(t.pendingLanes);r!==0&&(ey(t,r|1),Nr(t,vt()),!(Pe&6)&&(ls=vt()+500,Xa()))}break;case 13:Io(function(){var n=Hi(e,1);if(n!==null){var i=pr();Cn(n,e,1,i)}}),Iy(e,1)}};ty=function(e){if(e.tag===13){var t=Hi(e,134217728);if(t!==null){var r=pr();Cn(t,e,134217728,r)}Iy(e,134217728)}};E8=function(e){if(e.tag===13){var t=Ta(e),r=Hi(e,t);if(r!==null){var n=pr();Cn(r,e,t,n)}Iy(e,t)}};O8=function(){return Ne};C8=function(e,t){var r=Ne;try{return Ne=e,t()}finally{Ne=r}};$v=function(e,t,r){switch(t){case"input":if(Tv(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=yh(n);if(!i)throw Error(Y(90));a8(n),Tv(n,i)}}}break;case"textarea":l8(e,r);break;case"select":t=r.value,t!=null&&Ll(e,!!r.multiple,t,!1)}};m8=Cy;p8=Io;var rI={usingClientEntryPoint:!1,Events:[Oc,Cl,yh,d8,h8,Cy]},Js={findFiberByHostInstance:mo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nI={bundleType:Js.bundleType,version:Js.version,rendererPackageName:Js.rendererPackageName,rendererConfig:Js.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ea.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=y8(e),e===null?null:e.stateNode},findFiberByHostInstance:Js.findFiberByHostInstance||eI,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 w0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!w0.isDisabled&&w0.supportsFiber)try{mh=w0.inject(nI),Qn=w0}catch{}}Gr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rI;Gr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dy(t))throw Error(Y(200));return JT(e,t,null,r)};Gr.createRoot=function(e,t){if(!Dy(e))throw Error(Y(299));var r=!1,n="",i=X9;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ty(e,1,!1,null,null,r,!1,n,i),e[Fi]=t.current,Uu(e.nodeType===8?e.parentNode:e),new _y(t)};Gr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Y(188)):(e=Object.keys(e).join(","),Error(Y(268,e)));return e=y8(t),e=e===null?null:e.stateNode,e};Gr.flushSync=function(e){return Io(e)};Gr.hydrate=function(e,t,r){if(!Oh(t))throw Error(Y(200));return Ch(null,e,t,!0,r)};Gr.hydrateRoot=function(e,t,r){if(!Dy(e))throw Error(Y(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=X9;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=Y9(t,null,e,1,r??null,i,!1,a,o),e[Fi]=t.current,Uu(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Eh(t)};Gr.render=function(e,t,r){if(!Oh(t))throw Error(Y(200));return Ch(null,e,t,!1,r)};Gr.unmountComponentAtNode=function(e){if(!Oh(e))throw Error(Y(40));return e._reactRootContainer?(Io(function(){Ch(null,null,e,!1,function(){e._reactRootContainer=null,e[Fi]=null})}),!0):!1};Gr.unstable_batchedUpdates=Cy;Gr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Oh(r))throw Error(Y(200));if(e==null||e._reactInternals===void 0)throw Error(Y(38));return Ch(e,t,r,!1,n)};Gr.version="18.3.1-next-f1338f8080-20240426";function Z9(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Z9)}catch(e){console.error(e)}}Z9(),Zw.exports=Gr;var Es=Zw.exports;const iI=Bg(Es);var Mb=Es;Pv.createRoot=Mb.createRoot,Pv.hydrateRoot=Mb.hydrateRoot;function nt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function aI(e,t){const r=p.createContext(t),n=a=>{const{children:o,...l}=a,s=p.useMemo(()=>l,Object.values(l));return h.jsx(r.Provider,{value:s,children:o})};n.displayName=e+"Provider";function i(a){const o=p.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,i]}function Os(e,t=[]){let r=[];function n(a,o){const l=p.createContext(o),s=r.length;r=[...r,o];const u=f=>{var y;const{scope:d,children:m,...g}=f,v=((y=d==null?void 0:d[e])==null?void 0:y[s])||l,x=p.useMemo(()=>g,Object.values(g));return h.jsx(v.Provider,{value:x,children:m})};u.displayName=a+"Provider";function c(f,d){var v;const m=((v=d==null?void 0:d[e])==null?void 0:v[s])||l,g=p.useContext(m);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,c]}const i=()=>{const a=r.map(o=>p.createContext(o));return function(l){const s=(l==null?void 0:l[e])||a;return p.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return i.scopeName=e,[n,oI(i,...t)]}function oI(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((l,{useScope:s,scopeName:u})=>{const f=s(a)[`__scope${u}`];return{...l,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function Tb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Q9(...e){return t=>{let r=!1;const n=e.map(i=>{const a=Tb(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():Tb(e[i],null)}}}}function _r(...e){return p.useCallback(Q9(...e),e)}function Ju(e){const t=sI(e),r=p.forwardRef((n,i)=>{const{children:a,...o}=n,l=p.Children.toArray(a),s=l.find(cI);if(s){const u=s.props.children,c=l.map(f=>f===s?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:f);return h.jsx(t,{...o,ref:i,children:p.isValidElement(u)?p.cloneElement(u,void 0,c):null})}return h.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var lI=Ju("Slot");function sI(e){const t=p.forwardRef((r,n)=>{const{children:i,...a}=r;if(p.isValidElement(i)){const o=dI(i),l=fI(a,i.props);return i.type!==p.Fragment&&(l.ref=n?Q9(n,o):o),p.cloneElement(i,l)}return p.Children.count(i)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var J9=Symbol("radix.slottable");function uI(e){const t=({children:r})=>h.jsx(h.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=J9,t}function cI(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===J9}function fI(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...l)=>{const s=a(...l);return i(...l),s}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function dI(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function hI(e){const t=e+"CollectionProvider",[r,n]=Os(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:x,children:y}=v,w=bi.useRef(null),S=bi.useRef(new Map).current;return h.jsx(i,{scope:x,itemMap:S,collectionRef:w,children:y})};o.displayName=t;const l=e+"CollectionSlot",s=Ju(l),u=bi.forwardRef((v,x)=>{const{scope:y,children:w}=v,S=a(l,y),A=_r(x,S.collectionRef);return h.jsx(s,{ref:A,children:w})});u.displayName=l;const c=e+"CollectionItemSlot",f="data-radix-collection-item",d=Ju(c),m=bi.forwardRef((v,x)=>{const{scope:y,children:w,...S}=v,A=bi.useRef(null),P=_r(x,A),O=a(c,y);return bi.useEffect(()=>(O.itemMap.set(A,{ref:A,...S}),()=>void O.itemMap.delete(A))),h.jsx(d,{[f]:"",ref:P,children:w})});m.displayName=c;function g(v){const x=a(e+"CollectionConsumer",v);return bi.useCallback(()=>{const w=x.collectionRef.current;if(!w)return[];const S=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((O,j)=>S.indexOf(O.ref.current)-S.indexOf(j.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:u,ItemSlot:m},g,n]}var Ba=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},mI=qg[" useId ".trim().toString()]||(()=>{}),pI=0;function Ul(e){const[t,r]=p.useState(mI());return Ba(()=>{r(n=>n??String(pI++))},[e]),t?`radix-${t}`:""}var vI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],St=vI.reduce((e,t)=>{const r=Ju(`Primitive.${t}`),n=p.forwardRef((i,a)=>{const{asChild:o,...l}=i,s=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function gI(e,t){e&&Es.flushSync(()=>e.dispatchEvent(t))}function _o(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var yI=qg[" useInsertionEffect ".trim().toString()]||Ba;function jh({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,a,o]=xI({defaultProp:t,onChange:r}),l=e!==void 0,s=l?e:i;{const c=p.useRef(e!==void 0);p.useEffect(()=>{const f=c.current;f!==l&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=l},[l,n])}const u=p.useCallback(c=>{var f;if(l){const d=bI(c)?c(e):c;d!==e&&((f=o.current)==null||f.call(o,d))}else a(c)},[l,e,a,o]);return[s,u]}function xI({defaultProp:e,onChange:t}){const[r,n]=p.useState(e),i=p.useRef(r),a=p.useRef(t);return yI(()=>{a.current=t},[t]),p.useEffect(()=>{var o;i.current!==r&&((o=a.current)==null||o.call(a,r),i.current=r)},[r,i]),[r,n,a]}function bI(e){return typeof e=="function"}var wI=p.createContext(void 0);function eS(e){const t=p.useContext(wI);return e||t||"ltr"}var wp="rovingFocusGroup.onEntryFocus",SI={bubbles:!1,cancelable:!0},jc="RovingFocusGroup",[y1,tS,kI]=hI(jc),[AI,rS]=Os(jc,[kI]),[PI,EI]=AI(jc),nS=p.forwardRef((e,t)=>h.jsx(y1.Provider,{scope:e.__scopeRovingFocusGroup,children:h.jsx(y1.Slot,{scope:e.__scopeRovingFocusGroup,children:h.jsx(OI,{...e,ref:t})})}));nS.displayName=jc;var OI=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...f}=e,d=p.useRef(null),m=_r(t,d),g=eS(a),[v,x]=jh({prop:o,defaultProp:l??null,onChange:s,caller:jc}),[y,w]=p.useState(!1),S=_o(u),A=tS(r),P=p.useRef(!1),[O,j]=p.useState(0);return p.useEffect(()=>{const N=d.current;if(N)return N.addEventListener(wp,S),()=>N.removeEventListener(wp,S)},[S]),h.jsx(PI,{scope:r,orientation:n,dir:g,loop:i,currentTabStopId:v,onItemFocus:p.useCallback(N=>x(N),[x]),onItemShiftTab:p.useCallback(()=>w(!0),[]),onFocusableItemAdd:p.useCallback(()=>j(N=>N+1),[]),onFocusableItemRemove:p.useCallback(()=>j(N=>N-1),[]),children:h.jsx(St.div,{tabIndex:y||O===0?-1:0,"data-orientation":n,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:nt(e.onMouseDown,()=>{P.current=!0}),onFocus:nt(e.onFocus,N=>{const _=!P.current;if(N.target===N.currentTarget&&_&&!y){const z=new CustomEvent(wp,SI);if(N.currentTarget.dispatchEvent(z),!z.defaultPrevented){const R=A().filter(X=>X.focusable),I=R.find(X=>X.active),F=R.find(X=>X.id===v),Z=[I,F,...R].filter(Boolean).map(X=>X.ref.current);oS(Z,c)}}P.current=!1}),onBlur:nt(e.onBlur,()=>w(!1))})})}),iS="RovingFocusGroupItem",aS=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:a,children:o,...l}=e,s=Ul(),u=a||s,c=EI(iS,r),f=c.currentTabStopId===u,d=tS(r),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:v}=c;return p.useEffect(()=>{if(n)return m(),()=>g()},[n,m,g]),h.jsx(y1.ItemSlot,{scope:r,id:u,focusable:n,active:i,children:h.jsx(St.span,{tabIndex:f?0:-1,"data-orientation":c.orientation,...l,ref:t,onMouseDown:nt(e.onMouseDown,x=>{n?c.onItemFocus(u):x.preventDefault()}),onFocus:nt(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:nt(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){c.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const y=NI(x,c.orientation,c.dir);if(y!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let S=d().filter(A=>A.focusable).map(A=>A.ref.current);if(y==="last")S.reverse();else if(y==="prev"||y==="next"){y==="prev"&&S.reverse();const A=S.indexOf(x.currentTarget);S=c.loop?MI(S,A+1):S.slice(A+1)}setTimeout(()=>oS(S))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:v!=null}):o})})});aS.displayName=iS;var CI={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function jI(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function NI(e,t,r){const n=jI(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return CI[n]}function oS(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function MI(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var TI=nS,II=aS;function _I(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var Qo=e=>{const{present:t,children:r}=e,n=DI(t),i=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),a=_r(n.ref,zI(i));return typeof r=="function"||n.isPresent?p.cloneElement(i,{ref:a}):null};Qo.displayName="Presence";function DI(e){const[t,r]=p.useState(),n=p.useRef(null),i=p.useRef(e),a=p.useRef("none"),o=e?"mounted":"unmounted",[l,s]=_I(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=S0(n.current);a.current=l==="mounted"?u:"none"},[l]),Ba(()=>{const u=n.current,c=i.current;if(c!==e){const d=a.current,m=S0(u);e?s("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&d!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,s]),Ba(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=m=>{const v=S0(n.current).includes(m.animationName);if(m.target===t&&v&&(s("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},d=m=>{m.target===t&&(a.current=S0(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function S0(e){return(e==null?void 0:e.animationName)||"none"}function zI(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Nh="Tabs",[RI]=Os(Nh,[rS]),lS=rS(),[LI,zy]=RI(Nh),sS=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:l,activationMode:s="automatic",...u}=e,c=eS(l),[f,d]=jh({prop:n,onChange:i,defaultProp:a??"",caller:Nh});return h.jsx(LI,{scope:r,baseId:Ul(),value:f,onValueChange:d,orientation:o,dir:c,activationMode:s,children:h.jsx(St.div,{dir:c,"data-orientation":o,...u,ref:t})})});sS.displayName=Nh;var uS="TabsList",cS=p.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...i}=e,a=zy(uS,r),o=lS(r);return h.jsx(TI,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:n,children:h.jsx(St.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});cS.displayName=uS;var fS="TabsTrigger",dS=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:i=!1,...a}=e,o=zy(fS,r),l=lS(r),s=pS(o.baseId,n),u=vS(o.baseId,n),c=n===o.value;return h.jsx(II,{asChild:!0,...l,focusable:!i,active:c,children:h.jsx(St.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:s,...a,ref:t,onMouseDown:nt(e.onMouseDown,f=>{!i&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:nt(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:nt(e.onFocus,()=>{const f=o.activationMode!=="manual";!c&&!i&&f&&o.onValueChange(n)})})})});dS.displayName=fS;var hS="TabsContent",mS=p.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:i,children:a,...o}=e,l=zy(hS,r),s=pS(l.baseId,n),u=vS(l.baseId,n),c=n===l.value,f=p.useRef(c);return p.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),h.jsx(Qo,{present:i||c,children:({present:d})=>h.jsx(St.div,{"data-state":c?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!d,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:d&&a})})});mS.displayName=hS;function pS(e,t){return`${e}-trigger-${t}`}function vS(e,t){return`${e}-content-${t}`}var $I=sS,gS=cS,yS=dS,xS=mS;function bS(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=bS(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Oe(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=bS(e))&&(n&&(n+=" "),n+=t);return n}const Ry="-",BI=e=>{const t=HI(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const l=o.split(Ry);return l[0]===""&&l.length!==1&&l.shift(),wS(l,t)||FI(o)},getConflictingClassGroupIds:(o,l)=>{const s=r[o]||[];return l&&n[o]?[...s,...n[o]]:s}}},wS=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?wS(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(Ry);return(o=t.validators.find(({validator:l})=>l(a)))==null?void 0:o.classGroupId},Ib=/^\[(.+)\]$/,FI=e=>{if(Ib.test(e)){const t=Ib.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},HI=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return UI(Object.entries(e.classGroups),r).forEach(([a,o])=>{x1(o,n,a,t)}),n},x1=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:_b(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(WI(i)){x1(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{x1(o,_b(t,a),r,n)})})},_b=(e,t)=>{let r=e;return t.split(Ry).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},WI=e=>e.isThemeGetter,UI=(e,t)=>t?e.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,l])=>[t+o,l])):a);return[r,i]}):e,qI=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){r.has(a)?r.set(a,o):i(a,o)}}},SS="!",VI=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=l=>{const s=[];let u=0,c=0,f;for(let x=0;x<l.length;x++){let y=l[x];if(u===0){if(y===i&&(n||l.slice(x,x+a)===t)){s.push(l.slice(c,x)),c=x+a;continue}if(y==="/"){f=x;continue}}y==="["?u++:y==="]"&&u--}const d=s.length===0?l:l.substring(c),m=d.startsWith(SS),g=m?d.substring(1):d,v=f&&f>c?f-c:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:v}};return r?l=>r({className:l,parseClassName:o}):o},KI=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},GI=e=>({cache:qI(e.cacheSize),parseClassName:VI(e),...BI(e)}),YI=/\s+/,XI=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(YI);let l="";for(let s=o.length-1;s>=0;s-=1){const u=o[s],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:m}=r(u);let g=!!m,v=n(g?d.substring(0,m):d);if(!v){if(!g){l=u+(l.length>0?" "+l:l);continue}if(v=n(d),!v){l=u+(l.length>0?" "+l:l);continue}g=!1}const x=KI(c).join(":"),y=f?x+SS:x,w=y+v;if(a.includes(w))continue;a.push(w);const S=i(v,g);for(let A=0;A<S.length;++A){const P=S[A];a.push(y+P)}l=u+(l.length>0?" "+l:l)}return l};function ZI(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=kS(t))&&(n&&(n+=" "),n+=r);return n}const kS=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=kS(e[n]))&&(r&&(r+=" "),r+=t);return r};function QI(e,...t){let r,n,i,a=o;function o(s){const u=t.reduce((c,f)=>f(c),e());return r=GI(u),n=r.cache.get,i=r.cache.set,a=l,l(s)}function l(s){const u=n(s);if(u)return u;const c=XI(s,r);return i(s,c),c}return function(){return a(ZI.apply(null,arguments))}}const We=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},AS=/^\[(?:([a-z-]+):)?(.+)\]$/i,JI=/^\d+\/\d+$/,e_=new Set(["px","full","screen"]),t_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,r_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,n_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,i_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,a_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gi=e=>ql(e)||e_.has(e)||JI.test(e),ua=e=>Cs(e,"length",h_),ql=e=>!!e&&!Number.isNaN(Number(e)),Sp=e=>Cs(e,"number",ql),eu=e=>!!e&&Number.isInteger(Number(e)),o_=e=>e.endsWith("%")&&ql(e.slice(0,-1)),ge=e=>AS.test(e),ca=e=>t_.test(e),l_=new Set(["length","size","percentage"]),s_=e=>Cs(e,l_,PS),u_=e=>Cs(e,"position",PS),c_=new Set(["image","url"]),f_=e=>Cs(e,c_,p_),d_=e=>Cs(e,"",m_),tu=()=>!0,Cs=(e,t,r)=>{const n=AS.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},h_=e=>r_.test(e)&&!n_.test(e),PS=()=>!1,m_=e=>i_.test(e),p_=e=>a_.test(e),v_=()=>{const e=We("colors"),t=We("spacing"),r=We("blur"),n=We("brightness"),i=We("borderColor"),a=We("borderRadius"),o=We("borderSpacing"),l=We("borderWidth"),s=We("contrast"),u=We("grayscale"),c=We("hueRotate"),f=We("invert"),d=We("gap"),m=We("gradientColorStops"),g=We("gradientColorStopPositions"),v=We("inset"),x=We("margin"),y=We("opacity"),w=We("padding"),S=We("saturate"),A=We("scale"),P=We("sepia"),O=We("skew"),j=We("space"),N=We("translate"),_=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",ge,t],I=()=>[ge,t],F=()=>["",gi,ua],H=()=>["auto",ql,ge],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",ge],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[ql,ge];return{cacheSize:500,separator:":",theme:{colors:[tu],spacing:[gi,ua],blur:["none","",ca,ge],brightness:le(),borderColor:[e],borderRadius:["none","","full",ca,ge],borderSpacing:I(),borderWidth:F(),contrast:le(),grayscale:W(),hueRotate:le(),invert:W(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[o_,ua],inset:R(),margin:R(),opacity:le(),padding:I(),saturate:le(),scale:le(),sepia:W(),skew:le(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[ca]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),ge]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",eu,ge]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ge]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",eu,ge]}],"grid-cols":[{"grid-cols":[tu]}],"col-start-end":[{col:["auto",{span:["full",eu,ge]},ge]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[tu]}],"row-start-end":[{row:["auto",{span:[eu,ge]},ge]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ge,t]}],"min-w":[{"min-w":[ge,t,"min","max","fit"]}],"max-w":[{"max-w":[ge,t,"none","full","min","max","fit","prose",{screen:[ca]},ca]}],h:[{h:[ge,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ge,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ca,ua]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Sp]}],"font-family":[{font:[tu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ge]}],"line-clamp":[{"line-clamp":["none",ql,Sp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",gi,ge]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",gi,ua]}],"underline-offset":[{"underline-offset":["auto",gi,ge]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),u_]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",s_]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},f_]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:X()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[gi,ge]}],"outline-w":[{outline:[gi,ua]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[gi,ua]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ca,d_]}],"shadow-color":[{shadow:[tu]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",ca,ge]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[S]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ge]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[eu,ge]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ge]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gi,ua,Sp]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},g_=QI(v_);function ne(...e){return g_(Oe(e))}const y_=$I,ES=p.forwardRef(({className:e,...t},r)=>h.jsx(gS,{ref:r,className:ne("grid w-full grid-cols-4 border-b border-rule text-muted-foreground lg:grid-cols-8",e),...t}));ES.displayName=gS.displayName;const OS=p.forwardRef(({className:e,...t},r)=>h.jsx(yS,{ref:r,className:ne("relative flex h-11 min-w-0 items-center gap-2 whitespace-nowrap border-l border-rule px-3 pt-[3px] text-xs font-semibold uppercase tracking-label transition-colors first:border-l-0 first:pl-0 max-lg:[&:nth-child(4n+1)]:border-l-0 max-lg:[&:nth-child(4n+1)]:pl-0","hover:bg-paper hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50","after:absolute after:inset-x-0 after:-bottom-px after:h-[2px] after:content-[''] aria-selected:text-foreground aria-selected:after:bg-ink",e),...t}));OS.displayName=yS.displayName;const xi=p.forwardRef(({className:e,...t},r)=>h.jsx(xS,{ref:r,className:ne("mt-6 focus-visible:outline-none",e),...t}));xi.displayName=xS.displayName;function x_(e,t=globalThis==null?void 0:globalThis.document){const r=_o(e);p.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var b_="DismissableLayer",b1="dismissableLayer.update",w_="dismissableLayer.pointerDownOutside",S_="dismissableLayer.focusOutside",Db,CS=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ly=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:l,...s}=e,u=p.useContext(CS),[c,f]=p.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=p.useState({}),g=_r(t,j=>f(j)),v=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(x),w=c?v.indexOf(c):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,A=w>=y,P=P_(j=>{const N=j.target,_=[...u.branches].some(z=>z.contains(N));!A||_||(i==null||i(j),o==null||o(j),j.defaultPrevented||l==null||l())},d),O=E_(j=>{const N=j.target;[...u.branches].some(z=>z.contains(N))||(a==null||a(j),o==null||o(j),j.defaultPrevented||l==null||l())},d);return x_(j=>{w===u.layers.size-1&&(n==null||n(j),!j.defaultPrevented&&l&&(j.preventDefault(),l()))},d),p.useEffect(()=>{if(c)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Db=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),zb(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Db)}},[c,d,r,u]),p.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),zb())},[c,u]),p.useEffect(()=>{const j=()=>m({});return document.addEventListener(b1,j),()=>document.removeEventListener(b1,j)},[]),h.jsx(St.div,{...s,ref:g,style:{pointerEvents:S?A?"auto":"none":void 0,...e.style},onFocusCapture:nt(e.onFocusCapture,O.onFocusCapture),onBlurCapture:nt(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:nt(e.onPointerDownCapture,P.onPointerDownCapture)})});Ly.displayName=b_;var k_="DismissableLayerBranch",A_=p.forwardRef((e,t)=>{const r=p.useContext(CS),n=p.useRef(null),i=_r(t,n);return p.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),h.jsx(St.div,{...e,ref:i})});A_.displayName=k_;function P_(e,t=globalThis==null?void 0:globalThis.document){const r=_o(e),n=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{const a=l=>{if(l.target&&!n.current){let s=function(){jS(w_,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=s,t.addEventListener("click",i.current,{once:!0})):s()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function E_(e,t=globalThis==null?void 0:globalThis.document){const r=_o(e),n=p.useRef(!1);return p.useEffect(()=>{const i=a=>{a.target&&!n.current&&jS(S_,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function zb(){const e=new CustomEvent(b1);document.dispatchEvent(e)}function jS(e,t,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?gI(i,a):i.dispatchEvent(a)}const O_=["top","right","bottom","left"],Fa=Math.min,_i=Math.max,Zf=Math.round,k0=Math.floor,Di=e=>({x:e,y:e}),C_={left:"right",right:"left",bottom:"top",top:"bottom"};function NS(e,t,r){return _i(e,Fa(t,r))}function Ui(e,t){return typeof e=="function"?e(t):e}function Ha(e){return e.split("-")[0]}function js(e){return e.split("-")[1]}function $y(e){return e==="x"?"y":"x"}function By(e){return e==="y"?"height":"width"}function Vn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Fy(e){return $y(Vn(e))}function j_(e,t,r){r===void 0&&(r=!1);const n=js(e),i=Fy(e),a=By(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Qf(o)),[o,Qf(o)]}function N_(e){const t=Qf(e);return[w1(e),t,w1(t)]}function w1(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Rb=["left","right"],Lb=["right","left"],M_=["top","bottom"],T_=["bottom","top"];function I_(e,t,r){switch(e){case"top":case"bottom":return r?t?Lb:Rb:t?Rb:Lb;case"left":case"right":return t?M_:T_;default:return[]}}function __(e,t,r,n){const i=js(e);let a=I_(Ha(e),r==="start",n);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(w1)))),a}function Qf(e){const t=Ha(e);return C_[t]+e.slice(t.length)}function D_(e){var t,r,n,i;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(i=e.left)!=null?i:0}}function MS(e){return typeof e!="number"?D_(e):{top:e,right:e,bottom:e,left:e}}function Jf(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function $b(e,t,r){let{reference:n,floating:i}=e;const a=Vn(t),o=Fy(t),l=By(o),s=Ha(t),u=a==="y",c=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,d=n[l]/2-i[l]/2;let m;switch(s){case"top":m={x:c,y:n.y-i.height};break;case"bottom":m={x:c,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:f};break;case"left":m={x:n.x-i.width,y:f};break;default:m={x:n.x,y:n.y}}const g=js(t);return g&&(m[o]+=d*(g==="end"?1:-1)*(r&&u?-1:1)),m}async function z_(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:a,rects:o,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:m=0}=Ui(t,e),g=MS(m),x=l[d?f==="floating"?"reference":"floating":f],y=Jf(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(x)))==null||r?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),w=f==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),A=await(a.isElement==null?void 0:a.isElement(S))&&await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1},P=Jf(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:S,strategy:s}):w);return{top:(y.top-P.top+g.top)/A.y,bottom:(P.bottom-y.bottom+g.bottom)/A.y,left:(y.left-P.left+g.left)/A.x,right:(P.right-y.right+g.right)/A.x}}const R_=50,L_=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,l=o.detectOverflow?o:{...o,detectOverflow:z_},s=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=$b(u,n,s),d=n,m=0;const g={};for(let v=0;v<a.length;v++){const x=a[v];if(!x)continue;const{name:y,fn:w}=x,{x:S,y:A,data:P,reset:O}=await w({x:c,y:f,initialPlacement:n,placement:d,strategy:i,middlewareData:g,rects:u,platform:l,elements:{reference:e,floating:t}});c=S??c,f=A??f,g[y]={...g[y],...P},O&&m<R_&&(m++,typeof O=="object"&&(O.placement&&(d=O.placement),O.rects&&(u=O.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:c,y:f}=$b(u,d,s)),v=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:g}},$_=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:a,platform:o,elements:l,middlewareData:s}=t,{element:u,padding:c=0}=Ui(e,t)||{};if(u==null)return{};const f=MS(c),d={x:r,y:n},m=Fy(i),g=By(m),v=await o.getDimensions(u),x=m==="y",y=x?"top":"left",w=x?"bottom":"right",S=x?"clientHeight":"clientWidth",A=a.reference[g]+a.reference[m]-d[m]-a.floating[g],P=d[m]-a.reference[m],O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let j=O?O[S]:0;(!j||!await(o.isElement==null?void 0:o.isElement(O)))&&(j=l.floating[S]||a.floating[g]);const N=A/2-P/2,_=j/2-v[g]/2-1,z=Fa(f[y],_),R=Fa(f[w],_),I=j-v[g]-R,F=j/2-v[g]/2+N,H=NS(z,F,I),Z=!s.arrow&&js(i)!=null&&F!==H&&a.reference[g]/2-(F<z?z:R)-v[g]/2<0,X=Z?F<z?F-z:F-I:0;return{[m]:d[m]+X,data:{[m]:H,centerOffset:F-H-X,...Z&&{alignmentOffset:X}},reset:Z}}}),B_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:a,rects:o,initialPlacement:l,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...x}=Ui(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=Ha(i),w=Vn(l),S=Ha(l)===l,A=await(s.isRTL==null?void 0:s.isRTL(u.floating)),P=d||(S||!v?[Qf(l)]:N_(l)),O=g!=="none";!d&&O&&P.push(...__(l,v,g,A));const j=[l,...P],N=await s.detectOverflow(t,x),_=[];let z=((n=a.flip)==null?void 0:n.overflows)||[];if(c&&_.push(N[y]),f){const H=j_(i,o,A);_.push(N[H[0]],N[H[1]])}if(z=[...z,{placement:i,overflows:_}],!_.every(H=>H<=0)){var R,I;const H=(((R=a.flip)==null?void 0:R.index)||0)+1,Z=j[H];if(Z&&(!(f==="alignment"?w!==Vn(Z):!1)||z.every(B=>Vn(B.placement)===w?B.overflows[0]>0:!0)))return{data:{index:H,overflows:z},reset:{placement:Z}};let X=(I=z.filter(re=>re.overflows[0]<=0).sort((re,B)=>re.overflows[1]-B.overflows[1])[0])==null?void 0:I.placement;if(!X)switch(m){case"bestFit":{var F;const re=(F=z.filter(B=>{if(O){const W=Vn(B.placement);return W===w||W==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(W=>W>0).reduce((W,K)=>W+K,0)]).sort((B,W)=>B[1]-W[1])[0])==null?void 0:F[0];re&&(X=re);break}case"initialPlacement":X=l;break}if(i!==X)return{reset:{placement:X}}}return{}}}};function Bb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Fb(e){return O_.some(t=>e[t]>=0)}const F_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:i="referenceHidden",...a}=Ui(e,t);switch(i){case"referenceHidden":{const o=await n.detectOverflow(t,{...a,elementContext:"reference"}),l=Bb(o,r.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Fb(l)}}}case"escaped":{const o=await n.detectOverflow(t,{...a,altBoundary:!0}),l=Bb(o,r.floating);return{data:{escapedOffsets:l,escaped:Fb(l)}}}default:return{}}}}},TS=new Set(["left","top"]);async function H_(e,t){const{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=Ha(r),l=js(r),s=Vn(r)==="y",u=TS.has(o)?-1:1,c=a&&s?-1:1,f=Ui(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof g=="number"&&(m=l==="end"?g*-1:g),s?{x:m*c,y:d*u}:{x:d*u,y:m*c}}const W_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:a,placement:o,middlewareData:l}=t,s=await H_(t,e);return o===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+s.x,y:a+s.y,data:{...s,placement:o}}}}},U_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:s={fn:w=>{let{x:S,y:A}=w;return{x:S,y:A}}},...u}=Ui(e,t),c={x:r,y:n},f=await a.detectOverflow(t,u),d=Vn(i),m=$y(d);let g=c[m],v=c[d];const x=(w,S)=>NS(S+f[w==="y"?"top":"left"],S,S-f[w==="y"?"bottom":"right"]);o&&(g=x(m,g)),l&&(v=x(d,v));const y=s.fn({...t,[m]:g,[d]:v});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[m]:o,[d]:l}}}}}},q_=function(e){return e===void 0&&(e={}),{options:e,fn(t){var r,n;const{x:i,y:a,placement:o,rects:l,middlewareData:s}=t,{offset:u=0,mainAxis:c=!0,crossAxis:f=!0}=Ui(e,t),d={x:i,y:a},m=Vn(o),g=$y(m);let v=d[g],x=d[m];const y=Ui(u,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:(r=y.mainAxis)!=null?r:0,crossAxis:(n=y.crossAxis)!=null?n:0};if(c){const P=g==="y"?"height":"width",O=l.reference[g]-l.floating[P]+w.mainAxis,j=l.reference[g]+l.reference[P]-w.mainAxis;v<O?v=O:v>j&&(v=j)}if(f){var S,A;const P=g==="y"?"width":"height",O=TS.has(Ha(o)),j=l.reference[m]-l.floating[P]+(O&&((S=s.offset)==null?void 0:S[m])||0)+(O?0:w.crossAxis),N=l.reference[m]+l.reference[P]+(O?0:((A=s.offset)==null?void 0:A[m])||0)-(O?w.crossAxis:0);x<j?x=j:x>N&&(x=N)}return{[g]:v,[m]:x}}}},V_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:i,elements:a}=t,{apply:o=()=>{},...l}=Ui(e,t),s=await i.detectOverflow(t,l),u=Ha(r),c=js(r),f=Vn(r)==="y",{width:d,height:m}=n.floating;let g,v;u==="top"||u==="bottom"?(g=u,v=c===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=u,g=c==="end"?"top":"bottom");const x=m-s.top-s.bottom,y=d-s.left-s.right,w=Fa(m-s[g],x),S=Fa(d-s[v],y),A=t.middlewareData.shift,P=!A;let O=w,j=S;A!=null&&A.enabled.x&&(j=y),A!=null&&A.enabled.y&&(O=x),P&&!c&&(f?j=d-2*_i(s.left,s.right):O=m-2*_i(s.top,s.bottom)),await o({...t,availableWidth:j,availableHeight:O});const N=await i.getDimensions(a.floating);return d!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function Mh(){return typeof window<"u"}function Ns(e){return IS(e)?(e.nodeName||"").toLowerCase():"#document"}function Mr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ta(e){var t;return(t=(IS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function IS(e){return Mh()?e instanceof Node||e instanceof Mr(e).Node:!1}function ri(e){return Mh()?e instanceof Element||e instanceof Mr(e).Element:!1}function Za(e){return Mh()?e instanceof HTMLElement||e instanceof Mr(e).HTMLElement:!1}function Hb(e){return!Mh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mr(e).ShadowRoot}function Th(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=ni(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function K_(e){return/^(table|td|th)$/.test(Ns(e))}function Ih(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const G_=/transform|translate|scale|rotate|perspective|filter/,Y_=/paint|layout|strict|content/,to=e=>!!e&&e!=="none";let kp;function Hy(e){const t=ri(e)?ni(e):e;return to(t.transform)||to(t.translate)||to(t.scale)||to(t.rotate)||to(t.perspective)||!Wy()&&(to(t.backdropFilter)||to(t.filter))||G_.test(t.willChange||"")||Y_.test(t.contain||"")}function X_(e){let t=Do(e);for(;Za(t)&&!ec(t);){if(Hy(t))return t;if(Ih(t))return null;t=Do(t)}return null}function Wy(){return kp==null&&(kp=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),kp}function ec(e){return/^(html|body|#document)$/.test(Ns(e))}function ni(e){return Mr(e).getComputedStyle(e)}function _h(e){return ri(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Do(e){if(Ns(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Hb(e)&&e.host||ta(e);return Hb(t)?t.host:t}function _S(e){const t=Do(e);return ec(t)?(e.ownerDocument||e).body:Za(t)&&Th(t)?t:_S(t)}function tc(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=_S(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),o=Mr(i);if(a){const l=S1(o);return t.concat(o,o.visualViewport||[],Th(i)?i:[],l&&r?tc(l):[])}else return t.concat(i,tc(i,[],r))}function S1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function DS(e){const t=ni(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Za(e),a=i?e.offsetWidth:r,o=i?e.offsetHeight:n,l=Zf(r)!==a||Zf(n)!==o;return l&&(r=a,n=o),{width:r,height:n,$:l}}function Uy(e){return ri(e)?e:e.contextElement}function Vl(e){const t=Uy(e);if(!Za(t))return Di(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:a}=DS(t);let o=(a?Zf(r.width):r.width)/n,l=(a?Zf(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Z_=Di(0);function zS(e){const t=Mr(e);return!Wy()||!t.visualViewport?Z_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Q_(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===Mr(e)}function zo(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=Uy(e);let o=Di(1);t&&(n?ri(n)&&(o=Vl(n)):o=Vl(e));const l=Q_(a,r,n)?zS(a):Di(0);let s=(i.left+l.x)/o.x,u=(i.top+l.y)/o.y,c=i.width/o.x,f=i.height/o.y;if(a&&n){const d=Mr(a),m=ri(n)?Mr(n):n;let g=d,v=S1(g);for(;v&&m!==g;){const x=Vl(v),y=v.getBoundingClientRect(),w=ni(v),S=y.left+(v.clientLeft+parseFloat(w.paddingLeft))*x.x,A=y.top+(v.clientTop+parseFloat(w.paddingTop))*x.y;s*=x.x,u*=x.y,c*=x.x,f*=x.y,s+=S,u+=A,g=Mr(v),v=S1(g)}}return Jf({width:c,height:f,x:s,y:u})}function Dh(e,t){const r=_h(e).scrollLeft;return t?t.left+r:zo(ta(e)).left+r}function RS(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Dh(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function J_(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const a=i==="fixed",o=ta(n),l=t?Ih(t.floating):!1;if(n===o||l&&a)return r;let s={scrollLeft:0,scrollTop:0},u=Di(1);const c=Di(0),f=Za(n);if((f||!a)&&((Ns(n)!=="body"||Th(o))&&(s=_h(n)),f)){const m=zo(n);u=Vl(n),c.x=m.x+n.clientLeft,c.y=m.y+n.clientTop}const d=o&&!f&&!a?RS(o,s):Di(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-s.scrollLeft*u.x+c.x+d.x,y:r.y*u.y-s.scrollTop*u.y+c.y+d.y}}function eD(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function tD(e){const t=_h(e),r=e.ownerDocument.body,n=_i(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=_i(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-t.scrollLeft+Dh(e);const o=-t.scrollTop;return ni(r).direction==="rtl"&&(a+=_i(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:a,y:o}}const rD=25;function nD(e,t,r){r===void 0&&(r="viewport");const n=r==="layoutViewport",i=Mr(e),a=ta(e),o=i.visualViewport;let l=a.clientWidth,s=a.clientHeight,u=0,c=0;if(o){const d=!Wy()||t==="fixed";n?d||(u=-o.offsetLeft,c=-o.offsetTop):(l=o.width,s=o.height,d&&(u=o.offsetLeft,c=o.offsetTop))}if(Dh(a)<=0){const d=a.ownerDocument,m=d.body,g=getComputedStyle(m),v=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,x=Math.abs(a.clientWidth-m.clientWidth-v),y=getComputedStyle(a).scrollbarGutter==="stable both-edges"?x/2:x;y<=rD&&(l-=y)}return{width:l,height:s,x:u,y:c}}function iD(e,t){const r=zo(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=Vl(e),o=e.clientWidth*a.x,l=e.clientHeight*a.y,s=i*a.x,u=n*a.y;return{width:o,height:l,x:s,y:u}}function Wb(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=nD(e,r,t);else if(t==="document")n=tD(ta(e));else if(ri(t))n=iD(t,r);else{const i=zS(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Jf(n)}function aD(e,t){const r=t.get(e);if(r)return r;let n=tc(e,[],!1).filter(l=>ri(l)&&Ns(l)!=="body"),i=null;const a=ni(e).position==="fixed";let o=a?Do(e):e;for(;ri(o)&&!ec(o);){const l=ni(o),s=Hy(o),u=i?i.position:a?"fixed":"";!s&&(u==="fixed"||u==="absolute"&&l.position==="static")?n=n.filter(f=>f!==o):i=l,o=Do(o)}return t.set(e,n),n}function oD(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?Ih(t)?[]:aD(t,this._c):[].concat(r),n],l=Wb(t,o[0],i);let s=l.top,u=l.right,c=l.bottom,f=l.left;for(let d=1;d<o.length;d++){const m=Wb(t,o[d],i);s=_i(m.top,s),u=Fa(m.right,u),c=Fa(m.bottom,c),f=_i(m.left,f)}return{width:u-f,height:c-s,x:f,y:s}}function lD(e){const{width:t,height:r}=DS(e);return{width:t,height:r}}function sD(e,t,r){const n=Za(t),i=ta(t),a=r==="fixed",o=zo(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=Di(0);if((n||!a)&&((Ns(t)!=="body"||Th(i))&&(l=_h(t)),n)){const d=zo(t,!0,a,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}!n&&i&&(s.x=Dh(i));const u=i&&!n&&!a?RS(i,l):Di(0),c=o.left+l.scrollLeft-s.x-u.x,f=o.top+l.scrollTop-s.y-u.y;return{x:c,y:f,width:o.width,height:o.height}}function Ap(e){return ni(e).position==="static"}function Ub(e,t){if(!Za(e)||ni(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ta(e)===r&&(r=r.ownerDocument.body),r}function LS(e,t){const r=Mr(e);if(Ih(e))return r;if(!Za(e)){let i=Do(e);for(;i&&!ec(i);){if(ri(i)&&!Ap(i))return i;i=Do(i)}return r}let n=Ub(e,t);for(;n&&K_(n)&&Ap(n);)n=Ub(n,t);return n&&ec(n)&&Ap(n)&&!Hy(n)?r:n||X_(e)||r}const uD=async function(e){const t=this.getOffsetParent||LS,r=this.getDimensions,n=await r(e.floating);return{reference:sD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function cD(e){return ni(e).direction==="rtl"}const fD={convertOffsetParentRelativeRectToViewportRelativeRect:J_,getDocumentElement:ta,getClippingRect:oD,getOffsetParent:LS,getElementRects:uD,getClientRects:eD,getDimensions:lD,getScale:Vl,isElement:ri,isRTL:cD};function $S(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function dD(e,t,r){let n=null,i;const a=ta(e);function o(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function l(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),o();const d=e.getBoundingClientRect(),{left:m,top:g,width:v,height:x}=d;if(c||t(),!v||!x)return;const y=k0(g),w=k0(a.clientWidth-(m+v)),S=k0(a.clientHeight-(g+x)),A=k0(m),O={rootMargin:-y+"px "+-w+"px "+-S+"px "+-A+"px",threshold:_i(0,Fa(1,f))||1};let j=!0;function N(_){const z=_[0].intersectionRatio;if(!$S(d,e.getBoundingClientRect()))return l();if(z!==f){if(!j)return l();z?l(!1,z):i=setTimeout(()=>{l(!1,1e-7)},1e3)}j=!1}try{n=new IntersectionObserver(N,{...O,root:a.ownerDocument})}catch{n=new IntersectionObserver(N,O)}n.observe(e)}const s=Mr(e),u=()=>l(r);return s.addEventListener("resize",u),l(!0),()=>{s.removeEventListener("resize",u),o()}}function hD(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,u=Uy(e),c=i||a?[...u?tc(u):[],...t?tc(t):[]]:[];c.forEach(y=>{i&&y.addEventListener("scroll",r),a&&y.addEventListener("resize",r)});const f=u&&l?dD(u,r,a):null;let d=-1,m=null;o&&(m=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(t)})),r()}),u&&!s&&m.observe(u),t&&m.observe(t));let g,v=s?zo(e):null;s&&x();function x(){const y=zo(e);v&&!$S(v,y)&&r(),v=y,g=requestAnimationFrame(x)}return r(),()=>{var y;c.forEach(w=>{i&&w.removeEventListener("scroll",r),a&&w.removeEventListener("resize",r)}),f==null||f(),(y=m)==null||y.disconnect(),m=null,s&&cancelAnimationFrame(g)}}const mD=W_,pD=U_,vD=B_,gD=V_,yD=F_,qb=$_,xD=q_,bD=(e,t,r)=>{const n=new Map,i=r??{},a={...fD,...i.platform,_c:n};return L_(e,t,{...i,platform:a})};var wD=typeof document<"u",SD=function(){},vf=wD?p.useLayoutEffect:SD;function ed(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!ed(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const a=i[n];if(!(a==="_owner"&&e.$$typeof)&&!ed(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function BS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vb(e,t){const r=BS(e);return Math.round(t*r)/r}function Pp(e){const t=p.useRef(e);return vf(()=>{t.current=e}),t}function kD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:o}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[c,f]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=p.useState(n);ed(d,n)||m(n);const[g,v]=p.useState(null),[x,y]=p.useState(null),w=p.useCallback(B=>{B!==O.current&&(O.current=B,v(B))},[]),S=p.useCallback(B=>{B!==j.current&&(j.current=B,y(B))},[]),A=a||g,P=o||x,O=p.useRef(null),j=p.useRef(null),N=p.useRef(c),_=s!=null,z=Pp(s),R=Pp(i),I=Pp(u),F=p.useCallback(()=>{if(!O.current||!j.current)return;const B={placement:t,strategy:r,middleware:d};R.current&&(B.platform=R.current),bD(O.current,j.current,B).then(W=>{const K={...W,isPositioned:I.current!==!1};H.current&&!ed(N.current,K)&&(N.current=K,Es.flushSync(()=>{f(K)}))})},[d,t,r,R,I]);vf(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(B=>({...B,isPositioned:!1})))},[u]);const H=p.useRef(!1);vf(()=>(H.current=!0,()=>{H.current=!1}),[]),vf(()=>{if(A&&(O.current=A),P&&(j.current=P),A&&P){if(z.current)return z.current(A,P,F);F()}},[A,P,F,z,_]);const Z=p.useMemo(()=>({reference:O,floating:j,setReference:w,setFloating:S}),[w,S]),X=p.useMemo(()=>({reference:A,floating:P}),[A,P]),re=p.useMemo(()=>{const B={position:r,left:0,top:0};if(!X.floating)return B;const W=Vb(X.floating,c.x),K=Vb(X.floating,c.y);return l?{...B,transform:"translate("+W+"px, "+K+"px)",...BS(X.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:W,top:K}},[r,l,X.floating,c.x,c.y]);return p.useMemo(()=>({...c,update:F,refs:Z,elements:X,floatingStyles:re}),[c,F,Z,X,re])}const AD=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?qb({element:n.current,padding:i}).fn(r):{}:n?qb({element:n,padding:i}).fn(r):{}}}},PD=(e,t)=>{const r=mD(e);return{name:r.name,fn:r.fn,options:[e,t]}},ED=(e,t)=>{const r=pD(e);return{name:r.name,fn:r.fn,options:[e,t]}},OD=(e,t)=>({fn:xD(e).fn,options:[e,t]}),CD=(e,t)=>{const r=vD(e);return{name:r.name,fn:r.fn,options:[e,t]}},jD=(e,t)=>{const r=gD(e);return{name:r.name,fn:r.fn,options:[e,t]}},ND=(e,t)=>{const r=yD(e);return{name:r.name,fn:r.fn,options:[e,t]}},MD=(e,t)=>{const r=AD(e);return{name:r.name,fn:r.fn,options:[e,t]}};var TD="Arrow",FS=p.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...a}=e;return h.jsx(St.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});FS.displayName=TD;var ID=FS;function _D(e){const[t,r]=p.useState(void 0);return Ba(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,l;if("borderBoxSize"in a){const s=a.borderBoxSize,u=Array.isArray(s)?s[0]:s;o=u.inlineSize,l=u.blockSize}else o=e.offsetWidth,l=e.offsetHeight;r({width:o,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var qy="Popper",[HS,WS]=Os(qy),[DD,US]=HS(qy),qS=e=>{const{__scopePopper:t,children:r}=e,[n,i]=p.useState(null);return h.jsx(DD,{scope:t,anchor:n,onAnchorChange:i,children:r})};qS.displayName=qy;var VS="PopperAnchor",KS=p.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,a=US(VS,r),o=p.useRef(null),l=_r(t,o);return p.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:h.jsx(St.div,{...i,ref:l})});KS.displayName=VS;var Vy="PopperContent",[zD,RD]=HS(Vy),GS=p.forwardRef((e,t)=>{var xt,Ze,te,J,we,V;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:s=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:m="optimized",onPlaced:g,...v}=e,x=US(Vy,r),[y,w]=p.useState(null),S=_r(t,st=>w(st)),[A,P]=p.useState(null),O=_D(A),j=(O==null?void 0:O.width)??0,N=(O==null?void 0:O.height)??0,_=n+(a!=="center"?"-"+a:""),z=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},R=Array.isArray(u)?u:[u],I=R.length>0,F={padding:z,boundary:R.filter($D),altBoundary:I},{refs:H,floatingStyles:Z,placement:X,isPositioned:re,middlewareData:B}=kD({strategy:"fixed",placement:_,whileElementsMounted:(...st)=>hD(...st,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[PD({mainAxis:i+N,alignmentAxis:o}),s&&ED({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?OD():void 0,...F}),s&&CD({...F}),jD({...F,apply:({elements:st,rects:Ae,availableWidth:Rt,availableHeight:Lt})=>{const{width:zr,height:pi}=Ae.reference,vi=st.floating.style;vi.setProperty("--radix-popper-available-width",`${Rt}px`),vi.setProperty("--radix-popper-available-height",`${Lt}px`),vi.setProperty("--radix-popper-anchor-width",`${zr}px`),vi.setProperty("--radix-popper-anchor-height",`${pi}px`)}}),A&&MD({element:A,padding:l}),BD({arrowWidth:j,arrowHeight:N}),d&&ND({strategy:"referenceHidden",...F})]}),[W,K]=ZS(X),le=_o(g);Ba(()=>{re&&(le==null||le())},[re,le]);const fe=(xt=B.arrow)==null?void 0:xt.x,He=(Ze=B.arrow)==null?void 0:Ze.y,Ie=((te=B.arrow)==null?void 0:te.centerOffset)!==0,[lt,zt]=p.useState();return Ba(()=>{y&&zt(window.getComputedStyle(y).zIndex)},[y]),h.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:re?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:lt,"--radix-popper-transform-origin":[(J=B.transformOrigin)==null?void 0:J.x,(we=B.transformOrigin)==null?void 0:we.y].join(" "),...((V=B.hide)==null?void 0:V.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(zD,{scope:r,placedSide:W,onArrowChange:P,arrowX:fe,arrowY:He,shouldHideArrow:Ie,children:h.jsx(St.div,{"data-side":W,"data-align":K,...v,ref:S,style:{...v.style,animation:re?void 0:"none"}})})})});GS.displayName=Vy;var YS="PopperArrow",LD={top:"bottom",right:"left",bottom:"top",left:"right"},XS=p.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,a=RD(YS,n),o=LD[a.placedSide];return h.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:h.jsx(ID,{...i,ref:r,style:{...i.style,display:"block"}})})});XS.displayName=YS;function $D(e){return e!==null}var BD=e=>({name:"transformOrigin",options:e,fn(t){var x,y,w;const{placement:r,rects:n,middlewareData:i}=t,o=((x=i.arrow)==null?void 0:x.centerOffset)!==0,l=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[u,c]=ZS(r),f={start:"0%",center:"50%",end:"100%"}[c],d=(((y=i.arrow)==null?void 0:y.x)??0)+l/2,m=(((w=i.arrow)==null?void 0:w.y)??0)+s/2;let g="",v="";return u==="bottom"?(g=o?f:`${d}px`,v=`${-s}px`):u==="top"?(g=o?f:`${d}px`,v=`${n.floating.height+s}px`):u==="right"?(g=`${-s}px`,v=o?f:`${m}px`):u==="left"&&(g=`${n.floating.width+s}px`,v=o?f:`${m}px`),{data:{x:g,y:v}}}});function ZS(e){const[t,r="center"]=e.split("-");return[t,r]}var FD=qS,HD=KS,WD=GS,UD=XS,qD="Portal",Ky=p.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[i,a]=p.useState(!1);Ba(()=>a(!0),[]);const o=r||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?iI.createPortal(h.jsx(St.div,{...n,ref:t}),o):null});Ky.displayName=qD;var VD=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),KD="VisuallyHidden",QS=p.forwardRef((e,t)=>h.jsx(St.span,{...e,ref:t,style:{...VD,...e.style}}));QS.displayName=KD;var GD=QS,[zh]=Os("Tooltip",[WS]),Rh=WS(),JS="TooltipProvider",YD=700,k1="tooltip.open",[XD,Gy]=zh(JS),ek=e=>{const{__scopeTooltip:t,delayDuration:r=YD,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:a}=e,o=p.useRef(!0),l=p.useRef(!1),s=p.useRef(0);return p.useEffect(()=>{const u=s.current;return()=>window.clearTimeout(u)},[]),h.jsx(XD,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:p.useCallback(()=>{window.clearTimeout(s.current),o.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:p.useCallback(u=>{l.current=u},[]),disableHoverableContent:i,children:a})};ek.displayName=JS;var rc="Tooltip",[ZD,Nc]=zh(rc),tk=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:l}=e,s=Gy(rc,e.__scopeTooltip),u=Rh(t),[c,f]=p.useState(null),d=Ul(),m=p.useRef(0),g=o??s.disableHoverableContent,v=l??s.delayDuration,x=p.useRef(!1),[y,w]=jh({prop:n,defaultProp:i??!1,onChange:j=>{j?(s.onOpen(),document.dispatchEvent(new CustomEvent(k1))):s.onClose(),a==null||a(j)},caller:rc}),S=p.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),A=p.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x.current=!1,w(!0)},[w]),P=p.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w(!1)},[w]),O=p.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{x.current=!0,w(!0),m.current=0},v)},[v,w]);return p.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),h.jsx(FD,{...u,children:h.jsx(ZD,{scope:t,contentId:d,open:y,stateAttribute:S,trigger:c,onTriggerChange:f,onTriggerEnter:p.useCallback(()=>{s.isOpenDelayedRef.current?O():A()},[s.isOpenDelayedRef,O,A]),onTriggerLeave:p.useCallback(()=>{g?P():(window.clearTimeout(m.current),m.current=0)},[P,g]),onOpen:A,onClose:P,disableHoverableContent:g,children:r})})};tk.displayName=rc;var A1="TooltipTrigger",rk=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=Nc(A1,r),a=Gy(A1,r),o=Rh(r),l=p.useRef(null),s=_r(t,l,i.onTriggerChange),u=p.useRef(!1),c=p.useRef(!1),f=p.useCallback(()=>u.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.jsx(HD,{asChild:!0,...o,children:h.jsx(St.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:s,onPointerMove:nt(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:nt(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:nt(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:nt(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:nt(e.onBlur,i.onClose),onClick:nt(e.onClick,i.onClose)})})});rk.displayName=A1;var Yy="TooltipPortal",[QD,JD]=zh(Yy,{forceMount:void 0}),nk=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,a=Nc(Yy,t);return h.jsx(QD,{scope:t,forceMount:r,children:h.jsx(Qo,{present:r||a.open,children:h.jsx(Ky,{asChild:!0,container:i,children:n})})})};nk.displayName=Yy;var ss="TooltipContent",ik=p.forwardRef((e,t)=>{const r=JD(ss,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...a}=e,o=Nc(ss,e.__scopeTooltip);return h.jsx(Qo,{present:n||o.open,children:o.disableHoverableContent?h.jsx(ak,{side:i,...a,ref:t}):h.jsx(ez,{side:i,...a,ref:t})})}),ez=p.forwardRef((e,t)=>{const r=Nc(ss,e.__scopeTooltip),n=Gy(ss,e.__scopeTooltip),i=p.useRef(null),a=_r(t,i),[o,l]=p.useState(null),{trigger:s,onClose:u}=r,c=i.current,{onPointerInTransitChange:f}=n,d=p.useCallback(()=>{l(null),f(!1)},[f]),m=p.useCallback((g,v)=>{const x=g.currentTarget,y={x:g.clientX,y:g.clientY},w=az(y,x.getBoundingClientRect()),S=oz(y,w),A=lz(v.getBoundingClientRect()),P=uz([...S,...A]);l(P),f(!0)},[f]);return p.useEffect(()=>()=>d(),[d]),p.useEffect(()=>{if(s&&c){const g=x=>m(x,c),v=x=>m(x,s);return s.addEventListener("pointerleave",g),c.addEventListener("pointerleave",v),()=>{s.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",v)}}},[s,c,m,d]),p.useEffect(()=>{if(o){const g=v=>{const x=v.target,y={x:v.clientX,y:v.clientY},w=(s==null?void 0:s.contains(x))||(c==null?void 0:c.contains(x)),S=!sz(y,o);w?d():S&&(d(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[s,c,o,u,d]),h.jsx(ak,{...e,ref:a})}),[tz,rz]=zh(rc,{isInside:!1}),nz=uI("TooltipContent"),ak=p.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...l}=e,s=Nc(ss,r),u=Rh(r),{onClose:c}=s;return p.useEffect(()=>(document.addEventListener(k1,c),()=>document.removeEventListener(k1,c)),[c]),p.useEffect(()=>{if(s.trigger){const f=d=>{const m=d.target;m!=null&&m.contains(s.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[s.trigger,c]),h.jsx(Ly,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:h.jsxs(WD,{"data-state":s.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(nz,{children:n}),h.jsx(tz,{scope:r,isInside:!0,children:h.jsx(GD,{id:s.contentId,role:"tooltip",children:i||n})})]})})});ik.displayName=ss;var ok="TooltipArrow",iz=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=Rh(r);return rz(ok,r).isInside?null:h.jsx(UD,{...i,...n,ref:t})});iz.displayName=ok;function az(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,i,a)){case a:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function oz(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function lz(e){const{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function sz(e,t){const{x:r,y:n}=e;let i=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const l=t[a],s=t[o],u=l.x,c=l.y,f=s.x,d=s.y;c>n!=d>n&&r<(f-u)*(n-c)/(d-c)+u&&(i=!i)}return i}function uz(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),cz(t)}function cz(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const i=e[n];for(;t.length>=2;){const a=t[t.length-1],o=t[t.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const i=e[n];for(;r.length>=2;){const a=r[r.length-1],o=r[r.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var fz=ek,dz=tk,hz=rk,mz=nk,lk=ik;const pz=fz,us=dz,cs=hz,Ro=p.forwardRef(({className:e,sideOffset:t=6,...r},n)=>h.jsx(mz,{children:h.jsx(lk,{ref:n,sideOffset:t,className:ne("z-50 max-w-sm overflow-hidden bg-ink px-2.5 py-1.5 text-xs text-white",e),...r})}));Ro.displayName=lk.displayName;const Kb=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Gb=Oe,sk=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Gb(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(u=>{const c=r==null?void 0:r[u],f=a==null?void 0:a[u];if(c===null)return null;const d=Kb(c)||Kb(f);return i[u][d]}),l=r&&Object.entries(r).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),s=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,c)=>{let{class:f,className:d,...m}=c;return Object.entries(m).every(g=>{let[v,x]=g;return Array.isArray(x)?x.includes({...a,...l}[v]):{...a,...l}[v]===x})?[...u,f,d]:u},[]);return Gb(e,o,s,r==null?void 0:r.class,r==null?void 0:r.className)},vz=sk("inline-flex items-center whitespace-nowrap border px-1.5 py-px text-2xs font-semibold uppercase tracking-label leading-4 transition-colors",{variants:{variant:{default:"border-ink bg-ink text-white",secondary:"border-transparent bg-secondary text-secondary-foreground",outline:"border-rule-strong text-foreground",muted:"border-rule text-muted-foreground",destructive:"border-signal bg-signal text-white",signal:"border-signal text-signal",pass:"border-pass bg-pass text-white",passOutline:"border-pass text-pass"}},defaultVariants:{variant:"default"}});function Lo({className:e,variant:t,...r}){return h.jsx("span",{className:ne(vz({variant:t}),e),...r})}const Kl="−",Lh=e=>typeof e=="number"&&Number.isFinite(e);function _e(e,t=4){if(!Lh(e))return"—";let r;return e===0?r="0":Math.abs(e)>=1e6?r=e.toExponential(2).replace(/\.?0+e/,"e").replace("e+","e"):Math.abs(e)>=10**t?r=Math.round(e).toString():Math.abs(e)<.001?r=e.toExponential(Math.max(t-2,1)):r=Number(e.toPrecision(t)).toString(),r.replace("-",Kl)}const gz=" ";function nn(e,t=4,r=!1){let n=_e(e,t);if(r&&Lh(e)&&!Number.isInteger(e)&&Math.abs(e)>=.001&&Math.abs(e)<10**t&&(n=e.toPrecision(t).replace("-",Kl)),n==="—"||/e/i.test(n))return n;const i=n.startsWith(Kl),[a,o]=(i?n.slice(1):n).split("."),l=a.length>=5?a.replace(/\B(?=(\d{3})+(?!\d))/g,gz):a;return(i?Kl:"")+l+(o!==void 0?`.${o}`:"")}function fs(e,t=2){if(!Lh(e))return"—";const r=Math.abs(e).toFixed(t);return Number(r)===0?r:(e<0?Kl:"+")+r}function $h(e){if(!Lh(e))return"—";const t=e*100;return`${(Math.abs(t)>=100?Math.round(t).toString():Number(t.toPrecision(2)).toString()).replace("-",Kl)} %`}function Bh(e){if(!e)return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:t}const Po=e=>e.toString().padStart(2,"0"),yz=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function td(e){const t=typeof e=="string"?Bh(e):e??null;return t?`${Po(t.getHours())}:${Po(t.getMinutes())}:${Po(t.getSeconds())}`:"—"}function _a(e,t=!1){const r=Bh(e);if(!r)return"—";const n=t?td(r):`${Po(r.getHours())}:${Po(r.getMinutes())}`,i=new Date;return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()&&r.getDate()===i.getDate()?n:`${Po(r.getDate())} ${yz[r.getMonth()]} ${n}`}const uk=e=>Po(e),xz=(e,t=8)=>e?e.slice(0,t):"—",bz=e=>e.replace(/_(GHz|MHz|fF|nH|um|µm|Ohm)$/i,""),Kn=["#185adb","#f9813a","#da0037","#206a5d","#444444","#c4fb6d","#e84a5f","#3edbf0","#ff847c","#ffc947"],rd=e=>Kn[(e%Kn.length+Kn.length)%Kn.length],Be="#111111",nr="#6b6b6b",wz="#e5e5e5",P1="#d4d4d4",Tr="#da0037",qi="#206a5d",Sz="#f9813a";function kz({mode:e,updated:t,fetchedAt:r,forcedSample:n,error:i}){const a=e==="connecting"?"Connecting":e,o=e==="live"?qi:e==="polling"?Be:e==="offline"&&!n?Tr:nr,l=e==="polling"||e==="connecting",s=e==="live"?"Subscribed to /api/events (server-sent events).":e==="polling"?"Event stream unavailable; polling /api/state every 3 s.":n?"Showing the sample fixture (?sample); the backend is not contacted.":e==="offline"?"Backend unreachable; retrying /api/state every 3 s.":"Contacting the backend…";return h.jsxs(us,{children:[h.jsx(cs,{asChild:!0,children:h.jsxs("div",{className:"flex cursor-default items-center gap-2 whitespace-nowrap","aria-live":"polite",children:[h.jsx("span",{className:"inline-block h-2 w-2",style:{background:l?"transparent":o,border:`1.5px solid ${o}`},"aria-hidden":!0}),h.jsx("span",{className:"text-2xs font-semibold uppercase tracking-label",style:{color:e==="live"?qi:void 0},children:a}),h.jsxs("span",{className:"num text-xs text-muted-foreground",children:["updated ",td(t||r)]})]})}),h.jsxs(Ro,{side:"bottom",align:"end",children:[h.jsx("div",{children:s}),r&&h.jsxs("div",{className:"mt-1 text-white/70",children:["last fetch ",td(r)]}),i&&!n&&h.jsx("div",{className:"mt-1 text-white/70",children:i})]})]})}const Az=sk("inline-flex items-center justify-center gap-2 whitespace-nowrap text-xs font-semibold uppercase tracking-label transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-40",{variants:{variant:{default:"bg-ink text-white hover:bg-ink/85",destructive:"bg-signal text-white hover:bg-signal/90",outline:"border border-ink bg-background hover:bg-ink hover:text-white",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-paper",link:"text-foreground underline-offset-4 hover:underline"},size:{default:"h-8 px-3",sm:"h-7 px-2.5",lg:"h-10 px-5",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),ck=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},a)=>{const o=n?lI:"button";return h.jsx(o,{className:ne(Az({variant:t,size:r,className:e})),ref:a,...i})});ck.displayName="Button";function Pz({disabled:e,onDone:t}){const[r,n]=p.useState({kind:"idle"}),i=async()=>{n({kind:"busy"});try{const o=await fetch("api/rebuild",{method:"POST",headers:{Accept:"application/json"}}),l=await o.json().catch(()=>({}));o.ok&&l.ok?n({kind:"ok",at:new Date}):n({kind:"error",message:l.error??`HTTP ${o.status}`})}catch(o){n({kind:"error",message:o instanceof Error?o.message:String(o)})}t()},a=h.jsx(ck,{variant:"outline",size:"sm",disabled:e||r.kind==="busy",onClick:i,children:r.kind==="busy"?"Rebuilding…":"Rebuild layout"});return h.jsxs("div",{className:"flex items-center gap-2",children:[e?h.jsxs(us,{children:[h.jsx(cs,{asChild:!0,children:h.jsx("span",{tabIndex:0,children:a})}),h.jsx(Ro,{side:"bottom",align:"end",children:"Not available on sample data"})]}):a,r.kind==="ok"&&h.jsxs("span",{className:"num text-xs text-pass",children:["rebuilt ",td(r.at)]}),r.kind==="error"&&h.jsxs(us,{children:[h.jsx(cs,{asChild:!0,children:h.jsxs("span",{className:"max-w-[16rem] cursor-default truncate text-xs text-signal",children:["failed: ",r.message]})}),h.jsx(Ro,{side:"bottom",align:"end",children:r.message})]})]})}const Ez="./logo-quantcore-black.png";function fk(){return h.jsxs("div",{className:"inline-flex shrink-0 flex-col",role:"img","aria-label":"Quantcore Circuits",children:[h.jsx("img",{src:Ez,alt:"",className:"block h-[17px] w-auto"}),h.jsx("span",{className:"mt-[5px] flex justify-between text-[8.5px] font-semibold leading-none text-ink","aria-hidden":!0,children:"CIRCUITS".split("").map((e,t)=>h.jsx("span",{children:e},t))})]})}function Oz({goal:e}){return e.total===0?h.jsx(Lo,{variant:"muted",children:"Targets —"}):h.jsxs(Lo,{variant:e.reached?"pass":"signal",className:"num",title:e.summary,children:["Targets ",e.passed,"/",e.total]})}function Cz({design:e}){const{substrate:t,thickness_um:r,epsR:n}=e.stack;return!t&&!Number.isFinite(r)&&!Number.isFinite(n)?null:h.jsxs("span",{className:"num",children:[t," ",_e(r)," µm, ε",h.jsx("sub",{className:"text-[0.75em]",children:"r"})," ",_e(n)]})}function jz({state:e,live:t}){const{design:r}=e;return h.jsx("header",{className:"border-b border-rule",children:h.jsxs("div",{className:"mx-auto flex max-w-[1920px] flex-wrap items-center gap-x-5 gap-y-2 px-4 py-3 sm:px-8 lg:flex-nowrap",children:[h.jsx(fk,{}),h.jsx("span",{className:"h-7 w-px shrink-0 bg-rule-strong","aria-hidden":!0}),h.jsxs("div",{className:"flex min-w-0 flex-1 flex-wrap items-baseline gap-x-4 gap-y-0.5 lg:flex-nowrap lg:overflow-hidden",children:[h.jsx("span",{className:"max-w-[18rem] shrink-0 truncate text-[15px] font-bold leading-tight",title:r.name,children:r.name}),h.jsxs(us,{children:[h.jsx(cs,{asChild:!0,children:h.jsx("span",{className:"shrink-0 cursor-default font-mono text-xs text-muted-foreground",children:xz(r.hash)})}),h.jsxs(Ro,{side:"bottom",children:[h.jsx("div",{className:"font-mono",children:r.hash||"no hash"}),r.pdk&&h.jsx("div",{className:"mt-1 text-white/70",children:r.pdk}),r.path&&h.jsx("div",{className:"mt-1 font-mono text-white/70",children:r.path})]})]}),r.pdk&&h.jsx("span",{className:"hidden min-w-0 truncate text-xs text-muted-foreground min-[1500px]:inline",children:r.pdk}),h.jsx("span",{className:"min-w-0 truncate whitespace-nowrap text-xs text-muted-foreground",children:h.jsx(Cz,{design:r})})]}),h.jsxs("div",{className:"ml-auto flex shrink-0 flex-wrap items-center gap-x-4 gap-y-2 lg:flex-nowrap",children:[t.sample&&h.jsx(Lo,{variant:"outline",className:"border-ink",children:"Sample data"}),h.jsx(Oz,{goal:e.goal}),h.jsx(kz,{mode:t.mode,updated:e.updated,fetchedAt:t.fetchedAt,forcedSample:t.forcedSample,error:t.error}),h.jsx(Pz,{disabled:t.sample,onDone:t.refresh})]})]})})}const Nz=/_(\{[^}]*\}|[^\s_^]+)/g,Mz=new RegExp("(^|[^\\p{L}\\p{N}_])(\\p{L})_(\\{[^}]*\\}|[\\p{L}\\p{N}]+)","gu");function dk(e,t=!1){const r=[],n=new RegExp(t?Mz:Nz);let i=0;for(let a=n.exec(e);a;a=n.exec(e)){const o=t?a.index+a[1].length+a[2].length:a.index,l=t?a[3]:a[1];o>i&&r.push({text:e.slice(i,o),sub:!1}),r.push({text:l.replace(/^\{|\}$/g,""),sub:!0}),i=a.index+a[0].length}return i<e.length&&r.push({text:e.slice(i),sub:!1}),r}function $o({value:e,strict:t=!1,className:r}){return e?h.jsx("span",{className:r,children:dk(e,t).map((n,i)=>n.sub?h.jsx("sub",{className:"text-[0.75em]",children:n.text},i):h.jsx(p.Fragment,{children:n.text},i))}):h.jsx("span",{className:r,children:"—"})}function nc(e,t=!1){let r=!1;return dk(e,t).map((n,i)=>{const a=n.sub&&!r?3:!n.sub&&r?-3:0;return r=n.sub,h.jsx("tspan",{dy:a||void 0,fontSize:n.sub?"0.78em":void 0,children:n.text},i)})}const hk=[{id:"circuit",label:"Circuit"},{id:"layout",label:"Layout"},{id:"simulation",label:"Simulation"},{id:"hamiltonian",label:"Hamiltonian"},{id:"parameters",label:"Parameters"},{id:"history",label:"History"},{id:"plots",label:"Plots"},{id:"log",label:"Log"}],Tz={overview:"parameters"},Iz=e=>hk.some(t=>t.id===e),Yb=e=>Iz(e)?e:e?Tz[e]??null:null,_z={synthesis:"circuit",layout:"layout",render:"simulation",simulate:"simulation",extract:"simulation",hamiltonian:"hamiltonian",compare:"parameters",feedback:"history"};function mk({status:e,colour:t=Be,size:r=10}){const n=e==="failed"?Tr:t;return h.jsxs("svg",{width:r,height:r,viewBox:"0 0 10 10","aria-hidden":!0,className:"shrink-0",children:[e==="done"&&h.jsx("rect",{x:"0",y:"0",width:"10",height:"10",fill:n}),e==="running"&&h.jsxs(h.Fragment,{children:[h.jsx("rect",{x:"0.75",y:"0.75",width:"8.5",height:"8.5",fill:"none",stroke:n,strokeWidth:"1.5"}),h.jsx("rect",{x:"3",y:"3",width:"4",height:"4",fill:n})]}),e==="failed"&&h.jsxs(h.Fragment,{children:[h.jsx("rect",{x:"0.75",y:"0.75",width:"8.5",height:"8.5",fill:"none",stroke:n,strokeWidth:"1.5"}),h.jsx("path",{d:"M2.5 2.5 L7.5 7.5 M7.5 2.5 L2.5 7.5",stroke:n,strokeWidth:"1.5"})]}),(e==="pending"||e==="skipped")&&h.jsx("rect",{x:"0.5",y:"0.5",width:"9",height:"9",fill:"none",stroke:P1,strokeWidth:"1"}),e==="skipped"&&h.jsx("path",{d:"M1 9 L9 1",stroke:P1,strokeWidth:"1"})]})}function Dz(e){switch(e){case"done":return{background:Tr};case"running":return{background:Tr};case"failed":return{background:`repeating-linear-gradient(135deg, ${Tr} 0 3px, transparent 3px 5px)`};case"skipped":return{background:`repeating-linear-gradient(90deg, ${P1} 0 4px, transparent 4px 7px)`};default:return{background:"#e5e5e5"}}}const zz={pending:"pending",running:"running",done:"done",failed:"failed",skipped:"skipped"};function Xb(e){return e.status==="running"?e.started?`since ${_a(e.started)}`:"":e.finished?_a(e.finished):e.started?_a(e.started):""}function Rz({steps:e,currentStep:t}){return h.jsx("ol",{className:"flex flex-col gap-2",children:e.map(r=>h.jsxs("li",{className:"grid grid-cols-[12px_20px_minmax(0,1fr)_auto] items-baseline gap-x-2",children:[h.jsx("span",{className:"self-center",children:h.jsx(mk,{status:r.status,colour:r.id===t?Tr:Be,size:9})}),h.jsx("span",{className:"num font-semibold",children:uk(r.index)}),h.jsxs("span",{className:"min-w-0",children:[h.jsx("span",{className:ne("font-semibold",r.id===t&&"text-signal",r.status==="skipped"&&"line-through decoration-rule-strong"),children:r.title}),r.summary&&h.jsx("span",{className:"mt-0.5 block leading-4 text-muted-foreground [overflow-wrap:anywhere]",children:h.jsx($o,{value:r.summary,strict:!0})})]}),h.jsxs("span",{className:"num whitespace-nowrap text-right text-2xs uppercase tracking-label text-muted-foreground",children:[zz[r.status],Xb(r)&&h.jsx("span",{className:"ml-1.5 normal-case tracking-normal",children:Xb(r)})]})]},r.id))})}function Lz({state:e,count:t}){const r=new Map;for(const i of e.steps){const a=_z[i.id];a&&r.set(a,[...r.get(a)??[],i])}const n=e.steps.filter(i=>i.status==="done").length;return h.jsx(ES,{"aria-label":`Dashboard sections; design loop ${n} of ${e.steps.length} steps done`,children:hk.map(i=>{const a=r.get(i.id)??[],o=a.find(u=>u.id===e.currentStep)??null,l=t(i.id),s=h.jsxs(OS,{value:i.id,children:[h.jsx("span",{className:"absolute left-0 right-[2px] top-0 flex h-[3px] gap-[2px]","aria-hidden":!0,children:a.map(u=>h.jsx("span",{className:ne("h-full flex-1",u.status==="running"&&"animate-pulse"),style:Dz(u.status)},u.id))}),o&&h.jsx(mk,{status:o.status,colour:Tr,size:8}),h.jsx("span",{className:ne("truncate",o&&"text-signal"),children:i.label}),l!==null&&l>0&&h.jsx("span",{className:"num font-normal text-muted-foreground",children:l})]},i.id);return a.length===0?s:h.jsxs(us,{children:[h.jsx(cs,{asChild:!0,children:s}),h.jsx(Ro,{side:"bottom",align:"start",className:"w-[min(380px,90vw)] max-w-none border border-ink bg-background px-3 py-2.5 text-xs text-foreground",children:h.jsx(Rz,{steps:a,currentStep:e.currentStep})})]},i.id)})})}const ir=e=>e&&typeof e=="object"&&!Array.isArray(e)?e:{},pt=e=>Array.isArray(e)?e.filter(t=>t!=null):[],ye=(e,t="")=>typeof e=="string"?e:t,A0=e=>typeof e=="number"?e:Number.NaN,ki=e=>typeof e=="number"&&Number.isFinite(e)?e:null,fr=e=>typeof e=="string"&&e!==""?e:void 0,$z=["pass","fail","warn","info"],nd=e=>$z.includes(e)?e:void 0;function Bz(e){const t=ir(e),r=ir(t.stack),n=pt(t.chipBox);return{name:ye(t.name,"unnamed design"),path:ye(t.path),hash:ye(t.hash),pdk:ye(t.pdk),stack:{substrate:ye(r.substrate),epsR:A0(r.epsR),thickness_um:A0(r.thickness_um)},chipBox:n.length===4?n:[Number.NaN,Number.NaN,Number.NaN,Number.NaN],instances:A0(t.instances),routes:A0(t.routes)}}function Fz(e){return pt(e).filter(t=>typeof t=="object").map((t,r)=>({...t,id:ye(t.id,`step${r+1}`),index:typeof t.index=="number"?t.index:r+1,title:ye(t.title,ye(t.id)),status:t.status??"pending"})).sort((t,r)=>t.index-r.index)}function Hz(e){return pt(e).map(t=>({...t,label:ye(t.label,ye(t.key)),symbol:ye(t.symbol),unit:ye(t.unit),value:typeof t.value=="number"?t.value:null,status:t.status==="pass"||t.status==="fail"?t.status:"unknown"}))}function Wz(e,t){const r=ir(e),n=typeof r.passed=="number"?r.passed:t.filter(a=>a.status==="pass").length,i=typeof r.total=="number"?r.total:t.length;return{reached:r.reached===!0,passed:n,total:i,summary:ye(r.summary,i?`${n} of ${i} targets within tolerance`:"")}}function Uz(e){return pt(e).map(ir).filter(t=>typeof t.id=="string").map(t=>({id:ye(t.id),letter:ye(t.letter),title:ye(t.title,ye(t.id)),subtitle:fr(t.subtitle)}))}function qz(e,t){const r=ir(e.target),n=pt(e.range);return{id:ye(e.id,`card${t+1}`),section:ye(e.section),element:fr(e.element),partner:fr(e.partner),index:typeof e.index=="number"&&Number.isFinite(e.index)?e.index:t+1,title:ye(e.title,ye(e.id)),symbol:ye(e.symbol),value:ki(e.value),unit:ye(e.unit),sub:pt(e.sub).map(ir).map(i=>({symbol:ye(i.symbol),value:ki(i.value),unit:ye(i.unit)})),target:ki(r.value)!==null?{value:r.value,tol:ki(r.tol)??Number.NaN}:null,design:ki(e.design),range:n.length===2&&n.every(i=>ki(i)!==null)?[n[0],n[1]]:null,source:fr(e.source),status:nd(e.status),from:pt(e.from).map(ir).map(i=>({label:ye(i.label),value:typeof i.value=="number"?String(i.value):ye(i.value),ref:fr(i.ref)})),formula:fr(e.formula),plot:fr(e.plot),description:fr(e.description),notes:pt(e.notes).filter(i=>typeof i=="string"&&i!=="")}}function Vz(e){return pt(e).map(ir).map(qz)}function Kz(e){return pt(e).map(ir).map((t,r)=>({id:ye(t.id,`group${r}`),index:typeof t.index=="number"?String(t.index):ye(t.index),title:ye(t.title),items:pt(t.items).map(ir).map(n=>({label:ye(n.label),symbol:fr(n.symbol),value:typeof n.value=="number"?Number.isFinite(n.value)?n.value:null:typeof n.value=="string"?n.value:null,unit:fr(n.unit),status:nd(n.status)??null}))}))}const Gz=["qubit","resonator","coupler","feedline","bus","port"],Yz=["readout","feedline","flux","coupling","port","drive"];function Xz(e){return pt(e).map(ir).filter(t=>typeof t.id=="string"&&t.id!=="").map(t=>({id:ye(t.id),kind:Gz.includes(t.kind)?t.kind:"port",label:ye(t.label,ye(t.id)),subtitle:fr(t.subtitle),params:pt(t.params).map(ir).filter(r=>typeof r.key=="string").map(r=>{const n=ir(r.target);return{key:ye(r.key),label:ye(r.label,ye(r.key)),symbol:ye(r.symbol),value:ki(r.value),unit:ye(r.unit),status:nd(r.status)??null,target:ki(n.value)!==null?{value:n.value,tol:ki(n.tol)??Number.NaN}:null,source:fr(r.source),card:fr(r.card),of:fr(r.of)}}),links:pt(t.links).map(ir).filter(r=>typeof r.to=="string").map(r=>({to:ye(r.to),role:Yz.includes(r.role)?r.role:"coupling",label:fr(r.label)})),status:nd(t.status)??null}))}function Zz(e){const t=ir(e),r=Hz(t.targets);return{schema:"qcc-state/0.1",updated:ye(t.updated),design:Bz(t.design),currentStep:typeof t.currentStep=="string"?t.currentStep:null,steps:Fz(t.steps),goal:Wz(t.goal,r),targets:r,screenshots:pt(t.screenshots),plots:pt(t.plots).filter(n=>typeof n=="object"),circuit:t.circuit&&typeof t.circuit=="object"?t.circuit:null,hamiltonian:t.hamiltonian&&typeof t.hamiltonian=="object"?t.hamiltonian:null,consensus:pt(t.consensus),jobs:pt(t.jobs),femCompare:pt(t.femCompare),cmatrix:t.cmatrix&&typeof t.cmatrix=="object"?t.cmatrix:null,history:pt(t.history),log:pt(t.log),sections:Uz(t.sections),cards:Vz(t.cards),summary:Kz(t.summary),elements:Xz(t.elements)}}function Qz(e){const t=ir(e);return typeof t.schema=="string"||"steps"in t||"design"in t}const Mc=(e,t)=>e.plots.filter(r=>r.tab===t),Zb="api/state",Jz="api/events",eR=3e3,tR=3e4;function rR(e){const t=new URLSearchParams(e);if(!t.has("sample"))return null;const r=t.get("sample")??"";return`./${/^[\w.-]+\.json$/.test(r)?r:"sample-state.json"}`}function nR(){const[e,t]=p.useState(null),[r,n]=p.useState("connecting"),[i,a]=p.useState(!1),[o,l]=p.useState(null),[s,u]=p.useState(null),c=p.useRef(()=>{}),f=rR(window.location.search),d=f!==null;p.useEffect(()=>{let g=!1,v=null,x,y,w="",S="connecting";const A=I=>{S=I,n(I)},P=(I,F)=>{if(l(new Date),I===w)return;const H=JSON.parse(I);if(!Qz(H))throw new Error("response is not a qcc state document");w=I,t(Zz(H)),a(F)},O=async()=>{try{const I=await fetch(Zb,{cache:"no-store",headers:{Accept:"application/json"}});if(!I.ok)throw new Error(`GET /${Zb}: HTTP ${I.status}`);const F=await I.text();return g||(P(F,!1),u(null)),!0}catch(I){return g||u(I instanceof Error?I.message:String(I)),!1}},j=async I=>{try{const F=await fetch(I,{cache:"no-store"});if(!F.ok)throw new Error(`GET ${I}: HTTP ${F.status}`);const H=await F.text();g||P(H,!0)}catch(F){g||u(F instanceof Error?F.message:String(F))}},N=()=>{window.clearInterval(x),x=void 0},_=I=>{v||y!==void 0||(y=window.setTimeout(()=>{y=void 0,R()},I))},z=()=>{x===void 0&&(x=window.setInterval(async()=>{const I=S==="offline",F=await O();g||x===void 0||(A(F?"polling":"offline"),F&&_(I?0:tR))},eR))},R=()=>{if(g||v)return;if(typeof EventSource>"u"){z();return}const I=new EventSource(Jz);v=I,I.addEventListener("open",()=>{A("live"),N(),O()}),I.addEventListener("state",()=>void O()),I.onerror=()=>{I.close(),v===I&&(v=null),!g&&((S==="live"||S==="connecting")&&A("polling"),z())}};return c.current=()=>void O(),(async()=>{if(f){await j(f),A("offline");return}const I=await O();g||(I?(A("polling"),R()):(await j("./sample-state.json"),A("offline"),z()))})(),()=>{g=!0,v==null||v.close(),N(),window.clearTimeout(y),c.current=()=>{}}},[f]);const m=p.useCallback(()=>c.current(),[]);return{state:e,mode:r,sample:i,forcedSample:d,fetchedAt:o,error:s,refresh:m}}const Mn=p.forwardRef(({className:e,...t},r)=>h.jsx("div",{className:"relative w-full overflow-x-auto",children:h.jsx("table",{ref:r,className:ne("w-full caption-bottom border-collapse text-[13px]",e),...t})}));Mn.displayName="Table";const Tn=p.forwardRef(({className:e,...t},r)=>h.jsx("thead",{ref:r,className:ne("[&_tr]:border-b [&_tr]:border-ink",e),...t}));Tn.displayName="TableHeader";const In=p.forwardRef(({className:e,...t},r)=>h.jsx("tbody",{ref:r,className:ne("[&_tr:last-child]:border-0",e),...t}));In.displayName="TableBody";const iR=p.forwardRef(({className:e,...t},r)=>h.jsx("tfoot",{ref:r,className:ne("border-t border-ink font-medium",e),...t}));iR.displayName="TableFooter";const mt=p.forwardRef(({className:e,...t},r)=>h.jsx("tr",{ref:r,className:ne("border-b border-rule transition-colors hover:bg-paper data-[state=selected]:bg-muted",e),...t}));mt.displayName="TableRow";const ce=p.forwardRef(({className:e,...t},r)=>h.jsx("th",{ref:r,className:ne("h-8 whitespace-nowrap px-2 text-left align-bottom text-2xs font-semibold uppercase tracking-label text-muted-foreground first:pl-0",e),...t}));ce.displayName="TableHead";const de=p.forwardRef(({className:e,...t},r)=>h.jsx("td",{ref:r,className:ne("px-2 py-2 align-middle first:pl-0",e),...t}));de.displayName="TableCell";const aR=p.forwardRef(({className:e,...t},r)=>h.jsx("caption",{ref:r,className:ne("mt-3 text-left text-xs text-muted-foreground",e),...t}));aR.displayName="TableCaption";function Jo({aside:e,children:t}){return h.jsxs("div",{className:"grid grid-cols-12 gap-x-8 gap-y-10",children:[e&&h.jsx("p",{className:"col-span-12 -mb-4 text-xs text-muted-foreground",children:e}),t]})}function ht({title:e,aside:t,className:r,children:n}){return h.jsxs("section",{className:ne("col-span-12 min-w-0",r),children:[h.jsxs("div",{className:"mb-4 flex items-baseline justify-between gap-4 border-t border-ink pt-2",children:[h.jsx("h2",{className:"text-2xs font-semibold uppercase tracking-label",children:e}),t&&h.jsx("div",{className:"text-2xs uppercase tracking-label text-muted-foreground",children:t})]}),n]})}function Ge({children:e="No data yet",className:t}){return h.jsx("div",{className:ne("border-t border-dashed border-rule-strong py-6 text-xs text-muted-foreground",t),children:e})}const id=e=>typeof e=="number"&&Number.isFinite(e),oR=e=>id(e.value)&&id(e.designValue)&&e.designValue!==0?(e.value-e.designValue)/Math.abs(e.designValue):null,lR={HANGER:"Hanger"};function Qb({branches:e}){return e.length===0?h.jsx(Ge,{children:"No branches"}):h.jsxs(Mn,{children:[h.jsx(Tn,{children:h.jsxs(mt,{className:"hover:bg-transparent",children:[h.jsx(ce,{children:"Branch"}),h.jsx(ce,{children:"Type"}),h.jsx(ce,{children:"Nodes"}),h.jsx(ce,{className:"text-right",title:"FEM value when the branch was extracted from a simulation, else the layout estimate",children:"Value"}),h.jsx(ce,{className:"text-right",children:"Design"}),h.jsx(ce,{className:"text-right",children:"Δ"}),h.jsx(ce,{children:"Source"})]})}),h.jsx(In,{children:e.map((t,r)=>{const n=oR(t);return h.jsxs(mt,{children:[h.jsxs(de,{children:[h.jsx("div",{className:"font-semibold",children:h.jsx($o,{value:t.label})}),h.jsx("div",{className:"font-mono text-2xs text-muted-foreground",children:t.id??"—"})]}),h.jsx(de,{children:t.type?h.jsx(Lo,{variant:"outline",children:lR[t.type]??t.type}):h.jsx("span",{className:"text-muted-foreground",children:"—"})}),h.jsx(de,{className:"whitespace-nowrap font-mono text-xs",children:Array.isArray(t.nodes)&&t.nodes.length?t.nodes.join(" – "):"—"}),h.jsxs(de,{className:"num whitespace-nowrap text-right font-semibold",children:[_e(t.value)," ",id(t.value)&&t.unit&&h.jsx("span",{className:"text-xs font-normal text-muted-foreground",children:t.unit})]}),h.jsx(de,{className:"num whitespace-nowrap text-right text-muted-foreground",children:_e(id(t.designValue)?t.designValue:null)}),h.jsx(de,{className:"num whitespace-nowrap text-right",children:n===null?"—":`${n>0?"+":""}${$h(n)}`}),h.jsx(de,{className:"max-w-[10rem] truncate font-mono text-2xs text-muted-foreground",title:t.source,children:t.source??"—"})]},t.id??r)})})]})}function Xy(e=600){const[t,r]=p.useState(null),[n,i]=p.useState(e);return p.useLayoutEffect(()=>{if(!t)return;const a=()=>i(Math.floor(t.getBoundingClientRect().width)||e);if(a(),typeof ResizeObserver>"u")return;const o=new ResizeObserver(a);return o.observe(t),()=>o.disconnect()},[t,e]),[r,n]}function pk(e,t,r=5){if(!Number.isFinite(e)||!Number.isFinite(t))return{ticks:[0,1],min:0,max:1};if(e===t){const c=Math.abs(e)*.1||1;e-=c,t+=c}const n=(t-e)/r,i=10**Math.floor(Math.log10(n)),a=n/i,o=(a<1.5?1:a<3?2:a<7?5:10)*i,l=Math.floor(e/o)*o,s=Math.ceil(t/o)*o,u=[];for(let c=l;c<=s+o*1e-6;c+=o)u.push(Number(c.toPrecision(12)));return{ticks:u,min:l,max:s}}function sR(e,t){const r=Math.floor(Math.log10(e));let n=Math.ceil(Math.log10(t));n===r&&(n=r+1);const i=n-r,a=i<=2?[1,2,5]:i<=4?[1,3]:[1],o=[];for(let l=r;l<=n;l++)for(const s of a){const u=Number((s*10**l).toPrecision(6));u>=10**r&&u<=10**n&&o.push(u)}return{ticks:o,domain:[10**r,10**n]}}function uR(e,t){const r=e.replace("#",""),n=[0,2,4].map(s=>parseInt(r.slice(s,s+2),16)),i=Math.min(1,Math.max(0,t)),[a,o,l]=n.map(s=>Math.round(255+(s-255)*i));return`rgb(${a}, ${o}, ${l})`}const ad=(e,t,r)=>Math.min(r,Math.max(t,e)),cR={left:24,right:24,top:44,bottom:28},P0=6,Jb=66,go=28,fR={C:4,L:16,JJ:8,SQUID:14,TL:24,R:16,HANGER:18},Gl=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Ai=(e,t)=>({x:e.x*t,y:e.y*t}),dR=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),hR=e=>Math.hypot(e.x,e.y);function mR({type:e}){const t={stroke:Be,strokeWidth:1.5,fill:"none"};switch(e){case"C":return h.jsxs("g",{...t,strokeWidth:2.25,children:[h.jsx("line",{x1:-4,x2:-4,y1:-12,y2:12}),h.jsx("line",{x1:4,x2:4,y1:-12,y2:12})]});case"L":return h.jsx("path",{...t,d:"M -16 0 a 4 4 0 0 1 8 0 a 4 4 0 0 1 8 0 a 4 4 0 0 1 8 0 a 4 4 0 0 1 8 0"});case"JJ":return h.jsxs("g",{...t,children:[h.jsx("rect",{x:-8,y:-8,width:16,height:16,fill:"#fff"}),h.jsx("path",{d:"M -8 -8 L 8 8 M 8 -8 L -8 8"})]});case"SQUID":return h.jsxs("g",{...t,children:[h.jsx("rect",{x:-14,y:-11,width:28,height:22}),[-11,11].map(r=>h.jsxs("g",{transform:`translate(0 ${r})`,children:[h.jsx("rect",{x:-5,y:-5,width:10,height:10,fill:"#fff"}),h.jsx("path",{d:"M -5 -5 L 5 5 M 5 -5 L -5 5"})]},r))]});case"TL":return h.jsx("rect",{...t,x:-24,y:-4,width:48,height:8,fill:"#fff"});case"R":return h.jsx("polyline",{...t,points:"-16,0 -13.3,-6 -8,6 -2.7,-6 2.7,6 8,-6 13.3,6 16,0"});case"HANGER":return h.jsxs("g",{...t,children:[h.jsx("path",{d:"M -18 0 V -4.5 H 12",strokeWidth:2.25}),h.jsx("path",{d:"M 18 0 V 4.5 H -12",strokeWidth:2.25})]});default:return h.jsx("rect",{...t,x:-10,y:-6,width:20,height:12,strokeDasharray:"2 2"})}}const pR=e=>{const[t,r]=Array.isArray(e.pos)?e.pos:[.5,.5];return{x:ad(Number(t)||0,0,1),y:ad(Number(r)||0,0,1)}},e5=e=>{const t=Math.min(...e),r=Math.max(...e)-t;return(n,i,a)=>r<1e-6?(i+a)/2:i+(n-t)/r*(a-i)};function t5(e,t,r,n){const i=(e.nodes??[]).map(f=>({n:f,h:pR(f)})),a=e5(i.map(f=>f.h.x)),o=e5(i.map(f=>f.h.y)),l=new Map;for(const{n:f,h:d}of i)l.set(f.id,{...f,p:{x:a(d.x,n.left,t-n.right),y:o(d.y,n.top,r-n.bottom)}});const s=new Map;for(const f of e.branches??[]){const[d,m]=f.nodes??[],g=l.get(d),v=l.get(m);if(!g||!v||g===v||g.ground&&v.ground)continue;let x,y;if(g.ground||v.ground){const w=g.ground?v:g,S=g.ground?g:v;x={branch:f,a:w.p,b:{x:w.p.x,y:S.p.y},ground:S.id},y=`${w.id}|${S.id}`}else{const[w,S]=g.id<v.id?[g,v]:[v,g];x={branch:f,a:w.p,b:S.p},y=`${w.id}|${S.id}`}s.set(y,[...s.get(y)??[],x])}const u=[],c=new Map;for(const f of s.values())f.forEach((d,m)=>{const g=dR(d.b,d.a),v=hR(g)||1,x=Ai(g,1/v),y=!d.ground&&Math.abs(x.y)<.2,w=y?{x:0,y:1}:{x:x.y,y:-x.x},S=y?m*Jb:(m-(f.length-1)/2)*Jb,A=Gl(d.a,Ai(w,S)),P=Gl(d.b,Ai(w,S)),O=Ai(Gl(A,P),.5);let j;if(S!==0?j=Ai(w,Math.sign(S)):Math.abs(x.x)<.2?j={x:1,y:0}:Math.abs(x.y)<.2?j={x:0,y:-1}:j=w.y<0?w:Ai(w,-1),u.push({branch:d.branch,a:d.a,b:d.b,start:A,end:P,mid:O,dir:x,outward:j}),d.ground){const N=l.get(d.ground),_=c.get(N.id)??{node:N,y:d.b.y,xs:[],symbolX:N.p.x};_.xs.push(P.x),c.set(N.id,_)}});for(const f of l.values())f.ground&&!c.has(f.id)&&c.set(f.id,{node:f,y:f.p.y,xs:[],symbolX:f.p.x});return{nodes:[...l.values()],placed:u,rails:[...c.values()]}}const wl=14,E1=(e,t,r=400)=>e.length*t*(r>=600?.62:.56);function vk(e){const{branch:t,mid:r,outward:n}=e,i=[{text:t.label||t.id||"",size:12,weight:600,fill:Be},{text:typeof t.value=="number"&&Number.isFinite(t.value)?`${_e(t.value)}${t.unit?` ${t.unit}`:""}`:"—",size:11,fill:Be}];typeof t.designValue=="number"&&t.designValue!==t.value&&i.push({text:`design ${_e(t.designValue)}`,size:10,fill:nr});const a=Gl(r,Ai(n,go/2+8)),o=n.x>.5?"start":n.x<-.5?"end":"middle",l=i.length*wl,s=n.y<-.5?a.y-l+wl-3:n.y>.5?a.y+wl-2:a.y-l/2+wl-3,u=Math.max(...i.map(d=>E1(d.text,d.size,d.weight))),c=o==="start"?a.x:o==="end"?a.x-u:a.x-u/2,f={x0:c,x1:c+u,y0:s-12,y1:s+(i.length-1)*wl+3};return{lines:i,at:a,anchor:o,firstBaseline:s,box:f}}function vR({p:e}){const t=vk(e);return h.jsx("text",{x:t.at.x,y:t.firstBaseline,textAnchor:t.anchor,className:"num",children:t.lines.map((r,n)=>h.jsx("tspan",{x:t.at.x,y:t.firstBaseline+n*wl,fontSize:r.size,fontWeight:r.weight,fill:r.fill,children:n===0?nc(r.text):r.text},n))})}function gR(e){const t=[],r=[],n=(i,a,o,l)=>{t.push(i,a),r.push(o,l)};for(const i of e.nodes){if(i.ground)continue;const a=Math.max(E1(i.label||i.id,12,700),E1(i.island??"",10)*1.1);n(i.p.x-a/2,i.p.x+a/2,i.p.y-38,i.p.y+4)}for(const i of e.rails)n(Math.min(i.symbolX-11,...i.xs),Math.max(i.symbolX+11,...i.xs),i.y,i.y+20);for(const i of e.placed){const a=vk(i).box;n(a.x0,a.x1,a.y0,a.y1),n(i.mid.x-go,i.mid.x+go,i.mid.y-go/2,i.mid.y+go/2)}return{minX:Math.min(...t),maxX:Math.max(...t),minY:Math.min(...r),maxY:Math.max(...r)}}function yR(e,t,r){let n={...cR},i=t5(e,t,r,n);for(let a=0;a<3;a++){const o=gR(i),l={left:Math.max(0,P0-o.minX),right:Math.max(0,o.maxX-(t-P0)),top:Math.max(0,P0-o.minY),bottom:Math.max(0,o.maxY-(r-P0))};if(l.left+l.right+l.top+l.bottom<1)break;n={left:n.left+l.left,right:n.right+l.right,top:n.top+l.top,bottom:n.bottom+l.bottom},i=t5(e,t,r,n)}return i}function xR({p:e}){const t=fR[e.branch.type]??10,r=Math.atan2(e.dir.y,e.dir.x)*180/Math.PI,n=Gl(e.mid,Ai(e.dir,-t)),i=Gl(e.mid,Ai(e.dir,t)),a={stroke:Be,strokeWidth:1.25,fill:"none"};return h.jsxs("g",{children:[h.jsx("polyline",{...a,points:`${e.a.x},${e.a.y} ${e.start.x},${e.start.y} ${n.x},${n.y}`}),h.jsx("polyline",{...a,points:`${i.x},${i.y} ${e.end.x},${e.end.y} ${e.b.x},${e.b.y}`}),h.jsx("g",{transform:`translate(${e.mid.x} ${e.mid.y}) rotate(${r})`,children:h.jsx(mR,{type:e.branch.type})}),(e.branch.type==="TL"||e.branch.type==="HANGER")&&h.jsx("text",{x:e.mid.x-e.outward.x*(go/2+2),y:e.mid.y-e.outward.y*(go/2+2),dy:"0.32em",textAnchor:e.outward.x>.5?"end":e.outward.x<-.5?"start":"middle",fontSize:11,fontStyle:"italic",fill:Be,children:e.branch.type==="TL"?"λ/4":"κ"}),h.jsx(vR,{p:e})]})}function bR({rail:e}){const t=[...e.xs,e.symbolX],r=Math.min(...t),n=Math.max(...t),i=e.symbolX,a=e.y;return h.jsxs("g",{stroke:Be,strokeWidth:1.25,children:[n>r&&h.jsx("line",{x1:r,x2:n,y1:a,y2:a}),e.xs.filter(o=>o>r+.5&&o<n-.5).map((o,l)=>h.jsx("rect",{x:o-2.5,y:a-2.5,width:5,height:5,fill:Be,stroke:"none"},l)),h.jsx("line",{x1:i,x2:i,y1:a,y2:a+10}),h.jsx("line",{x1:i-11,x2:i+11,y1:a+10,y2:a+10,strokeWidth:1.75}),h.jsx("line",{x1:i-7,x2:i+7,y1:a+14,y2:a+14,strokeWidth:1.5}),h.jsx("line",{x1:i-3,x2:i+3,y1:a+18,y2:a+18,strokeWidth:1.25})]})}function r5({circuit:e}){const[t,r]=Xy(720);if(!e||(e.nodes??[]).length===0)return h.jsx(Ge,{children:"No circuit yet"});const n=Math.max(r,420),i=Math.round(ad(n*.46,300,440)),{nodes:a,placed:o,rails:l}=yR(e,n,i);return h.jsx("div",{ref:t,className:"w-full min-w-0 overflow-hidden",children:h.jsxs("svg",{width:n,height:i,role:"img","aria-label":`Lumped circuit ${e.name}`,className:"block",children:[l.map(s=>h.jsx(bR,{rail:s},s.node.id)),o.map(s=>h.jsx(xR,{p:s},s.branch.id)),a.filter(s=>!s.ground).map(s=>h.jsxs("g",{children:[h.jsx("rect",{x:s.p.x-3.5,y:s.p.y-3.5,width:7,height:7,fill:Be}),h.jsx("text",{x:s.p.x,y:s.p.y-26,textAnchor:"middle",fontSize:12,fontWeight:700,fill:Be,children:s.label||s.id}),s.island&&h.jsx("text",{x:s.p.x,y:s.p.y-12,textAnchor:"middle",fontSize:10,fontFamily:"JetBrains Mono, Consolas, monospace",fill:nr,children:s.island})]},s.id))]})})}const Fh=p.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,className:ne("border border-rule bg-card text-card-foreground",e),...t}));Fh.displayName="Card";const Zy=p.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,className:ne("flex flex-col gap-1 px-4 pb-2 pt-3",e),...t}));Zy.displayName="CardHeader";const Qy=p.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,className:ne("text-sm font-semibold leading-tight",e),...t}));Qy.displayName="CardTitle";const gk=p.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,className:ne("text-xs text-muted-foreground",e),...t}));gk.displayName="CardDescription";const Jy=p.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,className:ne("px-4 pb-4",e),...t}));Jy.displayName="CardContent";const wR=p.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,className:ne("flex items-center border-t border-rule px-4 py-2",e),...t}));wR.displayName="CardFooter";var SR=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function e4(e){if(typeof e!="string")return!1;var t=SR;return t.includes(e)}var kR=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],AR=new Set(kR);function yk(e){return typeof e!="string"?!1:AR.has(e)}function xk(e){return typeof e=="string"&&e.startsWith("data-")}function qr(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(yk(r)||xk(r))&&(t[r]=e[r]);return t}function Ms(e){if(e==null)return null;if(p.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return qr(t)}return typeof e=="object"&&!Array.isArray(e)?qr(e):null}function or(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(yk(r)||xk(r)||e4(r))&&(t[r]=e[r]);return t}function PR(e){return e==null?null:p.isValidElement(e)?or(e.props):typeof e=="object"&&!Array.isArray(e)?or(e):null}var ER=["children","width","height","viewBox","className","style","title","desc"];function O1(){return O1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O1.apply(null,arguments)}function OR(e,t){if(e==null)return{};var r,n,i=CR(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function CR(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var bk=p.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:l,title:s,desc:u}=e,c=OR(e,ER),f=a||{width:n,height:i,x:0,y:0},d=Oe("recharts-surface",o);return p.createElement("svg",O1({},or(c),{className:d,width:n,height:i,style:l,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),p.createElement("title",null,s),p.createElement("desc",null,u),r)}),jR=["children","className"];function C1(){return C1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C1.apply(null,arguments)}function NR(e,t){if(e==null)return{};var r,n,i=MR(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function MR(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Nt=p.forwardRef((e,t)=>{var{children:r,className:n}=e,i=NR(e,jR),a=Oe("recharts-layer",n);return p.createElement("g",C1({className:a},or(i),{ref:t}),r)}),TR=p.createContext(null);function Re(e){return function(){return e}}const wk=Math.cos,od=Math.sin,_n=Math.sqrt,ld=Math.PI,Hh=2*ld,j1=Math.PI,N1=2*j1,co=1e-6,IR=N1-co;function Sk(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function _R(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Sk;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class DR{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Sk:_R(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,s=n-t,u=i-r,c=o-t,f=l-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>co)if(!(Math.abs(f*s-u*c)>co)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-o,g=i-l,v=s*s+u*u,x=m*m+g*g,y=Math.sqrt(v),w=Math.sqrt(d),S=a*Math.tan((j1-Math.acos((v+d-x)/(2*y*w)))/2),A=S/w,P=S/y;Math.abs(A-1)>co&&this._append`L${t+A*c},${r+A*f}`,this._append`A${a},${a},0,0,${+(f*m>c*g)},${this._x1=t+P*s},${this._y1=r+P*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),s=n*Math.sin(i),u=t+l,c=r+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>co||Math.abs(this._y1-c)>co)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%N1+N1),d>IR?this._append`A${n},${n},0,1,${f},${t-l},${r-s}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>co&&this._append`A${n},${n},0,${+(d>=j1)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function t4(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new DR(t)}function r4(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function kk(e){this._context=e}kk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Wh(e){return new kk(e)}function Ak(e){return e[0]}function Pk(e){return e[1]}function Ek(e,t){var r=Re(!0),n=null,i=Wh,a=null,o=t4(l);e=typeof e=="function"?e:e===void 0?Ak:Re(e),t=typeof t=="function"?t:t===void 0?Pk:Re(t);function l(s){var u,c=(s=r4(s)).length,f,d=!1,m;for(n==null&&(a=i(m=o())),u=0;u<=c;++u)!(u<c&&r(f=s[u],u,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,u,s),+t(f,u,s));if(m)return a=null,m+""||null}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:Re(+s),l):e},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:Re(+s),l):t},l.defined=function(s){return arguments.length?(r=typeof s=="function"?s:Re(!!s),l):r},l.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),l):i},l.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),l):n},l}function E0(e,t,r){var n=null,i=Re(!0),a=null,o=Wh,l=null,s=t4(u);e=typeof e=="function"?e:e===void 0?Ak:Re(+e),t=typeof t=="function"?t:Re(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Pk:Re(+r);function u(f){var d,m,g,v=(f=r4(f)).length,x,y=!1,w,S=new Array(v),A=new Array(v);for(a==null&&(l=o(w=s())),d=0;d<=v;++d){if(!(d<v&&i(x=f[d],d,f))===y)if(y=!y)m=d,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),g=d-1;g>=m;--g)l.point(S[g],A[g]);l.lineEnd(),l.areaEnd()}y&&(S[d]=+e(x,d,f),A[d]=+t(x,d,f),l.point(n?+n(x,d,f):S[d],r?+r(x,d,f):A[d]))}if(w)return l=null,w+""||null}function c(){return Ek().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Re(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Re(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Re(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Re(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Re(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Re(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Re(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(l=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=l=null:l=o(a=f),u):a},u}class Ok{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function zR(e){return new Ok(e,!0)}function RR(e){return new Ok(e,!1)}const n4={draw(e,t){const r=_n(t/ld);e.moveTo(r,0),e.arc(0,0,r,0,Hh)}},LR={draw(e,t){const r=_n(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Ck=_n(1/3),$R=Ck*2,BR={draw(e,t){const r=_n(t/$R),n=r*Ck;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},FR={draw(e,t){const r=_n(t),n=-r/2;e.rect(n,n,r,r)}},HR=.8908130915292852,jk=od(ld/10)/od(7*ld/10),WR=od(Hh/10)*jk,UR=-wk(Hh/10)*jk,qR={draw(e,t){const r=_n(t*HR),n=WR*r,i=UR*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Hh*a/5,l=wk(o),s=od(o);e.lineTo(s*r,-l*r),e.lineTo(l*n-s*i,s*n+l*i)}e.closePath()}},Ep=_n(3),VR={draw(e,t){const r=-_n(t/(Ep*3));e.moveTo(0,r*2),e.lineTo(-Ep*r,-r),e.lineTo(Ep*r,-r),e.closePath()}},Zr=-.5,Qr=_n(3)/2,M1=1/_n(12),KR=(M1/2+1)*3,GR={draw(e,t){const r=_n(t/KR),n=r/2,i=r*M1,a=n,o=r*M1+r,l=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,s),e.lineTo(Zr*n-Qr*i,Qr*n+Zr*i),e.lineTo(Zr*a-Qr*o,Qr*a+Zr*o),e.lineTo(Zr*l-Qr*s,Qr*l+Zr*s),e.lineTo(Zr*n+Qr*i,Zr*i-Qr*n),e.lineTo(Zr*a+Qr*o,Zr*o-Qr*a),e.lineTo(Zr*l+Qr*s,Zr*s-Qr*l),e.closePath()}};function YR(e,t){let r=null,n=t4(i);e=typeof e=="function"?e:Re(e||n4),t=typeof t=="function"?t:Re(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Re(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Re(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function sd(){}function ud(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Nk(e){this._context=e}Nk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ud(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ud(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function XR(e){return new Nk(e)}function Mk(e){this._context=e}Mk.prototype={areaStart:sd,areaEnd:sd,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ud(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ZR(e){return new Mk(e)}function Tk(e){this._context=e}Tk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ud(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function QR(e){return new Tk(e)}function Ik(e){this._context=e}Ik.prototype={areaStart:sd,areaEnd:sd,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function JR(e){return new Ik(e)}function n5(e){return e<0?-1:1}function i5(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(n5(a)+n5(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function a5(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Op(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function cd(e){this._context=e}cd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Op(this,this._t0,a5(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Op(this,a5(this,r=i5(this,e,t)),r);break;default:Op(this,this._t0,r=i5(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function _k(e){this._context=new Dk(e)}(_k.prototype=Object.create(cd.prototype)).point=function(e,t){cd.prototype.point.call(this,t,e)};function Dk(e){this._context=e}Dk.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function eL(e){return new cd(e)}function tL(e){return new _k(e)}function zk(e){this._context=e}zk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=o5(e),i=o5(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function o5(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function rL(e){return new zk(e)}function Uh(e,t){this._context=e,this._t=t}Uh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function nL(e){return new Uh(e,.5)}function iL(e){return new Uh(e,0)}function aL(e){return new Uh(e,1)}function Bo(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,l=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function T1(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function oL(e,t){return e[t]}function lL(e){const t=[];return t.key=e,t}function sL(){var e=Re([]),t=T1,r=Bo,n=oL;function i(a){var o=Array.from(e.apply(this,arguments),lL),l,s=o.length,u=-1,c;for(const f of a)for(l=0,++u;l<s;++l)(o[l][u]=[0,+n(f,o[l].key,u,a)]).data=f;for(l=0,c=r4(t(o));l<s;++l)o[c[l]].index=l;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Re(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Re(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?T1:typeof a=="function"?a:Re(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Bo,i):r},i}function uL(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Bo(e,t)}}function cL(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,l=0;o<i;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}Bo(e,t)}}function fL(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var l=0,s=0,u=0;l<o;++l){for(var c=e[t[l]],f=c[n][1]||0,d=c[n-1][1]||0,m=(f-d)/2,g=0;g<l;++g){var v=e[t[g]],x=v[n][1]||0,y=v[n-1][1]||0;m+=x-y}s+=f,u+=m*f}i[n-1][1]+=i[n-1][0]=r,s&&(r-=u/s)}i[n-1][1]+=i[n-1][0]=r,Bo(e,t)}}function I1(e){return e==="__proto__"}const dL=Object.prototype.hasOwnProperty;function ic(e,t){return dL.call(e,t)}const hL=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function Rk(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e===""||e.startsWith(".")||e.endsWith(".")?!1:hL.test(e);default:return!1}}function qh(e){var t;return typeof e=="string"||typeof e=="symbol"?e:Object.is(e==null||(t=e.valueOf)===null||t===void 0?void 0:t.call(e),-0)?"-0":String(e)}function i4(e){return typeof e=="symbol"||e instanceof Symbol}function Lk(e){if(typeof e=="string")return e;if(Array.isArray(e)){let r="";for(let n=0;n<e.length;n++)n>0&&(r+=","),r+=Lk(e[n]);return r}if(i4(e))return e.toString();const t=e+"";return t==="0"&&Object.is(Number(e),-0)?"-0":t}function mL(e){return e==null?"":Lk(e)}function a4(e){if(Array.isArray(e))return e.map(qh);if(typeof e=="symbol")return[e];e=mL(e);const t=[],r=e.length;if(r===0)return t;let n=0,i="",a="",o=!1,l=!1;const s=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push("");n<r;){const u=e[n];if(a)u==="\\"&&n+1<r?(n++,i+=e[n]):u===a?a="":i+=u;else if(o)if(u==='"'||u==="'")a=u,l=!0;else if(u==="]"){if(o=!1,!l&&i.includes(".")&&!s.test(i)){const c=i.split(".");for(let f=0;f<c.length;f++)c[f]!==""&&t.push(c[f])}else t.push(i);i=""}else i+=u;else if(u==="[")o=!0,l=!1,i&&(t.push(i),i="");else if(u==="."){i&&(t.push(i),i="");const c=e[n+1];(c===void 0||c===".")&&t.push("")}else i+=u;n++}return i&&t.push(i),t}function Vi(e,t,r){if(e==null)return r;switch(typeof t){case"string":{if(I1(t))return r;const n=e[t];return n===void 0?Rk(t)&&!ic(e,t)?Vi(e,a4(t),r):r:n}case"number":case"symbol":{typeof t=="number"&&(t=qh(t));const n=e[t];return n===void 0?r:n}default:{if(Array.isArray(t))return pL(e,t,r);if(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t),I1(t))return r;const n=e[t];return n===void 0?r:n}}}function pL(e,t,r){if(t.length===0)return r;let n=e;for(let i=0;i<t.length;i++){if(n==null||I1(t[i]))return r;n=n[t[i]]}return n===void 0?r:n}var vL=4;function Aa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vL,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function ft(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((i,a,o)=>{var l=r[o-1];return typeof l=="string"?i+l+a:l!==void 0?i+Aa(l)+a:i+a},"")}var Ar=e=>e===0?0:e>0?1:-1,ii=e=>typeof e=="number"&&e!=+e,Fo=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,se=e=>(typeof e=="number"||e instanceof Number)&&!ii(e),dn=e=>se(e)||typeof e=="string",gL=0,ac=e=>{var t=++gL;return"".concat(e||"").concat(t)},Nn=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!se(t)&&typeof t!="string")return n;var a;if(Fo(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return ii(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},$k=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function Le(e,t,r){return se(e)&&se(t)?Aa(e+r*(t-e)):t}function Bk(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Vi(n,t))===r)}var yL=e=>{for(var t=e.length,r=0,n=0,i=0,a=0,o=1/0,l=-1/0,s=0,u=0,c=0;c<t;c++){var f,d;s=((f=e[c])===null||f===void 0?void 0:f.cx)||0,u=((d=e[c])===null||d===void 0?void 0:d.cy)||0,r+=s,n+=u,i+=s*u,a+=s*s,o=Math.min(o,s),l=Math.max(l,s)}var m=t*a!==r*r?(t*i-r*n)/(t*a-r*r):0;return{xmin:o,xmax:l,a:m,b:(n-m*r)/t}},je=e=>e===null||typeof e>"u",Tc=e=>je(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Pr(e){return e!=null}function el(){}var xL=["type","size","sizeType"];function _1(){return _1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_1.apply(null,arguments)}function l5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function s5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l5(Object(r),!0).forEach(function(n){bL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bL(e,t,r){return(t=wL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wL(e){var t=SL(e,"string");return typeof t=="symbol"?t:t+""}function SL(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kL(e,t){if(e==null)return{};var r,n,i=AL(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function AL(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Fk={symbolCircle:n4,symbolCross:LR,symbolDiamond:BR,symbolSquare:FR,symbolStar:qR,symbolTriangle:VR,symbolWye:GR},PL=Math.PI/180,EL=e=>{var t="symbol".concat(Tc(e));return Fk[t]||n4},OL=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*PL;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},CL=(e,t)=>{Fk["symbol".concat(Tc(e))]=t},o4=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=kL(e,xL),a=s5(s5({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var l=()=>{var d=EL(o),m=YR().type(d).size(OL(r,n,o)),g=m();if(g!==null)return g},{className:s,cx:u,cy:c}=a,f=or(a);return se(u)&&se(c)&&se(r)?p.createElement("path",_1({},f,{className:Oe("recharts-symbols",s),transform:"translate(".concat(u,", ").concat(c,")"),d:l()})):null};o4.registerSymbol=CL;var Hk=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,l4=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(p.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{e4(i)&&typeof r[i]=="function"&&(n[i]=a=>r[i](r,a))}),n},jL=(e,t,r)=>n=>(e(t,r,n),null),Vh=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];e4(i)&&typeof a=="function"&&(n||(n={}),n[i]=jL(a,t,r))}),n},NL=e=>Array.isArray(e)&&e.length>0;function u5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ML(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u5(Object(r),!0).forEach(function(n){TL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TL(e,t,r){return(t=IL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IL(e){var t=_L(e,"string");return typeof t=="symbol"?t:t+""}function _L(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tt(e,t){var r=ML({},e),n=t,i=Object.keys(t),a=i.reduce((o,l)=>(o[l]===void 0&&n[l]!==void 0&&(o[l]=n[l]),o),r);return a}function DL(e,t){const r=new Map;for(let n=0;n<e.length;n++){const i=e[n],a=t(i,n,e);r.has(a)||r.set(a,i)}return Array.from(r.values())}function zL(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}function Wk(e){return e}function RL(e){return Number.isSafeInteger(e)&&e>=0}function s4(e){return e!=null&&typeof e!="function"&&RL(e.length)}function LL(e){return function(t){return Vi(t,e)}}function Uk(e){return e==null||typeof e!="object"&&typeof e!="function"}function Mu(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const $L="[object RegExp]",qk="[object String]",Vk="[object Number]",Kk="[object Boolean]",Gk="[object Arguments]",BL="[object Symbol]",FL="[object Date]",HL="[object Map]",WL="[object Set]",UL="[object Array]",qL="[object ArrayBuffer]",VL="[object Object]",KL="[object DataView]",GL="[object Uint8Array]",YL="[object Uint8ClampedArray]",XL="[object Uint16Array]",ZL="[object Uint32Array]",QL="[object Int8Array]",JL="[object Int16Array]",e$="[object Int32Array]",t$="[object Float32Array]",r$="[object Float64Array]";function gf(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Yk(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function Xk(e,t,r){return typeof r!="function"?Xk(e,t,()=>{}):D1(e,t,function n(i,a,o,l,s,u){const c=r(i,a,o,l,s,u);return c!==void 0?!!c:D1(i,a,n,u,!1)},new Map,!0)}function D1(e,t,r,n,i=!1){if(t===e)return!0;switch(typeof t){case"object":return n$(e,t,r,n,i);case"function":return Object.keys(t).length>0?D1(e,Object.assign({},t),r,n,i):gf(e,t);default:return Yk(e)&&i?typeof t=="string"?t==="":!0:gf(e,t)}}function n$(e,t,r,n,i=!1){if(t==null)return!0;if(Array.isArray(t))return Zk(e,t,r,n);if(t instanceof Map)return i$(e,t,r,n);if(t instanceof Set)return a$(e,t,r,n);const a=Object.keys(t);if(e==null)return i&&a.length===0;if(i)Uk(e)&&(e=Object(e));else{if(Mu(t)==="[object Error]")return Mu(e)==="[object Error]"&&e.name===t.name&&e.message===t.message;const o=Mu(e);if(o!=="[object Object]"&&o!=="[object Arguments]")return!1}if(a.length===0)return!0;if(n!=null&&n.has(t))return n.get(t)===e;n==null||n.set(t,e);try{for(let o=0;o<a.length;o++){const l=a[o];if(!(l in e)||t[l]===void 0&&e[l]!==void 0||t[l]===null&&e[l]!==null||!r(e[l],t[l],l,e,t,n))return!1}return!0}finally{n==null||n.delete(t)}}function i$(e,t,r,n){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[i,a]of t.entries())if(r(e.get(i),a,i,e,t,n)===!1)return!1;return!0}function Zk(e,t,r,n){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const i=new Set;for(let a=0;a<t.length;a++){const o=t[a];let l=!1;for(let s=0;s<e.length;s++){if(i.has(s))continue;const u=e[s];let c=!1;if(r(u,o,a,e,t,n)&&(c=!0),c){i.add(s),l=!0;break}}if(!l)return!1}return!0}function a$(e,t,r,n){return t.size===0?!0:e instanceof Set?Zk([...e],[...t],r,n):!1}function Qk(e,t){return Xk(e,t,()=>{})}function o$(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}const c5=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}();function l$(e){return typeof c5.Buffer<"u"&&c5.Buffer.isBuffer(e)}function s$(e){return l$(e)}function u$(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function c$(e){return u$(e)}function f$(e,t){return Dl(e,void 0,e,new Map)}function Dl(e,t,r,n,i){if(Uk(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){const o=new Array(e.length);n.set(e,o);for(let l=0;l<e.length;l++)o[l]=Dl(e[l],l,r,n);return ic(e,"index")&&(o.index=e.index),ic(e,"input")&&(o.input=e.input),o}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const o=new RegExp(e.source,e.flags);return o.lastIndex=e.lastIndex,o}if(e instanceof Map){const o=new Map;return n.set(e,o),e.forEach((l,s)=>{o.set(s,Dl(l,s,r,n))}),o}if(e instanceof Set){const o=new Set;return n.set(e,o),e.forEach(l=>{o.add(Dl(l,void 0,r,n))}),o}if(s$(e))return e.subarray();if(c$(e)){const o=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,o);for(let l=0;l<e.length;l++)o[l]=Dl(e[l],l,r,n);return o}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const o=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,o),ul(o,e,r,n),o}if(typeof File<"u"&&e instanceof File){const o=new File([e],e.name,{type:e.type});return n.set(e,o),ul(o,e,r,n),o}if(typeof Blob<"u"&&e instanceof Blob){const o=new Blob([e],{type:e.type});return n.set(e,o),ul(o,e,r,n),o}const a=Mu(e);if(a==="[object Error]")return e===r?{}:e;switch(a){case Vk:case qk:case Kk:{const o=new e.constructor(e.valueOf());return n.set(e,o),ul(o,e,r,n),o}case Gk:{const o={};return n.set(e,o),ul(o,e,r,n),o.length=e.length,o[Symbol.iterator]=e[Symbol.iterator],o}}if(typeof e=="object"&&d$(a)){const o=a==="[object Object]"&&typeof e.constructor!="function"?{}:Object.create(Object.getPrototypeOf(e));return n.set(e,o),ul(o,e,r,n),o}return e}function ul(e,t,r,n,i){const a=[...Object.keys(t),...o$(t)];for(let o=0;o<a.length;o++){const l=a[o],s=Object.getOwnPropertyDescriptor(e,l);(s==null||s.writable)&&(e[l]=Dl(t[l],l,r,n))}}function d$(e){switch(e){case Gk:case UL:case qL:case KL:case Kk:case FL:case t$:case r$:case QL:case JL:case e$:case HL:case Vk:case VL:case $L:case WL:case qk:case BL:case GL:case YL:case XL:case ZL:return!0;default:return!1}}function Jk(e){return f$(e)}function h$(e){return e=Jk(e),t=>Qk(t,e)}const m$=/^(?:0|[1-9]\d*)$/;function eA(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return m$.test(e)}}function p$(e){return e!==null&&typeof e=="object"&&Mu(e)==="[object Arguments]"}function v$(e,t){let r;if(Array.isArray(t)?r=t:typeof t=="string"&&Rk(t)&&!(t in Object(e))?r=a4(t):r=[t],r.length===0)return!1;let n=e;for(let i=0;i<r.length;i++){const a=qh(r[i]);if((n==null||!ic(n,a))&&!((Array.isArray(n)||p$(n))&&eA(a)&&Number(a)<n.length))return!1;n=n[a]}return!0}function g$(e,t){switch(typeof e){case"object":Object.is(e==null?void 0:e.valueOf(),-0)&&(e="-0");break;case"number":e=qh(e)}return t=Jk(t),function(r){const n=Vi(r,e);return n===void 0?v$(r,e):t===void 0?n===void 0:Qk(n,t)}}function y$(e){if(e==null)return Wk;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?g$(e[0],e[1]):h$(e);default:return LL(e)}}function x$(e){return e===0?0:e}function f5(e,t=Wk){return s4(e)?DL(Array.from(e),zL(y$(t),1)).map(x$):[]}function b$(e,t,r){return t===!0?f5(e,r):typeof t=="function"?f5(e,t):e}var tA={exports:{}},rA={},nA={exports:{}},iA={};/**
|
|
41
|
+
* @license React
|
|
42
|
+
* use-sync-external-store-shim.production.js
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*/var ds=p;function w$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var S$=typeof Object.is=="function"?Object.is:w$,k$=ds.useState,A$=ds.useEffect,P$=ds.useLayoutEffect,E$=ds.useDebugValue;function O$(e,t){var r=t(),n=k$({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return P$(function(){i.value=r,i.getSnapshot=t,Cp(i)&&a({inst:i})},[e,r,t]),A$(function(){return Cp(i)&&a({inst:i}),e(function(){Cp(i)&&a({inst:i})})},[e]),E$(r),r}function Cp(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!S$(e,r)}catch{return!0}}function C$(e,t){return t()}var j$=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?C$:O$;iA.useSyncExternalStore=ds.useSyncExternalStore!==void 0?ds.useSyncExternalStore:j$;nA.exports=iA;var N$=nA.exports;/**
|
|
49
|
+
* @license React
|
|
50
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/var Kh=p,M$=N$;function T$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var I$=typeof Object.is=="function"?Object.is:T$,_$=M$.useSyncExternalStore,D$=Kh.useRef,z$=Kh.useEffect,R$=Kh.useMemo,L$=Kh.useDebugValue;rA.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=D$(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=R$(function(){function s(m){if(!u){if(u=!0,c=m,m=n(m),i!==void 0&&o.hasValue){var g=o.value;if(i(g,m))return f=g}return f=m}if(g=f,I$(c,m))return g;var v=n(m);return i!==void 0&&i(g,v)?(c=m,g):(c=m,f=v)}var u=!1,c,f,d=r===void 0?null:r;return[function(){return s(t())},d===null?void 0:function(){return s(d())}]},[t,r,n,i]);var l=_$(e,a[0],a[1]);return z$(function(){o.hasValue=!0,o.value=l},[l]),L$(l),l};tA.exports=rA;var $$=tA.exports,u4=p.createContext(null),B$=e=>e,Xe=()=>{var e=p.useContext(u4);return e?e.store.dispatch:B$},yf=()=>{},F$=()=>yf,H$=(e,t)=>e===t;function ue(e){var t=p.useContext(u4),r=p.useMemo(()=>t?n=>{if(n!=null)return e(n)}:yf,[t,e]);return $$.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:F$,t?t.store.getState:yf,t?t.store.getState:yf,r,H$)}function W$(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function U$(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function q$(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var d5=e=>Array.isArray(e)?e:[e];function V$(e){const t=Array.isArray(e[0])?e[0]:e;return q$(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function K$(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var G$=class{constructor(e){this.value=e}deref(){return this.value}},Y$=typeof WeakRef<"u"?WeakRef:G$,X$=0,h5=1;function O0(){return{s:X$,v:void 0,o:null,p:null}}function aA(e,t={}){let r=O0();const{resultEqualityCheck:n}=t;let i,a=0;function o(){var f;let l=r;const{length:s}=arguments;for(let d=0,m=s;d<m;d++){const g=arguments[d];if(typeof g=="function"||typeof g=="object"&&g!==null){let v=l.o;v===null&&(l.o=v=new WeakMap);const x=v.get(g);x===void 0?(l=O0(),v.set(g,l)):l=x}else{let v=l.p;v===null&&(l.p=v=new Map);const x=v.get(g);x===void 0?(l=O0(),v.set(g,l)):l=x}}const u=l;let c;if(l.s===h5)c=l.v;else if(c=e.apply(null,arguments),a++,n){const d=((f=i==null?void 0:i.deref)==null?void 0:f.call(i))??i;d!=null&&n(d,c)&&(c=d,a!==0&&a--),i=typeof c=="object"&&c!==null||typeof c=="function"?new Y$(c):c}return u.s=h5,u.v=c,c}return o.clearCache=()=>{r=O0(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Z$(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,l,s={},u=i.pop();typeof u=="object"&&(s=u,u=i.pop()),W$(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...r,...s},{memoize:f,memoizeOptions:d=[],argsMemoize:m=aA,argsMemoizeOptions:g=[]}=c,v=d5(d),x=d5(g),y=V$(i),w=f(function(){return a++,u.apply(null,arguments)},...v),S=m(function(){o++;const P=K$(y,arguments);return l=w.apply(null,P),l},...x);return Object.assign(S,{resultFunc:u,memoizedResultFunc:w,dependencies:y,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>l,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:m})};return Object.assign(n,{withTypes:()=>n}),n}var $=Z$(aA),Q$=Object.assign((e,t=$)=>{U$(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,l,s)=>(o[r[s]]=l,o),{}))},{withTypes:()=>Q$});function J$(e,t=1){const r=[],n=Math.floor(t),i=(a,o)=>{for(let l=0;l<a.length;l++){const s=a[l];Array.isArray(s)&&o<n?i(s,o+1):r.push(s)}};return i(e,0),r}function z1(e,t,r){return Yk(r)&&(typeof t=="number"&&s4(r)&&eA(t)&&t<r.length||typeof t=="string"&&t in r)?gf(r[t],e):!1}function eB(e){const t=Object.keys(e),r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=e[t[n]];return r}function m5(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const tB=(e,t,r)=>{if(e!==t){const n=m5(e),i=m5(t);if(n===i&&n===0){if(e<t)return r==="desc"?1:-1;if(e>t)return r==="desc"?-1:1}return r==="desc"?i-n:n-i}return 0},rB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nB=/^\w*$/;function iB(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||i4(e)?!0:typeof e=="string"&&(nB.test(e)||!rB.test(e))||t!=null}function aB(e,t,r,n){if(e==null)return[];r=r,Array.isArray(e)||(e=s4(e)?Array.from(e):eB(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(l=>String(l));const i=(l,s)=>{let u=l,c=0;for(;c<s.length&&u!=null;++c)u=u[s[c]];return c>0&&c===s.length?u:void 0},a=(l,s)=>{if(l==null)return s;if(s!=null)return typeof l=="object"&&"key"in l?ic(s,l.key)?s[l.key]:i(s,l.path):typeof l=="function"?l(s):Array.isArray(l)?i(s,l):s[l]},o=t.map(l=>(Array.isArray(l)&&l.length===1&&(l=l[0]),l==null||typeof l=="function"||Array.isArray(l)||iB(l)?l:{key:l,path:a4(l)}));return e.map(l=>({original:l,criteria:o.map(s=>a(s,l))})).slice().sort((l,s)=>{for(let u=0;u<o.length;u++){const c=tB(l.criteria[u],s.criteria[u],r[u]);if(c!==0)return c}return 0}).map(l=>l.original)}function Gh(e,...t){const r=t.length;return r>1&&z1(e,t[0],t[1])?t=[]:r>2&&z1(t[0],t[1],t[2])&&(t=[t[0]]),aB(e,J$(t),["asc"])}var oA=e=>e.legend.settings,oB=e=>e.legend.size,lB=e=>e.legend.payload;$([lB,oA],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Gh(n,r):n});var C0=1;function sB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=p.useState({height:0,left:0,top:0,width:0}),n=p.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>C0||Math.abs(o.left-t.left)>C0||Math.abs(o.top-t.top)>C0||Math.abs(o.width-t.width)>C0)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function Vt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var uB=typeof Symbol=="function"&&Symbol.observable||"@@observable",p5=uB,jp=()=>Math.random().toString(36).substring(7).split("").join("."),cB={INIT:`@@redux/INIT${jp()}`,REPLACE:`@@redux/REPLACE${jp()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${jp()}`},fd=cB;function c4(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function lA(e,t,r){if(typeof e!="function")throw new Error(Vt(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Vt(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Vt(1));return r(lA)(e,t)}let n=e,i=t,a=new Map,o=a,l=0,s=!1;function u(){o===a&&(o=new Map,a.forEach((x,y)=>{o.set(y,x)}))}function c(){if(s)throw new Error(Vt(3));return i}function f(x){if(typeof x!="function")throw new Error(Vt(4));if(s)throw new Error(Vt(5));let y=!0;u();const w=l++;return o.set(w,x),function(){if(y){if(s)throw new Error(Vt(6));y=!1,u(),o.delete(w),a=null}}}function d(x){if(!c4(x))throw new Error(Vt(7));if(typeof x.type>"u")throw new Error(Vt(8));if(typeof x.type!="string")throw new Error(Vt(17));if(s)throw new Error(Vt(9));try{s=!0,i=n(i,x)}finally{s=!1}return(a=o).forEach(w=>{w()}),x}function m(x){if(typeof x!="function")throw new Error(Vt(10));n=x,d({type:fd.REPLACE})}function g(){const x=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(Vt(11));function w(){const A=y;A.next&&A.next(c())}return w(),{unsubscribe:x(w)}},[p5](){return this}}}return d({type:fd.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:m,[p5]:g}}function fB(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:fd.INIT})>"u")throw new Error(Vt(12));if(typeof r(void 0,{type:fd.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Vt(13))})}function sA(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{fB(r)}catch(a){i=a}return function(o={},l){if(i)throw i;let s=!1;const u={};for(let c=0;c<n.length;c++){const f=n[c],d=r[f],m=o[f],g=d(m,l);if(typeof g>"u")throw l&&l.type,new Error(Vt(14));u[f]=g,s=s||g!==m}return s=s||n.length!==Object.keys(o).length,s?u:o}}function dd(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function dB(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(Vt(15))};const o={getState:i.getState,dispatch:(s,...u)=>a(s,...u)},l=e.map(s=>s(o));return a=dd(...l)(i.dispatch),{...i,dispatch:a}}}function uA(e){return c4(e)&&"type"in e&&typeof e.type=="string"}var cA=Symbol.for("immer-nothing"),v5=Symbol.for("immer-draftable"),lr=Symbol.for("immer-state");function An(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Hr=Object,hs=Hr.getPrototypeOf,hd="constructor",Yh="prototype",R1="configurable",md="enumerable",xf="writable",oc="value",Ki=e=>!!e&&!!e[lr];function hn(e){var t;return e?fA(e)||Zh(e)||!!e[v5]||!!((t=e[hd])!=null&&t[v5])||Qh(e)||_c(e):!1}var hB=Hr[Yh][hd].toString(),g5=new WeakMap;function fA(e){if(!e||!f4(e))return!1;const t=hs(e);if(t===null||t===Hr[Yh])return!0;const r=Hr.hasOwnProperty.call(t,hd)&&t[hd];if(r===Object)return!0;if(!Sl(r))return!1;let n=g5.get(r);return n===void 0&&(n=Function.toString.call(r),g5.set(r,n)),n===hB}function Xh(e,t,r=!0){Ic(e)===0?(r?Reflect.ownKeys(e):Hr.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Ic(e){const t=e[lr];return t?t.type_:Zh(e)?1:Qh(e)?2:_c(e)?3:0}var Np=(e,t,r=Ic(e))=>r===2?e.has(t):Hr[Yh].hasOwnProperty.call(e,t),L1=(e,t,r=Ic(e))=>r===2?e.get(t):e[t],pd=(e,t,r,n=Ic(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function mB(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Zh=Array.isArray,Qh=e=>e instanceof Map,_c=e=>e instanceof Set,f4=e=>typeof e=="object",Sl=e=>typeof e=="function",Mp=e=>typeof e=="boolean";function pB(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Pi=e=>e.copy_||e.base_,d4=e=>e.modified_?e.copy_:e.base_;function $1(e,t){if(Qh(e))return new Map(e);if(_c(e))return new Set(e);if(Zh(e))return Array[Yh].slice.call(e);const r=fA(e);if(t===!0||t==="class_only"&&!r){const n=Hr.getOwnPropertyDescriptors(e);delete n[lr];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],l=n[o];l[xf]===!1&&(l[xf]=!0,l[R1]=!0),(l.get||l.set)&&(n[o]={[R1]:!0,[xf]:!0,[md]:l[md],[oc]:e[o]})}return Hr.create(hs(e),n)}else{const n=hs(e);if(n!==null&&r)return{...e};const i=Hr.create(n);return Hr.assign(i,e)}}function h4(e,t=!1){return Jh(e)||Ki(e)||!hn(e)||(Ic(e)>1&&Hr.defineProperties(e,{set:j0,add:j0,clear:j0,delete:j0}),Hr.freeze(e),t&&Xh(e,(r,n)=>{h4(n,!0)},!1)),e}function vB(){An(2)}var j0={[oc]:vB};function Jh(e){return e===null||!f4(e)?!0:Hr.isFrozen(e)}var vd="MapSet",B1="Patches",y5="ArrayMethods",dA={};function Ho(e){const t=dA[e];return t||An(0,e),t}var x5=e=>!!dA[e],lc,hA=()=>lc,gB=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:x5(vd)?Ho(vd):void 0,arrayMethodsPlugin_:x5(y5)?Ho(y5):void 0});function b5(e,t){t&&(e.patchPlugin_=Ho(B1),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function F1(e){H1(e),e.drafts_.forEach(yB),e.drafts_=null}function H1(e){e===lc&&(lc=e.parent_)}var w5=e=>lc=gB(lc,e);function yB(e){const t=e[lr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function S5(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[lr].modified_&&(F1(t),An(4)),hn(e)&&(e=k5(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[lr].base_,e,t)}else e=k5(t,r);return xB(t,e,!0),F1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==cA?e:void 0}function k5(e,t){if(Jh(t))return t;const r=t[lr];if(!r)return gd(t,e.handledSet_,e);if(!em(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);vA(r,e)}return r.copy_}function xB(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&h4(t,r)}function mA(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var em=(e,t)=>e.scope_===t,bB=[];function pA(e,t,r,n){const i=Pi(e),a=e.type_;if(n!==void 0&&L1(i,n,a)===t){pd(i,n,r,a);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;Xh(i,(s,u)=>{if(Ki(u)){const c=l.get(u)||[];c.push(s),l.set(u,c)}})}const o=e.draftLocations_.get(t)??bB;for(const l of o)pd(i,l,r,a)}function wB(e,t,r){e.callbacks_.push(function(i){var l;const a=t;if(!a||!em(a,i))return;(l=i.mapSetPlugin_)==null||l.fixSetContents(a);const o=d4(a);pA(e,a.draft_??a,o,r),vA(a,i)})}function vA(e,t){var n;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((n=e.assigned_)==null?void 0:n.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const a=i.getPath(e);a&&i.generatePatches_(e,a,t)}mA(e)}}function SB(e,t,r){const{scope_:n}=e;if(Ki(r)){const i=r[lr];em(i,n)&&i.callbacks_.push(function(){bf(e);const o=d4(i);pA(e,r,o,t)})}else hn(r)&&e.callbacks_.push(function(){const a=Pi(e);e.type_===3?a.has(r)&&gd(r,n.handledSet_,n):L1(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&gd(L1(e.copy_,t,e.type_),n.handledSet_,n)})}function gd(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ki(e)||t.has(e)||!hn(e)||Jh(e)||(t.add(e),Xh(e,(n,i)=>{if(Ki(i)){const a=i[lr];if(em(a,r)){const o=d4(a);pd(e,n,o,e.type_),mA(a)}}else hn(i)&&gd(i,t,r)})),e}function kB(e,t){const r=Zh(e),n={type_:r?1:0,scope_:t?t.scope_:hA(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,a=yd;r&&(i=[n],a=sc);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=o,[l,n]}var yd={get(e,t){if(t===lr)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r!=null&&r.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=Pi(e);if(!Np(i,t,e.type_))return PB(e,i,t);const a=i[t];if(e.finalized_||!hn(a)||n&&e.operationMethod&&(r!=null&&r.isMutatingArrayMethod(e.operationMethod))&&pB(t))return a;if(a===Tp(e.base_,t)||AB(e,t,a)){bf(e);const o=e.type_===1?+t:t,l=U1(e.scope_,a,e,o);return e.copy_[o]=l}return a},has(e,t){return t in Pi(e)},ownKeys(e){return Reflect.ownKeys(Pi(e))},set(e,t,r){const n=gA(Pi(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Tp(Pi(e),t),a=i==null?void 0:i[lr];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.delete(t),!0;if(mB(r,i)&&(r!==void 0||Np(e.base_,t,e.type_)))return!0;bf(e),W1(e)}return e.copy_[t]===r&&(r!==void 0||Np(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),SB(e,t,r)),!0},deleteProperty(e,t){return bf(e),Tp(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),W1(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Pi(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[xf]:!0,[R1]:e.type_!==1||t!=="length",[md]:n[md],[oc]:r[t]}},defineProperty(){An(11)},getPrototypeOf(e){return hs(e.base_)},setPrototypeOf(){An(12)}},sc={};for(let e in yd){let t=yd[e];sc[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}sc.deleteProperty=function(e,t){return sc.set.call(this,e,t,void 0)};sc.set=function(e,t,r){return yd.set.call(this,e[0],t,r,e[0])};function Tp(e,t){const r=e[lr];return(r?Pi(r):e)[t]}function AB(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||!hn(r)||r[lr]?!1:e.baseRefs_.has(r)}function PB(e,t,r){var i;const n=gA(t,r);return n?oc in n?n[oc]:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function gA(e,t){if(!(t in e))return;let r=hs(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=hs(r)}}function W1(e){e.modified_||(e.modified_=!0,e.parent_&&W1(e.parent_))}function bf(e){e.copy_||(e.assigned_=new Map,e.copy_=$1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var EB=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(Sl(r)&&!Sl(n)){const o=n;n=r;const l=this;return function(u=o,...c){return l.produce(u,f=>n.call(this,f,...c))}}Sl(n)||An(6),i!==void 0&&!Sl(i)&&An(7);let a;if(hn(r)){const o=w5(this),l=U1(o,r,void 0);let s=!0;try{a=n(l),s=!1}finally{s?F1(o):H1(o)}return b5(o,i),S5(a,o)}else if(!r||!f4(r)){if(a=n(r),a===void 0&&(a=r),a===cA&&(a=void 0),this.autoFreeze_&&h4(a,!0),i){const o=[],l=[];Ho(B1).generateReplacementPatches_(r,a,{patches_:o,inversePatches_:l}),i(o,l)}return a}else An(1,r)},this.produceWithPatches=(r,n)=>{if(Sl(r))return(l,...s)=>this.produceWithPatches(l,u=>r(u,...s));let i,a;return[this.produce(r,n,(l,s)=>{i=l,a=s}),i,a]},Mp(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Mp(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Mp(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){hn(t)||An(8),Ki(t)&&(t=an(t));const r=w5(this),n=U1(r,t,void 0);return n[lr].isManual_=!0,H1(r),n}finishDraft(t,r){const n=t&&t[lr];(!n||!n.isManual_)&&An(9);const{scope_:i}=n;return b5(i,r),S5(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const a=r[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(r=r.slice(n+1));const i=Ho(B1).applyPatches_;return Ki(t)?i(t,r):this.produce(t,a=>i(a,r))}};function U1(e,t,r,n){const[i,a]=Qh(t)?Ho(vd).proxyMap_(t,r):_c(t)?Ho(vd).proxySet_(t,r):kB(t,r);return((r==null?void 0:r.scope_)??hA()).drafts_.push(i),a.callbacks_=(r==null?void 0:r.callbacks_)??[],a.key_=n,r&&n!==void 0?wB(r,a,n):a.callbacks_.push(function(s){var c;(c=s.mapSetPlugin_)==null||c.fixSetContents(a);const{patchPlugin_:u}=s;a.modified_&&u&&u.generatePatches_(a,[],s)}),i}function an(e){return Ki(e)||An(10,e),yA(e)}function yA(e){if(!hn(e)||Jh(e))return e;const t=e[lr];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=$1(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=$1(e,!0);const i=r;return _c(r)&&(r=new Set),Xh(i,(a,o)=>{pd(r,a,yA(o))},n),t&&(t.finalized_=!1),r}var Ip=globalThis.Iterator;Ip==null||Ip.from;var OB=new EB,xA=OB.produce;function bA(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var CB=bA(),jB=bA;const NB=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?dd:dd.apply(null,arguments)};function Vr(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Ir(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>uA(n)&&n.type===e,r}var wA=class yu extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,yu.prototype)}static get[Symbol.species](){return yu}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new yu(...t[0].concat(this)):new yu(...t.concat(this))}};function A5(e){return hn(e)?xA(e,()=>{}):e}function N0(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function MB(e){return typeof e=="boolean"}const TB=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new wA;return r&&(MB(r)?o.push(CB):o.push(jB(r.extraArgument))),o},SA="RTK_autoBatch",qe=()=>e=>({payload:e,meta:{[SA]:!0}}),P5=e=>t=>{setTimeout(t,e)},IB=(e,t)=>r=>{let n=!1,i,a;const o=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(a),r())};i=e(o),a=setTimeout(o,t)},kA=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const l=new Set,s=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?IB(window.requestAnimationFrame,100):P5(10):e.type==="callback"?e.queueNotification:P5(e.timeout),u=()=>{o=!1,a&&(a=!1,l.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>i&&c(),d=n.subscribe(f);return l.add(c),()=>{d(),l.delete(c)}},dispatch(c){var f;try{return i=!((f=c==null?void 0:c.meta)!=null&&f[SA]),a=!i,a&&(o||(o=!0,s(u))),n.dispatch(c)}finally{i=!0}}})},_B=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new wA(e);return n&&i.push(kA(typeof n=="object"?n:void 0)),i};function DB(e){const t=TB(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(c4(r))l=sA(r);else throw new Error(Ir(1));let s;typeof n=="function"?s=n(t):s=t();let u=dd;i&&(u=NB({trace:!1,...typeof i=="object"&&i}));const c=dB(...s),f=_B(c);let d=typeof o=="function"?o(f):f();const m=u(...d);return lA(l,a,m)}function AA(e){const t={},r=[];let n;const i={addCase(a,o){const l=typeof a=="string"?a:a.type;if(!l)throw new Error(Ir(28));if(l in t)throw new Error(Ir(29));return t[l]=o,i},addAsyncThunk(a,o){return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function zB(e){return typeof e=="function"}function RB(e,t){let[r,n,i]=AA(t),a;if(zB(e))a=()=>A5(e());else{const l=A5(e);a=()=>l}function o(l=a(),s){let u=[r[s.type],...n.filter(({matcher:c})=>c(s)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,f)=>{if(f)if(Ki(c)){const d=f(c,s);return d===void 0?c:d}else{if(hn(c))return xA(c,d=>f(d,s));{const d=f(c,s);if(d===void 0){if(c===null)return c;throw new Error(Ir(9))}return d}}return c},l)}return o.getInitialState=a,o}let LB="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$B=(e=21)=>{let t="",r=e;for(;r--;)t+=LB[Math.random()*64|0];return t};const BB=Symbol.for("rtk-slice-createasyncthunk");function FB(e,t){return`${e}/${t}`}function HB({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[BB];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(Ir(11));const l=(typeof i.reducers=="function"?i.reducers(UB()):i.reducers)||{},s=Object.keys(l),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(A,P){const O=typeof A=="string"?A:A.type;if(!O)throw new Error(Ir(12));if(O in u.sliceCaseReducersByType)throw new Error(Ir(13));return u.sliceCaseReducersByType[O]=P,c},addMatcher(A,P){return u.sliceMatchers.push({matcher:A,reducer:P}),c},exposeAction(A,P){return u.actionCreators[A]=P,c},exposeCaseReducer(A,P){return u.sliceCaseReducersByName[A]=P,c}};s.forEach(A=>{const P=l[A],O={reducerName:A,type:FB(a,A),createNotation:typeof i.reducers=="function"};VB(P)?GB(O,P,c,t):qB(O,P,c)});function f(){const[A={},P=[],O=void 0]=typeof i.extraReducers=="function"?AA(i.extraReducers):[i.extraReducers],j={...A,...u.sliceCaseReducersByType};return RB(i.initialState,N=>{for(let _ in j)N.addCase(_,j[_]);for(let _ of u.sliceMatchers)N.addMatcher(_.matcher,_.reducer);for(let _ of P)N.addMatcher(_.matcher,_.reducer);O&&N.addDefaultCase(O)})}const d=A=>A,m=new Map,g=new WeakMap;let v;function x(A,P){return v||(v=f()),v(A,P)}function y(){return v||(v=f()),v.getInitialState()}function w(A,P=!1){function O(N){let _=N[A];return typeof _>"u"&&P&&(_=N0(g,O,y)),_}function j(N=d){return N0(N0(m,P,()=>new WeakMap),N,()=>{const _={};for(const[z,R]of Object.entries(i.selectors??{}))_[z]=WB(R,N,()=>N0(g,N,y),P);return _})}return{reducerPath:A,getSelectors:j,get selectors(){return j(O)},selectSlice:O}}const S={name:a,reducer:x,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:y,...w(o),injectInto(A,{reducerPath:P,...O}={}){const j=P??o;return A.inject({reducerPath:j,reducer:x},O),{...S,...w(j,!0)}}};return S}}function WB(e,t,r,n){function i(a,...o){let l=t(a);return typeof l>"u"&&n&&(l=r()),e(l,...o)}return i.unwrapped=e,i}const sr=HB();function UB(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function qB({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!KB(n))throw new Error(Ir(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Vr(e,o):Vr(e))}function VB(e){return e._reducerDefinitionType==="asyncThunk"}function KB(e){return e._reducerDefinitionType==="reducerWithPrepare"}function GB({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ir(18));const{payloadCreator:a,fulfilled:o,pending:l,rejected:s,settled:u,options:c}=r,f=i(e,a,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),l&&n.addCase(f.pending,l),s&&n.addCase(f.rejected,s),u&&n.addMatcher(f.settled,u),n.exposeCaseReducer(t,{fulfilled:o||M0,pending:l||M0,rejected:s||M0,settled:u||M0})}function M0(){}const YB="task",PA="listener",EA="completed",m4="cancelled",XB=`task-${m4}`,ZB=`task-${EA}`,q1=`${PA}-${m4}`,QB=`${PA}-${EA}`;var tm=class{constructor(e){i0(this,"code");i0(this,"name","TaskAbortError");i0(this,"message");this.code=e,this.message=`${YB} ${m4} (reason: ${e})`}};const p4=(e,t)=>{if(typeof e!="function")throw new TypeError(Ir(32))},xd=()=>{},OA=(e,t=xd)=>(e.catch(t),e),CA=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Eo=e=>{if(e.aborted)throw new tm(e.reason)};function jA(e,t){let r=xd;return new Promise((n,i)=>{const a=()=>i(new tm(e.reason));if(e.aborted){a();return}r=CA(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=xd})}const JB=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof tm?"cancelled":"rejected",error:r}}finally{t==null||t()}},bd=e=>t=>OA(jA(e,t).then(r=>(Eo(e),r))),NA=e=>{const t=bd(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Yl}=Object,E5={},rm="listenerMiddleware",eF=(e,t)=>{const r=n=>CA(e,()=>n.abort(e.reason));return(n,i)=>{p4(n);const a=new AbortController;r(a);const o=JB(async()=>{Eo(e),Eo(a.signal);const l=await n({pause:bd(a.signal),delay:NA(a.signal),signal:a.signal});return Eo(a.signal),l},()=>a.abort(ZB));return i!=null&&i.autoJoin&&t.push(o.catch(xd)),{result:bd(e)(o),cancel(){a.abort(XB)}}}},tF=(e,t)=>{const r=async(n,i)=>{Eo(t);let a=()=>{};const o=[new Promise((l,s)=>{let u=e({predicate:n,effect:(c,f)=>{f.unsubscribe(),l([c,f.getState(),f.getOriginalState()])}});a=()=>{u(),s()}})];i!=null&&o.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await jA(t,Promise.race(o));return Eo(t),l}finally{a()}};return(n,i)=>OA(r(n,i))},MA=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Vr(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Ir(21));return p4(a),{predicate:i,type:t,effect:a}},TA=Yl(e=>{const{type:t,predicate:r,effect:n}=MA(e);return{id:$B(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Ir(22))}}},{withTypes:()=>TA}),O5=(e,t)=>{const{type:r,effect:n,predicate:i}=MA(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},V1=e=>{e.pending.forEach(t=>{t.abort(q1)})},rF=(e,t)=>()=>{for(const r of t.keys())V1(r);e.clear()},C5=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},IA=Yl(Vr(`${rm}/add`),{withTypes:()=>IA}),nF=Vr(`${rm}/removeAll`),_A=Yl(Vr(`${rm}/remove`),{withTypes:()=>_A}),iF=(...e)=>{console.error(`${rm}/error`,...e)},Dc=(e={})=>{const t=new Map,r=new Map,n=m=>{const g=r.get(m)??0;r.set(m,g+1)},i=m=>{const g=r.get(m)??1;g===1?r.delete(m):r.set(m,g-1)},{extra:a,onError:o=iF}=e;p4(o);const l=m=>(m.unsubscribe=()=>t.delete(m.id),t.set(m.id,m),g=>{m.unsubscribe(),g!=null&&g.cancelActive&&V1(m)}),s=m=>{const g=O5(t,m)??TA(m);return l(g)};Yl(s,{withTypes:()=>s});const u=m=>{const g=O5(t,m);return g&&(g.unsubscribe(),m.cancelActive&&V1(g)),!!g};Yl(u,{withTypes:()=>u});const c=async(m,g,v,x)=>{const y=new AbortController,w=tF(s,y.signal),S=[];try{m.pending.add(y),n(m),await Promise.resolve(m.effect(g,Yl({},v,{getOriginalState:x,condition:(A,P)=>w(A,P).then(Boolean),take:w,delay:NA(y.signal),pause:bd(y.signal),extra:a,signal:y.signal,fork:eF(y.signal,S),unsubscribe:m.unsubscribe,subscribe:()=>{t.set(m.id,m)},cancelActiveListeners:()=>{m.pending.forEach((A,P,O)=>{A!==y&&(A.abort(q1),O.delete(A))})},cancel:()=>{y.abort(q1),m.pending.delete(y)},throwIfCancelled:()=>{Eo(y.signal)}})))}catch(A){A instanceof tm||C5(o,A,{raisedBy:"effect"})}finally{await Promise.all(S),y.abort(QB),i(m),m.pending.delete(y)}},f=rF(t,r);return{middleware:m=>g=>v=>{if(!uA(v))return g(v);if(IA.match(v))return s(v.payload);if(nF.match(v)){f();return}if(_A.match(v))return u(v.payload);let x=m.getState();const y=()=>{if(x===E5)throw new Error(Ir(23));return x};let w;try{if(w=g(v),t.size>0){const S=m.getState(),A=Array.from(t.values());for(const P of A){let O=!1;try{O=P.predicate(v,S,x)}catch(j){O=!1,C5(o,j,{raisedBy:"predicate"})}O&&c(P,v,m,y)}}}finally{x=E5}return w},startListening:s,stopListening:u,clearListeners:f}};function Ir(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var aF={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},DA=sr({name:"chartLayout",initialState:aF,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:oF,setLayout:lF,setChartSize:sF,setScale:uF}=DA.actions,cF=DA.reducer;function zA(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function xe(e){return Number.isFinite(e)}function ai(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function j5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j5(Object(r),!0).forEach(function(n){fF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fF(e,t,r){return(t=dF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dF(e){var t=hF(e,"string");return typeof t=="symbol"?t:t+""}function hF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ye(e,t,r){return je(e)||je(t)?r:dn(t)?Vi(e,t,r):typeof t=="function"?t(e):r}var mF=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:l}=t;if((l==="vertical"||l==="horizontal"&&o==="middle")&&a!=="center"&&se(e[a]))return zl(zl({},e),{},{[a]:e[a]+(n||0)});if((l==="horizontal"||l==="vertical"&&a==="center")&&o!=="middle"&&se(e[o]))return zl(zl({},e),{},{[o]:e[o]+(i||0)})}return e},ra=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",RA=(e,t,r,n)=>{if(n)return e.map(l=>l.coordinate);var i,a,o=e.map(l=>(l.coordinate===t&&(i=!0),l.coordinate===r&&(a=!0),l.coordinate));return i||o.push(t),a||o.push(r),o},LA=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:l,isCategorical:s,categoricalDomain:u,tickCount:c,ticks:f,niceTicks:d,axisType:m}=e;if(!o)return null;var g=l==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,v=i==="category"&&o.bandwidth?o.bandwidth()/g:0;if(v=m==="angleAxis"&&a&&a.length>=2?Ar(a[0]-a[1])*2*v:v,f||d){var x=(f||d||[]).map((y,w)=>{var S=n?n.indexOf(y):y,A=o.map(S);return xe(A)?{coordinate:A+v,value:y,offset:v,index:w}:null}).filter(Pr);return x}return s&&u?u.map((y,w)=>{var S=o.map(y);return xe(S)?{coordinate:S+v,value:y,index:w,offset:v}:null}).filter(Pr):o.ticks&&c!=null?o.ticks(c).map((y,w)=>{var S=o.map(y);return xe(S)?{coordinate:S+v,value:y,index:w,offset:v}:null}).filter(Pr):o.domain().map((y,w)=>{var S=o.map(y);return xe(S)?{coordinate:S+v,value:n?n[y]:y,index:w,offset:v}:null}).filter(Pr)},pF=(e,t)=>{if(!t||t.length!==2||!se(t[0])||!se(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!se(e[0])||e[0]<r)&&(i[0]=r),(!se(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},vF=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0,l=0;l<r;++l){var s=e[l],u=s==null?void 0:s[i];if(u!=null){var c=u[1],f=u[0],d=ii(c)?f:c;d>=0?(u[0]=a,a+=d,u[1]=a):(u[0]=o,o+=d,u[1]=o)}}}},gF=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0;o<r;++o){var l=e[o],s=l==null?void 0:l[i];if(s!=null){var u=ii(s[1])?s[0]:s[1];u>=0?(s[0]=a,a+=u,s[1]=a):(s[0]=0,s[1]=0)}}}},yF={sign:vF,expand:uL,none:Bo,silhouette:cL,wiggle:fL,positive:gF},xF=(e,t,r)=>{var n,i=(n=yF[r])!==null&&n!==void 0?n:Bo,a=sL().keys(t).value((l,s)=>Number(Ye(l,s,0))).order(T1).offset(i),o=a(e);return o.forEach((l,s)=>{l.forEach((u,c)=>{var f=Ye(e[c],t[s],0);Array.isArray(f)&&f.length===2&&se(f[0])&&se(f[1])&&(u[0]=f[0],u[1]=f[1])})}),o};function bF(e){return e==null?void 0:String(e)}function wd(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!je(i[t.dataKey])){var l=Bk(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var s=Ye(i,je(o)?t.dataKey:o),u=t.scale.map(s);return se(u)?u:null}var N5=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var l=Ye(a,t.dataKey,t.scale.domain()[o]);if(je(l))return null;var s=t.scale.map(l);return se(s)?s-i/2+n:null},wF=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},SF=e=>{var t=e.flat(2).filter(se);return[Math.min(...t),Math.max(...t)]},kF=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],AF=(e,t,r)=>{if(e!=null)return kF(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,l=o.reduce((s,u)=>{var c=zA(u,t,r),f=SF(c);return!xe(f[0])||!xe(f[1])?s:[Math.min(s[0],f[0]),Math.max(s[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],n[0]),Math.max(l[1],n[1])]},[1/0,-1/0]))},M5=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,T5=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ms=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Gh(t,c=>c.coordinate),a=1/0,o=1,l=i.length;o<l;o++){var s=i[o],u=i[o-1];a=Math.min(((s==null?void 0:s.coordinate)||0)-((u==null?void 0:u.coordinate)||0),a)}return a===1/0?0:a}return r?void 0:0};function I5(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return zl(zl({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Ts(e,t){if(e)return String(e);if(typeof t=="string")return t}var PF=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},EF=(e,t)=>t==="centric"?e.angle:e.radius,na=e=>e.layout.width,ia=e=>e.layout.height,OF=e=>e.layout.scale,$A=e=>e.layout.margin,nm=$(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),im=$(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),CF="data-recharts-item-index",BA="data-recharts-item-id",zc=60;function _5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function T0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_5(Object(r),!0).forEach(function(n){jF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jF(e,t,r){return(t=NF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NF(e){var t=MF(e,"string");return typeof t=="symbol"?t:t+""}function MF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TF=e=>e.brush.height;function IF(e){var t=im(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:zc;return r+i}return r},0)}function _F(e){var t=im(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:zc;return r+i}return r},0)}function DF(e){var t=nm(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function zF(e){var t=nm(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Ht=$([na,ia,$A,TF,IF,_F,DF,zF,oA,oB],(e,t,r,n,i,a,o,l,s,u)=>{var c={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+l},d=T0(T0({},f),c),m=d.bottom;d.bottom+=n,d=mF(d,s,u);var g=e-d.left-d.right,v=t-d.top-d.bottom;return T0(T0({brushBottom:m},d),{},{width:Math.max(g,0),height:Math.max(v,0)})}),RF=$(Ht,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),v4=$(na,ia,(e,t)=>({x:0,y:0,width:e,height:t})),LF=p.createContext(null),It=()=>p.useContext(LF)!=null,am=e=>e.brush,om=$([am,Ht,$A],(e,t,r)=>({height:e.height,x:se(e.x)?e.x:t.left,y:se(e.y)?e.y:t.top+t.height+t.brushBottom-((r==null?void 0:r.bottom)||0),width:se(e.width)?e.width:t.width}));function $F(e,t,{signal:r,edges:n}={}){let i,a=null;const o=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),s=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},u=()=>{l&&s(),m()};let c=null;const f=()=>{c!=null&&clearTimeout(c),c=setTimeout(()=>{c=null,u()},t)},d=()=>{c!==null&&(clearTimeout(c),c=null)},m=()=>{d(),i=void 0,a=null},g=()=>{s()},v=function(...x){if(r!=null&&r.aborted)return;i=this,a=x;const y=c==null;f(),o&&y&&s()};return v.schedule=f,v.cancel=m,v.flush=g,r==null||r.addEventListener("abort",m,{once:!0}),v}function BF(e,t=0,r={}){typeof r!="object"&&(r={});const{leading:n=!1,trailing:i=!0,maxWait:a}=r,o=Array(2);n&&(o[0]="leading"),i&&(o[1]="trailing");let l,s=null;const u=$F(function(...d){l=e.apply(this,d),s=null},t,{edges:o}),c=function(...d){return a!=null&&(s===null&&(s=Date.now()),Date.now()-s>=a)?((n||i)&&(l=e.apply(this,d)),s=Date.now(),u.cancel(),u.schedule(),l):(u.apply(this,d),l)},f=()=>(u.flush(),l);return c.cancel=u.cancel,c.flush=f,c}function FF(e,t=0,r={}){const{leading:n=!0,trailing:i=!0}=r;return BF(e,t,{leading:n,maxWait:t,trailing:i})}var Sd=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,()=>i[o++]))}},Gn={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},FA=(e,t,r)=>{var{width:n=Gn.width,height:i=Gn.height,aspect:a,maxHeight:o}=r,l=Fo(n)?e:Number(n),s=Fo(i)?t:Number(i);return a&&a>0&&(l?s=l/a:s&&(l=s*a),o&&s!=null&&s>o&&(s=o)),{calculatedWidth:l,calculatedHeight:s}},HF={width:0,height:0,overflow:"visible"},WF={width:0,overflowX:"visible"},UF={height:0,overflowY:"visible"},qF={},VF=e=>{var{width:t,height:r}=e,n=Fo(t),i=Fo(r);return n&&i?HF:n?WF:i?UF:qF};function KF(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i=Gn.width,a=Gn.height):i===void 0?i=n&&n>0?void 0:Gn.width:a===void 0&&(a=n&&n>0?void 0:Gn.height),{width:i,height:a}}function K1(){return K1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},K1.apply(null,arguments)}function D5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function z5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D5(Object(r),!0).forEach(function(n){GF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GF(e,t,r){return(t=YF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YF(e){var t=XF(e,"string");return typeof t=="symbol"?t:t+""}function XF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HA=p.createContext(Gn.initialDimension);function ZF(e){return ai(e.width)&&ai(e.height)}function WA(e){var{children:t,width:r,height:n}=e,i=p.useMemo(()=>({width:r,height:n}),[r,n]);return ZF(i)?p.createElement(HA.Provider,{value:i},t):null}var g4=()=>p.useContext(HA),QF=p.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=Gn.initialDimension,width:i,height:a,minWidth:o=Gn.minWidth,minHeight:l,maxHeight:s,children:u,debounce:c=Gn.debounce,id:f,className:d,onResize:m,style:g={}}=e,v=p.useRef(null),x=p.useRef();x.current=m,p.useImperativeHandle(t,()=>v.current);var[y,w]=p.useState({containerWidth:n.width,containerHeight:n.height}),S=p.useCallback((N,_)=>{w(z=>{var R=Math.round(N),I=Math.round(_);return z.containerWidth===R&&z.containerHeight===I?z:{containerWidth:R,containerHeight:I}})},[]);p.useEffect(()=>{if(v.current==null||typeof ResizeObserver>"u")return el;var N=I=>{var F,H=I[0];if(H!=null){var{width:Z,height:X}=H.contentRect;S(Z,X),(F=x.current)===null||F===void 0||F.call(x,Z,X)}};c>0&&(N=FF(N,c,{trailing:!0,leading:!1}));var _=new ResizeObserver(N),{width:z,height:R}=v.current.getBoundingClientRect();return S(z,R),_.observe(v.current),()=>{_.disconnect()}},[S,c]);var{containerWidth:A,containerHeight:P}=y;Sd(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:O,calculatedHeight:j}=FA(A,P,{width:i,height:a,aspect:r,maxHeight:s});return Sd(O!=null&&O>0||j!=null&&j>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
57
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
58
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
59
|
+
height and width.`,O,j,i,a,o,l,r),p.createElement("div",{id:f?"".concat(f):void 0,className:Oe("recharts-responsive-container",d),style:z5(z5({},g),{},{width:i,height:a,minWidth:o,minHeight:l,maxHeight:s}),ref:v},p.createElement("div",{style:VF({width:i,height:a})},p.createElement(WA,{width:O,height:j},u)))}),UA=p.forwardRef((e,t)=>{var r=g4();if(ai(r.width)&&ai(r.height))return e.children;var{width:n,height:i}=KF({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=FA(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return se(a)&&se(o)?p.createElement(WA,{width:a,height:o},e.children):p.createElement(QF,K1({},e,{width:n,height:i,ref:t}))});function y4(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Is=()=>{var e,t=It(),r=ue(RF),n=ue(om),i=(e=ue(am))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},JF={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},qA=()=>{var e;return(e=ue(Ht))!==null&&e!==void 0?e:JF},VA=()=>ue(na),KA=()=>ue(ia),Me=e=>e.layout.layoutType,tl=()=>ue(Me),GA=()=>{var e=tl();if(e==="horizontal"||e==="vertical")return e},YA=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},eH=()=>{var e=tl();return e!==void 0},Rc=e=>{var t=Xe(),r=It(),{width:n,height:i}=e,a=g4(),o=n,l=i;return a&&(o=a.width>0?a.width:n,l=a.height>0?a.height:i),p.useEffect(()=>{!r&&ai(o)&&ai(l)&&t(sF({width:o,height:l}))},[t,r,o,l]),null},XA=Symbol.for("immer-nothing"),R5=Symbol.for("immer-draftable"),Kr=Symbol.for("immer-state");function Pn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var uc=Object.getPrototypeOf;function ps(e){return!!e&&!!e[Kr]}function Wo(e){var t;return e?ZA(e)||Array.isArray(e)||!!e[R5]||!!((t=e.constructor)!=null&&t[R5])||Lc(e)||sm(e):!1}var tH=Object.prototype.constructor.toString(),L5=new WeakMap;function ZA(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=L5.get(r);return n===void 0&&(n=Function.toString.call(r),L5.set(r,n)),n===tH}function kd(e,t,r=!0){lm(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function lm(e){const t=e[Kr];return t?t.type_:Array.isArray(e)?1:Lc(e)?2:sm(e)?3:0}function G1(e,t){return lm(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function QA(e,t,r){const n=lm(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function rH(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Lc(e){return e instanceof Map}function sm(e){return e instanceof Set}function fo(e){return e.copy_||e.base_}function Y1(e,t){if(Lc(e))return new Map(e);if(sm(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=ZA(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Kr];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],l=n[o];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(n[o]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[o]})}return Object.create(uc(e),n)}else{const n=uc(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function x4(e,t=!1){return um(e)||ps(e)||!Wo(e)||(lm(e)>1&&Object.defineProperties(e,{set:I0,add:I0,clear:I0,delete:I0}),Object.freeze(e),t&&Object.values(e).forEach(r=>x4(r,!0))),e}function nH(){Pn(2)}var I0={value:nH};function um(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var iH={};function Uo(e){const t=iH[e];return t||Pn(0,e),t}var cc;function JA(){return cc}function aH(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function $5(e,t){t&&(Uo("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function X1(e){Z1(e),e.drafts_.forEach(oH),e.drafts_=null}function Z1(e){e===cc&&(cc=e.parent_)}function B5(e){return cc=aH(cc,e)}function oH(e){const t=e[Kr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function F5(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Kr].modified_&&(X1(t),Pn(4)),Wo(e)&&(e=Ad(t,e),t.parent_||Pd(t,e)),t.patches_&&Uo("Patches").generateReplacementPatches_(r[Kr].base_,e,t.patches_,t.inversePatches_)):e=Ad(t,r,[]),X1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==XA?e:void 0}function Ad(e,t,r){if(um(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[Kr];if(!i)return kd(t,(a,o)=>H5(e,i,t,a,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return Pd(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let o=a,l=!1;i.type_===3&&(o=new Set(a),a.clear(),l=!0),kd(o,(s,u)=>H5(e,i,a,s,u,r,l),n),Pd(e,a,!1),r&&e.patches_&&Uo("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function H5(e,t,r,n,i,a,o){if(i==null||typeof i!="object"&&!o)return;const l=um(i);if(!(l&&!o)){if(ps(i)){const s=a&&t&&t.type_!==3&&!G1(t.assigned_,n)?a.concat(n):void 0,u=Ad(e,i,s);if(QA(r,n,u),ps(u))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Wo(i)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&l)return;Ad(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Lc(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Pd(e,i)}}}function Pd(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&x4(t,r)}function lH(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:JA(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=b4;r&&(i=[n],a=fc);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=o,l}var b4={get(e,t){if(t===Kr)return e;const r=fo(e);if(!G1(r,t))return sH(e,r,t);const n=r[t];return e.finalized_||!Wo(n)?n:n===_p(e.base_,t)?(Dp(e),e.copy_[t]=J1(n,e)):n},has(e,t){return t in fo(e)},ownKeys(e){return Reflect.ownKeys(fo(e))},set(e,t,r){const n=eP(fo(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=_p(fo(e),t),a=i==null?void 0:i[Kr];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(rH(r,i)&&(r!==void 0||G1(e.base_,t)))return!0;Dp(e),Q1(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return _p(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Dp(e),Q1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=fo(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Pn(11)},getPrototypeOf(e){return uc(e.base_)},setPrototypeOf(){Pn(12)}},fc={};kd(b4,(e,t)=>{fc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});fc.deleteProperty=function(e,t){return fc.set.call(this,e,t,void 0)};fc.set=function(e,t,r){return b4.set.call(this,e[0],t,r,e[0])};function _p(e,t){const r=e[Kr];return(r?fo(r):e)[t]}function sH(e,t,r){var i;const n=eP(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function eP(e,t){if(!(t in e))return;let r=uc(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=uc(r)}}function Q1(e){e.modified_||(e.modified_=!0,e.parent_&&Q1(e.parent_))}function Dp(e){e.copy_||(e.copy_=Y1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var uH=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(s=a,...u){return o.produce(s,c=>r.call(this,c,...u))}}typeof r!="function"&&Pn(6),n!==void 0&&typeof n!="function"&&Pn(7);let i;if(Wo(t)){const a=B5(this),o=J1(t,void 0);let l=!0;try{i=r(o),l=!1}finally{l?X1(a):Z1(a)}return $5(a,n),F5(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===XA&&(i=void 0),this.autoFreeze_&&x4(i,!0),n){const a=[],o=[];Uo("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else Pn(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...l)=>this.produceWithPatches(o,s=>t(s,...l));let n,i;return[this.produce(t,r,(o,l)=>{n=o,i=l}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Wo(e)||Pn(8),ps(e)&&(e=cH(e));const t=B5(this),r=J1(e,void 0);return r[Kr].isManual_=!0,Z1(t),r}finishDraft(e,t){const r=e&&e[Kr];(!r||!r.isManual_)&&Pn(9);const{scope_:n}=r;return $5(n,t),F5(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Uo("Patches").applyPatches_;return ps(e)?n(e,t):this.produce(e,i=>n(i,t))}};function J1(e,t){const r=Lc(e)?Uo("MapSet").proxyMap_(e,t):sm(e)?Uo("MapSet").proxySet_(e,t):lH(e,t);return(t?t.scope_:JA()).drafts_.push(r),r}function cH(e){return ps(e)||Pn(10,e),tP(e)}function tP(e){if(!Wo(e)||um(e))return e;const t=e[Kr];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Y1(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Y1(e,!0);return kd(r,(i,a)=>{QA(r,i,tP(a))},n),t&&(t.finalized_=!1),r}var fH=new uH;fH.produce;var dH={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},rP=sr({name:"legend",initialState:dH,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:qe()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=an(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:qe()},removeLegendPayload:{reducer(e,t){var r=an(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:qe()}}}),{setLegendSize:Nse,setLegendSettings:Mse,addLegendPayload:hH,replaceLegendPayload:mH,removeLegendPayload:pH}=rP.actions,vH=rP.reducer,gH={};/**
|
|
60
|
+
* @license React
|
|
61
|
+
* use-sync-external-store-with-selector.production.js
|
|
62
|
+
*
|
|
63
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the MIT license found in the
|
|
66
|
+
* LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/var $c=p;function yH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xH=typeof Object.is=="function"?Object.is:yH,bH=$c.useSyncExternalStore,wH=$c.useRef,SH=$c.useEffect,kH=$c.useMemo,AH=$c.useDebugValue;gH.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=wH(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=kH(function(){function s(m){if(!u){if(u=!0,c=m,m=n(m),i!==void 0&&o.hasValue){var g=o.value;if(i(g,m))return f=g}return f=m}if(g=f,xH(c,m))return g;var v=n(m);return i!==void 0&&i(g,v)?(c=m,g):(c=m,f=v)}var u=!1,c,f,d=r===void 0?null:r;return[function(){return s(t())},d===null?void 0:function(){return s(d())}]},[t,r,n,i]);var l=bH(e,a[0],a[1]);return SH(function(){o.hasValue=!0,o.value=l},[l]),AH(l),l};function PH(e){e()}function EH(){let e=null,t=null;return{clear(){e=null,t=null},notify(){PH(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}const W5={notify(){},get:()=>[]};function OH(e,t){let r,n=W5,i=0,a=!1;function o(v){c();const x=n.subscribe(v);let y=!1;return()=>{y||(y=!0,x(),f())}}function l(){n.notify()}function s(){g.onStateChange&&g.onStateChange()}function u(){return a}function c(){i++,r||(r=e.subscribe(s),n=EH())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=W5)}function d(){a||(a=!0,c())}function m(){a&&(a=!1,f())}const g={addNestedSub:o,notifyNestedSubs:l,handleChangeWrapper:s,isSubscribed:u,trySubscribe:d,tryUnsubscribe:m,getListeners:()=>n};return g}const CH=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jH=CH(),NH=()=>typeof navigator<"u"&&navigator.product==="ReactNative",MH=NH(),TH=()=>jH||MH?p.useLayoutEffect:p.useEffect,IH=TH();function U5(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function _H(e,t){if(U5(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!U5(e[r[i]],t[r[i]]))return!1;return!0}const zp=Symbol.for("react-redux-context"),Rp=typeof globalThis<"u"?globalThis:{};function DH(){if(!p.createContext)return{};const e=Rp[zp]??(Rp[zp]=new Map);let t=e.get(p.createContext);return t||(t=p.createContext(null),e.set(p.createContext,t)),t}const zH=DH();function RH(e){const{children:t,context:r,serverState:n,store:i}=e,a=p.useMemo(()=>{const s=OH(i);return{store:i,subscription:s,getServerState:n!=null?()=>n:void 0}},[i,n]),o=p.useMemo(()=>i.getState(),[i]);IH(()=>{const{subscription:s}=a;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==i.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[a,o]);const l=r||zH;return p.createElement(l.Provider,{value:a},t)}var LH=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function $H(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function _s(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(LH.has(n)){if(e[n]==null&&t[n]==null)continue;if(!_H(e[n],t[n]))return!1}else if(!$H(e[n],t[n]))return!1;return!0}function eg(){return eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eg.apply(null,arguments)}function q5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ru(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q5(Object(r),!0).forEach(function(n){BH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BH(e,t,r){return(t=FH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FH(e){var t=HH(e,"string");return typeof t=="symbol"?t:t+""}function HH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WH(e){return Array.isArray(e)&&dn(e[0])&&dn(e[1])?e.join(" ~ "):e}var cl={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function UH(e,t){return t==null?e:Gh(e,t)}var qH=e=>{var{separator:t=cl.separator,contentStyle:r,itemStyle:n,labelStyle:i=cl.labelStyle,payload:a,formatter:o,itemSorter:l,wrapperClassName:s,labelClassName:u,label:c,labelFormatter:f,accessibilityLayer:d=cl.accessibilityLayer}=e,m=()=>{if(a&&a.length){var P={padding:0,margin:0},O=UH(a,l),j=O.map((N,_)=>{if(!N||N.type==="none")return null;var z=N.formatter||o||WH,{value:R,name:I}=N,F=R,H=I;if(z){var Z=z(R,I,N,_,a);if(Array.isArray(Z))[F,H]=Z;else if(Z!=null)F=Z;else return null}var X=ru(ru({},cl.itemStyle),{},{color:N.color||cl.itemStyle.color},n);return p.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(_),style:X},dn(H)?p.createElement("span",{className:"recharts-tooltip-item-name"},H):null,dn(H)?p.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,p.createElement("span",{className:"recharts-tooltip-item-value"},F),p.createElement("span",{className:"recharts-tooltip-item-unit"},N.unit||""))});return p.createElement("ul",{className:"recharts-tooltip-item-list",style:P},j)}return null},g=ru(ru({},cl.contentStyle),r),v=ru({margin:0},i),x=!je(c),y=x?c:"",w=Oe("recharts-default-tooltip",s),S=Oe("recharts-tooltip-label",u);x&&f&&a!==void 0&&a!==null&&(y=f(c,a));var A=d?{role:"status","aria-live":"assertive"}:{};return p.createElement("div",eg({className:w,style:g},A),p.createElement("p",{className:S,style:v},p.isValidElement(y)?y:"".concat(y)),m())},nu="recharts-tooltip-wrapper",VH={visibility:"hidden"};function KH(e){var{coordinate:t,translateX:r,translateY:n}=e;return Oe(nu,{["".concat(nu,"-right")]:se(r)&&t&&se(t.x)&&r>=t.x,["".concat(nu,"-left")]:se(r)&&t&&se(t.x)&&r<t.x,["".concat(nu,"-bottom")]:se(n)&&t&&se(t.y)&&n>=t.y,["".concat(nu,"-top")]:se(n)&&t&&se(t.y)&&n<t.y})}function V5(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:a,reverseDirection:o,tooltipDimension:l,viewBox:s,viewBoxDimension:u}=e;if(a&&se(a[n]))return a[n];var c=r[n]-l-(i>0?i:0),f=r[n]+i;if(t[n])return o[n]?c:f;var d=s[n];if(d==null)return 0;if(o[n]){var m=c,g=d;return m<g?Math.max(f,d):Math.max(c,d)}if(u==null)return 0;var v=f+l,x=d+u;return v>x?Math.max(c,d):Math.max(f,d)}function GH(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function YH(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:i,position:a,reverseDirection:o,tooltipBox:l,useTranslate3d:s,viewBox:u}=e,c,f,d;return l.height>0&&l.width>0&&r?(f=V5({allowEscapeViewBox:t,coordinate:r,key:"x",offset:i,position:a,reverseDirection:o,tooltipDimension:l.width,viewBox:u,viewBoxDimension:u.width}),d=V5({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:a,reverseDirection:o,tooltipDimension:l.height,viewBox:u,viewBoxDimension:u.height}),c=GH({translateX:f,translateY:d,useTranslate3d:s})):c=VH,{cssProperties:c,cssClasses:KH({translateX:f,translateY:d,coordinate:r})}}var XH=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Bc={isSsr:XH()};function nP(){var[e,t]=p.useState(()=>Bc.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return p.useEffect(()=>{if(window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>{t(r.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}}},[]),e}function K5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K5(Object(r),!0).forEach(function(n){ZH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZH(e,t,r){return(t=QH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QH(e){var t=JH(e,"string");return typeof t=="symbol"?t:t+""}function JH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eW(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active)return"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing)}function tW(e){var t,r,n,i,a,o,l=nP(),[s,u]=p.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));p.useEffect(()=>{var g=v=>{if(v.key==="Escape"){var x,y,w,S;u({dismissed:!0,dismissedAtCoordinate:{x:(x=(y=e.coordinate)===null||y===void 0?void 0:y.x)!==null&&x!==void 0?x:0,y:(w=(S=e.coordinate)===null||S===void 0?void 0:S.y)!==null&&w!==void 0?w:0}})}};return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(r=e.coordinate)===null||r===void 0?void 0:r.y]),s.dismissed&&(((n=(i=e.coordinate)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)!==s.dismissedAtCoordinate.x||((a=(o=e.coordinate)===null||o===void 0?void 0:o.y)!==null&&a!==void 0?a:0)!==s.dismissedAtCoordinate.y)&&u(fl(fl({},s),{},{dismissed:!1}));var{cssClasses:c,cssProperties:f}=YH({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),d=e.hasPortalFromProps?{}:fl(fl({transition:eW({prefersReducedMotion:l,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},f),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),m=fl(fl({},d),{},{visibility:!s.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return p.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:c,style:m,ref:e.innerRef},e.children)}var rW=p.memo(tW),iP=()=>{var e;return(e=ue(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function tg(){return tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tg.apply(null,arguments)}function G5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Y5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G5(Object(r),!0).forEach(function(n){nW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nW(e,t,r){return(t=iW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iW(e){var t=aW(e,"string");return typeof t=="symbol"?t:t+""}function aW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X5={curveBasisClosed:ZR,curveBasisOpen:QR,curveBasis:XR,curveBumpX:zR,curveBumpY:RR,curveLinearClosed:JR,curveLinear:Wh,curveMonotoneX:eL,curveMonotoneY:tL,curveNatural:rL,curveStep:nL,curveStepAfter:aL,curveStepBefore:iL},Ed=e=>xe(e.x)&&xe(e.y),Z5=e=>e.base!=null&&Ed(e.base)&&Ed(e),iu=e=>e.x,au=e=>e.y,oW=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Tc(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=X5["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return X5[r]||Wh},Q5={connectNulls:!1,type:"linear"},lW=e=>{var{type:t=Q5.type,points:r=[],baseLine:n,layout:i,connectNulls:a=Q5.connectNulls}=e,o=oW(t,i),l=a?r.filter(Ed):r;if(Array.isArray(n)){var s,u=r.map((g,v)=>Y5(Y5({},g),{},{base:n[v]}));i==="vertical"?s=E0().y(au).x1(iu).x0(g=>g.base.x):s=E0().x(iu).y1(au).y0(g=>g.base.y);var c=s.defined(Z5).curve(o),f=a?u.filter(Z5):u;return c(f)}var d;i==="vertical"&&se(n)?d=E0().y(au).x1(iu).x0(n):se(n)?d=E0().x(iu).y1(au).y0(n):d=Ek().x(iu).y(au);var m=d.defined(Ed).curve(o);return m(l)},w4=e=>{var{className:t,points:r,path:n,pathRef:i}=e,a=tl();if((!r||!r.length)&&!n)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},l=r&&r.length?lW(o):n;return p.createElement("path",tg({},qr(e),l4(e),{className:Oe("recharts-curve",t),d:l===null?void 0:l,ref:i}))},sW=["x","y","top","left","width","height","className"];function rg(){return rg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rg.apply(null,arguments)}function J5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uW(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J5(Object(r),!0).forEach(function(n){cW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cW(e,t,r){return(t=fW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fW(e){var t=dW(e,"string");return typeof t=="symbol"?t:t+""}function dW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hW(e,t){if(e==null)return{};var r,n,i=mW(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function mW(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var pW=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),vW=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:l}=e,s=hW(e,sW),u=uW({x:t,y:r,top:n,left:i,width:a,height:o},s);return!se(t)||!se(r)||!se(a)||!se(o)||!se(n)||!se(i)?null:p.createElement("path",rg({},or(u),{className:Oe("recharts-cross",l),d:pW(t,r,a,o,n,i)}))};function gW(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function e3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function t3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e3(Object(r),!0).forEach(function(n){yW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yW(e,t,r){return(t=xW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xW(e){var t=bW(e,"string");return typeof t=="symbol"?t:t+""}function bW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wW=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),aP=(e,t,r)=>e.map(n=>"".concat(wW(n)," ").concat(t,"ms ").concat(r)).join(","),SW=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),dc=(e,t)=>Object.keys(t).reduce((r,n)=>t3(t3({},r),{},{[n]:e(n,t[n])}),{});function r3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?r3(Object(r),!0).forEach(function(n){kW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kW(e,t,r){return(t=AW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AW(e){var t=PW(e,"string");return typeof t=="symbol"?t:t+""}function PW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Od=(e,t,r)=>e+(t-e)*r,ng=e=>{var{from:t,to:r}=e;return t!==r},oP=(e,t,r)=>{var n=dc((i,a)=>{if(ng(a)){var[o,l]=e(a.from,a.to,a.velocity);return Ot(Ot({},a),{},{from:o,velocity:l})}return a},t);return r<1?dc((i,a)=>ng(a)&&n[i]!=null?Ot(Ot({},a),{},{velocity:Od(a.velocity,n[i].velocity,r),from:Od(a.from,n[i].from,r)}):a,t):oP(e,n,r-1)};function EW(e,t,r,n,i,a){var o,l=n.reduce((d,m)=>Ot(Ot({},d),{},{[m]:{from:e[m],velocity:0,to:t[m]}}),{}),s=()=>dc((d,m)=>m.from,l),u=()=>!Object.values(l).filter(ng).length,c=null,f=d=>{o||(o=d);var m=d-o,g=m/r.dt;l=oP(r,l,g),i(Ot(Ot(Ot({},e),t),s())),o=d,u()||(c=a.setTimeout(f))};return()=>(c=a.setTimeout(f),()=>{var d;(d=c)===null||d===void 0||d()})}function OW(e,t,r,n,i,a,o){var l=null,s=i.reduce((f,d)=>{var m=e[d],g=t[d];return m==null||g==null?f:Ot(Ot({},f),{},{[d]:[m,g]})},{}),u,c=f=>{u||(u=f);var d=(f-u)/n,m=dc((v,x)=>Od(...x,r(d)),s);if(a(Ot(Ot(Ot({},e),t),m)),d<1)l=o.setTimeout(c);else{var g=dc((v,x)=>Od(...x,r(1)),s);a(Ot(Ot(Ot({},e),t),g))}};return()=>(l=o.setTimeout(c),()=>{var f;(f=l)===null||f===void 0||f()})}const CW=(e,t,r,n,i,a)=>{var o=SW(e,t);return r==null?()=>(i(Ot(Ot({},e),t)),()=>{}):r.isStepper===!0?EW(e,t,r,o,i,a):OW(e,t,r,n,o,i,a)};var Cd=1e-4,lP=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],sP=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),n3=(e,t)=>r=>{var n=lP(e,t);return sP(n,r)},jW=(e,t)=>r=>{var n=lP(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return sP(i,r)},NW=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var i=n.map(a=>parseFloat(a));return[i[0],i[1],i[2],i[3]]},MW=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=NW(r[0]);if(i)return i}}return r.length===4?r:[0,0,1,1]},TW=(e,t,r,n)=>{var i=n3(e,r),a=n3(t,n),o=jW(e,r),l=u=>u>1?1:u<0?0:u,s=u=>{for(var c=u>1?1:u,f=c,d=0;d<8;++d){var m=i(f)-c,g=o(f);if(Math.abs(m-c)<Cd||g<Cd)return a(f);f=l(f-m/g)}return a(f)};return s.isStepper=!1,s},i3=function(){return TW(...MW(...arguments))},IW=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,l,s)=>{var u=-(o-l)*r,c=s*n,f=s+(u-c)*i/1e3,d=s*i/1e3+o;return Math.abs(d-l)<Cd&&Math.abs(f)<Cd?[l,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},_W=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return i3(e);case"spring":return IW();default:if(e.split("(")[0]==="cubic-bezier")return i3(e)}return typeof e=="function"?e:null};function DW(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var l=o,[s,...u]=l;if(typeof s=="number"){i=e.setTimeout(a.bind(null,u),s);return}a(s),i=e.setTimeout(a.bind(null,u));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class zW{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function RW(){return DW(new zW)}var LW=p.createContext(RW);function $W(e,t){var r=p.useContext(LW);return p.useMemo(()=>t??r(e),[e,t,r])}var BW={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},a3={t:0},Lp={t:1};function Fc(e){var t=Tt(e,BW),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:l,onAnimationStart:s,children:u}=t,c=nP(),f=r==="auto"?!Bc.isSsr&&!c:r,d=$W(t.animationId,t.animationManager),[m,g]=p.useState(f?a3:Lp),v=p.useRef(null);return p.useEffect(()=>{f||g(Lp)},[f]),p.useEffect(()=>{if(!f||!n)return el;var x=CW(a3,Lp,_W(a),i,g,d.getTimeoutController()),y=()=>{v.current=x()};return d.start([s,o,y,i,l]),()=>{d.stop(),v.current&&v.current(),l()}},[f,n,i,a,o,s,l,d]),u(m.t)}function Hc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=p.useRef(ac(t)),n=p.useRef(e);return n.current!==e&&(r.current=ac(t),n.current=e),r.current}var FW=["radius"],HW=["radius"],o3,l3,s3,u3,c3,f3,d3,h3,m3,p3;function v3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function g3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v3(Object(r),!0).forEach(function(n){WW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WW(e,t,r){return(t=UW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UW(e){var t=qW(e,"string");return typeof t=="symbol"?t:t+""}function qW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jd(){return jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jd.apply(null,arguments)}function y3(e,t){if(e==null)return{};var r,n,i=VW(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function VW(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ln(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var x3=(e,t,r,n,i)=>{var a=Aa(r),o=Aa(n),l=Math.min(Math.abs(a)/2,Math.abs(o)/2),s=o>=0?1:-1,u=a>=0?1:-1,c=o>=0&&a>=0||o<0&&a<0?1:0,f;if(l>0&&Array.isArray(i)){for(var d=[0,0,0,0],m=0,g=4;m<g;m++){var v,x=(v=i[m])!==null&&v!==void 0?v:0;d[m]=x>l?l:x}f=ft(o3||(o3=Ln(["M",",",""])),e,t+s*d[0]),d[0]>0&&(f+=ft(l3||(l3=Ln(["A ",",",",0,0,",",",",",""])),d[0],d[0],c,e+u*d[0],t)),f+=ft(s3||(s3=Ln(["L ",",",""])),e+r-u*d[1],t),d[1]>0&&(f+=ft(u3||(u3=Ln(["A ",",",",0,0,",`,
|
|
68
|
+
`,",",""])),d[1],d[1],c,e+r,t+s*d[1])),f+=ft(c3||(c3=Ln(["L ",",",""])),e+r,t+n-s*d[2]),d[2]>0&&(f+=ft(f3||(f3=Ln(["A ",",",",0,0,",`,
|
|
69
|
+
`,",",""])),d[2],d[2],c,e+r-u*d[2],t+n)),f+=ft(d3||(d3=Ln(["L ",",",""])),e+u*d[3],t+n),d[3]>0&&(f+=ft(h3||(h3=Ln(["A ",",",",0,0,",`,
|
|
70
|
+
`,",",""])),d[3],d[3],c,e,t+n-s*d[3])),f+="Z"}else if(l>0&&i===+i&&i>0){var y=Math.min(l,i);f=ft(m3||(m3=Ln(["M ",",",`
|
|
71
|
+
A `,",",",0,0,",",",",",`
|
|
72
|
+
L `,",",`
|
|
73
|
+
A `,",",",0,0,",",",",",`
|
|
74
|
+
L `,",",`
|
|
75
|
+
A `,",",",0,0,",",",",",`
|
|
76
|
+
L `,",",`
|
|
77
|
+
A `,",",",0,0,",",",","," Z"])),e,t+s*y,y,y,c,e+u*y,t,e+r-u*y,t,y,y,c,e+r,t+s*y,e+r,t+n-s*y,y,y,c,e+r-u*y,t+n,e+u*y,t+n,y,y,c,e,t+n-s*y)}else f=ft(p3||(p3=Ln(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return f},b3={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uP=e=>{var t=Tt(e,b3),r=p.useRef(null),[n,i]=p.useState(-1);p.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var re=r.current.getTotalLength();re&&i(re)}catch{}},[]);var{x:a,y:o,width:l,height:s,radius:u,className:c}=t,{animationEasing:f,animationDuration:d,animationBegin:m,isAnimationActive:g,isUpdateAnimationActive:v}=t,x=p.useRef(l),y=p.useRef(s),w=p.useRef(a),S=p.useRef(o),A=p.useMemo(()=>({x:a,y:o,width:l,height:s,radius:u}),[a,o,l,s,u]),P=Hc(A,"rectangle-");if(a!==+a||o!==+o||l!==+l||s!==+s||l===0||s===0)return null;var O=Oe("recharts-rectangle",c);if(!v){var j=or(t),{radius:N}=j,_=y3(j,FW);return p.createElement("path",jd({},_,{x:Aa(a),y:Aa(o),width:Aa(l),height:Aa(s),radius:typeof u=="number"?u:void 0,className:O,d:x3(a,o,l,s,u)}))}var z=x.current,R=y.current,I=w.current,F=S.current,H="0px ".concat(n===-1?1:n,"px"),Z="".concat(n,"px ").concat(n,"px"),X=aP(["strokeDasharray"],d,typeof f=="string"?f:b3.animationEasing);return p.createElement(Fc,{animationId:P,key:P,canBegin:n>0,duration:d,easing:f,isActive:v,begin:m},re=>{var B=Le(z,l,re),W=Le(R,s,re),K=Le(I,a,re),le=Le(F,o,re);r.current&&(x.current=B,y.current=W,w.current=K,S.current=le);var fe;g?re>0?fe={transition:X,strokeDasharray:Z}:fe={strokeDasharray:H}:fe={strokeDasharray:Z};var He=or(t),{radius:Ie}=He,lt=y3(He,HW);return p.createElement("path",jd({},lt,{radius:typeof u=="number"?u:void 0,className:O,d:x3(K,le,B,W,u),ref:r,style:g3(g3({},fe),t.style)}))})};function w3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function S3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w3(Object(r),!0).forEach(function(n){KW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KW(e,t,r){return(t=GW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GW(e){var t=YW(e,"string");return typeof t=="symbol"?t:t+""}function YW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nd=Math.PI/180,XW=e=>e*180/Math.PI,Yt=(e,t,r,n)=>({x:e+Math.cos(-Nd*n)*r,y:t+Math.sin(-Nd*n)*r}),ZW=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},QW=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},JW=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=QW({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var l=(r-i)/o,s=Math.acos(l);return n>a&&(s=2*Math.PI-s),{radius:o,angle:XW(s),angleInRadian:s}},eU=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},tU=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return e+o*360},rU=(e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:i,angle:a}=JW({x:r,y:n},t),{innerRadius:o,outerRadius:l}=t;if(i<o||i>l||i===0)return null;var{startAngle:s,endAngle:u}=eU(t),c=a,f;if(s<=u){for(;c>u;)c-=360;for(;c<s;)c+=360;f=c>=s&&c<=u}else{for(;c>s;)c-=360;for(;c<u;)c+=360;f=c>=u&&c<=s}return f?S3(S3({},t),{},{radius:i,angle:tU(c,t)}):null};function cP(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,o=Yt(t,r,n,i),l=Yt(t,r,n,a);return{points:[o,l],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}var k3,A3,P3,E3,O3,C3,j3;function ig(){return ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ig.apply(null,arguments)}function yo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var nU=(e,t)=>{var r=Ar(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},_0=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:l,cornerIsExternal:s}=e,u=l*(o?1:-1)+n,c=Math.asin(l/u)/Nd,f=s?i:i+a*c,d=Yt(t,r,u,f),m=Yt(t,r,n,f),g=s?i-a*c:i,v=Yt(t,r,u*Math.cos(c*Nd),g);return{center:d,circleTangency:m,lineTangency:v,theta:c}},fP=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,l=nU(a,o),s=a+l,u=Yt(t,r,i,a),c=Yt(t,r,i,s),f=ft(k3||(k3=yo(["M ",",",`
|
|
78
|
+
A `,",",`,0,
|
|
79
|
+
`,",",`,
|
|
80
|
+
`,",",`
|
|
81
|
+
`])),u.x,u.y,i,i,+(Math.abs(l)>180),+(a>s),c.x,c.y);if(n>0){var d=Yt(t,r,n,a),m=Yt(t,r,n,s);f+=ft(A3||(A3=yo(["L ",",",`
|
|
82
|
+
A `,",",`,0,
|
|
83
|
+
`,",",`,
|
|
84
|
+
`,","," Z"])),m.x,m.y,n,n,+(Math.abs(l)>180),+(a<=s),d.x,d.y)}else f+=ft(P3||(P3=yo(["L ",","," Z"])),t,r);return f},iU=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:l,startAngle:s,endAngle:u}=e,c=Ar(u-s),{circleTangency:f,lineTangency:d,theta:m}=_0({cx:t,cy:r,radius:i,angle:s,sign:c,cornerRadius:a,cornerIsExternal:l}),{circleTangency:g,lineTangency:v,theta:x}=_0({cx:t,cy:r,radius:i,angle:u,sign:-c,cornerRadius:a,cornerIsExternal:l}),y=l?Math.abs(s-u):Math.abs(s-u)-m-x;if(y<0)return o?ft(E3||(E3=yo(["M ",",",`
|
|
85
|
+
a`,",",",0,0,1,",`,0
|
|
86
|
+
a`,",",",0,0,1,",`,0
|
|
87
|
+
`])),d.x,d.y,a,a,a*2,a,a,-a*2):fP({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:s,endAngle:u});var w=ft(O3||(O3=yo(["M ",",",`
|
|
88
|
+
A`,",",",0,0,",",",",",`
|
|
89
|
+
A`,",",",0,",",",",",",",`
|
|
90
|
+
A`,",",",0,0,",",",",",`
|
|
91
|
+
`])),d.x,d.y,a,a,+(c<0),f.x,f.y,i,i,+(y>180),+(c<0),g.x,g.y,a,a,+(c<0),v.x,v.y);if(n>0){var{circleTangency:S,lineTangency:A,theta:P}=_0({cx:t,cy:r,radius:n,angle:s,sign:c,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),{circleTangency:O,lineTangency:j,theta:N}=_0({cx:t,cy:r,radius:n,angle:u,sign:-c,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),_=l?Math.abs(s-u):Math.abs(s-u)-P-N;if(_<0&&a===0)return"".concat(w,"L").concat(t,",").concat(r,"Z");w+=ft(C3||(C3=yo(["L",",",`
|
|
92
|
+
A`,",",",0,0,",",",",",`
|
|
93
|
+
A`,",",",0,",",",",",",",`
|
|
94
|
+
A`,",",",0,0,",",",",","Z"])),j.x,j.y,a,a,+(c<0),O.x,O.y,n,n,+(_>180),+(c>0),S.x,S.y,a,a,+(c<0),A.x,A.y)}else w+=ft(j3||(j3=yo(["L",",","Z"])),t,r);return w},aU={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},dP=e=>{var t=Tt(e,aU),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:l,cornerIsExternal:s,startAngle:u,endAngle:c,className:f}=t;if(a<i||u===c)return null;var d=Oe("recharts-sector",f),m=a-i,g=Nn(o,m,0,!0),v;return g>0&&Math.abs(u-c)<360?v=iU({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(g,m/2),forceCornerRadius:l,cornerIsExternal:s,startAngle:u,endAngle:c}):v=fP({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c}),p.createElement("path",ig({},or(t),{className:d,d:v}))};function oU(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(Hk(t)){if(e==="centric"){var{cx:n,cy:i,innerRadius:a,outerRadius:o,angle:l}=t,s=Yt(n,i,a,l),u=Yt(n,i,o,l);return[{x:s.x,y:s.y},{x:u.x,y:u.y}]}return cP(t)}}function lU(e){return i4(e)?NaN:Number(e)}function $p(e){return e?(e=lU(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function hP(e,t,r){r&&typeof r!="number"&&z1(e,t,r)&&(t=r=void 0),e=$p(e),t===void 0?(t=e,e=0):t=$p(t),r=r===void 0?e<t?1:-1:$p(r);const n=Math.max(Math.ceil((t-e)/(r||1)),0),i=new Array(n);for(let a=0;a<n;a++)i[a]=e,e+=r;return i}var Dn=e=>e.chartData,S4=$([Dn],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Ds=(e,t,r,n)=>n?S4(e):Dn(e),sU=(e,t,r)=>r?S4(e):Dn(e),uU=$([Ds],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return t!=null?t.slice(r,n+1):[]});$([S4],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return t!=null?t.slice(r,n+1):[]});var cU=$([Dn],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return t!=null?t.slice(r,n+1):[]});function ei(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(xe(t)&&xe(r))return!0}return!1}function N3(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function mP(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(xe(r))i=r;else if(typeof r=="function")return;if(xe(n))a=n;else if(typeof n=="function")return;var o=[i,a];if(ei(o))return o}}function fU(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(ei(n))return N3(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,l;if(i==="auto")t!=null&&(o=Math.min(...t));else if(se(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t==null?void 0:t[0]))}catch{}else if(typeof i=="string"&&M5.test(i)){var s=M5.exec(i);if(s==null||s[1]==null||t==null)o=void 0;else{var u=+s[1];o=t[0]-u}}else o=t==null?void 0:t[0];if(a==="auto")t!=null&&(l=Math.max(...t));else if(se(a))l=a;else if(typeof a=="function")try{t!=null&&(l=a(t==null?void 0:t[1]))}catch{}else if(typeof a=="string"&&T5.test(a)){var c=T5.exec(a);if(c==null||c[1]==null||t==null)l=void 0;else{var f=+c[1];l=t[1]+f}}else l=t==null?void 0:t[1];var d=[o,l];if(ei(d))return t==null?d:N3(d,t,r)}}}var zs=1e9,dU={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},A4,Je=!0,mn="[DecimalError] ",Oo=mn+"Invalid argument: ",k4=mn+"Exponent out of range: ",Rs=Math.floor,ho=Math.pow,hU=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$r,$t=1e7,Ve=7,pP=9007199254740991,Md=Rs(pP/Ve),oe={};oe.absoluteValue=oe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};oe.comparedTo=oe.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};oe.decimalPlaces=oe.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ve;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};oe.dividedBy=oe.div=function(e){return zi(this,new this.constructor(e))};oe.dividedToIntegerBy=oe.idiv=function(e){var t=this,r=t.constructor;return De(zi(t,new r(e),0,1),r.precision)};oe.equals=oe.eq=function(e){return!this.cmp(e)};oe.exponent=function(){return wt(this)};oe.greaterThan=oe.gt=function(e){return this.cmp(e)>0};oe.greaterThanOrEqualTo=oe.gte=function(e){return this.cmp(e)>=0};oe.isInteger=oe.isint=function(){return this.e>this.d.length-2};oe.isNegative=oe.isneg=function(){return this.s<0};oe.isPositive=oe.ispos=function(){return this.s>0};oe.isZero=function(){return this.s===0};oe.lessThan=oe.lt=function(e){return this.cmp(e)<0};oe.lessThanOrEqualTo=oe.lte=function(e){return this.cmp(e)<1};oe.logarithm=oe.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq($r))throw Error(mn+"NaN");if(r.s<1)throw Error(mn+(r.s?"NaN":"-Infinity"));return r.eq($r)?new n(0):(Je=!1,t=zi(hc(r,a),hc(e,a),a),Je=!0,De(t,i))};oe.minus=oe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?yP(t,e):vP(t,(e.s=-e.s,e))};oe.modulo=oe.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(mn+"NaN");return r.s?(Je=!1,t=zi(r,e,0,1).times(e),Je=!0,r.minus(t)):De(new n(r),i)};oe.naturalExponential=oe.exp=function(){return gP(this)};oe.naturalLogarithm=oe.ln=function(){return hc(this)};oe.negated=oe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};oe.plus=oe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?vP(t,e):yP(t,(e.s=-e.s,e))};oe.precision=oe.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Oo+e);if(t=wt(i)+1,n=i.d.length-1,r=n*Ve+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};oe.squareRoot=oe.sqrt=function(){var e,t,r,n,i,a,o,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(mn+"NaN")}for(e=wt(l),Je=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Yn(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Rs((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(zi(l,a,o+2)).times(.5),Yn(a.d).slice(0,o)===(t=Yn(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(De(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if(t!="9999")break;o+=4}return Je=!0,De(n,r)};oe.times=oe.mul=function(e){var t,r,n,i,a,o,l,s,u,c=this,f=c.constructor,d=c.d,m=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,s=d.length,u=m.length,s<u&&(a=d,d=m,m=a,o=s,s=u,u=o),a=[],o=s+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=s+n;i>n;)l=a[i]+m[n]*d[i-n-1]+t,a[i--]=l%$t|0,t=l/$t|0;a[i]=(a[i]+t)%$t|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Je?De(e,f.precision):e};oe.toDecimalPlaces=oe.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(oi(e,0,zs),t===void 0?t=n.rounding:oi(t,0,8),De(r,e+wt(r)+1,t))};oe.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=qo(n,!0):(oi(e,0,zs),t===void 0?t=i.rounding:oi(t,0,8),n=De(new i(n),e+1,t),r=qo(n,!0,e+1)),r};oe.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?qo(i):(oi(e,0,zs),t===void 0?t=a.rounding:oi(t,0,8),n=De(new a(i),e+wt(i)+1,t),r=qo(n.abs(),!1,e+wt(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};oe.toInteger=oe.toint=function(){var e=this,t=e.constructor;return De(new t(e),wt(e)+1,t.rounding)};oe.toNumber=function(){return+this};oe.toPower=oe.pow=function(e){var t,r,n,i,a,o,l=this,s=l.constructor,u=12,c=+(e=new s(e));if(!e.s)return new s($r);if(l=new s(l),!l.s){if(e.s<1)throw Error(mn+"Infinity");return l}if(l.eq($r))return l;if(n=s.precision,e.eq($r))return De(l,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=l.s,o){if((r=c<0?-c:c)<=pP){for(i=new s($r),t=Math.ceil(n/Ve+4),Je=!1;r%2&&(i=i.times(l),T3(i.d,t)),r=Rs(r/2),r!==0;)l=l.times(l),T3(l.d,t);return Je=!0,e.s<0?new s($r).div(i):De(i,n)}}else if(a<0)throw Error(mn+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,Je=!1,i=e.times(hc(l,n+u)),Je=!0,i=gP(i),i.s=a,i};oe.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=wt(i),n=qo(i,r<=a.toExpNeg||r>=a.toExpPos)):(oi(e,1,zs),t===void 0?t=a.rounding:oi(t,0,8),i=De(new a(i),e,t),r=wt(i),n=qo(i,e<=r||r<=a.toExpNeg,e)),n};oe.toSignificantDigits=oe.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(oi(e,1,zs),t===void 0?t=n.rounding:oi(t,0,8)),De(new n(r),e,t)};oe.toString=oe.valueOf=oe.val=oe.toJSON=oe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=wt(e),r=e.constructor;return qo(e,t<=r.toExpNeg||t>=r.toExpPos)};function vP(e,t){var r,n,i,a,o,l,s,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Je?De(t,f):t;if(s=e.d,u=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,l=u.length):(n=u,i=o,l=s.length),o=Math.ceil(f/Ve),l=o>l?o+1:l+1,a>l&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(l=s.length,a=u.length,l-a<0&&(a=l,n=u,u=s,s=n),r=0;a;)r=(s[--a]=s[a]+u[a]+r)/$t|0,s[a]%=$t;for(r&&(s.unshift(r),++i),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=i,Je?De(t,f):t}function oi(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Oo+e)}function Yn(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Ve-n.length,r&&(a+=ga(r)),a+=n;o=e[t],n=o+"",r=Ve-n.length,r&&(a+=ga(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var zi=function(){function e(n,i){var a,o=0,l=n.length;for(n=n.slice();l--;)a=n[l]*i+o,n[l]=a%$t|0,o=a/$t|0;return o&&n.unshift(o),n}function t(n,i,a,o){var l,s;if(a!=o)s=a>o?1:-1;else for(l=s=0;l<a;l++)if(n[l]!=i[l]){s=n[l]>i[l]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*$t+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var l,s,u,c,f,d,m,g,v,x,y,w,S,A,P,O,j,N,_=n.constructor,z=n.s==i.s?1:-1,R=n.d,I=i.d;if(!n.s)return new _(n);if(!i.s)throw Error(mn+"Division by zero");for(s=n.e-i.e,j=I.length,P=R.length,m=new _(z),g=m.d=[],u=0;I[u]==(R[u]||0);)++u;if(I[u]>(R[u]||0)&&--s,a==null?w=a=_.precision:o?w=a+(wt(n)-wt(i))+1:w=a,w<0)return new _(0);if(w=w/Ve+2|0,u=0,j==1)for(c=0,I=I[0],w++;(u<P||c)&&w--;u++)S=c*$t+(R[u]||0),g[u]=S/I|0,c=S%I|0;else{for(c=$t/(I[0]+1)|0,c>1&&(I=e(I,c),R=e(R,c),j=I.length,P=R.length),A=j,v=R.slice(0,j),x=v.length;x<j;)v[x++]=0;N=I.slice(),N.unshift(0),O=I[0],I[1]>=$t/2&&++O;do c=0,l=t(I,v,j,x),l<0?(y=v[0],j!=x&&(y=y*$t+(v[1]||0)),c=y/O|0,c>1?(c>=$t&&(c=$t-1),f=e(I,c),d=f.length,x=v.length,l=t(f,v,d,x),l==1&&(c--,r(f,j<d?N:I,d))):(c==0&&(l=c=1),f=I.slice()),d=f.length,d<x&&f.unshift(0),r(v,f,x),l==-1&&(x=v.length,l=t(I,v,j,x),l<1&&(c++,r(v,j<x?N:I,x))),x=v.length):l===0&&(c++,v=[0]),g[u++]=c,l&&v[0]?v[x++]=R[A]||0:(v=[R[A]],x=1);while((A++<P||v[0]!==void 0)&&w--)}return g[0]||g.shift(),m.e=s,De(m,o?a+wt(m)+1:a)}}();function gP(e,t){var r,n,i,a,o,l,s=0,u=0,c=e.constructor,f=c.precision;if(wt(e)>16)throw Error(k4+wt(e));if(!e.s)return new c($r);for(Je=!1,l=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(ho(2,u))/Math.LN10*2+5|0,l+=n,r=i=a=new c($r),c.precision=l;;){if(i=De(i.times(e),l),r=r.times(++s),o=a.plus(zi(i,r,l)),Yn(o.d).slice(0,l)===Yn(a.d).slice(0,l)){for(;u--;)a=De(a.times(a),l);return c.precision=f,t==null?(Je=!0,De(a,f)):a}a=o}}function wt(e){for(var t=e.e*Ve,r=e.d[0];r>=10;r/=10)t++;return t}function Bp(e,t,r){if(t>e.LN10.sd())throw Je=!0,r&&(e.precision=r),Error(mn+"LN10 precision limit exceeded");return De(new e(e.LN10),t)}function ga(e){for(var t="";e--;)t+="0";return t}function hc(e,t){var r,n,i,a,o,l,s,u,c,f=1,d=10,m=e,g=m.d,v=m.constructor,x=v.precision;if(m.s<1)throw Error(mn+(m.s?"NaN":"-Infinity"));if(m.eq($r))return new v(0);if(t==null?(Je=!1,u=x):u=t,m.eq(10))return t==null&&(Je=!0),Bp(v,u);if(u+=d,v.precision=u,r=Yn(g),n=r.charAt(0),a=wt(m),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)m=m.times(e),r=Yn(m.d),n=r.charAt(0),f++;a=wt(m),n>1?(m=new v("0."+r),a++):m=new v(n+"."+r.slice(1))}else return s=Bp(v,u+2,x).times(a+""),m=hc(new v(n+"."+r.slice(1)),u-d).plus(s),v.precision=x,t==null?(Je=!0,De(m,x)):m;for(l=o=m=zi(m.minus($r),m.plus($r),u),c=De(m.times(m),u),i=3;;){if(o=De(o.times(c),u),s=l.plus(zi(o,new v(i),u)),Yn(s.d).slice(0,u)===Yn(l.d).slice(0,u))return l=l.times(2),a!==0&&(l=l.plus(Bp(v,u+2,x).times(a+""))),l=zi(l,new v(f),u),v.precision=x,t==null?(Je=!0,De(l,x)):l;l=s,i+=2}}function M3(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Rs(r/Ve),e.d=[],n=(r+1)%Ve,r<0&&(n+=Ve),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Ve;n<i;)e.d.push(+t.slice(n,n+=Ve));t=t.slice(n),n=Ve-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Je&&(e.e>Md||e.e<-Md))throw Error(k4+r)}else e.s=0,e.e=0,e.d=[0];return e}function De(e,t,r){var n,i,a,o,l,s,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Ve,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/Ve),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;n%=Ve,i=n-Ve+o}if(r!==void 0&&(a=ho(10,o-i-1),l=u/a%10|0,s=t<0||f[c+1]!==void 0||u%a,s=r<4?(l||s)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||s||r==6&&(n>0?i>0?u/ho(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return s?(a=wt(e),f.length=1,t=t-a-1,f[0]=ho(10,(Ve-t%Ve)%Ve),e.e=Rs(-t/Ve)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=ho(10,Ve-n),f[c]=i>0?(u/ho(10,o-i)%ho(10,i)|0)*a:0),s)for(;;)if(c==0){(f[0]+=a)==$t&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=$t)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Je&&(e.e>Md||e.e<-Md))throw Error(k4+wt(e));return e}function yP(e,t){var r,n,i,a,o,l,s,u,c,f,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Je?De(t,m):t;if(s=e.d,f=t.d,n=t.e,u=e.e,s=s.slice(),o=u-n,o){for(c=o<0,c?(r=s,o=-o,l=f.length):(r=f,n=u,l=s.length),i=Math.max(Math.ceil(m/Ve),l)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,l=f.length,c=i<l,c&&(l=i),i=0;i<l;i++)if(s[i]!=f[i]){c=s[i]<f[i];break}o=0}for(c&&(r=s,s=f,f=r,t.s=-t.s),l=s.length,i=f.length-l;i>0;--i)s[l++]=0;for(i=f.length;i>o;){if(s[--i]<f[i]){for(a=i;a&&s[--a]===0;)s[a]=$t-1;--s[a],s[i]+=$t}s[i]-=f[i]}for(;s[--l]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,Je?De(t,m):t):new d(0)}function qo(e,t,r){var n,i=wt(e),a=Yn(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+ga(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+ga(-i-1)+a,r&&(n=r-o)>0&&(a+=ga(n))):i>=o?(a+=ga(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+ga(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=ga(n))),e.s<0?"-"+a:a}function T3(e,t){if(e.length>t)return e.length=t,!0}function xP(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Oo+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return M3(o,a.toString())}else if(typeof a!="string")throw Error(Oo+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,hU.test(a))M3(o,a);else throw Error(Oo+a)}if(i.prototype=oe,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=xP,i.config=i.set=mU,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function mU(e){if(!e||typeof e!="object")throw Error(mn+"Object expected");var t,r,n,i=["precision",1,zs,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Rs(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Oo+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Oo+r+": "+n);return this}var A4=xP(dU);$r=new A4(1);const ke=A4;function bP(e){var t;return e===0?t=1:t=Math.floor(new ke(e).abs().log(10).toNumber())+1,t}function wP(e,t,r){for(var n=new ke(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var SP=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},P4=(e,t,r)=>{if(e.lte(0))return new ke(0);var n=bP(e.toNumber()),i=new ke(10).pow(n),a=e.div(i),o=n!==1?.05:.1,l=new ke(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=l.mul(i);return t?new ke(s.toNumber()):new ke(Math.ceil(s.toNumber()))},kP=(e,t,r)=>{var n;if(e.lte(0))return new ke(0);var i=[1,2,2.5,5],a=e.toNumber(),o=Math.floor(new ke(a).abs().log(10).toNumber()),l=new ke(10).pow(o),s=e.div(l).toNumber(),u=i.findIndex(m=>m>=s-1e-10);if(u===-1&&(l=l.mul(10),u=0),u+=r,u>=i.length){var c=Math.floor(u/i.length);u%=i.length,l=l.mul(new ke(10).pow(c))}var f=(n=i[u])!==null&&n!==void 0?n:1,d=new ke(f).mul(l);return t?d:new ke(Math.ceil(d.toNumber()))},pU=(e,t,r)=>{var n=new ke(1),i=new ke(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ke(10).pow(bP(e)-1),i=new ke(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ke(Math.floor(e)))}else e===0?i=new ke(Math.floor((t-1)/2)):r||(i=new ke(Math.floor(e)));for(var o=Math.floor((t-1)/2),l=[],s=0;s<t;s++)l.push(i.add(new ke(s-o).mul(n)).toNumber());return l},AP=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:P4;if(!Number.isFinite((r-t)/(n-1)))return{step:new ke(0),tickMin:new ke(0),tickMax:new ke(0)};var l=o(new ke(r).sub(t).div(n-1),i,a),s;t<=0&&r>=0?s=new ke(0):(s=new ke(t).add(r).div(2),s=s.sub(new ke(s).mod(l)));var u=Math.ceil(s.sub(t).div(l).toNumber()),c=Math.ceil(new ke(r).sub(s).div(l).toNumber()),f=u+c+1;return f>n?AP(t,r,n,i,a+1,o):(f<n&&(c=r>0?c+(n-f):c,u=r>0?u:u+(n-f)),{step:l,tickMin:s.sub(new ke(u).mul(l)),tickMax:s.add(new ke(c).mul(l))})},I3=function(t){var[r,n]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",l=Math.max(i,2),[s,u]=SP([r,n]);if(s===-1/0||u===1/0){var c=u===1/0?[s,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),u];return r>n?c.reverse():c}if(s===u)return pU(s,i,a);var f=o==="snap125"?kP:P4,{step:d,tickMin:m,tickMax:g}=AP(s,u,l,a,0,f),v=wP(m,g.add(new ke(.1).mul(d)),d);return r>n?v.reverse():v},_3=function(t,r){var[n,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[l,s]=SP([n,i]);if(l===-1/0||s===1/0)return[n,i];if(l===s)return[l];var u=o==="snap125"?kP:P4,c=Math.max(r,2),f=u(new ke(s).sub(l).div(c-1),a,0),d=[...wP(new ke(l),new ke(s),f),s];return a===!1&&(d=d.map(m=>Math.round(m))),n>i?d.reverse():d},PP=e=>e.rootProps.maxBarSize,vU=e=>e.rootProps.barGap,EP=e=>e.rootProps.barCategoryGap,gU=e=>e.rootProps.barSize,cm=e=>e.rootProps.stackOffset,OP=e=>e.rootProps.reverseStackOrder,E4=e=>e.options.chartName,O4=e=>e.rootProps.syncId,CP=e=>e.rootProps.syncMethod,C4=e=>e.options.eventEmitter,gt={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},ro={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},$n={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},fm=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function dm(e,t,r){if(r!=="auto")return r;if(e!=null)return ra(e,t)?"category":"number"}function D3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Td(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D3(Object(r),!0).forEach(function(n){yU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yU(e,t,r){return(t=xU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xU(e){var t=bU(e,"string");return typeof t=="symbol"?t:t+""}function bU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z3={allowDataOverflow:ro.allowDataOverflow,allowDecimals:ro.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:ro.angleAxisId,includeHidden:!1,name:void 0,reversed:ro.reversed,scale:ro.scale,tick:ro.tick,tickCount:void 0,ticks:void 0,type:ro.type,unit:void 0,niceTicks:"auto"},R3={allowDataOverflow:$n.allowDataOverflow,allowDecimals:$n.allowDecimals,allowDuplicatedCategory:$n.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:$n.radiusAxisId,includeHidden:$n.includeHidden,name:void 0,reversed:$n.reversed,scale:$n.scale,tick:$n.tick,tickCount:$n.tickCount,ticks:void 0,type:$n.type,unit:void 0,niceTicks:"auto"},wU=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},j4=$([wU,YA],(e,t)=>{var r;if(e!=null)return e;var n=(r=dm(t,"angleAxis",z3.type))!==null&&r!==void 0?r:"category";return Td(Td({},z3),{},{type:n})}),SU=(e,t)=>e.polarAxis.radiusAxis[t],N4=$([SU,YA],(e,t)=>{var r;if(e!=null)return e;var n=(r=dm(t,"radiusAxis",R3.type))!==null&&r!==void 0?r:"category";return Td(Td({},R3),{},{type:n})}),hm=e=>e.polarOptions,M4=$([na,ia,Ht],ZW),jP=$([hm,M4],(e,t)=>{if(e!=null)return Nn(e.innerRadius,t,0)}),NP=$([hm,M4],(e,t)=>{if(e!=null)return Nn(e.outerRadius,t,t*.8)}),kU=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},MP=$([hm],kU);$([j4,MP],fm);var TP=$([M4,jP,NP],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});$([N4,TP],fm);var IP=$([Me,hm,jP,NP,na,ia],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:l,startAngle:s,endAngle:u}=t;return{cx:Nn(o,i,i/2),cy:Nn(l,a,a/2),innerRadius:r,outerRadius:n,startAngle:s,endAngle:u,clockWise:!1}}}),Wt=(e,t)=>t,mm=(e,t,r)=>r;function T4(e){return e==null?void 0:e.id}function _P(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(l=>{var s,u=(s=l.data)!==null&&s!==void 0?s:n;if(!(u==null||u.length===0)){var c=T4(l);u.forEach((f,d)=>{var m=a==null||i?d:String(Ye(f,a,null)),g=Ye(f,l.dataKey,0),v;o.has(m)?v=o.get(m):v={},Object.assign(v,{[c]:g}),o.set(m,v)})}}),Array.from(o.values())}function pm(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var vm=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function gm(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function AU(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var Ut=e=>{var t=Me(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Ls=e=>e.tooltip.settings.axisId;function I4(e){if(e!=null){var t=e.ticks,r=e.bandwidth,n=e.range(),i=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:function(a){function o(){return a.apply(this,arguments)}return o.toString=function(){return a.toString()},o}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(a){var o=i[0],l=i[1];return o<=l?a>=o&&a<=l:a>=l&&a<=o},bandwidth:r?()=>r.call(e):void 0,ticks:t?a=>t.call(e,a):void 0,map:(a,o)=>{var l=e(a);if(l!=null){if(e.bandwidth&&o!==null&&o!==void 0&&o.position){var s=e.bandwidth();switch(o.position){case"middle":l+=s/2;break;case"end":l+=s;break}}return l}}}}}var PU=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!ei(t)){for(var r,n,i=0;i<t.length;i++){var a=t[i];xe(a)&&((r===void 0||a<r)&&(r=a),(n===void 0||a>n)&&(n=a))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};function Da(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function EU(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function _4(e){let t,r,n;e.length!==2?(t=Da,r=(l,s)=>Da(e(l),s),n=(l,s)=>e(l)-s):(t=e===Da||e===EU?e:OU,r=e,n=e);function i(l,s,u=0,c=l.length){if(u<c){if(t(s,s)!==0)return c;do{const f=u+c>>>1;r(l[f],s)<0?u=f+1:c=f}while(u<c)}return u}function a(l,s,u=0,c=l.length){if(u<c){if(t(s,s)!==0)return c;do{const f=u+c>>>1;r(l[f],s)<=0?u=f+1:c=f}while(u<c)}return u}function o(l,s,u=0,c=l.length){const f=i(l,s,u,c-1);return f>u&&n(l[f-1],s)>-n(l[f],s)?f-1:f}return{left:i,center:o,right:a}}function OU(){return 0}function DP(e){return e===null?NaN:+e}function*CU(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const jU=_4(Da),Wc=jU.right;_4(DP).center;class L3 extends Map{constructor(t,r=TU){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get($3(this,t))}has(t){return super.has($3(this,t))}set(t,r){return super.set(NU(this,t),r)}delete(t){return super.delete(MU(this,t))}}function $3({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function NU({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function MU({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function TU(e){return e!==null&&typeof e=="object"?e.valueOf():e}function IU(e=Da){if(e===Da)return zP;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function zP(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const _U=Math.sqrt(50),DU=Math.sqrt(10),zU=Math.sqrt(2);function Id(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=_U?10:a>=DU?5:a>=zU?2:1;let l,s,u;return i<0?(u=Math.pow(10,-i)/o,l=Math.round(e*u),s=Math.round(t*u),l/u<e&&++l,s/u>t&&--s,u=-u):(u=Math.pow(10,i)*o,l=Math.round(e/u),s=Math.round(t/u),l*u<e&&++l,s*u>t&&--s),s<l&&.5<=r&&r<2?Id(e,t,r*2):[l,s,u]}function ag(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Id(t,e,r):Id(e,t,r);if(!(a>=i))return[];const l=a-i+1,s=new Array(l);if(n)if(o<0)for(let u=0;u<l;++u)s[u]=(a-u)/-o;else for(let u=0;u<l;++u)s[u]=(a-u)*o;else if(o<0)for(let u=0;u<l;++u)s[u]=(i+u)/-o;else for(let u=0;u<l;++u)s[u]=(i+u)*o;return s}function og(e,t,r){return t=+t,e=+e,r=+r,Id(e,t,r)[2]}function lg(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?og(t,e,r):og(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function B3(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function F3(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function RP(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?zP:IU(i);n>r;){if(n-r>600){const s=n-r+1,u=t-r+1,c=Math.log(s),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(s-f)/s)*(u-s/2<0?-1:1),m=Math.max(r,Math.floor(t-u*f/s+d)),g=Math.min(n,Math.floor(t+(s-u)*f/s+d));RP(e,t,m,g,i)}const a=e[t];let o=r,l=n;for(ou(e,r,t),i(e[n],a)>0&&ou(e,r,n);o<l;){for(ou(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[r],a)===0?ou(e,r,l):(++l,ou(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function ou(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function RU(e,t,r){if(e=Float64Array.from(CU(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return F3(e);if(t>=1)return B3(e);var n,i=(n-1)*t,a=Math.floor(i),o=B3(RP(e,a).subarray(0,a+1)),l=F3(e.subarray(a+1));return o+(l-o)*(i-a)}}function LU(e,t,r=DP){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),l=+r(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function $U(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function gn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function aa(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const sg=Symbol("implicit");function D4(){var e=new L3,t=[],r=[],n=sg;function i(a){let o=e.get(a);if(o===void 0){if(n!==sg)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new L3;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return D4(t,r).unknown(n)},gn.apply(i,arguments),i}function z4(){var e=D4().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,l=!1,s=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,m=i<n,g=m?i:n,v=m?n:i;a=(v-g)/Math.max(1,d-s+u*2),l&&(a=Math.floor(a)),g+=(v-g-a*(d-s))*c,o=a*(1-s),l&&(g=Math.round(g),o=Math.round(o));var x=$U(d).map(function(y){return g+a*y});return r(m?x.reverse():x)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(l=!!d,f()):l},e.padding=function(d){return arguments.length?(s=Math.min(1,u=+d),f()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),f()):s},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return z4(t(),[n,i]).round(l).paddingInner(s).paddingOuter(u).align(c)},gn.apply(f(),arguments)}function LP(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return LP(t())},e}function BU(){return LP(z4.apply(null,arguments).paddingInner(1))}function R4(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function $P(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Uc(){}var mc=.7,_d=1/mc,Xl="\\s*([+-]?\\d+)\\s*",pc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ti="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",FU=/^#([0-9a-f]{3,8})$/,HU=new RegExp(`^rgb\\(${Xl},${Xl},${Xl}\\)$`),WU=new RegExp(`^rgb\\(${ti},${ti},${ti}\\)$`),UU=new RegExp(`^rgba\\(${Xl},${Xl},${Xl},${pc}\\)$`),qU=new RegExp(`^rgba\\(${ti},${ti},${ti},${pc}\\)$`),VU=new RegExp(`^hsl\\(${pc},${ti},${ti}\\)$`),KU=new RegExp(`^hsla\\(${pc},${ti},${ti},${pc}\\)$`),H3={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};R4(Uc,vc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:W3,formatHex:W3,formatHex8:GU,formatHsl:YU,formatRgb:U3,toString:U3});function W3(){return this.rgb().formatHex()}function GU(){return this.rgb().formatHex8()}function YU(){return BP(this).formatHsl()}function U3(){return this.rgb().formatRgb()}function vc(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=FU.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?q3(t):r===3?new Er(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?D0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?D0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=HU.exec(e))?new Er(t[1],t[2],t[3],1):(t=WU.exec(e))?new Er(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=UU.exec(e))?D0(t[1],t[2],t[3],t[4]):(t=qU.exec(e))?D0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=VU.exec(e))?G3(t[1],t[2]/100,t[3]/100,1):(t=KU.exec(e))?G3(t[1],t[2]/100,t[3]/100,t[4]):H3.hasOwnProperty(e)?q3(H3[e]):e==="transparent"?new Er(NaN,NaN,NaN,0):null}function q3(e){return new Er(e>>16&255,e>>8&255,e&255,1)}function D0(e,t,r,n){return n<=0&&(e=t=r=NaN),new Er(e,t,r,n)}function XU(e){return e instanceof Uc||(e=vc(e)),e?(e=e.rgb(),new Er(e.r,e.g,e.b,e.opacity)):new Er}function ug(e,t,r,n){return arguments.length===1?XU(e):new Er(e,t,r,n??1)}function Er(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}R4(Er,ug,$P(Uc,{brighter(e){return e=e==null?_d:Math.pow(_d,e),new Er(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?mc:Math.pow(mc,e),new Er(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Er(Co(this.r),Co(this.g),Co(this.b),Dd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:V3,formatHex:V3,formatHex8:ZU,formatRgb:K3,toString:K3}));function V3(){return`#${xo(this.r)}${xo(this.g)}${xo(this.b)}`}function ZU(){return`#${xo(this.r)}${xo(this.g)}${xo(this.b)}${xo((isNaN(this.opacity)?1:this.opacity)*255)}`}function K3(){const e=Dd(this.opacity);return`${e===1?"rgb(":"rgba("}${Co(this.r)}, ${Co(this.g)}, ${Co(this.b)}${e===1?")":`, ${e})`}`}function Dd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Co(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function xo(e){return e=Co(e),(e<16?"0":"")+e.toString(16)}function G3(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new En(e,t,r,n)}function BP(e){if(e instanceof En)return new En(e.h,e.s,e.l,e.opacity);if(e instanceof Uc||(e=vc(e)),!e)return new En;if(e instanceof En)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(r-n)/l+(r<n)*6:r===a?o=(n-t)/l+2:o=(t-r)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new En(o,l,s,e.opacity)}function QU(e,t,r,n){return arguments.length===1?BP(e):new En(e,t,r,n??1)}function En(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}R4(En,QU,$P(Uc,{brighter(e){return e=e==null?_d:Math.pow(_d,e),new En(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?mc:Math.pow(mc,e),new En(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Er(Fp(e>=240?e-240:e+120,i,n),Fp(e,i,n),Fp(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new En(Y3(this.h),z0(this.s),z0(this.l),Dd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Dd(this.opacity);return`${e===1?"hsl(":"hsla("}${Y3(this.h)}, ${z0(this.s)*100}%, ${z0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Y3(e){return e=(e||0)%360,e<0?e+360:e}function z0(e){return Math.max(0,Math.min(1,e||0))}function Fp(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const L4=e=>()=>e;function JU(e,t){return function(r){return e+r*t}}function eq(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function tq(e){return(e=+e)==1?FP:function(t,r){return r-t?eq(t,r,e):L4(isNaN(t)?r:t)}}function FP(e,t){var r=t-e;return r?JU(e,r):L4(isNaN(e)?t:e)}const X3=function e(t){var r=tq(t);function n(i,a){var o=r((i=ug(i)).r,(a=ug(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),u=FP(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=l(c),i.b=s(c),i.opacity=u(c),i+""}}return n.gamma=e,n}(1);function rq(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function nq(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function iq(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=$s(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(l){for(o=0;o<n;++o)a[o]=i[o](l);return a}}function aq(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function zd(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function oq(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=$s(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var cg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Hp=new RegExp(cg.source,"g");function lq(e){return function(){return e}}function sq(e){return function(t){return e(t)+""}}function uq(e,t){var r=cg.lastIndex=Hp.lastIndex=0,n,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(n=cg.exec(e))&&(i=Hp.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:zd(n,i)})),r=Hp.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?sq(s[0].x):lq(t):(t=s.length,function(u){for(var c=0,f;c<t;++c)l[(f=s[c]).i]=f.x(u);return l.join("")})}function $s(e,t){var r=typeof t,n;return t==null||r==="boolean"?L4(t):(r==="number"?zd:r==="string"?(n=vc(t))?(t=n,X3):uq:t instanceof vc?X3:t instanceof Date?aq:nq(t)?rq:Array.isArray(t)?iq:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?oq:zd)(e,t)}function $4(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function cq(e,t){t===void 0&&(t=e,e=$s);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[l](o-l)}}function fq(e){return function(){return e}}function Rd(e){return+e}var Z3=[0,1];function hr(e){return e}function fg(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:fq(isNaN(t)?NaN:.5)}function dq(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function hq(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=fg(i,n),a=r(o,a)):(n=fg(n,i),a=r(a,o)),function(l){return a(n(l))}}function mq(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=fg(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(l){var s=Wc(e,l,1,n)-1;return a[s](i[s](l))}}function qc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ym(){var e=Z3,t=Z3,r=$s,n,i,a,o=hr,l,s,u;function c(){var d=Math.min(e.length,t.length);return o!==hr&&(o=dq(e[0],e[d-1])),l=d>2?mq:hq,s=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(s||(s=l(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((u||(u=l(t,e.map(n),zd)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Rd),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=$4,c()},f.clamp=function(d){return arguments.length?(o=d?!0:hr,c()):o!==hr},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,m){return n=d,i=m,c()}}function B4(){return ym()(hr,hr)}function pq(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ld(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function vs(e){return e=Ld(Math.abs(e)),e?e[1]:NaN}function vq(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),a.push(r.substring(i-=l,i+l)),!((s+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function gq(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var yq=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gc(e){if(!(t=yq.exec(e)))throw new Error("invalid format: "+e);var t;return new F4({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}gc.prototype=F4.prototype;function F4(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}F4.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function xq(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var $d;function bq(e,t){var r=Ld(e,t);if(!r)return $d=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-($d=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Ld(e,Math.max(0,t+a-1))[0]}function Q3(e,t){var r=Ld(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const J3={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:pq,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Q3(e*100,t),r:Q3,s:bq,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function e6(e){return e}var t6=Array.prototype.map,r6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wq(e){var t=e.grouping===void 0||e.thousands===void 0?e6:vq(t6.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?e6:gq(t6.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(f,d){f=gc(f);var m=f.fill,g=f.align,v=f.sign,x=f.symbol,y=f.zero,w=f.width,S=f.comma,A=f.precision,P=f.trim,O=f.type;O==="n"?(S=!0,O="g"):J3[O]||(A===void 0&&(A=12),P=!0,O="g"),(y||m==="0"&&g==="=")&&(y=!0,m="0",g="=");var j=(d&&d.prefix!==void 0?d.prefix:"")+(x==="$"?r:x==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),N=(x==="$"?n:/[%p]/.test(O)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),_=J3[O],z=/[defgprs%]/.test(O);A=A===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function R(I){var F=j,H=N,Z,X,re;if(O==="c")H=_(I)+H,I="";else{I=+I;var B=I<0||1/I<0;if(I=isNaN(I)?s:_(Math.abs(I),A),P&&(I=xq(I)),B&&+I==0&&v!=="+"&&(B=!1),F=(B?v==="("?v:l:v==="-"||v==="("?"":v)+F,H=(O==="s"&&!isNaN(I)&&$d!==void 0?r6[8+$d/3]:"")+H+(B&&v==="("?")":""),z){for(Z=-1,X=I.length;++Z<X;)if(re=I.charCodeAt(Z),48>re||re>57){H=(re===46?i+I.slice(Z+1):I.slice(Z))+H,I=I.slice(0,Z);break}}}S&&!y&&(I=t(I,1/0));var W=F.length+I.length+H.length,K=W<w?new Array(w-W+1).join(m):"";switch(S&&y&&(I=t(K+I,K.length?w-H.length:1/0),K=""),g){case"<":I=F+I+H+K;break;case"=":I=F+K+I+H;break;case"^":I=K.slice(0,W=K.length>>1)+F+I+H+K.slice(W);break;default:I=K+F+I+H;break}return a(I)}return R.toString=function(){return f+""},R}function c(f,d){var m=Math.max(-8,Math.min(8,Math.floor(vs(d)/3)))*3,g=Math.pow(10,-m),v=u((f=gc(f),f.type="f",f),{suffix:r6[8+m/3]});return function(x){return v(g*x)}}return{format:u,formatPrefix:c}}var R0,H4,HP;Sq({thousands:",",grouping:[3],currency:["$",""]});function Sq(e){return R0=wq(e),H4=R0.format,HP=R0.formatPrefix,R0}function kq(e){return Math.max(0,-vs(Math.abs(e)))}function Aq(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vs(t)/3)))*3-vs(Math.abs(e)))}function Pq(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vs(t)-vs(e))+1}function WP(e,t,r,n){var i=lg(e,t,r),a;switch(n=gc(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Aq(i,o))&&(n.precision=a),HP(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Pq(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=kq(i))&&(n.precision=a-(n.type==="%")*2);break}}return H4(n)}function Qa(e){var t=e.domain;return e.ticks=function(r){var n=t();return ag(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return WP(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],l=n[a],s,u,c=10;for(l<o&&(u=o,o=l,l=u,u=i,i=a,a=u);c-- >0;){if(u=og(o,l,r),u===s)return n[i]=o,n[a]=l,t(n);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;s=u}return e},e}function UP(){var e=B4();return e.copy=function(){return qc(e,UP())},gn.apply(e,arguments),Qa(e)}function qP(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Rd),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return qP(e).unknown(t)},e=arguments.length?Array.from(e,Rd):[0,1],Qa(r)}function VP(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function n6(e){return Math.log(e)}function i6(e){return Math.exp(e)}function Eq(e){return-Math.log(-e)}function Oq(e){return-Math.exp(-e)}function Cq(e){return isFinite(e)?+("1e"+e):e<0?0:e}function jq(e){return e===10?Cq:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Nq(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function a6(e){return(t,r)=>-e(-t,r)}function W4(e){const t=e(n6,i6),r=t.domain;let n=10,i,a;function o(){return i=Nq(n),a=jq(n),r()[0]<0?(i=a6(i),a=a6(a),e(Eq,Oq)):e(n6,i6),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const s=r();let u=s[0],c=s[s.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=i(u),m=i(c),g,v;const x=l==null?10:+l;let y=[];if(!(n%1)&&m-d<x){if(d=Math.floor(d),m=Math.ceil(m),u>0){for(;d<=m;++d)for(g=1;g<n;++g)if(v=d<0?g/a(-d):g*a(d),!(v<u)){if(v>c)break;y.push(v)}}else for(;d<=m;++d)for(g=n-1;g>=1;--g)if(v=d>0?g/a(-d):g*a(d),!(v<u)){if(v>c)break;y.push(v)}y.length*2<x&&(y=ag(u,c,x))}else y=ag(d,m,Math.min(m-d,x)).map(a);return f?y.reverse():y},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=gc(s)).precision==null&&(s.trim=!0),s=H4(s)),l===1/0)return s;const u=Math.max(1,n*l/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=u?s(c):""}},t.nice=()=>r(VP(r(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function KP(){const e=W4(ym()).domain([1,10]);return e.copy=()=>qc(e,KP()).base(e.base()),gn.apply(e,arguments),e}function o6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function l6(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function U4(e){var t=1,r=e(o6(t),l6(t));return r.constant=function(n){return arguments.length?e(o6(t=+n),l6(t)):t},Qa(r)}function GP(){var e=U4(ym());return e.copy=function(){return qc(e,GP()).constant(e.constant())},gn.apply(e,arguments)}function s6(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Mq(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Tq(e){return e<0?-e*e:e*e}function q4(e){var t=e(hr,hr),r=1;function n(){return r===1?e(hr,hr):r===.5?e(Mq,Tq):e(s6(r),s6(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Qa(t)}function V4(){var e=q4(ym());return e.copy=function(){return qc(e,V4()).exponent(e.exponent())},gn.apply(e,arguments),e}function Iq(){return V4.apply(null,arguments).exponent(.5)}function u6(e){return Math.sign(e)*e*e}function _q(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function YP(){var e=B4(),t=[0,1],r=!1,n;function i(a){var o=_q(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(u6(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Rd)).map(u6)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return YP(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},gn.apply(i,arguments),Qa(i)}function XP(){var e=[],t=[],r=[],n;function i(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o<l;)r[o-1]=LU(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Wc(r,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Da),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return XP().domain(e).range(t).unknown(n)},gn.apply(a,arguments)}function ZP(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Wc(n,s,0,r)]:a}function l(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,l()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,l()):i.slice()},o.invertExtent=function(s){var u=i.indexOf(s);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return ZP().domain([e,t]).range(i).unknown(a)},gn.apply(Qa(o),arguments)}function QP(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Wc(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return QP().domain(e).range(t).unknown(r)},gn.apply(i,arguments)}const Wp=new Date,Up=new Date;function _t(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const s=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;let u;do s.push(u=new Date(+a)),t(a,l),e(a);while(u<a&&a<o);return s},i.filter=a=>_t(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Wp.setTime(+a),Up.setTime(+o),e(Wp),e(Up),Math.floor(r(Wp,Up))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Bd=_t(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Bd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?_t(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Bd);Bd.range;const Ni=1e3,on=Ni*60,Mi=on*60,Gi=Mi*24,K4=Gi*7,c6=Gi*30,qp=Gi*365,bo=_t(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ni)},(e,t)=>(t-e)/Ni,e=>e.getUTCSeconds());bo.range;const G4=_t(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ni)},(e,t)=>{e.setTime(+e+t*on)},(e,t)=>(t-e)/on,e=>e.getMinutes());G4.range;const Y4=_t(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*on)},(e,t)=>(t-e)/on,e=>e.getUTCMinutes());Y4.range;const X4=_t(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ni-e.getMinutes()*on)},(e,t)=>{e.setTime(+e+t*Mi)},(e,t)=>(t-e)/Mi,e=>e.getHours());X4.range;const Z4=_t(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Mi)},(e,t)=>(t-e)/Mi,e=>e.getUTCHours());Z4.range;const Vc=_t(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*on)/Gi,e=>e.getDate()-1);Vc.range;const xm=_t(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Gi,e=>e.getUTCDate()-1);xm.range;const JP=_t(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Gi,e=>Math.floor(e/Gi));JP.range;function rl(e){return _t(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*on)/K4)}const bm=rl(0),Fd=rl(1),Dq=rl(2),zq=rl(3),gs=rl(4),Rq=rl(5),Lq=rl(6);bm.range;Fd.range;Dq.range;zq.range;gs.range;Rq.range;Lq.range;function nl(e){return _t(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/K4)}const wm=nl(0),Hd=nl(1),$q=nl(2),Bq=nl(3),ys=nl(4),Fq=nl(5),Hq=nl(6);wm.range;Hd.range;$q.range;Bq.range;ys.range;Fq.range;Hq.range;const Q4=_t(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Q4.range;const J4=_t(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());J4.range;const Yi=_t(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Yi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_t(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Yi.range;const Xi=_t(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Xi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_t(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Xi.range;function eE(e,t,r,n,i,a){const o=[[bo,1,Ni],[bo,5,5*Ni],[bo,15,15*Ni],[bo,30,30*Ni],[a,1,on],[a,5,5*on],[a,15,15*on],[a,30,30*on],[i,1,Mi],[i,3,3*Mi],[i,6,6*Mi],[i,12,12*Mi],[n,1,Gi],[n,2,2*Gi],[r,1,K4],[t,1,c6],[t,3,3*c6],[e,1,qp]];function l(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const m=f&&typeof f.range=="function"?f:s(u,c,f),g=m?m.range(u,+c+1):[];return d?g.reverse():g}function s(u,c,f){const d=Math.abs(c-u)/f,m=_4(([,,x])=>x).right(o,d);if(m===o.length)return e.every(lg(u/qp,c/qp,f));if(m===0)return Bd.every(Math.max(lg(u,c,f),1));const[g,v]=o[d/o[m-1][2]<o[m][2]/d?m-1:m];return g.every(v)}return[l,s]}const[Wq,Uq]=eE(Xi,J4,wm,JP,Z4,Y4),[qq,Vq]=eE(Yi,Q4,bm,Vc,X4,G4);function Vp(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Kp(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function lu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Kq(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,u=su(i),c=uu(i),f=su(a),d=uu(a),m=su(o),g=uu(o),v=su(l),x=uu(l),y=su(s),w=uu(s),S={a:re,A:B,b:W,B:K,c:null,d:v6,e:v6,f:vV,g:EV,G:CV,H:hV,I:mV,j:pV,L:tE,m:gV,M:yV,p:le,q:fe,Q:x6,s:b6,S:xV,u:bV,U:wV,V:SV,w:kV,W:AV,x:null,X:null,y:PV,Y:OV,Z:jV,"%":y6},A={a:He,A:Ie,b:lt,B:zt,c:null,d:g6,e:g6,f:IV,g:WV,G:qV,H:NV,I:MV,j:TV,L:nE,m:_V,M:DV,p:xt,q:Ze,Q:x6,s:b6,S:zV,u:RV,U:LV,V:$V,w:BV,W:FV,x:null,X:null,y:HV,Y:UV,Z:VV,"%":y6},P={a:z,A:R,b:I,B:F,c:H,d:m6,e:m6,f:uV,g:h6,G:d6,H:p6,I:p6,j:aV,L:sV,m:iV,M:oV,p:_,q:nV,Q:fV,s:dV,S:lV,u:Qq,U:Jq,V:eV,w:Zq,W:tV,x:Z,X,y:h6,Y:d6,Z:rV,"%":cV};S.x=O(r,S),S.X=O(n,S),S.c=O(t,S),A.x=O(r,A),A.X=O(n,A),A.c=O(t,A);function O(te,J){return function(we){var V=[],st=-1,Ae=0,Rt=te.length,Lt,zr,pi;for(we instanceof Date||(we=new Date(+we));++st<Rt;)te.charCodeAt(st)===37&&(V.push(te.slice(Ae,st)),(zr=f6[Lt=te.charAt(++st)])!=null?Lt=te.charAt(++st):zr=Lt==="e"?" ":"0",(pi=J[Lt])&&(Lt=pi(we,zr)),V.push(Lt),Ae=st+1);return V.push(te.slice(Ae,st)),V.join("")}}function j(te,J){return function(we){var V=lu(1900,void 0,1),st=N(V,te,we+="",0),Ae,Rt;if(st!=we.length)return null;if("Q"in V)return new Date(V.Q);if("s"in V)return new Date(V.s*1e3+("L"in V?V.L:0));if(J&&!("Z"in V)&&(V.Z=0),"p"in V&&(V.H=V.H%12+V.p*12),V.m===void 0&&(V.m="q"in V?V.q:0),"V"in V){if(V.V<1||V.V>53)return null;"w"in V||(V.w=1),"Z"in V?(Ae=Kp(lu(V.y,0,1)),Rt=Ae.getUTCDay(),Ae=Rt>4||Rt===0?Hd.ceil(Ae):Hd(Ae),Ae=xm.offset(Ae,(V.V-1)*7),V.y=Ae.getUTCFullYear(),V.m=Ae.getUTCMonth(),V.d=Ae.getUTCDate()+(V.w+6)%7):(Ae=Vp(lu(V.y,0,1)),Rt=Ae.getDay(),Ae=Rt>4||Rt===0?Fd.ceil(Ae):Fd(Ae),Ae=Vc.offset(Ae,(V.V-1)*7),V.y=Ae.getFullYear(),V.m=Ae.getMonth(),V.d=Ae.getDate()+(V.w+6)%7)}else("W"in V||"U"in V)&&("w"in V||(V.w="u"in V?V.u%7:"W"in V?1:0),Rt="Z"in V?Kp(lu(V.y,0,1)).getUTCDay():Vp(lu(V.y,0,1)).getDay(),V.m=0,V.d="W"in V?(V.w+6)%7+V.W*7-(Rt+5)%7:V.w+V.U*7-(Rt+6)%7);return"Z"in V?(V.H+=V.Z/100|0,V.M+=V.Z%100,Kp(V)):Vp(V)}}function N(te,J,we,V){for(var st=0,Ae=J.length,Rt=we.length,Lt,zr;st<Ae;){if(V>=Rt)return-1;if(Lt=J.charCodeAt(st++),Lt===37){if(Lt=J.charAt(st++),zr=P[Lt in f6?J.charAt(st++):Lt],!zr||(V=zr(te,we,V))<0)return-1}else if(Lt!=we.charCodeAt(V++))return-1}return V}function _(te,J,we){var V=u.exec(J.slice(we));return V?(te.p=c.get(V[0].toLowerCase()),we+V[0].length):-1}function z(te,J,we){var V=m.exec(J.slice(we));return V?(te.w=g.get(V[0].toLowerCase()),we+V[0].length):-1}function R(te,J,we){var V=f.exec(J.slice(we));return V?(te.w=d.get(V[0].toLowerCase()),we+V[0].length):-1}function I(te,J,we){var V=y.exec(J.slice(we));return V?(te.m=w.get(V[0].toLowerCase()),we+V[0].length):-1}function F(te,J,we){var V=v.exec(J.slice(we));return V?(te.m=x.get(V[0].toLowerCase()),we+V[0].length):-1}function H(te,J,we){return N(te,t,J,we)}function Z(te,J,we){return N(te,r,J,we)}function X(te,J,we){return N(te,n,J,we)}function re(te){return o[te.getDay()]}function B(te){return a[te.getDay()]}function W(te){return s[te.getMonth()]}function K(te){return l[te.getMonth()]}function le(te){return i[+(te.getHours()>=12)]}function fe(te){return 1+~~(te.getMonth()/3)}function He(te){return o[te.getUTCDay()]}function Ie(te){return a[te.getUTCDay()]}function lt(te){return s[te.getUTCMonth()]}function zt(te){return l[te.getUTCMonth()]}function xt(te){return i[+(te.getUTCHours()>=12)]}function Ze(te){return 1+~~(te.getUTCMonth()/3)}return{format:function(te){var J=O(te+="",S);return J.toString=function(){return te},J},parse:function(te){var J=j(te+="",!1);return J.toString=function(){return te},J},utcFormat:function(te){var J=O(te+="",A);return J.toString=function(){return te},J},utcParse:function(te){var J=j(te+="",!0);return J.toString=function(){return te},J}}}var f6={"-":"",_:" ",0:"0"},qt=/^\s*\d+/,Gq=/^%/,Yq=/[\\^$*+?|[\]().{}]/g;function Ce(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function Xq(e){return e.replace(Yq,"\\$&")}function su(e){return new RegExp("^(?:"+e.map(Xq).join("|")+")","i")}function uu(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Zq(e,t,r){var n=qt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Qq(e,t,r){var n=qt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Jq(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function eV(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function tV(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function d6(e,t,r){var n=qt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function h6(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function rV(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function nV(e,t,r){var n=qt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function iV(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function m6(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function aV(e,t,r){var n=qt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function p6(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function oV(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lV(e,t,r){var n=qt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function sV(e,t,r){var n=qt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function uV(e,t,r){var n=qt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function cV(e,t,r){var n=Gq.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function fV(e,t,r){var n=qt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function dV(e,t,r){var n=qt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function v6(e,t){return Ce(e.getDate(),t,2)}function hV(e,t){return Ce(e.getHours(),t,2)}function mV(e,t){return Ce(e.getHours()%12||12,t,2)}function pV(e,t){return Ce(1+Vc.count(Yi(e),e),t,3)}function tE(e,t){return Ce(e.getMilliseconds(),t,3)}function vV(e,t){return tE(e,t)+"000"}function gV(e,t){return Ce(e.getMonth()+1,t,2)}function yV(e,t){return Ce(e.getMinutes(),t,2)}function xV(e,t){return Ce(e.getSeconds(),t,2)}function bV(e){var t=e.getDay();return t===0?7:t}function wV(e,t){return Ce(bm.count(Yi(e)-1,e),t,2)}function rE(e){var t=e.getDay();return t>=4||t===0?gs(e):gs.ceil(e)}function SV(e,t){return e=rE(e),Ce(gs.count(Yi(e),e)+(Yi(e).getDay()===4),t,2)}function kV(e){return e.getDay()}function AV(e,t){return Ce(Fd.count(Yi(e)-1,e),t,2)}function PV(e,t){return Ce(e.getFullYear()%100,t,2)}function EV(e,t){return e=rE(e),Ce(e.getFullYear()%100,t,2)}function OV(e,t){return Ce(e.getFullYear()%1e4,t,4)}function CV(e,t){var r=e.getDay();return e=r>=4||r===0?gs(e):gs.ceil(e),Ce(e.getFullYear()%1e4,t,4)}function jV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ce(t/60|0,"0",2)+Ce(t%60,"0",2)}function g6(e,t){return Ce(e.getUTCDate(),t,2)}function NV(e,t){return Ce(e.getUTCHours(),t,2)}function MV(e,t){return Ce(e.getUTCHours()%12||12,t,2)}function TV(e,t){return Ce(1+xm.count(Xi(e),e),t,3)}function nE(e,t){return Ce(e.getUTCMilliseconds(),t,3)}function IV(e,t){return nE(e,t)+"000"}function _V(e,t){return Ce(e.getUTCMonth()+1,t,2)}function DV(e,t){return Ce(e.getUTCMinutes(),t,2)}function zV(e,t){return Ce(e.getUTCSeconds(),t,2)}function RV(e){var t=e.getUTCDay();return t===0?7:t}function LV(e,t){return Ce(wm.count(Xi(e)-1,e),t,2)}function iE(e){var t=e.getUTCDay();return t>=4||t===0?ys(e):ys.ceil(e)}function $V(e,t){return e=iE(e),Ce(ys.count(Xi(e),e)+(Xi(e).getUTCDay()===4),t,2)}function BV(e){return e.getUTCDay()}function FV(e,t){return Ce(Hd.count(Xi(e)-1,e),t,2)}function HV(e,t){return Ce(e.getUTCFullYear()%100,t,2)}function WV(e,t){return e=iE(e),Ce(e.getUTCFullYear()%100,t,2)}function UV(e,t){return Ce(e.getUTCFullYear()%1e4,t,4)}function qV(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ys(e):ys.ceil(e),Ce(e.getUTCFullYear()%1e4,t,4)}function VV(){return"+0000"}function y6(){return"%"}function x6(e){return+e}function b6(e){return Math.floor(+e/1e3)}var dl,aE,oE;KV({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function KV(e){return dl=Kq(e),aE=dl.format,dl.parse,oE=dl.utcFormat,dl.utcParse,dl}function GV(e){return new Date(e)}function YV(e){return e instanceof Date?+e:+new Date(+e)}function e2(e,t,r,n,i,a,o,l,s,u){var c=B4(),f=c.invert,d=c.domain,m=u(".%L"),g=u(":%S"),v=u("%I:%M"),x=u("%I %p"),y=u("%a %d"),w=u("%b %d"),S=u("%B"),A=u("%Y");function P(O){return(s(O)<O?m:l(O)<O?g:o(O)<O?v:a(O)<O?x:n(O)<O?i(O)<O?y:w:r(O)<O?S:A)(O)}return c.invert=function(O){return new Date(f(O))},c.domain=function(O){return arguments.length?d(Array.from(O,YV)):d().map(GV)},c.ticks=function(O){var j=d();return e(j[0],j[j.length-1],O??10)},c.tickFormat=function(O,j){return j==null?P:u(j)},c.nice=function(O){var j=d();return(!O||typeof O.range!="function")&&(O=t(j[0],j[j.length-1],O??10)),O?d(VP(j,O)):c},c.copy=function(){return qc(c,e2(e,t,r,n,i,a,o,l,s,u))},c}function XV(){return gn.apply(e2(qq,Vq,Yi,Q4,bm,Vc,X4,G4,bo,aE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ZV(){return gn.apply(e2(Wq,Uq,Xi,J4,wm,xm,Z4,Y4,bo,oE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Sm(){var e=0,t=1,r,n,i,a,o=hr,l=!1,s;function u(f){return f==null||isNaN(f=+f)?s:o(i===0?.5:(f=(a(f)-r)*i,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(d){var m,g;return arguments.length?([m,g]=d,o=f(m,g),u):[o(0),o(1)]}}return u.range=c($s),u.rangeRound=c($4),u.unknown=function(f){return arguments.length?(s=f,u):s},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function Ja(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function lE(){var e=Qa(Sm()(hr));return e.copy=function(){return Ja(e,lE())},aa.apply(e,arguments)}function sE(){var e=W4(Sm()).domain([1,10]);return e.copy=function(){return Ja(e,sE()).base(e.base())},aa.apply(e,arguments)}function uE(){var e=U4(Sm());return e.copy=function(){return Ja(e,uE()).constant(e.constant())},aa.apply(e,arguments)}function t2(){var e=q4(Sm());return e.copy=function(){return Ja(e,t2()).exponent(e.exponent())},aa.apply(e,arguments)}function QV(){return t2.apply(null,arguments).exponent(.5)}function cE(){var e=[],t=hr;function r(n){if(n!=null&&!isNaN(n=+n))return t((Wc(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Da),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>RU(e,a/n))},r.copy=function(){return cE(t).domain(e)},aa.apply(r,arguments)}function km(){var e=0,t=.5,r=1,n=1,i,a,o,l,s,u=hr,c,f=!1,d;function m(v){return isNaN(v=+v)?d:(v=.5+((v=+c(v))-a)*(n*v<n*a?l:s),u(f?Math.max(0,Math.min(1,v)):v))}m.domain=function(v){return arguments.length?([e,t,r]=v,i=c(e=+e),a=c(t=+t),o=c(r=+r),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,m):[e,t,r]},m.clamp=function(v){return arguments.length?(f=!!v,m):f},m.interpolator=function(v){return arguments.length?(u=v,m):u};function g(v){return function(x){var y,w,S;return arguments.length?([y,w,S]=x,u=cq(v,[y,w,S]),m):[u(0),u(.5),u(1)]}}return m.range=g($s),m.rangeRound=g($4),m.unknown=function(v){return arguments.length?(d=v,m):d},function(v){return c=v,i=v(e),a=v(t),o=v(r),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,m}}function fE(){var e=Qa(km()(hr));return e.copy=function(){return Ja(e,fE())},aa.apply(e,arguments)}function dE(){var e=W4(km()).domain([.1,1,10]);return e.copy=function(){return Ja(e,dE()).base(e.base())},aa.apply(e,arguments)}function hE(){var e=U4(km());return e.copy=function(){return Ja(e,hE()).constant(e.constant())},aa.apply(e,arguments)}function r2(){var e=q4(km());return e.copy=function(){return Ja(e,r2()).exponent(e.exponent())},aa.apply(e,arguments)}function JV(){return r2.apply(null,arguments).exponent(.5)}const mE=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:z4,scaleDiverging:fE,scaleDivergingLog:dE,scaleDivergingPow:r2,scaleDivergingSqrt:JV,scaleDivergingSymlog:hE,scaleIdentity:qP,scaleImplicit:sg,scaleLinear:UP,scaleLog:KP,scaleOrdinal:D4,scalePoint:BU,scalePow:V4,scaleQuantile:XP,scaleQuantize:ZP,scaleRadial:YP,scaleSequential:lE,scaleSequentialLog:sE,scaleSequentialPow:t2,scaleSequentialQuantile:cE,scaleSequentialSqrt:QV,scaleSequentialSymlog:uE,scaleSqrt:Iq,scaleSymlog:GP,scaleThreshold:QP,scaleTime:XV,scaleUtc:ZV,tickFormat:WP},Symbol.toStringTag,{value:"Module"}));function eK(e){var t=mE;if(e in t&&typeof t[e]=="function")return t[e]();var r="scale".concat(Tc(e));if(r in t&&typeof t[r]=="function")return t[r]()}function w6(e,t,r){if(typeof e=="function")return e.copy().domain(t).range(r);if(e!=null){var n=eK(e);if(n!=null)return n.domain(t).range(r),n}}function n2(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?w6(e.scale,r,n):w6(t,r,n)}function tK(e){return"scale".concat(Tc(e))}function rK(e){return tK(e)in mE}var pE=(e,t,r)=>{if(e!=null){var{scale:n,type:i}=e;if(n==="auto")return i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof n=="string")return rK(n)?n:"point"}};function nK(e,t){for(var r=0,n=e.length,i=e[0]<e[e.length-1];r<n;){var a=Math.floor((r+n)/2);(i?e[a]<t:e[a]>t)?r=a+1:n=a}return r}function vE(e,t){if(e){var r=t??e.domain(),n=r.map(a=>{var o;return(o=e(a))!==null&&o!==void 0?o:0}),i=e.range();if(!(r.length===0||i.length<2))return a=>{var o,l,s=nK(n,a);if(s<=0)return r[0];if(s>=r.length)return r[r.length-1];var u=(o=n[s-1])!==null&&o!==void 0?o:0,c=(l=n[s])!==null&&l!==void 0?l:0;return Math.abs(a-u)<=Math.abs(a-c)?r[s-1]:r[s]}}}function iK(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):vE(e,void 0)}function S6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S6(Object(r),!0).forEach(function(n){aK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aK(e,t,r){return(t=oK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oK(e){var t=lK(e,"string");return typeof t=="symbol"?t:t+""}function lK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dg=[0,"auto"],At={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},gE=(e,t)=>e.cartesianAxis.xAxis[t],ci=(e,t)=>{var r=gE(e,t);return r??At},Pt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:dg,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:zc},yE=(e,t)=>e.cartesianAxis.yAxis[t],fi=(e,t)=>{var r=yE(e,t);return r??Pt},Ti={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},i2=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??Ti},yr=(e,t,r)=>{switch(t){case"xAxis":return ci(e,r);case"yAxis":return fi(e,r);case"zAxis":return i2(e,r);case"angleAxis":return j4(e,r);case"radiusAxis":return N4(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},sK=(e,t,r)=>{switch(t){case"xAxis":return ci(e,r);case"yAxis":return fi(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Kc=(e,t,r)=>{switch(t){case"xAxis":return ci(e,r);case"yAxis":return fi(e,r);case"angleAxis":return j4(e,r);case"radiusAxis":return N4(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},xE=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function bE(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Gc=e=>e.graphicalItems.cartesianItems,uK=$([Wt,mm],bE),wE=(e,t,r)=>e.filter(r).filter(n=>(t==null?void 0:t.includeHidden)===!0?!0:!n.hide),Bs=$([Gc,yr,uK],wE,{memoizeOptions:{resultEqualityCheck:gm}}),SE=$([Bs],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(pm)),kE=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),cK=$([Bs],kE),AE=e=>e.map(t=>t.data).filter(Boolean).flat(1),fK=$([Bs],e=>e.some(t=>!t.data)),PE=$([Bs],AE,{memoizeOptions:{resultEqualityCheck:gm}}),EE=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},a2=$([PE,Ds],EE),dK=(e,t,r)=>(t==null?void 0:t.dataKey)!=null?e.map(n=>({value:Ye(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:Ye(i,n)}))):e.map(n=>({value:n})),OE=(e,t,r,n,i,a)=>{var{chartData:o=[],dataStartIndex:l,dataEndIndex:s}=n,u=dK(e,t,r);if(i&&(t==null?void 0:t.dataKey)!=null&&a.length>0){var c=o.slice(l,s+1),f=c.map(d=>({value:Ye(d,t.dataKey)})).filter(d=>d.value!=null);return[...f,...u]}return u},Yc=$([a2,yr,Bs,Ds,fK,PE],OE);function Zl(e){if(dn(e)||e instanceof Date){var t=Number(e);if(xe(t))return t}}function k6(e){if(Array.isArray(e)){var t=[Zl(e[0]),Zl(e[1])];return ei(t)?t:void 0}var r=Zl(e);if(r!=null)return[r,r]}function li(e){return e.map(Zl).filter(Pr)}function hK(e,t){var r=Zl(e),n=Zl(t);return r==null&&n==null?0:r==null?-1:n==null?1:r-n}var mK=$([Yc],e=>e==null?void 0:e.map(t=>t.value).sort(hK));function CE(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function pK(e,t,r){if(!r)return[];if(!r.length)return[];var n;if(typeof t=="number"&&!ii(t))n=t;else if(Array.isArray(t)){var i=li(t);i.length>0&&(n=Math.max(...i))}return n==null?[]:li(r.flatMap(a=>{var o=Ye(e,a.dataKey),l,s;if(Array.isArray(o)?[l,s]=o:l=s=o,!(!xe(l)||!xe(s)))return[n-l,n+s]}))}var Dt=e=>{var t=Ut(e),r=Ls(e);return Kc(e,t,r)},xs=$([Dt],e=>e==null?void 0:e.dataKey),vK=$([SE,Ds,Dt],_P),jE=(e,t,r,n)=>{var i={},a=t.reduce((o,l)=>{if(l.stackId==null)return o;var s=o[l.stackId];return s==null&&(s=[]),s.push(l),o[l.stackId]=s,o},i);return Object.fromEntries(Object.entries(a).map(o=>{var[l,s]=o,u=n?[...s].reverse():s,c=u.map(T4);return[l,{stackedData:xF(e,c,r),graphicalItems:u}]}))},hg=$([vK,SE,cm,OP],jE),NE=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(n==null&&r!=="zAxis"){var o=AF(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},gK=$([yr],e=>e.allowDataOverflow),o2=e=>{var t;if(e==null||!("domain"in e))return dg;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=li(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:dg},ME=$([yr],o2),TE=$([ME,gK],mP),yK=$([hg,Dn,Wt,TE],NE,{memoizeOptions:{resultEqualityCheck:vm}}),l2=e=>e.errorBars,xK=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>CE(r,n)),Ud=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),o=Math.min(...a),l=Math.max(...a);return[o,l]}},IE=function(t,r,n,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],l,s;if(n.length>0&&n.forEach(u=>{var c,f=u.data!=null?[...u.data]:o,d=(c=i[u.id])===null||c===void 0?void 0:c.filter(m=>CE(a,m));f.forEach(m=>{var g,v=Ye(m,(g=r.dataKey)!==null&&g!==void 0?g:u.dataKey),x=pK(m,v,d);if(x.length>=2){var y=Math.min(...x),w=Math.max(...x);(l==null||y<l)&&(l=y),(s==null||w>s)&&(s=w)}var S=k6(v);S!=null&&(l=l==null?S[0]:Math.min(l,S[0]),s=s==null?S[1]:Math.max(s,S[1]))})}),(r==null?void 0:r.dataKey)!=null&&n.length===0&&t.forEach(u=>{var c=k6(Ye(u,r.dataKey));c!=null&&(l=l==null?c[0]:Math.min(l,c[0]),s=s==null?c[1]:Math.max(s,c[1]))}),xe(l)&&xe(s))return[l,s]},bK=$([a2,yr,cK,l2,Wt,uU],IE,{memoizeOptions:{resultEqualityCheck:vm}});function wK(e){var{value:t}=e;if(dn(t)||t instanceof Date)return t}var SK=(e,t,r)=>{var n=e.map(wK).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&$k(n))?hP(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},_E=e=>e.referenceElements.dots,Fs=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),kK=$([_E,Wt,mm],Fs),DE=e=>e.referenceElements.areas,AK=$([DE,Wt,mm],Fs),zE=e=>e.referenceElements.lines,PK=$([zE,Wt,mm],Fs),RE=(e,t)=>{if(e!=null){var r=li(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},EK=$(kK,Wt,RE),LE=(e,t)=>{if(e!=null){var r=li(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},OK=$([AK,Wt],LE);function CK(e){var t;if(e.x!=null)return li([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:li(r)}function jK(e){var t;if(e.y!=null)return li([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:li(r)}var $E=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?CK(n):jK(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},NK=$([PK,Wt],$E),MK=$(EK,NK,OK,(e,t,r)=>Ud(e,r,t)),BE=(e,t,r,n,i,a,o,l)=>{if(r!=null)return r;var s=o==="vertical"&&l==="xAxis"||o==="horizontal"&&l==="yAxis",u=s?Ud(n,a,i):Ud(a,i);return fU(t,u,e.allowDataOverflow)},TK=$([yr,ME,TE,yK,bK,MK,Me,Wt],BE,{memoizeOptions:{resultEqualityCheck:vm}}),IK=[0,1],FE=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:l,type:s}=e,u=ra(t,a);if(u&&l==null){var c;return hP(0,(c=r==null?void 0:r.length)!==null&&c!==void 0?c:0)}return s==="category"?SK(n,e,u):i==="expand"&&!u?IK:o}},s2=$([yr,Me,a2,Yc,cm,Wt,TK],FE),Hs=$([yr,xE,E4],pE),HE=(e,t,r)=>{var{niceTicks:n}=t;if(n!=="none"){var i=o2(t),a=Array.isArray(i)&&(i[0]==="auto"||i[1]==="auto");if((n==="snap125"||n==="adaptive")&&t!=null&&t.tickCount&&ei(e)){if(a)return I3(e,t.tickCount,t.allowDecimals,n);if(t.type==="number")return _3(e,t.tickCount,t.allowDecimals,n)}if(n==="auto"&&r==="linear"&&t!=null&&t.tickCount){if(a&&ei(e))return I3(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&ei(e))return _3(e,t.tickCount,t.allowDecimals,"adaptive")}}},u2=$([s2,Kc,Hs],HE),WE=(e,t,r,n)=>{if(n!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&ei(t)&&Array.isArray(r)&&r.length>0){var i,a,o=t[0],l=(i=r[0])!==null&&i!==void 0?i:0,s=t[1],u=(a=r[r.length-1])!==null&&a!==void 0?a:0;return[Math.min(o,l),Math.max(s,u)]}return t},_K=$([yr,s2,u2,Wt],WE),DK=$(Yc,yr,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(li(e.map(f=>f.value))).sort((f,d)=>f-d),i=n[0],a=n[n.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var l=0;l<n.length-1;l++){var s=n[l],u=n[l+1];if(!(s==null||u==null)){var c=u-s;r=Math.min(r,c)}}return r/o}}),UE=$(DK,Me,EP,Ht,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!xe(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=Nn(r,e*a),l=e*a/2;return l-o-(l-o)/a*o}return 0}),zK=(e,t,r)=>{var n=ci(e,t);return n==null||typeof n.padding!="string"?0:UE(e,"xAxis",t,r,n.padding)},RK=(e,t,r)=>{var n=fi(e,t);return n==null||typeof n.padding!="string"?0:UE(e,"yAxis",t,r,n.padding)},LK=$(ci,zK,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),$K=$(fi,RK,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),BK=$([Ht,LK,om,am,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),FK=$([Ht,Me,$K,om,am,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Xc=(e,t,r,n)=>{var i;switch(t){case"xAxis":return BK(e,r,n);case"yAxis":return FK(e,r,n);case"zAxis":return(i=i2(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return MP(e);case"radiusAxis":return TP(e,r);default:return}},qE=$([yr,Xc],fm),HK=$([Hs,_K],PU),c2=$([yr,Hs,HK,qE],n2),VE=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=ra(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(l=>l.value)}},f2=$([Me,Yc,Kc,Wt],VE),bs=$([c2],I4);$([c2],iK);$([c2,mK],vE);$([Bs,l2,Wt],xK);function KE(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Am=(e,t)=>t,Pm=(e,t,r)=>r,WK=$(nm,Am,Pm,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(KE)),UK=$(im,Am,Pm,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(KE)),GE=(e,t)=>({width:e.width,height:t.height}),qK=(e,t)=>{var r=typeof t.width=="number"?t.width:zc;return{width:r,height:e.height}},YE=$(Ht,ci,GE),VK=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},KK=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},GK=$(ia,Ht,WK,Am,Pm,(e,t,r,n,i)=>{var a={},o;return r.forEach(l=>{var s=GE(t,l);o==null&&(o=VK(t,n,e));var u=n==="top"&&!i||n==="bottom"&&i;a[l.id]=o-Number(u)*s.height,o+=(u?-1:1)*s.height}),a}),YK=$(na,Ht,UK,Am,Pm,(e,t,r,n,i)=>{var a={},o;return r.forEach(l=>{var s=qK(t,l);o==null&&(o=KK(t,n,e));var u=n==="left"&&!i||n==="right"&&i;a[l.id]=o-Number(u)*s.width,o+=(u?-1:1)*s.width}),a}),XK=(e,t)=>{var r=ci(e,t);if(r!=null)return GK(e,r.orientation,r.mirror)},ZK=$([Ht,ci,XK,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r==null?void 0:r[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),QK=(e,t)=>{var r=fi(e,t);if(r!=null)return YK(e,r.orientation,r.mirror)},JK=$([Ht,fi,QK,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r==null?void 0:r[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),XE=$(Ht,fi,(e,t)=>{var r=typeof t.width=="number"?t.width:zc;return{width:r,height:e.height}}),A6=(e,t,r)=>{switch(t){case"xAxis":return YE(e,r).width;case"yAxis":return XE(e,r).height;default:return}},ZE=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,l=ra(e,n),s=t.map(c=>c.value),u=s.filter(c=>c!=null);if(o&&l&&a==="category"&&i&&$k(u))return s}},d2=$([Me,Yc,yr,Wt],ZE),P6=$([Me,sK,Hs,bs,d2,f2,Xc,u2,Wt],(e,t,r,n,i,a,o,l,s)=>{if(t!=null){var u=ra(e,s);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:s,categoricalDomain:a,duplicateDomain:i,isCategorical:u,niceTicks:l,range:o,realScaleType:r,scale:n}}}),eG=(e,t,r,n,i,a,o,l,s)=>{if(!(t==null||n==null)){var u=ra(e,s),{type:c,ticks:f,tickCount:d}=t,m=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,g=c==="category"&&n.bandwidth?n.bandwidth()/m:0;g=s==="angleAxis"&&a!=null&&a.length>=2?Ar(a[0]-a[1])*2*g:g;var v=f||i;return v?v.map((x,y)=>{var w=o?o.indexOf(x):x,S=n.map(w);return xe(S)?{index:y,coordinate:S+g,value:x,offset:g}:null}).filter(Pr):u&&l?l.map((x,y)=>{var w=n.map(x);return xe(w)?{coordinate:w+g,value:x,index:y,offset:g}:null}).filter(Pr):n.ticks?n.ticks(d).map((x,y)=>{var w=n.map(x);return xe(w)?{coordinate:w+g,value:x,index:y,offset:g}:null}).filter(Pr):n.domain().map((x,y)=>{var w=n.map(x);return xe(w)?{coordinate:w+g,value:o?o[x]:x,index:y,offset:g}:null}).filter(Pr)}},QE=$([Me,Kc,Hs,bs,u2,Xc,d2,f2,Wt],eG),tG=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var l=ra(e,o),{tickCount:s}=t,u=0;return u=o==="angleAxis"&&(n==null?void 0:n.length)>=2?Ar(n[0]-n[1])*2*u:u,l&&a?a.map((c,f)=>{var d=r.map(c);return xe(d)?{coordinate:d+u,value:c,index:f,offset:u}:null}).filter(Pr):r.ticks?r.ticks(s).map((c,f)=>{var d=r.map(c);return xe(d)?{coordinate:d+u,value:c,index:f,offset:u}:null}).filter(Pr):r.domain().map((c,f)=>{var d=r.map(c);return xe(d)?{coordinate:d+u,value:i?i[c]:c,index:f,offset:u}:null}).filter(Pr)}},si=$([Me,Kc,bs,Xc,d2,f2,Wt],tG),ui=$(yr,bs,(e,t)=>{if(!(e==null||t==null))return Wd(Wd({},e),{},{scale:t})}),rG=$([yr,Hs,s2,qE],n2),nG=$([rG],I4),iG=$((e,t,r)=>i2(e,r),nG,(e,t)=>{if(!(e==null||t==null))return Wd(Wd({},e),{},{scale:t})}),aG=$([Me,nm,im],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),oG=(e,t,r)=>{var n;return(n=e.renderedTicks[t])===null||n===void 0?void 0:n[r]};$([oG],e=>{if(!(!e||e.length===0))return t=>{var r,n=1/0,i=e[0];for(var a of e){var o=Math.abs(a.coordinate-t);o<n&&(n=o,i=a)}return(r=i)===null||r===void 0?void 0:r.value}});var JE=e=>e.options.defaultTooltipEventType,eO=e=>e.options.validateTooltipEventTypes;function tO(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function Zc(e,t){var r=JE(e),n=eO(e);return tO(t,r,n)}function lG(e){return ue(t=>Zc(t,e))}var rO=(e,t)=>{var r,n=Number(t);if(!(ii(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},sG=e=>e.tooltip.settings,wa={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},uG={itemInteraction:{click:wa,hover:wa},axisInteraction:{click:wa,hover:wa},keyboardInteraction:wa,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},nO=sr({name:"tooltip",initialState:uG,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:qe()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=an(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:qe()},removeTooltipEntrySettings:{reducer(e,t){var r=an(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:qe()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:cG,replaceTooltipEntrySettings:fG,removeTooltipEntrySettings:dG,setTooltipSettingsState:hG,setActiveMouseOverItemIndex:iO,mouseLeaveItem:mG,mouseLeaveChart:aO,setActiveClickItemIndex:pG,setMouseOverAxisIndex:oO,setMouseClickAxisIndex:vG,setSyncInteraction:xu,setKeyboardInteraction:qd}=nO.actions,gG=nO.reducer;function E6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function L0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E6(Object(r),!0).forEach(function(n){yG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yG(e,t,r){return(t=xG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xG(e){var t=bG(e,"string");return typeof t=="symbol"?t:t+""}function bG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wG(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function SG(e){return e.index!=null}var lO=(e,t,r,n)=>{if(t==null)return wa;var i=wG(e,t,r);if(i==null)return wa;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(SG(i)){if(a)return L0(L0({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return L0(L0({},wa),{},{coordinate:i.coordinate})};function kG(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function AG(e,t){var r=kG(e),n=t[0],i=t[1];if(r===void 0)return!1;var a=Math.min(n,i),o=Math.max(n,i);return r>=a&&r<=o}function PG(e,t,r){if(r==null||t==null)return!0;var n=Ye(e,t);return n==null||!ei(r)?!0:AG(n,r)}var Tu=(e,t,r,n)=>{var i=e==null?void 0:e.index;if(i==null)return null;var a=Number(i);if(!xe(a))return i;var o=0,l=1/0;t.length>0&&(l=t.length-1);var s=Math.max(o,Math.min(a,l)),u=t[s];return u==null||PG(u,r,n)?String(s):null},sO=(e,t,r,n,i,a,o)=>{if(a!=null){var l=o[0],s=l==null?void 0:l.getPosition(a);if(s!=null)return s;var u=i==null?void 0:i[Number(a)];if(u)switch(r){case"horizontal":return{x:u.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:u.coordinate}}}},uO=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(r==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&(n!=null||e.keyboardInteraction.active)){var a=e.tooltipItemPayloads[0];return a!=null?[a]:[]}return e.tooltipItemPayloads.filter(o=>{var l;return((l=o.settings)===null||l===void 0?void 0:l.graphicalItemId)===i})},cO=e=>e.options.tooltipPayloadSearcher,Ws=e=>e.tooltip;function O6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function C6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O6(Object(r),!0).forEach(function(n){EG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EG(e,t,r){return(t=OG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OG(e){var t=CG(e,"string");return typeof t=="symbol"?t:t+""}function CG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jG(e){if(typeof e=="string"||typeof e=="number")return e}function NG(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e}function MG(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e=="function")return t=>e(t)}function j6(e){if(typeof e=="string")return e}function TG(e){if(!(e==null||typeof e!="object")){var t="name"in e?jG(e.name):void 0,r="unit"in e?NG(e.unit):void 0,n="dataKey"in e?MG(e.dataKey):void 0,i="payload"in e?e.payload:void 0,a="color"in e?j6(e.color):void 0,o="fill"in e?j6(e.fill):void 0;return{name:t,unit:r,dataKey:n,payload:i,color:a,fill:o}}}function IG(e,t){return e??t}var fO=(e,t,r,n,i,a,o)=>{if(!(t==null||a==null)){var{chartData:l,computedData:s,dataStartIndex:u,dataEndIndex:c}=r,f=[];return e.reduce((d,m)=>{var g,{dataDefinedOnItem:v,settings:x}=m,y=IG(v,l),w=Array.isArray(y)?zA(y,u,c):y,S=(g=x==null?void 0:x.dataKey)!==null&&g!==void 0?g:n,A=x==null?void 0:x.nameKey,P;if(n&&Array.isArray(w)&&!Array.isArray(w[0])&&o==="axis"?P=Bk(w,n,i):P=a(w,t,s,A),Array.isArray(P))P.forEach(j=>{var N,_,z=TG(j),R=z==null?void 0:z.name,I=z==null?void 0:z.dataKey,F=z==null?void 0:z.payload,H=C6(C6({},x),{},{name:R,unit:z==null?void 0:z.unit,color:(N=z==null?void 0:z.color)!==null&&N!==void 0?N:x==null?void 0:x.color,fill:(_=z==null?void 0:z.fill)!==null&&_!==void 0?_:x==null?void 0:x.fill});d.push(I5({tooltipEntrySettings:H,dataKey:I,payload:F,value:Ye(F,I),name:R==null?void 0:String(R)}))});else{var O;d.push(I5({tooltipEntrySettings:x,dataKey:S,payload:P,value:Ye(P,S),name:(O=Ye(P,A))!==null&&O!==void 0?O:x==null?void 0:x.name}))}return d},f)}},h2=$([Dt,xE,E4],pE),_G=$([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),DG=$([Ut,Ls],bE),il=$([_G,Dt,DG],wE,{memoizeOptions:{resultEqualityCheck:gm}}),zG=$([il],e=>e.filter(pm)),dO=$([il],AE,{memoizeOptions:{resultEqualityCheck:gm}}),RG=$([il],e=>e.some(t=>!t.data)),Vo=$([dO,Dn],EE),LG=$([zG,Dn,Dt],_P),m2=$([Vo,Dt,il,Dn,RG,dO],OE),hO=$([Dt],o2),$G=$([Dt],e=>e.allowDataOverflow),mO=$([hO,$G],mP),BG=$([il],e=>e.filter(pm)),FG=$([LG,BG,cm,OP],jE),HG=$([FG,Dn,Ut,mO],NE),WG=$([il],kE),UG=$([Vo,Dt,WG,l2,Ut,cU],IE,{memoizeOptions:{resultEqualityCheck:vm}}),qG=$([_E,Ut,Ls],Fs),VG=$([qG,Ut],RE),KG=$([DE,Ut,Ls],Fs),GG=$([KG,Ut],LE),YG=$([zE,Ut,Ls],Fs),XG=$([YG,Ut],$E),ZG=$([VG,XG,GG],Ud),QG=$([Dt,hO,mO,HG,UG,ZG,Me,Ut],BE),ws=$([Dt,Me,Vo,m2,cm,Ut,QG],FE),JG=$([ws,Dt,h2],HE),eY=$([Dt,ws,JG,Ut],WE),pO=e=>{var t=Ut(e),r=Ls(e),n=!1;return Xc(e,t,r,n)},vO=$([Dt,pO],fm),tY=$([Dt,h2,eY,vO],n2),gO=$([tY],I4),rY=$([Me,m2,Dt,Ut],ZE),nY=$([Me,m2,Dt,Ut],VE),iY=(e,t,r,n,i,a,o,l)=>{if(t){var{type:s}=t,u=ra(e,l);if(n){var c=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=s==="category"&&n.bandwidth?n.bandwidth()/c:0;return f=l==="angleAxis"&&i!=null&&(i==null?void 0:i.length)>=2?Ar(i[0]-i[1])*2*f:f,u&&o?o.map((d,m)=>{var g=n.map(d);return xe(g)?{coordinate:g+f,value:d,index:m,offset:f}:null}).filter(Pr):n.domain().map((d,m)=>{var g=n.map(d);return xe(g)?{coordinate:g+f,value:a?a[d]:d,index:m,offset:f}:null}).filter(Pr)}}},oa=$([Me,Dt,h2,gO,pO,rY,nY,Ut],iY),p2=$([JE,eO,sG],(e,t,r)=>tO(r.shared,e,t)),yO=e=>e.tooltip.settings.trigger,v2=e=>e.tooltip.settings.defaultIndex,Qc=$([Ws,p2,yO,v2],lO),Wa=$([Qc,Vo,xs,ws],Tu),xO=$([oa,Wa],rO),bO=$([Qc],e=>{if(e)return e.dataKey}),aY=$([Qc],e=>{if(e)return e.graphicalItemId}),wO=$([Ws,p2,yO,v2],uO),oY=$([na,ia,Me,Ht,oa,v2,wO],sO),lY=$([Qc,oY],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),sY=$([Qc],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),uY=$([wO,Wa,Dn,xs,xO,cO,p2],fO),cY=$([uY],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function N6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function M6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N6(Object(r),!0).forEach(function(n){fY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fY(e,t,r){return(t=dY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dY(e){var t=hY(e,"string");return typeof t=="symbol"?t:t+""}function hY(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mY=()=>ue(Dt),pY=()=>{var e=mY(),t=ue(oa),r=ue(gO);return ms(!e||!r?void 0:M6(M6({},e),{},{scale:r}),t)};function T6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T6(Object(r),!0).forEach(function(n){vY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vY(e,t,r){return(t=gY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gY(e){var t=yY(e,"string");return typeof t=="symbol"?t:t+""}function yY(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xY=(e,t,r,n)=>{var i=t.find(a=>a&&a.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.relativeY};if(e==="vertical")return{x:n.relativeX,y:i.coordinate}}return{x:0,y:0}},bY=(e,t,r,n)=>{var i=t.find(u=>u&&u.index===r);if(i){if(e==="centric"){var a=i.coordinate,{radius:o}=n;return hl(hl(hl({},n),Yt(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var l=i.coordinate,{angle:s}=n;return hl(hl(hl({},n),Yt(n.cx,n.cy,l,s)),{},{angle:s,radius:l})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function wY(e,t){var{relativeX:r,relativeY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var SO=(e,t,r,n,i)=>{var a,o=(a=t==null?void 0:t.length)!==null&&a!==void 0?a:0;if(o<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l<o;l++){var s,u,c,f,d,m=l>0?(s=r[l-1])===null||s===void 0?void 0:s.coordinate:(u=r[o-1])===null||u===void 0?void 0:u.coordinate,g=(c=r[l])===null||c===void 0?void 0:c.coordinate,v=l>=o-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(d=r[l+1])===null||d===void 0?void 0:d.coordinate,x=void 0;if(!(m==null||g==null||v==null))if(Ar(g-m)!==Ar(v-g)){var y=[];if(Ar(v-g)===Ar(i[1]-i[0])){x=v;var w=g+i[1]-i[0];y[0]=Math.min(w,(w+m)/2),y[1]=Math.max(w,(w+m)/2)}else{x=m;var S=v+i[1]-i[0];y[0]=Math.min(g,(S+g)/2),y[1]=Math.max(g,(S+g)/2)}var A=[Math.min(g,(x+g)/2),Math.max(g,(x+g)/2)];if(e>A[0]&&e<=A[1]||e>=y[0]&&e<=y[1]){var P;return(P=r[l])===null||P===void 0?void 0:P.index}}else{var O=Math.min(m,v),j=Math.max(m,v);if(e>(O+g)/2&&e<=(j+g)/2){var N;return(N=r[l])===null||N===void 0?void 0:N.index}}}else if(t)for(var _=0;_<o;_++){var z=t[_];if(z!=null){var R=t[_+1],I=t[_-1];if(_===0&&R!=null&&e<=(z.coordinate+R.coordinate)/2||_===o-1&&I!=null&&e>(z.coordinate+I.coordinate)/2||_>0&&_<o-1&&I!=null&&R!=null&&e>(z.coordinate+I.coordinate)/2&&e<=(z.coordinate+R.coordinate)/2)return z.index}}return-1},SY=()=>ue(E4),g2=(e,t)=>t,kO=(e,t,r)=>r,y2=(e,t,r,n)=>n,kY=$(oa,e=>Gh(e,t=>t.coordinate)),x2=$([Ws,g2,kO,y2],lO),b2=$([x2,Vo,xs,ws],Tu),AY=(e,t,r)=>{if(t!=null){var n=Ws(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},AO=$([Ws,g2,kO,y2],uO),Vd=$([na,ia,Me,Ht,oa,y2,AO],sO),PY=$([x2,Vd],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),PO=$([oa,b2],rO),EY=$([AO,b2,Dn,xs,PO,cO,g2],fO),OY=$([x2,b2],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),CY=(e,t,r,n,i,a,o)=>{if(!(!e||!r||!n||!i)&&wY(e,o)){var l=PF(e,t),s=SO(l,a,i,r,n),u=xY(t,i,s,e);return{activeIndex:String(s),activeCoordinate:u}}},jY=(e,t,r,n,i,a,o)=>{if(!(!e||!n||!i||!a||!r)){var l=rU(e,r);if(l){var s=EF(l,t),u=SO(s,o,a,n,i),c=bY(t,a,u,l);return{activeIndex:String(u),activeCoordinate:c}}}},NY=(e,t,r,n,i,a,o,l)=>{if(!(!e||!t||!n||!i||!a))return t==="horizontal"||t==="vertical"?CY(e,t,n,i,a,o,l):jY(e,t,r,n,i,a,o)},MY=$(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),TY=$(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(gt)),r=Array.from(new Set(t));return r.sort((n,i)=>n-i)},{memoizeOptions:{resultEqualityCheck:AU}});function I6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I6(Object(r),!0).forEach(function(n){IY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IY(e,t,r){return(t=_Y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _Y(e){var t=DY(e,"string");return typeof t=="symbol"?t:t+""}function DY(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zY={},RY={zIndexMap:Object.values(gt).reduce((e,t)=>_6(_6({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),zY)},LY=new Set(Object.values(gt));function $Y(e){return LY.has(e)}var EO=sr({name:"zIndex",initialState:RY,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:qe()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!$Y(r)&&delete e.zIndexMap[r])},prepare:qe()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:i?void 0:n,panoramaElement:i?n:void 0}},prepare:qe()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:qe()}}}),{registerZIndexPortal:BY,unregisterZIndexPortal:Gp,registerZIndexPortalElement:FY,unregisterZIndexPortalElement:HY}=EO.actions,WY=EO.reducer;function xr(e){var{zIndex:t,children:r}=e,n=eH(),i=n&&t!==void 0&&t!==0,a=It(),o=p.useRef(void 0),l=p.useRef(new Set),s=Xe(),u=ue(f=>MY(f,t,a));if(p.useLayoutEffect(()=>{if(!i){var f=l.current;f.forEach(m=>{s(Gp({zIndex:m}))}),f.clear(),o.current=void 0;return}if(l.current.has(t)||(s(BY({zIndex:t})),l.current.add(t)),u){o.current=u;var d=l.current;d.forEach(m=>{m!==t&&(s(Gp({zIndex:m})),d.delete(m))})}},[s,t,i,u]),p.useLayoutEffect(()=>{var f=l.current;return()=>{f.forEach(d=>{s(Gp({zIndex:d}))}),f.clear()}},[s]),!i)return r;var c=u??o.current;return c?Es.createPortal(r,c):null}function mg(){return mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mg.apply(null,arguments)}function D6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D6(Object(r),!0).forEach(function(n){UY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UY(e,t,r){return(t=qY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qY(e){var t=VY(e,"string");return typeof t=="symbol"?t:t+""}function VY(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KY(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return p.isValidElement(t)?p.cloneElement(t,n):p.createElement(r,n)}function GY(e){var t,{coordinate:r,payload:n,index:i,offset:a,tooltipAxisBandSize:o,layout:l,cursor:s,tooltipEventType:u,chartName:c}=e,f=r,d=n,m=i;if(!s||!f||c!=="ScatterChart"&&u!=="axis")return null;var g,v,x;if(c==="ScatterChart")g=f,v=vW,x=gt.cursorLine;else if(c==="BarChart")g=gW(l,f,a,o),v=uP,x=gt.cursorRectangle;else if(l==="radial"&&Hk(f)){var{cx:y,cy:w,radius:S,startAngle:A,endAngle:P}=cP(f);g={cx:y,cy:w,startAngle:A,endAngle:P,innerRadius:S,outerRadius:S},v=dP,x=gt.cursorLine}else g={points:oU(l,f,a)},v=w4,x=gt.cursorLine;var O=typeof s=="object"&&"className"in s?s.className:void 0,j=$0($0($0($0({stroke:"#ccc",pointerEvents:"none"},a),g),Ms(s)),{},{payload:d,payloadIndex:m,className:Oe("recharts-tooltip-cursor",O)});return p.createElement(xr,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:x},p.createElement(KY,{cursor:s,cursorComp:v,cursorProps:j}))}function YY(e){var t=pY(),r=qA(),n=tl(),i=SY();return t==null||r==null||n==null||i==null?null:p.createElement(GY,mg({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var OO=p.createContext(null),XY=()=>p.useContext(OO),CO={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,u,c){this.fn=s,this.context=u,this.once=c||!1}function a(s,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var m=new i(c,f||s,d),g=r?r+u:u;return s._events[g]?s._events[g].fn?s._events[g]=[s._events[g],m]:s._events[g].push(m):(s._events[g]=m,s._eventsCount++),s}function o(s,u){--s._eventsCount===0?s._events=new n:delete s._events[u]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},l.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,m=f.length,g=new Array(m);d<m;d++)g[d]=f[d].fn;return g},l.prototype.listenerCount=function(u){var c=r?r+u:u,f=this._events[c];return f?f.fn?1:f.length:0},l.prototype.emit=function(u,c,f,d,m,g){var v=r?r+u:u;if(!this._events[v])return!1;var x=this._events[v],y=arguments.length,w,S;if(x.fn){switch(x.once&&this.removeListener(u,x.fn,void 0,!0),y){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,c),!0;case 3:return x.fn.call(x.context,c,f),!0;case 4:return x.fn.call(x.context,c,f,d),!0;case 5:return x.fn.call(x.context,c,f,d,m),!0;case 6:return x.fn.call(x.context,c,f,d,m,g),!0}for(S=1,w=new Array(y-1);S<y;S++)w[S-1]=arguments[S];x.fn.apply(x.context,w)}else{var A=x.length,P;for(S=0;S<A;S++)switch(x[S].once&&this.removeListener(u,x[S].fn,void 0,!0),y){case 1:x[S].fn.call(x[S].context);break;case 2:x[S].fn.call(x[S].context,c);break;case 3:x[S].fn.call(x[S].context,c,f);break;case 4:x[S].fn.call(x[S].context,c,f,d);break;default:if(!w)for(P=1,w=new Array(y-1);P<y;P++)w[P-1]=arguments[P];x[S].fn.apply(x[S].context,w)}}return!0},l.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},l.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},l.prototype.removeListener=function(u,c,f,d){var m=r?r+u:u;if(!this._events[m])return this;if(!c)return o(this,m),this;var g=this._events[m];if(g.fn)g.fn===c&&(!d||g.once)&&(!f||g.context===f)&&o(this,m);else{for(var v=0,x=[],y=g.length;v<y;v++)(g[v].fn!==c||d&&!g[v].once||f&&g[v].context!==f)&&x.push(g[v]);x.length?this._events[m]=x.length===1?x[0]:x:o(this,m)}return this},l.prototype.removeAllListeners=function(u){var c;return u?(c=r?r+u:u,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l})(CO);var ZY=CO.exports;const QY=Bg(ZY);var yc=new QY,pg="recharts.syncEvent.tooltip",z6="recharts.syncEvent.brush",jO=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!ii(r))return e[r]}},JY={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},NO=sr({name:"options",initialState:JY,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),eX=NO.reducer,{createEventEmitter:tX}=NO.actions;function rX(e){return e.tooltip.syncInteraction}var nX={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},MO=sr({name:"chartData",initialState:nX,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:R6,setDataStartEndIndexes:iX,setComputedData:Tse}=MO.actions,aX=MO.reducer,oX=["x","y"];function L6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ml(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L6(Object(r),!0).forEach(function(n){lX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lX(e,t,r){return(t=sX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sX(e){var t=uX(e,"string");return typeof t=="symbol"?t:t+""}function uX(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cX(e,t){if(e==null)return{};var r,n,i=fX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function fX(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function dX(){var e=ue(O4),t=ue(C4),r=Xe(),n=ue(CP),i=ue(oa),a=tl(),o=Is(),l=ue(s=>s.rootProps.className);p.useEffect(()=>{if(e==null)return el;var s=(u,c,f)=>{if(t!==f&&e===u){if(c.payload.active===!1){r(xu({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(n==="index"){var d;if(o&&c!==null&&c!==void 0&&(d=c.payload)!==null&&d!==void 0&&d.coordinate&&c.payload.sourceViewBox){var m=c.payload.coordinate,{x:g,y:v}=m,x=cX(m,oX),{x:y,y:w,width:S,height:A}=c.payload.sourceViewBox,P=ml(ml({},x),{},{x:o.x+(S?(g-y)/S:0)*o.width,y:o.y+(A?(v-w)/A:0)*o.height});r(ml(ml({},c),{},{payload:ml(ml({},c.payload),{},{coordinate:P})}))}else r(c);return}if(i!=null){var O;if(typeof n=="function"){var j={activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate},N=n(i,j);O=i[N]}else n==="value"&&(O=i.find(X=>String(X.value)===c.payload.label));var{coordinate:_}=c.payload;if(_==null||o==null){r(xu({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(O==null){r(xu({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:void 0}));return}var{x:z,y:R}=_,I=Math.min(z,o.x+o.width),F=Math.min(R,o.y+o.height),H={x:a==="horizontal"?O.coordinate:I,y:a==="horizontal"?F:O.coordinate},Z=xu({active:c.payload.active,coordinate:H,dataKey:c.payload.dataKey,index:String(O.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId});r(Z)}}};return yc.on(pg,s),()=>{yc.off(pg,s)}},[l,r,t,e,n,i,a,o])}function hX(){var e=ue(O4),t=ue(C4),r=Xe();p.useEffect(()=>{if(e==null)return el;var n=(i,a,o)=>{t!==o&&e===i&&r(iX(a))};return yc.on(z6,n),()=>{yc.off(z6,n)}},[r,t,e])}function mX(){var e=Xe();p.useEffect(()=>{e(tX())},[e]),dX(),hX()}function pX(e,t,r,n,i,a){var o=ue(g=>AY(g,e,t)),l=ue(aY),s=ue(C4),u=ue(O4),c=ue(CP),f=ue(rX),d=(f==null?void 0:f.sourceViewBox)!=null,m=Is();p.useEffect(()=>{if(!d&&u!=null&&s!=null){var g=xu({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:m,graphicalItemId:l});yc.emit(pg,u,g,s)}},[d,r,o,l,i,n,s,u,c,a,m])}function $6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function B6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$6(Object(r),!0).forEach(function(n){vX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vX(e,t,r){return(t=gX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gX(e){var t=yX(e,"string");return typeof t=="symbol"?t:t+""}function yX(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xX(e){return e.dataKey}function bX(e,t){return p.isValidElement(e)?p.cloneElement(e,t):typeof e=="function"?p.createElement(e,t):p.createElement(qH,t)}var F6=[],wX={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function TO(e){var t,r,n=Tt(e,wX),{active:i,allowEscapeViewBox:a,animationDuration:o,animationEasing:l,content:s,filterNull:u,isAnimationActive:c,offset:f,payloadUniqBy:d,position:m,reverseDirection:g,useTranslate3d:v,wrapperStyle:x,cursor:y,shared:w,trigger:S,defaultIndex:A,portal:P,axisId:O}=n,j=Xe(),N=typeof A=="number"?String(A):A;p.useEffect(()=>{j(hG({shared:w,trigger:S,axisId:O,active:i,defaultIndex:N}))},[j,w,S,O,i,N]);var _=Is(),z=iP(),R=lG(w),{activeIndex:I,isActive:F}=(t=ue(Ze=>OY(Ze,R,S,N)))!==null&&t!==void 0?t:{},H=ue(Ze=>EY(Ze,R,S,N)),Z=ue(Ze=>PO(Ze,R,S,N)),X=ue(Ze=>PY(Ze,R,S,N)),re=H,B=XY(),W=(r=i??F)!==null&&r!==void 0?r:!1,[K,le]=sB([re,W]),fe=R==="axis"?Z:void 0;pX(R,S,X,fe,I,W);var He=P??B;if(He==null||_==null||R==null)return null;var Ie=re??F6;W||(Ie=F6),u&&Ie.length&&(Ie=b$(Ie.filter(Ze=>Ze.value!=null&&(Ze.hide!==!0||n.includeHidden)),d,xX));var lt=Ie.length>0,zt=B6(B6({},n),{},{payload:Ie,label:fe,active:W,activeIndex:I,coordinate:X,accessibilityLayer:z}),xt=p.createElement(rW,{allowEscapeViewBox:a,animationDuration:o,animationEasing:l,isAnimationActive:c,active:W,coordinate:X,hasPayload:lt,offset:f,position:m,reverseDirection:g,useTranslate3d:v,viewBox:_,wrapperStyle:x,lastBoundingBox:K,innerRef:le,hasPortalFromProps:!!P},bX(s,zt));return p.createElement(p.Fragment,null,Es.createPortal(xt,He),W&&p.createElement(YY,{cursor:y,tooltipEventType:R,coordinate:X,payload:Ie,index:I}))}var w2=e=>null;w2.displayName="Cell";function SX(e,t,r){return(t=kX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kX(e){var t=AX(e,"string");return typeof t=="symbol"?t:t+""}function AX(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class PX{constructor(t){SX(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function H6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function EX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H6(Object(r),!0).forEach(function(n){OX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OX(e,t,r){return(t=CX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CX(e){var t=jX(e,"string");return typeof t=="symbol"?t:t+""}function jX(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NX={cacheSize:2e3,enableCache:!0},IO=EX({},NX),W6=new PX(IO.cacheSize),MX={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},U6="recharts_measurement_span";function TX(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",o=t.letterSpacing||"",l=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(o,"|").concat(l)}var q6=(e,t)=>{try{var r=document.getElementById(U6);r||(r=document.createElement("span"),r.setAttribute("id",U6),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,MX,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Iu=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Bc.isSsr)return{width:0,height:0};if(!IO.enableCache)return q6(t,r);var n=TX(t,r),i=W6.get(n);if(i)return i;var a=q6(t,r);return W6.set(n,a),a},_O;function IX(e,t,r){return(t=_X(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _X(e){var t=DX(e,"string");return typeof t=="symbol"?t:t+""}function DX(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var V6=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,K6=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zX=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,RX=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,LX={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},$X=["cm","mm","pt","pc","in","Q","px"];function BX(e){return $X.includes(e)}var Rl="NaN";function FX(e,t){return e*LX[t]}class Gt{static parse(t){var r,[,n,i]=(r=RX.exec(t))!==null&&r!==void 0?r:[];return n==null?Gt.NaN:new Gt(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,ii(t)&&(this.unit=""),r!==""&&!zX.test(r)&&(this.num=NaN,this.unit=""),BX(r)&&(this.num=FX(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new Gt(NaN,""):new Gt(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Gt(NaN,""):new Gt(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Gt(NaN,""):new Gt(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Gt(NaN,""):new Gt(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return ii(this.num)}}_O=Gt;IX(Gt,"NaN",new _O(NaN,""));function DO(e){if(e==null||e.includes(Rl))return Rl;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=V6.exec(t))!==null&&r!==void 0?r:[],o=Gt.parse(n??""),l=Gt.parse(a??""),s=i==="*"?o.multiply(l):o.divide(l);if(s.isNaN())return Rl;t=t.replace(V6,s.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,[,c,f,d]=(u=K6.exec(t))!==null&&u!==void 0?u:[],m=Gt.parse(c??""),g=Gt.parse(d??""),v=f==="+"?m.add(g):m.subtract(g);if(v.isNaN())return Rl;t=t.replace(K6,v.toString())}return t}var G6=/\(([^()]*)\)/;function HX(e){for(var t=e,r;(r=G6.exec(t))!=null;){var[,n]=r;t=t.replace(G6,DO(n))}return t}function WX(e){var t=e.replace(/\s+/g,"");return t=HX(t),t=DO(t),t}function UX(e){try{return WX(e)}catch{return Rl}}function Yp(e){var t=UX(e.slice(5,-1));return t===Rl?"":t}var qX=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],VX=["dx","dy","angle","className","breakAll"];function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vg.apply(null,arguments)}function Y6(e,t){if(e==null)return{};var r,n,i=KX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function KX(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var zO=/[ \f\n\r\t\v\u2028\u2029]+/,RO=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];je(t)||(r?i=t.toString().split(""):i=t.toString().split(zO));var a=i.map(l=>({word:l,width:Iu(l,n).width})),o=r?0:Iu(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}};function LO(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function GX(e){return je(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var $O=(e,t,r,n)=>e.reduce((i,a)=>{var{word:o,width:l}=a,s=i[i.length-1];if(s&&l!=null&&(t==null||n||s.width+l+r<Number(t)))s.words.push(o),s.width+=l+r;else{var u={words:[o],width:l};i.push(u)}return i},[]),BO=e=>e.reduce((t,r)=>t.width>r.width?t:r),YX="…",X6=(e,t,r,n,i,a,o,l)=>{var s=e.slice(0,t),u=RO({breakAll:r,style:n,children:s+YX});if(!u)return[!1,[]];var c=$O(u.wordsWithComputedWidth,a,o,l),f=c.length>i||BO(c).width>Number(a);return[f,c]},XX=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:l,breakAll:s}=e,u=se(a),c=String(o),f=$O(t,n,r,i);if(!u||i)return f;var d=f.length>a||BO(f).width>Number(n);if(!d)return f;for(var m=0,g=c.length-1,v=0,x;m<=g&&v<=c.length-1;){var y=Math.floor((m+g)/2),w=y-1,[S,A]=X6(c,w,s,l,a,n,r,i),[P]=X6(c,y,s,l,a,n,r,i);if(!S&&!P&&(m=y+1),S&&P&&(g=y-1),!S&&P){x=A;break}v++}return x||f},Z6=e=>{var t=je(e)?[]:e.toString().split(zO);return[{words:t,width:void 0}]},ZX=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!Bc.isSsr){var l,s,u=RO({breakAll:a,children:n,style:i});if(u){var{wordsWithComputedWidth:c,spaceWidth:f}=u;l=c,s=f}else return Z6(n);return XX({breakAll:a,children:n,maxLines:o,style:i},l,s,t,!!r)}return Z6(n)},FO="#808080",QX={angle:0,breakAll:!1,capHeight:"0.71em",fill:FO,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},S2=p.forwardRef((e,t)=>{var r=Tt(e,QX),{x:n,y:i,lineHeight:a,capHeight:o,fill:l,scaleToFit:s,textAnchor:u,verticalAnchor:c}=r,f=Y6(r,qX),d=p.useMemo(()=>ZX({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:s,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,s,f.style,f.width]),{dx:m,dy:g,angle:v,className:x,breakAll:y}=f,w=Y6(f,VX);if(!dn(n)||!dn(i)||d.length===0)return null;var S=Number(n)+(se(m)?m:0),A=Number(i)+(se(g)?g:0);if(!xe(S)||!xe(A))return null;var P;switch(c){case"start":P=Yp("calc(".concat(o,")"));break;case"middle":P=Yp("calc(".concat((d.length-1)/2," * -").concat(a," + (").concat(o," / 2))"));break;default:P=Yp("calc(".concat(d.length-1," * -").concat(a,")"));break}var O=[],j=d[0];if(s&&j!=null){var N=j.width,{width:_}=f;O.push("scale(".concat(se(_)&&se(N)?_/N:1,")"))}return v&&O.push("rotate(".concat(v,", ").concat(S,", ").concat(A,")")),O.length&&(w.transform=O.join(" ")),p.createElement("text",vg({},or(w),{ref:t,x:S,y:A,className:Oe("recharts-text",x),textAnchor:u,fill:l.includes("url")?FO:l}),d.map((z,R)=>{var I=z.words.join(y?"":" ");return p.createElement("tspan",{x:S,dy:R===0?P:a,key:"".concat(I,"-").concat(R)},I)}))});S2.displayName="Text";function Q6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q6(Object(r),!0).forEach(function(n){JX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JX(e,t,r){return(t=eZ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eZ(e){var t=tZ(e,"string");return typeof t=="symbol"?t:t+""}function tZ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rZ=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:a,y:o,height:l,upperWidth:s,lowerWidth:u}=y4(t),c=a,f=a+(s-u)/2,d=(c+f)/2,m=(s+u)/2,g=c+s/2,v=l>=0?1:-1,x=v*n,y=v>0?"end":"start",w=v>0?"start":"end",S=s>=0?1:-1,A=S*n,P=S>0?"end":"start",O=S>0?"start":"end",j=i;if(r==="top"){var N={x:c+s/2,y:o-x,horizontalAnchor:"middle",verticalAnchor:y};return j&&(N.height=Math.max(o-j.y,0),N.width=s),N}if(r==="bottom"){var _={x:f+u/2,y:o+l+x,horizontalAnchor:"middle",verticalAnchor:w};return j&&(_.height=Math.max(j.y+j.height-(o+l),0),_.width=u),_}if(r==="left"){var z={x:d-A,y:o+l/2,horizontalAnchor:P,verticalAnchor:"middle"};return j&&(z.width=Math.max(z.x-j.x,0),z.height=l),z}if(r==="right"){var R={x:d+m+A,y:o+l/2,horizontalAnchor:O,verticalAnchor:"middle"};return j&&(R.width=Math.max(j.x+j.width-R.x,0),R.height=l),R}var I=j?{width:m,height:l}:{};return r==="insideLeft"?Bn({x:d+A,y:o+l/2,horizontalAnchor:O,verticalAnchor:"middle"},I):r==="insideRight"?Bn({x:d+m-A,y:o+l/2,horizontalAnchor:P,verticalAnchor:"middle"},I):r==="insideTop"?Bn({x:c+s/2,y:o+x,horizontalAnchor:"middle",verticalAnchor:w},I):r==="insideBottom"?Bn({x:f+u/2,y:o+l-x,horizontalAnchor:"middle",verticalAnchor:y},I):r==="insideTopLeft"?Bn({x:c+A,y:o+x,horizontalAnchor:O,verticalAnchor:w},I):r==="insideTopRight"?Bn({x:c+s-A,y:o+x,horizontalAnchor:P,verticalAnchor:w},I):r==="insideBottomLeft"?Bn({x:f+A,y:o+l-x,horizontalAnchor:O,verticalAnchor:y},I):r==="insideBottomRight"?Bn({x:f+u-A,y:o+l-x,horizontalAnchor:P,verticalAnchor:y},I):r&&typeof r=="object"&&(se(r.x)||Fo(r.x))&&(se(r.y)||Fo(r.y))?Bn({x:a+Nn(r.x,m),y:o+Nn(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},I):Bn({x:g,y:o+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},I)},nZ=["labelRef"],iZ=["content"];function J6(e,t){if(e==null)return{};var r,n,i=aZ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function aZ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function e7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e7(Object(r),!0).forEach(function(n){oZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oZ(e,t,r){return(t=lZ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lZ(e){var t=sZ(e,"string");return typeof t=="symbol"?t:t+""}function sZ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oi.apply(null,arguments)}var HO=p.createContext(null),WO=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o,children:l}=e,s=p.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o}),[t,r,n,i,a,o]);return p.createElement(HO.Provider,{value:s},l)},UO=()=>{var e=p.useContext(HO),t=Is();return e||(t?y4(t):void 0)},uZ=p.createContext(null),cZ=()=>{var e=p.useContext(uZ),t=ue(IP);return e||t},fZ=e=>{var{value:t,formatter:r}=e,n=je(e.children)?t:e.children;return typeof r=="function"?r(n):n},k2=e=>e!=null&&typeof e=="function",dZ=(e,t)=>{var r=Ar(t-e),n=Math.min(Math.abs(t-e),360);return r*n},hZ=(e,t,r,n,i)=>{var{offset:a,className:o}=e,{cx:l,cy:s,innerRadius:u,outerRadius:c,startAngle:f,endAngle:d,clockWise:m}=i,g=(u+c)/2,v=dZ(f,d),x=v>=0?1:-1,y,w;switch(t){case"insideStart":y=f+x*a,w=m;break;case"insideEnd":y=d-x*a,w=!m;break;case"end":y=d+x*a,w=m;break;default:throw new Error("Unsupported position ".concat(t))}w=v<=0?w:!w;var S=Yt(l,s,g,y),A=Yt(l,s,g,y+(w?1:-1)*359),P="M".concat(S.x,",").concat(S.y,`
|
|
95
|
+
A`).concat(g,",").concat(g,",0,1,").concat(w?0:1,`,
|
|
96
|
+
`).concat(A.x,",").concat(A.y),O=je(e.id)?ac("recharts-radial-line-"):e.id;return p.createElement("text",Oi({},n,{dominantBaseline:"central",className:Oe("recharts-radial-bar-label",o)}),p.createElement("defs",null,p.createElement("path",{id:O,d:P})),p.createElement("textPath",{xlinkHref:"#".concat(O)},r))},mZ=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:l,endAngle:s}=e,u=(l+s)/2;if(r==="outside"){var{x:c,y:f}=Yt(n,i,o+t,u);return{x:c,y:f,textAnchor:c>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=(a+o)/2,{x:m,y:g}=Yt(n,i,d,u);return{x:m,y:g,textAnchor:"middle",verticalAnchor:"middle"}},wf=e=>e!=null&&"cx"in e&&se(e.cx),pZ={angle:0,offset:5,zIndex:gt.label,position:"middle",textBreakAll:!1};function vZ(e){if(!wf(e))return e;var{cx:t,cy:r,outerRadius:n}=e,i=n*2;return{x:t-n,y:r-n,width:i,upperWidth:i,lowerWidth:i,height:i}}function ya(e){var t=Tt(e,pZ),{viewBox:r,parentViewBox:n,position:i,value:a,children:o,content:l,className:s="",textBreakAll:u,labelRef:c}=t,f=cZ(),d=UO(),m=i==="center"?d:f??d,g,v,x;r==null?g=m:wf(r)?g=r:g=y4(r);var y=vZ(g);if(!g||je(a)&&je(o)&&!p.isValidElement(l)&&typeof l!="function")return null;var w=bu(bu({},t),{},{viewBox:g});if(p.isValidElement(l)){var{labelRef:S}=w,A=J6(w,nZ);return p.cloneElement(l,A)}if(typeof l=="function"){var{content:P}=w,O=J6(w,iZ);if(v=p.createElement(l,O),p.isValidElement(v))return v}else v=fZ(t);var j=or(t);if(wf(g)){if(i==="insideStart"||i==="insideEnd"||i==="end")return hZ(t,i,v,j,g);x=mZ(g,t.offset,t.position)}else{if(!y)return null;var N=rZ({viewBox:y,position:i,offset:t.offset,parentViewBox:wf(n)?void 0:n});x=bu(bu({x:N.x,y:N.y,textAnchor:N.horizontalAnchor,verticalAnchor:N.verticalAnchor},N.width!==void 0?{width:N.width}:{}),N.height!==void 0?{height:N.height}:{})}return p.createElement(xr,{zIndex:t.zIndex},p.createElement(S2,Oi({ref:c,className:Oe("recharts-label",s)},j,x,{textAnchor:LO(j.textAnchor)?j.textAnchor:x.textAnchor,breakAll:u}),v))}ya.displayName="Label";var gZ=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?p.createElement(ya,Oi({key:"label-implicit"},n)):dn(e)?p.createElement(ya,Oi({key:"label-implicit",value:e},n)):p.isValidElement(e)?e.type===ya?p.cloneElement(e,bu({key:"label-implicit"},n)):p.createElement(ya,Oi({key:"label-implicit",content:e},n)):k2(e)?p.createElement(ya,Oi({key:"label-implicit",content:e},n)):e&&typeof e=="object"?p.createElement(ya,Oi({},e,{key:"label-implicit"},n)):null};function qO(e){var{label:t,labelRef:r}=e,n=UO();return gZ(t,n,r)||null}var yZ=["valueAccessor"],xZ=["dataKey","clockWise","id","textBreakAll","zIndex"];function Kd(){return Kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kd.apply(null,arguments)}function t7(e,t){if(e==null)return{};var r,n,i=bZ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function bZ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var wZ=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(GX(t))return t},VO=p.createContext(void 0),A2=VO.Provider,KO=p.createContext(void 0);KO.Provider;function SZ(){return p.useContext(VO)}function kZ(){return p.useContext(KO)}function Sf(e){var{valueAccessor:t=wZ}=e,r=t7(e,yZ),{dataKey:n,clockWise:i,id:a,textBreakAll:o,zIndex:l}=r,s=t7(r,xZ),u=SZ(),c=kZ(),f=u||c;return!f||!f.length?null:p.createElement(xr,{zIndex:l??gt.label},p.createElement(Nt,{className:"recharts-label-list"},f.map((d,m)=>{var g,v=je(n)?t(d,m):Ye(d.payload,n),x=je(a)?{}:{id:"".concat(a,"-").concat(m)};return p.createElement(ya,Kd({key:"label-".concat(m)},or(d),s,x,{fill:(g=r.fill)!==null&&g!==void 0?g:d.fill,parentViewBox:d.parentViewBox,value:v,textBreakAll:o,viewBox:d.viewBox,index:m,zIndex:0}))})))}Sf.displayName="LabelList";function P2(e){var{label:t}=e;return t?t===!0?p.createElement(Sf,{key:"labelList-implicit"}):p.isValidElement(t)||k2(t)?p.createElement(Sf,{key:"labelList-implicit",content:t}):typeof t=="object"?p.createElement(Sf,Kd({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function gg(){return gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gg.apply(null,arguments)}var GO=e=>{var{cx:t,cy:r,r:n,className:i}=e,a=Oe("recharts-dot",i);return se(t)&&se(r)&&se(n)?p.createElement("circle",gg({},qr(e),l4(e),{className:a,cx:t,cy:r,r:n})):null},AZ={radiusAxis:{},angleAxis:{}},YO=sr({name:"polarAxis",initialState:AZ,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Ise,removeRadiusAxis:_se,addAngleAxis:Dse,removeAngleAxis:zse}=YO.actions,PZ=YO.reducer;function EZ(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var XO={exports:{}},Te={};/**
|
|
97
|
+
* @license React
|
|
98
|
+
* react-is.production.min.js
|
|
99
|
+
*
|
|
100
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the MIT license found in the
|
|
103
|
+
* LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/var E2=Symbol.for("react.element"),O2=Symbol.for("react.portal"),Em=Symbol.for("react.fragment"),Om=Symbol.for("react.strict_mode"),Cm=Symbol.for("react.profiler"),jm=Symbol.for("react.provider"),Nm=Symbol.for("react.context"),OZ=Symbol.for("react.server_context"),Mm=Symbol.for("react.forward_ref"),Tm=Symbol.for("react.suspense"),Im=Symbol.for("react.suspense_list"),_m=Symbol.for("react.memo"),Dm=Symbol.for("react.lazy"),CZ=Symbol.for("react.offscreen"),ZO;ZO=Symbol.for("react.module.reference");function yn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case E2:switch(e=e.type,e){case Em:case Cm:case Om:case Tm:case Im:return e;default:switch(e=e&&e.$$typeof,e){case OZ:case Nm:case Mm:case Dm:case _m:case jm:return e;default:return t}}case O2:return t}}}Te.ContextConsumer=Nm;Te.ContextProvider=jm;Te.Element=E2;Te.ForwardRef=Mm;Te.Fragment=Em;Te.Lazy=Dm;Te.Memo=_m;Te.Portal=O2;Te.Profiler=Cm;Te.StrictMode=Om;Te.Suspense=Tm;Te.SuspenseList=Im;Te.isAsyncMode=function(){return!1};Te.isConcurrentMode=function(){return!1};Te.isContextConsumer=function(e){return yn(e)===Nm};Te.isContextProvider=function(e){return yn(e)===jm};Te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===E2};Te.isForwardRef=function(e){return yn(e)===Mm};Te.isFragment=function(e){return yn(e)===Em};Te.isLazy=function(e){return yn(e)===Dm};Te.isMemo=function(e){return yn(e)===_m};Te.isPortal=function(e){return yn(e)===O2};Te.isProfiler=function(e){return yn(e)===Cm};Te.isStrictMode=function(e){return yn(e)===Om};Te.isSuspense=function(e){return yn(e)===Tm};Te.isSuspenseList=function(e){return yn(e)===Im};Te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Em||e===Cm||e===Om||e===Tm||e===Im||e===CZ||typeof e=="object"&&e!==null&&(e.$$typeof===Dm||e.$$typeof===_m||e.$$typeof===jm||e.$$typeof===Nm||e.$$typeof===Mm||e.$$typeof===ZO||e.getModuleId!==void 0)};Te.typeOf=yn;XO.exports=Te;var jZ=XO.exports,r7=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",n7=null,Xp=null,QO=e=>{if(e===n7&&Array.isArray(Xp))return Xp;var t=[];return p.Children.forEach(e,r=>{je(r)||(jZ.isFragment(r)?t=t.concat(QO(r.props.children)):t.push(r))}),Xp=t,n7=e,t};function JO(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>r7(i)):n=[r7(t)],QO(e).forEach(i=>{var a=Vi(i,"type.displayName")||Vi(i,"type.name");a&&n.indexOf(a)!==-1&&r.push(i)}),r}var eC=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0;function NZ(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){var t;const n=e[Symbol.toStringTag];return n==null||!(!((t=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))===null||t===void 0)&&t.writable)?!1:e.toString()===`[object ${n}]`}let r=e;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}var i7,a7,o7,l7,s7;function u7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function c7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u7(Object(r),!0).forEach(function(n){MZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MZ(e,t,r){return(t=TZ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TZ(e){var t=IZ(e,"string");return typeof t=="symbol"?t:t+""}function IZ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gd(){return Gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gd.apply(null,arguments)}function cu(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var f7=(e,t,r,n,i)=>{var a=r-n,o;return o=ft(i7||(i7=cu(["M ",",",""])),e,t),o+=ft(a7||(a7=cu(["L ",",",""])),e+r,t),o+=ft(o7||(o7=cu(["L ",",",""])),e+r-a/2,t+i),o+=ft(l7||(l7=cu(["L ",",",""])),e+r-a/2-n,t+i),o+=ft(s7||(s7=cu(["L ",","," Z"])),e,t),o},_Z={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},DZ=e=>{var t=Tt(e,_Z),{x:r,y:n,upperWidth:i,lowerWidth:a,height:o,className:l}=t,{animationEasing:s,animationDuration:u,animationBegin:c,isUpdateAnimationActive:f}=t,d=p.useRef(null),[m,g]=p.useState(-1),v=p.useRef(i),x=p.useRef(a),y=p.useRef(o),w=p.useRef(r),S=p.useRef(n),A=Hc(e,"trapezoid-");if(p.useEffect(()=>{if(d.current&&d.current.getTotalLength)try{var H=d.current.getTotalLength();H&&g(H)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var P=Oe("recharts-trapezoid",l);if(!f)return p.createElement("g",null,p.createElement("path",Gd({},or(t),{className:P,d:f7(r,n,i,a,o)})));var O=v.current,j=x.current,N=y.current,_=w.current,z=S.current,R="0px ".concat(m===-1?1:m,"px"),I="".concat(m,"px ").concat(m,"px"),F=aP(["strokeDasharray"],u,s);return p.createElement(Fc,{animationId:A,key:A,canBegin:m>0,duration:u,easing:s,isActive:f,begin:c},H=>{var Z=Le(O,i,H),X=Le(j,a,H),re=Le(N,o,H),B=Le(_,r,H),W=Le(z,n,H);d.current&&(v.current=Z,x.current=X,y.current=re,w.current=B,S.current=W);var K=H>0?{transition:F,strokeDasharray:I}:{strokeDasharray:R};return p.createElement("path",Gd({},or(t),{className:P,d:f7(B,W,Z,X,re),ref:d,style:c7(c7({},K),t.style)}))})},zZ=["option","shapeType","activeClassName","inActiveClassName"];function RZ(e,t){if(e==null)return{};var r,n,i=LZ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function LZ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function d7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d7(Object(r),!0).forEach(function(n){$Z(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $Z(e,t,r){return(t=BZ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BZ(e){var t=FZ(e,"string");return typeof t=="symbol"?t:t+""}function FZ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HZ(e,t){return Yd(Yd({},t),e)}function WZ(e,t){return e==="symbols"}function h7(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return p.createElement(uP,r);case"trapezoid":return p.createElement(DZ,r);case"sector":return p.createElement(dP,r);case"symbols":if(WZ(t))return p.createElement(o4,r);break;case"curve":return p.createElement(w4,r);default:return null}}function UZ(e){return p.isValidElement(e)?e.props:e}function Xd(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape",inActiveClassName:i="recharts-shape"}=e,a=RZ(e,zZ),o;if(p.isValidElement(t))o=p.cloneElement(t,Yd(Yd({},a),UZ(t)));else if(typeof t=="function")o=t(a,a.index);else if(NZ(t)&&typeof t!="boolean"){var l=HZ(t,a);o=p.createElement(h7,{shapeType:r,elementProps:l})}else{var s=a;o=p.createElement(h7,{shapeType:r,elementProps:s})}return a.isActive?p.createElement(Nt,{className:n},o):p.createElement(Nt,{className:i},o)}var C2=(e,t,r)=>{var n=Xe();return(i,a)=>o=>{e==null||e(i,a,o),n(iO({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},j2=e=>{var t=Xe();return(r,n)=>i=>{e==null||e(r,n,i),t(mG())}},N2=(e,t,r)=>{var n=Xe();return(i,a)=>o=>{e==null||e(i,a,o),n(pG({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};function M2(e){var{tooltipEntrySettings:t}=e,r=Xe(),n=It(),i=p.useRef(null);return p.useLayoutEffect(()=>{n||(i.current===null?r(cG(t)):i.current!==t&&r(fG({prev:i.current,next:t})),i.current=t)},[t,r,n]),p.useLayoutEffect(()=>()=>{i.current&&(r(dG(i.current)),i.current=null)},[r]),null}function T2(e){var{legendPayload:t}=e,r=Xe(),n=It(),i=p.useRef(null);return p.useLayoutEffect(()=>{n||(i.current===null?r(hH(t)):i.current!==t&&r(mH({prev:i.current,next:t})),i.current=t)},[r,n,t]),p.useLayoutEffect(()=>()=>{i.current&&(r(pH(i.current)),i.current=null)},[r]),null}var Zp,qZ=()=>{var[e]=p.useState(()=>ac("uid-"));return e},VZ=(Zp=qg.useId)!==null&&Zp!==void 0?Zp:qZ;function KZ(e,t){var r=VZ();return t||(e?"".concat(e,"-").concat(r):r)}var GZ=p.createContext(void 0),I2=e=>{var{id:t,type:r,children:n}=e,i=KZ("recharts-".concat(r),t);return p.createElement(GZ.Provider,{value:i},n(i))},YZ={cartesianItems:[],polarItems:[]},tC=sr({name:"graphicalItems",initialState:YZ,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:qe()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=an(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:qe()},removeCartesianGraphicalItem:{reducer(e,t){var r=an(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:qe()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:qe()},removePolarGraphicalItem:{reducer(e,t){var r=an(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:qe()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=an(e).polarItems.indexOf(r);i>-1&&(e.polarItems[i]=n)},prepare:qe()}}}),{addCartesianGraphicalItem:XZ,replaceCartesianGraphicalItem:ZZ,removeCartesianGraphicalItem:QZ,addPolarGraphicalItem:Rse,removePolarGraphicalItem:Lse,replacePolarGraphicalItem:$se}=tC.actions,JZ=tC.reducer,eQ=e=>{var t=Xe(),r=p.useRef(null);return p.useLayoutEffect(()=>{r.current===null?t(XZ(e)):r.current!==e&&t(ZZ({prev:r.current,next:e})),r.current=e},[t,e]),p.useLayoutEffect(()=>()=>{r.current&&(t(QZ(r.current)),r.current=null)},[t]),null},_2=p.memo(eQ),tQ=["points"];function m7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m7(Object(r),!0).forEach(function(n){rQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rQ(e,t,r){return(t=nQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nQ(e){var t=iQ(e,"string");return typeof t=="symbol"?t:t+""}function iQ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zd(){return Zd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zd.apply(null,arguments)}function aQ(e,t){if(e==null)return{};var r,n,i=oQ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function oQ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function lQ(e){var{option:t,dotProps:r,className:n}=e;if(p.isValidElement(t))return p.cloneElement(t,r);if(typeof t=="function")return t(r);var i=Oe(n,typeof t!="boolean"?t.className:""),a=r??{},{points:o}=a,l=aQ(a,tQ);return p.createElement(GO,Zd({},l,{className:i}))}function sQ(e,t){return e==null?!1:t?!0:e.length===1}function uQ(e){var{points:t,dot:r,className:n,dotClassName:i,dataKey:a,baseProps:o,needClip:l,clipPathId:s,zIndex:u=gt.scatter}=e;if(!sQ(t,r))return null;var c=eC(r),f=PR(r),d=t.map((g,v)=>{var x,y,w=Qp(Qp(Qp({r:3},o),f),{},{index:v,cx:(x=g.x)!==null&&x!==void 0?x:void 0,cy:(y=g.y)!==null&&y!==void 0?y:void 0,dataKey:a,value:g.value,payload:g.payload,points:t});return p.createElement(lQ,{key:"dot-".concat(v),option:r,dotProps:w,className:i})}),m={};return l&&s!=null&&(m.clipPath="url(#clipPath-".concat(c?"":"dots-").concat(s,")")),p.createElement(xr,{zIndex:u},p.createElement(Nt,Zd({className:n},m),d))}function p7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function v7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p7(Object(r),!0).forEach(function(n){cQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cQ(e,t,r){return(t=fQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fQ(e){var t=dQ(e,"string");return typeof t=="symbol"?t:t+""}function dQ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rC=0,hQ={xAxis:{},yAxis:{},zAxis:{}},nC=sr({name:"cartesianAxis",initialState:hQ,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:qe()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.xAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:qe()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:qe()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:qe()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.yAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:qe()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:qe()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:qe()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.zAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:qe()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:qe()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var a,o=i.widthHistory||[];if(o.length===3&&o[0]===o[2]&&n===o[1]&&n!==i.width&&Math.abs(n-((a=o[0])!==null&&a!==void 0?a:0))<=1)return;var l=[...o,n].slice(-3);e.yAxis[r]=v7(v7({},i),{},{width:n,widthHistory:l})}}}}),{addXAxis:mQ,replaceXAxis:pQ,removeXAxis:vQ,addYAxis:gQ,replaceYAxis:yQ,removeYAxis:xQ,addZAxis:bQ,replaceZAxis:wQ,removeZAxis:SQ,updateYAxisWidth:kQ}=nC.actions,AQ=nC.reducer,PQ=$([Ht],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),EQ=$([PQ,na,ia],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),D2=()=>ue(EQ),OQ=()=>ue(cY);function g7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g7(Object(r),!0).forEach(function(n){CQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CQ(e,t,r){return(t=jQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jQ(e){var t=NQ(e,"string");return typeof t=="symbol"?t:t+""}function NQ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var MQ=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:a,clipPath:o}=e;if(i===!1||t.x==null||t.y==null)return null;var l={index:r,dataKey:a,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},s=Jp(Jp(Jp({},l),Ms(i)),l4(i)),u;return p.isValidElement(i)?u=p.cloneElement(i,s):typeof i=="function"?u=i(s):u=p.createElement(GO,s),p.createElement(Nt,{className:"recharts-active-dot",clipPath:o},u)};function TQ(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i,clipPath:a,zIndex:o=gt.activeDot}=e,l=ue(Wa),s=OQ();if(t==null||s==null)return null;var u=t.find(c=>s.includes(c.payload));return je(u)?null:p.createElement(xr,{zIndex:o},p.createElement(MQ,{point:u,childIndex:Number(l),mainColor:r,dataKey:i,activeDot:n,clipPath:a}))}var y7=(e,t,r)=>{var n=r??e;if(!je(n))return Nn(n,t,0)},IQ=(e,t,r)=>{var n={},i=e.filter(pm),a=e.filter(u=>u.stackId==null),o=i.reduce((u,c)=>{var f=u[c.stackId];return f==null&&(f=[]),f.push(c),u[c.stackId]=f,u},n),l=Object.entries(o).map(u=>{var c,[f,d]=u,m=d.map(v=>v.dataKey),g=y7(t,r,(c=d[0])===null||c===void 0?void 0:c.barSize);return{stackId:f,dataKeys:m,barSize:g}}),s=a.map(u=>{var c=[u.dataKey].filter(d=>d!=null),f=y7(t,r,u.barSize);return{stackId:void 0,dataKeys:c,barSize:f}});return[...l,...s]};function x7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function B0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x7(Object(r),!0).forEach(function(n){_Q(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _Q(e,t,r){return(t=DQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DQ(e){var t=zQ(e,"string");return typeof t=="symbol"?t:t+""}function zQ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RQ(e,t,r,n,i){var a,o=n.length;if(!(o<1)){var l=Nn(e,r,0,!0),s,u=[];if(xe((a=n[0])===null||a===void 0?void 0:a.barSize)){var c=!1,f=r/o,d=n.reduce((w,S)=>w+(S.barSize||0),0);d+=(o-1)*l,d>=r&&(d-=(o-1)*l,l=0),d>=r&&f>0&&(c=!0,f*=.9,d=o*f);var m=(r-d)/2>>0,g={offset:m-l,size:0};s=n.reduce((w,S)=>{var A,P={stackId:S.stackId,dataKeys:S.dataKeys,position:{offset:g.offset+g.size+l,size:c?f:(A=S.barSize)!==null&&A!==void 0?A:0}},O=[...w,P];return g=P.position,O},u)}else{var v=Nn(t,r,0,!0);r-2*v-(o-1)*l<=0&&(l=0);var x=(r-2*v-(o-1)*l)/o;x>1&&(x>>=0);var y=xe(i)?Math.min(x,i):x;s=n.reduce((w,S,A)=>[...w,{stackId:S.stackId,dataKeys:S.dataKeys,position:{offset:v+(x+l)*A+(x-y)/2,size:y}}],u)}return s}}var LQ=(e,t,r,n,i,a,o)=>{var l=je(o)?t:o,s=RQ(r,n,i!==a?i:a,e,l);return i!==a&&s!=null&&(s=s.map(u=>B0(B0({},u),{},{position:B0(B0({},u.position),{},{offset:u.position.offset-i/2})}))),s},$Q=(e,t)=>{var r=T4(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var i=e[n];if(i){var{stackedData:a}=i;if(a)return a.find(o=>o.key===r)}}}},BQ=(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}};function FQ(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&xe(e.zIndex)?e.zIndex:t}var HQ=e=>{var{chartData:t}=e,r=Xe(),n=It();return p.useEffect(()=>n?()=>{}:(r(R6(t)),()=>{r(R6(void 0))}),[t,r,n]),null},b7={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},iC=sr({name:"brush",initialState:b7,reducers:{setBrushSettings(e,t){return t.payload==null?b7:t.payload}}}),{setBrushSettings:Bse}=iC.actions,WQ=iC.reducer,UQ=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return{x:Math.min(r,i),y:Math.min(n,a),width:Math.abs(i-r),height:Math.abs(a-n)}},qQ=e=>{var{x1:t,y1:r,x2:n,y2:i}=e;return UQ({x:t,y:r},{x:n,y:i})};function VQ(e){return(e%180+180)%180}var KQ=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=VQ(i),o=a*Math.PI/180,l=Math.atan(n/r),s=o>l&&o<Math.PI-l?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},GQ={dots:[],areas:[],lines:[]},aC=sr({name:"referenceElements",initialState:GQ,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=an(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=an(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=an(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:Fse,removeDot:Hse,addArea:Wse,removeArea:Use,addLine:YQ,removeLine:XQ}=aC.actions,ZQ=aC.reducer,oC=p.createContext(void 0),QQ=e=>{var{children:t}=e,[r]=p.useState("".concat(ac("recharts"),"-clip")),n=D2();if(n==null)return null;var{x:i,y:a,width:o,height:l}=n;return p.createElement(oC.Provider,{value:r},p.createElement("defs",null,p.createElement("clipPath",{id:r},p.createElement("rect",{x:i,y:a,height:l,width:o}))),t)},JQ=()=>p.useContext(oC);class eJ{constructor(t){var{x:r,y:n}=t;this.xAxisScale=r,this.yAxisScale=n}map(t,r){var n,i,{position:a}=r;return{x:(n=this.xAxisScale.map(t.x,{position:a}))!==null&&n!==void 0?n:0,y:(i=this.yAxisScale.map(t.y,{position:a}))!==null&&i!==void 0?i:0}}mapWithFallback(t,r){var n,i,{position:a,fallback:o}=r,l,s;return o==="rangeMin"?l=this.yAxisScale.rangeMin():o==="rangeMax"?l=this.yAxisScale.rangeMax():l=0,o==="rangeMin"?s=this.xAxisScale.rangeMin():o==="rangeMax"?s=this.xAxisScale.rangeMax():s=0,{x:(n=this.xAxisScale.map(t.x,{position:a}))!==null&&n!==void 0?n:s,y:(i=this.yAxisScale.map(t.y,{position:a}))!==null&&i!==void 0?i:l}}isInRange(t){var{x:r,y:n}=t,i=r==null||this.xAxisScale.isInRange(r),a=n==null||this.yAxisScale.isInRange(n);return i&&a}}function w7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function S7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w7(Object(r),!0).forEach(function(n){tJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tJ(e,t,r){return(t=rJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rJ(e){var t=nJ(e,"string");return typeof t=="symbol"?t:t+""}function nJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qd(){return Qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qd.apply(null,arguments)}var iJ=(e,t)=>{var r;if(p.isValidElement(e))r=p.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{if(!xe(t.x1)||!xe(t.y1)||!xe(t.x2)||!xe(t.y2))return null;r=p.createElement("line",Qd({},t,{className:"recharts-reference-line-line"}))}return r},aJ=(e,t,r,n,i,a)=>{var{x:o,width:l}=a,s=i.map(e,{position:r});if(!xe(s)||t==="discard"&&!i.isInRange(s))return null;var u=[{x:o+l,y:s},{x:o,y:s}];return n==="left"?u.reverse():u},oJ=(e,t,r,n,i,a)=>{var{y:o,height:l}=a,s=i.map(e,{position:r});if(!xe(s)||t==="discard"&&!i.isInRange(s))return null;var u=[{x:s,y:o+l},{x:s,y:o}];return n==="top"?u.reverse():u},lJ=(e,t,r,n)=>{var i=[n.mapWithFallback(e[0],{position:r,fallback:"rangeMin"}),n.mapWithFallback(e[1],{position:r,fallback:"rangeMax"})];return t==="discard"&&i.some(a=>!n.isInRange(a))?null:i},sJ=(e,t,r,n,i,a,o)=>{var{x:l,y:s,segment:u,ifOverflow:c}=o,f=dn(l),d=dn(s);return d?aJ(s,c,n,a,t,r):f?oJ(l,c,n,i,e,r):u!=null&&u.length===2?lJ(u,c,n,new eJ({x:e,y:t})):null};function uJ(e){var t=Xe();return p.useEffect(()=>(t(YQ(e)),()=>{t(XQ(e))})),null}function cJ(e){var{xAxisId:t,yAxisId:r,shape:n,className:i,ifOverflow:a}=e,o=It(),l=JQ(),s=ue(j=>ci(j,t)),u=ue(j=>fi(j,r)),c=ue(j=>bs(j,"xAxis",t,o)),f=ue(j=>bs(j,"yAxis",r,o)),d=Is();if(!l||!d||s==null||u==null||c==null||f==null)return null;var m=sJ(c,f,d,e.position,s.orientation,u.orientation,e);if(!m)return null;var g=m[0],v=m[1];if(g==null||v==null)return null;var{x,y}=g,{x:w,y:S}=v,A=a==="hidden"?"url(#".concat(l,")"):void 0,P=S7(S7({clipPath:A},or(e)),{},{x1:x,y1:y,x2:w,y2:S}),O=qQ({x1:x,y1:y,x2:w,y2:S});return p.createElement(xr,{zIndex:e.zIndex},p.createElement(Nt,{className:Oe("recharts-reference-line",i)},iJ(n,P),p.createElement(WO,Qd({},O,{lowerWidth:O.width,upperWidth:O.width}),p.createElement(qO,{label:e.label}),e.children)))}var fJ={ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",label:!1,stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle",zIndex:gt.line};function Jd(e){var t=Tt(e,fJ);return p.createElement(p.Fragment,null,p.createElement(uJ,{yAxisId:t.yAxisId,xAxisId:t.xAxisId,ifOverflow:t.ifOverflow,x:t.x,y:t.y,segment:t.segment}),p.createElement(cJ,t))}Jd.displayName="ReferenceLine";function lC(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;n<e.length;n+=t){var i=e[n];i!==void 0&&r.push(i)}return r}function dJ(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return KQ(n,r)}function hJ(e,t,r){var n=r==="width",{x:i,y:a,width:o,height:l}=e;return t===1?{start:n?i:a,end:n?i+o:a+l}:{start:n?i+o:a+l,end:n?i:a}}function xc(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function mJ(e,t){return lC(e,t+1)}function pJ(e,t,r,n,i){for(var a=(n||[]).slice(),{start:o,end:l}=t,s=0,u=1,c=o,f=function(){var g=n==null?void 0:n[s];if(g===void 0)return{v:lC(n,u)};var v=s,x,y=()=>(x===void 0&&(x=r(g,v)),x),w=g.coordinate,S=s===0||xc(e,w,y,c,l);S||(s=0,c=o,u+=1),S&&(c=w+e*(y()/2+i),s+=u)},d;u<=a.length;)if(d=f(),d)return d.v;return[]}function vJ(e,t,r,n,i){var a=(n||[]).slice(),o=a.length;if(o===0)return[];for(var{start:l,end:s}=t,u=1;u<=o;u++){for(var c=(o-1)%u,f=l,d=!0,m=function(){var A=n[v];if(A==null)return 0;var P=v,O,j=()=>(O===void 0&&(O=r(A,P)),O),N=A.coordinate,_=v===c||xc(e,N,j,f,s);if(!_)return d=!1,1;_&&(f=N+e*(j()/2+i))},g,v=c;v<o&&(g=m(),!(g!==0&&g===1));v+=u);if(d){for(var x=[],y=c;y<o;y+=u){var w=n[y];w!=null&&x.push(w)}return x}}return[]}function k7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function er(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k7(Object(r),!0).forEach(function(n){gJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gJ(e,t,r){return(t=yJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yJ(e){var t=xJ(e,"string");return typeof t=="symbol"?t:t+""}function xJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bJ(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,{start:l}=t,{end:s}=t,u=function(d){var m=a[d];if(m==null)return 1;var g=m,v,x=()=>(v===void 0&&(v=r(m,d)),v);if(d===o-1){var y=e*(g.coordinate+e*x()/2-s);a[d]=g=er(er({},g),{},{tickCoord:y>0?g.coordinate-y*e:g.coordinate})}else a[d]=g=er(er({},g),{},{tickCoord:g.coordinate});if(g.tickCoord!=null){var w=xc(e,g.tickCoord,x,l,s);w&&(s=g.tickCoord-e*(x()/2+i),a[d]=er(er({},g),{},{isShow:!0}))}},c=o-1;c>=0;c--)u(c);return a}function wJ(e,t,r,n,i,a){var o=(n||[]).slice(),l=o.length,{start:s,end:u}=t;if(a){var c=n[l-1];if(c!=null){var f=r(c,l-1),d=e*(c.coordinate+e*f/2-u);if(o[l-1]=c=er(er({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate}),c.tickCoord!=null){var m=xc(e,c.tickCoord,()=>f,s,u);m&&(u=c.tickCoord-e*(f/2+i),o[l-1]=er(er({},c),{},{isShow:!0}))}}}for(var g=a?l-1:l,v=function(w){var S=o[w];if(S==null)return 1;var A=S,P,O=()=>(P===void 0&&(P=r(S,w)),P);if(w===0){var j=e*(A.coordinate-e*O()/2-s);o[w]=A=er(er({},A),{},{tickCoord:j<0?A.coordinate-j*e:A.coordinate})}else o[w]=A=er(er({},A),{},{tickCoord:A.coordinate});if(A.tickCoord!=null){var N=xc(e,A.tickCoord,O,s,u);N&&(s=A.tickCoord+e*(O()/2+i),o[w]=er(er({},A),{},{isShow:!0}))}},x=0;x<g;x++)v(x);return o}function z2(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:o,orientation:l,interval:s,tickFormatter:u,unit:c,angle:f}=e;if(!i||!i.length||!n)return[];if(se(s)||Bc.isSsr){var d;return(d=mJ(i,se(s)?s:0))!==null&&d!==void 0?d:[]}var m=[],g=l==="top"||l==="bottom"?"width":"height",v=c&&g==="width"?Iu(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},x=(P,O)=>{var j=typeof u=="function"?u(P.value,O):P.value;return g==="width"?dJ(Iu(j,{fontSize:t,letterSpacing:r}),v,f):Iu(j,{fontSize:t,letterSpacing:r})[g]},y=i[0],w=i[1],S=i.length>=2&&y!=null&&w!=null?Ar(w.coordinate-y.coordinate):1,A=hJ(a,S,g);return s==="equidistantPreserveStart"?pJ(S,A,x,i,o):s==="equidistantPreserveEnd"?vJ(S,A,x,i,o):(s==="preserveStart"||s==="preserveStartEnd"?m=wJ(S,A,x,i,o,s==="preserveStartEnd"):m=bJ(S,A,x,i,o),m.filter(P=>P.isShow))}var SJ=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){Array.from(t).forEach(c=>{if(c){var f=c.getBoundingClientRect();f.width>o&&(o=f.width)}});var l=r?r.getBoundingClientRect().width:0,s=i+a,u=o+s+l+(r?n:0);return Math.round(u)}return 0},kJ={xAxis:{},yAxis:{}},sC=sr({name:"renderedTicks",initialState:kJ,reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:n,ticks:i}=t.payload;e[r][n]=i},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:n}=t.payload;delete e[r][n]}}}),{setRenderedTicks:AJ,removeRenderedTicks:PJ}=sC.actions,EJ=sC.reducer,OJ=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function CJ(e,t){if(e==null)return{};var r,n,i=jJ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function jJ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ko.apply(null,arguments)}function A7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A7(Object(r),!0).forEach(function(n){NJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NJ(e,t,r){return(t=MJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MJ(e){var t=TJ(e,"string");return typeof t=="symbol"?t:t+""}function TJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ri={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:gt.axis};function IJ(e){var{x:t,y:r,width:n,height:i,orientation:a,mirror:o,axisLine:l,otherSvgProps:s}=e;if(!l)return null;var u=ct(ct(ct({},s),qr(l)),{},{fill:"none"});if(a==="top"||a==="bottom"){var c=+(a==="top"&&!o||a==="bottom"&&o);u=ct(ct({},u),{},{x1:t,y1:r+c*i,x2:t+n,y2:r+c*i})}else{var f=+(a==="left"&&!o||a==="right"&&o);u=ct(ct({},u),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return p.createElement("line",Ko({},u,{className:Oe("recharts-cartesian-axis-line",Vi(l,"className"))}))}function _J(e,t,r,n,i,a,o,l,s){var u,c,f,d,m,g,v=l?-1:1,x=e.tickSize||o,y=se(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":u=c=e.coordinate,d=r+ +!l*i,f=d-v*x,g=f-v*s,m=y;break;case"left":f=d=e.coordinate,c=t+ +!l*n,u=c-v*x,m=u-v*s,g=y;break;case"right":f=d=e.coordinate,c=t+ +l*n,u=c+v*x,m=u+v*s,g=y;break;default:u=c=e.coordinate,d=r+ +l*i,f=d+v*x,g=f+v*s,m=y;break}return{line:{x1:u,y1:f,x2:c,y2:d},tick:{x:m,y:g}}}function DJ(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function zJ(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function RJ(e){var{option:t,tickProps:r,value:n}=e,i,a=Oe(r.className,"recharts-cartesian-axis-tick-value");if(p.isValidElement(t))i=p.cloneElement(t,ct(ct({},r),{},{className:a}));else if(typeof t=="function")i=t(ct(ct({},r),{},{className:a}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=Oe(o,EZ(t))),i=p.createElement(S2,Ko({},r,{className:o}),n)}return i}function LJ(e){var{ticks:t,axisType:r,axisId:n}=e,i=Xe();return p.useEffect(()=>{if(n==null||r==null)return el;var a=t.map(o=>({value:o.value,coordinate:o.coordinate,offset:o.offset,index:o.index}));return i(AJ({ticks:a,axisId:n,axisType:r})),()=>{i(PJ({axisId:n,axisType:r}))}},[i,t,n,r]),null}var $J=p.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:i,stroke:a,tickFormatter:o,unit:l,padding:s,tickTextProps:u,orientation:c,mirror:f,x:d,y:m,width:g,height:v,tickSize:x,tickMargin:y,fontSize:w,letterSpacing:S,getTicksConfig:A,events:P,axisType:O,axisId:j}=e,N=z2(ct(ct({},A),{},{ticks:r}),w,S),_=qr(A),z=Ms(n),R=LO(_.textAnchor)?_.textAnchor:DJ(c,f),I=zJ(c,f),F={};typeof i=="object"&&(F=i);var H=ct(ct({},_),{},{fill:"none"},F),Z=N.map(B=>ct({entry:B},_J(B,d,m,g,v,c,x,f,y))),X=Z.map(B=>{var{entry:W,line:K}=B;return p.createElement(Nt,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(W.value,"-").concat(W.coordinate,"-").concat(W.tickCoord)},i&&p.createElement("line",Ko({},H,K,{className:Oe("recharts-cartesian-axis-tick-line",Vi(i,"className"))})))}),re=Z.map((B,W)=>{var K,le,{entry:fe,tick:He}=B,Ie=ct(ct(ct(ct({verticalAnchor:I},_),{},{textAnchor:R,stroke:"none",fill:a},He),{},{index:W,payload:fe,visibleTicksCount:N.length,tickFormatter:o,padding:s},u),{},{angle:(K=(le=u==null?void 0:u.angle)!==null&&le!==void 0?le:_.angle)!==null&&K!==void 0?K:0}),lt=ct(ct({},Ie),z);return p.createElement(Nt,Ko({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(fe.value,"-").concat(fe.coordinate,"-").concat(fe.tickCoord)},Vh(P,fe,W)),n&&p.createElement(RJ,{option:n,tickProps:lt,value:"".concat(typeof o=="function"?o(fe.value,W):fe.value).concat(l||"")}))});return p.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(O,"-ticks")},p.createElement(LJ,{ticks:N,axisId:j,axisType:O}),re.length>0&&p.createElement(xr,{zIndex:gt.label},p.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(O,"-tick-labels"),ref:t},re)),X.length>0&&p.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(O,"-tick-lines")},X))}),BJ=p.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:o,ticks:l,axisType:s,axisId:u}=e,c=CJ(e,OJ),[f,d]=p.useState(""),[m,g]=p.useState(""),v=p.useRef(null);p.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var y;return SJ({ticks:v.current,label:(y=e.labelRef)===null||y===void 0?void 0:y.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var x=p.useCallback(y=>{if(y){var w=y.getElementsByClassName("recharts-cartesian-axis-tick-value");v.current=w;var S=w[0];if(S){var A=window.getComputedStyle(S),P=A.fontSize,O=A.letterSpacing;(P!==f||O!==m)&&(d(P),g(O))}}},[f,m]);return o||n!=null&&n<=0||i!=null&&i<=0?null:p.createElement(xr,{zIndex:e.zIndex},p.createElement(Nt,{className:Oe("recharts-cartesian-axis",a)},p.createElement(IJ,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:qr(e)}),p.createElement($J,{ref:x,axisType:s,events:c,fontSize:f,getTicksConfig:e,height:e.height,letterSpacing:m,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:l,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:u}),p.createElement(WO,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},p.createElement(qO,{label:e.label,labelRef:e.labelRef}),e.children)))}),R2=p.forwardRef((e,t)=>{var r=Tt(e,Ri);return p.createElement(BJ,Ko({},r,{ref:t}))});R2.displayName="CartesianAxis";var FJ=["x1","y1","x2","y2","key"],HJ=["offset"],WJ=["xAxisId","yAxisId"],UJ=["xAxisId","yAxisId"];function P7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P7(Object(r),!0).forEach(function(n){qJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qJ(e,t,r){return(t=VJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VJ(e){var t=KJ(e,"string");return typeof t=="symbol"?t:t+""}function KJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wo.apply(null,arguments)}function eh(e,t){if(e==null)return{};var r,n,i=GJ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function GJ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var YJ=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:a,height:o,ry:l}=e;return p.createElement("rect",{x:n,y:i,ry:l,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function uC(e){var{option:t,lineItemProps:r}=e,n;if(p.isValidElement(t))n=p.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var i,{x1:a,y1:o,x2:l,y2:s,key:u}=r,c=eh(r,FJ),f=(i=qr(c))!==null&&i!==void 0?i:{},{offset:d}=f,m=eh(f,HJ);n=p.createElement("line",wo({},m,{x1:a,y1:o,x2:l,y2:s,fill:"none",key:u}))}return n}function XJ(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,l=eh(e,WJ),s=i.map((u,c)=>{var f=rr(rr({},l),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return p.createElement(uC,{key:"line-".concat(c),option:n,lineItemProps:f})});return p.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function ZJ(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,l=eh(e,UJ),s=i.map((u,c)=>{var f=rr(rr({},l),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return p.createElement(uC,{option:n,lineItemProps:f,key:"line-".concat(c)})});return p.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function QJ(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:o,horizontalPoints:l,horizontal:s=!0}=e;if(!s||!t||!t.length||l==null)return null;var u=l.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==u[0]&&u.unshift(0);var c=u.map((f,d)=>{var m=u[d+1],g=m==null,v=g?i+o-f:m-f;if(v<=0)return null;var x=d%t.length;return p.createElement("rect",{key:"react-".concat(d),y:f,x:n,height:v,width:a,stroke:"none",fill:t[x],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return p.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function JJ(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:o,height:l,verticalPoints:s}=e;if(!t||!r||!r.length)return null;var u=s.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==u[0]&&u.unshift(0);var c=u.map((f,d)=>{var m=u[d+1],g=m==null,v=g?i+o-f:m-f;if(v<=0)return null;var x=d%r.length;return p.createElement("rect",{key:"react-".concat(d),x:f,y:a,width:v,height:l,stroke:"none",fill:r[x],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return p.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var eee=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return RA(z2(rr(rr(rr({},Ri),r),{},{ticks:LA(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},tee=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return RA(z2(rr(rr(rr({},Ri),r),{},{ticks:LA(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},ree={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:gt.grid};function L2(e){var t=VA(),r=KA(),n=qA(),i=rr(rr({},Tt(e,ree)),{},{x:se(e.x)?e.x:n.left,y:se(e.y)?e.y:n.top,width:se(e.width)?e.width:n.width,height:se(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:o,x:l,y:s,width:u,height:c,syncWithTicks:f,horizontalValues:d,verticalValues:m}=i,g=It(),v=ue(_=>P6(_,"xAxis",a,g)),x=ue(_=>P6(_,"yAxis",o,g));if(!ai(u)||!ai(c)||!se(l)||!se(s))return null;var y=i.verticalCoordinatesGenerator||eee,w=i.horizontalCoordinatesGenerator||tee,{horizontalPoints:S,verticalPoints:A}=i;if((!S||!S.length)&&typeof w=="function"){var P=d&&d.length,O=w({yAxis:x?rr(rr({},x),{},{ticks:P?d:x.ticks}):void 0,width:t??u,height:r??c,offset:n},P?!0:f);Sd(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(S=O)}if((!A||!A.length)&&typeof y=="function"){var j=m&&m.length,N=y({xAxis:v?rr(rr({},v),{},{ticks:j?m:v.ticks}):void 0,width:t??u,height:r??c,offset:n},j?!0:f);Sd(Array.isArray(N),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof N,"]")),Array.isArray(N)&&(A=N)}return p.createElement(xr,{zIndex:i.zIndex},p.createElement("g",{className:"recharts-cartesian-grid"},p.createElement(YJ,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),p.createElement(QJ,wo({},i,{horizontalPoints:S})),p.createElement(JJ,wo({},i,{verticalPoints:A})),p.createElement(XJ,wo({},i,{offset:n,horizontalPoints:S,xAxis:v,yAxis:x})),p.createElement(ZJ,wo({},i,{offset:n,verticalPoints:A,xAxis:v,yAxis:x}))))}L2.displayName="CartesianGrid";var nee={},cC=sr({name:"errorBars",initialState:nee,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(a=>a.dataKey===n.dataKey&&a.direction===n.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:qse,replaceErrorBar:Vse,removeErrorBar:Kse}=cC.actions,iee=cC.reducer,aee=["children"];function oee(e,t){if(e==null)return{};var r,n,i=lee(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function lee(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var see={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},uee=p.createContext(see);function $2(e){var{children:t}=e,r=oee(e,aee);return p.createElement(uee.Provider,{value:r},t)}function zm(e,t){var r,n,i=ue(u=>ci(u,e)),a=ue(u=>fi(u,t)),o=(r=i==null?void 0:i.allowDataOverflow)!==null&&r!==void 0?r:At.allowDataOverflow,l=(n=a==null?void 0:a.allowDataOverflow)!==null&&n!==void 0?n:Pt.allowDataOverflow,s=o||l;return{needClip:s,needClipX:o,needClipY:l}}function B2(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=D2(),{needClipX:a,needClipY:o,needClip:l}=zm(t,r);if(!l||!i)return null;var{x:s,y:u,width:c,height:f}=i;return p.createElement("clipPath",{id:"clipPath-".concat(n)},p.createElement("rect",{x:a?s:s-c/2,y:o?u:u-f/2,width:a?c:c*2,height:o?f:f*2}))}var fC=(e,t,r,n)=>ui(e,"xAxis",t,n),dC=(e,t,r,n)=>si(e,"xAxis",t,n),hC=(e,t,r,n)=>ui(e,"yAxis",r,n),mC=(e,t,r,n)=>si(e,"yAxis",r,n),cee=$([Me,fC,hC,dC,mC],(e,t,r,n,i)=>ra(e,"xAxis")?ms(t,n,!1):ms(r,i,!1)),fee=(e,t,r,n,i)=>i;function dee(e){return e.type==="line"}var hee=$([Gc,fee],(e,t)=>e.filter(dee).find(r=>r.id===t)),mee=$([Me,fC,hC,dC,mC,hee,cee,Ds],(e,t,r,n,i,a,o,l)=>{var{chartData:s,dataStartIndex:u,dataEndIndex:c}=l;if(!(a==null||t==null||r==null||n==null||i==null||n.length===0||i.length===0||o==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:f,data:d}=a,m;if(d!=null&&d.length>0?m=d:m=s==null?void 0:s.slice(u,c+1),m!=null)return Dee({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:f,bandSize:o,displayedData:m})}});function pee(e){var t=Ms(e),r=3,n=2;if(t!=null){var{r:i,strokeWidth:a}=t,o=Number(i),l=Number(a);return(Number.isNaN(o)||o<0)&&(o=r),(Number.isNaN(l)||l<0)&&(l=n),{r:o,strokeWidth:l}}return{r,strokeWidth:n}}var vee=["id"],gee=["type","layout","connectNulls","needClip","shape"],yee=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function bc(){return bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bc.apply(null,arguments)}function E7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E7(Object(r),!0).forEach(function(n){xee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xee(e,t,r){return(t=bee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bee(e){var t=wee(e,"string");return typeof t=="symbol"?t:t+""}function wee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F2(e,t){if(e==null)return{};var r,n,i=See(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function See(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var kee=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ts(r,t),payload:e}]},Aee=p.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:l,unit:s,tooltipType:u,id:c}=e,f={dataDefinedOnItem:r,getPosition:el,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ts(o,t),hide:l,type:u,color:n,unit:s,graphicalItemId:c}};return p.createElement(M2,{tooltipEntrySettings:f})}),pC=(e,t)=>"".concat(t,"px ").concat(e,"px");function Pee(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],i=0;i<t;++i)n.push(...r);return n}var Eee=(e,t,r)=>{var n=r.reduce((d,m)=>d+m,0);if(!n)return pC(t,e);for(var i=Math.floor(e/n),a=e%n,o=[],l=0,s=0;l<r.length;s+=(u=r[l])!==null&&u!==void 0?u:0,++l){var u,c=r[l];if(c!=null&&s+c>a){o=[...r.slice(0,l),a-s];break}}var f=o.length%2===0?[0,t]:[t];return[...Pee(r,i),...o,...f].map(d=>"".concat(d,"px")).join(", ")};function Oee(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:a,needClip:o}=n,{id:l}=n,s=F2(n,vee),u=qr(s);return p.createElement(uQ,{points:r,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:a,baseProps:u,needClip:o,clipPathId:t})}function Cee(e){var{showLabels:t,children:r,points:n}=e,i=p.useMemo(()=>n==null?void 0:n.map(a=>{var o,l,s={x:(o=a.x)!==null&&o!==void 0?o:0,y:(l=a.y)!==null&&l!==void 0?l:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Hn(Hn({},s),{},{value:a.value,payload:a.payload,viewBox:s,parentViewBox:void 0,fill:void 0})}),[n]);return p.createElement(A2,{value:t?i:void 0},r)}function O7(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:a}=e,{type:o,layout:l,connectNulls:s,needClip:u,shape:c}=a,f=F2(a,gee),d=Hn(Hn({},or(f)),{},{fill:"none",className:"recharts-line-curve",clipPath:u?"url(#clipPath-".concat(t,")"):void 0,points:n,type:o,layout:l,connectNulls:s,strokeDasharray:i??a.strokeDasharray});return p.createElement(p.Fragment,null,(n==null?void 0:n.length)>1&&p.createElement(Xd,bc({shapeType:"curve",option:c},d,{pathRef:r})),p.createElement(Oee,{points:n,clipPathId:t,props:a}))}function jee(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function Nee(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:l,isAnimationActive:s,animationBegin:u,animationDuration:c,animationEasing:f,animateNewValues:d,width:m,height:g,onAnimationEnd:v,onAnimationStart:x}=r,y=i.current,w=Hc(o,"recharts-line-"),S=p.useRef(w),[A,P]=p.useState(!1),O=!A,j=p.useCallback(()=>{typeof v=="function"&&v(),P(!1)},[v]),N=p.useCallback(()=>{typeof x=="function"&&x(),P(!0)},[x]),_=jee(n.current),z=p.useRef(0);S.current!==w&&(z.current=a.current,S.current=w);var R=z.current;return p.createElement(Cee,{points:o,showLabels:O},r.children,p.createElement(Fc,{animationId:w,begin:u,duration:c,isActive:s,easing:f,onAnimationEnd:j,onAnimationStart:N,key:w},I=>{var F=Le(R,_+R,I),H=Math.min(F,_),Z;if(s)if(l){var X="".concat(l).split(/[,\s]+/gim).map(W=>parseFloat(W));Z=Eee(H,_,X)}else Z=pC(_,H);else Z=l==null?void 0:String(l);if(I>0&&_>0&&(i.current=o,a.current=Math.max(a.current,H)),y){var re=y.length/o.length,B=I===1?o:o.map((W,K)=>{var le=Math.floor(K*re);if(y[le]){var fe=y[le];return Hn(Hn({},W),{},{x:Le(fe.x,W.x,I),y:Le(fe.y,W.y,I)})}return d?Hn(Hn({},W),{},{x:Le(m*2,W.x,I),y:Le(g/2,W.y,I)}):Hn(Hn({},W),{},{x:W.x,y:W.y})});return i.current=B,p.createElement(O7,{props:r,points:B,clipPathId:t,pathRef:n,strokeDasharray:Z})}return p.createElement(O7,{props:r,points:o,clipPathId:t,pathRef:n,strokeDasharray:Z})}),p.createElement(P2,{label:r.label}))}function Mee(e){var{clipPathId:t,props:r}=e,n=p.useRef(null),i=p.useRef(0),a=p.useRef(null);return p.createElement(Nee,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:i,pathRef:a})}var Tee=(e,t)=>{var r,n;return{x:(r=e.x)!==null&&r!==void 0?r:void 0,y:(n=e.y)!==null&&n!==void 0?n:void 0,value:e.value,errorVal:Ye(e.payload,t)}};class Iee extends p.Component{render(){var{hide:t,dot:r,points:n,className:i,xAxisId:a,yAxisId:o,top:l,left:s,width:u,height:c,id:f,needClip:d,zIndex:m}=this.props;if(t)return null;var g=Oe("recharts-line",i),v=f,{r:x,strokeWidth:y}=pee(r),w=eC(r),S=x*2+y,A=d?"url(#clipPath-".concat(w?"":"dots-").concat(v,")"):void 0;return p.createElement(xr,{zIndex:m},p.createElement(Nt,{className:g},d&&p.createElement("defs",null,p.createElement(B2,{clipPathId:v,xAxisId:a,yAxisId:o}),!w&&p.createElement("clipPath",{id:"clipPath-dots-".concat(v)},p.createElement("rect",{x:s-S/2,y:l-S/2,width:u+S,height:c+S}))),p.createElement($2,{xAxisId:a,yAxisId:o,data:n,dataPointFormatter:Tee,errorBarOffset:0},p.createElement(Mee,{props:this.props,clipPathId:v}))),p.createElement(TQ,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:A}))}}var vC={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:gt.line,type:"linear"};function _ee(e){var t=Tt(e,vC),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:l,dot:s,hide:u,isAnimationActive:c,label:f,legendType:d,xAxisId:m,yAxisId:g,id:v}=t,x=F2(t,yee),{needClip:y}=zm(m,g),w=D2(),S=tl(),A=It(),P=ue(z=>mee(z,m,g,A,v));if(S!=="horizontal"&&S!=="vertical"||P==null||w==null)return null;var{height:O,width:j,x:N,y:_}=w;return p.createElement(Iee,bc({},x,{id:v,connectNulls:l,dot:s,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:c,hide:u,label:f,legendType:d,xAxisId:m,yAxisId:g,points:P,layout:S,height:O,width:j,left:N,top:_,needClip:y}))}function Dee(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:l,displayedData:s}=e;return s.map((u,c)=>{var f=Ye(u,o);if(t==="horizontal"){var d=wd({axis:r,ticks:i,bandSize:l,entry:u,index:c}),m=je(f)?null:n.scale.map(f);return{x:d,y:m??null,value:f,payload:u}}var g=je(f)?null:r.scale.map(f),v=wd({axis:n,ticks:a,bandSize:l,entry:u,index:c});return g==null||v==null?null:{x:g,y:v,value:f,payload:u}}).filter(Boolean)}function zee(e){var t=Tt(e,vC),r=It();return p.createElement(I2,{id:t.id,type:"line"},n=>p.createElement(p.Fragment,null,p.createElement(T2,{legendPayload:kee(t)}),p.createElement(Aee,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:n}),p.createElement(_2,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),p.createElement(_ee,bc({},t,{id:n}))))}var gC=p.memo(zee,_s);gC.displayName="Line";function al(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||n===void 0?void 0:n.xAxisId)!==null&&r!==void 0?r:rC}function ol(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||n===void 0?void 0:n.yAxisId)!==null&&r!==void 0?r:rC}var Ree="Invariant failed";function Lee(e,t){throw new Error(Ree)}function yg(){return yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yg.apply(null,arguments)}function H2(e){return p.createElement(Xd,yg({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},e))}var $ee=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,i)=>{if(se(t))return t;var a=se(n)||je(n);return a?t(n,i):(a||Lee(),r)}},Bee=(e,t,r)=>r,Fee=(e,t)=>t,Jc=$([Gc,Fee],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),Hee=$([Jc],e=>e==null?void 0:e.maxBarSize),Wee=(e,t,r,n)=>n,Uee=$([Me,Gc,al,ol,Bee],(e,t,r,n,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===r:a.yAxisId===n).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),qee=(e,t,r)=>{var n=Me(e),i=al(e,t),a=ol(e,t);if(!(i==null||a==null))return n==="horizontal"?hg(e,"yAxis",a,r):hg(e,"xAxis",i,r)},Vee=(e,t)=>{var r=Me(e),n=al(e,t),i=ol(e,t);if(!(n==null||i==null))return r==="horizontal"?A6(e,"xAxis",n):A6(e,"yAxis",i)},Kee=$([Uee,gU,Vee],IQ),Gee=(e,t,r)=>{var n,i,a=Jc(e,t);if(a==null)return 0;var o=al(e,t),l=ol(e,t);if(o==null||l==null)return 0;var s=Me(e),u=PP(e),{maxBarSize:c}=a,f=je(c)?u:c,d,m;return s==="horizontal"?(d=ui(e,"xAxis",o,r),m=si(e,"xAxis",o,r)):(d=ui(e,"yAxis",l,r),m=si(e,"yAxis",l,r)),(n=(i=ms(d,m,!0))!==null&&i!==void 0?i:f)!==null&&n!==void 0?n:0},yC=(e,t,r)=>{var n=Me(e),i=al(e,t),a=ol(e,t);if(!(i==null||a==null)){var o,l;return n==="horizontal"?(o=ui(e,"xAxis",i,r),l=si(e,"xAxis",i,r)):(o=ui(e,"yAxis",a,r),l=si(e,"yAxis",a,r)),ms(o,l)}},Yee=$([Kee,PP,vU,EP,Gee,yC,Hee],LQ),Xee=(e,t,r)=>{var n=al(e,t);if(n!=null)return ui(e,"xAxis",n,r)},Zee=(e,t,r)=>{var n=ol(e,t);if(n!=null)return ui(e,"yAxis",n,r)},Qee=(e,t,r)=>{var n=al(e,t);if(n!=null)return si(e,"xAxis",n,r)},Jee=(e,t,r)=>{var n=ol(e,t);if(n!=null)return si(e,"yAxis",n,r)},ete=$([Yee,Jc],BQ),tte=$([qee,Jc],$Q),rte=$([Ht,v4,Xee,Zee,Qee,Jee,ete,Me,sU,yC,tte,Jc,Wee],(e,t,r,n,i,a,o,l,s,u,c,f,d)=>{var{chartData:m,dataStartIndex:g,dataEndIndex:v}=s;if(!(f==null||o==null||t==null||l!=="horizontal"&&l!=="vertical"||r==null||n==null||i==null||a==null||u==null)){var{data:x}=f,y;if(x!=null&&x.length>0?y=x:y=m==null?void 0:m.slice(g,v+1),y!=null)return Nte({layout:l,barSettings:f,pos:o,parentViewBox:t,bandSize:u,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,stackedData:c,displayedData:y,offset:e,cells:d,dataStartIndex:g})}}),nte=["index"];function xg(){return xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xg.apply(null,arguments)}function ite(e,t){if(e==null)return{};var r,n,i=ate(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ate(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var xC=p.createContext(void 0),ote=e=>{var t=p.useContext(xC);if(t!=null)return t.stackId;if(e!=null)return bF(e)},lte=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),ste=e=>{var t=p.useContext(xC);if(t!=null){var{stackId:r}=t;return"url(#".concat(lte(r,e),")")}},bC=e=>{var{index:t}=e,r=ite(e,nte),n=ste(t);return p.createElement(Nt,xg({className:"recharts-bar-stack-layer",clipPath:n},r))},ute=["onMouseEnter","onMouseLeave","onClick"],cte=["value","background","tooltipPosition"],fte=["id"],dte=["onMouseEnter","onClick","onMouseLeave"];function Ua(){return Ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ua.apply(null,arguments)}function C7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C7(Object(r),!0).forEach(function(n){hte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hte(e,t,r){return(t=mte(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mte(e){var t=pte(e,"string");return typeof t=="symbol"?t:t+""}function pte(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function th(e,t){if(e==null)return{};var r,n,i=vte(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function vte(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var gte=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ts(r,t),payload:e}]},yte=p.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:a,hide:o,unit:l,tooltipType:s,id:u}=e,c={dataDefinedOnItem:void 0,getPosition:el,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:Ts(a,t),hide:o,type:s,color:i,unit:l,graphicalItemId:u}};return p.createElement(M2,{tooltipEntrySettings:c})});function xte(e){var t=ue(Wa),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:l,onClick:s}=a,u=th(a,ute),c=C2(o,n,a.id),f=j2(l),d=N2(s,n,a.id);if(!i||r==null)return null;var m=Ms(i);return p.createElement(xr,{zIndex:FQ(i,gt.barBackground)},r.map((g,v)=>{var{value:x,background:y,tooltipPosition:w}=g,S=th(g,cte);if(!y)return null;var A=c(g,v),P=f(g,v),O=d(g,v),j=dr(dr(dr(dr(dr({option:i,isActive:String(v)===t},S),{},{fill:"#eee"},y),m),Vh(u,g,v)),{},{onMouseEnter:A,onMouseLeave:P,onClick:O,dataKey:n,index:v,className:"recharts-bar-background-rectangle"});return p.createElement(H2,Ua({key:"background-bar-".concat(v)},j))}))}function bte(e){var{showLabels:t,children:r,rects:n}=e,i=n==null?void 0:n.map(a=>{var o={x:a.x,y:a.y,width:a.width,lowerWidth:a.width,upperWidth:a.width,height:a.height};return dr(dr({},o),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:o,fill:a.fill})});return p.createElement(A2,{value:t?i:void 0},r)}function wte(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:a,dataKey:o}=e,l=ue(Wa),s=ue(bO),u=r&&String(i.originalDataIndex)===l&&(s==null||o===s),[c,f]=p.useState(!1),[d,m]=p.useState(!1);p.useEffect(()=>{var S;return u?(f(!0),S=requestAnimationFrame(()=>{m(!0)})):m(!1),()=>{cancelAnimationFrame(S)}},[u]);var g=p.useCallback(()=>{u||f(!1)},[u]),v=u&&d,x=u||c,y;u?r===!0?y=t:y=r:y=t;var w=p.createElement(H2,Ua({},n,{name:String(n.name)},i,{isActive:v,option:y,index:a,dataKey:o,onTransitionEnd:g}));return x?p.createElement(xr,{zIndex:gt.activeBar},p.createElement(bC,{index:i.originalDataIndex},w)):w}function Ste(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return p.createElement(H2,Ua({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:a}))}function kte(e){var t,{data:r,props:n}=e,i=(t=qr(n))!==null&&t!==void 0?t:{},{id:a}=i,o=th(i,fte),{shape:l,dataKey:s,activeBar:u}=n,{onMouseEnter:c,onClick:f,onMouseLeave:d}=n,m=th(n,dte),g=C2(c,s,a),v=j2(d),x=N2(f,s,a);return r?p.createElement(p.Fragment,null,r.map((y,w)=>p.createElement(bC,Ua({index:y.originalDataIndex,key:"rectangle-".concat(y==null?void 0:y.x,"-").concat(y==null?void 0:y.y,"-").concat(y==null?void 0:y.value,"-").concat(w),className:"recharts-bar-rectangle"},Vh(m,y,w),{onMouseEnter:g(y,w),onMouseLeave:v(y,w),onClick:x(y,w)}),u?p.createElement(wte,{shape:l,activeBar:u,baseProps:o,entry:y,index:w,dataKey:s}):p.createElement(Ste,{shape:l,baseProps:o,entry:y,index:w,dataKey:s})))):null}function Ate(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:l,animationEasing:s,onAnimationEnd:u,onAnimationStart:c}=t,f=r.current,d=Hc(t,"recharts-bar-"),[m,g]=p.useState(!1),v=!m,x=p.useCallback(()=>{typeof u=="function"&&u(),g(!1)},[u]),y=p.useCallback(()=>{typeof c=="function"&&c(),g(!0)},[c]);return p.createElement(bte,{showLabels:v,rects:n},p.createElement(Fc,{animationId:d,begin:o,duration:l,isActive:a,easing:s,onAnimationEnd:x,onAnimationStart:y,key:d},w=>{var S=w===1?n:n==null?void 0:n.map((A,P)=>{var O=f&&f[P];if(O)return dr(dr({},A),{},{x:Le(O.x,A.x,w),y:Le(O.y,A.y,w),width:Le(O.width,A.width,w),height:Le(O.height,A.height,w)});if(i==="horizontal"){var j=Le(0,A.height,w),N=Le(A.stackedBarStart,A.y,w);return dr(dr({},A),{},{y:N,height:j})}var _=Le(0,A.width,w),z=Le(A.stackedBarStart,A.x,w);return dr(dr({},A),{},{width:_,x:z})});return w>0&&(r.current=S??null),S==null?null:p.createElement(Nt,null,p.createElement(kte,{props:t,data:S}))}),p.createElement(P2,{label:t.label}),t.children)}function Pte(e){var t=p.useRef(null);return p.createElement(Ate,{previousRectanglesRef:t,props:e})}var wC=0,Ete=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:Ye(e,t)}};class Ote extends p.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:i,xAxisId:a,yAxisId:o,needClip:l,background:s,id:u}=this.props;if(t||r==null)return null;var c=Oe("recharts-bar",i),f=u;return p.createElement(Nt,{className:c,id:u},l&&p.createElement("defs",null,p.createElement(B2,{clipPathId:f,xAxisId:a,yAxisId:o})),p.createElement(Nt,{className:"recharts-bar-rectangles",clipPath:l?"url(#clipPath-".concat(f,")"):void 0},p.createElement(xte,{data:r,dataKey:n,background:s,allOtherBarProps:this.props}),p.createElement(Pte,this.props)))}}var Cte={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:wC,xAxisId:0,yAxisId:0,zIndex:gt.bar};function jte(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:l,animationDuration:s,animationEasing:u,isAnimationActive:c}=e,{needClip:f}=zm(t,r),d=tl(),m=It(),g=JO(e.children,w2),v=ue(w=>rte(w,e.id,m,g));if(d!=="vertical"&&d!=="horizontal")return null;var x,y=v==null?void 0:v[0];return y==null||y.height==null||y.width==null?x=0:x=d==="vertical"?y.height/2:y.width/2,p.createElement($2,{xAxisId:t,yAxisId:r,data:v,dataPointFormatter:Ete,errorBarOffset:x},p.createElement(Ote,Ua({},e,{layout:d,needClip:f,data:v,xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:l,animationDuration:s,animationEasing:u,isAnimationActive:c})))}function Nte(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n,hasCustomShape:i},pos:a,bandSize:o,xAxis:l,yAxis:s,xAxisTicks:u,yAxisTicks:c,stackedData:f,displayedData:d,offset:m,cells:g,parentViewBox:v,dataStartIndex:x}=e,y=t==="horizontal"?s:l,w=f?y.scale.domain():null,S=wF({numericAxis:y}),A=y.scale.map(S);return d.map((P,O)=>{var j,N,_,z,R,I;if(f){var F=f[O+x];if(F==null)return null;j=pF(F,w)}else j=Ye(P,r),Array.isArray(j)||(j=[S,j]);var H=$ee(n,wC)(j[1],O);if(t==="horizontal"){var Z,X=s.scale.map(j[0]),re=s.scale.map(j[1]);if(X==null||re==null)return null;N=N5({axis:l,ticks:u,bandSize:o,offset:a.offset,entry:P,index:O}),_=(Z=re??X)!==null&&Z!==void 0?Z:void 0,z=a.size;var B=X-re;if(R=ii(B)?0:B,I={x:N,y:m.top,width:z,height:m.height},Math.abs(H)>0&&Math.abs(R)<Math.abs(H)){var W=Ar(R||H)*(Math.abs(H)-Math.abs(R));_-=W,R+=W}}else{var K=l.scale.map(j[0]),le=l.scale.map(j[1]);if(K==null||le==null)return null;if(N=K,_=N5({axis:s,ticks:c,bandSize:o,offset:a.offset,entry:P,index:O}),z=le-K,R=a.size,I={x:m.left,y:_,width:m.width,height:R},Math.abs(H)>0&&Math.abs(z)<Math.abs(H)){var fe=Ar(z||H)*(Math.abs(H)-Math.abs(z));z+=fe}}if(N==null||_==null||z==null||R==null||!i&&(z===0||R===0))return null;var He=dr(dr({},P),{},{stackedBarStart:A,x:N,y:_,width:z,height:R,value:f?j:j[1],payload:P,background:I,tooltipPosition:{x:N+z/2,y:_+R/2},parentViewBox:v,originalDataIndex:O},g&&g[O]&&g[O].props);return He}).filter(Boolean)}function Mte(e){var t=Tt(e,Cte),r=ote(t.stackId),n=It();return p.createElement(I2,{id:t.id,type:"bar"},i=>p.createElement(p.Fragment,null,p.createElement(T2,{legendPayload:gte(t)}),p.createElement(yte,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:i}),p.createElement(_2,{type:"bar",id:i,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:r,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n,hasCustomShape:t.shape!=null}),p.createElement(xr,{zIndex:t.zIndex},p.createElement(jte,Ua({},t,{id:i})))))}var SC=p.memo(Mte,_s);SC.displayName="Bar";var Tte=["option","isActive"];function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_u.apply(null,arguments)}function Ite(e,t){if(e==null)return{};var r,n,i=_te(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _te(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Dte(e){var{option:t,isActive:r}=e,n=Ite(e,Tte);return typeof t=="string"?p.createElement(Xd,_u({option:p.createElement(o4,_u({type:t},n)),isActive:r,shapeType:"symbols"},n)):p.createElement(Xd,_u({option:t,isActive:r,shapeType:"symbols"},n))}var zte=(e,t,r,n,i,a,o)=>ui(e,"xAxis",t,o),Rte=(e,t,r,n,i,a,o)=>si(e,"xAxis",t,o),Lte=(e,t,r,n,i,a,o)=>ui(e,"yAxis",r,o),$te=(e,t,r,n,i,a,o)=>si(e,"yAxis",r,o),Bte=(e,t,r,n)=>iG(e,"zAxis",n,!1),Fte=(e,t,r,n,i)=>i,Hte=(e,t,r,n,i,a)=>a,Wte=(e,t,r,n,i,a,o)=>Ds(e,void 0,void 0,o),Ute=$([Gc,Fte],(e,t)=>e.filter(r=>r.type==="scatter").find(r=>r.id===t)),qte=$([Wte,zte,Rte,Lte,$te,Bte,Ute,Hte],(e,t,r,n,i,a,o,l)=>{var{chartData:s,dataStartIndex:u,dataEndIndex:c}=e;if(o!=null){var f;if((o==null?void 0:o.data)!=null&&o.data.length>0?f=o.data:f=s==null?void 0:s.slice(u,c+1),!(f==null||t==null||n==null||r==null||i==null||(r==null?void 0:r.length)===0||(i==null?void 0:i.length)===0))return are({displayedData:f,xAxis:t,yAxis:n,zAxis:a,scatterSettings:o,xAxisTicks:r,yAxisTicks:i,cells:l})}}),Vte=["id"],Kte=["onMouseEnter","onClick","onMouseLeave"],Gte=["animationBegin","animationDuration","animationEasing","hide","isAnimationActive","legendType","lineJointType","lineType","shape","xAxisId","yAxisId","zAxisId"];function bg(e,t){if(e==null)return{};var r,n,i=Yte(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Yte(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Go.apply(null,arguments)}function j7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Or(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j7(Object(r),!0).forEach(function(n){Xte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xte(e,t,r){return(t=Zte(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zte(e){var t=Qte(e,"string");return typeof t=="symbol"?t:t+""}function Qte(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jte=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ts(r,t),payload:e}]},ere=p.memo(e=>{var{dataKey:t,points:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:l,tooltipType:s,id:u}=e,c={dataDefinedOnItem:r==null?void 0:r.map(f=>f.tooltipPayload),getPosition:f=>{var d;return r==null||(d=r[Number(f)])===null||d===void 0?void 0:d.tooltipPosition},settings:{stroke:n,strokeWidth:i,fill:a,nameKey:void 0,dataKey:t,name:Ts(o,t),hide:l,type:s,color:a,unit:"",graphicalItemId:u}};return p.createElement(M2,{tooltipEntrySettings:c})});function tre(e){var{points:t,props:r}=e,{line:n,lineType:i,lineJointType:a}=r;if(!n)return null;var o=qr(r),l=Ms(n),s,u;if(i==="joint")s=t.map(x=>{var y,w;return{x:(y=x.cx)!==null&&y!==void 0?y:null,y:(w=x.cy)!==null&&w!==void 0?w:null}});else if(i==="fitting"){var{xmin:c,xmax:f,a:d,b:m}=yL(t),g=x=>d*x+m;s=[{x:c,y:g(c)},{x:f,y:g(f)}]}var v=Or(Or(Or({},o),{},{fill:"none",stroke:o&&o.fill},l),{},{points:s});return p.isValidElement(n)?u=p.cloneElement(n,v):typeof n=="function"?u=n(v):u=p.createElement(w4,Go({},v,{type:a})),p.createElement(Nt,{className:"recharts-scatter-line",key:"recharts-scatter-line"},u)}function rre(e){var{showLabels:t,points:r,children:n}=e,i=Is(),a=p.useMemo(()=>r==null?void 0:r.map(o=>{var l,s,u={x:(l=o.x)!==null&&l!==void 0?l:0,y:(s=o.y)!==null&&s!==void 0?s:0,width:o.width,height:o.height,lowerWidth:o.width,upperWidth:o.width};return Or(Or({},u),{},{value:void 0,payload:o.payload,viewBox:u,parentViewBox:i,fill:void 0})}),[i,r]);return p.createElement(A2,{value:t?a:void 0},n)}function nre(e){var{points:t,allOtherScatterProps:r}=e,{shape:n,activeShape:i,dataKey:a}=r,{id:o}=r,l=bg(r,Vte),s=ue(Wa),{onMouseEnter:u,onClick:c,onMouseLeave:f}=r,d=bg(r,Kte),m=C2(u,a,o),g=j2(f),v=N2(c,a,o);if(!NL(t))return null;var x=qr(l);return p.createElement(p.Fragment,null,p.createElement(tre,{points:t,props:l}),t.map((y,w)=>{var S=i!=null&&i!==!1,A=S&&s===String(w),P=S&&A?i:n,O=Or(Or(Or({},x),y),{},{index:w,[BA]:String(o)});return p.createElement(xr,{key:"symbol-".concat(y==null?void 0:y.cx,"-").concat(y==null?void 0:y.cy,"-").concat(y==null?void 0:y.size,"-").concat(w),zIndex:A?gt.activeDot:void 0},p.createElement(Nt,Go({className:"recharts-scatter-symbol"},Vh(d,y,w),{onMouseEnter:m(y,w),onMouseLeave:g(y,w),onClick:v(y,w)}),p.createElement(Dte,Go({option:P,isActive:A},O))))}))}function ire(e){var{previousPointsRef:t,props:r}=e,{points:n,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:l}=r,s=t.current,u=Hc(r,"recharts-scatter-"),[c,f]=p.useState(!1),d=p.useCallback(()=>{f(!1)},[]),m=p.useCallback(()=>{f(!0)},[]),g=!c;return p.createElement(rre,{showLabels:g,points:n},r.children,p.createElement(Fc,{animationId:u,begin:a,duration:o,isActive:i,easing:l,onAnimationEnd:d,onAnimationStart:m,key:u},v=>{var x=v===1?n:n==null?void 0:n.map((y,w)=>{var S=s&&s[w];return S?Or(Or({},y),{},{cx:y.cx==null?void 0:Le(S.cx,y.cx,v),cy:y.cy==null?void 0:Le(S.cy,y.cy,v),size:Le(S.size,y.size,v)}):Or(Or({},y),{},{size:Le(0,y.size,v)})});return v>0&&(t.current=x),p.createElement(Nt,null,p.createElement(nre,{points:x,allOtherScatterProps:r,showLabels:g}))}),p.createElement(P2,{label:r.label}))}function are(e){var{displayedData:t,xAxis:r,yAxis:n,zAxis:i,scatterSettings:a,xAxisTicks:o,yAxisTicks:l,cells:s}=e,u=je(r.dataKey)?a.dataKey:r.dataKey,c=je(n.dataKey)?a.dataKey:n.dataKey,f=i&&i.dataKey,d=i?i.range:Ti.range,m=d&&d[0],g=r.scale.bandwidth?r.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0;return t.map((x,y)=>{var w=Ye(x,u),S=Ye(x,c),A=!je(f)&&Ye(x,f)||"-",P=[{name:je(r.dataKey)?a.name:r.name||String(r.dataKey),unit:r.unit||"",value:w,payload:x,dataKey:u,type:a.tooltipType,graphicalItemId:a.id},{name:je(n.dataKey)?a.name:n.name||String(n.dataKey),unit:n.unit||"",value:S,payload:x,dataKey:c,type:a.tooltipType,graphicalItemId:a.id}];A!=="-"&&i!=null&&P.push({name:i.name||i.dataKey,unit:i.unit||"",value:A,payload:x,dataKey:f,type:a.tooltipType,graphicalItemId:a.id});var O=wd({axis:r,ticks:o,bandSize:g,entry:x,index:y,dataKey:u}),j=wd({axis:n,ticks:l,bandSize:v,entry:x,index:y,dataKey:c}),N=A!=="-"&&i!=null?i.scale.map(A):m,_=N==null?0:Math.sqrt(Math.max(N,0)/Math.PI);return Or(Or({},x),{},{cx:O,cy:j,x:O==null?void 0:O-_,y:j==null?void 0:j-_,width:2*_,height:2*_,size:N,node:{x:w,y:S,z:A},tooltipPayload:P,tooltipPosition:{x:O,y:j},payload:x},s&&s[y]&&s[y].props)})}var ore=(e,t,r)=>({x:e.cx,y:e.cy,value:Number(r==="x"?e.node.x:e.node.y),errorVal:Ye(e,t)});function lre(e){var{hide:t,points:r,className:n,needClip:i,xAxisId:a,yAxisId:o,id:l}=e,s=p.useRef(null);if(t)return null;var u=Oe("recharts-scatter",n),c=l;return p.createElement(xr,{zIndex:e.zIndex},p.createElement(Nt,{className:u,clipPath:i?"url(#clipPath-".concat(c,")"):void 0,id:l},i&&p.createElement("defs",null,p.createElement(B2,{clipPathId:c,xAxisId:a,yAxisId:o})),p.createElement($2,{xAxisId:a,yAxisId:o,data:r,dataPointFormatter:ore,errorBarOffset:0},p.createElement(Nt,{key:"recharts-scatter-symbols"},p.createElement(ire,{props:e,previousPointsRef:s})))))}var kC={xAxisId:0,yAxisId:0,zAxisId:0,label:!1,line:!1,legendType:"circle",lineType:"joint",lineJointType:"linear",shape:"circle",hide:!1,isAnimationActive:"auto",animationBegin:0,animationDuration:400,animationEasing:"linear",zIndex:gt.scatter};function sre(e){var t=Tt(e,kC),{animationBegin:r,animationDuration:n,animationEasing:i,hide:a,isAnimationActive:o,legendType:l,lineJointType:s,lineType:u,shape:c,xAxisId:f,yAxisId:d,zAxisId:m}=t,g=bg(t,Gte),{needClip:v}=zm(f,d),x=p.useMemo(()=>JO(e.children,w2),[e.children]),y=It(),w=ue(S=>qte(S,f,d,m,e.id,x,y));return v==null||w==null?null:p.createElement(p.Fragment,null,p.createElement(ere,{dataKey:e.dataKey,points:w,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:e.id}),p.createElement(lre,Go({},g,{xAxisId:f,yAxisId:d,zAxisId:m,lineType:u,lineJointType:s,legendType:l,shape:c,hide:a,isAnimationActive:o,animationBegin:r,animationDuration:n,animationEasing:i,points:w,needClip:v})))}function ure(e){var t=Tt(e,kC),r=It();return p.createElement(I2,{id:t.id,type:"scatter"},n=>p.createElement(p.Fragment,null,p.createElement(T2,{legendPayload:Jte(t)}),p.createElement(_2,{type:"scatter",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:t.zAxisId,dataKey:t.dataKey,hide:t.hide,name:t.name,tooltipType:t.tooltipType,isPanorama:r}),p.createElement(sre,Go({},t,{id:n}))))}var AC=p.memo(ure,_s);AC.displayName="Scatter";var cre=["domain","range"],fre=["domain","range"];function N7(e,t){if(e==null)return{};var r,n,i=dre(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function dre(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function M7(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function PC(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=N7(e,cre),{domain:a,range:o}=t,l=N7(t,fre);return!M7(r,a)||!M7(n,o)?!1:_s(i,l)}var hre=["type"],mre=["dangerouslySetInnerHTML","ticks","scale"],pre=["id","scale"];function wg(){return wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wg.apply(null,arguments)}function T7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T7(Object(r),!0).forEach(function(n){vre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vre(e,t,r){return(t=gre(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gre(e){var t=yre(e,"string");return typeof t=="symbol"?t:t+""}function yre(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sg(e,t){if(e==null)return{};var r,n,i=xre(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function xre(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function bre(e){var t=Xe(),r=p.useRef(null),n=GA(),{type:i}=e,a=Sg(e,hre),o=dm(n,"xAxis",i),l=p.useMemo(()=>{if(o!=null)return I7(I7({},a),{},{type:o})},[a,o]);return p.useLayoutEffect(()=>{l!=null&&(r.current===null?t(mQ(l)):r.current!==l&&t(pQ({prev:r.current,next:l})),r.current=l)},[l,t]),p.useLayoutEffect(()=>()=>{r.current&&(t(vQ(r.current)),r.current=null)},[t]),null}var wre=e=>{var{xAxisId:t,className:r}=e,n=ue(v4),i=It(),a="xAxis",o=ue(y=>QE(y,a,t,i)),l=ue(y=>YE(y,t)),s=ue(y=>ZK(y,t)),u=ue(y=>gE(y,t));if(l==null||s==null||u==null)return null;var{dangerouslySetInnerHTML:c,ticks:f,scale:d}=e,m=Sg(e,mre),{id:g,scale:v}=u,x=Sg(u,pre);return p.createElement(R2,wg({},m,x,{x:s.x,y:s.y,width:l.width,height:l.height,className:Oe("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:o,axisType:a,axisId:t}))},Sre={allowDataOverflow:At.allowDataOverflow,allowDecimals:At.allowDecimals,allowDuplicatedCategory:At.allowDuplicatedCategory,angle:At.angle,axisLine:Ri.axisLine,height:At.height,hide:!1,includeHidden:At.includeHidden,interval:At.interval,label:!1,minTickGap:At.minTickGap,mirror:At.mirror,orientation:At.orientation,padding:At.padding,reversed:At.reversed,scale:At.scale,tick:At.tick,tickCount:At.tickCount,tickLine:Ri.tickLine,tickSize:Ri.tickSize,type:At.type,niceTicks:At.niceTicks,xAxisId:0},kre=e=>{var t=Tt(e,Sre);return p.createElement(p.Fragment,null,p.createElement(bre,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),p.createElement(wre,t))},W2=p.memo(kre,PC);W2.displayName="XAxis";var Are=["type"],Pre=["dangerouslySetInnerHTML","ticks","scale"],Ere=["id","scale"];function kg(){return kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kg.apply(null,arguments)}function _7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function D7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_7(Object(r),!0).forEach(function(n){Ore(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ore(e,t,r){return(t=Cre(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cre(e){var t=jre(e,"string");return typeof t=="symbol"?t:t+""}function jre(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ag(e,t){if(e==null)return{};var r,n,i=Nre(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Nre(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Mre(e){var t=Xe(),r=p.useRef(null),n=GA(),{type:i}=e,a=Ag(e,Are),o=dm(n,"yAxis",i),l=p.useMemo(()=>{if(o!=null)return D7(D7({},a),{},{type:o})},[o,a]);return p.useLayoutEffect(()=>{l!=null&&(r.current===null?t(gQ(l)):r.current!==l&&t(yQ({prev:r.current,next:l})),r.current=l)},[l,t]),p.useLayoutEffect(()=>()=>{r.current&&(t(xQ(r.current)),r.current=null)},[t]),null}function Tre(e){var{yAxisId:t,className:r,width:n,label:i}=e,a=p.useRef(null),o=p.useRef(null),l=ue(v4),s=It(),u=Xe(),c="yAxis",f=ue(O=>XE(O,t)),d=ue(O=>JK(O,t)),m=ue(O=>QE(O,c,t,s)),g=ue(O=>yE(O,t));if(p.useLayoutEffect(()=>{if(!(n!=="auto"||!f||k2(i)||p.isValidElement(i)||g==null)){var O=a.current;if(O){var j=O.getCalculatedWidth();Math.round(f.width)!==Math.round(j)&&u(kQ({id:t,width:j}))}}},[m,f,u,i,t,n,g]),f==null||d==null||g==null)return null;var{dangerouslySetInnerHTML:v,ticks:x,scale:y}=e,w=Ag(e,Pre),{id:S,scale:A}=g,P=Ag(g,Ere);return p.createElement(R2,kg({},w,P,{ref:a,labelRef:o,x:d.x,y:d.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:f.width,height:f.height,className:Oe("recharts-".concat(c," ").concat(c),r),viewBox:l,ticks:m,axisType:c,axisId:t}))}var Ire={allowDataOverflow:Pt.allowDataOverflow,allowDecimals:Pt.allowDecimals,allowDuplicatedCategory:Pt.allowDuplicatedCategory,angle:Pt.angle,axisLine:Ri.axisLine,hide:!1,includeHidden:Pt.includeHidden,interval:Pt.interval,label:!1,minTickGap:Pt.minTickGap,mirror:Pt.mirror,orientation:Pt.orientation,padding:Pt.padding,reversed:Pt.reversed,scale:Pt.scale,tick:Pt.tick,tickCount:Pt.tickCount,tickLine:Ri.tickLine,tickSize:Ri.tickSize,type:Pt.type,niceTicks:Pt.niceTicks,width:Pt.width,yAxisId:0},_re=e=>{var t=Tt(e,Ire);return p.createElement(p.Fragment,null,p.createElement(Mre,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),p.createElement(Tre,t))},U2=p.memo(_re,PC);U2.displayName="YAxis";function Dre(e){var t=Xe(),r=p.useRef(null);return p.useLayoutEffect(()=>{r.current===null?t(bQ(e)):r.current!==e&&t(wQ({prev:r.current,next:e})),r.current=e},[e,t]),p.useLayoutEffect(()=>()=>{r.current&&(t(SQ(r.current)),r.current=null)},[t]),null}var zre={zAxisId:0,range:Ti.range,scale:Ti.scale,type:Ti.type};function EC(e){var t=Tt(e,zre);return p.createElement(Dre,{domain:t.domain,id:t.zAxisId,dataKey:t.dataKey,name:t.name,unit:t.unit,range:t.range,scale:t.scale,type:t.type,allowDuplicatedCategory:Ti.allowDuplicatedCategory,allowDataOverflow:Ti.allowDataOverflow,reversed:Ti.reversed,includeHidden:Ti.includeHidden})}EC.displayName="ZAxis";var Rre=(e,t)=>t,q2=$([Rre,Me,IP,Ut,vO,oa,kY,Ht],NY);function Lre(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function V2(e){var t=e.currentTarget.getBoundingClientRect(),r,n;if(Lre(e)){var i=e.currentTarget.getBBox();r=i.width>0?t.width/i.width:1,n=i.height>0?t.height/i.height:1}else{var a=e.currentTarget;r=a.offsetWidth>0?t.width/a.offsetWidth:1,n=a.offsetHeight>0?t.height/a.offsetHeight:1}var o=(l,s)=>({relativeX:Math.round((l-t.left)/r),relativeY:Math.round((s-t.top)/n)});return"touches"in e?Array.from(e.touches).map(l=>o(l.clientX,l.clientY)):o(e.clientX,e.clientY)}var OC=Vr("mouseClick"),CC=Dc();CC.startListening({actionCreator:OC,effect:(e,t)=>{var r=e.payload,n=q2(t.getState(),V2(r));(n==null?void 0:n.activeIndex)!=null&&t.dispatch(vG({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Pg=Vr("mouseMove"),jC=Dc(),pl=null,no=null,ev=null;jC.startListening({actionCreator:Pg,effect:(e,t)=>{var r=e.payload,n=t.getState(),{throttleDelay:i,throttledEvents:a}=n.eventSettings,o=a==="all"||(a==null?void 0:a.includes("mousemove"));pl!==null&&(cancelAnimationFrame(pl),pl=null),no!==null&&(typeof i!="number"||!o)&&(clearTimeout(no),no=null),ev=V2(r);var l=()=>{var s=t.getState(),u=Zc(s,s.tooltip.settings.shared);if(!ev){pl=null,no=null;return}if(u==="axis"){var c=q2(s,ev);(c==null?void 0:c.activeIndex)!=null?t.dispatch(oO({activeIndex:c.activeIndex,activeDataKey:void 0,activeCoordinate:c.activeCoordinate})):t.dispatch(aO())}pl=null,no=null};if(!o){l();return}i==="raf"?pl=requestAnimationFrame(l):typeof i=="number"&&no===null&&(no=setTimeout(l,i))}});function $re(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var z7={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},NC=sr({name:"rootProps",initialState:z7,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:z7.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),Bre=NC.reducer,{updateOptions:Fre}=NC.actions,Hre=null,Wre={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},MC=sr({name:"polarOptions",initialState:Hre,reducers:Wre}),{updatePolarOptions:Gse}=MC.actions,Ure=MC.reducer,TC=Vr("keyDown"),IC=Vr("focus"),_C=Vr("blur"),Rm=Dc(),vl=null,io=null,F0=null;Rm.startListening({actionCreator:TC,effect:(e,t)=>{F0=e.payload,vl!==null&&(cancelAnimationFrame(vl),vl=null);var r=t.getState(),{throttleDelay:n,throttledEvents:i}=r.eventSettings,a=i==="all"||i.includes("keydown");io!==null&&(typeof n!="number"||!a)&&(clearTimeout(io),io=null);var o=()=>{try{var l=t.getState(),s=l.rootProps.accessibilityLayer!==!1;if(!s)return;var{keyboardInteraction:u}=l.tooltip,c=F0;if(c!=="ArrowRight"&&c!=="ArrowLeft"&&c!=="Enter")return;var f=Tu(u,Vo(l),xs(l),ws(l)),d=f==null?-1:Number(f),m=!Number.isFinite(d)||d<0,g=oa(l),v=Vo(l),x=Zc(l,l.tooltip.settings.shared);if(c==="Enter"){if(m)return;var y=Vd(l,x,"hover",String(u.index));t.dispatch(qd({active:!u.active,activeIndex:u.index,activeCoordinate:y}));return}var w=aG(l),S=w==="left-to-right"?1:-1,A=c==="ArrowRight"?1:-1,P;if(m){var O=xs(l),j=ws(l),N=A*S,_=H=>({active:!1,index:String(H),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(P=-1,N>0){for(var z=0;z<v.length;z++)if(Tu(_(z),v,O,j)!=null){P=z;break}}else for(var R=v.length-1;R>=0;R--)if(Tu(_(R),v,O,j)!=null){P=R;break}if(P<0)return}else{P=d+A*S;var I=(g==null?void 0:g.length)||v.length;if(I===0||P>=I||P<0)return}var F=Vd(l,x,"hover",String(P));t.dispatch(qd({active:!0,activeIndex:P.toString(),activeCoordinate:F}))}finally{vl=null,io=null}};if(!a){o();return}n==="raf"?vl=requestAnimationFrame(o):typeof n=="number"&&io===null&&(o(),F0=null,io=setTimeout(()=>{F0?o():(io=null,vl=null)},n))}});Rm.startListening({actionCreator:IC,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=Zc(r,r.tooltip.settings.shared),l=Vd(r,o,"hover",String(a));t.dispatch(qd({active:!0,activeIndex:a,activeCoordinate:l}))}}}});Rm.startListening({actionCreator:_C,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;i.active&&t.dispatch(qd({active:!1,activeIndex:i.index,activeCoordinate:i.coordinate}))}}});function DC(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(r,n)=>{if(n==="currentTarget")return t;var i=Reflect.get(r,n);return typeof i=="function"?i.bind(r):i}})}var Jr=Vr("externalEvent"),zC=Dc(),H0=new Map,fu=new Map,tv=new Map;zC.startListening({actionCreator:Jr,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){var i=n.type,a=DC(n);tv.set(i,{handler:r,reactEvent:a});var o=H0.get(i);o!==void 0&&(cancelAnimationFrame(o),H0.delete(i));var l=t.getState(),{throttleDelay:s,throttledEvents:u}=l.eventSettings,c=u,f=c==="all"||(c==null?void 0:c.includes(i)),d=fu.get(i);d!==void 0&&(typeof s!="number"||!f)&&(clearTimeout(d),fu.delete(i));var m=()=>{var x=tv.get(i);try{if(!x)return;var{handler:y,reactEvent:w}=x,S=t.getState(),A={activeCoordinate:lY(S),activeDataKey:bO(S),activeIndex:Wa(S),activeLabel:xO(S),activeTooltipIndex:Wa(S),isTooltipActive:sY(S)};y&&y(A,w)}finally{H0.delete(i),fu.delete(i),tv.delete(i)}};if(!f){m();return}if(s==="raf"){var g=requestAnimationFrame(m);H0.set(i,g)}else if(typeof s=="number"){if(!fu.has(i)){m();var v=setTimeout(m,s);fu.set(i,v)}}else m()}}});var qre=$([Ws],e=>e.tooltipItemPayloads),Vre=$([qre,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var n=e.find(a=>a.settings.graphicalItemId===r);if(n!=null){var{getPosition:i}=n;if(i!=null)return i(t)}}}),RC=Vr("touchMove"),LC=Dc(),ao=null,fa=null,R7=null,du=null;LC.startListening({actionCreator:RC,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){du=DC(r);var n=t.getState(),{throttleDelay:i,throttledEvents:a}=n.eventSettings,o=a==="all"||a.includes("touchmove");ao!==null&&(cancelAnimationFrame(ao),ao=null),fa!==null&&(typeof i!="number"||!o)&&(clearTimeout(fa),fa=null),R7=Array.from(r.touches).map(s=>V2({clientX:s.clientX,clientY:s.clientY,currentTarget:r.currentTarget}));var l=()=>{if(du!=null){var s=t.getState(),u=Zc(s,s.tooltip.settings.shared);if(u==="axis"){var c,f=(c=R7)===null||c===void 0?void 0:c[0];if(f==null){ao=null,fa=null;return}var d=q2(s,f);(d==null?void 0:d.activeIndex)!=null&&t.dispatch(oO({activeIndex:d.activeIndex,activeDataKey:void 0,activeCoordinate:d.activeCoordinate}))}else if(u==="item"){var m,g=du.touches[0];if(document.elementFromPoint==null||g==null)return;var v=document.elementFromPoint(g.clientX,g.clientY);if(!v||!v.getAttribute)return;var x=v.getAttribute(CF),y=(m=v.getAttribute(BA))!==null&&m!==void 0?m:void 0,w=il(s).find(P=>P.id===y);if(x==null||w==null||y==null)return;var{dataKey:S}=w,A=Vre(s,x,y);t.dispatch(iO({activeDataKey:S,activeIndex:x,activeCoordinate:A,activeGraphicalItemId:y}))}ao=null,fa=null}};if(!o){l();return}i==="raf"?ao=requestAnimationFrame(l):typeof i=="number"&&fa===null&&(l(),du=null,fa=setTimeout(()=>{du?l():(fa=null,ao=null)},i))}}});var $C={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},BC=sr({name:"eventSettings",initialState:$C,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:Kre}=BC.actions,Gre=BC.reducer,Yre=sA({brush:WQ,cartesianAxis:AQ,chartData:aX,errorBars:iee,eventSettings:Gre,graphicalItems:JZ,layout:cF,legend:vH,options:eX,polarAxis:PZ,polarOptions:Ure,referenceElements:ZQ,renderedTicks:EJ,rootProps:Bre,tooltip:gG,zIndex:WY}),Xre=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return DB({reducer:Yre,preloadedState:t,middleware:n=>{var i;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([CC.middleware,jC.middleware,Rm.middleware,zC.middleware,LC.middleware])},enhancers:n=>{var i=n;return typeof n=="function"&&(i=n()),i.concat(kA({type:"raf"}))},devTools:{serialize:{replacer:$re},name:"recharts-".concat(r)}})};function Zre(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=It(),a=p.useRef(null);if(i)return r;a.current==null&&(a.current=Xre(t,n));var o=u4;return p.createElement(RH,{context:o,store:a.current},r)}function Qre(e){var{layout:t,margin:r}=e,n=Xe(),i=It();return p.useEffect(()=>{i||(n(lF(t)),n(oF(r)))},[n,i,t,r]),null}var Jre=p.memo(Qre,_s);function ene(e){var t=Xe();return p.useEffect(()=>{t(Fre(e))},[t,e]),null}var tne=e=>{var t=Xe();return p.useEffect(()=>{t(Kre(e))},[t,e]),null},rne=p.memo(tne,_s);function L7(e){var{zIndex:t,isPanorama:r}=e,n=p.useRef(null),i=Xe();return p.useLayoutEffect(()=>(n.current&&i(FY({zIndex:t,element:n.current,isPanorama:r})),()=>{i(HY({zIndex:t,isPanorama:r}))}),[i,t,r]),p.createElement("g",{tabIndex:-1,ref:n,className:"recharts-zIndex-layer_".concat(t)})}function $7(e){var{children:t,isPanorama:r}=e,n=ue(TY);if(!n||n.length===0)return t;var i=n.filter(o=>o<0),a=n.filter(o=>o>0);return p.createElement(p.Fragment,null,i.map(o=>p.createElement(L7,{key:o,zIndex:o,isPanorama:r})),t,a.map(o=>p.createElement(L7,{key:o,zIndex:o,isPanorama:r})))}var nne=["children"];function ine(e,t){if(e==null)return{};var r,n,i=ane(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ane(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function rh(){return rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rh.apply(null,arguments)}var one={width:"100%",height:"100%",display:"block"},lne=p.forwardRef((e,t)=>{var r=VA(),n=KA(),i=iP();if(!ai(r)||!ai(n))return null;var{children:a,otherAttributes:o,title:l,desc:s}=e,u,c;return o!=null&&(typeof o.tabIndex=="number"?u=o.tabIndex:u=i?0:void 0,typeof o.role=="string"?c=o.role:c=i?"application":void 0),p.createElement(bk,rh({},o,{title:l,desc:s,role:c,tabIndex:u,width:r,height:n,style:one,ref:t}),a)}),sne=e=>{var{children:t}=e,r=ue(om);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return p.createElement(bk,{width:n,height:i,x:o,y:a},t)},B7=p.forwardRef((e,t)=>{var{children:r}=e,n=ine(e,nne),i=It();return i?p.createElement(sne,null,p.createElement($7,{isPanorama:!0},r)):p.createElement(lne,rh({ref:t},n),p.createElement($7,{isPanorama:!1},r))});function une(){var e=Xe(),[t,r]=p.useState(null),n=ue(OF);return p.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;xe(a)&&a!==n&&e(uF(a))}},[t,e,n]),r}function F7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F7(Object(r),!0).forEach(function(n){fne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fne(e,t,r){return(t=dne(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dne(e){var t=hne(e,"string");return typeof t=="symbol"?t:t+""}function hne(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},za.apply(null,arguments)}var mne=()=>(mX(),null);function nh(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var pne=p.forwardRef((e,t)=>{var r,n,i=p.useRef(null),[a,o]=p.useState({containerWidth:nh((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:nh((n=e.style)===null||n===void 0?void 0:n.height)}),l=p.useCallback((u,c)=>{o(f=>{var d=Math.round(u),m=Math.round(c);return f.containerWidth===d&&f.containerHeight===m?f:{containerWidth:d,containerHeight:m}})},[]),s=p.useCallback(u=>{if(typeof t=="function"&&t(u),i.current!=null&&(i.current.disconnect(),i.current=null),u!=null&&typeof ResizeObserver<"u"){var{width:c,height:f}=u.getBoundingClientRect();l(c,f);var d=g=>{var v=g[0];if(v!=null){var{width:x,height:y}=v.contentRect;l(x,y)}},m=new ResizeObserver(d);m.observe(u),i.current=m}},[t,l]);return p.useEffect(()=>()=>{var u=i.current;u!=null&&u.disconnect()},[l]),p.createElement(p.Fragment,null,p.createElement(Rc,{width:a.containerWidth,height:a.containerHeight}),p.createElement("div",za({ref:s},e)))}),vne=p.forwardRef((e,t)=>{var{width:r,height:n}=e,[i,a]=p.useState({containerWidth:nh(r),containerHeight:nh(n)}),o=p.useCallback((s,u)=>{a(c=>{var f=Math.round(s),d=Math.round(u);return c.containerWidth===f&&c.containerHeight===d?c:{containerWidth:f,containerHeight:d}})},[]),l=p.useCallback(s=>{if(typeof t=="function"&&t(s),s!=null){var{width:u,height:c}=s.getBoundingClientRect();o(u,c)}},[t,o]);return p.createElement(p.Fragment,null,p.createElement(Rc,{width:i.containerWidth,height:i.containerHeight}),p.createElement("div",za({ref:l},e)))}),gne=p.forwardRef((e,t)=>{var{width:r,height:n}=e;return p.createElement(p.Fragment,null,p.createElement(Rc,{width:r,height:n}),p.createElement("div",za({ref:t},e)))}),yne=p.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?p.createElement(vne,za({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?p.createElement(gne,za({},e,{width:r,height:n,ref:t})):p.createElement(p.Fragment,null,p.createElement(Rc,{width:r,height:n}),p.createElement("div",za({ref:t},e)))});function xne(e){return e?pne:yne}var bne=p.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:l,onMouseDown:s,onMouseEnter:u,onMouseLeave:c,onMouseMove:f,onMouseUp:d,onTouchEnd:m,onTouchMove:g,onTouchStart:v,style:x,width:y,responsive:w,dispatchTouchEvents:S=!0}=e,A=p.useRef(null),P=Xe(),[O,j]=p.useState(null),[N,_]=p.useState(null),z=une(),R=g4(),I=(R==null?void 0:R.width)>0?R.width:y,F=(R==null?void 0:R.height)>0?R.height:i,H=p.useCallback(J=>{z(J),typeof t=="function"&&t(J),j(J),_(J),J!=null&&(A.current=J)},[z,t,j,_]),Z=p.useCallback(J=>{P(OC(J)),P(Jr({handler:a,reactEvent:J}))},[P,a]),X=p.useCallback(J=>{P(Pg(J)),P(Jr({handler:u,reactEvent:J}))},[P,u]),re=p.useCallback(J=>{P(aO()),P(Jr({handler:c,reactEvent:J}))},[P,c]),B=p.useCallback(J=>{P(Pg(J)),P(Jr({handler:f,reactEvent:J}))},[P,f]),W=p.useCallback(()=>{P(IC())},[P]),K=p.useCallback(()=>{P(_C())},[P]),le=p.useCallback(J=>{P(TC(J.key))},[P]),fe=p.useCallback(J=>{P(Jr({handler:o,reactEvent:J}))},[P,o]),He=p.useCallback(J=>{P(Jr({handler:l,reactEvent:J}))},[P,l]),Ie=p.useCallback(J=>{P(Jr({handler:s,reactEvent:J}))},[P,s]),lt=p.useCallback(J=>{P(Jr({handler:d,reactEvent:J}))},[P,d]),zt=p.useCallback(J=>{P(Jr({handler:v,reactEvent:J}))},[P,v]),xt=p.useCallback(J=>{S&&P(RC(J)),P(Jr({handler:g,reactEvent:J}))},[P,S,g]),Ze=p.useCallback(J=>{P(Jr({handler:m,reactEvent:J}))},[P,m]),te=xne(w);return p.createElement(OO.Provider,{value:O},p.createElement(TR.Provider,{value:N},p.createElement(te,{width:I??(x==null?void 0:x.width),height:F??(x==null?void 0:x.height),className:Oe("recharts-wrapper",n),style:cne({position:"relative",cursor:"default",width:I,height:F},x),onClick:Z,onContextMenu:fe,onDoubleClick:He,onFocus:W,onBlur:K,onKeyDown:le,onMouseDown:Ie,onMouseEnter:X,onMouseLeave:re,onMouseMove:B,onMouseUp:lt,onTouchEnd:Ze,onTouchMove:xt,onTouchStart:zt,ref:H},p.createElement(mne,null),r)))}),wne=["width","height","responsive","children","className","style","compact","title","desc"];function Sne(e,t){if(e==null)return{};var r,n,i=kne(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function kne(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ane=p.forwardRef((e,t)=>{var{width:r,height:n,responsive:i,children:a,className:o,style:l,compact:s,title:u,desc:c}=e,f=Sne(e,wne),d=qr(f);return s?p.createElement(p.Fragment,null,p.createElement(Rc,{width:r,height:n}),p.createElement(B7,{otherAttributes:d,title:u,desc:c},a)):p.createElement(bne,{className:o,style:l,width:r,height:n,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},p.createElement(B7,{otherAttributes:d,title:u,desc:c,ref:t},p.createElement(QQ,null,a)))});function Eg(){return Eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Eg.apply(null,arguments)}function H7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H7(Object(r),!0).forEach(function(n){Ene(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ene(e,t,r){return(t=One(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function One(e){var t=Cne(e,"string");return typeof t=="symbol"?t:t+""}function Cne(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jne={top:5,right:5,bottom:5,left:5},Nne=Pne({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:jne,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},$C),FC=p.forwardRef(function(t,r){var n,i=Tt(t.categoricalChartProps,Nne),{chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:l,tooltipPayloadSearcher:s,categoricalChartProps:u}=t,c={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:l,tooltipPayloadSearcher:s,eventEmitter:void 0};return p.createElement(Zre,{preloadedState:{options:c},reduxStoreName:(n=u.id)!==null&&n!==void 0?n:a},p.createElement(HQ,{chartData:u.data}),p.createElement(Jre,{layout:i.layout,margin:i.margin}),p.createElement(rne,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),p.createElement(ene,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),p.createElement(Ane,Eg({},i,{ref:r})))}),Mne=["axis","item"],Tne=p.forwardRef((e,t)=>p.createElement(FC,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Mne,tooltipPayloadSearcher:jO,categoricalChartProps:e,ref:t})),Ine=["axis"],_ne=p.forwardRef((e,t)=>p.createElement(FC,{chartName:"ComposedChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Ine,tooltipPayloadSearcher:jO,categoricalChartProps:e,ref:t}));const ih={axisLine:{stroke:Be,strokeWidth:1},tickLine:{stroke:Be,strokeWidth:1},tickSize:4,tick:{fill:nr,fontSize:11}},HC="#efefef",WC="#8c8c8c",ah=e=>typeof e=="number"?_e(e,3):String(e??""),Dne=e=>Math.ceil(Math.max(...e.map(t=>ah(t).length),1)*6.6+14);function zne({x:e=0,y:t=0,payload:r}){return h.jsx("text",{x:Number(e),y:Number(t)+12,textAnchor:"middle",fontSize:11,fill:Be,children:nc(String((r==null?void 0:r.value)??""),!0)})}function Rne({x:e=0,y:t=0,payload:r}){return h.jsx("text",{x:Number(e),y:Number(t)+10,textAnchor:"end",fontSize:11,fill:Be,transform:`rotate(-35 ${Number(e)} ${Number(t)+10})`,children:nc(String((r==null?void 0:r.value)??""),!0)})}function UC(e,t){return({viewBox:n})=>{const i=(n==null?void 0:n.x)??0,a=(n==null?void 0:n.y)??0,o=(n==null?void 0:n.width)??0;return t==="y"?h.jsx("text",{x:i+o-4,y:a-4,textAnchor:"end",fontSize:10,fill:nr,children:nc(e,!0)}):h.jsx("text",{x:i+4,y:a+10,fontSize:10,fill:nr,children:nc(e,!0)})}}function qC({items:e}){return e.length<2?null:h.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs",children:e.map(t=>h.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[h.jsx("svg",{width:"18",height:"8","aria-hidden":!0,children:t.marker==="dot"?h.jsx("circle",{cx:"9",cy:"4",r:"3",fill:t.color}):t.marker==="block"?h.jsx("rect",{x:"4",y:"0",width:"10",height:"8",fill:t.color}):h.jsx("line",{x1:"0",x2:"18",y1:"4",y2:"4",stroke:t.color,strokeWidth:"2",strokeDasharray:t.dashed?"4 3":void 0})}),t.name]},t.name))})}function VC({xLabel:e,yLabel:t,legend:r,children:n}){return h.jsxs("div",{className:"flex flex-col gap-1",children:[(t||r)&&h.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-x-4 gap-y-1",children:[h.jsx("span",{className:"text-2xs text-muted-foreground",children:t}),r]}),n,e&&h.jsx("div",{className:"text-right text-2xs text-muted-foreground",children:e})]})}function KC({title:e,rows:t}){return t.length===0?null:h.jsxs("div",{className:"border border-ink bg-white px-2 py-1.5 text-xs",children:[e&&h.jsx("div",{className:"num mb-1 text-muted-foreground",children:e}),t.map((r,n)=>h.jsxs("div",{className:"flex items-center gap-2",children:[r.color&&h.jsx("span",{className:"inline-block h-2 w-2",style:{background:r.color}}),h.jsx("span",{children:r.name}),h.jsx("span",{className:"num ml-auto pl-3 font-semibold",children:r.value})]},`${r.name}-${n}`))]})}function Lne(e){const t=(e.bars??[]).filter(i=>i&&typeof i=="object"),r=[];for(const i of t)for(const a of Object.keys(i.values??{}))r.includes(a)||r.push(a);return t.length===0||r.length===0?null:{rows:t.map(i=>{const a={label:String(i.label??"")};return r.forEach((o,l)=>{var u;const s=(u=i.values)==null?void 0:u[o];a[`b${l}`]=typeof s=="number"&&Number.isFinite(s)?s:null}),a}),names:r}}function $ne({plot:e,height:t=260}){const r=p.useMemo(()=>Lne(e),[e]);if(!r)return h.jsx(Ge,{});const n=r.names.map((s,u)=>({name:s,color:rd(u),marker:"block"})),i=new Map(r.names.map((s,u)=>[`b${u}`,s])),a=r.rows.length>6,o=Math.max(...r.rows.map(s=>String(s.label).length)),l=s=>{var c;if(!s.active||!((c=s.payload)!=null&&c.length))return null;const u=s.payload.map(f=>({name:i.get(String(f.dataKey))??String(f.name??""),value:_e(f.value),color:f.color}));return h.jsx(KC,{title:String(s.label??""),rows:u})};return h.jsx(VC,{xLabel:e.xLabel,yLabel:e.yLabel,legend:h.jsx(qC,{items:n}),children:h.jsx("div",{style:{height:a?t+Math.min(o*4.5,90):t},children:h.jsx(UA,{width:"100%",height:"100%",children:h.jsxs(Tne,{data:r.rows,margin:{top:10,right:12,bottom:0,left:0},barCategoryGap:"22%",barGap:1,children:[h.jsx(L2,{vertical:!1,stroke:HC}),h.jsx(W2,{dataKey:"label",type:"category",interval:0,...ih,tick:a?Rne:zne,height:a?Math.min(o*4.5,90)+16:void 0}),h.jsx(U2,{type:"number",width:"auto",tickFormatter:ah,...ih}),h.jsx(TO,{isAnimationActive:!1,cursor:{fill:"#f4f4f4"},content:l}),h.jsx(Jd,{y:0,stroke:Be,strokeWidth:1}),(e.refLines??[]).filter(s=>s.axis==="y"&&Number.isFinite(s.value)).map((s,u)=>h.jsx(Jd,{y:s.value,stroke:WC,strokeDasharray:"4 3",ifOverflow:"extendDomain",label:UC(s.label,"y")},`ref-${u}`)),r.names.map((s,u)=>h.jsx(SC,{dataKey:`b${u}`,name:s,fill:rd(u),isAnimationActive:!1,maxBarSize:48},s))]})})})})}const W7=6.8;function GC({data:e,caption:t}){var S;const[r,n]=Xy(),i=(e==null?void 0:e.rows)??[],a=Array.isArray(e==null?void 0:e.values)?e.values:[],o=Math.max(((S=e==null?void 0:e.cols)==null?void 0:S.length)??0,...a.map(A=>Array.isArray(A)?A.length:0)),l=Array.from({length:o},(A,P)=>{var O;return((O=e==null?void 0:e.cols)==null?void 0:O[P])??`${P+1}`});if(!e||a.length===0||o===0)return h.jsx(Ge,{});const s=a.map((A,P)=>i[P]??`${P+1}`),u=a.flat().filter(A=>Number.isFinite(A)),c=Math.max(...u.map(Math.abs),1e-12),f=Math.max(...s.map(A=>A.length))*W7+12,d=Math.max(...l.map(A=>A.length))*W7,m=d>Math.min(92,(n-f-2)/o)-6,g=m?Math.min(d,140)*.77:0,v=ad(Math.floor((n-f-g-2)/o+(m?.5:0)),34,92),x=m?Math.min(d*.72+12,110):20,y=f+o*v+(m?Math.max(0,g-v/2)+4:0),w=x+a.length*v;return h.jsxs("figure",{className:"flex flex-col gap-2",children:[h.jsx("div",{ref:r,className:"w-full min-w-0 overflow-x-auto",children:h.jsxs("svg",{width:y,height:w,role:"img","aria-label":"Matrix heatmap",className:"block",children:[l.map((A,P)=>{const O=f+P*v+v/2;return m?h.jsx("text",{x:O,y:x-6,transform:`rotate(-40 ${O} ${x-6})`,fontSize:11,fontFamily:"JetBrains Mono, Consolas, monospace",fill:Be,children:A},`c${P}`):h.jsx("text",{x:O,y:x-7,textAnchor:"middle",fontSize:11,fontFamily:"JetBrains Mono, Consolas, monospace",fill:Be,children:A},`c${P}`)}),a.map((A,P)=>h.jsxs("g",{children:[h.jsx("text",{x:f-8,y:x+P*v+v/2,dy:"0.32em",textAnchor:"end",fontSize:11,fontFamily:"JetBrains Mono, Consolas, monospace",fill:Be,children:s[P]}),l.map((O,j)=>{const N=Array.isArray(A)?A[j]:void 0,_=typeof N=="number"&&Number.isFinite(N),z=_?Math.log1p(Math.abs(N))/Math.log1p(c):0,R=f+j*v,I=x+P*v;return h.jsxs("g",{children:[h.jsx("rect",{x:R,y:I,width:v,height:v,fill:_?uR(Kn[0],.08+.92*z):"#fafafa",stroke:"#fff",strokeWidth:1}),h.jsx("text",{x:R+v/2,y:I+v/2,dy:"0.32em",textAnchor:"middle",fontSize:v>=56?13:11,fontWeight:P===j?700:400,fill:_&&z>.55?"#fff":_?Be:nr,children:_?_e(N,3):"—"})]},`v${P}-${j}`)})]},`r${P}`))]})}),h.jsxs("figcaption",{className:"text-xs text-muted-foreground",children:["Values in ",e.unit||"—","; shade ∝ log(1 + |value|).",t?` ${t}`:""]})]})}const U7=13;function Bne(e,t,r){const n=e.map((l,s)=>({y:l,i:s})).sort((l,s)=>s.y-l.y),i=new Array(e.length);let a=1/0;for(const l of n){const s=Math.min(l.y,a-U7);i[l.i]=s,a=s}const o=Math.min(...i);if(o<t){const l=t-o;let s=-1/0;for(const u of[...n].reverse()){const c=Math.max(i[u.i]+l,s+U7);i[u.i]=Math.min(c,r),s=i[u.i]}}return i}function Fne({levels:e,yLabel:t="Energy (GHz)",height:r=300}){const[n,i]=Xy(),a=(e??[]).filter(S=>S&&Number.isFinite(S.energy));if(a.length===0)return h.jsx(Ge,{});const o=[];for(const S of a)o.includes(S.group??"")||o.push(S.group??"");const l=o.some(S=>S!==""),s=a.map(S=>S.energy),{ticks:u,min:c,max:f}=pk(Math.min(0,...s),Math.max(...s),5),d={top:l?26:12,right:8,bottom:10,left:40},m=r,g=Math.max(i,240),v=g-d.left-d.right,x=S=>d.top+(m-d.top-d.bottom)*(1-(S-c)/(f-c||1)),y=v/o.length,w=Math.min(96,y*.38);return h.jsxs("div",{className:"flex flex-col gap-1",children:[h.jsx("span",{className:"text-2xs text-muted-foreground",children:t}),h.jsx("div",{ref:n,className:"w-full min-w-0 overflow-hidden",children:h.jsxs("svg",{width:g,height:m,role:"img","aria-label":"Energy level diagram",className:"block overflow-visible",children:[h.jsx("line",{x1:d.left,x2:d.left,y1:d.top,y2:m-d.bottom,stroke:Be}),u.map(S=>h.jsxs("g",{children:[h.jsx("line",{x1:d.left-4,x2:d.left,y1:x(S),y2:x(S),stroke:Be}),h.jsx("line",{x1:d.left,x2:g-d.right,y1:x(S),y2:x(S),stroke:wz,strokeWidth:.75}),h.jsx("text",{x:d.left-7,y:x(S),dy:"0.32em",textAnchor:"end",fontSize:11,fill:nr,children:_e(S,3)})]},S)),o.map((S,A)=>{const P=d.left+A*y+14,O=P+w,j=a.filter(R=>(R.group??"")===S),N=j.map(R=>x(R.energy)),_=Bne(N,d.top+4,m-d.bottom),z=o.length>1?rd(A):Be;return h.jsxs("g",{children:[l&&h.jsx("text",{x:P,y:12,fontSize:10,fontWeight:600,letterSpacing:"0.12em",fill:nr,children:S.toUpperCase()}),j.map((R,I)=>{const F=Math.abs(_[I]-N[I])>.5;return h.jsxs("g",{children:[h.jsx("line",{x1:P,x2:O,y1:N[I],y2:N[I],stroke:z,strokeWidth:2}),F&&h.jsx("polyline",{points:`${O},${N[I]} ${O+6},${_[I]} ${O+10},${_[I]}`,fill:"none",stroke:nr,strokeWidth:.75}),h.jsxs("text",{x:O+12,y:_[I],dy:"0.32em",fontSize:12,fill:Be,children:[R.label,h.jsx("tspan",{dx:8,fontSize:11,fill:nr,children:_e(R.energy)})]})]},`${R.label}-${I}`)})]},S||"levels")})]})})]})}const Ql=e=>typeof e=="number"&&Number.isFinite(e);function Hne(e){const t=e.logY===!0,r=new Map,n=[];if((e.series??[]).forEach((c,f)=>{if(!c||!Array.isArray(c.x)||!Array.isArray(c.y))return;const d=`s${f}`,m=[],g=Math.min(c.x.length,c.y.length);for(let v=0;v<g;v++){const x=c.x[v],y=c.y[v];if(!Ql(x)||!Ql(y)||t&&y<=0)continue;m.push({x,y});const w=r.get(x)??{x};c.kind!=="scatter"&&(w[d]=y),r.set(x,w)}m.length&&n.push({key:d,spec:c,color:rd(f),points:m})}),n.length===0)return null;const i=[...r.values()].sort((c,f)=>c.x-f.x),a=i.every(c=>Number.isInteger(c.x)),o=n.flatMap(c=>c.points.map(f=>f.y));for(const c of e.refLines??[])c.axis==="y"&&Ql(c.value)&&(!t||c.value>0)&&o.push(c.value);if(t){const{ticks:c,domain:f}=sR(Math.min(...o),Math.max(...o));return{rows:i,series:n,integerX:a,yDomain:f,yTicks:c}}const{ticks:l,min:s,max:u}=pk(Math.min(...o),Math.max(...o),5);return{rows:i,series:n,integerX:a,yDomain:[s,u],yTicks:l}}function Wne(e,t,r){var a,o,l;if(!e.active||!((a=e.payload)!=null&&a.length))return null;const n=e.payload.filter(s=>Ql(s.value)).map(s=>({name:t.get(String(s.dataKey))??String(s.name??""),value:_e(s.value),color:s.color})),i=(l=(o=e.payload[0])==null?void 0:o.payload)==null?void 0:l.x;return h.jsx(KC,{title:`${r?`${r} `:"x "}= ${_e(Ql(i)?i:Number(e.label))}`,rows:n})}function Une({plot:e,height:t=260}){const r=p.useMemo(()=>Hne(e),[e]);if(!r)return h.jsx(Ge,{});const n=e.logY===!0,i=new Map(r.series.map(l=>[l.key,l.spec.name])),a=r.series.map(l=>({name:l.spec.name,color:l.color,dashed:l.spec.dashed,marker:l.spec.kind==="scatter"?"dot":"line"})),o=(e.refLines??[]).filter(l=>Ql(l.value)&&(l.axis==="x"||!n||l.value>0));return h.jsx(VC,{xLabel:e.xLabel,yLabel:e.yLabel,legend:h.jsx(qC,{items:a}),children:h.jsx("div",{style:{height:t},children:h.jsx(UA,{width:"100%",height:"100%",children:h.jsxs(_ne,{data:r.rows,margin:{top:10,right:12,bottom:0,left:0},children:[h.jsx(L2,{vertical:!1,stroke:HC}),h.jsx(W2,{dataKey:"x",type:"number",domain:["dataMin","dataMax"],allowDecimals:!r.integerX,tickFormatter:ah,...ih}),h.jsx(U2,{type:"number",width:r.yTicks?Dne(r.yTicks):"auto",scale:n?"log":"auto",domain:r.yDomain,ticks:r.yTicks,allowDataOverflow:n,tickFormatter:ah,...ih}),h.jsx(EC,{range:[28,28]}),h.jsx(TO,{isAnimationActive:!1,cursor:{stroke:nr,strokeWidth:1,strokeDasharray:"2 2"},content:l=>Wne(l,i,e.xLabel)}),o.map((l,s)=>h.jsx(Jd,{...l.axis==="x"?{x:l.value}:{y:l.value},stroke:WC,strokeWidth:1,strokeDasharray:"4 3",ifOverflow:"extendDomain",label:UC(l.label,l.axis)},`ref-${s}`)),r.series.map(l=>l.spec.kind==="scatter"?h.jsx(AC,{name:l.spec.name,data:l.points,dataKey:"y",fill:l.color,isAnimationActive:!1},l.key):h.jsx(gC,{name:l.spec.name,dataKey:l.key,type:l.spec.kind==="step"?"stepAfter":"linear",stroke:l.color,strokeWidth:1.75,strokeDasharray:l.spec.dashed?"5 4":void 0,dot:l.points.length<=12?{r:2.5,strokeWidth:0,fill:l.color}:!1,activeDot:{r:3,strokeWidth:0},connectNulls:!0,isAnimationActive:!1},l.key))]})})})})}function YC({plot:e,height:t}){switch(e.kind){case"xy":return h.jsx(Une,{plot:e,height:t});case"bar":return h.jsx($ne,{plot:e,height:t});case"levels":return h.jsx(Fne,{levels:e.levels,yLabel:e.yLabel??"Energy (GHz)",height:t});case"heatmap":return h.jsx(GC,{data:e.heatmap});default:return h.jsxs(Ge,{children:["Unsupported plot kind “",String(e.kind),"”"]})}}function K2({plot:e,height:t,className:r}){return h.jsxs(Fh,{className:ne("flex min-w-0 flex-col",r),children:[h.jsx(Zy,{children:h.jsx(Qy,{children:e.title||e.id})}),h.jsx(Jy,{className:"flex-1",children:h.jsx(YC,{plot:e,height:t})}),e.caption&&h.jsx(gk,{className:"border-t border-rule px-4 py-2",children:e.caption})]})}function G2({plots:e,className:t}){return e.length===0?h.jsx(Ge,{}):h.jsx("div",{className:ne("grid grid-cols-1 gap-6 lg:grid-cols-2",t),children:e.map(r=>h.jsx(K2,{plot:r},r.id))})}const Ct="chip",oh=["qubit","resonator","bus","coupler","feedline","port"],Ra={qubit:{one:"Qubit",many:"Qubits"},resonator:{one:"Resonator",many:"Resonators"},bus:{one:"Bus",many:"Buses"},coupler:{one:"Coupler",many:"Couplers"},feedline:{one:"Feedline",many:"Feedlines"},port:{one:"Port",many:"Ports"}};function qne(e,t){return t==="readout"?e==="qubit"?"Readout":e==="feedline"?"Resonators":"Reads":t==="feedline"?"Feedline":t==="flux"?e==="port"?"Biases":"Flux":t==="port"?"Ports":t==="drive"?"Drive":"Coupled to"}const So=(e,t)=>e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"}),q7={fail:3,warn:2,pass:1,info:0};function XC(e){let t=null;for(const r of e)r&&r!=="info"&&(!t||q7[r]>q7[t])&&(t=r);return t}const Vne=new Set(["f_q_GHz","alpha_MHz","EJ_GHz","EC_GHz"]);function ZC(e,t){const r=/^(?:qubit|res|bus|coupler)_(.+)$/.exec(e);if(r)return{element:r[1]};const n=/^coupling_(.+)$/.exec(e);if(n){for(const i of t)if(n[1].startsWith(i)&&t.has(n[1].slice(i.length)))return{element:i,partner:n[1].slice(i.length)}}return{element:Ct}}function Kne(e){const t=new Map,r=(i,a)=>{let o=t.get(i);return o||t.set(i,o={id:i,kind:a,label:i,params:[],links:[]}),o};for(const i of e.sections){const a=/^qubit_(.+)$/.exec(i.id);a&&r(a[1],"qubit");const o=/^res_(.+)$/.exec(i.id);o&&r(o[1],"resonator")}for(const i of e.targets){const[a,o]=i.key.split(".",2);if(!a||!o)continue;const l=r(a,Vne.has(o)?"qubit":"resonator"),s={key:o.replace(/_(GHz|MHz)$/,""),label:i.label,symbol:i.symbol,value:i.value,unit:i.unit,status:i.status==="unknown"?null:i.status,target:Number.isFinite(i.target)?{value:i.target,tol:i.tol}:null,source:i.source};l.params.push(s)}const n=new Set(t.keys());for(const i of e.sections){const{element:a,partner:o}=ZC(i.id,n);o&&t.has(a)&&t.has(o)&&(t.get(a).links.push({to:o,role:"readout"}),t.get(o).links.push({to:a,role:"readout"}))}for(const i of t.values())i.status=XC(i.params.map(a=>a.status));return Gne([...t.values()])}function Gne(e){return[...e].sort((t,r)=>oh.indexOf(t.kind)-oh.indexOf(r.kind)||So(t.id,r.id))}function Yne(e,t){const r=e.elements.length===0,n=r?Kne(e):e.elements,i=new Map(n.map(l=>[l.id,l])),a=new Set(i.keys()),o=new Map;for(const l of t){const s=l.element?{element:l.element,partner:l.partner}:ZC(l.section,a);o.set(l.id,s.element===Ct||a.has(s.element)?s:{element:Ct})}return{elements:n,byId:i,owner:o,derived:r}}function Xne(e,t,r,n){const i=new Map(t.map(c=>[c.id,c])),a=new Map(t.map((c,f)=>[c.id,f])),o=new Map,l=new Map;for(const c of r){const f=n.owner.get(c.id)??{element:Ct};f.element===e&&!f.partner?o.set(c.section,[...o.get(c.section)??[],c]):f.partner&&(f.element===e||f.partner===e)&&l.set(c.section,[...l.get(c.section)??[],c])}const s=(c,f,d)=>({key:`${d?"p":"o"}-${c}`,section:i.get(c)??{id:c,letter:"",title:c===""?"Other parameters":c},cards:[...f].sort((m,g)=>m.index-g.index),pair:d}),u=(c,f)=>(a.get(c[0])??1e9)-(a.get(f[0])??1e9);return[...[...o.entries()].sort(u).map(([c,f])=>s(c,f,!1)),...[...l.entries()].sort(u).map(([c,f])=>s(c,f,!0))]}function Zne(e,t){const r=new Set;for(const i of e){const a=t.owner.get(i.id);a&&(r.add(a.element),a.partner&&r.add(a.partner))}const n=t.elements.filter(i=>r.has(i.id)).map(i=>i.id);return r.has(Ct)?[Ct,...n]:n}function Qne(e){const t=e.flatMap(r=>r.cards);return{values:t.length,fail:t.filter(r=>r.status==="fail").length,warn:t.filter(r=>r.status==="warn").length}}function V7({state:e}){var r;const t=((r=e.circuit)==null?void 0:r.nodes)??[];return t.length===0?h.jsx(Ge,{children:"No nodes"}):h.jsxs(Mn,{children:[h.jsx(Tn,{children:h.jsxs(mt,{className:"hover:bg-transparent",children:[h.jsx(ce,{children:"Node"}),h.jsx(ce,{children:"Label"}),h.jsx(ce,{children:"FEM net"})]})}),h.jsx(In,{children:t.map(n=>h.jsxs(mt,{children:[h.jsx(de,{className:"font-mono text-xs",children:n.id}),h.jsx(de,{children:n.label}),h.jsx(de,{className:"font-mono text-xs text-muted-foreground",children:n.ground?"ground":n.island||"—"})]},n.id))})]})}const rv=e=>[...new Set(e)];function Jne(e){const t=e.nodes??[],r=e.branches??[],n=new Set(t.filter(f=>f.ground).map(f=>f.id)),i=(f,d)=>f.nodes[0]===d?f.nodes[1]:f.nodes[0],a=t.filter(f=>!f.ground&&r.some(d=>(d.type==="JJ"||d.type==="SQUID")&&d.nodes.includes(f.id)&&n.has(i(d,f.id)))).map(f=>f.id).sort(So);if(a.length<2)return[];const o=t.filter(f=>f.ground).map(f=>({...f,pos:[.5,.95]})),l=(f,d,m,g)=>({id:f,title:d,circuit:{name:`${e.name} · ${f}`,nodes:[...o,...m.map((v,x)=>({...t.find(y=>y.id===v)??{id:v,label:v},pos:[(x+1)/(m.length+1),.35]}))],branches:g}}),s=new Set,u=[];for(const f of a){const d=rv(r.filter(w=>w.type==="C"&&w.nodes.includes(f)&&!n.has(i(w,f))&&!a.includes(i(w,f))).map(w=>i(w,f))),m=rv(r.filter(w=>w.type==="HANGER"&&d.some(S=>w.nodes.includes(S))).flatMap(w=>w.nodes.filter(S=>!d.includes(S)))),g=new Set([f,...d,...m]),v=w=>w.nodes.every(S=>m.includes(S)||n.has(S)),x=r.filter(w=>w.nodes.every(S=>g.has(S)||n.has(S))&&!v(w));x.forEach(w=>s.add(w.id));const y=x.filter(w=>w.type==="TL").map(w=>w.id);u.push(l(f,[f,...y].join(" · "),[f,...d,...m],x))}const c=r.filter(f=>!s.has(f.id));if(c.length){const f=rv(c.flatMap(m=>m.nodes).filter(m=>!n.has(m))).sort(So),d=c.every(m=>m.type==="R");u.push(l("rest",d?`Feedline ${f.join(", ")} · ports`:"Other branches",f,c))}return u}function eie({state:e}){var a;const{circuit:t}=e,r=Mc(e,"circuit"),n=t?Jne(t):[],i=((a=t==null?void 0:t.branches)==null?void 0:a.length)??0;return h.jsxs(Jo,{aside:t&&h.jsxs("span",{children:["Lumped model ",t.name]}),children:[n.length>0?h.jsxs(h.Fragment,{children:[h.jsx(ht,{title:"Schematics",aside:`one per qubit${n.some(o=>o.id==="rest")?" + the rest":""} · full netlist below`,children:h.jsx("div",{className:"grid grid-cols-1 gap-x-8 gap-y-8 lg:grid-cols-2",children:n.map(o=>h.jsxs("figure",{className:"min-w-0 border-t border-rule pt-2",children:[h.jsx("figcaption",{className:"mb-1 text-[13px] font-semibold",children:o.title}),h.jsx(r5,{circuit:o.circuit})]},o.id))})}),h.jsx(ht,{title:"Netlist",className:"xl:col-span-8",aside:`${i} branches · extracted vs. design`,children:h.jsx(Qb,{branches:(t==null?void 0:t.branches)??[]})}),h.jsx(ht,{title:"Nodes",className:"xl:col-span-4",children:h.jsx(V7,{state:e})})]}):h.jsxs(h.Fragment,{children:[h.jsx(ht,{title:"Schematic",className:"xl:col-span-7",aside:t==null?void 0:t.name,children:h.jsx(r5,{circuit:t})}),h.jsxs("div",{className:"col-span-12 flex min-w-0 flex-col gap-10 xl:col-span-5",children:[h.jsx(ht,{title:"Branches",aside:"extracted vs. design",children:h.jsx(Qb,{branches:(t==null?void 0:t.branches)??[]})}),h.jsx(ht,{title:"Nodes",children:h.jsx(V7,{state:e})})]})]}),r.length>0&&h.jsx(ht,{title:"Plots",children:h.jsx(G2,{plots:r})})]})}function tie({estimates:e}){if(e.length===0)return h.jsx(Ge,{children:"No estimator results yet"});const t=[];for(const r of e)for(const n of Object.keys(r.values??{}))t.includes(n)||t.push(n);return h.jsxs(Mn,{children:[h.jsx(Tn,{children:h.jsxs(mt,{className:"hover:bg-transparent",children:[h.jsx(ce,{children:"Parameter"}),h.jsx(ce,{className:"text-right",children:"Target"}),t.map(r=>h.jsx(ce,{className:"text-right font-mono normal-case tracking-normal",children:r},r)),h.jsx(ce,{children:"Chosen by"}),h.jsx(ce,{className:"text-right",children:"Spread"}),h.jsx(ce,{className:"w-12"})]})}),h.jsx(In,{children:e.map(r=>{const n=r.chosenBy in(r.values??{});return h.jsxs(mt,{children:[h.jsxs(de,{children:[h.jsxs("div",{className:"font-semibold",children:[h.jsx($o,{value:r.label})," ",h.jsx("span",{className:"text-xs font-normal text-muted-foreground",children:r.unit})]}),h.jsx("div",{className:"font-mono text-2xs text-muted-foreground",children:r.param})]}),h.jsx(de,{className:"num text-right text-muted-foreground",children:_e(r.target)}),t.map(i=>{var l;const a=(l=r.values)==null?void 0:l[i],o=i===r.chosenBy;return h.jsx(de,{className:ne("num text-right",o?"font-bold":"text-muted-foreground"),children:a===void 0?"":_e(a)},i)}),h.jsxs(de,{className:"font-mono text-xs",children:[r.chosenBy||"—",!n&&r.chosen!==null&&h.jsxs("span",{className:"num ml-1 font-sans font-bold",children:["= ",_e(r.chosen)]})]}),h.jsx(de,{className:ne("num whitespace-nowrap text-right",r.flagged&&"font-semibold text-signal"),children:$h(r.spreadRel)}),h.jsx(de,{className:"text-right",children:r.flagged&&h.jsxs("span",{className:"inline-flex items-center gap-1 text-2xs font-bold uppercase tracking-label text-signal",title:"Estimator spread above tolerance — a modelling problem, not a design problem",children:[h.jsx("span",{className:"inline-block h-2 w-2 bg-signal","aria-hidden":!0}),"Flag"]})})]},r.param)})})]})}class Lr{constructor(t,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new Lr(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class un{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new un(r,Lr.range(this,t))}}class G{constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+t,i,a,o=r&&r.loc;if(o&&o.start<=o.end){var l=o.lexer.input;i=o.start,a=o.end,i===l.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var s=l.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+l.slice(i-15,i):u=l.slice(0,i);var c;a+15<l.length?c=l.slice(a,a+15)+"…":c=l.slice(a),n+=u+s+c}var f=new Error(n);return f.name="ParseError",f.__proto__=G.prototype,f.position=i,i!=null&&a!=null&&(f.length=a-i),f.rawMessage=t,f}}G.prototype.__proto__=Error.prototype;var rie=function(t,r){return t.indexOf(r)!==-1},nie=function(t,r){return t===void 0?r:t},iie=/([A-Z])/g,aie=function(t){return t.replace(iie,"-$1").toLowerCase()},oie={"&":"&",">":">","<":"<",'"':""","'":"'"},lie=/[&><"']/g;function sie(e){return String(e).replace(lie,t=>oie[t])}var QC=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},uie=function(t){var r=QC(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},cie=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},fie=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},he={contains:rie,deflt:nie,escape:sie,hyphenate:aie,getBaseElem:QC,isCharacterBox:uie,protocolFromUrl:fie},kf={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function die(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Y2{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in kf)if(kf.hasOwnProperty(r)){var n=kf[r];this[r]=t[r]!==void 0?n.processor?n.processor(t[r]):t[r]:die(n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new G("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=he.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}let da=class{constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return Wn[hie[this.id]]}sub(){return Wn[mie[this.id]]}fracNum(){return Wn[pie[this.id]]}fracDen(){return Wn[vie[this.id]]}cramp(){return Wn[gie[this.id]]}text(){return Wn[yie[this.id]]}isTight(){return this.size>=2}};var X2=0,lh=1,Jl=2,Li=3,wc=4,ln=5,Ss=6,mr=7,Wn=[new da(X2,0,!1),new da(lh,0,!0),new da(Jl,1,!1),new da(Li,1,!0),new da(wc,2,!1),new da(ln,2,!0),new da(Ss,3,!1),new da(mr,3,!0)],hie=[wc,ln,wc,ln,Ss,mr,Ss,mr],mie=[ln,ln,ln,ln,mr,mr,mr,mr],pie=[Jl,Li,wc,ln,Ss,mr,Ss,mr],vie=[Li,Li,ln,ln,mr,mr,mr,mr],gie=[lh,lh,Li,Li,ln,ln,mr,mr],yie=[X2,lh,Jl,Li,Jl,Li,Jl,Li],pe={DISPLAY:Wn[X2],TEXT:Wn[Jl],SCRIPT:Wn[wc],SCRIPTSCRIPT:Wn[Ss]},Og=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function xie(e){for(var t=0;t<Og.length;t++)for(var r=Og[t],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(e>=i[0]&&e<=i[1])return r.name}return null}var Af=[];Og.forEach(e=>e.blocks.forEach(t=>Af.push(...t)));function JC(e){for(var t=0;t<Af.length;t+=2)if(e>=Af[t]&&e<=Af[t+1])return!0;return!1}var gl=80,bie=function(t,r){return"M95,"+(622+t+r)+`
|
|
105
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
106
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
107
|
+
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
108
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
109
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
110
|
+
l`+t/2.075+" -"+t+`
|
|
111
|
+
c5.3,-9.3,12,-14,20,-14
|
|
112
|
+
H400000v`+(40+t)+`H845.2724
|
|
113
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
114
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
115
|
+
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},wie=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
|
|
116
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
117
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
118
|
+
l`+t/2.084+" -"+t+`
|
|
119
|
+
c4.7,-7.3,11,-11,19,-11
|
|
120
|
+
H40000v`+(40+t)+`H1012.3
|
|
121
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
122
|
+
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
123
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
124
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
125
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Sie=function(t,r){return"M983 "+(10+t+r)+`
|
|
126
|
+
l`+t/3.13+" -"+t+`
|
|
127
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
128
|
+
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
129
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
130
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
131
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
132
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
133
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
134
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},kie=function(t,r){return"M424,"+(2398+t+r)+`
|
|
135
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
136
|
+
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
137
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
138
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
139
|
+
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
140
|
+
v`+(40+t)+`H1014.6
|
|
141
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
142
|
+
c-2,6,-10,9,-24,9
|
|
143
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
|
|
144
|
+
h400000v`+(40+t)+"h-400000z"},Aie=function(t,r){return"M473,"+(2713+t+r)+`
|
|
145
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
146
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
147
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
148
|
+
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
149
|
+
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
150
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
151
|
+
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},Pie=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},Eie=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
|
|
152
|
+
H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
153
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
154
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
155
|
+
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},Oie=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=bie(r,gl);break;case"sqrtSize1":i=wie(r,gl);break;case"sqrtSize2":i=Sie(r,gl);break;case"sqrtSize3":i=kie(r,gl);break;case"sqrtSize4":i=Aie(r,gl);break;case"sqrtTall":i=Eie(r,gl,n)}return i},Cie=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},K7={doubleleftarrow:`M262 157
|
|
156
|
+
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
157
|
+
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
158
|
+
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
159
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
160
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
161
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
162
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
163
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
164
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
165
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
166
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
167
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
168
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
169
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
170
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
171
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
172
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
173
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
174
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
175
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
176
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
177
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
178
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
179
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
180
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
181
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
182
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
183
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
184
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
185
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
186
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
187
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
188
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
189
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
190
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
191
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
192
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
193
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
194
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
195
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
196
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
197
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
198
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
199
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
200
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
201
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
202
|
+
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
203
|
+
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
204
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
205
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
206
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
207
|
+
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
208
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
209
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
210
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
211
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
212
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
213
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
214
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
215
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
216
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
217
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
218
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
219
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
220
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
221
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
222
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
223
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
224
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
225
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
226
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
227
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
228
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
229
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
230
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
231
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
232
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
233
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
234
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
235
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
236
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
237
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
238
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
239
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
240
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
241
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
242
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
243
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
244
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
245
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
246
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
247
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
248
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
249
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
250
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
251
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
252
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
253
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
254
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
255
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
256
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
257
|
+
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
258
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
259
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
260
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
261
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
262
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
263
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
264
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
265
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
266
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
267
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
268
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
269
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
270
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
271
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
272
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
273
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
274
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
275
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
276
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
277
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
278
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
279
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
280
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
281
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
282
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
283
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
284
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
285
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
286
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
287
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
288
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
289
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
290
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
291
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
292
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
293
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
294
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
295
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
296
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
297
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
298
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
299
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
300
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
301
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
302
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
303
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
304
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
305
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
306
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
307
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
308
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
309
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
310
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
311
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
312
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
313
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
314
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
315
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
316
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
317
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
318
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
319
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
320
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
321
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
322
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
323
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
324
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
325
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
326
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
327
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
328
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
329
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
330
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},jie=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
|
|
331
|
+
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
|
|
332
|
+
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
333
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
334
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
335
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
336
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|
337
|
+
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|
338
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
339
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
|
|
340
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|
341
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|
342
|
+
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|
343
|
+
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
344
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
345
|
+
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
346
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
347
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
348
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
349
|
+
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
350
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
351
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
352
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|
353
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
354
|
+
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
355
|
+
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
356
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
357
|
+
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
358
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class e0{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return he.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var Xn={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},W0={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},G7={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Nie(e,t){Xn[e]=t}function Z2(e,t,r){if(!Xn[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=Xn[t][n];if(!i&&e[0]in G7&&(n=G7[e[0]].charCodeAt(0),i=Xn[t][n]),!i&&r==="text"&&JC(n)&&(i=Xn[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var nv={};function Mie(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!nv[t]){var r=nv[t]={cssEmPerMu:W0.quad[t]/18};for(var n in W0)W0.hasOwnProperty(n)&&(r[n]=W0[n][t])}return nv[t]}var Tie=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Y7=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],X7=function(t,r){return r.size<2?t:Tie[t-1][r.size-1]};class Ei{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Ei.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Y7[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return new Ei(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:X7(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Y7[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=X7(Ei.BASESIZE,t);return this.size===r&&this.textSize===Ei.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Ei.BASESIZE?["sizing","reset-size"+this.size,"size"+Ei.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Mie(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ei.BASESIZE=6;var Cg={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Iie={ex:!0,em:!0,mu:!0},ej=function(t){return typeof t!="string"&&(t=t.unit),t in Cg||t in Iie||t==="ex"},it=function(t,r){var n;if(t.unit in Cg)n=Cg[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new G("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},Q=function(t){return+t.toFixed(4)+"em"},qa=function(t){return t.filter(r=>r).join(" ")},tj=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},rj=function(t){var r=document.createElement(t);r.className=qa(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&r.setAttribute(i,this.attributes[i]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},_ie=/[\s"'>/=\x00-\x1f]/,nj=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+he.escape(qa(this.classes))+'"');var n="";for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=he.hyphenate(i)+":"+this.style[i]+";");n&&(r+=' style="'+he.escape(n)+'"');for(var a in this.attributes)if(this.attributes.hasOwnProperty(a)){if(_ie.test(a))throw new G("Invalid attribute name '"+a+"'");r+=" "+a+'="'+he.escape(this.attributes[a])+'"'}r+=">";for(var o=0;o<this.children.length;o++)r+=this.children[o].toMarkup();return r+="</"+t+">",r};class t0{constructor(t,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,tj.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return he.contains(this.classes,t)}toNode(){return rj.call(this,"span")}toMarkup(){return nj.call(this,"span")}}class Q2{constructor(t,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,tj.call(this,r,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return he.contains(this.classes,t)}toNode(){return rj.call(this,"a")}toMarkup(){return nj.call(this,"a")}}class Die{constructor(t,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=n}hasClass(t){return he.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t='<img src="'+he.escape(this.src)+'"'+(' alt="'+he.escape(this.alt)+'"'),r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=he.hyphenate(n)+":"+this.style[n]+";");return r&&(t+=' style="'+he.escape(r)+'"'),t+="'/>",t}}var zie={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class pn{constructor(t,r,n,i,a,o,l,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=a||0,this.width=o||0,this.classes=l||[],this.style=s||{},this.maxFontSize=0;var u=xie(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=zie[this.text])}hasClass(t){return he.contains(this.classes,t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=Q(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=qa(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(r=r||document.createElement("span"),r.style[n]=this.style[n]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=he.escape(qa(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=he.hyphenate(i)+":"+this.style[i]+";");n&&(t=!0,r+=' style="'+he.escape(n)+'"');var a=he.escape(this.text);return t?(r+=">",r+=a,r+="</span>",r):a}}class Zi{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+he.escape(this.attributes[r])+'"');t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class Va{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",K7[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+he.escape(this.alternate)+'"/>':'<path d="'+he.escape(K7[this.pathName])+'"/>'}}class jg{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+he.escape(this.attributes[r])+'"');return t+="/>",t}}function Z7(e){if(e instanceof pn)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Rie(e){if(e instanceof t0)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var Lie={bin:1,close:1,inner:1,open:1,punct:1,rel:1},$ie={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Fe={math:{},text:{}};function b(e,t,r,n,i,a){Fe[e][i]={font:t,group:r,replace:n},a&&n&&(Fe[e][n]=Fe[e][i])}var k="math",U="text",E="main",M="ams",et="accent-token",ie="bin",br="close",Us="inner",me="mathord",kt="op-token",Xr="open",Lm="punct",T="rel",la="spacing",D="textord";b(k,E,T,"≡","\\equiv",!0);b(k,E,T,"≺","\\prec",!0);b(k,E,T,"≻","\\succ",!0);b(k,E,T,"∼","\\sim",!0);b(k,E,T,"⊥","\\perp");b(k,E,T,"⪯","\\preceq",!0);b(k,E,T,"⪰","\\succeq",!0);b(k,E,T,"≃","\\simeq",!0);b(k,E,T,"∣","\\mid",!0);b(k,E,T,"≪","\\ll",!0);b(k,E,T,"≫","\\gg",!0);b(k,E,T,"≍","\\asymp",!0);b(k,E,T,"∥","\\parallel");b(k,E,T,"⋈","\\bowtie",!0);b(k,E,T,"⌣","\\smile",!0);b(k,E,T,"⊑","\\sqsubseteq",!0);b(k,E,T,"⊒","\\sqsupseteq",!0);b(k,E,T,"≐","\\doteq",!0);b(k,E,T,"⌢","\\frown",!0);b(k,E,T,"∋","\\ni",!0);b(k,E,T,"∝","\\propto",!0);b(k,E,T,"⊢","\\vdash",!0);b(k,E,T,"⊣","\\dashv",!0);b(k,E,T,"∋","\\owns");b(k,E,Lm,".","\\ldotp");b(k,E,Lm,"⋅","\\cdotp");b(k,E,D,"#","\\#");b(U,E,D,"#","\\#");b(k,E,D,"&","\\&");b(U,E,D,"&","\\&");b(k,E,D,"ℵ","\\aleph",!0);b(k,E,D,"∀","\\forall",!0);b(k,E,D,"ℏ","\\hbar",!0);b(k,E,D,"∃","\\exists",!0);b(k,E,D,"∇","\\nabla",!0);b(k,E,D,"♭","\\flat",!0);b(k,E,D,"ℓ","\\ell",!0);b(k,E,D,"♮","\\natural",!0);b(k,E,D,"♣","\\clubsuit",!0);b(k,E,D,"℘","\\wp",!0);b(k,E,D,"♯","\\sharp",!0);b(k,E,D,"♢","\\diamondsuit",!0);b(k,E,D,"ℜ","\\Re",!0);b(k,E,D,"♡","\\heartsuit",!0);b(k,E,D,"ℑ","\\Im",!0);b(k,E,D,"♠","\\spadesuit",!0);b(k,E,D,"§","\\S",!0);b(U,E,D,"§","\\S");b(k,E,D,"¶","\\P",!0);b(U,E,D,"¶","\\P");b(k,E,D,"†","\\dag");b(U,E,D,"†","\\dag");b(U,E,D,"†","\\textdagger");b(k,E,D,"‡","\\ddag");b(U,E,D,"‡","\\ddag");b(U,E,D,"‡","\\textdaggerdbl");b(k,E,br,"⎱","\\rmoustache",!0);b(k,E,Xr,"⎰","\\lmoustache",!0);b(k,E,br,"⟯","\\rgroup",!0);b(k,E,Xr,"⟮","\\lgroup",!0);b(k,E,ie,"∓","\\mp",!0);b(k,E,ie,"⊖","\\ominus",!0);b(k,E,ie,"⊎","\\uplus",!0);b(k,E,ie,"⊓","\\sqcap",!0);b(k,E,ie,"∗","\\ast");b(k,E,ie,"⊔","\\sqcup",!0);b(k,E,ie,"◯","\\bigcirc",!0);b(k,E,ie,"∙","\\bullet",!0);b(k,E,ie,"‡","\\ddagger");b(k,E,ie,"≀","\\wr",!0);b(k,E,ie,"⨿","\\amalg");b(k,E,ie,"&","\\And");b(k,E,T,"⟵","\\longleftarrow",!0);b(k,E,T,"⇐","\\Leftarrow",!0);b(k,E,T,"⟸","\\Longleftarrow",!0);b(k,E,T,"⟶","\\longrightarrow",!0);b(k,E,T,"⇒","\\Rightarrow",!0);b(k,E,T,"⟹","\\Longrightarrow",!0);b(k,E,T,"↔","\\leftrightarrow",!0);b(k,E,T,"⟷","\\longleftrightarrow",!0);b(k,E,T,"⇔","\\Leftrightarrow",!0);b(k,E,T,"⟺","\\Longleftrightarrow",!0);b(k,E,T,"↦","\\mapsto",!0);b(k,E,T,"⟼","\\longmapsto",!0);b(k,E,T,"↗","\\nearrow",!0);b(k,E,T,"↩","\\hookleftarrow",!0);b(k,E,T,"↪","\\hookrightarrow",!0);b(k,E,T,"↘","\\searrow",!0);b(k,E,T,"↼","\\leftharpoonup",!0);b(k,E,T,"⇀","\\rightharpoonup",!0);b(k,E,T,"↙","\\swarrow",!0);b(k,E,T,"↽","\\leftharpoondown",!0);b(k,E,T,"⇁","\\rightharpoondown",!0);b(k,E,T,"↖","\\nwarrow",!0);b(k,E,T,"⇌","\\rightleftharpoons",!0);b(k,M,T,"≮","\\nless",!0);b(k,M,T,"","\\@nleqslant");b(k,M,T,"","\\@nleqq");b(k,M,T,"⪇","\\lneq",!0);b(k,M,T,"≨","\\lneqq",!0);b(k,M,T,"","\\@lvertneqq");b(k,M,T,"⋦","\\lnsim",!0);b(k,M,T,"⪉","\\lnapprox",!0);b(k,M,T,"⊀","\\nprec",!0);b(k,M,T,"⋠","\\npreceq",!0);b(k,M,T,"⋨","\\precnsim",!0);b(k,M,T,"⪹","\\precnapprox",!0);b(k,M,T,"≁","\\nsim",!0);b(k,M,T,"","\\@nshortmid");b(k,M,T,"∤","\\nmid",!0);b(k,M,T,"⊬","\\nvdash",!0);b(k,M,T,"⊭","\\nvDash",!0);b(k,M,T,"⋪","\\ntriangleleft");b(k,M,T,"⋬","\\ntrianglelefteq",!0);b(k,M,T,"⊊","\\subsetneq",!0);b(k,M,T,"","\\@varsubsetneq");b(k,M,T,"⫋","\\subsetneqq",!0);b(k,M,T,"","\\@varsubsetneqq");b(k,M,T,"≯","\\ngtr",!0);b(k,M,T,"","\\@ngeqslant");b(k,M,T,"","\\@ngeqq");b(k,M,T,"⪈","\\gneq",!0);b(k,M,T,"≩","\\gneqq",!0);b(k,M,T,"","\\@gvertneqq");b(k,M,T,"⋧","\\gnsim",!0);b(k,M,T,"⪊","\\gnapprox",!0);b(k,M,T,"⊁","\\nsucc",!0);b(k,M,T,"⋡","\\nsucceq",!0);b(k,M,T,"⋩","\\succnsim",!0);b(k,M,T,"⪺","\\succnapprox",!0);b(k,M,T,"≆","\\ncong",!0);b(k,M,T,"","\\@nshortparallel");b(k,M,T,"∦","\\nparallel",!0);b(k,M,T,"⊯","\\nVDash",!0);b(k,M,T,"⋫","\\ntriangleright");b(k,M,T,"⋭","\\ntrianglerighteq",!0);b(k,M,T,"","\\@nsupseteqq");b(k,M,T,"⊋","\\supsetneq",!0);b(k,M,T,"","\\@varsupsetneq");b(k,M,T,"⫌","\\supsetneqq",!0);b(k,M,T,"","\\@varsupsetneqq");b(k,M,T,"⊮","\\nVdash",!0);b(k,M,T,"⪵","\\precneqq",!0);b(k,M,T,"⪶","\\succneqq",!0);b(k,M,T,"","\\@nsubseteqq");b(k,M,ie,"⊴","\\unlhd");b(k,M,ie,"⊵","\\unrhd");b(k,M,T,"↚","\\nleftarrow",!0);b(k,M,T,"↛","\\nrightarrow",!0);b(k,M,T,"⇍","\\nLeftarrow",!0);b(k,M,T,"⇏","\\nRightarrow",!0);b(k,M,T,"↮","\\nleftrightarrow",!0);b(k,M,T,"⇎","\\nLeftrightarrow",!0);b(k,M,T,"△","\\vartriangle");b(k,M,D,"ℏ","\\hslash");b(k,M,D,"▽","\\triangledown");b(k,M,D,"◊","\\lozenge");b(k,M,D,"Ⓢ","\\circledS");b(k,M,D,"®","\\circledR");b(U,M,D,"®","\\circledR");b(k,M,D,"∡","\\measuredangle",!0);b(k,M,D,"∄","\\nexists");b(k,M,D,"℧","\\mho");b(k,M,D,"Ⅎ","\\Finv",!0);b(k,M,D,"⅁","\\Game",!0);b(k,M,D,"‵","\\backprime");b(k,M,D,"▲","\\blacktriangle");b(k,M,D,"▼","\\blacktriangledown");b(k,M,D,"■","\\blacksquare");b(k,M,D,"⧫","\\blacklozenge");b(k,M,D,"★","\\bigstar");b(k,M,D,"∢","\\sphericalangle",!0);b(k,M,D,"∁","\\complement",!0);b(k,M,D,"ð","\\eth",!0);b(U,E,D,"ð","ð");b(k,M,D,"╱","\\diagup");b(k,M,D,"╲","\\diagdown");b(k,M,D,"□","\\square");b(k,M,D,"□","\\Box");b(k,M,D,"◊","\\Diamond");b(k,M,D,"¥","\\yen",!0);b(U,M,D,"¥","\\yen",!0);b(k,M,D,"✓","\\checkmark",!0);b(U,M,D,"✓","\\checkmark");b(k,M,D,"ℶ","\\beth",!0);b(k,M,D,"ℸ","\\daleth",!0);b(k,M,D,"ℷ","\\gimel",!0);b(k,M,D,"ϝ","\\digamma",!0);b(k,M,D,"ϰ","\\varkappa");b(k,M,Xr,"┌","\\@ulcorner",!0);b(k,M,br,"┐","\\@urcorner",!0);b(k,M,Xr,"└","\\@llcorner",!0);b(k,M,br,"┘","\\@lrcorner",!0);b(k,M,T,"≦","\\leqq",!0);b(k,M,T,"⩽","\\leqslant",!0);b(k,M,T,"⪕","\\eqslantless",!0);b(k,M,T,"≲","\\lesssim",!0);b(k,M,T,"⪅","\\lessapprox",!0);b(k,M,T,"≊","\\approxeq",!0);b(k,M,ie,"⋖","\\lessdot");b(k,M,T,"⋘","\\lll",!0);b(k,M,T,"≶","\\lessgtr",!0);b(k,M,T,"⋚","\\lesseqgtr",!0);b(k,M,T,"⪋","\\lesseqqgtr",!0);b(k,M,T,"≑","\\doteqdot");b(k,M,T,"≓","\\risingdotseq",!0);b(k,M,T,"≒","\\fallingdotseq",!0);b(k,M,T,"∽","\\backsim",!0);b(k,M,T,"⋍","\\backsimeq",!0);b(k,M,T,"⫅","\\subseteqq",!0);b(k,M,T,"⋐","\\Subset",!0);b(k,M,T,"⊏","\\sqsubset",!0);b(k,M,T,"≼","\\preccurlyeq",!0);b(k,M,T,"⋞","\\curlyeqprec",!0);b(k,M,T,"≾","\\precsim",!0);b(k,M,T,"⪷","\\precapprox",!0);b(k,M,T,"⊲","\\vartriangleleft");b(k,M,T,"⊴","\\trianglelefteq");b(k,M,T,"⊨","\\vDash",!0);b(k,M,T,"⊪","\\Vvdash",!0);b(k,M,T,"⌣","\\smallsmile");b(k,M,T,"⌢","\\smallfrown");b(k,M,T,"≏","\\bumpeq",!0);b(k,M,T,"≎","\\Bumpeq",!0);b(k,M,T,"≧","\\geqq",!0);b(k,M,T,"⩾","\\geqslant",!0);b(k,M,T,"⪖","\\eqslantgtr",!0);b(k,M,T,"≳","\\gtrsim",!0);b(k,M,T,"⪆","\\gtrapprox",!0);b(k,M,ie,"⋗","\\gtrdot");b(k,M,T,"⋙","\\ggg",!0);b(k,M,T,"≷","\\gtrless",!0);b(k,M,T,"⋛","\\gtreqless",!0);b(k,M,T,"⪌","\\gtreqqless",!0);b(k,M,T,"≖","\\eqcirc",!0);b(k,M,T,"≗","\\circeq",!0);b(k,M,T,"≜","\\triangleq",!0);b(k,M,T,"∼","\\thicksim");b(k,M,T,"≈","\\thickapprox");b(k,M,T,"⫆","\\supseteqq",!0);b(k,M,T,"⋑","\\Supset",!0);b(k,M,T,"⊐","\\sqsupset",!0);b(k,M,T,"≽","\\succcurlyeq",!0);b(k,M,T,"⋟","\\curlyeqsucc",!0);b(k,M,T,"≿","\\succsim",!0);b(k,M,T,"⪸","\\succapprox",!0);b(k,M,T,"⊳","\\vartriangleright");b(k,M,T,"⊵","\\trianglerighteq");b(k,M,T,"⊩","\\Vdash",!0);b(k,M,T,"∣","\\shortmid");b(k,M,T,"∥","\\shortparallel");b(k,M,T,"≬","\\between",!0);b(k,M,T,"⋔","\\pitchfork",!0);b(k,M,T,"∝","\\varpropto");b(k,M,T,"◀","\\blacktriangleleft");b(k,M,T,"∴","\\therefore",!0);b(k,M,T,"∍","\\backepsilon");b(k,M,T,"▶","\\blacktriangleright");b(k,M,T,"∵","\\because",!0);b(k,M,T,"⋘","\\llless");b(k,M,T,"⋙","\\gggtr");b(k,M,ie,"⊲","\\lhd");b(k,M,ie,"⊳","\\rhd");b(k,M,T,"≂","\\eqsim",!0);b(k,E,T,"⋈","\\Join");b(k,M,T,"≑","\\Doteq",!0);b(k,M,ie,"∔","\\dotplus",!0);b(k,M,ie,"∖","\\smallsetminus");b(k,M,ie,"⋒","\\Cap",!0);b(k,M,ie,"⋓","\\Cup",!0);b(k,M,ie,"⩞","\\doublebarwedge",!0);b(k,M,ie,"⊟","\\boxminus",!0);b(k,M,ie,"⊞","\\boxplus",!0);b(k,M,ie,"⋇","\\divideontimes",!0);b(k,M,ie,"⋉","\\ltimes",!0);b(k,M,ie,"⋊","\\rtimes",!0);b(k,M,ie,"⋋","\\leftthreetimes",!0);b(k,M,ie,"⋌","\\rightthreetimes",!0);b(k,M,ie,"⋏","\\curlywedge",!0);b(k,M,ie,"⋎","\\curlyvee",!0);b(k,M,ie,"⊝","\\circleddash",!0);b(k,M,ie,"⊛","\\circledast",!0);b(k,M,ie,"⋅","\\centerdot");b(k,M,ie,"⊺","\\intercal",!0);b(k,M,ie,"⋒","\\doublecap");b(k,M,ie,"⋓","\\doublecup");b(k,M,ie,"⊠","\\boxtimes",!0);b(k,M,T,"⇢","\\dashrightarrow",!0);b(k,M,T,"⇠","\\dashleftarrow",!0);b(k,M,T,"⇇","\\leftleftarrows",!0);b(k,M,T,"⇆","\\leftrightarrows",!0);b(k,M,T,"⇚","\\Lleftarrow",!0);b(k,M,T,"↞","\\twoheadleftarrow",!0);b(k,M,T,"↢","\\leftarrowtail",!0);b(k,M,T,"↫","\\looparrowleft",!0);b(k,M,T,"⇋","\\leftrightharpoons",!0);b(k,M,T,"↶","\\curvearrowleft",!0);b(k,M,T,"↺","\\circlearrowleft",!0);b(k,M,T,"↰","\\Lsh",!0);b(k,M,T,"⇈","\\upuparrows",!0);b(k,M,T,"↿","\\upharpoonleft",!0);b(k,M,T,"⇃","\\downharpoonleft",!0);b(k,E,T,"⊶","\\origof",!0);b(k,E,T,"⊷","\\imageof",!0);b(k,M,T,"⊸","\\multimap",!0);b(k,M,T,"↭","\\leftrightsquigarrow",!0);b(k,M,T,"⇉","\\rightrightarrows",!0);b(k,M,T,"⇄","\\rightleftarrows",!0);b(k,M,T,"↠","\\twoheadrightarrow",!0);b(k,M,T,"↣","\\rightarrowtail",!0);b(k,M,T,"↬","\\looparrowright",!0);b(k,M,T,"↷","\\curvearrowright",!0);b(k,M,T,"↻","\\circlearrowright",!0);b(k,M,T,"↱","\\Rsh",!0);b(k,M,T,"⇊","\\downdownarrows",!0);b(k,M,T,"↾","\\upharpoonright",!0);b(k,M,T,"⇂","\\downharpoonright",!0);b(k,M,T,"⇝","\\rightsquigarrow",!0);b(k,M,T,"⇝","\\leadsto");b(k,M,T,"⇛","\\Rrightarrow",!0);b(k,M,T,"↾","\\restriction");b(k,E,D,"‘","`");b(k,E,D,"$","\\$");b(U,E,D,"$","\\$");b(U,E,D,"$","\\textdollar");b(k,E,D,"%","\\%");b(U,E,D,"%","\\%");b(k,E,D,"_","\\_");b(U,E,D,"_","\\_");b(U,E,D,"_","\\textunderscore");b(k,E,D,"∠","\\angle",!0);b(k,E,D,"∞","\\infty",!0);b(k,E,D,"′","\\prime");b(k,E,D,"△","\\triangle");b(k,E,D,"Γ","\\Gamma",!0);b(k,E,D,"Δ","\\Delta",!0);b(k,E,D,"Θ","\\Theta",!0);b(k,E,D,"Λ","\\Lambda",!0);b(k,E,D,"Ξ","\\Xi",!0);b(k,E,D,"Π","\\Pi",!0);b(k,E,D,"Σ","\\Sigma",!0);b(k,E,D,"Υ","\\Upsilon",!0);b(k,E,D,"Φ","\\Phi",!0);b(k,E,D,"Ψ","\\Psi",!0);b(k,E,D,"Ω","\\Omega",!0);b(k,E,D,"A","Α");b(k,E,D,"B","Β");b(k,E,D,"E","Ε");b(k,E,D,"Z","Ζ");b(k,E,D,"H","Η");b(k,E,D,"I","Ι");b(k,E,D,"K","Κ");b(k,E,D,"M","Μ");b(k,E,D,"N","Ν");b(k,E,D,"O","Ο");b(k,E,D,"P","Ρ");b(k,E,D,"T","Τ");b(k,E,D,"X","Χ");b(k,E,D,"¬","\\neg",!0);b(k,E,D,"¬","\\lnot");b(k,E,D,"⊤","\\top");b(k,E,D,"⊥","\\bot");b(k,E,D,"∅","\\emptyset");b(k,M,D,"∅","\\varnothing");b(k,E,me,"α","\\alpha",!0);b(k,E,me,"β","\\beta",!0);b(k,E,me,"γ","\\gamma",!0);b(k,E,me,"δ","\\delta",!0);b(k,E,me,"ϵ","\\epsilon",!0);b(k,E,me,"ζ","\\zeta",!0);b(k,E,me,"η","\\eta",!0);b(k,E,me,"θ","\\theta",!0);b(k,E,me,"ι","\\iota",!0);b(k,E,me,"κ","\\kappa",!0);b(k,E,me,"λ","\\lambda",!0);b(k,E,me,"μ","\\mu",!0);b(k,E,me,"ν","\\nu",!0);b(k,E,me,"ξ","\\xi",!0);b(k,E,me,"ο","\\omicron",!0);b(k,E,me,"π","\\pi",!0);b(k,E,me,"ρ","\\rho",!0);b(k,E,me,"σ","\\sigma",!0);b(k,E,me,"τ","\\tau",!0);b(k,E,me,"υ","\\upsilon",!0);b(k,E,me,"ϕ","\\phi",!0);b(k,E,me,"χ","\\chi",!0);b(k,E,me,"ψ","\\psi",!0);b(k,E,me,"ω","\\omega",!0);b(k,E,me,"ε","\\varepsilon",!0);b(k,E,me,"ϑ","\\vartheta",!0);b(k,E,me,"ϖ","\\varpi",!0);b(k,E,me,"ϱ","\\varrho",!0);b(k,E,me,"ς","\\varsigma",!0);b(k,E,me,"φ","\\varphi",!0);b(k,E,ie,"∗","*",!0);b(k,E,ie,"+","+");b(k,E,ie,"−","-",!0);b(k,E,ie,"⋅","\\cdot",!0);b(k,E,ie,"∘","\\circ",!0);b(k,E,ie,"÷","\\div",!0);b(k,E,ie,"±","\\pm",!0);b(k,E,ie,"×","\\times",!0);b(k,E,ie,"∩","\\cap",!0);b(k,E,ie,"∪","\\cup",!0);b(k,E,ie,"∖","\\setminus",!0);b(k,E,ie,"∧","\\land");b(k,E,ie,"∨","\\lor");b(k,E,ie,"∧","\\wedge",!0);b(k,E,ie,"∨","\\vee",!0);b(k,E,D,"√","\\surd");b(k,E,Xr,"⟨","\\langle",!0);b(k,E,Xr,"∣","\\lvert");b(k,E,Xr,"∥","\\lVert");b(k,E,br,"?","?");b(k,E,br,"!","!");b(k,E,br,"⟩","\\rangle",!0);b(k,E,br,"∣","\\rvert");b(k,E,br,"∥","\\rVert");b(k,E,T,"=","=");b(k,E,T,":",":");b(k,E,T,"≈","\\approx",!0);b(k,E,T,"≅","\\cong",!0);b(k,E,T,"≥","\\ge");b(k,E,T,"≥","\\geq",!0);b(k,E,T,"←","\\gets");b(k,E,T,">","\\gt",!0);b(k,E,T,"∈","\\in",!0);b(k,E,T,"","\\@not");b(k,E,T,"⊂","\\subset",!0);b(k,E,T,"⊃","\\supset",!0);b(k,E,T,"⊆","\\subseteq",!0);b(k,E,T,"⊇","\\supseteq",!0);b(k,M,T,"⊈","\\nsubseteq",!0);b(k,M,T,"⊉","\\nsupseteq",!0);b(k,E,T,"⊨","\\models");b(k,E,T,"←","\\leftarrow",!0);b(k,E,T,"≤","\\le");b(k,E,T,"≤","\\leq",!0);b(k,E,T,"<","\\lt",!0);b(k,E,T,"→","\\rightarrow",!0);b(k,E,T,"→","\\to");b(k,M,T,"≱","\\ngeq",!0);b(k,M,T,"≰","\\nleq",!0);b(k,E,la," ","\\ ");b(k,E,la," ","\\space");b(k,E,la," ","\\nobreakspace");b(U,E,la," ","\\ ");b(U,E,la," "," ");b(U,E,la," ","\\space");b(U,E,la," ","\\nobreakspace");b(k,E,la,null,"\\nobreak");b(k,E,la,null,"\\allowbreak");b(k,E,Lm,",",",");b(k,E,Lm,";",";");b(k,M,ie,"⊼","\\barwedge",!0);b(k,M,ie,"⊻","\\veebar",!0);b(k,E,ie,"⊙","\\odot",!0);b(k,E,ie,"⊕","\\oplus",!0);b(k,E,ie,"⊗","\\otimes",!0);b(k,E,D,"∂","\\partial",!0);b(k,E,ie,"⊘","\\oslash",!0);b(k,M,ie,"⊚","\\circledcirc",!0);b(k,M,ie,"⊡","\\boxdot",!0);b(k,E,ie,"△","\\bigtriangleup");b(k,E,ie,"▽","\\bigtriangledown");b(k,E,ie,"†","\\dagger");b(k,E,ie,"⋄","\\diamond");b(k,E,ie,"⋆","\\star");b(k,E,ie,"◃","\\triangleleft");b(k,E,ie,"▹","\\triangleright");b(k,E,Xr,"{","\\{");b(U,E,D,"{","\\{");b(U,E,D,"{","\\textbraceleft");b(k,E,br,"}","\\}");b(U,E,D,"}","\\}");b(U,E,D,"}","\\textbraceright");b(k,E,Xr,"{","\\lbrace");b(k,E,br,"}","\\rbrace");b(k,E,Xr,"[","\\lbrack",!0);b(U,E,D,"[","\\lbrack",!0);b(k,E,br,"]","\\rbrack",!0);b(U,E,D,"]","\\rbrack",!0);b(k,E,Xr,"(","\\lparen",!0);b(k,E,br,")","\\rparen",!0);b(U,E,D,"<","\\textless",!0);b(U,E,D,">","\\textgreater",!0);b(k,E,Xr,"⌊","\\lfloor",!0);b(k,E,br,"⌋","\\rfloor",!0);b(k,E,Xr,"⌈","\\lceil",!0);b(k,E,br,"⌉","\\rceil",!0);b(k,E,D,"\\","\\backslash");b(k,E,D,"∣","|");b(k,E,D,"∣","\\vert");b(U,E,D,"|","\\textbar",!0);b(k,E,D,"∥","\\|");b(k,E,D,"∥","\\Vert");b(U,E,D,"∥","\\textbardbl");b(U,E,D,"~","\\textasciitilde");b(U,E,D,"\\","\\textbackslash");b(U,E,D,"^","\\textasciicircum");b(k,E,T,"↑","\\uparrow",!0);b(k,E,T,"⇑","\\Uparrow",!0);b(k,E,T,"↓","\\downarrow",!0);b(k,E,T,"⇓","\\Downarrow",!0);b(k,E,T,"↕","\\updownarrow",!0);b(k,E,T,"⇕","\\Updownarrow",!0);b(k,E,kt,"∐","\\coprod");b(k,E,kt,"⋁","\\bigvee");b(k,E,kt,"⋀","\\bigwedge");b(k,E,kt,"⨄","\\biguplus");b(k,E,kt,"⋂","\\bigcap");b(k,E,kt,"⋃","\\bigcup");b(k,E,kt,"∫","\\int");b(k,E,kt,"∫","\\intop");b(k,E,kt,"∬","\\iint");b(k,E,kt,"∭","\\iiint");b(k,E,kt,"∏","\\prod");b(k,E,kt,"∑","\\sum");b(k,E,kt,"⨂","\\bigotimes");b(k,E,kt,"⨁","\\bigoplus");b(k,E,kt,"⨀","\\bigodot");b(k,E,kt,"∮","\\oint");b(k,E,kt,"∯","\\oiint");b(k,E,kt,"∰","\\oiiint");b(k,E,kt,"⨆","\\bigsqcup");b(k,E,kt,"∫","\\smallint");b(U,E,Us,"…","\\textellipsis");b(k,E,Us,"…","\\mathellipsis");b(U,E,Us,"…","\\ldots",!0);b(k,E,Us,"…","\\ldots",!0);b(k,E,Us,"⋯","\\@cdots",!0);b(k,E,Us,"⋱","\\ddots",!0);b(k,E,D,"⋮","\\varvdots");b(U,E,D,"⋮","\\varvdots");b(k,E,et,"ˊ","\\acute");b(k,E,et,"ˋ","\\grave");b(k,E,et,"¨","\\ddot");b(k,E,et,"~","\\tilde");b(k,E,et,"ˉ","\\bar");b(k,E,et,"˘","\\breve");b(k,E,et,"ˇ","\\check");b(k,E,et,"^","\\hat");b(k,E,et,"⃗","\\vec");b(k,E,et,"˙","\\dot");b(k,E,et,"˚","\\mathring");b(k,E,me,"","\\@imath");b(k,E,me,"","\\@jmath");b(k,E,D,"ı","ı");b(k,E,D,"ȷ","ȷ");b(U,E,D,"ı","\\i",!0);b(U,E,D,"ȷ","\\j",!0);b(U,E,D,"ß","\\ss",!0);b(U,E,D,"æ","\\ae",!0);b(U,E,D,"œ","\\oe",!0);b(U,E,D,"ø","\\o",!0);b(U,E,D,"Æ","\\AE",!0);b(U,E,D,"Œ","\\OE",!0);b(U,E,D,"Ø","\\O",!0);b(U,E,et,"ˊ","\\'");b(U,E,et,"ˋ","\\`");b(U,E,et,"ˆ","\\^");b(U,E,et,"˜","\\~");b(U,E,et,"ˉ","\\=");b(U,E,et,"˘","\\u");b(U,E,et,"˙","\\.");b(U,E,et,"¸","\\c");b(U,E,et,"˚","\\r");b(U,E,et,"ˇ","\\v");b(U,E,et,"¨",'\\"');b(U,E,et,"˝","\\H");b(U,E,et,"◯","\\textcircled");var ij={"--":!0,"---":!0,"``":!0,"''":!0};b(U,E,D,"–","--",!0);b(U,E,D,"–","\\textendash");b(U,E,D,"—","---",!0);b(U,E,D,"—","\\textemdash");b(U,E,D,"‘","`",!0);b(U,E,D,"‘","\\textquoteleft");b(U,E,D,"’","'",!0);b(U,E,D,"’","\\textquoteright");b(U,E,D,"“","``",!0);b(U,E,D,"“","\\textquotedblleft");b(U,E,D,"”","''",!0);b(U,E,D,"”","\\textquotedblright");b(k,E,D,"°","\\degree",!0);b(U,E,D,"°","\\degree");b(U,E,D,"°","\\textdegree",!0);b(k,E,D,"£","\\pounds");b(k,E,D,"£","\\mathsterling",!0);b(U,E,D,"£","\\pounds");b(U,E,D,"£","\\textsterling",!0);b(k,M,D,"✠","\\maltese");b(U,M,D,"✠","\\maltese");var Q7='0123456789/@."';for(var iv=0;iv<Q7.length;iv++){var J7=Q7.charAt(iv);b(k,E,D,J7,J7)}var ew='0123456789!@*()-=+";:?/.,';for(var av=0;av<ew.length;av++){var tw=ew.charAt(av);b(U,E,D,tw,tw)}var sh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var ov=0;ov<sh.length;ov++){var U0=sh.charAt(ov);b(k,E,me,U0,U0),b(U,E,D,U0,U0)}b(k,M,D,"C","ℂ");b(U,M,D,"C","ℂ");b(k,M,D,"H","ℍ");b(U,M,D,"H","ℍ");b(k,M,D,"N","ℕ");b(U,M,D,"N","ℕ");b(k,M,D,"P","ℙ");b(U,M,D,"P","ℙ");b(k,M,D,"Q","ℚ");b(U,M,D,"Q","ℚ");b(k,M,D,"R","ℝ");b(U,M,D,"R","ℝ");b(k,M,D,"Z","ℤ");b(U,M,D,"Z","ℤ");b(k,E,me,"h","ℎ");b(U,E,me,"h","ℎ");var ve="";for(var ur=0;ur<sh.length;ur++){var ut=sh.charAt(ur);ve=String.fromCharCode(55349,56320+ur),b(k,E,me,ut,ve),b(U,E,D,ut,ve),ve=String.fromCharCode(55349,56372+ur),b(k,E,me,ut,ve),b(U,E,D,ut,ve),ve=String.fromCharCode(55349,56424+ur),b(k,E,me,ut,ve),b(U,E,D,ut,ve),ve=String.fromCharCode(55349,56580+ur),b(k,E,me,ut,ve),b(U,E,D,ut,ve),ve=String.fromCharCode(55349,56684+ur),b(k,E,me,ut,ve),b(U,E,D,ut,ve),ve=String.fromCharCode(55349,56736+ur),b(k,E,me,ut,ve),b(U,E,D,ut,ve),ve=String.fromCharCode(55349,56788+ur),b(k,E,me,ut,ve),b(U,E,D,ut,ve),ve=String.fromCharCode(55349,56840+ur),b(k,E,me,ut,ve),b(U,E,D,ut,ve),ve=String.fromCharCode(55349,56944+ur),b(k,E,me,ut,ve),b(U,E,D,ut,ve),ur<26&&(ve=String.fromCharCode(55349,56632+ur),b(k,E,me,ut,ve),b(U,E,D,ut,ve),ve=String.fromCharCode(55349,56476+ur),b(k,E,me,ut,ve),b(U,E,D,ut,ve))}ve="𝕜";b(k,E,me,"k",ve);b(U,E,D,"k",ve);for(var oo=0;oo<10;oo++){var ha=oo.toString();ve=String.fromCharCode(55349,57294+oo),b(k,E,me,ha,ve),b(U,E,D,ha,ve),ve=String.fromCharCode(55349,57314+oo),b(k,E,me,ha,ve),b(U,E,D,ha,ve),ve=String.fromCharCode(55349,57324+oo),b(k,E,me,ha,ve),b(U,E,D,ha,ve),ve=String.fromCharCode(55349,57334+oo),b(k,E,me,ha,ve),b(U,E,D,ha,ve)}var Ng="ÐÞþ";for(var lv=0;lv<Ng.length;lv++){var q0=Ng.charAt(lv);b(k,E,me,q0,q0),b(U,E,D,q0,q0)}var V0=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],rw=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Bie=function(t,r){var n=t.charCodeAt(0),i=t.charCodeAt(1),a=(n-55296)*1024+(i-56320)+65536,o=r==="math"?0:1;if(119808<=a&&a<120484){var l=Math.floor((a-119808)/26);return[V0[l][2],V0[l][o]]}else if(120782<=a&&a<=120831){var s=Math.floor((a-120782)/10);return[rw[s][2],rw[s][o]]}else{if(a===120485||a===120486)return[V0[0][2],V0[0][o]];if(120486<a&&a<120782)return["",""];throw new G("Unsupported character: "+t)}},$m=function(t,r,n){return Fe[n][t]&&Fe[n][t].replace&&(t=Fe[n][t].replace),{value:t,metrics:Z2(t,r,n)}},Sn=function(t,r,n,i,a){var o=$m(t,r,n),l=o.metrics;t=o.value;var s;if(l){var u=l.italic;(n==="text"||i&&i.font==="mathit")&&(u=0),s=new pn(t,l.height,l.depth,u,l.skew,l.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),s=new pn(t,0,0,0,0,0,a);if(i){s.maxFontSize=i.sizeMultiplier,i.style.isTight()&&s.classes.push("mtight");var c=i.getColor();c&&(s.style.color=c)}return s},Fie=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&$m(t,"Main-Bold",r).metrics?Sn(t,"Main-Bold",r,n,i.concat(["mathbf"])):t==="\\"||Fe[r][t].font==="main"?Sn(t,"Main-Regular",r,n,i):Sn(t,"AMS-Regular",r,n,i.concat(["amsrm"]))},Hie=function(t,r,n,i,a){return a!=="textord"&&$m(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Wie=function(t,r,n){var i=t.mode,a=t.text,o=["mord"],l=i==="math"||i==="text"&&r.font,s=l?r.font:r.fontFamily,u="",c="";if(a.charCodeAt(0)===55349&&([u,c]=Bie(a,i)),u.length>0)return Sn(a,u,i,r,o.concat(c));if(s){var f,d;if(s==="boldsymbol"){var m=Hie(a,i,r,o,n);f=m.fontName,d=[m.fontClass]}else l?(f=lj[s].fontName,d=[s]):(f=K0(s,r.fontWeight,r.fontShape),d=[s,r.fontWeight,r.fontShape]);if($m(a,f,i).metrics)return Sn(a,f,i,r,o.concat(d));if(ij.hasOwnProperty(a)&&f.slice(0,10)==="Typewriter"){for(var g=[],v=0;v<a.length;v++)g.push(Sn(a[v],f,i,r,o.concat(d)));return oj(g)}}if(n==="mathord")return Sn(a,"Math-Italic",i,r,o.concat(["mathnormal"]));if(n==="textord"){var x=Fe[i][a]&&Fe[i][a].font;if(x==="ams"){var y=K0("amsrm",r.fontWeight,r.fontShape);return Sn(a,y,i,r,o.concat("amsrm",r.fontWeight,r.fontShape))}else if(x==="main"||!x){var w=K0("textrm",r.fontWeight,r.fontShape);return Sn(a,w,i,r,o.concat(r.fontWeight,r.fontShape))}else{var S=K0(x,r.fontWeight,r.fontShape);return Sn(a,S,i,r,o.concat(S,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},Uie=(e,t)=>{if(qa(e.classes)!==qa(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},qie=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof pn&&n instanceof pn&&Uie(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},J2=function(t){for(var r=0,n=0,i=0,a=0;a<t.children.length;a++){var o=t.children[a];o.height>r&&(r=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},wr=function(t,r,n,i){var a=new t0(t,r,n,i);return J2(a),a},aj=(e,t,r,n)=>new t0(e,t,r,n),Vie=function(t,r,n){var i=wr([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=Q(i.height),i.maxFontSize=1,i},Kie=function(t,r,n,i){var a=new Q2(t,r,n,i);return J2(a),a},oj=function(t){var r=new e0(t);return J2(r),r},Gie=function(t,r){return t instanceof e0?wr([],[t],r):t},Yie=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,o=1;o<r.length;o++){var l=-r[o].shift-a-r[o].elem.depth,s=l-(r[o-1].elem.height+r[o-1].elem.depth);a=a+l,n.push({type:"kern",size:s}),n.push(r[o])}return{children:n,depth:i}}var u;if(t.positionType==="top"){for(var c=t.positionData,f=0;f<t.children.length;f++){var d=t.children[f];c-=d.type==="kern"?d.size:d.elem.height+d.elem.depth}u=c}else if(t.positionType==="bottom")u=-t.positionData;else{var m=t.children[0];if(m.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")u=-m.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")u=-m.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:u}},Xie=function(t,r){for(var{children:n,depth:i}=Yie(t),a=0,o=0;o<n.length;o++){var l=n[o];if(l.type==="elem"){var s=l.elem;a=Math.max(a,s.maxFontSize,s.height)}}a+=2;var u=wr(["pstrut"],[]);u.style.height=Q(a);for(var c=[],f=i,d=i,m=i,g=0;g<n.length;g++){var v=n[g];if(v.type==="kern")m+=v.size;else{var x=v.elem,y=v.wrapperClasses||[],w=v.wrapperStyle||{},S=wr(y,[u,x],void 0,w);S.style.top=Q(-a-m-x.depth),v.marginLeft&&(S.style.marginLeft=v.marginLeft),v.marginRight&&(S.style.marginRight=v.marginRight),c.push(S),m+=x.height+x.depth}f=Math.min(f,m),d=Math.max(d,m)}var A=wr(["vlist"],c);A.style.height=Q(d);var P;if(f<0){var O=wr([],[]),j=wr(["vlist"],[O]);j.style.height=Q(-f);var N=wr(["vlist-s"],[new pn("")]);P=[wr(["vlist-r"],[A,N]),wr(["vlist-r"],[j])]}else P=[wr(["vlist-r"],[A])];var _=wr(["vlist-t"],P);return P.length===2&&_.classes.push("vlist-t2"),_.height=d,_.depth=-f,_},Zie=(e,t)=>{var r=wr(["mspace"],[],t),n=it(e,t);return r.style.marginRight=Q(n),r},K0=function(t,r,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},lj={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},sj={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Qie=function(t,r){var[n,i,a]=sj[t],o=new Va(n),l=new Zi([o],{width:Q(i),height:Q(a),style:"width:"+Q(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),s=aj(["overlay"],[l],r);return s.height=a,s.style.height=Q(a),s.style.width=Q(i),s},L={fontMap:lj,makeSymbol:Sn,mathsym:Fie,makeSpan:wr,makeSvgSpan:aj,makeLineSpan:Vie,makeAnchor:Kie,makeFragment:oj,wrapFragment:Gie,makeVList:Xie,makeOrd:Wie,makeGlue:Zie,staticSvg:Qie,svgData:sj,tryCombineChars:qie},tt={number:3,unit:"mu"},lo={number:4,unit:"mu"},yi={number:5,unit:"mu"},Jie={mord:{mop:tt,mbin:lo,mrel:yi,minner:tt},mop:{mord:tt,mop:tt,mrel:yi,minner:tt},mbin:{mord:lo,mop:lo,mopen:lo,minner:lo},mrel:{mord:yi,mop:yi,mopen:yi,minner:yi},mopen:{},mclose:{mop:tt,mbin:lo,mrel:yi,minner:tt},mpunct:{mord:tt,mop:tt,mrel:yi,mopen:tt,mclose:tt,mpunct:tt,minner:tt},minner:{mord:tt,mop:tt,mbin:lo,mrel:yi,mopen:tt,mpunct:tt,minner:tt}},eae={mord:{mop:tt},mop:{mord:tt,mop:tt},mbin:{},mrel:{},mopen:{},mclose:{mop:tt},mpunct:{},minner:{mop:tt}},uj={},uh={},ch={};function ee(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,l={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},s=0;s<r.length;++s)uj[r[s]]=l;t&&(a&&(uh[t]=a),o&&(ch[t]=o))}function ll(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;ee({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var fh=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},yt=function(t){return t.type==="ordgroup"?t.body:[t]},Qi=L.makeSpan,tae=["leftmost","mbin","mopen","mrel","mop","mpunct"],rae=["rightmost","mrel","mclose","mpunct"],nae={display:pe.DISPLAY,text:pe.TEXT,script:pe.SCRIPT,scriptscript:pe.SCRIPTSCRIPT},iae={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Mt=function(t,r,n,i){i===void 0&&(i=[null,null]);for(var a=[],o=0;o<t.length;o++){var l=Ee(t[o],r);if(l instanceof e0){var s=l.children;a.push(...s)}else a.push(l)}if(L.tryCombineChars(a),!n)return a;var u=r;if(t.length===1){var c=t[0];c.type==="sizing"?u=r.havingSize(c.size):c.type==="styling"&&(u=r.havingStyle(nae[c.style]))}var f=Qi([i[0]||"leftmost"],[],r),d=Qi([i[1]||"rightmost"],[],r),m=n==="root";return nw(a,(g,v)=>{var x=v.classes[0],y=g.classes[0];x==="mbin"&&he.contains(rae,y)?v.classes[0]="mord":y==="mbin"&&he.contains(tae,x)&&(g.classes[0]="mord")},{node:f},d,m),nw(a,(g,v)=>{var x=Mg(v),y=Mg(g),w=x&&y?g.hasClass("mtight")?eae[x][y]:Jie[x][y]:null;if(w)return L.makeGlue(w,u)},{node:f},d,m),a},nw=function e(t,r,n,i,a){i&&t.push(i);for(var o=0;o<t.length;o++){var l=t[o],s=cj(l);if(s){e(s.children,r,n,null,a);continue}var u=!l.hasClass("mspace");if(u){var c=r(l,n.node);c&&(n.insertAfter?n.insertAfter(c):(t.unshift(c),o++))}u?n.node=l:a&&l.hasClass("newline")&&(n.node=Qi(["leftmost"])),n.insertAfter=(f=>d=>{t.splice(f+1,0,d),o++})(o)}i&&t.pop()},cj=function(t){return t instanceof e0||t instanceof Q2||t instanceof t0&&t.hasClass("enclosing")?t:null},aae=function e(t,r){var n=cj(t);if(n){var i=n.children;if(i.length){if(r==="right")return e(i[i.length-1],"right");if(r==="left")return e(i[0],"left")}}return t},Mg=function(t,r){return t?(r&&(t=aae(t,r)),iae[t.classes[0]]||null):null},Sc=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Qi(r.concat(n))},Ee=function(t,r,n){if(!t)return Qi();if(uh[t.type]){var i=uh[t.type](t,r);if(n&&r.size!==n.size){i=Qi(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new G("Got group of unknown type: '"+t.type+"'")};function G0(e,t){var r=Qi(["base"],e,t),n=Qi(["strut"]);return n.style.height=Q(r.height+r.depth),r.depth&&(n.style.verticalAlign=Q(-r.depth)),r.children.unshift(n),r}function Tg(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=Mt(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],o=[],l=0;l<n.length;l++)if(o.push(n[l]),n[l].hasClass("mbin")||n[l].hasClass("mrel")||n[l].hasClass("allowbreak")){for(var s=!1;l<n.length-1&&n[l+1].hasClass("mspace")&&!n[l+1].hasClass("newline");)l++,o.push(n[l]),n[l].hasClass("nobreak")&&(s=!0);s||(a.push(G0(o,t)),o=[])}else n[l].hasClass("newline")&&(o.pop(),o.length>0&&(a.push(G0(o,t)),o=[]),a.push(n[l]));o.length>0&&a.push(G0(o,t));var u;r?(u=G0(Mt(r,t,!0)),u.classes=["tag"],a.push(u)):i&&a.push(i);var c=Qi(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),u){var f=u.children[0];f.style.height=Q(c.height+c.depth),c.depth&&(f.style.verticalAlign=Q(-c.depth))}return c}function fj(e){return new e0(e)}class Br{constructor(t,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=qa(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Zn&&this.children[n+1]instanceof Zn){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Zn;)i+=this.children[++n].toText();t.appendChild(new Zn(i).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=he.escape(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+he.escape(qa(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Zn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return he.escape(this.toText())}toText(){return this.text}}class oae{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Q(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Q(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var q={MathNode:Br,TextNode:Zn,SpaceNode:oae,newDocumentFragment:fj},vn=function(t,r,n){return Fe[r][t]&&Fe[r][t].replace&&t.charCodeAt(0)!==55349&&!(ij.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=Fe[r][t].replace),new q.TextNode(t)},ex=function(t){return t.length===1?t[0]:new q.MathNode("mrow",t)},tx=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=t.text;if(he.contains(["\\imath","\\jmath"],a))return null;Fe[i][a]&&Fe[i][a].replace&&(a=Fe[i][a].replace);var o=L.fontMap[n].fontName;return Z2(a,o,i)?L.fontMap[n].variant:null};function sv(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Zn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Zn&&r.text===","}else return!1}var Dr=function(t,r,n){if(t.length===1){var i=ze(t[0],r);return n&&i instanceof Br&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],o,l=0;l<t.length;l++){var s=ze(t[l],r);if(s instanceof Br&&o instanceof Br){if(s.type==="mtext"&&o.type==="mtext"&&s.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...s.children);continue}else if(s.type==="mn"&&o.type==="mn"){o.children.push(...s.children);continue}else if(sv(s)&&o.type==="mn"){o.children.push(...s.children);continue}else if(s.type==="mn"&&sv(o))s.children=[...o.children,...s.children],a.pop();else if((s.type==="msup"||s.type==="msub")&&s.children.length>=1&&(o.type==="mn"||sv(o))){var u=s.children[0];u instanceof Br&&u.type==="mn"&&(u.children=[...o.children,...u.children],a.pop())}else if(o.type==="mi"&&o.children.length===1){var c=o.children[0];if(c instanceof Zn&&c.text==="̸"&&(s.type==="mo"||s.type==="mi"||s.type==="mn")){var f=s.children[0];f instanceof Zn&&f.text.length>0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),a.pop())}}}a.push(s),o=s}return a},Ka=function(t,r,n){return ex(Dr(t,r,n))},ze=function(t,r){if(!t)return new q.MathNode("mrow");if(ch[t.type]){var n=ch[t.type](t,r);return n}else throw new G("Got group of unknown type: '"+t.type+"'")};function iw(e,t,r,n,i){var a=Dr(e,r),o;a.length===1&&a[0]instanceof Br&&he.contains(["mrow","mtable"],a[0].type)?o=a[0]:o=new q.MathNode("mrow",a);var l=new q.MathNode("annotation",[new q.TextNode(t)]);l.setAttribute("encoding","application/x-tex");var s=new q.MathNode("semantics",[o,l]),u=new q.MathNode("math",[s]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var c=i?"katex":"katex-mathml";return L.makeSpan([c],[u])}var dj=function(t){return new Ei({style:t.displayMode?pe.DISPLAY:pe.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},hj=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=L.makeSpan(n,[t])}return t},lae=function(t,r,n){var i=dj(n),a;if(n.output==="mathml")return iw(t,r,i,n.displayMode,!0);if(n.output==="html"){var o=Tg(t,i);a=L.makeSpan(["katex"],[o])}else{var l=iw(t,r,i,n.displayMode,!1),s=Tg(t,i);a=L.makeSpan(["katex"],[l,s])}return hj(a,n)},sae=function(t,r,n){var i=dj(n),a=Tg(t,i),o=L.makeSpan(["katex"],[a]);return hj(o,n)},uae={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},cae=function(t){var r=new q.MathNode("mo",[new q.TextNode(uae[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},fae={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},dae=function(t){return t.type==="ordgroup"?t.body.length:1},hae=function(t,r){function n(){var l=4e5,s=t.label.slice(1);if(he.contains(["widehat","widecheck","widetilde","utilde"],s)){var u=t,c=dae(u.base),f,d,m;if(c>5)s==="widehat"||s==="widecheck"?(f=420,l=2364,m=.42,d=s+"4"):(f=312,l=2340,m=.34,d="tilde4");else{var g=[1,1,2,2,3,3][c];s==="widehat"||s==="widecheck"?(l=[0,1062,2364,2364,2364][g],f=[0,239,300,360,420][g],m=[0,.24,.3,.3,.36,.42][g],d=s+g):(l=[0,600,1033,2339,2340][g],f=[0,260,286,306,312][g],m=[0,.26,.286,.3,.306,.34][g],d="tilde"+g)}var v=new Va(d),x=new Zi([v],{width:"100%",height:Q(m),viewBox:"0 0 "+l+" "+f,preserveAspectRatio:"none"});return{span:L.makeSvgSpan([],[x],r),minWidth:0,height:m}}else{var y=[],w=fae[s],[S,A,P]=w,O=P/1e3,j=S.length,N,_;if(j===1){var z=w[3];N=["hide-tail"],_=[z]}else if(j===2)N=["halfarrow-left","halfarrow-right"],_=["xMinYMin","xMaxYMin"];else if(j===3)N=["brace-left","brace-center","brace-right"],_=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
359
|
+
`+j+" children.");for(var R=0;R<j;R++){var I=new Va(S[R]),F=new Zi([I],{width:"400em",height:Q(O),viewBox:"0 0 "+l+" "+P,preserveAspectRatio:_[R]+" slice"}),H=L.makeSvgSpan([N[R]],[F],r);if(j===1)return{span:H,minWidth:A,height:O};H.style.height=Q(O),y.push(H)}return{span:L.makeSpan(["stretchy"],y,r),minWidth:A,height:O}}}var{span:i,minWidth:a,height:o}=n();return i.height=o,i.style.height=Q(o),a>0&&(i.style.minWidth=Q(a)),i},mae=function(t,r,n,i,a){var o,l=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(o=L.makeSpan(["stretchy",r],[],a),r==="fbox"){var s=a.color&&a.getColor();s&&(o.style.borderColor=s)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new jg({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new jg({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Zi(u,{width:"100%",height:Q(l)});o=L.makeSvgSpan([],[c],a)}return o.height=l,o.style.height=Q(l),o},Ji={encloseSpan:mae,mathMLnode:cae,svgSpan:hae};function be(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function rx(e){var t=Bm(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Bm(e){return e&&(e.type==="atom"||$ie.hasOwnProperty(e.type))?e:null}var nx=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=be(e.base,"accent"),r=n.base,e.base=r,i=Rie(Ee(e,t)),e.base=n):(n=be(e,"accent"),r=n.base);var a=Ee(r,t.havingCrampedStyle()),o=n.isShifty&&he.isCharacterBox(r),l=0;if(o){var s=he.getBaseElem(r),u=Ee(s,t.havingCrampedStyle());l=Z7(u).skew}var c=n.label==="\\c",f=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),d;if(n.isStretchy)d=Ji.svgSpan(n,t),d=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:d,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+Q(2*l)+")",marginLeft:Q(2*l)}:void 0}]});else{var m,g;n.label==="\\vec"?(m=L.staticSvg("vec",t),g=L.svgData.vec[1]):(m=L.makeOrd({mode:n.mode,text:n.label},t,"textord"),m=Z7(m),m.italic=0,g=m.width,c&&(f+=m.depth)),d=L.makeSpan(["accent-body"],[m]);var v=n.label==="\\textcircled";v&&(d.classes.push("accent-full"),f=a.height);var x=l;v||(x-=g/2),d.style.left=Q(x),n.label==="\\textcircled"&&(d.style.top=".2em"),d=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-f},{type:"elem",elem:d}]})}var y=L.makeSpan(["mord","accent"],[d],t);return i?(i.children[0]=y,i.height=Math.max(y.height,i.height),i.classes[0]="mord",i):y},mj=(e,t)=>{var r=e.isStretchy?Ji.mathMLnode(e.label):new q.MathNode("mo",[vn(e.label,e.mode)]),n=new q.MathNode("mover",[ze(e.base,t),r]);return n.setAttribute("accent","true"),n},pae=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ee({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=fh(t[0]),n=!pae.test(e.funcName),i=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:nx,mathmlBuilder:mj});ee({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:nx,mathmlBuilder:mj});ee({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(e,t)=>{var r=Ee(e.base,t),n=Ji.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=L.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return L.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var r=Ji.mathMLnode(e.label),n=new q.MathNode("munder",[ze(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Y0=e=>{var t=new q.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ee({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=L.wrapFragment(Ee(e.body,n,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var o;e.below&&(n=t.havingStyle(r.sub()),o=L.wrapFragment(Ee(e.below,n,t),t),o.classes.push(a+"-arrow-pad"));var l=Ji.svgSpan(e,t),s=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(u-=i.depth);var c;if(o){var f=-t.fontMetrics().axisHeight+o.height+.5*l.height+.111;c=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:l,shift:s},{type:"elem",elem:o,shift:f}]})}else c=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:l,shift:s}]});return c.children[0].children[0].children[1].classes.push("svg-align"),L.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var r=Ji.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=Y0(ze(e.body,t));if(e.below){var a=Y0(ze(e.below,t));n=new q.MathNode("munderover",[r,a,i])}else n=new q.MathNode("mover",[r,i])}else if(e.below){var o=Y0(ze(e.below,t));n=new q.MathNode("munder",[r,o])}else n=Y0(),n=new q.MathNode("mover",[r,n]);return n}});var vae=L.makeSpan;function pj(e,t){var r=Mt(e.body,t,!0);return vae([e.mclass],r,t)}function vj(e,t){var r,n=Dr(e.body,t);return e.mclass==="minner"?r=new q.MathNode("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new q.MathNode("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new q.MathNode("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}ee({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:yt(i),isCharacterBox:he.isCharacterBox(i)}},htmlBuilder:pj,mathmlBuilder:vj});var Fm=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ee({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Fm(t[0]),body:yt(t[1]),isCharacterBox:he.isCharacterBox(t[1])}}});ee({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],a=t[0],o;n!=="\\stackrel"?o=Fm(i):o="mrel";var l={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:yt(i)},s={type:"supsub",mode:a.mode,base:l,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:o,body:[s],isCharacterBox:he.isCharacterBox(s)}},htmlBuilder:pj,mathmlBuilder:vj});ee({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Fm(t[0]),body:yt(t[0])}},htmlBuilder(e,t){var r=Mt(e.body,t,!0),n=L.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Dr(e.body,t),n=new q.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var gae={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},aw=()=>({type:"styling",body:[],mode:"math",style:"display"}),ow=e=>e.type==="textord"&&e.text==="@",yae=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function xae(e,t,r){var n=gae[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},o=r.callFunction("\\Big",[a],[]),l=r.callFunction("\\\\cdright",[t[1]],[]),s={type:"ordgroup",mode:"math",body:[i,o,l]};return r.callFunction("\\\\cdparent",[s],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function bae(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new G("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],a=0;a<t.length;a++){for(var o=t[a],l=aw(),s=0;s<o.length;s++)if(!ow(o[s]))l.body.push(o[s]);else{n.push(l),s+=1;var u=rx(o[s]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(u)>-1))if("<>AV".indexOf(u)>-1)for(var f=0;f<2;f++){for(var d=!0,m=s+1;m<o.length;m++){if(yae(o[m],u)){d=!1,s=m;break}if(ow(o[m]))throw new G("Missing a "+u+" character to complete a CD arrow.",o[m]);c[f].body.push(o[m])}if(d)throw new G("Missing a "+u+" character to complete a CD arrow.",o[s])}else throw new G('Expected one of "<>AV=|." after @',o[s]);var g=xae(u,c,e),v={type:"styling",body:[g],mode:"math",style:"display"};n.push(v),l=aw()}a%2===0?n.push(l):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var x=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:x,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ee({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=L.wrapFragment(Ee(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=Q(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new q.MathNode("mrow",[ze(e.label,t)]);return r=new q.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new q.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});ee({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=L.wrapFragment(Ee(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new q.MathNode("mrow",[ze(e.fragment,t)])}});ee({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=be(t[0],"ordgroup"),i=n.body,a="",o=0;o<i.length;o++){var l=be(i[o],"textord");a+=l.text}var s=parseInt(a),u;if(isNaN(s))throw new G("\\@char has non-numeric argument "+a);if(s<0||s>=1114111)throw new G("\\@char with invalid code point "+a);return s<=65535?u=String.fromCharCode(s):(s-=65536,u=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var gj=(e,t)=>{var r=Mt(e.body,t.withColor(e.color),!1);return L.makeFragment(r)},yj=(e,t)=>{var r=Dr(e.body,t.withColor(e.color)),n=new q.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};ee({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=be(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:yt(i)}},htmlBuilder:gj,mathmlBuilder:yj});ee({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=be(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:gj,mathmlBuilder:yj});ee({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&be(i,"size").value}},htmlBuilder(e,t){var r=L.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Q(it(e.size,t)))),r},mathmlBuilder(e,t){var r=new q.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Q(it(e.size,t)))),r}});var Ig={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},xj=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new G("Expected a control sequence",e);return t},wae=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},bj=(e,t,r,n)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)};ee({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(Ig[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Ig[n.text]),be(t.parseFunction(),"internal");throw new G("Invalid token after macro prefix",n)}});ee({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new G("Expected a control sequence",n);for(var a=0,o,l=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),l[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new G('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new G('Argument number "'+n.text+'" out of order');a++,l.push([])}else{if(n.text==="EOF")throw new G("Expected a macro definition");l[a].push(n.text)}var{tokens:s}=t.gullet.consumeArg();return o&&s.unshift(o),(r==="\\edef"||r==="\\xdef")&&(s=t.gullet.expandTokens(s),s.reverse()),t.gullet.macros.set(i,{tokens:s,numArgs:a,delimiters:l},r===Ig[r]),{type:"internal",mode:t.mode}}});ee({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=xj(t.gullet.popToken());t.gullet.consumeSpaces();var i=wae(t);return bj(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});ee({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=xj(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return bj(t,n,a,r==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var wu=function(t,r,n){var i=Fe.math[t]&&Fe.math[t].replace,a=Z2(i||t,r,n);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return a},ix=function(t,r,n,i){var a=n.havingBaseStyle(r),o=L.makeSpan(i.concat(a.sizingClasses(n)),[t],n),l=a.sizeMultiplier/n.sizeMultiplier;return o.height*=l,o.depth*=l,o.maxFontSize=a.sizeMultiplier,o},wj=function(t,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Q(a),t.height-=a,t.depth+=a},Sae=function(t,r,n,i,a,o){var l=L.makeSymbol(t,"Main-Regular",a,i),s=ix(l,r,i,o);return n&&wj(s,i,r),s},kae=function(t,r,n,i){return L.makeSymbol(t,"Size"+r+"-Regular",n,i)},Sj=function(t,r,n,i,a,o){var l=kae(t,r,a,i),s=ix(L.makeSpan(["delimsizing","size"+r],[l],i),pe.TEXT,i,o);return n&&wj(s,i,pe.TEXT),s},uv=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=L.makeSpan(["delimsizinginner",i],[L.makeSpan([],[L.makeSymbol(t,r,n)])]);return{type:"elem",elem:a}},cv=function(t,r,n){var i=Xn["Size4-Regular"][t.charCodeAt(0)]?Xn["Size4-Regular"][t.charCodeAt(0)][4]:Xn["Size1-Regular"][t.charCodeAt(0)][4],a=new Va("inner",Cie(t,Math.round(1e3*r))),o=new Zi([a],{width:Q(i),height:Q(r),style:"width:"+Q(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),l=L.makeSvgSpan([],[o],n);return l.height=r,l.style.height=Q(r),l.style.width=Q(i),{type:"elem",elem:l}},_g=.008,X0={type:"kern",size:-1*_g},Aae=["|","\\lvert","\\rvert","\\vert"],Pae=["\\|","\\lVert","\\rVert","\\Vert"],kj=function(t,r,n,i,a,o){var l,s,u,c,f="",d=0;l=u=c=t,s=null;var m="Size1-Regular";t==="\\uparrow"?u=c="⏐":t==="\\Uparrow"?u=c="‖":t==="\\downarrow"?l=u="⏐":t==="\\Downarrow"?l=u="‖":t==="\\updownarrow"?(l="\\uparrow",u="⏐",c="\\downarrow"):t==="\\Updownarrow"?(l="\\Uparrow",u="‖",c="\\Downarrow"):he.contains(Aae,t)?(u="∣",f="vert",d=333):he.contains(Pae,t)?(u="∥",f="doublevert",d=556):t==="["||t==="\\lbrack"?(l="⎡",u="⎢",c="⎣",m="Size4-Regular",f="lbrack",d=667):t==="]"||t==="\\rbrack"?(l="⎤",u="⎥",c="⎦",m="Size4-Regular",f="rbrack",d=667):t==="\\lfloor"||t==="⌊"?(u=l="⎢",c="⎣",m="Size4-Regular",f="lfloor",d=667):t==="\\lceil"||t==="⌈"?(l="⎡",u=c="⎢",m="Size4-Regular",f="lceil",d=667):t==="\\rfloor"||t==="⌋"?(u=l="⎥",c="⎦",m="Size4-Regular",f="rfloor",d=667):t==="\\rceil"||t==="⌉"?(l="⎤",u=c="⎥",m="Size4-Regular",f="rceil",d=667):t==="("||t==="\\lparen"?(l="⎛",u="⎜",c="⎝",m="Size4-Regular",f="lparen",d=875):t===")"||t==="\\rparen"?(l="⎞",u="⎟",c="⎠",m="Size4-Regular",f="rparen",d=875):t==="\\{"||t==="\\lbrace"?(l="⎧",s="⎨",c="⎩",u="⎪",m="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(l="⎫",s="⎬",c="⎭",u="⎪",m="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(l="⎧",c="⎩",u="⎪",m="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(l="⎫",c="⎭",u="⎪",m="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(l="⎧",c="⎭",u="⎪",m="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(l="⎫",c="⎩",u="⎪",m="Size4-Regular");var g=wu(l,m,a),v=g.height+g.depth,x=wu(u,m,a),y=x.height+x.depth,w=wu(c,m,a),S=w.height+w.depth,A=0,P=1;if(s!==null){var O=wu(s,m,a);A=O.height+O.depth,P=2}var j=v+S+A,N=Math.max(0,Math.ceil((r-j)/(P*y))),_=j+N*P*y,z=i.fontMetrics().axisHeight;n&&(z*=i.sizeMultiplier);var R=_/2-z,I=[];if(f.length>0){var F=_-v-S,H=Math.round(_*1e3),Z=jie(f,Math.round(F*1e3)),X=new Va(f,Z),re=(d/1e3).toFixed(3)+"em",B=(H/1e3).toFixed(3)+"em",W=new Zi([X],{width:re,height:B,viewBox:"0 0 "+d+" "+H}),K=L.makeSvgSpan([],[W],i);K.height=H/1e3,K.style.width=re,K.style.height=B,I.push({type:"elem",elem:K})}else{if(I.push(uv(c,m,a)),I.push(X0),s===null){var le=_-v-S+2*_g;I.push(cv(u,le,i))}else{var fe=(_-v-S-A)/2+2*_g;I.push(cv(u,fe,i)),I.push(X0),I.push(uv(s,m,a)),I.push(X0),I.push(cv(u,fe,i))}I.push(X0),I.push(uv(l,m,a))}var He=i.havingBaseStyle(pe.TEXT),Ie=L.makeVList({positionType:"bottom",positionData:R,children:I});return ix(L.makeSpan(["delimsizing","mult"],[Ie],He),pe.TEXT,i,o)},fv=80,dv=.08,hv=function(t,r,n,i,a){var o=Oie(t,i,n),l=new Va(t,o),s=new Zi([l],{width:"400em",height:Q(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return L.makeSvgSpan(["hide-tail"],[s],a)},Eae=function(t,r){var n=r.havingBaseSizing(),i=Oj("\\surd",t*n.sizeMultiplier,Ej,n),a=n.sizeMultiplier,o=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),l,s=0,u=0,c=0,f;return i.type==="small"?(c=1e3+1e3*o+fv,t<1?a=1:t<1.4&&(a=.7),s=(1+o+dv)/a,u=(1+o)/a,l=hv("sqrtMain",s,c,o,r),l.style.minWidth="0.853em",f=.833/a):i.type==="large"?(c=(1e3+fv)*Du[i.size],u=(Du[i.size]+o)/a,s=(Du[i.size]+o+dv)/a,l=hv("sqrtSize"+i.size,s,c,o,r),l.style.minWidth="1.02em",f=1/a):(s=t+o+dv,u=t+o,c=Math.floor(1e3*t+o)+fv,l=hv("sqrtTall",s,c,o,r),l.style.minWidth="0.742em",f=1.056),l.height=u,l.style.height=Q(s),{span:l,advanceWidth:f,ruleWidth:(r.fontMetrics().sqrtRuleThickness+o)*a}},Aj=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Oae=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Pj=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Du=[0,1.2,1.8,2.4,3],Cae=function(t,r,n,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),he.contains(Aj,t)||he.contains(Pj,t))return Sj(t,r,!1,n,i,a);if(he.contains(Oae,t))return kj(t,Du[r],!1,n,i,a);throw new G("Illegal delimiter: '"+t+"'")},jae=[{type:"small",style:pe.SCRIPTSCRIPT},{type:"small",style:pe.SCRIPT},{type:"small",style:pe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Nae=[{type:"small",style:pe.SCRIPTSCRIPT},{type:"small",style:pe.SCRIPT},{type:"small",style:pe.TEXT},{type:"stack"}],Ej=[{type:"small",style:pe.SCRIPTSCRIPT},{type:"small",style:pe.SCRIPT},{type:"small",style:pe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Mae=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},Oj=function(t,r,n,i){for(var a=Math.min(2,3-i.style.size),o=a;o<n.length&&n[o].type!=="stack";o++){var l=wu(t,Mae(n[o]),"math"),s=l.height+l.depth;if(n[o].type==="small"){var u=i.havingBaseStyle(n[o].style);s*=u.sizeMultiplier}if(s>r)return n[o]}return n[n.length-1]},Cj=function(t,r,n,i,a,o){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var l;he.contains(Pj,t)?l=jae:he.contains(Aj,t)?l=Ej:l=Nae;var s=Oj(t,r,l,i);return s.type==="small"?Sae(t,s.style,n,i,a,o):s.type==="large"?Sj(t,s.size,n,i,a,o):kj(t,r,n,i,a,o)},Tae=function(t,r,n,i,a,o){var l=i.fontMetrics().axisHeight*i.sizeMultiplier,s=901,u=5/i.fontMetrics().ptPerEm,c=Math.max(r-l,n+l),f=Math.max(c/500*s,2*c-u);return Cj(t,f,!0,i,a,o)},$i={sqrtImage:Eae,sizedDelim:Cae,sizeToMaxHeight:Du,customSizedDelim:Cj,leftRightDelim:Tae},lw={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Iae=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Hm(e,t){var r=Bm(e);if(r&&he.contains(Iae,r.text))return r;throw r?new G("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new G("Invalid delimiter type '"+e.type+"'",e)}ee({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=Hm(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:lw[e.funcName].size,mclass:lw[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?L.makeSpan([e.mclass]):$i.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(vn(e.delim,e.mode));var r=new q.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Q($i.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function sw(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ee({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new G("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Hm(t[0],e).text,color:r}}});ee({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Hm(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=be(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{sw(e);for(var r=Mt(e.body,t,!0,["mopen","mclose"]),n=0,i=0,a=!1,o=0;o<r.length;o++)r[o].isMiddle?a=!0:(n=Math.max(r[o].height,n),i=Math.max(r[o].depth,i));n*=t.sizeMultiplier,i*=t.sizeMultiplier;var l;if(e.left==="."?l=Sc(t,["mopen"]):l=$i.leftRightDelim(e.left,n,i,t,e.mode,["mopen"]),r.unshift(l),a)for(var s=1;s<r.length;s++){var u=r[s],c=u.isMiddle;c&&(r[s]=$i.leftRightDelim(c.delim,n,i,c.options,e.mode,[]))}var f;if(e.right===".")f=Sc(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;f=$i.leftRightDelim(e.right,n,i,d,e.mode,["mclose"])}return r.push(f),L.makeSpan(["minner"],r,t)},mathmlBuilder:(e,t)=>{sw(e);var r=Dr(e.body,t);if(e.left!=="."){var n=new q.MathNode("mo",[vn(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new q.MathNode("mo",[vn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return ex(r)}});ee({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Hm(t[0],e);if(!e.parser.leftrightDepth)throw new G("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Sc(t,[]);else{r=$i.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?vn("|","text"):vn(e.delim,e.mode),n=new q.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var ax=(e,t)=>{var r=L.wrapFragment(Ee(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,a,o=0,l=he.isCharacterBox(e.body);if(n==="sout")a=L.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var s=it({number:.6,unit:"pt"},t),u=it({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var f=r.height+r.depth+s+u;r.style.paddingLeft=Q(f/2+s);var d=Math.floor(1e3*f*i),m=Pie(d),g=new Zi([new Va("phase",m)],{width:"400em",height:Q(d/1e3),viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});a=L.makeSvgSpan(["hide-tail"],[g],t),a.style.height=Q(f),o=r.depth+s+u}else{/cancel/.test(n)?l||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var v=0,x=0,y=0;/box/.test(n)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),v=t.fontMetrics().fboxsep+(n==="colorbox"?0:y),x=v):n==="angl"?(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),v=4*y,x=Math.max(0,.25-r.depth)):(v=l?.2:0,x=v),a=Ji.encloseSpan(r,n,v,x,t),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=Q(y)):n==="angl"&&y!==.049&&(a.style.borderTopWidth=Q(y),a.style.borderRightWidth=Q(y)),o=r.depth+x,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var w;if(e.backgroundColor)w=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:o},{type:"elem",elem:r,shift:0}]});else{var S=/cancel|phase/.test(n)?["svg-align"]:[];w=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:o,wrapperClasses:S}]})}return/cancel/.test(n)&&(w.height=r.height,w.depth=r.depth),/cancel/.test(n)&&!l?L.makeSpan(["mord","cancel-lap"],[w],t):L.makeSpan(["mord"],[w],t)},ox=(e,t)=>{var r=0,n=new q.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ze(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};ee({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=be(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:ax,mathmlBuilder:ox});ee({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=be(t[0],"color-token").color,o=be(t[1],"color-token").color,l=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:o,borderColor:a,body:l}},htmlBuilder:ax,mathmlBuilder:ox});ee({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});ee({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:ax,mathmlBuilder:ox});ee({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var jj={};function di(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,l={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},s=0;s<r.length;++s)jj[r[s]]=l;a&&(uh[t]=a),o&&(ch[t]=o)}var Nj={};function C(e,t){Nj[e]=t}function uw(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var Wm=e=>{var t=e.parser.settings;if(!t.displayMode)throw new G("{"+e.envName+"} can be used only in display mode.")};function lx(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function eo(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:o,colSeparationType:l,autoTag:s,singleRow:u,emptySingleRow:c,maxNumCols:f,leqno:d}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var m=e.gullet.expandMacroAsText("\\arraystretch");if(m==null)o=1;else if(o=parseFloat(m),!o||o<0)throw new G("Invalid \\arraystretch: "+m)}e.gullet.beginGroup();var g=[],v=[g],x=[],y=[],w=s!=null?[]:void 0;function S(){s&&e.gullet.macros.set("\\@eqnsw","1",!0)}function A(){w&&(e.gullet.macros.get("\\df@tag")?(w.push(e.subparse([new un("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):w.push(!!s&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(S(),y.push(uw(e));;){var P=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),P={type:"ordgroup",mode:e.mode,body:P},r&&(P={type:"styling",mode:e.mode,style:r,body:[P]}),g.push(P);var O=e.fetch().text;if(O==="&"){if(f&&g.length===f){if(u||l)throw new G("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(O==="\\end"){A(),g.length===1&&P.type==="styling"&&P.body[0].body.length===0&&(v.length>1||!c)&&v.pop(),y.length<v.length+1&&y.push([]);break}else if(O==="\\\\"){e.consume();var j=void 0;e.gullet.future().text!==" "&&(j=e.parseSizeGroup(!0)),x.push(j?j.value:null),A(),y.push(uw(e)),g=[],v.push(g),S()}else throw new G("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:o,body:v,cols:a,rowGaps:x,hskipBeforeAndAfter:n,hLinesBeforeRow:y,colSeparationType:l,tags:w,leqno:d}}function sx(e){return e.slice(0,1)==="d"?"display":"text"}var hi=function(t,r){var n,i,a=t.body.length,o=t.hLinesBeforeRow,l=0,s=new Array(a),u=[],c=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),f=1/r.fontMetrics().ptPerEm,d=5*f;if(t.colSeparationType&&t.colSeparationType==="small"){var m=r.havingStyle(pe.SCRIPT).sizeMultiplier;d=.2778*(m/r.sizeMultiplier)}var g=t.colSeparationType==="CD"?it({number:3,unit:"ex"},r):12*f,v=3*f,x=t.arraystretch*g,y=.7*x,w=.3*x,S=0;function A(pi){for(var vi=0;vi<pi.length;++vi)vi>0&&(S+=.25),u.push({pos:S,isDashed:pi[vi]})}for(A(o[0]),n=0;n<t.body.length;++n){var P=t.body[n],O=y,j=w;l<P.length&&(l=P.length);var N=new Array(P.length);for(i=0;i<P.length;++i){var _=Ee(P[i],r);j<_.depth&&(j=_.depth),O<_.height&&(O=_.height),N[i]=_}var z=t.rowGaps[n],R=0;z&&(R=it(z,r),R>0&&(R+=w,j<R&&(j=R),R=0)),t.addJot&&(j+=v),N.height=O,N.depth=j,S+=O,N.pos=S,S+=j+R,s[n]=N,A(o[n+1])}var I=S/2+r.fontMetrics().axisHeight,F=t.cols||[],H=[],Z,X,re=[];if(t.tags&&t.tags.some(pi=>pi))for(n=0;n<a;++n){var B=s[n],W=B.pos-I,K=t.tags[n],le=void 0;K===!0?le=L.makeSpan(["eqn-num"],[],r):K===!1?le=L.makeSpan([],[],r):le=L.makeSpan([],Mt(K,r,!0),r),le.depth=B.depth,le.height=B.height,re.push({type:"elem",elem:le,shift:W})}for(i=0,X=0;i<l||X<F.length;++i,++X){for(var fe=F[X]||{},He=!0;fe.type==="separator";){if(He||(Z=L.makeSpan(["arraycolsep"],[]),Z.style.width=Q(r.fontMetrics().doubleRuleSep),H.push(Z)),fe.separator==="|"||fe.separator===":"){var Ie=fe.separator==="|"?"solid":"dashed",lt=L.makeSpan(["vertical-separator"],[],r);lt.style.height=Q(S),lt.style.borderRightWidth=Q(c),lt.style.borderRightStyle=Ie,lt.style.margin="0 "+Q(-c/2);var zt=S-I;zt&&(lt.style.verticalAlign=Q(-zt)),H.push(lt)}else throw new G("Invalid separator type: "+fe.separator);X++,fe=F[X]||{},He=!1}if(!(i>=l)){var xt=void 0;(i>0||t.hskipBeforeAndAfter)&&(xt=he.deflt(fe.pregap,d),xt!==0&&(Z=L.makeSpan(["arraycolsep"],[]),Z.style.width=Q(xt),H.push(Z)));var Ze=[];for(n=0;n<a;++n){var te=s[n],J=te[i];if(J){var we=te.pos-I;J.depth=te.depth,J.height=te.height,Ze.push({type:"elem",elem:J,shift:we})}}Ze=L.makeVList({positionType:"individualShift",children:Ze}),Ze=L.makeSpan(["col-align-"+(fe.align||"c")],[Ze]),H.push(Ze),(i<l-1||t.hskipBeforeAndAfter)&&(xt=he.deflt(fe.postgap,d),xt!==0&&(Z=L.makeSpan(["arraycolsep"],[]),Z.style.width=Q(xt),H.push(Z)))}}if(s=L.makeSpan(["mtable"],H),u.length>0){for(var V=L.makeLineSpan("hline",r,c),st=L.makeLineSpan("hdashline",r,c),Ae=[{type:"elem",elem:s,shift:0}];u.length>0;){var Rt=u.pop(),Lt=Rt.pos-I;Rt.isDashed?Ae.push({type:"elem",elem:st,shift:Lt}):Ae.push({type:"elem",elem:V,shift:Lt})}s=L.makeVList({positionType:"individualShift",children:Ae})}if(re.length===0)return L.makeSpan(["mord"],[s],r);var zr=L.makeVList({positionType:"individualShift",children:re});return zr=L.makeSpan(["tag"],[zr],r),L.makeFragment([s,zr])},_ae={c:"center ",l:"left ",r:"right "},mi=function(t,r){for(var n=[],i=new q.MathNode("mtd",[],["mtr-glue"]),a=new q.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<t.body.length;o++){for(var l=t.body[o],s=[],u=0;u<l.length;u++)s.push(new q.MathNode("mtd",[ze(l[u],r)]));t.tags&&t.tags[o]&&(s.unshift(i),s.push(i),t.leqno?s.unshift(a):s.push(a)),n.push(new q.MathNode("mtr",s))}var c=new q.MathNode("mtable",n),f=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);c.setAttribute("rowspacing",Q(f));var d="",m="";if(t.cols&&t.cols.length>0){var g=t.cols,v="",x=!1,y=0,w=g.length;g[0].type==="separator"&&(d+="top ",y=1),g[g.length-1].type==="separator"&&(d+="bottom ",w-=1);for(var S=y;S<w;S++)g[S].type==="align"?(m+=_ae[g[S].align],x&&(v+="none "),x=!0):g[S].type==="separator"&&x&&(v+=g[S].separator==="|"?"solid ":"dashed ",x=!1);c.setAttribute("columnalign",m.trim()),/[sd]/.test(v)&&c.setAttribute("columnlines",v.trim())}if(t.colSeparationType==="align"){for(var A=t.cols||[],P="",O=1;O<A.length;O++)P+=O%2?"0em ":"1em ";c.setAttribute("columnspacing",P.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?c.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?c.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var j="",N=t.hLinesBeforeRow;d+=N[0].length>0?"left ":"",d+=N[N.length-1].length>0?"right ":"";for(var _=1;_<N.length-1;_++)j+=N[_].length===0?"none ":N[_][0]?"dashed ":"solid ";return/[sd]/.test(j)&&c.setAttribute("rowlines",j.trim()),d!==""&&(c=new q.MathNode("menclose",[c]),c.setAttribute("notation",d.trim())),t.arraystretch&&t.arraystretch<1&&(c=new q.MathNode("mstyle",[c]),c.setAttribute("scriptlevel","1")),c},Mj=function(t,r){t.envName.indexOf("ed")===-1&&Wm(t);var n=[],i=t.envName.indexOf("at")>-1?"alignat":"align",a=t.envName==="split",o=eo(t.parser,{cols:n,addJot:!0,autoTag:a?void 0:lx(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),l,s=0,u={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var c="",f=0;f<r[0].body.length;f++){var d=be(r[0].body[f],"textord");c+=d.text}l=Number(c),s=l*2}var m=!s;o.body.forEach(function(y){for(var w=1;w<y.length;w+=2){var S=be(y[w],"styling"),A=be(S.body[0],"ordgroup");A.body.unshift(u)}if(m)s<y.length&&(s=y.length);else{var P=y.length/2;if(l<P)throw new G("Too many math in a row: "+("expected "+l+", but got "+P),y[0])}});for(var g=0;g<s;++g){var v="r",x=0;g%2===1?v="l":g>0&&m&&(x=1),n[g]={type:"align",align:v,pregap:x,postgap:0}}return o.colSeparationType=m?"align":"alignat",o};di({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Bm(t[0]),n=r?[t[0]]:be(t[0],"ordgroup").body,i=n.map(function(o){var l=rx(o),s=l.text;if("lcr".indexOf(s)!==-1)return{type:"align",align:s};if(s==="|")return{type:"separator",separator:"|"};if(s===":")return{type:"separator",separator:":"};throw new G("Unknown column alignment: "+s,o)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return eo(e.parser,a,sx(e.envName))},htmlBuilder:hi,mathmlBuilder:mi});di({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,"lcr".indexOf(r)===-1)throw new G("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=eo(e.parser,n,sx(e.envName)),o=Math.max(0,...a.body.map(l=>l.length));return a.cols=new Array(o).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:hi,mathmlBuilder:mi});di({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=eo(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:hi,mathmlBuilder:mi});di({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Bm(t[0]),n=r?[t[0]]:be(t[0],"ordgroup").body,i=n.map(function(o){var l=rx(o),s=l.text;if("lc".indexOf(s)!==-1)return{type:"align",align:s};throw new G("Unknown column alignment: "+s,o)});if(i.length>1)throw new G("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=eo(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new G("{subarray} can contain only one column");return a},htmlBuilder:hi,mathmlBuilder:mi});di({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=eo(e.parser,t,sx(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:hi,mathmlBuilder:mi});di({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Mj,htmlBuilder:hi,mathmlBuilder:mi});di({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){he.contains(["gather","gather*"],e.envName)&&Wm(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:lx(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return eo(e.parser,t,"display")},htmlBuilder:hi,mathmlBuilder:mi});di({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Mj,htmlBuilder:hi,mathmlBuilder:mi});di({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Wm(e);var t={autoTag:lx(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return eo(e.parser,t,"display")},htmlBuilder:hi,mathmlBuilder:mi});di({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Wm(e),bae(e.parser)},htmlBuilder:hi,mathmlBuilder:mi});C("\\nonumber","\\gdef\\@eqnsw{0}");C("\\notag","\\nonumber");ee({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new G(e.funcName+" valid only within array environment")}});var cw=jj;ee({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new G("Invalid environment name",i);for(var a="",o=0;o<i.body.length;++o)a+=be(i.body[o],"textord").text;if(n==="\\begin"){if(!cw.hasOwnProperty(a))throw new G("No such environment: "+a,i);var l=cw[a],{args:s,optArgs:u}=r.parseArguments("\\begin{"+a+"}",l),c={mode:r.mode,envName:a,parser:r},f=l.handler(c,s,u);r.expect("\\end",!1);var d=r.nextToken,m=be(r.parseFunction(),"environment");if(m.name!==a)throw new G("Mismatch: \\begin{"+a+"} matched by \\end{"+m.name+"}",d);return f}return{type:"environment",mode:r.mode,name:a,nameGroup:i}}});var Tj=(e,t)=>{var r=e.font,n=t.withFont(r);return Ee(e.body,n)},Ij=(e,t)=>{var r=e.font,n=t.withFont(r);return ze(e.body,n)},fw={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ee({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=fh(t[0]),a=n;return a in fw&&(a=fw[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:Tj,mathmlBuilder:Ij});ee({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],i=he.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:Fm(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:i}}});ee({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:a}=r,o=r.parseExpression(!0,i),l="math"+n.slice(1);return{type:"font",mode:a,font:l,body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:Tj,mathmlBuilder:Ij});var _j=(e,t)=>{var r=t;return e==="display"?r=r.id>=pe.SCRIPT.id?r.text():pe.DISPLAY:e==="text"&&r.size===pe.DISPLAY.size?r=pe.TEXT:e==="script"?r=pe.SCRIPT:e==="scriptscript"&&(r=pe.SCRIPTSCRIPT),r},ux=(e,t)=>{var r=_j(e.size,t.style),n=r.fracNum(),i=r.fracDen(),a;a=t.havingStyle(n);var o=Ee(e.numer,a,t);if(e.continued){var l=8.5/t.fontMetrics().ptPerEm,s=3.5/t.fontMetrics().ptPerEm;o.height=o.height<l?l:o.height,o.depth=o.depth<s?s:o.depth}a=t.havingStyle(i);var u=Ee(e.denom,a,t),c,f,d;e.hasBarLine?(e.barSize?(f=it(e.barSize,t),c=L.makeLineSpan("frac-line",t,f)):c=L.makeLineSpan("frac-line",t),f=c.height,d=c.height):(c=null,f=0,d=t.fontMetrics().defaultRuleThickness);var m,g,v;r.size===pe.DISPLAY.size||e.size==="display"?(m=t.fontMetrics().num1,f>0?g=3*d:g=7*d,v=t.fontMetrics().denom1):(f>0?(m=t.fontMetrics().num2,g=d):(m=t.fontMetrics().num3,g=3*d),v=t.fontMetrics().denom2);var x;if(c){var w=t.fontMetrics().axisHeight;m-o.depth-(w+.5*f)<g&&(m+=g-(m-o.depth-(w+.5*f))),w-.5*f-(u.height-v)<g&&(v+=g-(w-.5*f-(u.height-v)));var S=-(w-.5*f);x=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:v},{type:"elem",elem:c,shift:S},{type:"elem",elem:o,shift:-m}]})}else{var y=m-o.depth-(u.height-v);y<g&&(m+=.5*(g-y),v+=.5*(g-y)),x=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:v},{type:"elem",elem:o,shift:-m}]})}a=t.havingStyle(r),x.height*=a.sizeMultiplier/t.sizeMultiplier,x.depth*=a.sizeMultiplier/t.sizeMultiplier;var A;r.size===pe.DISPLAY.size?A=t.fontMetrics().delim1:r.size===pe.SCRIPTSCRIPT.size?A=t.havingStyle(pe.SCRIPT).fontMetrics().delim2:A=t.fontMetrics().delim2;var P,O;return e.leftDelim==null?P=Sc(t,["mopen"]):P=$i.customSizedDelim(e.leftDelim,A,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?O=L.makeSpan([]):e.rightDelim==null?O=Sc(t,["mclose"]):O=$i.customSizedDelim(e.rightDelim,A,!0,t.havingStyle(r),e.mode,["mclose"]),L.makeSpan(["mord"].concat(a.sizingClasses(t)),[P,L.makeSpan(["mfrac"],[x]),O],t)},cx=(e,t)=>{var r=new q.MathNode("mfrac",[ze(e.numer,t),ze(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=it(e.barSize,t);r.setAttribute("linethickness",Q(n))}var i=_j(e.size,t.style);if(i.size!==t.style.size){r=new q.MathNode("mstyle",[r]);var a=i.size===pe.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",a),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var l=new q.MathNode("mo",[new q.TextNode(e.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}if(o.push(r),e.rightDelim!=null){var s=new q.MathNode("mo",[new q.TextNode(e.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}return ex(o)}return r};ee({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1],o,l=null,s=null,u="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,l="(",s=")";break;case"\\\\bracefrac":o=!1,l="\\{",s="\\}";break;case"\\\\brackfrac":o=!1,l="[",s="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:a,hasBarLine:o,leftDelim:l,rightDelim:s,size:u,barSize:null}},htmlBuilder:ux,mathmlBuilder:cx});ee({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ee({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});var dw=["display","text","script","scriptscript"],hw=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};ee({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],i=t[5],a=fh(t[0]),o=a.type==="atom"&&a.family==="open"?hw(a.text):null,l=fh(t[1]),s=l.type==="atom"&&l.family==="close"?hw(l.text):null,u=be(t[2],"size"),c,f=null;u.isBlank?c=!0:(f=u.value,c=f.number>0);var d="auto",m=t[3];if(m.type==="ordgroup"){if(m.body.length>0){var g=be(m.body[0],"textord");d=dw[Number(g.text)]}}else m=be(m,"textord"),d=dw[Number(m.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:c,barSize:f,leftDelim:o,rightDelim:s,size:d}},htmlBuilder:ux,mathmlBuilder:cx});ee({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:be(t[0],"size").value,token:i}}});ee({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=cie(be(t[1],"infix").size),o=t[2],l=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:o,continued:!1,hasBarLine:l,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ux,mathmlBuilder:cx});var Dj=(e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?Ee(e.sup,t.havingStyle(r.sup()),t):Ee(e.sub,t.havingStyle(r.sub()),t),i=be(e.base,"horizBrace")):i=be(e,"horizBrace");var a=Ee(i.base,t.havingBaseStyle(pe.DISPLAY)),o=Ji.svgSpan(i,t),l;if(i.isOver?(l=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:o}]}),l.children[0].children[0].children[1].classes.push("svg-align")):(l=L.makeVList({positionType:"bottom",positionData:a.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:a}]}),l.children[0].children[0].children[0].classes.push("svg-align")),n){var s=L.makeSpan(["mord",i.isOver?"mover":"munder"],[l],t);i.isOver?l=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.2},{type:"elem",elem:n}]}):l=L.makeVList({positionType:"bottom",positionData:s.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:s}]})}return L.makeSpan(["mord",i.isOver?"mover":"munder"],[l],t)},Dae=(e,t)=>{var r=Ji.mathMLnode(e.label);return new q.MathNode(e.isOver?"mover":"munder",[ze(e.base,t),r])};ee({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:Dj,mathmlBuilder:Dae});ee({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],i=be(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:yt(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Mt(e.body,t,!1);return L.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Ka(e.body,t);return r instanceof Br||(r=new Br("mrow",[r])),r.setAttribute("href",e.href),r}});ee({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=be(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<n.length;a++){var o=n[a];o==="~"&&(o="\\textasciitilde"),i.push({type:"textord",mode:"text",text:o})}var l={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:yt(l)}}});ee({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:yt(t[0])}},htmlBuilder(e,t){var r=Mt(e.body,t,!1);return L.makeFragment(r)},mathmlBuilder(e,t){return new q.MathNode("mrow",Dr(e.body,t))}});ee({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:i}=e,a=be(t[0],"raw").string,o=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,s={};switch(n){case"\\htmlClass":s.class=a,l={command:"\\htmlClass",class:a};break;case"\\htmlId":s.id=a,l={command:"\\htmlId",id:a};break;case"\\htmlStyle":s.style=a,l={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),c=0;c<u.length;c++){var f=u[c].split("=");if(f.length!==2)throw new G("Error parsing key-value for \\htmlData");s["data-"+f[0].trim()]=f[1].trim()}l={command:"\\htmlData",attributes:s};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(l)?{type:"html",mode:r.mode,attributes:s,body:yt(o)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=Mt(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=L.makeSpan(n,r,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Ka(e.body,t)});ee({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:yt(t[0]),mathml:yt(t[1])}},htmlBuilder:(e,t)=>{var r=Mt(e.html,t,!1);return L.makeFragment(r)},mathmlBuilder:(e,t)=>Ka(e.mathml,t)});var mv=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new G("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!ej(n))throw new G("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};ee({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},o={number:0,unit:"em"},l="";if(r[0])for(var s=be(r[0],"raw").string,u=s.split(","),c=0;c<u.length;c++){var f=u[c].split("=");if(f.length===2){var d=f[1].trim();switch(f[0].trim()){case"alt":l=d;break;case"width":i=mv(d);break;case"height":a=mv(d);break;case"totalheight":o=mv(d);break;default:throw new G("Invalid key: '"+f[0]+"' in \\includegraphics.")}}}var m=be(t[0],"url").url;return l===""&&(l=m,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:m})?{type:"includegraphics",mode:n.mode,alt:l,width:i,height:a,totalheight:o,src:m}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=it(e.height,t),n=0;e.totalheight.number>0&&(n=it(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=it(e.width,t));var a={height:Q(r+n)};i>0&&(a.width=Q(i)),n>0&&(a.verticalAlign=Q(-n));var o=new Die(e.src,e.alt,a);return o.height=r,o.depth=n,o},mathmlBuilder:(e,t)=>{var r=new q.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=it(e.height,t),i=0;if(e.totalheight.number>0&&(i=it(e.totalheight,t)-n,r.setAttribute("valign",Q(-i))),r.setAttribute("height",Q(n+i)),e.width.number>0){var a=it(e.width,t);r.setAttribute("width",Q(a))}return r.setAttribute("src",e.src),r}});ee({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=be(t[0],"size");if(r.settings.strict){var a=n[1]==="m",o=i.value.unit==="mu";a?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return L.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=it(e.dimension,t);return new q.SpaceNode(r)}});ee({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=L.makeSpan([],[Ee(e.body,t)]),r=L.makeSpan(["inner"],[r],t)):r=L.makeSpan(["inner"],[Ee(e.body,t)]);var n=L.makeSpan(["fix"],[]),i=L.makeSpan([e.alignment],[r,n],t),a=L.makeSpan(["strut"]);return a.style.height=Q(i.height+i.depth),i.depth&&(a.style.verticalAlign=Q(-i.depth)),i.children.unshift(a),i=L.makeSpan(["thinbox"],[i],t),L.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new q.MathNode("mpadded",[ze(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});ee({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",o=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:o}}});ee({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new G("Mismatched "+e.funcName)}});var mw=(e,t)=>{switch(t.style.size){case pe.DISPLAY.size:return e.display;case pe.TEXT.size:return e.text;case pe.SCRIPT.size:return e.script;case pe.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ee({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:yt(t[0]),text:yt(t[1]),script:yt(t[2]),scriptscript:yt(t[3])}},htmlBuilder:(e,t)=>{var r=mw(e,t),n=Mt(r,t,!1);return L.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=mw(e,t);return Ka(r,t)}});var zj=(e,t,r,n,i,a,o)=>{e=L.makeSpan([],[e]);var l=r&&he.isCharacterBox(r),s,u;if(t){var c=Ee(t,n.havingStyle(i.sup()),n);u={elem:c,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-c.depth)}}if(r){var f=Ee(r,n.havingStyle(i.sub()),n);s={elem:f,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-f.height)}}var d;if(u&&s){var m=n.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;d=L.makeVList({positionType:"bottom",positionData:m,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:Q(-a)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Q(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(s){var g=e.height-o;d=L.makeVList({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:Q(-a)},{type:"kern",size:s.kern},{type:"elem",elem:e}]})}else if(u){var v=e.depth+o;d=L.makeVList({positionType:"bottom",positionData:v,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Q(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var x=[d];if(s&&a!==0&&!l){var y=L.makeSpan(["mspace"],[],n);y.style.marginRight=Q(a),x.unshift(y)}return L.makeSpan(["mop","op-limits"],x,n)},Rj=["\\smallint"],qs=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=be(e.base,"op"),i=!0):a=be(e,"op");var o=t.style,l=!1;o.size===pe.DISPLAY.size&&a.symbol&&!he.contains(Rj,a.name)&&(l=!0);var s;if(a.symbol){var u=l?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),s=L.makeSymbol(a.name,u,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),c.length>0){var f=s.italic,d=L.staticSvg(c+"Size"+(l?"2":"1"),t);s=L.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:0},{type:"elem",elem:d,shift:l?.08:0}]}),a.name="\\"+c,s.classes.unshift("mop"),s.italic=f}}else if(a.body){var m=Mt(a.body,t,!0);m.length===1&&m[0]instanceof pn?(s=m[0],s.classes[0]="mop"):s=L.makeSpan(["mop"],m,t)}else{for(var g=[],v=1;v<a.name.length;v++)g.push(L.mathsym(a.name[v],a.mode,t));s=L.makeSpan(["mop"],g,t)}var x=0,y=0;return(s instanceof pn||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift&&(x=(s.height-s.depth)/2-t.fontMetrics().axisHeight,y=s.italic),i?zj(s,r,n,t,o,y,x):(x&&(s.style.position="relative",s.style.top=Q(x)),s)},r0=(e,t)=>{var r;if(e.symbol)r=new Br("mo",[vn(e.name,e.mode)]),he.contains(Rj,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Br("mo",Dr(e.body,t));else{r=new Br("mi",[new Zn(e.name.slice(1))]);var n=new Br("mo",[vn("","text")]);e.parentIsSupSub?r=new Br("mrow",[r,n]):r=fj([r,n])}return r},zae={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ee({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=n;return i.length===1&&(i=zae[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:qs,mathmlBuilder:r0});ee({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:yt(n)}},htmlBuilder:qs,mathmlBuilder:r0});var Rae={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ee({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:qs,mathmlBuilder:r0});ee({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:qs,mathmlBuilder:r0});ee({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=Rae[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:qs,mathmlBuilder:r0});var Lj=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=be(e.base,"operatorname"),i=!0):a=be(e,"operatorname");var o;if(a.body.length>0){for(var l=a.body.map(f=>{var d=f.text;return typeof d=="string"?{type:"textord",mode:f.mode,text:d}:f}),s=Mt(l,t.withFont("mathrm"),!0),u=0;u<s.length;u++){var c=s[u];c instanceof pn&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=L.makeSpan(["mop"],s,t)}else o=L.makeSpan(["mop"],[],t);return i?zj(o,r,n,t,t.style,0,0):o},Lae=(e,t)=>{for(var r=Dr(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var a=r[i];if(!(a instanceof q.SpaceNode))if(a instanceof q.MathNode)switch(a.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=a.children[0];a.children.length===1&&o instanceof q.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var l=r.map(c=>c.toText()).join("");r=[new q.TextNode(l)]}var s=new q.MathNode("mi",r);s.setAttribute("mathvariant","normal");var u=new q.MathNode("mo",[vn("","text")]);return e.parentIsSupSub?new q.MathNode("mrow",[s,u]):q.newDocumentFragment([s,u])};ee({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:yt(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Lj,mathmlBuilder:Lae});C("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ll({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?L.makeFragment(Mt(e.body,t,!1)):L.makeSpan(["mord"],Mt(e.body,t,!0),t)},mathmlBuilder(e,t){return Ka(e.body,t,!0)}});ee({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=Ee(e.body,t.havingCrampedStyle()),n=L.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return L.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new q.MathNode("mo",[new q.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new q.MathNode("mover",[ze(e.body,t),r]);return n.setAttribute("accent","true"),n}});ee({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:yt(n)}},htmlBuilder:(e,t)=>{var r=Mt(e.body,t.withPhantom(),!1);return L.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=Dr(e.body,t);return new q.MathNode("mphantom",r)}});ee({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=L.makeSpan([],[Ee(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]}),L.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=Dr(yt(e.body),t),n=new q.MathNode("mphantom",r),i=new q.MathNode("mpadded",[n]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ee({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=L.makeSpan(["inner"],[Ee(e.body,t.withPhantom())]),n=L.makeSpan(["fix"],[]);return L.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Dr(yt(e.body),t),n=new q.MathNode("mphantom",r),i=new q.MathNode("mpadded",[n]);return i.setAttribute("width","0px"),i}});ee({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=be(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=Ee(e.body,t),n=it(e.dy,t);return L.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new q.MathNode("mpadded",[ze(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});ee({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ee({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],a=be(t[0],"size"),o=be(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&be(i,"size").value,width:a.value,height:o.value}},htmlBuilder(e,t){var r=L.makeSpan(["mord","rule"],[],t),n=it(e.width,t),i=it(e.height,t),a=e.shift?it(e.shift,t):0;return r.style.borderRightWidth=Q(n),r.style.borderTopWidth=Q(i),r.style.bottom=Q(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=it(e.width,t),n=it(e.height,t),i=e.shift?it(e.shift,t):0,a=t.color&&t.getColor()||"black",o=new q.MathNode("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",Q(r)),o.setAttribute("height",Q(n));var l=new q.MathNode("mpadded",[o]);return i>=0?l.setAttribute("height",Q(i)):(l.setAttribute("height",Q(i)),l.setAttribute("depth",Q(-i))),l.setAttribute("voffset",Q(i)),l}});function $j(e,t,r){for(var n=Mt(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,a=0;a<n.length;a++){var o=n[a].classes.indexOf("sizing");o<0?Array.prototype.push.apply(n[a].classes,t.sizingClasses(r)):n[a].classes[o+1]==="reset-size"+t.size&&(n[a].classes[o+1]="reset-size"+r.size),n[a].height*=i,n[a].depth*=i}return L.makeFragment(n)}var pw=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],$ae=(e,t)=>{var r=t.havingSize(e.size);return $j(e.body,r,t)};ee({type:"sizing",names:pw,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:pw.indexOf(n)+1,body:a}},htmlBuilder:$ae,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Dr(e.body,r),i=new q.MathNode("mstyle",n);return i.setAttribute("mathsize",Q(r.sizeMultiplier)),i}});ee({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,a=!1,o=r[0]&&be(r[0],"ordgroup");if(o)for(var l="",s=0;s<o.body.length;++s){var u=o.body[s];if(l=u.text,l==="t")i=!0;else if(l==="b")a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var c=t[0];return{type:"smash",mode:n.mode,body:c,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var r=L.makeSpan([],[Ee(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var i=0;i<r.children.length;i++)r.children[i].depth=0;var a=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return L.makeSpan(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var r=new q.MathNode("mpadded",[ze(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});ee({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],a=t[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(e,t){var r=Ee(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=L.wrapFragment(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,a=i;t.style.id<pe.TEXT.id&&(a=t.fontMetrics().xHeight);var o=i+a/4,l=r.height+r.depth+o+i,{span:s,ruleWidth:u,advanceWidth:c}=$i.sqrtImage(l,t),f=s.height-u;f>r.height+r.depth+o&&(o=(o+f-r.height-r.depth)/2);var d=s.height-r.height-o-u;r.style.paddingLeft=Q(c);var m=L.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+d)},{type:"elem",elem:s},{type:"kern",size:u}]});if(e.index){var g=t.havingStyle(pe.SCRIPTSCRIPT),v=Ee(e.index,g,t),x=.6*(m.height-m.depth),y=L.makeVList({positionType:"shift",positionData:-x,children:[{type:"elem",elem:v}]}),w=L.makeSpan(["root"],[y]);return L.makeSpan(["mord","sqrt"],[w,m],t)}else return L.makeSpan(["mord","sqrt"],[m],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new q.MathNode("mroot",[ze(r,t),ze(n,t)]):new q.MathNode("msqrt",[ze(r,t)])}});var vw={display:pe.DISPLAY,text:pe.TEXT,script:pe.SCRIPT,scriptscript:pe.SCRIPTSCRIPT};ee({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var r=vw[e.style],n=t.havingStyle(r).withFont("");return $j(e.body,n,t)},mathmlBuilder(e,t){var r=vw[e.style],n=t.havingStyle(r),i=Dr(e.body,n),a=new q.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=o[e.style];return a.setAttribute("scriptlevel",l[0]),a.setAttribute("displaystyle",l[1]),a}});var Bae=function(t,r){var n=t.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===pe.DISPLAY.size||n.alwaysHandleSupSub);return i?qs:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===pe.DISPLAY.size||n.limits);return a?Lj:null}else{if(n.type==="accent")return he.isCharacterBox(n.base)?nx:null;if(n.type==="horizBrace"){var o=!t.sub;return o===n.isOver?Dj:null}else return null}else return null};ll({type:"supsub",htmlBuilder(e,t){var r=Bae(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:a}=e,o=Ee(n,t),l,s,u=t.fontMetrics(),c=0,f=0,d=n&&he.isCharacterBox(n);if(i){var m=t.havingStyle(t.style.sup());l=Ee(i,m,t),d||(c=o.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var g=t.havingStyle(t.style.sub());s=Ee(a,g,t),d||(f=o.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var v;t.style===pe.DISPLAY?v=u.sup1:t.style.cramped?v=u.sup3:v=u.sup2;var x=t.sizeMultiplier,y=Q(.5/u.ptPerEm/x),w=null;if(s){var S=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(o instanceof pn||S)&&(w=Q(-o.italic))}var A;if(l&&s){c=Math.max(c,v,l.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var P=u.defaultRuleThickness,O=4*P;if(c-l.depth-(s.height-f)<O){f=O-(c-l.depth)+s.height;var j=.8*u.xHeight-(c-l.depth);j>0&&(c+=j,f-=j)}var N=[{type:"elem",elem:s,shift:f,marginRight:y,marginLeft:w},{type:"elem",elem:l,shift:-c,marginRight:y}];A=L.makeVList({positionType:"individualShift",children:N})}else if(s){f=Math.max(f,u.sub1,s.height-.8*u.xHeight);var _=[{type:"elem",elem:s,marginLeft:w,marginRight:y}];A=L.makeVList({positionType:"shift",positionData:f,children:_})}else if(l)c=Math.max(c,v,l.depth+.25*u.xHeight),A=L.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:l,marginRight:y}]});else throw new Error("supsub must have either sup or sub.");var z=Mg(o,"right")||"mord";return L.makeSpan([z],[o,L.makeSpan(["msupsub"],[A])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[ze(e.base,t)];e.sub&&a.push(ze(e.sub,t)),e.sup&&a.push(ze(e.sup,t));var o;if(r)o=n?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===pe.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===pe.DISPLAY||u.limits)?o="munderover":o="msubsup"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===pe.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===pe.DISPLAY)?o="munder":o="msub"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===pe.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===pe.DISPLAY)?o="mover":o="msup"}return new q.MathNode(o,a)}});ll({type:"atom",htmlBuilder(e,t){return L.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new q.MathNode("mo",[vn(e.text,e.mode)]);if(e.family==="bin"){var n=tx(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var Bj={mi:"italic",mn:"normal",mtext:"normal"};ll({type:"mathord",htmlBuilder(e,t){return L.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new q.MathNode("mi",[vn(e.text,e.mode,t)]),n=tx(e,t)||"italic";return n!==Bj[r.type]&&r.setAttribute("mathvariant",n),r}});ll({type:"textord",htmlBuilder(e,t){return L.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=vn(e.text,e.mode,t),n=tx(e,t)||"normal",i;return e.mode==="text"?i=new q.MathNode("mtext",[r]):/[0-9]/.test(e.text)?i=new q.MathNode("mn",[r]):e.text==="\\prime"?i=new q.MathNode("mo",[r]):i=new q.MathNode("mi",[r]),n!==Bj[i.type]&&i.setAttribute("mathvariant",n),i}});var pv={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},vv={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ll({type:"spacing",htmlBuilder(e,t){if(vv.hasOwnProperty(e.text)){var r=vv[e.text].className||"";if(e.mode==="text"){var n=L.makeOrd(e,t,"textord");return n.classes.push(r),n}else return L.makeSpan(["mspace",r],[L.mathsym(e.text,e.mode,t)],t)}else{if(pv.hasOwnProperty(e.text))return L.makeSpan(["mspace",pv[e.text]],[],t);throw new G('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(vv.hasOwnProperty(e.text))r=new q.MathNode("mtext",[new q.TextNode(" ")]);else{if(pv.hasOwnProperty(e.text))return new q.MathNode("mspace");throw new G('Unknown type of space "'+e.text+'"')}return r}});var gw=()=>{var e=new q.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};ll({type:"tag",mathmlBuilder(e,t){var r=new q.MathNode("mtable",[new q.MathNode("mtr",[gw(),new q.MathNode("mtd",[Ka(e.body,t)]),gw(),new q.MathNode("mtd",[Ka(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var yw={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},xw={"\\textbf":"textbf","\\textmd":"textmd"},Fae={"\\textit":"textit","\\textup":"textup"},bw=(e,t)=>{var r=e.font;if(r){if(yw[r])return t.withTextFontFamily(yw[r]);if(xw[r])return t.withTextFontWeight(xw[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Fae[r])};ee({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:yt(i),font:n}},htmlBuilder(e,t){var r=bw(e,t),n=Mt(e.body,r,!0);return L.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=bw(e,t);return Ka(e.body,r)}});ee({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Ee(e.body,t),n=L.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=L.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return L.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new q.MathNode("mo",[new q.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new q.MathNode("munder",[ze(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});ee({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Ee(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return L.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){return new q.MathNode("mpadded",[ze(e.body,t)],["vcenter"])}});ee({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new G("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=ww(e),n=[],i=t.havingStyle(t.style.text()),a=0;a<r.length;a++){var o=r[a];o==="~"&&(o="\\textasciitilde"),n.push(L.makeSymbol(o,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return L.makeSpan(["mord","text"].concat(i.sizingClasses(t)),L.tryCombineChars(n),i)},mathmlBuilder(e,t){var r=new q.TextNode(ww(e)),n=new q.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var ww=e=>e.body.replace(/ /g,e.star?"␣":" "),Pa=uj,Fj=`[ \r
|
|
360
|
+
]`,Hae="\\\\[a-zA-Z@]+",Wae="\\\\[^\uD800-\uDFFF]",Uae="("+Hae+")"+Fj+"*",qae=`\\\\(
|
|
361
|
+
|[ \r ]+
|
|
362
|
+
?)[ \r ]*`,Dg="[̀-ͯ]",Vae=new RegExp(Dg+"+$"),Kae="("+Fj+"+)|"+(qae+"|")+"([!-\\[\\]-‧-豈-]"+(Dg+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Dg+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Uae)+("|"+Wae+")");class Sw{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(Kae,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new un("EOF",new Lr(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new G("Unexpected character: '"+t[r]+"'",new un(t[r],new Lr(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(`
|
|
363
|
+
`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new un(i,new Lr(this,r,this.tokenRegex.lastIndex))}}class Gae{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new G("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var Yae=Nj;C("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});C("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});C("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});C("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});C("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});C("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");C("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var kw={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};C("\\char",function(e){var t=e.popToken(),r,n="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new G("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=kw[t.text],n==null||n>=r)throw new G("Invalid base-"+r+" digit "+t.text);for(var i;(i=kw[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var fx=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new G("\\newcommand's first argument must be a macro name");var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new G("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!o&&!r)throw new G("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var l=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var s="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)s+=u.text,u=e.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new G("Invalid number of arguments: "+s);l=parseInt(s),i=e.consumeArg().tokens}return o&&n||e.macros.set(a,{tokens:i,numArgs:l}),""};C("\\newcommand",e=>fx(e,!1,!0,!1));C("\\renewcommand",e=>fx(e,!0,!1,!1));C("\\providecommand",e=>fx(e,!0,!0,!0));C("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});C("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});C("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Pa[r],Fe.math[r],Fe.text[r]),""});C("\\bgroup","{");C("\\egroup","}");C("~","\\nobreakspace");C("\\lq","`");C("\\rq","'");C("\\aa","\\r a");C("\\AA","\\r A");C("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");C("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");C("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");C("ℬ","\\mathscr{B}");C("ℰ","\\mathscr{E}");C("ℱ","\\mathscr{F}");C("ℋ","\\mathscr{H}");C("ℐ","\\mathscr{I}");C("ℒ","\\mathscr{L}");C("ℳ","\\mathscr{M}");C("ℛ","\\mathscr{R}");C("ℭ","\\mathfrak{C}");C("ℌ","\\mathfrak{H}");C("ℨ","\\mathfrak{Z}");C("\\Bbbk","\\Bbb{k}");C("·","\\cdotp");C("\\llap","\\mathllap{\\textrm{#1}}");C("\\rlap","\\mathrlap{\\textrm{#1}}");C("\\clap","\\mathclap{\\textrm{#1}}");C("\\mathstrut","\\vphantom{(}");C("\\underbar","\\underline{\\text{#1}}");C("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');C("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");C("\\ne","\\neq");C("≠","\\neq");C("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");C("∉","\\notin");C("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");C("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");C("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");C("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");C("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");C("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");C("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");C("⟂","\\perp");C("‼","\\mathclose{!\\mkern-0.8mu!}");C("∌","\\notni");C("⌜","\\ulcorner");C("⌝","\\urcorner");C("⌞","\\llcorner");C("⌟","\\lrcorner");C("©","\\copyright");C("®","\\textregistered");C("️","\\textregistered");C("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');C("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');C("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');C("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');C("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");C("⋮","\\vdots");C("\\varGamma","\\mathit{\\Gamma}");C("\\varDelta","\\mathit{\\Delta}");C("\\varTheta","\\mathit{\\Theta}");C("\\varLambda","\\mathit{\\Lambda}");C("\\varXi","\\mathit{\\Xi}");C("\\varPi","\\mathit{\\Pi}");C("\\varSigma","\\mathit{\\Sigma}");C("\\varUpsilon","\\mathit{\\Upsilon}");C("\\varPhi","\\mathit{\\Phi}");C("\\varPsi","\\mathit{\\Psi}");C("\\varOmega","\\mathit{\\Omega}");C("\\substack","\\begin{subarray}{c}#1\\end{subarray}");C("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");C("\\boxed","\\fbox{$\\displaystyle{#1}$}");C("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");C("\\implies","\\DOTSB\\;\\Longrightarrow\\;");C("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");C("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");C("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Aw={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};C("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Aw?t=Aw[r]:(r.slice(0,4)==="\\not"||r in Fe.math&&he.contains(["bin","rel"],Fe.math[r].group))&&(t="\\dotsb"),t});var dx={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};C("\\dotso",function(e){var t=e.future().text;return t in dx?"\\ldots\\,":"\\ldots"});C("\\dotsc",function(e){var t=e.future().text;return t in dx&&t!==","?"\\ldots\\,":"\\ldots"});C("\\cdots",function(e){var t=e.future().text;return t in dx?"\\@cdots\\,":"\\@cdots"});C("\\dotsb","\\cdots");C("\\dotsm","\\cdots");C("\\dotsi","\\!\\cdots");C("\\dotsx","\\ldots\\,");C("\\DOTSI","\\relax");C("\\DOTSB","\\relax");C("\\DOTSX","\\relax");C("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");C("\\,","\\tmspace+{3mu}{.1667em}");C("\\thinspace","\\,");C("\\>","\\mskip{4mu}");C("\\:","\\tmspace+{4mu}{.2222em}");C("\\medspace","\\:");C("\\;","\\tmspace+{5mu}{.2777em}");C("\\thickspace","\\;");C("\\!","\\tmspace-{3mu}{.1667em}");C("\\negthinspace","\\!");C("\\negmedspace","\\tmspace-{4mu}{.2222em}");C("\\negthickspace","\\tmspace-{5mu}{.277em}");C("\\enspace","\\kern.5em ");C("\\enskip","\\hskip.5em\\relax");C("\\quad","\\hskip1em\\relax");C("\\qquad","\\hskip2em\\relax");C("\\tag","\\@ifstar\\tag@literal\\tag@paren");C("\\tag@paren","\\tag@literal{({#1})}");C("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new G("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});C("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");C("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");C("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");C("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");C("\\newline","\\\\\\relax");C("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Hj=Q(Xn["Main-Regular"][84][1]-.7*Xn["Main-Regular"][65][1]);C("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Hj+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");C("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Hj+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");C("\\hspace","\\@ifstar\\@hspacer\\@hspace");C("\\@hspace","\\hskip #1\\relax");C("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");C("\\ordinarycolon",":");C("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");C("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');C("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');C("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');C("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');C("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');C("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');C("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');C("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');C("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');C("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');C("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');C("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');C("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');C("∷","\\dblcolon");C("∹","\\eqcolon");C("≔","\\coloneqq");C("≕","\\eqqcolon");C("⩴","\\Coloneqq");C("\\ratio","\\vcentcolon");C("\\coloncolon","\\dblcolon");C("\\colonequals","\\coloneqq");C("\\coloncolonequals","\\Coloneqq");C("\\equalscolon","\\eqqcolon");C("\\equalscoloncolon","\\Eqqcolon");C("\\colonminus","\\coloneq");C("\\coloncolonminus","\\Coloneq");C("\\minuscolon","\\eqcolon");C("\\minuscoloncolon","\\Eqcolon");C("\\coloncolonapprox","\\Colonapprox");C("\\coloncolonsim","\\Colonsim");C("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");C("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");C("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");C("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");C("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");C("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");C("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");C("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");C("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");C("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");C("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");C("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");C("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");C("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");C("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");C("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");C("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");C("\\nleqq","\\html@mathml{\\@nleqq}{≰}");C("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");C("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");C("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");C("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");C("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");C("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");C("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");C("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");C("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");C("\\imath","\\html@mathml{\\@imath}{ı}");C("\\jmath","\\html@mathml{\\@jmath}{ȷ}");C("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");C("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");C("⟦","\\llbracket");C("⟧","\\rrbracket");C("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");C("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");C("⦃","\\lBrace");C("⦄","\\rBrace");C("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");C("⦵","\\minuso");C("\\darr","\\downarrow");C("\\dArr","\\Downarrow");C("\\Darr","\\Downarrow");C("\\lang","\\langle");C("\\rang","\\rangle");C("\\uarr","\\uparrow");C("\\uArr","\\Uparrow");C("\\Uarr","\\Uparrow");C("\\N","\\mathbb{N}");C("\\R","\\mathbb{R}");C("\\Z","\\mathbb{Z}");C("\\alef","\\aleph");C("\\alefsym","\\aleph");C("\\Alpha","\\mathrm{A}");C("\\Beta","\\mathrm{B}");C("\\bull","\\bullet");C("\\Chi","\\mathrm{X}");C("\\clubs","\\clubsuit");C("\\cnums","\\mathbb{C}");C("\\Complex","\\mathbb{C}");C("\\Dagger","\\ddagger");C("\\diamonds","\\diamondsuit");C("\\empty","\\emptyset");C("\\Epsilon","\\mathrm{E}");C("\\Eta","\\mathrm{H}");C("\\exist","\\exists");C("\\harr","\\leftrightarrow");C("\\hArr","\\Leftrightarrow");C("\\Harr","\\Leftrightarrow");C("\\hearts","\\heartsuit");C("\\image","\\Im");C("\\infin","\\infty");C("\\Iota","\\mathrm{I}");C("\\isin","\\in");C("\\Kappa","\\mathrm{K}");C("\\larr","\\leftarrow");C("\\lArr","\\Leftarrow");C("\\Larr","\\Leftarrow");C("\\lrarr","\\leftrightarrow");C("\\lrArr","\\Leftrightarrow");C("\\Lrarr","\\Leftrightarrow");C("\\Mu","\\mathrm{M}");C("\\natnums","\\mathbb{N}");C("\\Nu","\\mathrm{N}");C("\\Omicron","\\mathrm{O}");C("\\plusmn","\\pm");C("\\rarr","\\rightarrow");C("\\rArr","\\Rightarrow");C("\\Rarr","\\Rightarrow");C("\\real","\\Re");C("\\reals","\\mathbb{R}");C("\\Reals","\\mathbb{R}");C("\\Rho","\\mathrm{P}");C("\\sdot","\\cdot");C("\\sect","\\S");C("\\spades","\\spadesuit");C("\\sub","\\subset");C("\\sube","\\subseteq");C("\\supe","\\supseteq");C("\\Tau","\\mathrm{T}");C("\\thetasym","\\vartheta");C("\\weierp","\\wp");C("\\Zeta","\\mathrm{Z}");C("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");C("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");C("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");C("\\bra","\\mathinner{\\langle{#1}|}");C("\\ket","\\mathinner{|{#1}\\rangle}");C("\\braket","\\mathinner{\\langle{#1}\\rangle}");C("\\Bra","\\left\\langle#1\\right|");C("\\Ket","\\left|#1\\right\\rangle");var Wj=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get("|"),l=t.macros.get("\\|");t.macros.beginGroup();var s=f=>d=>{e&&(d.macros.set("|",o),i.length&&d.macros.set("\\|",l));var m=f;if(!f&&i.length){var g=d.future();g.text==="|"&&(d.popToken(),m=!0)}return{tokens:m?i:n,numArgs:0}};t.macros.set("|",s(!1)),i.length&&t.macros.set("\\|",s(!0));var u=t.consumeArg().tokens,c=t.expandTokens([...a,...u,...r]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};C("\\bra@ket",Wj(!1));C("\\bra@set",Wj(!0));C("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");C("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");C("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");C("\\angln","{\\angl n}");C("\\blue","\\textcolor{##6495ed}{#1}");C("\\orange","\\textcolor{##ffa500}{#1}");C("\\pink","\\textcolor{##ff00af}{#1}");C("\\red","\\textcolor{##df0030}{#1}");C("\\green","\\textcolor{##28ae7b}{#1}");C("\\gray","\\textcolor{gray}{#1}");C("\\purple","\\textcolor{##9d38bd}{#1}");C("\\blueA","\\textcolor{##ccfaff}{#1}");C("\\blueB","\\textcolor{##80f6ff}{#1}");C("\\blueC","\\textcolor{##63d9ea}{#1}");C("\\blueD","\\textcolor{##11accd}{#1}");C("\\blueE","\\textcolor{##0c7f99}{#1}");C("\\tealA","\\textcolor{##94fff5}{#1}");C("\\tealB","\\textcolor{##26edd5}{#1}");C("\\tealC","\\textcolor{##01d1c1}{#1}");C("\\tealD","\\textcolor{##01a995}{#1}");C("\\tealE","\\textcolor{##208170}{#1}");C("\\greenA","\\textcolor{##b6ffb0}{#1}");C("\\greenB","\\textcolor{##8af281}{#1}");C("\\greenC","\\textcolor{##74cf70}{#1}");C("\\greenD","\\textcolor{##1fab54}{#1}");C("\\greenE","\\textcolor{##0d923f}{#1}");C("\\goldA","\\textcolor{##ffd0a9}{#1}");C("\\goldB","\\textcolor{##ffbb71}{#1}");C("\\goldC","\\textcolor{##ff9c39}{#1}");C("\\goldD","\\textcolor{##e07d10}{#1}");C("\\goldE","\\textcolor{##a75a05}{#1}");C("\\redA","\\textcolor{##fca9a9}{#1}");C("\\redB","\\textcolor{##ff8482}{#1}");C("\\redC","\\textcolor{##f9685d}{#1}");C("\\redD","\\textcolor{##e84d39}{#1}");C("\\redE","\\textcolor{##bc2612}{#1}");C("\\maroonA","\\textcolor{##ffbde0}{#1}");C("\\maroonB","\\textcolor{##ff92c6}{#1}");C("\\maroonC","\\textcolor{##ed5fa6}{#1}");C("\\maroonD","\\textcolor{##ca337c}{#1}");C("\\maroonE","\\textcolor{##9e034e}{#1}");C("\\purpleA","\\textcolor{##ddd7ff}{#1}");C("\\purpleB","\\textcolor{##c6b9fc}{#1}");C("\\purpleC","\\textcolor{##aa87ff}{#1}");C("\\purpleD","\\textcolor{##7854ab}{#1}");C("\\purpleE","\\textcolor{##543b78}{#1}");C("\\mintA","\\textcolor{##f5f9e8}{#1}");C("\\mintB","\\textcolor{##edf2df}{#1}");C("\\mintC","\\textcolor{##e0e5cc}{#1}");C("\\grayA","\\textcolor{##f6f7f7}{#1}");C("\\grayB","\\textcolor{##f0f1f2}{#1}");C("\\grayC","\\textcolor{##e3e5e6}{#1}");C("\\grayD","\\textcolor{##d6d8da}{#1}");C("\\grayE","\\textcolor{##babec2}{#1}");C("\\grayF","\\textcolor{##888d93}{#1}");C("\\grayG","\\textcolor{##626569}{#1}");C("\\grayH","\\textcolor{##3b3e40}{#1}");C("\\grayI","\\textcolor{##21242c}{#1}");C("\\kaBlue","\\textcolor{##314453}{#1}");C("\\kaGreen","\\textcolor{##71B307}{#1}");var Uj={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Xae{constructor(t,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new Gae(Yae,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new Sw(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new un("EOF",n.loc)),this.pushTokens(i),r.range(n,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),a,o=0,l=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++o;else if(a.text==="}"){if(--o,o===-1)throw new G("Extra }",a)}else if(a.text==="EOF")throw new G("Unexpected end of input in a macro argument, expected '"+(t&&n?t[l]:"}")+"'",a);if(t&&n)if((o===0||o===1&&t[l]==="{")&&a.text===t[l]){if(++l,l===t.length){r.splice(-l,l);break}}else l=0}while(o!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new G("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var a=this.popToken();if(n[i]!==a.text)throw new G("Use of the macro doesn't match its definition",a)}}for(var o=[],l=0;l<t;l++)o.push(this.consumeArg(r&&r[l+1]).tokens);return o}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new G("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new G("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var l=a.length-1;l>=0;--l){var s=a[l];if(s.text==="#"){if(l===0)throw new G("Incomplete placeholder at end of macro body",s);if(s=a[--l],s.text==="#")a.splice(l+1,1);else if(/^[1-9]$/.test(s.text))a.splice(l,2,...o[+s.text-1]);else throw new G("Not a valid argument number",s)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new un(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var o=i.replace(/##/g,"");o.indexOf("#"+(a+1))!==-1;)++a;for(var l=new Sw(i,this.settings),s=[],u=l.lex();u.text!=="EOF";)s.push(u),u=l.lex();s.reverse();var c={tokens:s,numArgs:a};return c}return i}isDefined(t){return this.macros.has(t)||Pa.hasOwnProperty(t)||Fe.math.hasOwnProperty(t)||Fe.text.hasOwnProperty(t)||Uj.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Pa.hasOwnProperty(t)&&!Pa[t].primitive}}var Pw=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Z0=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),gv={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Ew={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Um{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Xae(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new G("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new un("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(Um.endOfExpression.indexOf(i.text)!==-1||r&&i.text===r||t&&Pa[i.text]&&Pa[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i<t.length;i++)if(t[i].type==="infix"){if(r!==-1)throw new G("only one infix operator per group",t[i].token);r=i,n=t[i].replaceWith}if(r!==-1&&n){var a,o,l=t.slice(0,r),s=t.slice(r+1);l.length===1&&l[0].type==="ordgroup"?a=l[0]:a={type:"ordgroup",mode:this.mode,body:l},s.length===1&&s[0].type==="ordgroup"?o=s[0]:o={type:"ordgroup",mode:this.mode,body:s};var u;return n==="\\\\abovefrac"?u=this.callFunction(n,[a,t[r],o],[]):u=this.callFunction(n,[a,o],[]),[u]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i;do{var a;i=this.parseGroup(t)}while(((a=i)==null?void 0:a.type)==="internal");if(!i)throw new G("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var i={type:"text",mode:this.mode,body:r},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return a}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(r&&r.type==="op"){var o=a.text==="\\limits";r.limits=o,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=a.text==="\\limits");else throw new G("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(n)throw new G("Double superscript",a);n=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(i)throw new G("Double subscript",a);i=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(n)throw new G("Double superscript",a);var l={type:"textord",mode:this.mode,text:"\\prime"},s=[l];for(this.consume();this.fetch().text==="'";)s.push(l),this.consume();this.fetch().text==="^"&&s.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:s}}else if(Z0[a.text]){var u=Pw.test(a.text),c=[];for(c.push(new un(Z0[a.text])),this.consume();;){var f=this.fetch().text;if(!Z0[f]||Pw.test(f)!==u)break;c.unshift(new un(Z0[f])),this.consume()}var d=this.subparse(c);u?i={type:"ordgroup",mode:"math",body:d}:n={type:"ordgroup",mode:"math",body:d}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(t,r){var n=this.fetch(),i=n.text,a=Pa[i];if(!a)return null;if(this.consume(),r&&r!=="atom"&&!a.allowedInArgument)throw new G("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!a.allowedInText)throw new G("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&a.allowedInMath===!1)throw new G("Can't use function '"+i+"' in math mode",n);var{args:o,optArgs:l}=this.parseArguments(i,a);return this.callFunction(i,o,l,n,t)}callFunction(t,r,n,i,a){var o={funcName:t,parser:this,token:i,breakOnTokenText:a},l=Pa[t];if(l&&l.handler)return l.handler(o,r,n);throw new G("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],a=[],o=0;o<n;o++){var l=r.argTypes&&r.argTypes[o],s=o<r.numOptionalArgs;(r.primitive&&l==null||r.type==="sqrt"&&o===1&&a[0]==null)&&(l="primitive");var u=this.parseGroupOfType("argument to '"+t+"'",l,s);if(s)a.push(u);else if(u!=null)i.push(u);else throw new G("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var a=this.parseStringGroup("raw",n);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(n)throw new G("A primitive argument cannot be optional");var o=this.parseGroup(t);if(o==null)throw new G("Expected group as "+t,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new G("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",a;(a=this.fetch()).text!=="EOF";)i+=a.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(t,r){for(var n=this.fetch(),i=n,a="",o;(o=this.fetch()).text!=="EOF"&&t.test(a+o.text);)i=o,a+=i.text,this.consume();if(a==="")throw new G("Invalid "+r+": '"+n.text+"'",n);return n.range(i,a)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new G("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new G("Invalid size: '"+r.text+"'",r);var a={number:+(i[1]+i[2]),unit:i[3]};if(!ej(a))throw new G("Invalid unit: '"+a.unit+"'",r);return{type:"size",mode:this.mode,value:a,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:n.loc,body:a};return r&&this.switchMode(i),o}parseGroup(t,r){var n=this.fetch(),i=n.text,a;if(i==="{"||i==="\\begingroup"){this.consume();var o=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var l=this.parseExpression(!1,o),s=this.fetch();this.expect(o),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:Lr.range(n,s),body:l,semisimple:i==="\\begingroup"||void 0}}else if(a=this.parseFunction(r,t)||this.parseSymbol(),a==null&&i[0]==="\\"&&!Uj.hasOwnProperty(i)){if(this.settings.throwOnError)throw new G("Undefined control sequence: "+i,n);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var i=t[n],a=i.text;a==="-"&&t[n+1].text==="-"&&(n+1<r&&t[n+2].text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:Lr.range(i,t[n+2]),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:Lr.range(i,t[n+1]),text:"--"}),r-=1)),(a==="'"||a==="`")&&t[n+1].text===a&&(t.splice(n,2,{type:"textord",mode:"text",loc:Lr.range(i,t[n+1]),text:a+a}),r-=1)}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new G(`\\verb assertion failed --
|
|
364
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}Ew.hasOwnProperty(r[0])&&!Fe[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=Ew[r[0]]+r.slice(1));var a=Vae.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var o;if(Fe[this.mode][r]){this.settings.strict&&this.mode==="math"&&Ng.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var l=Fe[this.mode][r].group,s=Lr.range(t),u;if(Lie.hasOwnProperty(l)){var c=l;u={type:"atom",mode:this.mode,family:c,loc:s,text:r}}else u={type:l,mode:this.mode,loc:s,text:r};o=u}else if(r.charCodeAt(0)>=128)this.settings.strict&&(JC(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),o={type:"textord",mode:"text",loc:Lr.range(t),text:r};else return null;if(this.consume(),a)for(var f=0;f<a[0].length;f++){var d=a[0][f];if(!gv[d])throw new G("Unknown accent ' "+d+"'",t);var m=gv[d][this.mode]||gv[d].text;if(!m)throw new G("Accent "+d+" unsupported in "+this.mode+" mode",t);o={type:"accent",mode:this.mode,loc:Lr.range(t),label:m,isStretchy:!1,isShifty:!0,base:o}}return o}}Um.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var hx=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Um(t,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new G("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new un("\\df@tag")])}]}return i},qj=function(t,r,n){r.textContent="";var i=mx(t,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),qj=function(){throw new G("KaTeX doesn't work in quirks mode.")});var Zae=function(t,r){var n=mx(t,r).toMarkup();return n},Qae=function(t,r){var n=new Y2(r);return hx(t,n)},Vj=function(t,r,n){if(n.throwOnError||!(t instanceof G))throw t;var i=L.makeSpan(["katex-error"],[new pn(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},mx=function(t,r){var n=new Y2(r);try{var i=hx(t,n);return lae(i,t,n)}catch(a){return Vj(a,t,n)}},Jae=function(t,r){var n=new Y2(r);try{var i=hx(t,n);return sae(i,t,n)}catch(a){return Vj(a,t,n)}},eoe="0.16.22",toe={Span:t0,Anchor:Q2,SymbolNode:pn,SvgNode:Zi,PathNode:Va,LineNode:jg},roe={version:eoe,render:qj,renderToString:Zae,ParseError:G,SETTINGS_SCHEMA:kf,__parse:Qae,__renderToDomTree:mx,__renderToHTMLTree:Jae,__setFontMetrics:Nie,__defineSymbol:b,__defineFunction:ee,__defineMacro:C,__domTree:toe};function qm({tex:e,display:t=!1,className:r}){const n=p.useMemo(()=>{if(!e)return null;try{return roe.renderToString(e,{displayMode:t,throwOnError:!0,output:"html",strict:"ignore"})}catch{return null}},[e,t]);return e?n===null?h.jsx("code",{className:ne("font-mono text-xs text-signal",r),children:e}):h.jsx("span",{className:ne(t&&"tex-left block overflow-x-auto py-1",r),dangerouslySetInnerHTML:{__html:n}}):h.jsx("span",{className:r,children:"—"})}function noe({h:e}){const t=e.terms??[];return t.length===0?h.jsx(Ge,{children:"No parameters"}):h.jsxs(Mn,{children:[h.jsx(Tn,{children:h.jsxs(mt,{className:"hover:bg-transparent",children:[h.jsx(ce,{className:"w-24",children:"Symbol"}),h.jsx(ce,{children:"Parameter"}),h.jsx(ce,{className:"text-right",children:"Value"}),h.jsx(ce,{children:"Unit"})]})}),h.jsx(In,{children:t.map((r,n)=>h.jsxs(mt,{children:[h.jsx(de,{className:"text-[15px]",children:h.jsx(qm,{tex:r.symbol})}),h.jsx(de,{children:r.label}),h.jsx(de,{className:"num text-right text-base font-bold",children:_e(r.value)}),h.jsx(de,{className:"text-xs text-muted-foreground",children:r.unit})]},`${r.symbol}-${n}`))})]})}function ioe({h:e}){const t=(e.levels??[]).filter(r=>Number.isFinite(r.energy));return t.length===0?h.jsx(Ge,{children:"No spectrum yet"}):h.jsxs(Mn,{children:[h.jsx(Tn,{children:h.jsxs(mt,{className:"hover:bg-transparent",children:[h.jsx(ce,{children:"State"}),h.jsx(ce,{className:"text-right",children:"Energy (GHz)"}),t.some(r=>r.group)&&h.jsx(ce,{children:"Group"})]})}),h.jsx(In,{children:t.map((r,n)=>h.jsxs(mt,{children:[h.jsx(de,{children:r.label}),h.jsx(de,{className:"num text-right font-semibold",children:_e(r.energy)}),t.some(i=>i.group)&&h.jsx(de,{className:"text-xs text-muted-foreground",children:r.group??""})]},`${r.label}-${n}`))})]})}function aoe({h:e}){const t=Object.entries(e.truncation??{});return h.jsxs("dl",{className:"grid grid-cols-[auto_1fr] gap-x-6 gap-y-1 text-xs",children:[h.jsx("dt",{className:"label leading-4",children:"Truncation"}),h.jsx("dd",{className:"num",children:t.length?t.map(([r,n])=>`${r} ${n}`).join(" × "):"—"}),h.jsx("dt",{className:"label leading-4",children:"Solver"}),h.jsx("dd",{children:e.solver||"—"})]})}function ooe({state:e}){var o;const t=e.hamiltonian,r=Mc(e,"hamiltonian"),n=e.elements.filter(l=>l.kind==="qubit").length,i=(o=t==null?void 0:t.pair)!=null&&o.length?t.pair.join("–"):null,a=t&&(i||n>1)?`QuTiP model of ${i??"one transmon–resonator pair"}${n>1?"; the other pairs use the estimator consensus (Parameters tab)":""}`:null;return h.jsxs(Jo,{aside:a,children:[h.jsx(ht,{title:"Model",children:t?h.jsxs("div",{className:"flex flex-col gap-4",children:[h.jsx("div",{className:"text-[22px] font-bold leading-tight",children:t.model||"—"}),h.jsx("div",{className:"border-y border-rule py-4 text-[19px]",children:h.jsx(qm,{tex:t.latex,display:!0})}),h.jsx(aoe,{h:t})]}):h.jsx(Ge,{children:"No Hamiltonian model yet"})}),h.jsxs("div",{className:"col-span-12 flex min-w-0 flex-col gap-10 xl:col-span-5",children:[h.jsx(ht,{title:"Parameters",children:t?h.jsx(noe,{h:t}):h.jsx(Ge,{})}),h.jsx(ht,{title:"Dressed spectrum",aside:t==null?void 0:t.solver,children:t?h.jsx(ioe,{h:t}):h.jsx(Ge,{})})]}),h.jsx(ht,{title:"Plots",className:"xl:col-span-7",children:r.length?h.jsx("div",{className:"grid grid-cols-1 gap-6",children:r.map(l=>h.jsx(K2,{plot:l},l.id))}):h.jsx(Ge,{})}),h.jsx(ht,{title:"Estimator consensus",aside:"bold = chosen estimate · spread = (max − min) / |mean|",children:h.jsx(tie,{estimates:e.consensus})})]})}const Ow=e=>{const t=[];for(const r of e)for(const n of Object.keys(r??{}))t.includes(n)||t.push(n);return t};function loe({history:e}){if(e.length===0)return h.jsx(Ge,{children:"No optimiser iterations yet"});const t=[...e].sort((i,a)=>i.iteration-a.iteration),r=Ow(t.map(i=>i.knobs)),n=Ow(t.map(i=>i.residuals));return h.jsxs(Mn,{children:[h.jsxs(Tn,{children:[h.jsxs(mt,{className:"hover:bg-transparent [&>th]:align-bottom",children:[h.jsx(ce,{rowSpan:2,children:"Iter"}),h.jsx(ce,{rowSpan:2,children:"Time"}),h.jsx(ce,{rowSpan:2,className:"text-right normal-case tracking-normal",children:"‖r‖"}),r.length>0&&h.jsx(ce,{colSpan:r.length,className:"border-l border-rule pl-3 text-left",children:"Knobs"}),n.length>0&&h.jsx(ce,{colSpan:n.length,className:"border-l border-rule pl-3 text-left",children:"Residuals (Δ / tol)"}),h.jsx(ce,{rowSpan:2,className:"text-right",children:"Accepted"})]}),h.jsxs(mt,{className:"hover:bg-transparent",children:[r.map((i,a)=>h.jsx(ce,{className:ne("text-right font-mono normal-case tracking-normal",a===0&&"border-l border-rule"),children:i},`k-${i}`)),n.map((i,a)=>h.jsx(ce,{className:ne("text-right font-mono normal-case tracking-normal",a===0&&"border-l border-rule"),children:bz(i)},`r-${i}`))]})]}),h.jsx(In,{children:t.map(i=>h.jsxs(mt,{className:ne(!i.accepted&&"text-muted-foreground"),children:[h.jsxs(de,{className:"num font-bold",children:[i.iteration,i.label&&h.jsx("span",{className:"ml-1 font-mono text-2xs font-normal text-muted-foreground",children:i.label})]}),h.jsx(de,{className:"num whitespace-nowrap text-xs",children:_a(i.time,!0)}),h.jsx(de,{className:"num text-right font-semibold",children:_e(i.objective,3)}),r.map((a,o)=>{var l;return h.jsx(de,{className:ne("num text-right",o===0&&"border-l border-rule"),children:_e((l=i.knobs)==null?void 0:l[a])},a)}),n.map((a,o)=>{var u;const l=(u=i.residuals)==null?void 0:u[a],s=typeof l=="number"&&Number.isFinite(l);return h.jsx(de,{className:ne("num text-right",o===0&&"border-l border-rule",s&&(Math.abs(l)<=1?"text-pass":"text-signal")),children:fs(l)},a)}),h.jsx(de,{className:"text-right text-xs",children:i.accepted?"yes":h.jsx("span",{className:"text-muted-foreground",children:"rejected"})})]},i.iteration))})]})}const hu=3;function soe({dev:e,status:t,width:r=168}){const a=r-12,o=d=>6+(d+hu)/(2*hu)*a,l=t==="pass"?qi:t==="fail"?Tr:nr,s=e!==null&&Number.isFinite(e),u=s?Math.max(-hu,Math.min(hu,e)):0,c=s&&Math.abs(e)>hu,f=o(u);return h.jsxs("svg",{width:r,height:16,role:"img","aria-label":s?`deviation ${e.toFixed(2)} tolerances`:"deviation unknown",className:"block",children:[h.jsx("rect",{x:o(-1),y:2,width:o(1)-o(-1),height:12,fill:"#ececec"}),h.jsx("line",{x1:6,x2:r-6,y1:16/2,y2:16/2,stroke:"#cfcfcf"}),[-3,-2,-1,1,2,3].map(d=>h.jsx("line",{x1:o(d),x2:o(d),y1:16/2-2,y2:16/2+2,stroke:"#bdbdbd"},d)),h.jsx("line",{x1:o(0),x2:o(0),y1:1,y2:15,stroke:Be}),s&&(c?h.jsx("path",{d:e>0?`M${f-7} ${16/2-5} L${f} ${16/2} L${f-7} ${16/2+5} Z`:`M${f+7} ${16/2-5} L${f} ${16/2} L${f+7} ${16/2+5} Z`,fill:l}):h.jsx("rect",{x:f-2,y:2,width:4,height:12,fill:l}))]})}function uoe({status:e}){const t={pass:"pass",fail:"destructive",unknown:"muted"};return h.jsx(Lo,{variant:t[e]??"muted",children:e??"unknown"})}function coe({status:e}){const t=(e||"unknown").toLowerCase();let r="outline";return t==="done"||t==="finished"||t==="completed"?r="pass":t==="failed"||t==="error"||t==="interrupted"||t==="render_failed"?r="destructive":t==="running"||t==="solving"?r="default":t==="unknown"&&(r="muted"),h.jsx(Lo,{variant:r,children:e||"unknown"})}const foe=e=>e.value!==null&&Number.isFinite(e.value)&&Number.isFinite(e.target)&&Number.isFinite(e.tol)&&e.tol>0?(e.value-e.target)/e.tol:null;function doe({targets:e}){return e.length===0?h.jsx(Ge,{children:"No targets defined yet"}):h.jsxs(Mn,{children:[h.jsx(Tn,{children:h.jsxs(mt,{className:"hover:bg-transparent",children:[h.jsx(ce,{children:"Target"}),h.jsx(ce,{children:"Symbol"}),h.jsx(ce,{className:"text-right",children:"Goal ± tol"}),h.jsx(ce,{className:"text-right",children:"Current"}),h.jsx(ce,{className:"text-right",children:"Δ / tol"}),h.jsx(ce,{children:h.jsx("span",{className:"num",children:"−3 … +3"})}),h.jsx(ce,{children:"Source"}),h.jsx(ce,{className:"text-right",children:"Status"})]})}),h.jsx(In,{children:e.map(t=>{const r=foe(t);return h.jsxs(mt,{children:[h.jsxs(de,{children:[h.jsx("div",{className:"font-semibold",children:t.label}),h.jsx("div",{className:"font-mono text-2xs text-muted-foreground",children:t.key})]}),h.jsx(de,{className:"text-sm",children:h.jsx($o,{value:t.symbol})}),h.jsxs(de,{className:"num whitespace-nowrap text-right",children:[_e(t.target)," ",h.jsxs("span",{className:"text-muted-foreground",children:["± ",_e(t.tol)]})," ",h.jsx("span",{className:"text-xs text-muted-foreground",children:t.unit})]}),h.jsxs(de,{className:ne("num whitespace-nowrap text-right text-base font-bold",t.status==="fail"&&"text-signal"),children:[_e(t.value)," ",t.value!==null&&h.jsx("span",{className:"text-xs font-normal text-muted-foreground",children:t.unit})]}),h.jsx(de,{className:ne("num whitespace-nowrap text-right",t.status==="fail"&&"text-signal"),children:fs(r)}),h.jsx(de,{children:h.jsx(soe,{dev:r,status:t.status})}),h.jsx(de,{className:"font-mono text-xs text-muted-foreground",children:t.source??"—"}),h.jsx(de,{className:"text-right",children:h.jsx(uoe,{status:t.status})})]},t.key)})})]})}function hoe(e){if(e.history.length===0)return[];const t=[...e.history].sort((r,n)=>r.iteration-n.iteration);return[{id:"__objective",title:"Objective vs iteration",tab:"history",kind:"xy",xLabel:"Iteration",yLabel:"‖r‖ (tolerances)",logY:t.every(r=>r.objective>0),series:[{name:"objective",x:t.map(r=>r.iteration),y:t.map(r=>r.objective)}],refLines:[{axis:"y",value:1,label:"tolerance"}],caption:"Derived from the iteration table"}]}function moe({state:e}){const t=Mc(e,"history"),r=t.length?t:hoe(e),n=e.history.length,i=e.targets.filter(a=>a.status==="fail").length;return h.jsxs(Jo,{children:[h.jsx(ht,{title:"Targets",aside:i>0?h.jsxs("span",{className:"text-signal",children:[i," outside tolerance"]}):e.targets.length>0&&"all within tolerance",children:h.jsx(doe,{targets:e.targets})}),h.jsx(ht,{title:"Convergence",children:h.jsx(G2,{plots:r})}),h.jsx(ht,{title:"Iterations",aside:`${n} iteration${n===1?"":"s"} · residual = (value − target) / tol`,children:h.jsx(loe,{history:e.history})})]})}var yv="focusScope.autoFocusOnMount",xv="focusScope.autoFocusOnUnmount",Cw={bubbles:!1,cancelable:!0},poe="FocusScope",Kj=p.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[l,s]=p.useState(null),u=_o(i),c=_o(a),f=p.useRef(null),d=_r(t,v=>s(v)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let v=function(S){if(m.paused||!l)return;const A=S.target;l.contains(A)?f.current=A:ma(f.current,{select:!0})},x=function(S){if(m.paused||!l)return;const A=S.relatedTarget;A!==null&&(l.contains(A)||ma(f.current,{select:!0}))},y=function(S){if(document.activeElement===document.body)for(const P of S)P.removedNodes.length>0&&ma(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",x);const w=new MutationObserver(y);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x),w.disconnect()}}},[n,l,m.paused]),p.useEffect(()=>{if(l){Nw.add(m);const v=document.activeElement;if(!l.contains(v)){const y=new CustomEvent(yv,Cw);l.addEventListener(yv,u),l.dispatchEvent(y),y.defaultPrevented||(voe(woe(Gj(l)),{select:!0}),document.activeElement===v&&ma(l))}return()=>{l.removeEventListener(yv,u),setTimeout(()=>{const y=new CustomEvent(xv,Cw);l.addEventListener(xv,c),l.dispatchEvent(y),y.defaultPrevented||ma(v??document.body,{select:!0}),l.removeEventListener(xv,c),Nw.remove(m)},0)}}},[l,u,c,m]);const g=p.useCallback(v=>{if(!r&&!n||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(x&&y){const w=v.currentTarget,[S,A]=goe(w);S&&A?!v.shiftKey&&y===A?(v.preventDefault(),r&&ma(S,{select:!0})):v.shiftKey&&y===S&&(v.preventDefault(),r&&ma(A,{select:!0})):y===w&&v.preventDefault()}},[r,n,m.paused]);return h.jsx(St.div,{tabIndex:-1,...o,ref:d,onKeyDown:g})});Kj.displayName=poe;function voe(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ma(n,{select:t}),document.activeElement!==r)return}function goe(e){const t=Gj(e),r=jw(t,e),n=jw(t.reverse(),e);return[r,n]}function Gj(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function jw(e,t){for(const r of e)if(!yoe(r,{upTo:t}))return r}function yoe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function xoe(e){return e instanceof HTMLInputElement&&"select"in e}function ma(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&xoe(e)&&t&&e.select()}}var Nw=boe();function boe(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Mw(e,t),e.unshift(t)},remove(t){var r;e=Mw(e,t),(r=e[0])==null||r.resume()}}}function Mw(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function woe(e){return e.filter(t=>t.tagName!=="A")}var bv=0;function Soe(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Tw()),document.body.insertAdjacentElement("beforeend",e[1]??Tw()),bv++,()=>{bv===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),bv--}},[])}function Tw(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var qn=function(){return qn=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},qn.apply(this,arguments)};function Yj(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function koe(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Pf="right-scroll-bar-position",Ef="width-before-scroll-bar",Aoe="with-scroll-bars-hidden",Poe="--removed-body-scroll-bar-size";function wv(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Eoe(e,t){var r=p.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var Ooe=typeof window<"u"?p.useLayoutEffect:p.useEffect,Iw=new WeakMap;function Coe(e,t){var r=Eoe(null,function(n){return e.forEach(function(i){return wv(i,n)})});return Ooe(function(){var n=Iw.get(r);if(n){var i=new Set(n),a=new Set(e),o=r.current;i.forEach(function(l){a.has(l)||wv(l,null)}),a.forEach(function(l){i.has(l)||wv(l,o)})}Iw.set(r,e)},[e]),r}function joe(e){return e}function Noe(e,t){t===void 0&&(t=joe);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var o=t(a,n);return r.push(o),function(){r=r.filter(function(l){return l!==o})}},assignSyncMedium:function(a){for(n=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(l){return a(l)},filter:function(){return r}}},assignMedium:function(a){n=!0;var o=[];if(r.length){var l=r;r=[],l.forEach(a),o=r}var s=function(){var c=o;o=[],c.forEach(a)},u=function(){return Promise.resolve().then(s)};u(),r={push:function(c){o.push(c),u()},filter:function(c){return o=o.filter(c),r}}}};return i}function Moe(e){e===void 0&&(e={});var t=Noe(null);return t.options=qn({async:!0,ssr:!1},e),t}var Xj=function(e){var t=e.sideCar,r=Yj(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return p.createElement(n,qn({},r))};Xj.isSideCarExport=!0;function Toe(e,t){return e.useMedium(t),Xj}var Zj=Moe(),Sv=function(){},Vm=p.forwardRef(function(e,t){var r=p.useRef(null),n=p.useState({onScrollCapture:Sv,onWheelCapture:Sv,onTouchMoveCapture:Sv}),i=n[0],a=n[1],o=e.forwardProps,l=e.children,s=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,m=e.noRelative,g=e.noIsolation,v=e.inert,x=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,S=e.gapMode,A=Yj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=d,O=Coe([r,t]),j=qn(qn({},A),i);return p.createElement(p.Fragment,null,c&&p.createElement(P,{sideCar:Zj,removeScrollBar:u,shards:f,noRelative:m,noIsolation:g,inert:v,setCallbacks:a,allowPinchZoom:!!x,lockRef:r,gapMode:S}),o?p.cloneElement(p.Children.only(l),qn(qn({},j),{ref:O})):p.createElement(w,qn({},j,{className:s,ref:O}),l))});Vm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vm.classNames={fullWidth:Ef,zeroRight:Pf};var Ioe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _oe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ioe();return t&&e.setAttribute("nonce",t),e}function Doe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zoe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Roe=function(){var e=0,t=null;return{add:function(r){e==0&&(t=_oe())&&(Doe(t,r),zoe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Loe=function(){var e=Roe();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Qj=function(){var e=Loe(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},$oe={left:0,top:0,right:0,gap:0},kv=function(e){return parseInt(e||"",10)||0},Boe=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[kv(r),kv(n),kv(i)]},Foe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return $oe;var t=Boe(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Hoe=Qj(),es="data-scroll-locked",Woe=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,l=e.gap;return r===void 0&&(r="margin"),`
|
|
365
|
+
.`.concat(Aoe,` {
|
|
366
|
+
overflow: hidden `).concat(n,`;
|
|
367
|
+
padding-right: `).concat(l,"px ").concat(n,`;
|
|
368
|
+
}
|
|
369
|
+
body[`).concat(es,`] {
|
|
370
|
+
overflow: hidden `).concat(n,`;
|
|
371
|
+
overscroll-behavior: contain;
|
|
372
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
373
|
+
padding-left: `.concat(i,`px;
|
|
374
|
+
padding-top: `).concat(a,`px;
|
|
375
|
+
padding-right: `).concat(o,`px;
|
|
376
|
+
margin-left:0;
|
|
377
|
+
margin-top:0;
|
|
378
|
+
margin-right: `).concat(l,"px ").concat(n,`;
|
|
379
|
+
`),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.`).concat(Pf,` {
|
|
383
|
+
right: `).concat(l,"px ").concat(n,`;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.`).concat(Ef,` {
|
|
387
|
+
margin-right: `).concat(l,"px ").concat(n,`;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.`).concat(Pf," .").concat(Pf,` {
|
|
391
|
+
right: 0 `).concat(n,`;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.`).concat(Ef," .").concat(Ef,` {
|
|
395
|
+
margin-right: 0 `).concat(n,`;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
body[`).concat(es,`] {
|
|
399
|
+
`).concat(Poe,": ").concat(l,`px;
|
|
400
|
+
}
|
|
401
|
+
`)},_w=function(){var e=parseInt(document.body.getAttribute(es)||"0",10);return isFinite(e)?e:0},Uoe=function(){p.useEffect(function(){return document.body.setAttribute(es,(_w()+1).toString()),function(){var e=_w()-1;e<=0?document.body.removeAttribute(es):document.body.setAttribute(es,e.toString())}},[])},qoe=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;Uoe();var a=p.useMemo(function(){return Foe(i)},[i]);return p.createElement(Hoe,{styles:Woe(a,!t,i,r?"":"!important")})},zg=!1;if(typeof window<"u")try{var Q0=Object.defineProperty({},"passive",{get:function(){return zg=!0,!0}});window.addEventListener("test",Q0,Q0),window.removeEventListener("test",Q0,Q0)}catch{zg=!1}var yl=zg?{passive:!1}:!1,Voe=function(e){return e.tagName==="TEXTAREA"},Jj=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Voe(e)&&r[t]==="visible")},Koe=function(e){return Jj(e,"overflowY")},Goe=function(e){return Jj(e,"overflowX")},Dw=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=eN(e,n);if(i){var a=tN(e,n),o=a[1],l=a[2];if(o>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Yoe=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Xoe=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},eN=function(e,t){return e==="v"?Koe(t):Goe(t)},tN=function(e,t){return e==="v"?Yoe(t):Xoe(t)},Zoe=function(e,t){return e==="h"&&t==="rtl"?-1:1},Qoe=function(e,t,r,n,i){var a=Zoe(e,window.getComputedStyle(t).direction),o=a*n,l=r.target,s=t.contains(l),u=!1,c=o>0,f=0,d=0;do{if(!l)break;var m=tN(e,l),g=m[0],v=m[1],x=m[2],y=v-x-a*g;(g||y)&&eN(e,l)&&(f+=y,d+=g);var w=l.parentNode;l=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(c&&Math.abs(f)<1||!c&&Math.abs(d)<1)&&(u=!0),u},J0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zw=function(e){return[e.deltaX,e.deltaY]},Rw=function(e){return e&&"current"in e?e.current:e},Joe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ele=function(e){return`
|
|
402
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
403
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
404
|
+
`)},tle=0,xl=[];function rle(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),i=p.useState(tle++)[0],a=p.useState(Qj)[0],o=p.useRef(e);p.useEffect(function(){o.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=koe([e.lockRef.current],(e.shards||[]).map(Rw),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=p.useCallback(function(v,x){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!o.current.allowPinchZoom;var y=J0(v),w=r.current,S="deltaX"in v?v.deltaX:w[0]-y[0],A="deltaY"in v?v.deltaY:w[1]-y[1],P,O=v.target,j=Math.abs(S)>Math.abs(A)?"h":"v";if("touches"in v&&j==="h"&&O.type==="range")return!1;var N=window.getSelection(),_=N&&N.anchorNode,z=_?_===O||_.contains(O):!1;if(z)return!1;var R=Dw(j,O);if(!R)return!0;if(R?P=j:(P=j==="v"?"h":"v",R=Dw(j,O)),!R)return!1;if(!n.current&&"changedTouches"in v&&(S||A)&&(n.current=P),!P)return!0;var I=n.current||P;return Qoe(I,x,v,I==="h"?S:A)},[]),s=p.useCallback(function(v){var x=v;if(!(!xl.length||xl[xl.length-1]!==a)){var y="deltaY"in x?zw(x):J0(x),w=t.current.filter(function(P){return P.name===x.type&&(P.target===x.target||x.target===P.shadowParent)&&Joe(P.delta,y)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var S=(o.current.shards||[]).map(Rw).filter(Boolean).filter(function(P){return P.contains(x.target)}),A=S.length>0?l(x,S[0]):!o.current.noIsolation;A&&x.cancelable&&x.preventDefault()}}},[]),u=p.useCallback(function(v,x,y,w){var S={name:v,delta:x,target:y,should:w,shadowParent:nle(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(A){return A!==S})},1)},[]),c=p.useCallback(function(v){r.current=J0(v),n.current=void 0},[]),f=p.useCallback(function(v){u(v.type,zw(v),v.target,l(v,e.lockRef.current))},[]),d=p.useCallback(function(v){u(v.type,J0(v),v.target,l(v,e.lockRef.current))},[]);p.useEffect(function(){return xl.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",s,yl),document.addEventListener("touchmove",s,yl),document.addEventListener("touchstart",c,yl),function(){xl=xl.filter(function(v){return v!==a}),document.removeEventListener("wheel",s,yl),document.removeEventListener("touchmove",s,yl),document.removeEventListener("touchstart",c,yl)}},[]);var m=e.removeScrollBar,g=e.inert;return p.createElement(p.Fragment,null,g?p.createElement(a,{styles:ele(i)}):null,m?p.createElement(qoe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function nle(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ile=Toe(Zj,rle);var rN=p.forwardRef(function(e,t){return p.createElement(Vm,qn({},e,{ref:t,sideCar:ile}))});rN.classNames=Vm.classNames;var ale=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bl=new WeakMap,ef=new WeakMap,tf={},Av=0,nN=function(e){return e&&(e.host||nN(e.parentNode))},ole=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=nN(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},lle=function(e,t,r,n){var i=ole(t,Array.isArray(e)?e:[e]);tf[r]||(tf[r]=new WeakMap);var a=tf[r],o=[],l=new Set,s=new Set(i),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||s.has(f)||Array.prototype.forEach.call(f.children,function(d){if(l.has(d))c(d);else try{var m=d.getAttribute(n),g=m!==null&&m!=="false",v=(bl.get(d)||0)+1,x=(a.get(d)||0)+1;bl.set(d,v),a.set(d,x),o.push(d),v===1&&g&&ef.set(d,!0),x===1&&d.setAttribute(r,"true"),g||d.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return c(t),l.clear(),Av++,function(){o.forEach(function(f){var d=bl.get(f)-1,m=a.get(f)-1;bl.set(f,d),a.set(f,m),d||(ef.has(f)||f.removeAttribute(n),ef.delete(f)),m||f.removeAttribute(r)}),Av--,Av||(bl=new WeakMap,bl=new WeakMap,ef=new WeakMap,tf={})}},sle=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=ale(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),lle(n,i,r,"aria-hidden")):function(){return null}},Km="Dialog",[iN]=Os(Km),[ule,zn]=iN(Km),aN=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,l=p.useRef(null),s=p.useRef(null),[u,c]=jh({prop:n,defaultProp:i??!1,onChange:a,caller:Km});return h.jsx(ule,{scope:t,triggerRef:l,contentRef:s,contentId:Ul(),titleId:Ul(),descriptionId:Ul(),open:u,onOpenChange:c,onOpenToggle:p.useCallback(()=>c(f=>!f),[c]),modal:o,children:r})};aN.displayName=Km;var oN="DialogTrigger",cle=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=zn(oN,r),a=_r(t,i.triggerRef);return h.jsx(St.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":gx(i.open),...n,ref:a,onClick:nt(e.onClick,i.onOpenToggle)})});cle.displayName=oN;var px="DialogPortal",[fle,lN]=iN(px,{forceMount:void 0}),sN=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,a=zn(px,t);return h.jsx(fle,{scope:t,forceMount:r,children:p.Children.map(n,o=>h.jsx(Qo,{present:r||a.open,children:h.jsx(Ky,{asChild:!0,container:i,children:o})}))})};sN.displayName=px;var dh="DialogOverlay",uN=p.forwardRef((e,t)=>{const r=lN(dh,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=zn(dh,e.__scopeDialog);return a.modal?h.jsx(Qo,{present:n||a.open,children:h.jsx(hle,{...i,ref:t})}):null});uN.displayName=dh;var dle=Ju("DialogOverlay.RemoveScroll"),hle=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=zn(dh,r);return h.jsx(rN,{as:dle,allowPinchZoom:!0,shards:[i.contentRef],children:h.jsx(St.div,{"data-state":gx(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Yo="DialogContent",cN=p.forwardRef((e,t)=>{const r=lN(Yo,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=zn(Yo,e.__scopeDialog);return h.jsx(Qo,{present:n||a.open,children:a.modal?h.jsx(mle,{...i,ref:t}):h.jsx(ple,{...i,ref:t})})});cN.displayName=Yo;var mle=p.forwardRef((e,t)=>{const r=zn(Yo,e.__scopeDialog),n=p.useRef(null),i=_r(t,r.contentRef,n);return p.useEffect(()=>{const a=n.current;if(a)return sle(a)},[]),h.jsx(fN,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nt(e.onCloseAutoFocus,a=>{var o;a.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:nt(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&a.preventDefault()}),onFocusOutside:nt(e.onFocusOutside,a=>a.preventDefault())})}),ple=p.forwardRef((e,t)=>{const r=zn(Yo,e.__scopeDialog),n=p.useRef(!1),i=p.useRef(!1);return h.jsx(fN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,a),a.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),a.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:a=>{var s,u;(s=e.onInteractOutside)==null||s.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(o))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),fN=p.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,l=zn(Yo,r),s=p.useRef(null),u=_r(t,s);return Soe(),h.jsxs(h.Fragment,{children:[h.jsx(Kj,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:a,children:h.jsx(Ly,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":gx(l.open),...o,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(vle,{titleId:l.titleId}),h.jsx(yle,{contentRef:s,descriptionId:l.descriptionId})]})]})}),vx="DialogTitle",dN=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=zn(vx,r);return h.jsx(St.h2,{id:i.titleId,...n,ref:t})});dN.displayName=vx;var hN="DialogDescription",mN=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=zn(hN,r);return h.jsx(St.p,{id:i.descriptionId,...n,ref:t})});mN.displayName=hN;var pN="DialogClose",vN=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=zn(pN,r);return h.jsx(St.button,{type:"button",...n,ref:t,onClick:nt(e.onClick,()=>i.onOpenChange(!1))})});vN.displayName=pN;function gx(e){return e?"open":"closed"}var gN="DialogTitleWarning",[Xse,yN]=aI(gN,{contentName:Yo,titleName:vx,docsSlug:"dialog"}),vle=({titleId:e})=>{const t=yN(gN),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
405
|
+
|
|
406
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
407
|
+
|
|
408
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},gle="DialogDescriptionWarning",yle=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${yN(gle).contentName}}.`;return p.useEffect(()=>{var a;const i=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},xle=aN,ble=sN,xN=uN,bN=cN,wN=dN,SN=mN,wle=vN;const kN=xle,Sle=ble,AN=p.forwardRef(({className:e,...t},r)=>h.jsx(xN,{ref:r,className:ne("fixed inset-0 z-50 bg-white/90",e),...t}));AN.displayName=xN.displayName;const yx=p.forwardRef(({className:e,children:t,...r},n)=>h.jsxs(Sle,{children:[h.jsx(AN,{}),h.jsxs(bN,{ref:n,className:ne("fixed left-1/2 top-1/2 z-50 grid max-h-[94vh] w-[min(1200px,94vw)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-auto border border-ink bg-background p-6",e),...r,children:[t,h.jsx(wle,{className:"absolute right-4 top-4 text-2xs font-semibold uppercase tracking-label text-muted-foreground hover:text-foreground focus:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:"Close ✕"})]})]}));yx.displayName=bN.displayName;const xx=({className:e,...t})=>h.jsx("div",{className:ne("flex flex-col gap-1 pr-20 text-left",e),...t});xx.displayName="DialogHeader";const PN=({className:e,...t})=>h.jsx("div",{className:ne("flex flex-wrap items-center gap-x-6 gap-y-1",e),...t});PN.displayName="DialogFooter";const bx=p.forwardRef(({className:e,...t},r)=>h.jsx(wN,{ref:r,className:ne("text-lg font-bold leading-tight",e),...t}));bx.displayName=wN.displayName;const wx=p.forwardRef(({className:e,...t},r)=>h.jsx(SN,{ref:r,className:ne("text-sm text-muted-foreground",e),...t}));wx.displayName=SN.displayName;function kle(e){return e.map((t,r)=>{var n;return{s:t,i:r,t:((n=Bh(t.created))==null?void 0:n.getTime())??-1/0}}).sort((t,r)=>r.t-t.t||r.i-t.i).map(t=>t.s)}function Ale(e,t){if(!e)return null;const r=t.find(n=>n.id===e);return r?`${uk(r.index)} ${r.title}`:e}function EN({shot:e,className:t}){const[r,n]=p.useState(null);return!e.url||r===e.url?h.jsx("div",{className:ne("flex items-center justify-center bg-paper text-xs text-muted-foreground",t),children:"Image not available"}):h.jsx("img",{src:e.url,alt:e.title,loading:"lazy",onError:()=>n(e.url),className:ne("bg-paper object-contain",t)})}function ON({shot:e,steps:t}){const r=Ale(e.step,t);return h.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-2xs uppercase tracking-label text-muted-foreground",children:[r&&h.jsx("span",{className:"num",children:r}),h.jsx(Lo,{variant:e.source==="gui"?"default":"outline",children:e.source==="gui"?"GUI":"Headless"}),h.jsx("span",{className:"num normal-case tracking-normal",children:_a(e.created,!0)})]})}function Ple({shot:e,steps:t,onClose:r}){return h.jsx(kN,{open:e!==null,onOpenChange:n=>!n&&r(),children:e&&h.jsxs(yx,{children:[h.jsxs(xx,{children:[h.jsx(bx,{children:e.title}),h.jsx(wx,{children:e.caption||"KLayout screenshot"})]}),h.jsx(EN,{shot:e,className:"max-h-[72vh] w-full border border-rule"}),h.jsxs(PN,{children:[h.jsx(ON,{shot:e,steps:t}),h.jsx("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"ml-auto font-mono text-xs text-muted-foreground underline-offset-4 hover:text-foreground hover:underline",children:e.url})]})]})})}function Ele({shot:e,steps:t,onOpen:r,className:n}){return h.jsxs(Fh,{className:ne("group flex min-w-0 flex-col",n),children:[h.jsx("button",{type:"button",onClick:()=>r(e),className:"block border-b border-rule focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","aria-label":`Open ${e.title}`,children:h.jsx(EN,{shot:e,className:"aspect-[4/3] w-full transition-opacity group-hover:opacity-90"})}),h.jsxs("div",{className:"flex flex-1 flex-col gap-1.5 px-4 py-3",children:[h.jsx("div",{className:"text-sm font-semibold leading-tight",children:e.title}),e.caption&&h.jsx("div",{className:"text-xs text-muted-foreground",children:e.caption}),h.jsx("div",{className:"mt-auto pt-1",children:h.jsx(ON,{shot:e,steps:t})})]})]})}function Ole({shots:e,steps:t}){const[r,n]=p.useState(null);return e.length===0?h.jsx(Ge,{children:"No screenshots yet — they appear after the layout step (KLayout GUI or headless render)."}):h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 xl:grid-cols-3",children:kle(e).map(i=>h.jsx(Ele,{shot:i,steps:t,onOpen:n},i.id))}),h.jsx(Ple,{shot:r,steps:t,onClose:()=>n(null)})]})}function Cle({state:e}){const t=e.screenshots.length;return h.jsx(Jo,{aside:h.jsx("span",{children:"KLayout captures — the layout itself is not rendered in the browser"}),children:h.jsx(ht,{title:"Screenshots",aside:`${t} image${t===1?"":"s"}`,children:h.jsx(Ole,{shots:e.screenshots,steps:e.steps})})})}const jle={info:"text-muted-foreground",warn:"text-warn",error:"text-signal"};function Nle(e){return e.map((t,r)=>{var n;return{e:t,i:r,t:((n=Bh(t.t))==null?void 0:n.getTime())??-1/0}}).sort((t,r)=>r.t-t.t||r.i-t.i).map(t=>t.e)}function Mle({log:e,limit:t,compact:r=!1}){if(e.length===0)return h.jsx(Ge,{children:"No log entries yet"});const n=Nle(e).slice(0,t??e.length);return h.jsxs(Mn,{children:[!r&&h.jsx(Tn,{children:h.jsxs(mt,{className:"hover:bg-transparent",children:[h.jsx(ce,{className:"w-28",children:"Time"}),h.jsx(ce,{className:"w-16",children:"Level"}),h.jsx(ce,{children:"Message"})]})}),h.jsx(In,{children:n.map((i,a)=>h.jsxs(mt,{className:"align-top",children:[h.jsx(de,{className:ne("num whitespace-nowrap align-top text-xs text-muted-foreground",r&&"w-24"),children:_a(i.t,!0)}),h.jsx(de,{className:ne("align-top text-2xs font-bold uppercase tracking-label",jle[i.level]??"text-muted-foreground",r&&"w-12"),children:i.level}),h.jsx(de,{className:ne("align-top font-mono text-xs",i.level==="error"&&"text-signal"),children:i.msg})]},`${i.t}-${a}`))})]})}function Tle({state:e}){const t=i=>e.log.filter(a=>a.level===i).length,r=t("warn"),n=t("error");return h.jsx(Jo,{children:h.jsx(ht,{title:"Entries, newest first",aside:h.jsxs("span",{className:"num",children:[e.log.length," total · ",h.jsxs("span",{className:r?"text-warn":void 0,children:[r," warn"]})," ·"," ",h.jsxs("span",{className:n?"text-signal":void 0,children:[n," error"]})]}),children:h.jsx(Mle,{log:e.log})})})}const n0={fail:Tr,pass:qi,warn:Sz,info:null},CN={fail:"Fail",pass:"Pass",warn:"Check",info:null},kc=e=>String(e).padStart(2,"0"),Rg=e=>`pcard-${kc(e)}`;function Ile(e){if(!e)return null;const t=e.trim().toLowerCase();return/^fem\b/.test(t)?"fem":/^estimate\b/.test(t)?"estimate":/^(design|design\.json|layout|lom|synthesis|pdk)\b/.test(t)?"design":"estimator"}const _le={fem:Kn[0],estimator:Kn[0],estimate:Kn[1],design:nr},Lg=e=>e.replace(/([_^])\{([A-Za-z]{2,})\}/g,"$1{\\mathrm{$2}}");function Dle(e){const t=e.trim();if(/^[A-Za-z][A-Za-z0-9]*(?:\\_[A-Za-z0-9]+)+$/.test(t))return{kind:"text",value:t.replace(/\\_/g,"_")};const r=/^([A-Za-z][A-Za-z0-9]*)((?:_[A-Za-z0-9]+)+)$/.exec(t);if(r){const n=r[2].slice(1).split("_");return r[1].length===1&&n.length===1?{kind:"tex",value:Lg(`${r[1]}_{${n[0]}}`)}:{kind:"text",value:t}}return/^[A-Za-z]{3,}$/.test(t)?{kind:"text",value:t}:{kind:"tex",value:Lg(t)}}function zle(e){var a,o,l;const t=[],r=[];let n=0;if(e.targets.length){t.push({id:"__targets",letter:"A",title:"Targets",subtitle:"Current best estimate against each design target."});for(const s of e.targets)r.push({id:`__t_${s.key}`,section:"__targets",index:++n,title:s.label,symbol:s.symbol,value:s.value,unit:s.unit,target:Number.isFinite(s.target)?{value:s.target,tol:s.tol}:null,source:s.source,status:s.status==="unknown"?void 0:s.status})}const i=((a=e.hamiltonian)==null?void 0:a.terms)??[];if(i.length){t.push({id:"__hamiltonian",letter:t.length?"B":"A",title:"Hamiltonian",subtitle:(o=e.hamiltonian)==null?void 0:o.model});for(const s of i)r.push({id:`__h_${n}`,section:"__hamiltonian",index:++n,title:s.label,symbol:s.symbol,value:s.value,unit:s.unit,source:(l=e.hamiltonian)==null?void 0:l.solver})}return{sections:t,cards:r}}function Rle(e){return e.cards.length?{sections:e.sections,cards:e.cards,derived:!1}:{...zle(e),derived:!0}}function Gm({symbol:e,className:t}){if(!e)return null;const r=Dle(e);return r.kind==="text"?h.jsx("span",{className:ne("font-mono text-[0.9em]",t),children:r.value}):h.jsx(qm,{tex:r.value,className:t})}const Lle=e=>e&&e.value!==null&&e.target&&Number.isFinite(e.target.tol)&&e.target.tol>0?(e.value-e.target.value)/e.target.tol:null;function $le(e){const t=new Map;for(const r of e)for(const n of r.params){const i=t.get(n.key);i?n.of&&(i.of=!0):t.set(n.key,{key:n.key,label:n.label,symbol:n.symbol,unit:n.unit,of:!!n.of})}return[...t.values()].filter(r=>e.some(n=>n.params.some(i=>i.key===r.key&&i.value!==null)))}function Ble(e,t){if(e==="port")return t.some(n=>n.links.length)?[{role:"*",header:"Connects"}]:[];const r=[];for(const n of t)for(const i of n.links)r.includes(i.role)||r.push(i.role);return r.map(n=>({role:n,header:qne(e,n)}))}function $g(e){const t=e.params.filter(r=>r.target);return{met:t.filter(r=>r.status==="pass").length,total:t.length}}function Fle(e,t){const r=[...e];if(!t)return r.sort((i,a)=>So(i.id,a.id));const n=i=>{var a,o;if(t.key==="__id")return i.id;if(t.key==="__targets"){const l=$g(i);return l.total?l.met/l.total:null}if(t.key.startsWith("__link:")){const l=t.key.slice(7);return((a=i.links.find(s=>l==="*"||s.role===l))==null?void 0:a.to)??null}return((o=i.params.find(l=>l.key===t.key))==null?void 0:o.value)??null};return r.sort((i,a)=>{const o=n(i),l=n(a);return o===null&&l===null?So(i.id,a.id):o===null?1:l===null?-1:(typeof o=="number"&&typeof l=="number"?o-l:So(String(o),String(l)))*t.dir||So(i.id,a.id)})}function rf({id:e,sort:t,onSort:r,className:n,title:i,children:a}){const o=(t==null?void 0:t.key)===e;return h.jsx("th",{scope:"col",className:ne("sticky top-0 z-10 whitespace-nowrap border-b border-ink bg-background px-2 pb-1.5 pt-2 align-bottom font-normal first:pl-3",n),"aria-sort":o?t.dir>0?"ascending":"descending":void 0,children:h.jsxs("button",{type:"button",onClick:()=>r(e),title:i,className:ne("inline-flex items-end gap-1 text-left hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",o?"text-foreground":"text-muted-foreground"),children:[a,h.jsx("span",{className:ne("text-[9px] leading-[14px]",!o&&"opacity-0"),"aria-hidden":!0,children:o&&t.dir<0?"▼":"▲"})]})})}function Hle({p:e,divider:t,onOpenCard:r}){const n=ne("px-2 py-1.5 text-right align-top",t&&"border-l border-rule");if(!e||e.value===null)return h.jsx("td",{className:ne(n,"text-rule-strong"),children:"—"});const i=Lle(e),a=e.status?n0[e.status]:null,o=[`${e.label}${e.of?` (${e.of})`:""}: ${nn(e.value,6)}${e.unit?` ${e.unit}`:""}`,e.target&&`goal ${nn(e.target.value)} ± ${nn(e.target.tol)}${e.unit?` ${e.unit}`:""}`,i!==null&&`Δ ${fs(i,2)} tol`,e.source&&`source ${e.source}`,e.card&&"click for the card"].filter(Boolean).join(`
|
|
409
|
+
`),l=h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"num block font-semibold leading-[18px]",style:a?{color:a}:void 0,children:nn(e.value,4,!0)}),i!==null&&h.jsxs("span",{className:"num block text-2xs leading-3",style:{color:Math.abs(i)<=1?qi:Tr},children:["Δ ",fs(i,Math.abs(i)>=10?0:1)]})]});return h.jsx("td",{className:n,title:o,children:e.card?h.jsx("button",{type:"button",onClick:()=>r(e.card),className:"ml-auto block text-right underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:l}):l})}function Wle({links:e,detail:t,onSelect:r}){return e.length===0?h.jsx("span",{className:"text-rule-strong",children:"—"}):h.jsx("span",{className:"flex flex-wrap gap-x-1.5 gap-y-0.5",children:e.map(n=>h.jsxs("button",{type:"button",onClick:()=>r(n.to),title:n.label?`${n.to} (${n.label})`:n.to,className:"font-mono text-[11px] leading-[18px] hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:[n.to,t&&h.jsx("span",{className:"ml-1 font-sans text-2xs text-muted-foreground",children:[n.role,n.label!==n.to?n.label:null].filter(Boolean).join(" · ")})]},`${n.role}-${n.to}`))})}function Ule({kind:e,rows:t,selected:r,flash:n,onSelect:i,onOpenCard:a}){var S;const[o,l]=p.useState(null),s=p.useMemo(()=>$le(t),[t]),u=p.useMemo(()=>Ble(e,t),[e,t]),c=p.useMemo(()=>Fle(t,o),[t,o]),f=t.some(A=>$g(A).total>0),d=s.filter(A=>!A.of),m=s.filter(A=>A.of),g=m.length>0&&s.every((A,P)=>P<d.length?!A.of:A.of),v=A=>l(P=>(P==null?void 0:P.key)===A?P.dir>0?{key:A,dir:-1}:null:{key:A,dir:1}),x=t.length>12,y=t.filter(A=>A.status==="fail").length,w=!(t.length>1&&new Set(t.map(A=>A.subtitle??"")).size===1);return h.jsxs("div",{className:"min-w-0",children:[h.jsxs("div",{className:"flex items-baseline justify-between gap-3 pb-1.5",children:[h.jsxs("h3",{className:"text-2xs font-semibold uppercase tracking-label",children:[Ra[e].many," ",h.jsx("span",{className:"num ml-1 font-normal text-muted-foreground",children:t.length}),!w&&((S=t[0])==null?void 0:S.subtitle)&&h.jsxs("span",{className:"ml-3 font-normal normal-case tracking-normal text-muted-foreground",children:["all ",t[0].subtitle]})]}),y>0&&h.jsxs("span",{className:"text-2xs uppercase tracking-label text-signal",children:[h.jsx("span",{className:"num",children:y})," outside tolerance"]})]}),h.jsx("div",{className:ne("overflow-x-auto border-t border-ink",x&&"max-h-[min(62vh,620px)] overflow-y-auto overscroll-contain"),children:h.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[h.jsxs("thead",{children:[g&&h.jsxs("tr",{children:[h.jsx("th",{colSpan:1+u.length,className:"bg-background"}),h.jsx("th",{colSpan:d.length,className:"whitespace-nowrap bg-background px-2 pt-1.5 text-left text-2xs font-normal uppercase tracking-label text-muted-foreground",children:Ra[e].one}),h.jsx("th",{colSpan:m.length,className:"whitespace-nowrap border-l border-rule bg-background px-2 pt-1.5 text-left text-2xs font-normal uppercase tracking-label text-muted-foreground",children:e==="qubit"?"Readout and coupling":"Linked"}),f&&h.jsx("th",{className:"bg-background"})]}),h.jsxs("tr",{children:[h.jsx(rf,{id:"__id",sort:o,onSort:v,className:"text-left",children:h.jsx("span",{className:"text-2xs font-semibold uppercase tracking-label",children:Ra[e].one})}),u.map(A=>h.jsx(rf,{id:`__link:${A.role}`,sort:o,onSort:v,className:"text-left",children:h.jsx("span",{className:"text-2xs font-semibold uppercase tracking-label",children:A.header})},A.role)),s.map((A,P)=>h.jsx(rf,{id:A.key,sort:o,onSort:v,title:A.label,className:ne("text-right",g&&P===d.length&&"border-l border-rule"),children:h.jsxs("span",{className:"flex flex-col items-end leading-4",children:[h.jsx("span",{className:"text-[13px] text-foreground",children:h.jsx(Gm,{symbol:A.symbol})}),h.jsx("span",{className:"text-2xs",children:A.unit||" "})]})},A.key)),f&&h.jsx(rf,{id:"__targets",sort:o,onSort:v,className:"text-right",title:"targets within tolerance",children:h.jsx("span",{className:"text-2xs font-semibold uppercase tracking-label",children:"Targets"})})]})]}),h.jsx("tbody",{children:c.map(A=>{const P=$g(A),O=A.status?n0[A.status]:null,j=A.id===r;return h.jsxs("tr",{id:`pel-row-${A.id}`,className:ne("border-b border-rule outline outline-2 -outline-offset-2 transition-[background-color,outline-color] duration-500 hover:bg-paper",j&&"bg-paper",n===`pel-row-${A.id}`?"outline-ink":"outline-transparent"),children:[h.jsxs("th",{scope:"row",className:"relative whitespace-nowrap py-1.5 pl-3 pr-2 text-left align-top font-normal",children:[h.jsx("span",{className:"absolute inset-y-0 left-0 w-[3px]",style:{background:O??"transparent"},"aria-hidden":!0}),h.jsxs("button",{type:"button",onClick:()=>i(A.id),title:A.subtitle?`${A.label} · ${A.subtitle}`:A.label,className:"text-left focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","aria-current":j?"true":void 0,children:[h.jsx("span",{className:ne("block font-semibold leading-[18px] hover:underline",j&&"underline underline-offset-2"),children:A.label}),w&&A.subtitle&&h.jsx("span",{className:"block max-w-[14rem] truncate text-2xs leading-3 text-muted-foreground",children:A.subtitle})]})]}),u.map(N=>h.jsx("td",{className:"px-2 py-1.5 align-top",children:h.jsx(Wle,{links:A.links.filter(_=>N.role==="*"||_.role===N.role),detail:N.role==="*",onSelect:i})},N.role)),s.map((N,_)=>h.jsx(Hle,{p:A.params.find(z=>z.key===N.key),divider:g&&_===d.length,onOpenCard:a},N.key)),f&&h.jsx("td",{className:"num whitespace-nowrap px-2 py-1.5 text-right align-top font-semibold",style:{color:P.total?P.met===P.total?qi:Tr:nr},children:P.total?`${P.met}/${P.total}`:"—"})]},A.id)})})]})})]})}function jN(e,t){if(t.failingOnly&&e.status!=="fail")return!1;const r=t.query.trim().toLowerCase();if(!r)return!0;const n=[e.id,e.label,e.subtitle??"",...e.links.map(i=>i.to),...e.links.map(i=>i.label??"")].join(" ").toLowerCase();return r.split(/[\s,]+/).some(i=>i&&n.includes(i))}function qle({elements:e,filter:t,selected:r,flash:n,onSelect:i,onOpenCard:a}){const o=p.useMemo(()=>{const c=new Map;for(const f of e)jN(f,t)&&c.set(f.kind,[...c.get(f.kind)??[],f]);return c},[e,t]),l=c=>{const f=o.get(c);return f&&f.length?h.jsx(Ule,{kind:c,rows:f,selected:r,flash:n,onSelect:i,onOpenCard:a},c):null},s=["resonator","bus","coupler"].map(l).filter(Boolean),u=["feedline","port"].map(l).filter(Boolean);return o.size===0?h.jsx("div",{className:"border-t border-dashed border-rule-strong py-6 text-xs text-muted-foreground",children:"No element matches the filter."}):h.jsxs("div",{className:"flex flex-col gap-8",children:[l("qubit"),(s.length>0||u.length>0)&&h.jsxs("div",{className:ne("grid gap-x-10 gap-y-8",s.length&&u.length&&"min-[1180px]:grid-cols-[minmax(0,3fr)_minmax(0,2fr)]"),children:[s.length>0&&h.jsx("div",{className:"flex min-w-0 flex-col gap-8",children:s}),u.length>0&&h.jsx("div",{className:"flex min-w-0 flex-col gap-8",children:u})]})]})}const Vle=Kn[0],Kle=Kn[2];function Gle(e){return e.split(new RegExp("(?<=[_./\\\\])")).flatMap((t,r)=>r?[h.jsx("wbr",{},r),t]:[t])}function Yle(){return h.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.4","aria-hidden":!0,children:[h.jsx("path",{d:"M1.5 1.5 V12.5 H12.5"}),h.jsx("path",{d:"M3.5 9.5 L6.3 6.2 L8.6 8 L12 3.8"})]})}function Lw({label:e,active:t,onClick:r,children:n}){return h.jsxs(us,{children:[h.jsx(cs,{asChild:!0,children:h.jsx("button",{type:"button",onClick:r,"aria-label":e,"aria-pressed":t,className:ne("flex h-7 w-7 items-center justify-center border text-[14px] font-semibold leading-none transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",t?"border-ink bg-ink text-white":"border-transparent text-muted-foreground hover:border-rule-strong hover:text-foreground"),children:n})}),h.jsx(Ro,{side:"top",children:e})]})}function Xle({source:e}){const t=Ile(e);return!t||!e?null:h.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground",children:[h.jsx("span",{className:"h-2 w-2 shrink-0",style:{background:_le[t]},"aria-hidden":!0}),h.jsx("span",{className:"truncate font-mono text-[11px]",title:e,children:e})]})}function Zle({status:e}){if(!e)return null;const t=n0[e],r=CN[e];return!t||!r?null:h.jsx("span",{className:"border px-1 text-2xs font-semibold uppercase leading-[14px] tracking-label",style:{color:t,borderColor:t},children:r})}function Sx({k:e,children:t}){return h.jsxs("div",{className:"flex min-w-0 items-baseline gap-2 text-xs leading-5",children:[h.jsx("span",{className:"w-[3.25rem] shrink-0 text-2xs font-semibold uppercase tracking-label text-muted-foreground",children:e}),h.jsx("span",{className:"num min-w-0",children:t})]})}function Qle({card:e}){const t=e.target;if(!t)return null;const r=e.value!==null&&Number.isFinite(t.tol)&&t.tol>0?(e.value-t.value)/t.tol:null,n=r!==null&&Math.abs(r)<=1;return h.jsxs(Sx,{k:"Goal",children:[nn(t.value),Number.isFinite(t.tol)&&h.jsxs("span",{className:"text-muted-foreground",children:[" ± ",nn(t.tol)]}),r!==null&&h.jsxs("span",{className:"ml-2 font-semibold",style:{color:n?qi:Tr},children:["Δ ",fs(r,Math.abs(r)>=100?0:Math.abs(r)>=10?1:2)," tol"]})]})}function Jle({card:e}){const t=e.design;if(t==null)return null;const r=e.value,n=r!==null&&t!==0?(r-t)/Math.abs(t):null;return h.jsxs(Sx,{k:"Design",children:[nn(t,4,!0),n!==null&&(Math.abs(n)<5e-5?h.jsx("span",{className:"ml-2 text-muted-foreground",children:"= value"}):h.jsxs("span",{className:"ml-2 font-semibold",style:{color:n>0?Vle:Kle},children:[n>0?"↑":"↓"," ",$h(Math.abs(n))]}))]})}function ese({card:e}){const t=e.range;if(!t)return null;const[r,n]=t[0]<=t[1]?t:[t[1],t[0]],i=e.value??(r+n)/2,a=i!==0?(n-r)/2/Math.abs(i):null;return h.jsxs(Sx,{k:"Range",children:[nn(r,4,!0)," – ",nn(n,4,!0),a!==null&&h.jsxs("span",{className:"ml-2 text-muted-foreground",children:["±",$h(a)]})]})}function tse({sub:e}){return e.length===0?null:h.jsx("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2.5 border-t border-rule pt-3",children:e.map((t,r)=>h.jsxs("div",{className:"min-w-0",children:[h.jsx("div",{className:"truncate text-[13px] leading-5 text-muted-foreground",children:h.jsx(Gm,{symbol:t.symbol})}),h.jsxs("div",{className:"num whitespace-nowrap text-[17px] font-semibold leading-6",children:[h.jsx("span",{className:ne(t.value===null&&"text-rule-strong"),children:nn(t.value,4,!0)}),t.unit&&t.value!==null&&h.jsx("span",{className:"ml-1 text-xs font-normal text-muted-foreground",children:t.unit})]})]},`${t.symbol}-${r}`))})}function rse({r:e,resolve:t}){const r=t(e.ref),n=h.jsxs(h.Fragment,{children:[h.jsx($o,{value:e.label,className:"text-muted-foreground"}),e.value&&h.jsx("span",{className:"num font-semibold text-foreground",children:e.value}),e.ref&&h.jsxs("span",{className:"num text-muted-foreground",children:["· ",(r==null?void 0:r.short)??e.ref]})]}),i="inline-flex max-w-full items-baseline gap-1.5 border border-rule-strong px-1.5 py-px text-xs leading-5 [overflow-wrap:anywhere]";return r?h.jsx("button",{type:"button",onClick:r.go,title:`Go to ${r.label}`,className:ne(i,"text-left hover:border-ink hover:bg-paper focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"),children:n}):h.jsx("span",{className:i,children:n})}function nse({plot:e,card:t,open:r,onOpenChange:n}){return h.jsx(kN,{open:r,onOpenChange:n,children:r&&h.jsxs(yx,{className:"w-[min(1000px,94vw)]",children:[h.jsxs(xx,{children:[h.jsx(bx,{children:e.title||e.id}),h.jsxs(wx,{children:[h.jsx("span",{className:"num",children:kc(t.index)})," ",t.title,e.caption&&h.jsxs(h.Fragment,{children:[" · ",e.caption]})]})]}),h.jsx(YC,{plot:e,height:420})]})})}function ise({card:e,plot:t,resolve:r,highlighted:n}){const[i,a]=p.useState(!1),[o,l]=p.useState(!1),s=e.status?n0[e.status]:null,u=e.from??[],c=e.notes??[],f=e.value!==null;return h.jsxs("article",{id:Rg(e.index),className:ne("pscroll relative flex min-w-0 flex-col border border-rule bg-card outline outline-2 -outline-offset-1 transition-[outline-color] duration-700",n?"outline-ink":"outline-transparent"),children:[s&&h.jsx("span",{className:"absolute inset-x-[-1px] top-[-1px] h-[2px]",style:{background:s},"aria-hidden":!0}),h.jsxs("div",{className:"flex flex-1 flex-col px-4 pb-4 pt-3.5",children:[h.jsxs("header",{className:"flex items-start gap-3",children:[h.jsx("span",{className:"num shrink-0 text-[26px] font-normal leading-[26px] tracking-tight text-[#b9b9b9]",children:kc(e.index)}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("h3",{className:"text-[15px] font-semibold leading-[19px] [overflow-wrap:anywhere]",children:Gle(e.title)}),(e.source||CN[e.status??"info"])&&h.jsxs("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[h.jsx(Xle,{source:e.source}),h.jsx(Zle,{status:e.status})]})]}),(t||e.formula)&&h.jsxs("div",{className:"-mr-1.5 -mt-0.5 flex shrink-0 items-center",children:[t&&h.jsx(Lw,{label:`Plot: ${t.title||t.id}`,onClick:()=>l(!0),children:h.jsx(Yle,{})}),e.formula&&h.jsx(Lw,{label:i?"Hide formula":"Show formula",active:i,onClick:()=>a(d=>!d),children:"Σ"})]})]}),e.description&&h.jsx("p",{className:"mt-2.5 text-[13px] leading-[18px] text-muted-foreground [overflow-wrap:anywhere]",children:h.jsx($o,{value:e.description,strict:!0})}),i&&e.formula&&h.jsx("div",{className:"mt-3 border-y border-rule bg-paper px-3 py-2 text-[14px]",children:h.jsx(qm,{tex:Lg(e.formula),display:!0,className:"overflow-y-hidden"})}),h.jsxs("div",{className:"mt-4",children:[e.symbol&&h.jsx("div",{className:"text-[14px] leading-5",children:h.jsx(Gm,{symbol:e.symbol})}),h.jsxs("div",{className:"mt-0.5 flex flex-wrap items-baseline gap-x-2",children:[f?h.jsx("span",{className:"num text-[42px] font-medium leading-[48px] tracking-[-0.025em]",children:nn(e.value,4,!0)}):h.jsx("span",{className:"num text-[26px] font-medium leading-8 text-rule-strong","aria-label":"no value",children:"—"}),e.unit&&f&&h.jsx("span",{className:"text-[17px] text-muted-foreground",children:e.unit})]}),(e.target||e.design!=null||e.range)&&h.jsxs("div",{className:"mt-1.5",children:[h.jsx(Qle,{card:e}),h.jsx(Jle,{card:e}),h.jsx(ese,{card:e})]})]}),e.sub&&e.sub.length>0&&h.jsx("div",{className:"mt-4",children:h.jsx(tse,{sub:e.sub})})]}),(u.length>0||c.length>0)&&h.jsxs("footer",{className:"border-t border-rule px-4 py-2.5",children:[u.length>0&&h.jsxs("div",{className:"flex flex-wrap items-baseline gap-1.5",children:[h.jsx("span",{className:"mr-1 text-xs text-muted-foreground",children:"From"}),u.map((d,m)=>h.jsx(rse,{r:d,resolve:r},`${d.label}-${m}`))]}),c.length>0&&h.jsx("ul",{className:ne("space-y-1 text-[11px] leading-[15px] text-muted-foreground [overflow-wrap:anywhere]",u.length>0&&"mt-2"),children:c.map((d,m)=>h.jsxs("li",{className:"flex gap-1.5",children:[h.jsx("span",{"aria-hidden":!0,children:"–"}),h.jsx("span",{children:h.jsx($o,{value:d,strict:!0})})]},m))})]}),t&&h.jsx(nse,{plot:t,card:e,open:o,onOpenChange:l})]})}const $w="pel";function ase(e,t){const[r,n]=p.useState(()=>new URLSearchParams(window.location.search).get("el")),i=r&&e.includes(r)?r:t,a=p.useCallback(o=>{n(o);const l=new URL(window.location.href);l.searchParams.set("el",o),window.history.replaceState(null,"",l.toString().replace(/([?&])sample=(&|$)/,"$1sample$2"))},[]);return[i,a]}function ose(e){const t=new Map;for(const r of e)t.set(r.kind,(t.get(r.kind)??0)+1);return oh.filter(r=>t.get(r)).map(r=>`${t.get(r)} ${(t.get(r)===1?Ra[r].one:Ra[r].many).toLowerCase()}`).join(" · ")}function lse({state:e}){const t=e.summary.find(n=>n.id==="process"),r=((t==null?void 0:t.items)??[]).filter(n=>!/^(substrate|permittivity|values from)$/i.test(n.label));return r.length===0?null:h.jsx("dl",{className:"flex flex-wrap gap-x-6 gap-y-1 text-[13px]",children:r.map((n,i)=>h.jsxs("div",{className:"flex items-baseline gap-1.5",children:[h.jsx("dt",{className:"text-muted-foreground",children:n.symbol?h.jsx(Gm,{symbol:n.symbol}):n.label}),h.jsxs("dd",{className:"num font-semibold",children:[typeof n.value=="number"?nn(n.value):n.value??"—",n.unit&&n.value!==null&&h.jsx("span",{className:"ml-1 text-xs font-normal text-muted-foreground",children:n.unit})]})]},`${n.label}-${i}`))})}function sse({filter:e,onChange:t,total:r,shown:n}){return h.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[h.jsxs("label",{className:"relative",children:[h.jsx("span",{className:"sr-only",children:"Filter elements"}),h.jsx("input",{type:"search",value:e.query,onChange:i=>t({...e,query:i.target.value}),placeholder:"Filter: Q3 R7 FL…",className:"h-7 w-44 border border-rule-strong bg-background px-2 text-xs placeholder:text-muted-foreground focus-visible:border-ink focus-visible:outline-none"})]}),h.jsx("button",{type:"button","aria-pressed":e.failingOnly,onClick:()=>t({...e,failingOnly:!e.failingOnly}),className:ne("h-7 border px-2 text-2xs font-semibold uppercase tracking-label transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",e.failingOnly?"border-signal bg-signal text-white":"border-rule-strong text-muted-foreground hover:border-ink hover:text-foreground"),children:"Failing only"}),n!==r&&h.jsxs("span",{className:"num text-2xs uppercase tracking-label text-muted-foreground",children:[n,"/",r," shown"]})]})}function use({status:e}){const t=e==="fail"?Tr:e==="pass"?qi:e==="warn"?n0.warn:null;return h.jsx("span",{className:"inline-block h-[7px] w-[7px] shrink-0",style:t?{background:t}:{border:`1px solid ${nr}`},"aria-hidden":!0})}function cse({ids:e,model:t,chipStatus:r,selected:n,onSelect:i}){const a=p.useRef(null);p.useLayoutEffect(()=>{const l=a.current;if(!l)return;const s=()=>document.documentElement.style.setProperty("--sel-h",`${Math.ceil(l.getBoundingClientRect().height)}px`);if(s(),typeof ResizeObserver>"u")return;const u=new ResizeObserver(s);return u.observe(l),()=>{u.disconnect(),document.documentElement.style.setProperty("--sel-h","0px")}},[]);const o=[];e.includes(Ct)&&o.push({label:"",ids:[Ct]});for(const l of oh){const s=e.filter(u=>{var c;return((c=t.byId.get(u))==null?void 0:c.kind)===l});s.length&&o.push({label:Ra[l].many,ids:s})}return h.jsx("div",{ref:a,className:"sticky z-20 -mx-4 border-b border-rule bg-background px-4 py-2 sm:-mx-8 sm:px-8",style:{top:"var(--sticky-h, 88px)"},children:h.jsx("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2",role:"tablist","aria-label":"Chip elements",children:o.map(l=>h.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[l.label&&h.jsx("span",{className:"mr-1 text-2xs font-semibold uppercase tracking-label text-muted-foreground",children:l.label}),l.ids.map(s=>{const u=t.byId.get(s),c=s===n;return h.jsxs("button",{type:"button",role:"tab","aria-selected":c,onClick:()=>i(s),title:u?`${Ra[u.kind].one} ${u.label}${u.subtitle?` · ${u.subtitle}`:""}`:"Chip-level values",className:ne("inline-flex h-7 items-center gap-1.5 border px-2 text-xs font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",c?"border-ink bg-ink text-white":"border-rule-strong hover:border-ink"),children:[h.jsx(use,{status:s===Ct?r:u==null?void 0:u.status}),s===Ct?"Chip":(u==null?void 0:u.label)??s]},s)})]},l.label||"chip"))})})}function fse(e){return e.length===1?[e[0].section.title,e[0].section.subtitle].filter(Boolean).join(" · "):e.map(t=>t.section.title).join(" · ")}const dse={readout:"readout",feedline:"feedline",flux:"flux",coupling:"coupled to",port:"port",drive:"drive"};function hse({id:e,model:t,blocks:r,onSelect:n}){const i=t.byId.get(e),{values:a,fail:o,warn:l}=Qne(r),s=(i==null?void 0:i.links)??[];return h.jsxs("header",{className:"flex flex-wrap items-end gap-x-5 gap-y-2 pb-1 pt-6",children:[h.jsx("h2",{className:"text-[34px] font-bold leading-[34px] tracking-tight",children:e===Ct?"Chip":(i==null?void 0:i.label)??e}),h.jsxs("div",{className:"min-w-0 flex-1 pb-0.5",children:[h.jsx("div",{className:"text-[13px] text-muted-foreground",children:e===Ct?fse(r):[i&&Ra[i.kind].one,i==null?void 0:i.subtitle].filter(Boolean).join(" · ")}),s.length>0&&h.jsx("div",{className:"mt-1 flex flex-wrap gap-1.5",children:s.map(u=>h.jsxs("button",{type:"button",onClick:()=>n(u.to),className:"inline-flex items-baseline gap-1.5 border border-rule-strong px-1.5 py-px text-xs leading-5 hover:border-ink hover:bg-paper focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:[h.jsx("span",{className:"text-muted-foreground",children:dse[u.role]??u.role}),h.jsx("span",{className:"font-semibold",children:u.to}),u.label&&u.label!==u.to&&h.jsx("span",{className:"font-mono text-[11px] text-muted-foreground",children:u.label})]},`${u.role}-${u.to}`))})]}),h.jsxs("div",{className:"pb-1 text-2xs uppercase tracking-label text-muted-foreground",children:[h.jsx("span",{className:"num",children:a})," value",a===1?"":"s",o>0&&h.jsxs("span",{className:"text-signal",children:[" · ",h.jsx("span",{className:"num",children:o})," fail"]}),l>0&&h.jsxs("span",{className:"text-warn",children:[" · ",h.jsx("span",{className:"num",children:l})," check"]})]})]})}function mse({block:e}){const{section:t,cards:r}=e,n=r.filter(i=>i.status==="fail").length;return h.jsxs("header",{className:"flex flex-wrap items-baseline gap-x-3 gap-y-0.5 border-t border-ink pt-3",children:[h.jsx("h3",{className:"text-[15px] font-semibold leading-5",children:t.title}),t.subtitle&&h.jsx("p",{className:"min-w-0 text-[13px] text-muted-foreground [overflow-wrap:anywhere]",children:t.subtitle}),h.jsxs("span",{className:"ml-auto text-2xs uppercase tracking-label text-muted-foreground",children:[h.jsx("span",{className:"num",children:r.length})," value",r.length===1?"":"s",n>0&&h.jsxs("span",{className:"text-signal",children:[" · ",h.jsx("span",{className:"num",children:n})," fail"]})]})]})}function pse({state:e}){var R,I;const[t,r]=p.useState(null),[n,i]=p.useState(null),[a,o]=p.useState({query:"",failingOnly:!1}),l=p.useRef(void 0);p.useEffect(()=>()=>window.clearTimeout(l.current),[]);const{sections:s,cards:u,derived:c}=p.useMemo(()=>Rle(e),[e]),f=p.useMemo(()=>Yne(e,u),[e,u]),d=p.useMemo(()=>Zne(u,f),[u,f]),m=d.find(F=>{var H;return((H=f.byId.get(F))==null?void 0:H.kind)==="qubit"})??d[0]??null,[g,v]=ase(d,m),x=p.useMemo(()=>g?Xne(g,s,u,f):[],[g,s,u,f]),y=p.useMemo(()=>new Map(e.plots.map(F=>[F.id,F])),[e.plots]),w=p.useMemo(()=>XC(u.filter(F=>{var H;return(((H=f.owner.get(F.id))==null?void 0:H.element)??Ct)===Ct}).map(F=>F.status)),[u,f]);p.useEffect(()=>{if(!n)return;const F=document.getElementById(n.id);i(null),F&&(F.scrollIntoView({behavior:"smooth",block:n.block}),r(n.id),window.clearTimeout(l.current),l.current=window.setTimeout(()=>r(null),1600))},[n]);const S=p.useCallback(F=>{const H=f.owner.get(F.id)??{element:Ct};g!==H.element&&g!==H.partner&&v(H.element),i({id:Rg(F.index),block:"center"})},[f,g,v]),A=p.useCallback(F=>{d.includes(F)?(v(F),i({id:$w,block:"start"})):i({id:`pel-row-${F}`,block:"center"})},[d,v]),P=p.useCallback(F=>{const H=u.find(Z=>Z.id===F);H&&S(H)},[u,S]),O=p.useCallback(F=>{if(!F)return null;const H=F.trim(),Z=/^\d{1,3}$/.test(H)?u.find(X=>X.index===Number(H)):u.find(X=>X.id===H);if(Z){const X=f.owner.get(Z.id),re=X&&X.element!==g&&X.partner!==g?` (${X.element===Ct?"Chip":X.element})`:"";return{label:`${kc(Z.index)} ${Z.title}${re}`,short:kc(Z.index),go:()=>S(Z)}}if(H===Ct||f.byId.has(H))return{label:H===Ct?"Chip":H,short:H===Ct?"Chip":H,go:()=>A(H)};if(/^[A-Z]$/.test(H)){const X=s.find(B=>B.letter===H),re=X&&u.filter(B=>B.section===X.id).sort((B,W)=>B.index-W.index)[0];return re?{label:`${H} ${X.title}`,short:H,go:()=>S(re)}:null}return null},[u,f,s,g,S,A]),j=f.elements.filter(F=>jN(F,a)).length,N=(I=(R=e.summary.find(F=>F.id==="process"))==null?void 0:R.items.find(F=>/values from/i.test(F.label)))==null?void 0:I.value,{goal:_}=e,z=x.filter(F=>!F.pair).length;return h.jsxs("div",{className:"flex min-w-0 flex-col",children:[f.elements.length>0&&h.jsxs("section",{"aria-label":"Chip overview",className:"flex flex-col gap-5 pb-10",children:[h.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-x-8 gap-y-3",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("h2",{className:"text-[21px] font-semibold leading-[26px]",children:"Chip overview"}),h.jsxs("p",{className:"mt-0.5 text-[13px] text-muted-foreground",children:[ose(f.elements),_.total>0&&h.jsxs(h.Fragment,{children:[" · ",h.jsxs("span",{style:{color:_.reached?qi:Tr},children:[_.passed," of ",_.total," targets met"]})]}),typeof N=="string"&&h.jsxs(h.Fragment,{children:[" · values from ",N]})]})]}),h.jsx(sse,{filter:a,onChange:o,total:f.elements.length,shown:j})]}),h.jsx(lse,{state:e}),f.derived&&h.jsx("div",{className:"border-l-2 border-warn bg-paper px-3 py-2 text-xs text-muted-foreground",children:"This state has no element list (older backend); the overview is derived from the targets."}),h.jsx(qle,{elements:f.elements,filter:a,selected:g,flash:t,onSelect:A,onOpenCard:P})]}),c&&u.length>0&&h.jsx("div",{className:"mb-6 border-l-2 border-warn bg-paper px-3 py-2 text-xs text-muted-foreground",children:"This state has no parameter cards (older backend); showing the targets and Hamiltonian terms instead."}),u.length===0&&h.jsx(Ge,{children:"No parameters yet — cards appear once the loop has produced values."}),g&&u.length>0&&h.jsxs("section",{id:$w,"aria-label":"Element parameters",style:{scrollMarginTop:"var(--sticky-h, 88px)"},children:[h.jsx(cse,{ids:d,model:f,chipStatus:w,selected:g,onSelect:F=>v(F)}),h.jsx(hse,{id:g,model:f,blocks:x,onSelect:A}),h.jsx("div",{className:"mt-5 flex flex-col gap-10",children:x.map(F=>h.jsxs("section",{className:"min-w-0","aria-label":F.section.title,children:[(F.pair||z>1)&&h.jsx("div",{className:"mb-4",children:h.jsx(mse,{block:F})}),h.jsx("div",{className:"pgrid-wrap",children:h.jsx("div",{className:"pgrid",children:F.cards.map(H=>h.jsx(ise,{card:H,plot:H.plot?y.get(H.plot)??null:null,resolve:O,highlighted:t===Rg(H.index)},H.id))})})]},F.key))})]})]})}function vse({state:e}){const t=Mc(e,"plots");return h.jsx(Jo,{children:h.jsx(ht,{title:"All plots",aside:`${t.length} plot${t.length===1?"":"s"}`,children:h.jsx(G2,{plots:t})})})}function gse({rows:e}){return e.length===0?h.jsx(Ge,{children:"No FEM results used yet: the table fills when a solved job is read back"}):h.jsxs(Mn,{children:[h.jsx(Tn,{children:h.jsxs(mt,{className:"hover:bg-transparent",children:[h.jsx(ce,{children:"Branch"}),h.jsx(ce,{children:"Nodes"}),h.jsx(ce,{className:"text-right",children:"Estimate"}),h.jsx(ce,{className:"text-right",children:"FEM"}),h.jsx(ce,{className:"text-right",children:"Δ (%)"}),h.jsx(ce,{children:"Job"})]})}),h.jsx(In,{children:e.map(t=>h.jsxs(mt,{children:[h.jsx(de,{className:"font-mono text-xs font-medium",children:t.branch}),h.jsx(de,{className:"text-xs text-muted-foreground",children:t.nodes.join(" – ")}),h.jsxs(de,{className:"num text-right",children:[_e(t.estimate)," ",h.jsx("span",{className:"text-2xs text-muted-foreground",children:t.unit})]}),h.jsx(de,{className:"num text-right",children:_e(t.fem)}),h.jsx(de,{className:ne("num text-right",Math.abs(t.deltaPct)>10?"text-signal":"text-pass"),children:fs(t.deltaPct,1)}),h.jsx(de,{className:"max-w-[12rem] truncate font-mono text-2xs text-muted-foreground",title:t.job,children:t.job??"—"})]},t.branch))})]})}const yse=e=>["solving","rendering","running"].includes((e||"").toLowerCase());function xse(e){return e==null||!Number.isFinite(e)?"":e<90?`${e.toFixed(0)} s`:`${Math.floor(e/60)} min ${Math.round(e%60)} s`}function bse({job:e}){var a,o;const t=e.progress;if(!t)return h.jsx("span",{className:"text-muted-foreground",children:"—"});const r=(a=t.delta)!=null&&a.length?t.delta[t.delta.length-1]:null,n=t.pass!=null&&t.maxPasses?Math.min(1,t.pass/t.maxPasses):e.hasResults?1:0,i=yse(e.status)&&!t.stale;return h.jsxs("div",{className:"min-w-[11rem] space-y-1 text-xs",children:[(t.pass!=null||i)&&h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"h-1.5 w-24 overflow-hidden rounded-full bg-muted",children:h.jsx("div",{className:`h-full ${t.converged||e.hasResults?"bg-pass":"bg-primary"} ${i?"animate-pulse":""}`,style:{width:`${Math.round(n*100)}%`}})}),h.jsx("span",{className:"num whitespace-nowrap",children:t.pass!=null?`pass ${t.pass}${t.maxPasses?` / ${t.maxPasses}`:""}`:"starting"})]}),r!=null&&h.jsxs("div",{className:"num text-muted-foreground",children:["Δ ",_e(r,3),t.target!=null&&` / ${_e(t.target,3)}`,t.converged!=null&&h.jsxs("span",{className:t.converged?"text-pass":"text-signal",children:[" ",t.converged?"converged":"not converged"]}),(o=t.elements)!=null&&o.length?` · ${t.elements[t.elements.length-1].toLocaleString()} tets`:""]}),t.stale&&h.jsx("div",{className:"text-signal",children:"solver process is gone (interrupted)"}),t.elapsedS!=null&&h.jsx("div",{className:"num text-muted-foreground",children:xse(t.elapsedS)}),i&&(t.stage||t.logTail)&&h.jsx("div",{className:"max-w-[18rem] truncate font-mono text-2xs text-muted-foreground",children:t.stage||t.logTail})]})}function wse({jobs:e}){return e.length===0?h.jsx(Ge,{children:"No simulation jobs yet"}):h.jsxs(Mn,{children:[h.jsx(Tn,{children:h.jsxs(mt,{className:"hover:bg-transparent",children:[h.jsx(ce,{children:"Job"}),h.jsx(ce,{children:"Group"}),h.jsx(ce,{children:"Analysis"}),h.jsx(ce,{children:"Solver"}),h.jsx(ce,{children:"Status"}),h.jsx(ce,{children:"Progress"}),h.jsx(ce,{className:"text-right",children:"Created"}),h.jsx(ce,{className:"text-right",children:"Finished"}),h.jsx(ce,{children:"Results"}),h.jsx(ce,{children:"Project"})]})}),h.jsx(In,{children:e.map(t=>h.jsxs(mt,{children:[h.jsx(de,{className:"max-w-[18rem] break-all font-mono text-xs font-medium",children:t.name}),h.jsx(de,{className:"font-semibold",children:t.group}),h.jsx(de,{className:"font-mono text-xs",children:t.analysis}),h.jsx(de,{className:"text-xs",children:t.solver}),h.jsx(de,{children:h.jsx(coe,{status:t.status})}),h.jsx(de,{children:h.jsx(bse,{job:t})}),h.jsx(de,{className:"num whitespace-nowrap text-right text-xs",children:_a(t.created)}),h.jsx(de,{className:"num whitespace-nowrap text-right text-xs",children:_a(t.finished)}),h.jsx(de,{className:"text-xs",children:t.hasResults?h.jsx("span",{className:"font-semibold text-pass",children:t.source==="kept"?"yes (kept)":"yes"}):h.jsx("span",{className:"text-muted-foreground",children:"no"})}),h.jsx(de,{className:"max-w-[22rem] break-all font-mono text-2xs text-muted-foreground",children:t.project||"—"})]},t.name))})]})}function Sse({state:e}){var i,a;const{cmatrix:t}=e,r=Mc(e,"simulation"),n=e.jobs.filter(o=>o.hasResults).length;return h.jsxs(Jo,{children:[h.jsx(ht,{title:"Jobs",aside:e.jobs.length>0&&`${n} of ${e.jobs.length} with results`,children:h.jsx(wse,{jobs:e.jobs})}),h.jsx(ht,{title:"Estimate vs FEM",aside:(((i=e.femCompare)==null?void 0:i.length)??0)>0&&`${(a=e.femCompare)==null?void 0:a.length} branches`,children:h.jsx(gse,{rows:e.femCompare??[]})}),h.jsx(ht,{title:"Capacitance matrix",className:"xl:col-span-6",aside:(t==null?void 0:t.job)&&h.jsx("span",{className:"font-mono normal-case tracking-normal",children:t.job}),children:t?h.jsxs(Fh,{children:[h.jsx(Zy,{children:h.jsx(Qy,{children:"Maxwell C-matrix"})}),h.jsx(Jy,{children:h.jsx(GC,{data:{rows:t.labels??[],cols:t.labels??[],values:t.matrix??[],unit:t.unit}})})]}):h.jsx(Ge,{children:"No C-matrix yet"})}),h.jsx(ht,{title:"Plots",className:"xl:col-span-6",children:r.length?h.jsx("div",{className:"grid grid-cols-1 gap-6",children:r.map(o=>h.jsx(K2,{plot:o},o.id))}):h.jsx(Ge,{})})]})}function kse(){const[e,t]=p.useState(()=>Yb(new URLSearchParams(window.location.search).get("tab"))??"parameters"),r=p.useCallback(n=>{const i=Yb(n);if(!i)return;t(i);const a=new URL(window.location.href);a.searchParams.set("tab",i),window.history.replaceState(null,"",a.toString().replace(/([?&])sample=(&|$)/,"$1sample$2"))},[]);return[e,r]}function Ase(e){const t=p.useRef(null);return p.useLayoutEffect(()=>{const r=t.current;if(!e||!r)return;const n=()=>document.documentElement.style.setProperty("--sticky-h",`${Math.ceil(r.getBoundingClientRect().height)}px`);if(n(),typeof ResizeObserver>"u")return;const i=new ResizeObserver(n);return i.observe(r),()=>i.disconnect()},[e]),t}function Pse(e,t){switch(t){case"parameters":return e.cards.length;case"layout":return e.screenshots.length;case"plots":return e.plots.filter(r=>r.tab==="plots").length;case"simulation":return e.jobs.length;case"history":return e.history.length;case"log":return e.log.length;default:return null}}function Ese({message:e,detail:t}){return h.jsxs("div",{className:"mx-auto max-w-[1920px] px-4 py-16 sm:px-8",children:[h.jsx(fk,{}),h.jsx("div",{className:"mt-10 border-t border-ink pt-2 text-2xs font-semibold uppercase tracking-label",children:e}),t&&h.jsx("div",{className:"mt-2 font-mono text-xs text-muted-foreground",children:t})]})}function Ose(){const e=nR(),[t,r]=kse(),{state:n}=e,i=Ase(n!==null),a=n?n.goal.reached?"targets met":`targets ${n.goal.passed}/${n.goal.total}`:"";if(p.useEffect(()=>{document.title=n?`${n.design.name} · ${a} — Quantcore Circuits`:"Quantcore Circuits"},[n,a]),!n){const o=e.mode==="offline";return h.jsx(Ese,{message:o?"No data yet — backend and sample fixture are unreachable":"Connecting…",detail:o?e.error:null})}return h.jsx(pz,{delayDuration:250,children:h.jsxs(y_,{value:t,onValueChange:r,className:"min-h-screen bg-background text-foreground",children:[h.jsxs("div",{ref:i,className:"sticky top-0 z-30 bg-background",children:[h.jsx(jz,{state:n,live:e}),h.jsx("div",{className:"mx-auto max-w-[1920px] px-4 sm:px-8",children:h.jsx(Lz,{state:n,count:o=>Pse(n,o)})})]}),h.jsxs("main",{className:"mx-auto max-w-[1920px] px-4 pb-24 sm:px-8",children:[h.jsx(xi,{value:"parameters",children:h.jsx(pse,{state:n})}),h.jsx(xi,{value:"layout",children:h.jsx(Cle,{state:n})}),h.jsx(xi,{value:"circuit",children:h.jsx(eie,{state:n})}),h.jsx(xi,{value:"hamiltonian",children:h.jsx(ooe,{state:n})}),h.jsx(xi,{value:"plots",children:h.jsx(vse,{state:n})}),h.jsx(xi,{value:"simulation",children:h.jsx(Sse,{state:n})}),h.jsx(xi,{value:"history",children:h.jsx(moe,{state:n})}),h.jsx(xi,{value:"log",children:h.jsx(Tle,{state:n})})]})]})})}Pv.createRoot(document.getElementById("root")).render(h.jsx(bi.StrictMode,{children:h.jsx(Ose,{})}));
|