From 7e9b41a45c6bebf67d819c16e809a972498bcf42 Mon Sep 17 00:00:00 2001 From: m1nce Date: Tue, 1 Oct 2024 16:15:42 -0700 Subject: [PATCH] Deploy website - based on 5f006fc9538e1bcfba7f588c2ff9b9b73d04d0e3 --- .DS_Store | Bin 0 -> 6148 bytes 404.html | 8 ++++++-- ...l_pets-bd4f41996253fb2dfaf6757c68a3446f.csv} | 0 ...> pets-60c4fcbf3eef32ca775cf4990a93182a.csv} | 0 assets/js/03f8d3d3.3c5a514c.js | 1 - assets/js/03f8d3d3.65063e2e.js | 1 + ...7896441.ef0790a9.js => 17896441.9d8dda81.js} | 2 +- assets/js/187e374f.00e1cc00.js | 1 + assets/js/187e374f.6bd2e740.js | 1 - assets/js/1f391b9e.50a4ba87.js | 1 - assets/js/1f391b9e.724c4e8c.js | 1 + ...f418535.21f320e1.js => 1f418535.861ded06.js} | 2 +- assets/js/1fc0ff79.66617d79.js | 1 + assets/js/1fc0ff79.fa736358.js | 1 - assets/js/2141c98b.79c64c71.js | 1 - assets/js/2141c98b.8ceae88c.js | 1 + assets/js/26533384.8b1fc360.js | 1 - assets/js/26533384.ba125169.js | 1 + assets/js/2667.1d2d8cb8.js | 1 + assets/js/2be9118b.1e62f3f0.js | 1 + assets/js/2be9118b.9ba0b5ad.js | 1 - assets/js/2efbf384.0dfce00f.js | 1 - assets/js/2efbf384.0f6f23fb.js | 1 + .../js/{3242.7073af4e.js => 3242.42f3e555.js} | 2 +- assets/js/36d89dbe.abf69e17.js | 1 + assets/js/36d89dbe.de5987ca.js | 1 - assets/js/37002ad4.05ddd35d.js | 1 + assets/js/37002ad4.acdd4bc4.js | 1 - assets/js/3f791b14.1dbf70e4.js | 1 - assets/js/3f791b14.fee676c1.js | 1 + assets/js/46ccc97a.8eb8150e.js | 1 - assets/js/46ccc97a.c2d0e88e.js | 1 + assets/js/499d47b2.d2522afc.js | 1 - assets/js/499d47b2.d3a1471f.js | 1 + assets/js/5d6a2894.ac62096c.js | 1 + assets/js/5d6a2894.defd590f.js | 1 - assets/js/5ddb68ca.036894d0.js | 1 + assets/js/5ddb68ca.b60b2c9d.js | 1 - assets/js/60c4aef6.19e4e86c.js | 1 - assets/js/60c4aef6.df31d04c.js | 1 + assets/js/61546123.aa0b9096.js | 1 - assets/js/61546123.cc7aeccc.js | 1 + assets/js/62efbc4a.00648062.js | 1 + assets/js/62efbc4a.b6392b54.js | 1 - assets/js/655190df.23a73ffd.js | 1 + assets/js/655190df.cff71572.js | 1 - ...5beeb93.0cea168a.js => 65beeb93.1715e24a.js} | 2 +- assets/js/6a26c916.af28a919.js | 1 + assets/js/6a26c916.d7db71df.js | 1 - assets/js/6e05dac9.5de02c24.js | 1 + assets/js/6e05dac9.794051db.js | 1 - ...e2ca103.25b793cd.js => 6e2ca103.1cb6c2aa.js} | 2 +- assets/js/724.b40f7e36.js | 1 - assets/js/739bf370.64f0d5ca.js | 1 - assets/js/739bf370.9d003505.js | 1 + ...661071f.e81fafbc.js => 7661071f.8f82254d.js} | 2 +- assets/js/81322b72.65633f64.js | 1 - assets/js/81322b72.90d5758b.js | 1 + assets/js/82ff9878.7e78a65b.js | 1 - assets/js/82ff9878.9143662a.js | 1 + ...c496670.dc29cff5.js => 8c496670.3ecad696.js} | 2 +- assets/js/920988e2.1a73d040.js | 1 + assets/js/920988e2.d63c6515.js | 1 - assets/js/9746c0ef.2880f7ec.js | 1 + assets/js/9746c0ef.75ed6b19.js | 1 - assets/js/9a265863.941bfa1e.js | 1 + assets/js/9a265863.c79182d8.js | 1 - assets/js/9ac7dbcc.29890201.js | 1 - assets/js/9ac7dbcc.77c0c128.js | 1 + assets/js/9e1896f0.53464e90.js | 1 + assets/js/9e1896f0.73dd9b87.js | 1 - assets/js/9f1843d8.235e28da.js | 1 + assets/js/9f1843d8.8224833f.js | 1 - ...278cdf6.f2e85f73.js => a278cdf6.6d5ef8b3.js} | 2 +- assets/js/a4805c9a.53481746.js | 1 + assets/js/a4805c9a.bf5ef1fd.js | 1 - assets/js/acb40918.20b35a67.js | 1 + assets/js/acb40918.33fe453e.js | 1 - assets/js/b0c30e46.494989bc.js | 1 + assets/js/b0c30e46.b4ca6cce.js | 1 - assets/js/b78139e1.4361acc2.js | 1 - assets/js/b78139e1.88fdbdc8.js | 1 + assets/js/b7ff327f.cadf970c.js | 1 - assets/js/b7ff327f.d6f9457e.js | 1 + assets/js/c94468d5.5dc63ddc.js | 1 - assets/js/c94468d5.c6edfbc0.js | 1 + ...cc49370.6bd4d0ac.js => ccc49370.ede845d6.js} | 2 +- assets/js/cdae2dcc.872a7974.js | 1 + assets/js/cdae2dcc.ba468bd4.js | 1 - ...01a85b0.71d737ed.js => d01a85b0.297915d4.js} | 2 +- assets/js/d3196d0d.987cf125.js | 1 + assets/js/d3196d0d.c8273d0e.js | 1 - ...4f68316.7ff7b207.js => d4f68316.3b3c7956.js} | 2 +- assets/js/d9ae1e76.9da90fe2.js | 1 + assets/js/d9ae1e76.e7ed22dc.js | 1 - ...9f32620.932c5f37.js => d9f32620.7d0f45aa.js} | 2 +- assets/js/dcbe5aac.70a12792.js | 1 + assets/js/dcbe5aac.ce3fa403.js | 1 - ...d3b6db1.befa0697.js => dd3b6db1.3bb3e7b5.js} | 2 +- assets/js/dfefbedb.df2ccdca.js | 1 - assets/js/dfefbedb.f0f27122.js | 1 + assets/js/eaaf288f.4ffa00eb.js | 1 - assets/js/eaaf288f.80006e89.js | 1 + assets/js/f03ae67e.29f38469.js | 1 - assets/js/f03ae67e.60f98101.js | 1 + assets/js/f095f4cd.32321c37.js | 1 - assets/js/f095f4cd.460bde7f.js | 1 + assets/js/f0994678.04e51180.js | 1 + assets/js/f0994678.6ec7c52a.js | 1 - assets/js/f0fd5c00.00af519e.js | 1 + assets/js/f0fd5c00.9ad17ee0.js | 1 - assets/js/f2b0891e.80e35342.js | 1 - assets/js/f2b0891e.d7eac5db.js | 1 + assets/js/f39390d7.533b54c4.js | 1 - assets/js/f39390d7.bf79684f.js | 1 + assets/js/f3b65525.792c19b9.js | 1 + assets/js/f3b65525.9d6a97b5.js | 1 - ...4c1c84a.6d6b448a.js => f4c1c84a.0250807e.js} | 2 +- assets/js/f8d80a2f.afca9aa7.js | 1 + assets/js/f8d80a2f.d56b6f04.js | 1 - ...9684ee2.ef0816da.js => f9684ee2.94223911.js} | 2 +- assets/js/fe41946a.15b16019.js | 1 - assets/js/fe41946a.a8daece4.js | 1 + assets/js/ffbcff43.08e5113e.js | 1 - assets/js/ffbcff43.e95668eb.js | 1 + assets/js/main.4026bce0.js | 2 ++ ...LICENSE.txt => main.4026bce0.js.LICENSE.txt} | 0 assets/js/main.892874f6.js | 2 -- assets/js/runtime~main.813eac89.js | 1 + assets/js/runtime~main.97453687.js | 1 - blog/archive/index.html | 8 ++++++-- blog/first-blog-post/index.html | 8 ++++++-- blog/index.html | 8 ++++++-- blog/long-blog-post/index.html | 8 ++++++-- blog/mdx-blog-post/index.html | 8 ++++++-- blog/tags/docusaurus/index.html | 8 ++++++-- blog/tags/facebook/index.html | 8 ++++++-- blog/tags/hello/index.html | 8 ++++++-- blog/tags/hola/index.html | 8 ++++++-- blog/tags/index.html | 8 ++++++-- blog/welcome/index.html | 8 ++++++-- docs/category/if-statements/index.html | 8 ++++++-- docs/category/querying/index.html | 8 ++++++-- .../Functions/Applying Functions/index.html | 8 ++++++-- .../Functions/Writing Functions/index.html | 8 ++++++-- .../Grouping/aggregation/count()/index.html | 8 ++++++-- .../Grouping/aggregation/max()/index.html | 8 ++++++-- .../Grouping/aggregation/mean()/index.html | 8 ++++++-- .../Grouping/aggregation/median()/index.html | 8 ++++++-- .../Grouping/aggregation/min()/index.html | 8 ++++++-- .../Grouping/aggregation/sum()/index.html | 8 ++++++-- docs/documentation/Grouping/groupby/index.html | 8 ++++++-- .../accessing-data/df.columns/index.html | 8 ++++++-- .../accessing-data/df.get()/index.html | 8 ++++++-- .../accessing-data/df.index/index.html | 8 ++++++-- .../accessing-data/df.shape/index.html | 8 ++++++-- .../accessing-data/df.take()/index.html | 8 ++++++-- docs/documentation/accessing-data/index.html | 8 ++++++-- .../accessing-data/ser.iloc[]/index.html | 8 ++++++-- .../accessing-data/ser.loc[]/index.html | 8 ++++++-- .../arrays-and-numpy/arr[]/index.html | 8 ++++++-- docs/documentation/arrays-and-numpy/index.html | 8 ++++++-- .../arrays-and-numpy/np.append()/index.html | 8 ++++++-- .../arrays-and-numpy/np.arange()/index.html | 8 ++++++-- .../np.count_nonzero()/index.html | 8 ++++++-- .../arrays-and-numpy/np.percentile()/index.html | 8 ++++++-- .../arrays-and-numpy/np.round()/index.html | 8 ++++++-- .../bpd.DataFrame()/index.html | 8 ++++++-- .../bpd.read_csv()/index.html | 8 ++++++-- .../building-organizing/df.assign()/index.html | 8 ++++++-- .../building-organizing/df.drop()/index.html | 8 ++++++-- .../building-organizing/df.merge()/index.html | 8 ++++++-- .../df.reset_index()/index.html | 8 ++++++-- .../df.set_index()/index.html | 8 ++++++-- .../df.sort_values()/index.html | 8 ++++++-- .../building-organizing/index.html | 16 ++++++++++------ .../data format conversion/index.html | 8 ++++++-- .../data format conversion/list()/index.html | 8 ++++++-- .../np.array()/index.html | 8 ++++++-- docs/documentation/for-loops/index.html | 8 ++++++-- .../if-statements/Logical Operators/index.html | 8 ++++++-- .../if-statements/if-elif-else/index.html | 8 ++++++-- .../in \342\201\204 not in/index.html" | 8 ++++++-- docs/documentation/intro/index.html | 14 +++++++++----- docs/documentation/plotting/Bar Plot/index.html | 8 ++++++-- .../documentation/plotting/Histogram/index.html | 8 ++++++-- .../documentation/plotting/Line Plot/index.html | 8 ++++++-- .../plotting/Scatter Plot/index.html | 8 ++++++-- docs/documentation/plotting/index.html | 8 ++++++-- docs/documentation/querying/df[]/index.html | 8 ++++++-- docs/documentation/series-methods/index.html | 8 ++++++-- .../series-methods/ser.count()/index.html | 8 ++++++-- .../series-methods/ser.max()/index.html | 8 ++++++-- .../series-methods/ser.mean()/index.html | 8 ++++++-- .../series-methods/ser.median()/index.html | 8 ++++++-- .../series-methods/ser.min()/index.html | 8 ++++++-- .../ser.str.capitalize()/index.html | 8 ++++++-- .../ser.str.contains()/index.html | 8 ++++++-- .../series-methods/ser.str.len()/index.html | 8 ++++++-- .../series-methods/ser.str.lower()/index.html | 8 ++++++-- .../series-methods/ser.str.replace()/index.html | 8 ++++++-- .../series-methods/ser.str.split()/index.html | 8 ++++++-- .../series-methods/ser.str.strip()/index.html | 8 ++++++-- .../series-methods/ser.str.title()/index.html | 8 ++++++-- .../series-methods/ser.str.upper()/index.html | 8 ++++++-- .../series-methods/ser.sum()/index.html | 8 ++++++-- .../series-methods/ser.unique()/index.html | 8 ++++++-- .../bootstrapping/index.html | 8 ++++++-- .../central_limit_theorem/index.html | 8 ++++++-- .../bootstrapping_vs_the_CLT/index.html | 8 ++++++-- .../hypothesis_vs_permutation/index.html | 8 ++++++-- .../hypothesis_test/index.html | 8 ++++++-- docs/statistical-inference/intro/index.html | 10 +++++++--- .../null_and_alt/index.html | 8 ++++++-- .../obs_and_test_stats/index.html | 8 ++++++-- docs/statistical-inference/p_value/index.html | 8 ++++++-- .../parameters-and-statistics/index.html | 8 ++++++-- .../permutation_test/index.html | 8 ++++++-- .../random sampling/df.sample()/index.html | 8 ++++++-- .../np.random.choice()/index.html | 8 ++++++-- .../np.random.multinomial()/index.html | 8 ++++++-- .../np.random.permutation()/index.html | 8 ++++++-- .../random sampling/sampling/index.html | 8 ++++++-- .../spread_of_a_distribution/index.html | 8 ++++++-- .../standard_normal_distribution/index.html | 8 ++++++-- .../standard_units/index.html | 8 ++++++-- docs/tags/bootstrapping/index.html | 8 ++++++-- docs/tags/chebyshevs-inequality/index.html | 8 ++++++-- docs/tags/confidence-intervals/index.html | 8 ++++++-- docs/tags/correlation/index.html | 8 ++++++-- docs/tags/for-loop/index.html | 8 ++++++-- docs/tags/functions/index.html | 8 ++++++-- docs/tags/histogram/index.html | 8 ++++++-- docs/tags/hypothesis-test/index.html | 8 ++++++-- docs/tags/index.html | 8 ++++++-- docs/tags/normal-distributions/index.html | 8 ++++++-- docs/tags/permutation-test/index.html | 8 ++++++-- docs/tags/querying/index.html | 8 ++++++-- docs/tags/regression/index.html | 8 ++++++-- docs/tags/standard-deviation/index.html | 8 ++++++-- docs/tags/standard-units/index.html | 8 ++++++-- docs/tags/the-central-limit-theorem/index.html | 8 ++++++-- .../the-standard-normal-distribution/index.html | 8 ++++++-- img/.DS_Store | Bin 0 -> 8196 bytes index.html | 8 ++++++-- search/index.html | 8 ++++++-- 246 files changed, 775 insertions(+), 311 deletions(-) create mode 100644 .DS_Store rename assets/files/{full_pets-517ccf7b024b3bc88dca09fa66ea6f10.csv => full_pets-bd4f41996253fb2dfaf6757c68a3446f.csv} (100%) rename assets/files/{pets-75b73fd7a514f0ed386c8767c7c854bf.csv => pets-60c4fcbf3eef32ca775cf4990a93182a.csv} (100%) delete mode 100644 assets/js/03f8d3d3.3c5a514c.js create mode 100644 assets/js/03f8d3d3.65063e2e.js rename assets/js/{17896441.ef0790a9.js => 17896441.9d8dda81.js} (76%) create mode 100644 assets/js/187e374f.00e1cc00.js delete mode 100644 assets/js/187e374f.6bd2e740.js delete mode 100644 assets/js/1f391b9e.50a4ba87.js create mode 100644 assets/js/1f391b9e.724c4e8c.js rename assets/js/{1f418535.21f320e1.js => 1f418535.861ded06.js} (74%) create mode 100644 assets/js/1fc0ff79.66617d79.js delete mode 100644 assets/js/1fc0ff79.fa736358.js delete mode 100644 assets/js/2141c98b.79c64c71.js create mode 100644 assets/js/2141c98b.8ceae88c.js delete mode 100644 assets/js/26533384.8b1fc360.js create mode 100644 assets/js/26533384.ba125169.js create mode 100644 assets/js/2667.1d2d8cb8.js create mode 100644 assets/js/2be9118b.1e62f3f0.js delete mode 100644 assets/js/2be9118b.9ba0b5ad.js delete mode 100644 assets/js/2efbf384.0dfce00f.js create mode 100644 assets/js/2efbf384.0f6f23fb.js rename assets/js/{3242.7073af4e.js => 3242.42f3e555.js} (99%) create mode 100644 assets/js/36d89dbe.abf69e17.js delete mode 100644 assets/js/36d89dbe.de5987ca.js create mode 100644 assets/js/37002ad4.05ddd35d.js delete mode 100644 assets/js/37002ad4.acdd4bc4.js delete mode 100644 assets/js/3f791b14.1dbf70e4.js create mode 100644 assets/js/3f791b14.fee676c1.js delete mode 100644 assets/js/46ccc97a.8eb8150e.js create mode 100644 assets/js/46ccc97a.c2d0e88e.js delete mode 100644 assets/js/499d47b2.d2522afc.js create mode 100644 assets/js/499d47b2.d3a1471f.js create mode 100644 assets/js/5d6a2894.ac62096c.js delete mode 100644 assets/js/5d6a2894.defd590f.js create mode 100644 assets/js/5ddb68ca.036894d0.js delete mode 100644 assets/js/5ddb68ca.b60b2c9d.js delete mode 100644 assets/js/60c4aef6.19e4e86c.js create mode 100644 assets/js/60c4aef6.df31d04c.js delete mode 100644 assets/js/61546123.aa0b9096.js create mode 100644 assets/js/61546123.cc7aeccc.js create mode 100644 assets/js/62efbc4a.00648062.js delete mode 100644 assets/js/62efbc4a.b6392b54.js create mode 100644 assets/js/655190df.23a73ffd.js delete mode 100644 assets/js/655190df.cff71572.js rename assets/js/{65beeb93.0cea168a.js => 65beeb93.1715e24a.js} (97%) create mode 100644 assets/js/6a26c916.af28a919.js delete mode 100644 assets/js/6a26c916.d7db71df.js create mode 100644 assets/js/6e05dac9.5de02c24.js delete mode 100644 assets/js/6e05dac9.794051db.js rename assets/js/{6e2ca103.25b793cd.js => 6e2ca103.1cb6c2aa.js} (50%) delete mode 100644 assets/js/724.b40f7e36.js delete mode 100644 assets/js/739bf370.64f0d5ca.js create mode 100644 assets/js/739bf370.9d003505.js rename assets/js/{7661071f.e81fafbc.js => 7661071f.8f82254d.js} (96%) delete mode 100644 assets/js/81322b72.65633f64.js create mode 100644 assets/js/81322b72.90d5758b.js delete mode 100644 assets/js/82ff9878.7e78a65b.js create mode 100644 assets/js/82ff9878.9143662a.js rename assets/js/{8c496670.dc29cff5.js => 8c496670.3ecad696.js} (68%) create mode 100644 assets/js/920988e2.1a73d040.js delete mode 100644 assets/js/920988e2.d63c6515.js create mode 100644 assets/js/9746c0ef.2880f7ec.js delete mode 100644 assets/js/9746c0ef.75ed6b19.js create mode 100644 assets/js/9a265863.941bfa1e.js delete mode 100644 assets/js/9a265863.c79182d8.js delete mode 100644 assets/js/9ac7dbcc.29890201.js create mode 100644 assets/js/9ac7dbcc.77c0c128.js create mode 100644 assets/js/9e1896f0.53464e90.js delete mode 100644 assets/js/9e1896f0.73dd9b87.js create mode 100644 assets/js/9f1843d8.235e28da.js delete mode 100644 assets/js/9f1843d8.8224833f.js rename assets/js/{a278cdf6.f2e85f73.js => a278cdf6.6d5ef8b3.js} (59%) create mode 100644 assets/js/a4805c9a.53481746.js delete mode 100644 assets/js/a4805c9a.bf5ef1fd.js create mode 100644 assets/js/acb40918.20b35a67.js delete mode 100644 assets/js/acb40918.33fe453e.js create mode 100644 assets/js/b0c30e46.494989bc.js delete mode 100644 assets/js/b0c30e46.b4ca6cce.js delete mode 100644 assets/js/b78139e1.4361acc2.js create mode 100644 assets/js/b78139e1.88fdbdc8.js delete mode 100644 assets/js/b7ff327f.cadf970c.js create mode 100644 assets/js/b7ff327f.d6f9457e.js delete mode 100644 assets/js/c94468d5.5dc63ddc.js create mode 100644 assets/js/c94468d5.c6edfbc0.js rename assets/js/{ccc49370.6bd4d0ac.js => ccc49370.ede845d6.js} (59%) create mode 100644 assets/js/cdae2dcc.872a7974.js delete mode 100644 assets/js/cdae2dcc.ba468bd4.js rename assets/js/{d01a85b0.71d737ed.js => d01a85b0.297915d4.js} (53%) create mode 100644 assets/js/d3196d0d.987cf125.js delete mode 100644 assets/js/d3196d0d.c8273d0e.js rename assets/js/{d4f68316.7ff7b207.js => d4f68316.3b3c7956.js} (53%) create mode 100644 assets/js/d9ae1e76.9da90fe2.js delete mode 100644 assets/js/d9ae1e76.e7ed22dc.js rename assets/js/{d9f32620.932c5f37.js => d9f32620.7d0f45aa.js} (96%) create mode 100644 assets/js/dcbe5aac.70a12792.js delete mode 100644 assets/js/dcbe5aac.ce3fa403.js rename assets/js/{dd3b6db1.befa0697.js => dd3b6db1.3bb3e7b5.js} (97%) delete mode 100644 assets/js/dfefbedb.df2ccdca.js create mode 100644 assets/js/dfefbedb.f0f27122.js delete mode 100644 assets/js/eaaf288f.4ffa00eb.js create mode 100644 assets/js/eaaf288f.80006e89.js delete mode 100644 assets/js/f03ae67e.29f38469.js create mode 100644 assets/js/f03ae67e.60f98101.js delete mode 100644 assets/js/f095f4cd.32321c37.js create mode 100644 assets/js/f095f4cd.460bde7f.js create mode 100644 assets/js/f0994678.04e51180.js delete mode 100644 assets/js/f0994678.6ec7c52a.js create mode 100644 assets/js/f0fd5c00.00af519e.js delete mode 100644 assets/js/f0fd5c00.9ad17ee0.js delete mode 100644 assets/js/f2b0891e.80e35342.js create mode 100644 assets/js/f2b0891e.d7eac5db.js delete mode 100644 assets/js/f39390d7.533b54c4.js create mode 100644 assets/js/f39390d7.bf79684f.js create mode 100644 assets/js/f3b65525.792c19b9.js delete mode 100644 assets/js/f3b65525.9d6a97b5.js rename assets/js/{f4c1c84a.6d6b448a.js => f4c1c84a.0250807e.js} (54%) create mode 100644 assets/js/f8d80a2f.afca9aa7.js delete mode 100644 assets/js/f8d80a2f.d56b6f04.js rename assets/js/{f9684ee2.ef0816da.js => f9684ee2.94223911.js} (54%) delete mode 100644 assets/js/fe41946a.15b16019.js create mode 100644 assets/js/fe41946a.a8daece4.js delete mode 100644 assets/js/ffbcff43.08e5113e.js create mode 100644 assets/js/ffbcff43.e95668eb.js create mode 100644 assets/js/main.4026bce0.js rename assets/js/{main.892874f6.js.LICENSE.txt => main.4026bce0.js.LICENSE.txt} (100%) delete mode 100644 assets/js/main.892874f6.js create mode 100644 assets/js/runtime~main.813eac89.js delete mode 100644 assets/js/runtime~main.97453687.js create mode 100644 img/.DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..8425c9c1362d37e22c9c9e003259e68e2f9f16c9 GIT binary patch literal 6148 zcmeH~%Wl&^6o$_02FL&6;sz!B@O{uk-P)J z!>~f)Nq84l@Xw_%NeCOHfY2Oi=AX+sw&&AaJVe9>lcY=3A|ek-YV$I(UzqHdX~{NB z%Qlp$XQXsWZz!kyIA8L14UT{#@UIb&YuBeeDoD^vvevJ79_J!PuiP5$Ankoqh7z_4 zN+_a|qT}55V_#SK#nbV*dEV#vJkQ2ur}KqvG@6^2w!AHG+j|TjULO| z10nMGq8!B!vvfLaUA-%cGRlf{qyn-eh0BviS&@k8Kun5ctYSmm;rX6FZ0%N6cfZ%> z-F|=8=GCoUx6OO|H)k{7+qr(@_Wj{$epZP0YGlN)lPSAm^g=$M@MGMs!cmcn;skBd zzd;$D(aAgw`iLHzn(?w&d|Eq;ovP}z`N8i%yv1k3R)TnkPBWAR44c^g<+MoY^*jo8 z4KX$f%hST~SEfe4e~78kJNUz?VU1{kivN=e78(`}jTY$0sb$kabsc7Ax+nJlXO4g) z;0V|R{sqy|Q7t!nE)rmg_cCYqI@EPohe3^y7Wt+k>D#&jrDhca`;U^*P_-1r4X zYppt*n7Mo~^JZplC``Q_&*#dWSfJJAj({UDPoSZzEqVUmTYdkZ4{|j}z!CVb2(ac+ zcr?I}%-Om$IC<7`q-RLdq+hL7g&;G>u`0-;co#_-`nW7W1EaN8w7}etfWqK1M_{c4 Fz5}wP{qz6; literal 0 HcmV?d00001 diff --git a/404.html b/404.html index cd5119e1..bc0b3e1e 100644 --- a/404.html +++ b/404.html @@ -6,13 +6,17 @@ Page Not Found | bpd + + + + - - + +

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

diff --git a/assets/files/full_pets-517ccf7b024b3bc88dca09fa66ea6f10.csv b/assets/files/full_pets-bd4f41996253fb2dfaf6757c68a3446f.csv similarity index 100% rename from assets/files/full_pets-517ccf7b024b3bc88dca09fa66ea6f10.csv rename to assets/files/full_pets-bd4f41996253fb2dfaf6757c68a3446f.csv diff --git a/assets/files/pets-75b73fd7a514f0ed386c8767c7c854bf.csv b/assets/files/pets-60c4fcbf3eef32ca775cf4990a93182a.csv similarity index 100% rename from assets/files/pets-75b73fd7a514f0ed386c8767c7c854bf.csv rename to assets/files/pets-60c4fcbf3eef32ca775cf4990a93182a.csv diff --git a/assets/js/03f8d3d3.3c5a514c.js b/assets/js/03f8d3d3.3c5a514c.js deleted file mode 100644 index 94bb27d5..00000000 --- a/assets/js/03f8d3d3.3c5a514c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7326],{6890:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>a,metadata:()=>c,toc:()=>l});var t=n(4848),r=n(8453),o=(n(8597),n(8205));const a={sidebar_position:1},i=void 0,c={id:"documentation/series-methods/ser.count()",title:"ser.count()",description:"ser.count()",source:"@site/docs/documentation/series-methods/ser.count().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.count()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.count()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.count().md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"Series Methods",permalink:"/bpd-reference/docs/documentation/series-methods/"},next:{title:"ser.max()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.max()"}},d={},l=[];function m(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.count()"}),"\n",(0,t.jsx)("div",{className:"base",children:(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Returns number of non-NA/null observations in the Series. Essentially the length of a Series, assuming that every row has an observation."})})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,t.jsx)(o.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser.count()\n"})}),"\n",(0,t.jsx)(s.p,{children:"8"})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],o="",a=[];if(s){const e=JSON.parse(s);n=e.columns||[],r=e.data||[],o=e.indexName||"Index",a=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:o}),n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:a[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],o="",a="";if(s)try{const e=JSON.parse(s);o=e.name||"",a=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const i=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:i.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",o,", dtype: ",a]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>i});var t=n(6540);const r={},o=t.createContext(r);function a(e){const s=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),t.createElement(o.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/03f8d3d3.65063e2e.js b/assets/js/03f8d3d3.65063e2e.js new file mode 100644 index 00000000..36c674ad --- /dev/null +++ b/assets/js/03f8d3d3.65063e2e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7326],{6890:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>a,metadata:()=>c,toc:()=>l});var t=n(4848),r=n(8453),o=(n(8597),n(8205));const a={sidebar_position:1},i=void 0,c={id:"documentation/series-methods/ser.count()",title:"ser.count()",description:"ser.count()",source:"@site/docs/documentation/series-methods/ser.count().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.count()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.count()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.count().md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"Series Methods",permalink:"/bpd-reference/docs/documentation/series-methods/"},next:{title:"ser.max()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.max()"}},d={},l=[];function m(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.count()"}),"\n",(0,t.jsx)("div",{className:"base",children:(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Returns number of non-NA/null observations in the Series. Essentially the length of a Series, assuming that every row has an observation."})})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,t.jsx)(o.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser.count()\n"})}),"\n",(0,t.jsx)(s.p,{children:"8"})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],o="",a=[];if(s){const e=JSON.parse(s);n=e.columns||[],r=e.data||[],o=e.indexName||"Index",a=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:o}),n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:a[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],o="",a="";if(s)try{const e=JSON.parse(s);o=e.name||"",a=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const i=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:i.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",o,", dtype: ",a]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>i});var t=n(6540);const r={},o=t.createContext(r);function a(e){const s=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),t.createElement(o.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/17896441.ef0790a9.js b/assets/js/17896441.9d8dda81.js similarity index 76% rename from assets/js/17896441.ef0790a9.js rename to assets/js/17896441.9d8dda81.js index 8db42185..6fa81f21 100644 --- a/assets/js/17896441.ef0790a9.js +++ b/assets/js/17896441.9d8dda81.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8401],{1243:(e,n,t)=>{t.d(n,{A:()=>g});t(6540);var s=t(4164),a=t(7559),i=t(1754),l=t(9169),o=t(8774),r=t(1312),c=t(6025),d=t(4848);function u(e){return(0,d.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,d.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"})})}const m={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function h(){const e=(0,c.A)("/");return(0,d.jsx)("li",{className:"breadcrumbs__item",children:(0,d.jsx)(o.A,{"aria-label":(0,r.T)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e,children:(0,d.jsx)(u,{className:m.breadcrumbHomeIcon})})})}const v={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function b(e){let{children:n,href:t,isLast:s}=e;const a="breadcrumbs__link";return s?(0,d.jsx)("span",{className:a,itemProp:"name",children:n}):t?(0,d.jsx)(o.A,{className:a,href:t,itemProp:"item",children:(0,d.jsx)("span",{itemProp:"name",children:n})}):(0,d.jsx)("span",{className:a,children:n})}function x(e){let{children:n,active:t,index:a,addMicrodata:i}=e;return(0,d.jsxs)("li",{...i&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,s.A)("breadcrumbs__item",{"breadcrumbs__item--active":t}),children:[n,(0,d.jsx)("meta",{itemProp:"position",content:String(a+1)})]})}function g(){const e=(0,i.OF)(),n=(0,l.Dt)();return e?(0,d.jsx)("nav",{className:(0,s.A)(a.G.docs.docBreadcrumbs,v.breadcrumbsContainer),"aria-label":(0,r.T)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,d.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[n&&(0,d.jsx)(h,{}),e.map(((n,t)=>{const s=t===e.length-1,a="category"===n.type&&n.linkUnlisted?void 0:n.href;return(0,d.jsx)(x,{active:s,index:t,addMicrodata:!!a,children:(0,d.jsx)(b,{href:a,isLast:s,children:n.label})},t)}))]})}):null}},6011:(e,n,t)=>{t.r(n),t.d(n,{default:()=>S});var s=t(6540),a=t(5500),i=t(9532),l=t(4848);const o=s.createContext(null);function r(e){let{children:n,content:t}=e;const a=function(e){return(0,s.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(t);return(0,l.jsx)(o.Provider,{value:a,children:n})}function c(){const e=(0,s.useContext)(o);if(null===e)throw new i.dV("DocProvider");return e}function d(){const{metadata:e,frontMatter:n,assets:t}=c();return(0,l.jsx)(a.be,{title:e.title,description:e.description,keywords:n.keywords,image:t.image??n.image})}var u=t(4164),m=t(4581),h=t(7719);function v(){const{metadata:e}=c();return(0,l.jsx)(h.A,{previous:e.previous,next:e.next})}var b=t(1878),x=t(4267),g=t(7559),p=t(2053),f=t(4336);function j(){const{metadata:e}=c(),{editUrl:n,lastUpdatedAt:t,lastUpdatedBy:s,tags:a}=e,i=a.length>0,o=!!(n||t||s);return i||o?(0,l.jsxs)("footer",{className:(0,u.A)(g.G.docs.docFooter,"docusaurus-mt-lg"),children:[i&&(0,l.jsx)("div",{className:(0,u.A)("row margin-top--sm",g.G.docs.docFooterTagsRow),children:(0,l.jsx)("div",{className:"col",children:(0,l.jsx)(p.A,{tags:a})})}),o&&(0,l.jsx)(f.A,{className:(0,u.A)("margin-top--sm",g.G.docs.docFooterEditMetaRow),editUrl:n,lastUpdatedAt:t,lastUpdatedBy:s})]}):null}var A=t(1422),C=t(5195),L=t(1312);const N={tocCollapsibleButton:"tocCollapsibleButton_TO0P",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_MG3E"};function _(e){let{collapsed:n,...t}=e;return(0,l.jsx)("button",{type:"button",...t,className:(0,u.A)("clean-btn",N.tocCollapsibleButton,!n&&N.tocCollapsibleButtonExpanded,t.className),children:(0,l.jsx)(L.A,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const k={tocCollapsible:"tocCollapsible_ETCw",tocCollapsibleContent:"tocCollapsibleContent_vkbj",tocCollapsibleExpanded:"tocCollapsibleExpanded_sAul"};function T(e){let{toc:n,className:t,minHeadingLevel:s,maxHeadingLevel:a}=e;const{collapsed:i,toggleCollapsed:o}=(0,A.u)({initialState:!0});return(0,l.jsxs)("div",{className:(0,u.A)(k.tocCollapsible,!i&&k.tocCollapsibleExpanded,t),children:[(0,l.jsx)(_,{collapsed:i,onClick:o}),(0,l.jsx)(A.N,{lazy:!0,className:k.tocCollapsibleContent,collapsed:i,children:(0,l.jsx)(C.A,{toc:n,minHeadingLevel:s,maxHeadingLevel:a})})]})}const H={tocMobile:"tocMobile_ITEo"};function M(){const{toc:e,frontMatter:n}=c();return(0,l.jsx)(T,{toc:e,minHeadingLevel:n.toc_min_heading_level,maxHeadingLevel:n.toc_max_heading_level,className:(0,u.A)(g.G.docs.docTocMobile,H.tocMobile)})}var I=t(7763);function w(){const{toc:e,frontMatter:n}=c();return(0,l.jsx)(I.A,{toc:e,minHeadingLevel:n.toc_min_heading_level,maxHeadingLevel:n.toc_max_heading_level,className:g.G.docs.docTocDesktop})}var y=t(1107),E=t(2639);function B(e){let{children:n}=e;const t=function(){const{metadata:e,frontMatter:n,contentTitle:t}=c();return n.hide_title||void 0!==t?null:e.title}();return(0,l.jsxs)("div",{className:(0,u.A)(g.G.docs.docMarkdown,"markdown"),children:[t&&(0,l.jsx)("header",{children:(0,l.jsx)(y.A,{as:"h1",children:t})}),(0,l.jsx)(E.A,{children:n})]})}var O=t(1243),V=t(996);const G={docItemContainer:"docItemContainer_Djhp",docItemCol:"docItemCol_VOVn"};function R(e){let{children:n}=e;const t=function(){const{frontMatter:e,toc:n}=c(),t=(0,m.l)(),s=e.hide_table_of_contents,a=!s&&n.length>0;return{hidden:s,mobile:a?(0,l.jsx)(M,{}):void 0,desktop:!a||"desktop"!==t&&"ssr"!==t?void 0:(0,l.jsx)(w,{})}}(),{metadata:{unlisted:s}}=c();return(0,l.jsxs)("div",{className:"row",children:[(0,l.jsxs)("div",{className:(0,u.A)("col",!t.hidden&&G.docItemCol),children:[s&&(0,l.jsx)(V.A,{}),(0,l.jsx)(b.A,{}),(0,l.jsxs)("div",{className:G.docItemContainer,children:[(0,l.jsxs)("article",{children:[(0,l.jsx)(O.A,{}),(0,l.jsx)(x.A,{}),t.mobile,(0,l.jsx)(B,{children:n}),(0,l.jsx)(j,{})]}),(0,l.jsx)(v,{})]})]}),t.desktop&&(0,l.jsx)("div",{className:"col col--3",children:t.desktop})]})}function S(e){const n=`docs-doc-id-${e.content.metadata.id}`,t=e.content;return(0,l.jsx)(r,{content:e.content,children:(0,l.jsxs)(a.e3,{className:n,children:[(0,l.jsx)(d,{}),(0,l.jsx)(R,{children:(0,l.jsx)(t,{})})]})})}},7719:(e,n,t)=>{t.d(n,{A:()=>l});t(6540);var s=t(1312),a=t(9022),i=t(4848);function l(e){const{previous:n,next:t}=e;return(0,i.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,s.T)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[n&&(0,i.jsx)(a.A,{...n,subLabel:(0,i.jsx)(s.A,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),t&&(0,i.jsx)(a.A,{...t,subLabel:(0,i.jsx)(s.A,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}},4267:(e,n,t)=>{t.d(n,{A:()=>r});t(6540);var s=t(4164),a=t(1312),i=t(7559),l=t(2252),o=t(4848);function r(e){let{className:n}=e;const t=(0,l.r)();return t.badge?(0,o.jsx)("span",{className:(0,s.A)(n,i.G.docs.docVersionBadge,"badge badge--secondary"),children:(0,o.jsx)(a.A,{id:"theme.docs.versionBadge.label",values:{versionLabel:t.label},children:"Version: {versionLabel}"})}):null}},1878:(e,n,t)=>{t.d(n,{A:()=>x});t(6540);var s=t(4164),a=t(4586),i=t(8774),l=t(1312),o=t(4070),r=t(7559),c=t(5597),d=t(2252),u=t(4848);const m={unreleased:function(e){let{siteTitle:n,versionMetadata:t}=e;return(0,u.jsx)(l.A,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:n,versionLabel:(0,u.jsx)("b",{children:t.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(e){let{siteTitle:n,versionMetadata:t}=e;return(0,u.jsx)(l.A,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:n,versionLabel:(0,u.jsx)("b",{children:t.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function h(e){const n=m[e.versionMetadata.banner];return(0,u.jsx)(n,{...e})}function v(e){let{versionLabel:n,to:t,onClick:s}=e;return(0,u.jsx)(l.A,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:n,latestVersionLink:(0,u.jsx)("b",{children:(0,u.jsx)(i.A,{to:t,onClick:s,children:(0,u.jsx)(l.A,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label",children:"latest version"})})})},children:"For up-to-date documentation, see the {latestVersionLink} ({versionLabel})."})}function b(e){let{className:n,versionMetadata:t}=e;const{siteConfig:{title:i}}=(0,a.A)(),{pluginId:l}=(0,o.vT)({failfast:!0}),{savePreferredVersionName:d}=(0,c.g1)(l),{latestDocSuggestion:m,latestVersionSuggestion:b}=(0,o.HW)(l),x=m??(g=b).docs.find((e=>e.id===g.mainDocId));var g;return(0,u.jsxs)("div",{className:(0,s.A)(n,r.G.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,u.jsx)("div",{children:(0,u.jsx)(h,{siteTitle:i,versionMetadata:t})}),(0,u.jsx)("div",{className:"margin-top--md",children:(0,u.jsx)(v,{versionLabel:b.label,to:x.path,onClick:()=>d(b.name)})})]})}function x(e){let{className:n}=e;const t=(0,d.r)();return t.banner?(0,u.jsx)(b,{className:n,versionMetadata:t}):null}},9022:(e,n,t)=>{t.d(n,{A:()=>l});t(6540);var s=t(4164),a=t(8774),i=t(4848);function l(e){const{permalink:n,title:t,subLabel:l,isNext:o}=e;return(0,i.jsxs)(a.A,{className:(0,s.A)("pagination-nav__link",o?"pagination-nav__link--next":"pagination-nav__link--prev"),to:n,children:[l&&(0,i.jsx)("div",{className:"pagination-nav__sublabel",children:l}),(0,i.jsx)("div",{className:"pagination-nav__label",children:t})]})}},5195:(e,n,t)=>{t.d(n,{A:()=>b});var s=t(6540),a=t(6342);function i(e){const n=e.map((e=>({...e,parentIndex:-1,children:[]}))),t=Array(7).fill(-1);n.forEach(((e,n)=>{const s=t.slice(2,e.level);e.parentIndex=Math.max(...s),t[e.level]=n}));const s=[];return n.forEach((e=>{const{parentIndex:t,...a}=e;t>=0?n[t].children.push(a):s.push(a)})),s}function l(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:s}=e;return n.flatMap((e=>{const n=l({toc:e.children,minHeadingLevel:t,maxHeadingLevel:s});return function(e){return e.level>=t&&e.level<=s}(e)?[{...e,children:n}]:n}))}function o(e){const n=e.getBoundingClientRect();return n.top===n.bottom?o(e.parentNode):n}function r(e,n){let{anchorTopOffset:t}=n;const s=e.find((e=>o(e).top>=t));if(s){return function(e){return e.top>0&&e.bottom{e.current=n?0:document.querySelector(".navbar").clientHeight}),[n]),e}function d(e){const n=(0,s.useRef)(void 0),t=c();(0,s.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:s,linkActiveClassName:a,minHeadingLevel:i,maxHeadingLevel:l}=e;function o(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(s),o=function(e){let{minHeadingLevel:n,maxHeadingLevel:t}=e;const s=[];for(let a=n;a<=t;a+=1)s.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(s.join()))}({minHeadingLevel:i,maxHeadingLevel:l}),c=r(o,{anchorTopOffset:t.current}),d=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,t){t?(n.current&&n.current!==e&&n.current.classList.remove(a),e.classList.add(a),n.current=e):e.classList.remove(a)}(e,e===d)}))}return document.addEventListener("scroll",o),document.addEventListener("resize",o),o(),()=>{document.removeEventListener("scroll",o),document.removeEventListener("resize",o)}}),[e,t])}var u=t(8774),m=t(4848);function h(e){let{toc:n,className:t,linkClassName:s,isChild:a}=e;return n.length?(0,m.jsx)("ul",{className:a?void 0:t,children:n.map((e=>(0,m.jsxs)("li",{children:[(0,m.jsx)(u.A,{to:`#${e.id}`,className:s??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,m.jsx)(h,{isChild:!0,toc:e.children,className:t,linkClassName:s})]},e.id)))}):null}const v=s.memo(h);function b(e){let{toc:n,className:t="table-of-contents table-of-contents__left-border",linkClassName:o="table-of-contents__link",linkActiveClassName:r,minHeadingLevel:c,maxHeadingLevel:u,...h}=e;const b=(0,a.p)(),x=c??b.tableOfContents.minHeadingLevel,g=u??b.tableOfContents.maxHeadingLevel,p=function(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:a}=e;return(0,s.useMemo)((()=>l({toc:i(n),minHeadingLevel:t,maxHeadingLevel:a})),[n,t,a])}({toc:n,minHeadingLevel:x,maxHeadingLevel:g});return d((0,s.useMemo)((()=>{if(o&&r)return{linkClassName:o,linkActiveClassName:r,minHeadingLevel:x,maxHeadingLevel:g}}),[o,r,x,g])),(0,m.jsx)(v,{toc:p,className:t,linkClassName:o,...h})}},7763:(e,n,t)=>{t.d(n,{A:()=>c});t(6540);var s=t(4164),a=t(5195);const i={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var l=t(4848);const o="table-of-contents__link toc-highlight",r="table-of-contents__link--active";function c(e){let{className:n,...t}=e;return(0,l.jsx)("div",{className:(0,s.A)(i.tableOfContents,"thin-scrollbar",n),children:(0,l.jsx)(a.A,{...t,linkClassName:o,linkActiveClassName:r})})}},6133:(e,n,t)=>{t.d(n,{A:()=>o});t(6540);var s=t(4164),a=t(8774);const i={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var l=t(4848);function o(e){let{permalink:n,label:t,count:o}=e;return(0,l.jsxs)(a.A,{href:n,className:(0,s.A)(i.tag,o?i.tagWithCount:i.tagRegular),children:[t,o&&(0,l.jsx)("span",{children:o})]})}},2053:(e,n,t)=>{t.d(n,{A:()=>r});t(6540);var s=t(4164),a=t(1312),i=t(6133);const l={tags:"tags_jXut",tag:"tag_QGVx"};var o=t(4848);function r(e){let{tags:n}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("b",{children:(0,o.jsx)(a.A,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,o.jsx)("ul",{className:(0,s.A)(l.tags,"padding--none","margin-left--sm"),children:n.map((e=>{let{label:n,permalink:t}=e;return(0,o.jsx)("li",{className:l.tag,children:(0,o.jsx)(i.A,{label:n,permalink:t})},t)}))})]})}},996:(e,n,t)=>{t.d(n,{A:()=>h});t(6540);var s=t(4164),a=t(1312),i=t(5260),l=t(4848);function o(){return(0,l.jsx)(a.A,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function r(){return(0,l.jsx)(a.A,{id:"theme.unlistedContent.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function c(){return(0,l.jsx)(i.A,{children:(0,l.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=t(7559),u=t(7293);function m(e){let{className:n}=e;return(0,l.jsx)(u.A,{type:"caution",title:(0,l.jsx)(o,{}),className:(0,s.A)(n,d.G.common.unlistedBanner),children:(0,l.jsx)(r,{})})}function h(e){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c,{}),(0,l.jsx)(m,{...e})]})}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8401],{1243:(e,n,t)=>{t.d(n,{A:()=>g});t(6540);var s=t(4164),a=t(7559),i=t(1754),l=t(9169),o=t(8774),r=t(1312),c=t(6025),d=t(4848);function u(e){return(0,d.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,d.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"})})}const m={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function h(){const e=(0,c.A)("/");return(0,d.jsx)("li",{className:"breadcrumbs__item",children:(0,d.jsx)(o.A,{"aria-label":(0,r.T)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e,children:(0,d.jsx)(u,{className:m.breadcrumbHomeIcon})})})}const v={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function b(e){let{children:n,href:t,isLast:s}=e;const a="breadcrumbs__link";return s?(0,d.jsx)("span",{className:a,itemProp:"name",children:n}):t?(0,d.jsx)(o.A,{className:a,href:t,itemProp:"item",children:(0,d.jsx)("span",{itemProp:"name",children:n})}):(0,d.jsx)("span",{className:a,children:n})}function x(e){let{children:n,active:t,index:a,addMicrodata:i}=e;return(0,d.jsxs)("li",{...i&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,s.A)("breadcrumbs__item",{"breadcrumbs__item--active":t}),children:[n,(0,d.jsx)("meta",{itemProp:"position",content:String(a+1)})]})}function g(){const e=(0,i.OF)(),n=(0,l.Dt)();return e?(0,d.jsx)("nav",{className:(0,s.A)(a.G.docs.docBreadcrumbs,v.breadcrumbsContainer),"aria-label":(0,r.T)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,d.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[n&&(0,d.jsx)(h,{}),e.map(((n,t)=>{const s=t===e.length-1,a="category"===n.type&&n.linkUnlisted?void 0:n.href;return(0,d.jsx)(x,{active:s,index:t,addMicrodata:!!a,children:(0,d.jsx)(b,{href:a,isLast:s,children:n.label})},t)}))]})}):null}},6011:(e,n,t)=>{t.r(n),t.d(n,{default:()=>S});var s=t(6540),a=t(5500),i=t(9532),l=t(4848);const o=s.createContext(null);function r(e){let{children:n,content:t}=e;const a=function(e){return(0,s.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(t);return(0,l.jsx)(o.Provider,{value:a,children:n})}function c(){const e=(0,s.useContext)(o);if(null===e)throw new i.dV("DocProvider");return e}function d(){const{metadata:e,frontMatter:n,assets:t}=c();return(0,l.jsx)(a.be,{title:e.title,description:e.description,keywords:n.keywords,image:t.image??n.image})}var u=t(4164),m=t(4581),h=t(7719);function v(){const{metadata:e}=c();return(0,l.jsx)(h.A,{previous:e.previous,next:e.next})}var b=t(1878),x=t(4267),g=t(7559),p=t(2053),f=t(4336);function j(){const{metadata:e}=c(),{editUrl:n,lastUpdatedAt:t,lastUpdatedBy:s,tags:a}=e,i=a.length>0,o=!!(n||t||s);return i||o?(0,l.jsxs)("footer",{className:(0,u.A)(g.G.docs.docFooter,"docusaurus-mt-lg"),children:[i&&(0,l.jsx)("div",{className:(0,u.A)("row margin-top--sm",g.G.docs.docFooterTagsRow),children:(0,l.jsx)("div",{className:"col",children:(0,l.jsx)(p.A,{tags:a})})}),o&&(0,l.jsx)(f.A,{className:(0,u.A)("margin-top--sm",g.G.docs.docFooterEditMetaRow),editUrl:n,lastUpdatedAt:t,lastUpdatedBy:s})]}):null}var A=t(1422),C=t(5195),L=t(1312);const N={tocCollapsibleButton:"tocCollapsibleButton_TO0P",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_MG3E"};function _(e){let{collapsed:n,...t}=e;return(0,l.jsx)("button",{type:"button",...t,className:(0,u.A)("clean-btn",N.tocCollapsibleButton,!n&&N.tocCollapsibleButtonExpanded,t.className),children:(0,l.jsx)(L.A,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const k={tocCollapsible:"tocCollapsible_ETCw",tocCollapsibleContent:"tocCollapsibleContent_vkbj",tocCollapsibleExpanded:"tocCollapsibleExpanded_sAul"};function T(e){let{toc:n,className:t,minHeadingLevel:s,maxHeadingLevel:a}=e;const{collapsed:i,toggleCollapsed:o}=(0,A.u)({initialState:!0});return(0,l.jsxs)("div",{className:(0,u.A)(k.tocCollapsible,!i&&k.tocCollapsibleExpanded,t),children:[(0,l.jsx)(_,{collapsed:i,onClick:o}),(0,l.jsx)(A.N,{lazy:!0,className:k.tocCollapsibleContent,collapsed:i,children:(0,l.jsx)(C.A,{toc:n,minHeadingLevel:s,maxHeadingLevel:a})})]})}const H={tocMobile:"tocMobile_ITEo"};function M(){const{toc:e,frontMatter:n}=c();return(0,l.jsx)(T,{toc:e,minHeadingLevel:n.toc_min_heading_level,maxHeadingLevel:n.toc_max_heading_level,className:(0,u.A)(g.G.docs.docTocMobile,H.tocMobile)})}var I=t(7763);function w(){const{toc:e,frontMatter:n}=c();return(0,l.jsx)(I.A,{toc:e,minHeadingLevel:n.toc_min_heading_level,maxHeadingLevel:n.toc_max_heading_level,className:g.G.docs.docTocDesktop})}var y=t(1107),E=t(3808);function B(e){let{children:n}=e;const t=function(){const{metadata:e,frontMatter:n,contentTitle:t}=c();return n.hide_title||void 0!==t?null:e.title}();return(0,l.jsxs)("div",{className:(0,u.A)(g.G.docs.docMarkdown,"markdown"),children:[t&&(0,l.jsx)("header",{children:(0,l.jsx)(y.A,{as:"h1",children:t})}),(0,l.jsx)(E.A,{children:n})]})}var O=t(1243),V=t(996);const G={docItemContainer:"docItemContainer_Djhp",docItemCol:"docItemCol_VOVn"};function R(e){let{children:n}=e;const t=function(){const{frontMatter:e,toc:n}=c(),t=(0,m.l)(),s=e.hide_table_of_contents,a=!s&&n.length>0;return{hidden:s,mobile:a?(0,l.jsx)(M,{}):void 0,desktop:!a||"desktop"!==t&&"ssr"!==t?void 0:(0,l.jsx)(w,{})}}(),{metadata:{unlisted:s}}=c();return(0,l.jsxs)("div",{className:"row",children:[(0,l.jsxs)("div",{className:(0,u.A)("col",!t.hidden&&G.docItemCol),children:[s&&(0,l.jsx)(V.A,{}),(0,l.jsx)(b.A,{}),(0,l.jsxs)("div",{className:G.docItemContainer,children:[(0,l.jsxs)("article",{children:[(0,l.jsx)(O.A,{}),(0,l.jsx)(x.A,{}),t.mobile,(0,l.jsx)(B,{children:n}),(0,l.jsx)(j,{})]}),(0,l.jsx)(v,{})]})]}),t.desktop&&(0,l.jsx)("div",{className:"col col--3",children:t.desktop})]})}function S(e){const n=`docs-doc-id-${e.content.metadata.id}`,t=e.content;return(0,l.jsx)(r,{content:e.content,children:(0,l.jsxs)(a.e3,{className:n,children:[(0,l.jsx)(d,{}),(0,l.jsx)(R,{children:(0,l.jsx)(t,{})})]})})}},7719:(e,n,t)=>{t.d(n,{A:()=>l});t(6540);var s=t(1312),a=t(9022),i=t(4848);function l(e){const{previous:n,next:t}=e;return(0,i.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,s.T)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[n&&(0,i.jsx)(a.A,{...n,subLabel:(0,i.jsx)(s.A,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),t&&(0,i.jsx)(a.A,{...t,subLabel:(0,i.jsx)(s.A,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}},4267:(e,n,t)=>{t.d(n,{A:()=>r});t(6540);var s=t(4164),a=t(1312),i=t(7559),l=t(2252),o=t(4848);function r(e){let{className:n}=e;const t=(0,l.r)();return t.badge?(0,o.jsx)("span",{className:(0,s.A)(n,i.G.docs.docVersionBadge,"badge badge--secondary"),children:(0,o.jsx)(a.A,{id:"theme.docs.versionBadge.label",values:{versionLabel:t.label},children:"Version: {versionLabel}"})}):null}},1878:(e,n,t)=>{t.d(n,{A:()=>x});t(6540);var s=t(4164),a=t(4586),i=t(8774),l=t(1312),o=t(4070),r=t(7559),c=t(5597),d=t(2252),u=t(4848);const m={unreleased:function(e){let{siteTitle:n,versionMetadata:t}=e;return(0,u.jsx)(l.A,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:n,versionLabel:(0,u.jsx)("b",{children:t.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(e){let{siteTitle:n,versionMetadata:t}=e;return(0,u.jsx)(l.A,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:n,versionLabel:(0,u.jsx)("b",{children:t.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function h(e){const n=m[e.versionMetadata.banner];return(0,u.jsx)(n,{...e})}function v(e){let{versionLabel:n,to:t,onClick:s}=e;return(0,u.jsx)(l.A,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:n,latestVersionLink:(0,u.jsx)("b",{children:(0,u.jsx)(i.A,{to:t,onClick:s,children:(0,u.jsx)(l.A,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label",children:"latest version"})})})},children:"For up-to-date documentation, see the {latestVersionLink} ({versionLabel})."})}function b(e){let{className:n,versionMetadata:t}=e;const{siteConfig:{title:i}}=(0,a.A)(),{pluginId:l}=(0,o.vT)({failfast:!0}),{savePreferredVersionName:d}=(0,c.g1)(l),{latestDocSuggestion:m,latestVersionSuggestion:b}=(0,o.HW)(l),x=m??(g=b).docs.find((e=>e.id===g.mainDocId));var g;return(0,u.jsxs)("div",{className:(0,s.A)(n,r.G.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,u.jsx)("div",{children:(0,u.jsx)(h,{siteTitle:i,versionMetadata:t})}),(0,u.jsx)("div",{className:"margin-top--md",children:(0,u.jsx)(v,{versionLabel:b.label,to:x.path,onClick:()=>d(b.name)})})]})}function x(e){let{className:n}=e;const t=(0,d.r)();return t.banner?(0,u.jsx)(b,{className:n,versionMetadata:t}):null}},9022:(e,n,t)=>{t.d(n,{A:()=>l});t(6540);var s=t(4164),a=t(8774),i=t(4848);function l(e){const{permalink:n,title:t,subLabel:l,isNext:o}=e;return(0,i.jsxs)(a.A,{className:(0,s.A)("pagination-nav__link",o?"pagination-nav__link--next":"pagination-nav__link--prev"),to:n,children:[l&&(0,i.jsx)("div",{className:"pagination-nav__sublabel",children:l}),(0,i.jsx)("div",{className:"pagination-nav__label",children:t})]})}},7763:(e,n,t)=>{t.d(n,{A:()=>c});t(6540);var s=t(4164),a=t(5195);const i={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var l=t(4848);const o="table-of-contents__link toc-highlight",r="table-of-contents__link--active";function c(e){let{className:n,...t}=e;return(0,l.jsx)("div",{className:(0,s.A)(i.tableOfContents,"thin-scrollbar",n),children:(0,l.jsx)(a.A,{...t,linkClassName:o,linkActiveClassName:r})})}},5195:(e,n,t)=>{t.d(n,{A:()=>b});var s=t(6540),a=t(6342);function i(e){const n=e.map((e=>({...e,parentIndex:-1,children:[]}))),t=Array(7).fill(-1);n.forEach(((e,n)=>{const s=t.slice(2,e.level);e.parentIndex=Math.max(...s),t[e.level]=n}));const s=[];return n.forEach((e=>{const{parentIndex:t,...a}=e;t>=0?n[t].children.push(a):s.push(a)})),s}function l(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:s}=e;return n.flatMap((e=>{const n=l({toc:e.children,minHeadingLevel:t,maxHeadingLevel:s});return function(e){return e.level>=t&&e.level<=s}(e)?[{...e,children:n}]:n}))}function o(e){const n=e.getBoundingClientRect();return n.top===n.bottom?o(e.parentNode):n}function r(e,n){let{anchorTopOffset:t}=n;const s=e.find((e=>o(e).top>=t));if(s){return function(e){return e.top>0&&e.bottom{e.current=n?0:document.querySelector(".navbar").clientHeight}),[n]),e}function d(e){const n=(0,s.useRef)(void 0),t=c();(0,s.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:s,linkActiveClassName:a,minHeadingLevel:i,maxHeadingLevel:l}=e;function o(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(s),o=function(e){let{minHeadingLevel:n,maxHeadingLevel:t}=e;const s=[];for(let a=n;a<=t;a+=1)s.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(s.join()))}({minHeadingLevel:i,maxHeadingLevel:l}),c=r(o,{anchorTopOffset:t.current}),d=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,t){t?(n.current&&n.current!==e&&n.current.classList.remove(a),e.classList.add(a),n.current=e):e.classList.remove(a)}(e,e===d)}))}return document.addEventListener("scroll",o),document.addEventListener("resize",o),o(),()=>{document.removeEventListener("scroll",o),document.removeEventListener("resize",o)}}),[e,t])}var u=t(8774),m=t(4848);function h(e){let{toc:n,className:t,linkClassName:s,isChild:a}=e;return n.length?(0,m.jsx)("ul",{className:a?void 0:t,children:n.map((e=>(0,m.jsxs)("li",{children:[(0,m.jsx)(u.A,{to:`#${e.id}`,className:s??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,m.jsx)(h,{isChild:!0,toc:e.children,className:t,linkClassName:s})]},e.id)))}):null}const v=s.memo(h);function b(e){let{toc:n,className:t="table-of-contents table-of-contents__left-border",linkClassName:o="table-of-contents__link",linkActiveClassName:r,minHeadingLevel:c,maxHeadingLevel:u,...h}=e;const b=(0,a.p)(),x=c??b.tableOfContents.minHeadingLevel,g=u??b.tableOfContents.maxHeadingLevel,p=function(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:a}=e;return(0,s.useMemo)((()=>l({toc:i(n),minHeadingLevel:t,maxHeadingLevel:a})),[n,t,a])}({toc:n,minHeadingLevel:x,maxHeadingLevel:g});return d((0,s.useMemo)((()=>{if(o&&r)return{linkClassName:o,linkActiveClassName:r,minHeadingLevel:x,maxHeadingLevel:g}}),[o,r,x,g])),(0,m.jsx)(v,{toc:p,className:t,linkClassName:o,...h})}},6133:(e,n,t)=>{t.d(n,{A:()=>o});t(6540);var s=t(4164),a=t(8774);const i={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var l=t(4848);function o(e){let{permalink:n,label:t,count:o}=e;return(0,l.jsxs)(a.A,{href:n,className:(0,s.A)(i.tag,o?i.tagWithCount:i.tagRegular),children:[t,o&&(0,l.jsx)("span",{children:o})]})}},2053:(e,n,t)=>{t.d(n,{A:()=>r});t(6540);var s=t(4164),a=t(1312),i=t(6133);const l={tags:"tags_jXut",tag:"tag_QGVx"};var o=t(4848);function r(e){let{tags:n}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("b",{children:(0,o.jsx)(a.A,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,o.jsx)("ul",{className:(0,s.A)(l.tags,"padding--none","margin-left--sm"),children:n.map((e=>{let{label:n,permalink:t}=e;return(0,o.jsx)("li",{className:l.tag,children:(0,o.jsx)(i.A,{label:n,permalink:t})},t)}))})]})}},996:(e,n,t)=>{t.d(n,{A:()=>h});t(6540);var s=t(4164),a=t(1312),i=t(5260),l=t(4848);function o(){return(0,l.jsx)(a.A,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function r(){return(0,l.jsx)(a.A,{id:"theme.unlistedContent.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function c(){return(0,l.jsx)(i.A,{children:(0,l.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=t(7559),u=t(7293);function m(e){let{className:n}=e;return(0,l.jsx)(u.A,{type:"caution",title:(0,l.jsx)(o,{}),className:(0,s.A)(n,d.G.common.unlistedBanner),children:(0,l.jsx)(r,{})})}function h(e){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c,{}),(0,l.jsx)(m,{...e})]})}}}]); \ No newline at end of file diff --git a/assets/js/187e374f.00e1cc00.js b/assets/js/187e374f.00e1cc00.js new file mode 100644 index 00000000..be270feb --- /dev/null +++ b/assets/js/187e374f.00e1cc00.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6264],{340:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>t,metadata:()=>l,toc:()=>o});var s=a(4848),r=a(8453);a(8597),a(8205);const t={sidebar_position:3,sidebar_label:"Random Multinomial",title:"Random Multinomial"},i=void 0,l={id:"statistical-inference/random sampling/np.random.multinomial()",title:"Random Multinomial",description:"np.random.multinomial(n, [p0, p1, p_2, ...])",source:"@site/docs/statistical-inference/random sampling/np.random.multinomial().md",sourceDirName:"statistical-inference/random sampling",slug:"/statistical-inference/random sampling/np.random.multinomial()",permalink:"/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/random sampling/np.random.multinomial().md",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,sidebar_label:"Random Multinomial",title:"Random Multinomial"},sidebar:"statsSidebar",previous:{title:"Random Choice",permalink:"/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()"},next:{title:"Random Permutation",permalink:"/bpd-reference/docs/statistical-inference/random sampling/np.random.permutation()"}},c={},o=[];function d(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"np.random.multinomial(n, [p_0, p_1, p_2, ...])"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:"Determines the number of times each outcome occurs based on the given probabilities."})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["n : ",(0,s.jsx)("em",{children:"integer"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Number of random samples to draw."}),(0,s.jsxs)("dd",{className:"parameter",children:["[p_0, p_1, p_2, ...] : ",(0,s.jsx)("em",{children:"list or array of floats"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Probabilities for each outcome."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"Number of times each outcome is drawn"}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"array of integers"}),(0,s.jsx)("dt",{className:"term",children:"Note:"}),(0,s.jsx)("dd",{children:(0,s.jsx)("ul",{children:(0,s.jsxs)("li",{children:["Each element in ",(0,s.jsx)(n.code,{children:"[p_0, p_1, p_2, ...]"})," must be between 0 and 1. The elements in ",(0,s.jsx)(n.code,{children:"[p_0, p_1, p_2, ...]"})," must sum to 1."]})})})]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"np.random.multinomial(100, [0.2, 0.5, 0.3])\n"})}),"\n",(0,s.jsx)(n.p,{children:"array([19, 54, 27])"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"np.random.multinomial(100, [0.1, 0.1, 0.8]) \n"})}),"\n",(0,s.jsx)(n.p,{children:"array([12, 8, 80])"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"#use np.random.choice to achieve the function of np.random.multinomial\ndef manual_multinomial(n, p):\n values = np.arange(len(p))\n choices = np.random.choice(values, size=n, replace=True, p=p)\n value_counts = np.array([])\n for value in values:\n value_count = np.count_nonzero(choices == value)\n value_counts = np.append(value_counts, value_count)\n return value_counts.astype(int)\n\nmanual_multinomial(100, [0.1, 0.1, 0.8])\n"})}),"\n",(0,s.jsx)(n.p,{children:"array([10, 16, 74])"})]})}function m(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},8597:(e,n,a)=>{a.d(n,{A:()=>r});a(6540);var s=a(4848);const r=e=>{let{data:n}=e,a=[],r=[],t="",i=[];if(n){const e=JSON.parse(n);a=e.columns||[],r=e.data||[],t=e.indexName||"Index",i=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:t}),a.map(((e,n)=>(0,s.jsx)("th",{children:e},n)))]})}),(0,s.jsx)("tbody",{children:r.map(((e,n)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:i[n]}),e.map(((e,n)=>{return(0,s.jsx)("td",{children:(a=e,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},n);var a}))]},n)))})]})})}},8205:(e,n,a)=>{a.d(n,{A:()=>r});a(6540);var s=a(4848);const r=e=>{let{data:n}=e,a=[],r=[],t="",i="";if(n)try{const e=JSON.parse(n);t=e.name||"",i=e.dtype||"Unknown type",a=e.index||[],r=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const l=r.map((e=>JSON.stringify(e)));return(0,s.jsxs)("div",{className:"series-container",children:[(0,s.jsx)("ul",{className:"series-list",children:l.map(((e,n)=>(0,s.jsxs)("li",{className:"series-item",children:[(0,s.jsx)("span",{className:"series-index",children:a[n]}),(0,s.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,s.jsxs)("div",{className:"series-footer",children:["Name: ",t,", dtype: ",i]})]})}},8453:(e,n,a)=>{a.d(n,{R:()=>i,x:()=>l});var s=a(6540);const r={},t=s.createContext(r);function i(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/187e374f.6bd2e740.js b/assets/js/187e374f.6bd2e740.js deleted file mode 100644 index 36ae699e..00000000 --- a/assets/js/187e374f.6bd2e740.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6264],{340:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>t,metadata:()=>l,toc:()=>o});var r=a(4848),s=a(8453);a(8597),a(8205);const t={sidebar_position:3,sidebar_label:"Random Multinomial",title:"Random Multinomial"},i=void 0,l={id:"statistical-inference/random sampling/np.random.multinomial()",title:"Random Multinomial",description:"np.random.multinomial(n, [p0, p1, p_2, ...])",source:"@site/docs/statistical-inference/random sampling/np.random.multinomial().md",sourceDirName:"statistical-inference/random sampling",slug:"/statistical-inference/random sampling/np.random.multinomial()",permalink:"/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/random sampling/np.random.multinomial().md",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,sidebar_label:"Random Multinomial",title:"Random Multinomial"},sidebar:"statsSidebar",previous:{title:"Random Choice",permalink:"/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()"},next:{title:"Random Permutation",permalink:"/bpd-reference/docs/statistical-inference/random sampling/np.random.permutation()"}},c={},o=[];function d(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"np.random.multinomial(n, [p_0, p_1, p_2, ...])"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Determines the number of times each outcome occurs based on the given probabilities."})}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Input:"}),(0,r.jsxs)("dd",{className:"parameter",children:["n : ",(0,r.jsx)("em",{children:"integer"})]}),(0,r.jsx)("dd",{className:"parameter-description",children:"Number of random samples to draw."}),(0,r.jsxs)("dd",{className:"parameter",children:["[p_0, p_1, p_2, ...] : ",(0,r.jsx)("em",{children:"list or array of floats"})]}),(0,r.jsx)("dd",{className:"parameter-description",children:"Probabilities for each outcome."}),(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"Number of times each outcome is drawn"}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"array of integers"}),(0,r.jsx)("dt",{className:"term",children:"Note:"}),(0,r.jsx)("dd",{children:(0,r.jsx)("ul",{children:(0,r.jsxs)("li",{children:["Each element in ",(0,r.jsx)(n.code,{children:"[p_0, p_1, p_2, ...]"})," must be between 0 and 1. The elements in ",(0,r.jsx)(n.code,{children:"[p_0, p_1, p_2, ...]"})," must sum to 1."]})})})]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"np.random.multinomial(100, [0.2, 0.5, 0.3])\n"})}),"\n",(0,r.jsx)(n.p,{children:"array([19, 54, 27])"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"np.random.multinomial(100, [0.1, 0.1, 0.8]) \n"})}),"\n",(0,r.jsx)(n.p,{children:"array([12, 8, 80])"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"#use np.random.choice to achieve the function of np.random.multinomial\r\ndef manual_multinomial(n, p):\r\n values = np.arange(len(p))\r\n choices = np.random.choice(values, size=n, replace=True, p=p)\r\n value_counts = np.array([])\r\n for value in values:\r\n value_count = np.count_nonzero(choices == value)\r\n value_counts = np.append(value_counts, value_count)\r\n return value_counts.astype(int)\r\n\r\nmanual_multinomial(100, [0.1, 0.1, 0.8])\n"})}),"\n",(0,r.jsx)(n.p,{children:"array([10, 16, 74])"})]})}function m(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},8597:(e,n,a)=>{a.d(n,{A:()=>s});a(6540);var r=a(4848);const s=e=>{let{data:n}=e,a=[],s=[],t="",i=[];if(n){const e=JSON.parse(n);a=e.columns||[],s=e.data||[],t=e.indexName||"Index",i=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:t}),a.map(((e,n)=>(0,r.jsx)("th",{children:e},n)))]})}),(0,r.jsx)("tbody",{children:s.map(((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:i[n]}),e.map(((e,n)=>{return(0,r.jsx)("td",{children:(a=e,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},n);var a}))]},n)))})]})})}},8205:(e,n,a)=>{a.d(n,{A:()=>s});a(6540);var r=a(4848);const s=e=>{let{data:n}=e,a=[],s=[],t="",i="";if(n)try{const e=JSON.parse(n);t=e.name||"",i=e.dtype||"Unknown type",a=e.index||[],s=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const l=s.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:l.map(((e,n)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:a[n]}),(0,r.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",t,", dtype: ",i]})]})}},8453:(e,n,a)=>{a.d(n,{R:()=>i,x:()=>l});var r=a(6540);const s={},t=r.createContext(s);function i(e){const n=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),r.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1f391b9e.50a4ba87.js b/assets/js/1f391b9e.50a4ba87.js deleted file mode 100644 index aece3bd2..00000000 --- a/assets/js/1f391b9e.50a4ba87.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6061],{7973:(e,n,t)=>{t.r(n),t.d(n,{default:()=>f});t(6540);var a=t(4164),i=t(5500),s=t(7559),l=t(4561),r=t(2639),c=t(7763),o=t(996),d=t(4336);const m={mdxPageWrapper:"mdxPageWrapper_j9I6"};var u=t(4848);function f(e){const{content:n}=e,{metadata:{title:t,editUrl:f,description:v,frontMatter:h,unlisted:g,lastUpdatedBy:x,lastUpdatedAt:p},assets:L}=n,{keywords:j,wrapperClassName:A,hide_table_of_contents:N}=h,C=L.image??h.image,b=!!(f||p||x);return(0,u.jsx)(i.e3,{className:(0,a.A)(A??s.G.wrapper.mdxPages,s.G.page.mdxPage),children:(0,u.jsxs)(l.A,{children:[(0,u.jsx)(i.be,{title:t,description:v,keywords:j,image:C}),(0,u.jsx)("main",{className:"container container--fluid margin-vert--lg",children:(0,u.jsxs)("div",{className:(0,a.A)("row",m.mdxPageWrapper),children:[(0,u.jsxs)("div",{className:(0,a.A)("col",!N&&"col--8"),children:[g&&(0,u.jsx)(o.A,{}),(0,u.jsx)("article",{children:(0,u.jsx)(r.A,{children:(0,u.jsx)(n,{})})}),b&&(0,u.jsx)(d.A,{className:(0,a.A)("margin-top--sm",s.G.pages.pageFooterEditMetaRow),editUrl:f,lastUpdatedAt:p,lastUpdatedBy:x})]}),!N&&n.toc.length>0&&(0,u.jsx)("div",{className:"col col--2",children:(0,u.jsx)(c.A,{toc:n.toc,minHeadingLevel:h.toc_min_heading_level,maxHeadingLevel:h.toc_max_heading_level})})]})})]})})}},5195:(e,n,t)=>{t.d(n,{A:()=>h});var a=t(6540),i=t(6342);function s(e){const n=e.map((e=>({...e,parentIndex:-1,children:[]}))),t=Array(7).fill(-1);n.forEach(((e,n)=>{const a=t.slice(2,e.level);e.parentIndex=Math.max(...a),t[e.level]=n}));const a=[];return n.forEach((e=>{const{parentIndex:t,...i}=e;t>=0?n[t].children.push(i):a.push(i)})),a}function l(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:a}=e;return n.flatMap((e=>{const n=l({toc:e.children,minHeadingLevel:t,maxHeadingLevel:a});return function(e){return e.level>=t&&e.level<=a}(e)?[{...e,children:n}]:n}))}function r(e){const n=e.getBoundingClientRect();return n.top===n.bottom?r(e.parentNode):n}function c(e,n){let{anchorTopOffset:t}=n;const a=e.find((e=>r(e).top>=t));if(a){return function(e){return e.top>0&&e.bottom{e.current=n?0:document.querySelector(".navbar").clientHeight}),[n]),e}function d(e){const n=(0,a.useRef)(void 0),t=o();(0,a.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:a,linkActiveClassName:i,minHeadingLevel:s,maxHeadingLevel:l}=e;function r(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(a),r=function(e){let{minHeadingLevel:n,maxHeadingLevel:t}=e;const a=[];for(let i=n;i<=t;i+=1)a.push(`h${i}.anchor`);return Array.from(document.querySelectorAll(a.join()))}({minHeadingLevel:s,maxHeadingLevel:l}),o=c(r,{anchorTopOffset:t.current}),d=e.find((e=>o&&o.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,t){t?(n.current&&n.current!==e&&n.current.classList.remove(i),e.classList.add(i),n.current=e):e.classList.remove(i)}(e,e===d)}))}return document.addEventListener("scroll",r),document.addEventListener("resize",r),r(),()=>{document.removeEventListener("scroll",r),document.removeEventListener("resize",r)}}),[e,t])}var m=t(8774),u=t(4848);function f(e){let{toc:n,className:t,linkClassName:a,isChild:i}=e;return n.length?(0,u.jsx)("ul",{className:i?void 0:t,children:n.map((e=>(0,u.jsxs)("li",{children:[(0,u.jsx)(m.A,{to:`#${e.id}`,className:a??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,u.jsx)(f,{isChild:!0,toc:e.children,className:t,linkClassName:a})]},e.id)))}):null}const v=a.memo(f);function h(e){let{toc:n,className:t="table-of-contents table-of-contents__left-border",linkClassName:r="table-of-contents__link",linkActiveClassName:c,minHeadingLevel:o,maxHeadingLevel:m,...f}=e;const h=(0,i.p)(),g=o??h.tableOfContents.minHeadingLevel,x=m??h.tableOfContents.maxHeadingLevel,p=function(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:i}=e;return(0,a.useMemo)((()=>l({toc:s(n),minHeadingLevel:t,maxHeadingLevel:i})),[n,t,i])}({toc:n,minHeadingLevel:g,maxHeadingLevel:x});return d((0,a.useMemo)((()=>{if(r&&c)return{linkClassName:r,linkActiveClassName:c,minHeadingLevel:g,maxHeadingLevel:x}}),[r,c,g,x])),(0,u.jsx)(v,{toc:p,className:t,linkClassName:r,...f})}},7763:(e,n,t)=>{t.d(n,{A:()=>o});t(6540);var a=t(4164),i=t(5195);const s={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var l=t(4848);const r="table-of-contents__link toc-highlight",c="table-of-contents__link--active";function o(e){let{className:n,...t}=e;return(0,l.jsx)("div",{className:(0,a.A)(s.tableOfContents,"thin-scrollbar",n),children:(0,l.jsx)(i.A,{...t,linkClassName:r,linkActiveClassName:c})})}},996:(e,n,t)=>{t.d(n,{A:()=>f});t(6540);var a=t(4164),i=t(1312),s=t(5260),l=t(4848);function r(){return(0,l.jsx)(i.A,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function c(){return(0,l.jsx)(i.A,{id:"theme.unlistedContent.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function o(){return(0,l.jsx)(s.A,{children:(0,l.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=t(7559),m=t(7293);function u(e){let{className:n}=e;return(0,l.jsx)(m.A,{type:"caution",title:(0,l.jsx)(r,{}),className:(0,a.A)(n,d.G.common.unlistedBanner),children:(0,l.jsx)(c,{})})}function f(e){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o,{}),(0,l.jsx)(u,{...e})]})}}}]); \ No newline at end of file diff --git a/assets/js/1f391b9e.724c4e8c.js b/assets/js/1f391b9e.724c4e8c.js new file mode 100644 index 00000000..82468bd8 --- /dev/null +++ b/assets/js/1f391b9e.724c4e8c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6061],{7973:(e,n,t)=>{t.r(n),t.d(n,{default:()=>f});t(6540);var a=t(4164),i=t(5500),s=t(7559),l=t(4561),r=t(3808),c=t(7763),o=t(996),d=t(4336);const m={mdxPageWrapper:"mdxPageWrapper_j9I6"};var u=t(4848);function f(e){const{content:n}=e,{metadata:{title:t,editUrl:f,description:v,frontMatter:h,unlisted:g,lastUpdatedBy:x,lastUpdatedAt:p},assets:L}=n,{keywords:j,wrapperClassName:A,hide_table_of_contents:N}=h,C=L.image??h.image,b=!!(f||p||x);return(0,u.jsx)(i.e3,{className:(0,a.A)(A??s.G.wrapper.mdxPages,s.G.page.mdxPage),children:(0,u.jsxs)(l.A,{children:[(0,u.jsx)(i.be,{title:t,description:v,keywords:j,image:C}),(0,u.jsx)("main",{className:"container container--fluid margin-vert--lg",children:(0,u.jsxs)("div",{className:(0,a.A)("row",m.mdxPageWrapper),children:[(0,u.jsxs)("div",{className:(0,a.A)("col",!N&&"col--8"),children:[g&&(0,u.jsx)(o.A,{}),(0,u.jsx)("article",{children:(0,u.jsx)(r.A,{children:(0,u.jsx)(n,{})})}),b&&(0,u.jsx)(d.A,{className:(0,a.A)("margin-top--sm",s.G.pages.pageFooterEditMetaRow),editUrl:f,lastUpdatedAt:p,lastUpdatedBy:x})]}),!N&&n.toc.length>0&&(0,u.jsx)("div",{className:"col col--2",children:(0,u.jsx)(c.A,{toc:n.toc,minHeadingLevel:h.toc_min_heading_level,maxHeadingLevel:h.toc_max_heading_level})})]})})]})})}},7763:(e,n,t)=>{t.d(n,{A:()=>o});t(6540);var a=t(4164),i=t(5195);const s={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var l=t(4848);const r="table-of-contents__link toc-highlight",c="table-of-contents__link--active";function o(e){let{className:n,...t}=e;return(0,l.jsx)("div",{className:(0,a.A)(s.tableOfContents,"thin-scrollbar",n),children:(0,l.jsx)(i.A,{...t,linkClassName:r,linkActiveClassName:c})})}},5195:(e,n,t)=>{t.d(n,{A:()=>h});var a=t(6540),i=t(6342);function s(e){const n=e.map((e=>({...e,parentIndex:-1,children:[]}))),t=Array(7).fill(-1);n.forEach(((e,n)=>{const a=t.slice(2,e.level);e.parentIndex=Math.max(...a),t[e.level]=n}));const a=[];return n.forEach((e=>{const{parentIndex:t,...i}=e;t>=0?n[t].children.push(i):a.push(i)})),a}function l(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:a}=e;return n.flatMap((e=>{const n=l({toc:e.children,minHeadingLevel:t,maxHeadingLevel:a});return function(e){return e.level>=t&&e.level<=a}(e)?[{...e,children:n}]:n}))}function r(e){const n=e.getBoundingClientRect();return n.top===n.bottom?r(e.parentNode):n}function c(e,n){let{anchorTopOffset:t}=n;const a=e.find((e=>r(e).top>=t));if(a){return function(e){return e.top>0&&e.bottom{e.current=n?0:document.querySelector(".navbar").clientHeight}),[n]),e}function d(e){const n=(0,a.useRef)(void 0),t=o();(0,a.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:a,linkActiveClassName:i,minHeadingLevel:s,maxHeadingLevel:l}=e;function r(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(a),r=function(e){let{minHeadingLevel:n,maxHeadingLevel:t}=e;const a=[];for(let i=n;i<=t;i+=1)a.push(`h${i}.anchor`);return Array.from(document.querySelectorAll(a.join()))}({minHeadingLevel:s,maxHeadingLevel:l}),o=c(r,{anchorTopOffset:t.current}),d=e.find((e=>o&&o.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,t){t?(n.current&&n.current!==e&&n.current.classList.remove(i),e.classList.add(i),n.current=e):e.classList.remove(i)}(e,e===d)}))}return document.addEventListener("scroll",r),document.addEventListener("resize",r),r(),()=>{document.removeEventListener("scroll",r),document.removeEventListener("resize",r)}}),[e,t])}var m=t(8774),u=t(4848);function f(e){let{toc:n,className:t,linkClassName:a,isChild:i}=e;return n.length?(0,u.jsx)("ul",{className:i?void 0:t,children:n.map((e=>(0,u.jsxs)("li",{children:[(0,u.jsx)(m.A,{to:`#${e.id}`,className:a??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,u.jsx)(f,{isChild:!0,toc:e.children,className:t,linkClassName:a})]},e.id)))}):null}const v=a.memo(f);function h(e){let{toc:n,className:t="table-of-contents table-of-contents__left-border",linkClassName:r="table-of-contents__link",linkActiveClassName:c,minHeadingLevel:o,maxHeadingLevel:m,...f}=e;const h=(0,i.p)(),g=o??h.tableOfContents.minHeadingLevel,x=m??h.tableOfContents.maxHeadingLevel,p=function(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:i}=e;return(0,a.useMemo)((()=>l({toc:s(n),minHeadingLevel:t,maxHeadingLevel:i})),[n,t,i])}({toc:n,minHeadingLevel:g,maxHeadingLevel:x});return d((0,a.useMemo)((()=>{if(r&&c)return{linkClassName:r,linkActiveClassName:c,minHeadingLevel:g,maxHeadingLevel:x}}),[r,c,g,x])),(0,u.jsx)(v,{toc:p,className:t,linkClassName:r,...f})}},996:(e,n,t)=>{t.d(n,{A:()=>f});t(6540);var a=t(4164),i=t(1312),s=t(5260),l=t(4848);function r(){return(0,l.jsx)(i.A,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function c(){return(0,l.jsx)(i.A,{id:"theme.unlistedContent.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function o(){return(0,l.jsx)(s.A,{children:(0,l.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=t(7559),m=t(7293);function u(e){let{className:n}=e;return(0,l.jsx)(m.A,{type:"caution",title:(0,l.jsx)(r,{}),className:(0,a.A)(n,d.G.common.unlistedBanner),children:(0,l.jsx)(c,{})})}function f(e){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o,{}),(0,l.jsx)(u,{...e})]})}}}]); \ No newline at end of file diff --git a/assets/js/1f418535.21f320e1.js b/assets/js/1f418535.861ded06.js similarity index 74% rename from assets/js/1f418535.21f320e1.js rename to assets/js/1f418535.861ded06.js index e588afe4..3a419d74 100644 --- a/assets/js/1f418535.21f320e1.js +++ b/assets/js/1f418535.861ded06.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3250],{723:e=>{e.exports=JSON.parse('{"version":{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docsSidebar":[{"type":"link","label":"Intro","href":"/bpd-reference/docs/documentation/intro","docId":"documentation/intro","unlisted":false},{"type":"category","label":"Building and Organizing DataFrames","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"bpd.DataFrame()","href":"/bpd-reference/docs/documentation/building-organizing/bpd.DataFrame()","docId":"documentation/building-organizing/bpd.DataFrame()","unlisted":false},{"type":"link","label":"bpd.read_csv()","href":"/bpd-reference/docs/documentation/building-organizing/bpd.read_csv()","docId":"documentation/building-organizing/bpd.read_csv()","unlisted":false},{"type":"link","label":"df.assign()","href":"/bpd-reference/docs/documentation/building-organizing/df.assign()","docId":"documentation/building-organizing/df.assign()","unlisted":false},{"type":"link","label":"df.drop()","href":"/bpd-reference/docs/documentation/building-organizing/df.drop()","docId":"documentation/building-organizing/df.drop()","unlisted":false},{"type":"link","label":"df.set_index()","href":"/bpd-reference/docs/documentation/building-organizing/df.set_index()","docId":"documentation/building-organizing/df.set_index()","unlisted":false},{"type":"link","label":"df.reset_index()","href":"/bpd-reference/docs/documentation/building-organizing/df.reset_index()","docId":"documentation/building-organizing/df.reset_index()","unlisted":false},{"type":"link","label":"df.sort_values()","href":"/bpd-reference/docs/documentation/building-organizing/df.sort_values()","docId":"documentation/building-organizing/df.sort_values()","unlisted":false},{"type":"link","label":"df.merge()","href":"/bpd-reference/docs/documentation/building-organizing/df.merge()","docId":"documentation/building-organizing/df.merge()","unlisted":false}],"href":"/bpd-reference/docs/documentation/building-organizing/"},{"type":"category","label":"Accessing Data","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"df.shape","href":"/bpd-reference/docs/documentation/accessing-data/df.shape","docId":"documentation/accessing-data/df.shape","unlisted":false},{"type":"link","label":"df.get()","href":"/bpd-reference/docs/documentation/accessing-data/df.get()","docId":"documentation/accessing-data/df.get()","unlisted":false},{"type":"link","label":"ser.loc[]","href":"/bpd-reference/docs/documentation/accessing-data/ser.loc[]","docId":"documentation/accessing-data/ser.loc[]","unlisted":false},{"type":"link","label":"ser.iloc[]","href":"/bpd-reference/docs/documentation/accessing-data/ser.iloc[]","docId":"documentation/accessing-data/ser.iloc[]","unlisted":false},{"type":"link","label":"df.index","href":"/bpd-reference/docs/documentation/accessing-data/df.index","docId":"documentation/accessing-data/df.index","unlisted":false},{"type":"link","label":"df.columns","href":"/bpd-reference/docs/documentation/accessing-data/df.columns","docId":"documentation/accessing-data/df.columns","unlisted":false},{"type":"link","label":"df.take()","href":"/bpd-reference/docs/documentation/accessing-data/df.take()","docId":"documentation/accessing-data/df.take()","unlisted":false}],"href":"/bpd-reference/docs/documentation/accessing-data/"},{"type":"category","label":"Series Methods","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"ser.count()","href":"/bpd-reference/docs/documentation/series-methods/ser.count()","docId":"documentation/series-methods/ser.count()","unlisted":false},{"type":"link","label":"ser.max()","href":"/bpd-reference/docs/documentation/series-methods/ser.max()","docId":"documentation/series-methods/ser.max()","unlisted":false},{"type":"link","label":"ser.min()","href":"/bpd-reference/docs/documentation/series-methods/ser.min()","docId":"documentation/series-methods/ser.min()","unlisted":false},{"type":"link","label":"ser.sum()","href":"/bpd-reference/docs/documentation/series-methods/ser.sum()","docId":"documentation/series-methods/ser.sum()","unlisted":false},{"type":"link","label":"ser.mean()","href":"/bpd-reference/docs/documentation/series-methods/ser.mean()","docId":"documentation/series-methods/ser.mean()","unlisted":false},{"type":"link","label":"ser.median()","href":"/bpd-reference/docs/documentation/series-methods/ser.median()","docId":"documentation/series-methods/ser.median()","unlisted":false},{"type":"link","label":"ser.unique()","href":"/bpd-reference/docs/documentation/series-methods/ser.unique()","docId":"documentation/series-methods/ser.unique()","unlisted":false},{"type":"link","label":"ser.str.split()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.split()","docId":"documentation/series-methods/ser.str.split()","unlisted":false},{"type":"link","label":"ser.str.strip()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.strip()","docId":"documentation/series-methods/ser.str.strip()","unlisted":false},{"type":"link","label":"ser.str.lower()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.lower()","docId":"documentation/series-methods/ser.str.lower()","unlisted":false},{"type":"link","label":"ser.str.upper()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.upper()","docId":"documentation/series-methods/ser.str.upper()","unlisted":false},{"type":"link","label":"ser.str.capitalize()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()","docId":"documentation/series-methods/ser.str.capitalize()","unlisted":false},{"type":"link","label":"ser.str.title()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.title()","docId":"documentation/series-methods/ser.str.title()","unlisted":false},{"type":"link","label":"ser.str.replace()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.replace()","docId":"documentation/series-methods/ser.str.replace()","unlisted":false},{"type":"link","label":"ser.str.len()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.len()","docId":"documentation/series-methods/ser.str.len()","unlisted":false},{"type":"link","label":"ser.str.contains()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.contains()","docId":"documentation/series-methods/ser.str.contains()","unlisted":false}],"href":"/bpd-reference/docs/documentation/series-methods/"},{"type":"category","label":"Arrays and NumPy","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"arr[]","href":"/bpd-reference/docs/documentation/arrays-and-numpy/arr[]","docId":"documentation/arrays-and-numpy/arr[]","unlisted":false},{"type":"link","label":"np.append()","href":"/bpd-reference/docs/documentation/arrays-and-numpy/np.append()","docId":"documentation/arrays-and-numpy/np.append()","unlisted":false},{"type":"link","label":"np.arange()","href":"/bpd-reference/docs/documentation/arrays-and-numpy/np.arange()","docId":"documentation/arrays-and-numpy/np.arange()","unlisted":false},{"type":"link","label":"np.count_nonzero()","href":"/bpd-reference/docs/documentation/arrays-and-numpy/np.count_nonzero()","docId":"documentation/arrays-and-numpy/np.count_nonzero()","unlisted":false},{"type":"link","label":"np.percentile()","href":"/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()","docId":"documentation/arrays-and-numpy/np.percentile()","unlisted":false},{"type":"link","label":"np.round()","href":"/bpd-reference/docs/documentation/arrays-and-numpy/np.round()","docId":"documentation/arrays-and-numpy/np.round()","unlisted":false}],"href":"/bpd-reference/docs/documentation/arrays-and-numpy/"},{"type":"category","label":"Plotting","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Histogram","href":"/bpd-reference/docs/documentation/plotting/Histogram","docId":"documentation/plotting/Histogram","unlisted":false},{"type":"link","label":"Scatter Plot","href":"/bpd-reference/docs/documentation/plotting/Scatter Plot","docId":"documentation/plotting/Scatter Plot","unlisted":false},{"type":"link","label":"Bar Plot","href":"/bpd-reference/docs/documentation/plotting/Bar Plot","docId":"documentation/plotting/Bar Plot","unlisted":false},{"type":"link","label":"Line Plot","href":"/bpd-reference/docs/documentation/plotting/Line Plot","docId":"documentation/plotting/Line Plot","unlisted":false}],"href":"/bpd-reference/docs/documentation/plotting/"},{"type":"link","label":"for-loops","href":"/bpd-reference/docs/documentation/for-loops/","docId":"documentation/for-loops/for-loops","unlisted":false},{"type":"category","label":"if-statements","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"if-elif-else","href":"/bpd-reference/docs/documentation/if-statements/if-elif-else","docId":"documentation/if-statements/if-elif-else","unlisted":false},{"type":"link","label":"in \u2044 not in","href":"/bpd-reference/docs/documentation/if-statements/in \u2044 not in","docId":"documentation/if-statements/in \u2044 not in","unlisted":false},{"type":"link","label":"Logical Operators","href":"/bpd-reference/docs/documentation/if-statements/Logical Operators","docId":"documentation/if-statements/Logical Operators","unlisted":false}],"href":"/bpd-reference/docs/category/if-statements"},{"type":"category","label":"Data Format Conversion","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"np.array()","href":"/bpd-reference/docs/documentation/data format conversion/np.array()","docId":"documentation/data format conversion/np.array()","unlisted":false},{"type":"link","label":"list()","href":"/bpd-reference/docs/documentation/data format conversion/list()","docId":"documentation/data format conversion/list()","unlisted":false}],"href":"/bpd-reference/docs/documentation/data format conversion/"},{"type":"category","label":"Querying","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"df[]","href":"/bpd-reference/docs/documentation/querying/df[]","docId":"documentation/querying/df[]","unlisted":false}],"href":"/bpd-reference/docs/category/querying"},{"type":"category","label":"Functions","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Writing Functions","href":"/bpd-reference/docs/documentation/Functions/Writing Functions","docId":"documentation/Functions/Writing Functions","unlisted":false},{"type":"link","label":"Applying Functions","href":"/bpd-reference/docs/documentation/Functions/Applying Functions","docId":"documentation/Functions/Applying Functions","unlisted":false}]},{"type":"category","label":"Grouping","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"groupby","href":"/bpd-reference/docs/documentation/Grouping/groupby","docId":"documentation/Grouping/groupby","unlisted":false},{"type":"category","label":"aggregation","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"count()","href":"/bpd-reference/docs/documentation/Grouping/aggregation/count()","docId":"documentation/Grouping/aggregation/count()","unlisted":false},{"type":"link","label":"max()","href":"/bpd-reference/docs/documentation/Grouping/aggregation/max()","docId":"documentation/Grouping/aggregation/max()","unlisted":false},{"type":"link","label":"mean()","href":"/bpd-reference/docs/documentation/Grouping/aggregation/mean()","docId":"documentation/Grouping/aggregation/mean()","unlisted":false},{"type":"link","label":"median()","href":"/bpd-reference/docs/documentation/Grouping/aggregation/median()","docId":"documentation/Grouping/aggregation/median()","unlisted":false},{"type":"link","label":"min()","href":"/bpd-reference/docs/documentation/Grouping/aggregation/min()","docId":"documentation/Grouping/aggregation/min()","unlisted":false},{"type":"link","label":"sum()","href":"/bpd-reference/docs/documentation/Grouping/aggregation/sum()","docId":"documentation/Grouping/aggregation/sum()","unlisted":false}]}]}],"statsSidebar":[{"type":"link","label":"Intro","href":"/bpd-reference/docs/statistical-inference/intro","docId":"statistical-inference/intro","unlisted":false},{"type":"category","label":"Random Sampling","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Sampling","href":"/bpd-reference/docs/statistical-inference/random sampling/sampling","docId":"statistical-inference/random sampling/sampling","unlisted":false},{"type":"link","label":"Random Choice","href":"/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()","docId":"statistical-inference/random sampling/np.random.choice()","unlisted":false},{"type":"link","label":"Random Multinomial","href":"/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()","docId":"statistical-inference/random sampling/np.random.multinomial()","unlisted":false},{"type":"link","label":"Random Permutation","href":"/bpd-reference/docs/statistical-inference/random sampling/np.random.permutation()","docId":"statistical-inference/random sampling/np.random.permutation()","unlisted":false},{"type":"link","label":"Sample","href":"/bpd-reference/docs/statistical-inference/random sampling/df.sample()","docId":"statistical-inference/random sampling/df.sample()","unlisted":false}]},{"type":"link","label":"Parameters and Statistics","href":"/bpd-reference/docs/statistical-inference/parameters-and-statistics","docId":"statistical-inference/parameters-and-statistics","unlisted":false},{"type":"link","label":"Null & Alternative Hypothesis","href":"/bpd-reference/docs/statistical-inference/null_and_alt","docId":"statistical-inference/null_and_alt","unlisted":false},{"type":"link","label":"Observed & Test Statistic","href":"/bpd-reference/docs/statistical-inference/obs_and_test_stats","docId":"statistical-inference/obs_and_test_stats","unlisted":false},{"type":"link","label":"P-value","href":"/bpd-reference/docs/statistical-inference/p_value","docId":"statistical-inference/p_value","unlisted":false},{"type":"link","label":"Hypothesis Test","href":"/bpd-reference/docs/statistical-inference/hypothesis_test","docId":"statistical-inference/hypothesis_test","unlisted":false},{"type":"link","label":"Spread of a Distribution","href":"/bpd-reference/docs/statistical-inference/spread_of_a_distribution","docId":"statistical-inference/spread_of_a_distribution","unlisted":false},{"type":"link","label":"Boostrapping and Confidence Intervals","href":"/bpd-reference/docs/statistical-inference/bootstrapping","docId":"statistical-inference/bootstrapping","unlisted":false},{"type":"link","label":"Permutation Test","href":"/bpd-reference/docs/statistical-inference/permutation_test","docId":"statistical-inference/permutation_test","unlisted":false},{"type":"link","label":"Standard Units, Correlation, Regression","href":"/bpd-reference/docs/statistical-inference/standard_units","docId":"statistical-inference/standard_units","unlisted":false},{"type":"link","label":"The Standard Normal Distribution","href":"/bpd-reference/docs/statistical-inference/standard_normal_distribution","docId":"statistical-inference/standard_normal_distribution","unlisted":false},{"type":"link","label":"The Central Limit Theorem","href":"/bpd-reference/docs/statistical-inference/central_limit_theorem","docId":"statistical-inference/central_limit_theorem","unlisted":false},{"type":"category","label":"Concept Check","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Hypothesis Test vs. Permutation Test","href":"/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation","docId":"statistical-inference/concept check/hypothesis_vs_permutation","unlisted":false},{"type":"link","label":"Bootstrapping vs. the CLT","href":"/bpd-reference/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT","docId":"statistical-inference/concept check/bootstrapping_vs_the_CLT","unlisted":false}]}]},"docs":{"documentation/accessing-data/df.columns":{"id":"documentation/accessing-data/df.columns","title":"df.columns","description":"df.columns","sidebar":"docsSidebar"},"documentation/accessing-data/df.get()":{"id":"documentation/accessing-data/df.get()","title":"df.get()","description":"df.get(columnname)ordf.get([col1name, ..., colk_name])","sidebar":"docsSidebar"},"documentation/accessing-data/df.index":{"id":"documentation/accessing-data/df.index","title":"df.index","description":"df.index","sidebar":"docsSidebar"},"documentation/accessing-data/df.shape":{"id":"documentation/accessing-data/df.shape","title":"df.shape","description":"df.shape","sidebar":"docsSidebar"},"documentation/accessing-data/df.take()":{"id":"documentation/accessing-data/df.take()","title":"df.take()","description":"df.take(indices)","sidebar":"docsSidebar"},"documentation/accessing-data/index":{"id":"documentation/accessing-data/index","title":"Accessing Data","description":"df.shape","sidebar":"docsSidebar"},"documentation/accessing-data/ser.iloc[]":{"id":"documentation/accessing-data/ser.iloc[]","title":"ser.iloc[]","description":"ser.iloc[position]","sidebar":"docsSidebar"},"documentation/accessing-data/ser.loc[]":{"id":"documentation/accessing-data/ser.loc[]","title":"ser.loc[]","description":"ser.loc[label]","sidebar":"docsSidebar"},"documentation/arrays-and-numpy/arr[]":{"id":"documentation/arrays-and-numpy/arr[]","title":"arr[]","description":"arr[index]","sidebar":"docsSidebar"},"documentation/arrays-and-numpy/index":{"id":"documentation/arrays-and-numpy/index","title":"Arrays and NumPy","description":"Functions/methods for working with Arrays and NumPy.","sidebar":"docsSidebar"},"documentation/arrays-and-numpy/np.append()":{"id":"documentation/arrays-and-numpy/np.append()","title":"np.append()","description":"np.append(arr, value)","sidebar":"docsSidebar"},"documentation/arrays-and-numpy/np.arange()":{"id":"documentation/arrays-and-numpy/np.arange()","title":"np.arange()","description":"np.arange(start, stop, step)","sidebar":"docsSidebar"},"documentation/arrays-and-numpy/np.count_nonzero()":{"id":"documentation/arrays-and-numpy/np.count_nonzero()","title":"np.count_nonzero()","description":"np.count_nonzero(arr)","sidebar":"docsSidebar"},"documentation/arrays-and-numpy/np.percentile()":{"id":"documentation/arrays-and-numpy/np.percentile()","title":"np.percentile()","description":"np.percentile(arr, p)","sidebar":"docsSidebar"},"documentation/arrays-and-numpy/np.round()":{"id":"documentation/arrays-and-numpy/np.round()","title":"np.round()","description":"np.round(arr, decimals)","sidebar":"docsSidebar"},"documentation/building-organizing/bpd.DataFrame()":{"id":"documentation/building-organizing/bpd.DataFrame()","title":"bpd.DataFrame()","description":"bpd.DataFrame()","sidebar":"docsSidebar"},"documentation/building-organizing/bpd.read_csv()":{"id":"documentation/building-organizing/bpd.read_csv()","title":"bpd.read_csv()","description":"bpd.read_csv(filepath)","sidebar":"docsSidebar"},"documentation/building-organizing/df.assign()":{"id":"documentation/building-organizing/df.assign()","title":"df.assign()","description":"df.assign(nameofcolumn=column_data)","sidebar":"docsSidebar"},"documentation/building-organizing/df.drop()":{"id":"documentation/building-organizing/df.drop()","title":"df.drop()","description":"df.drop(columns=columnname or [col1name, ..., colk_name])","sidebar":"docsSidebar"},"documentation/building-organizing/df.merge()":{"id":"documentation/building-organizing/df.merge()","title":"df.merge()","description":"df.merge(right, on=column, lefton=leftcolumn, righton=rightcolumn, leftindex=False, rightindex=False)","sidebar":"docsSidebar"},"documentation/building-organizing/df.reset_index()":{"id":"documentation/building-organizing/df.reset_index()","title":"df.reset_index()","description":"df.reset_index(drop=False)","sidebar":"docsSidebar"},"documentation/building-organizing/df.set_index()":{"id":"documentation/building-organizing/df.set_index()","title":"df.set_index()","description":"df.setindex(columnname)","sidebar":"docsSidebar"},"documentation/building-organizing/df.sort_values()":{"id":"documentation/building-organizing/df.sort_values()","title":"df.sort_values()","description":"df.sortvalues(by=columnname, ascending=True)","sidebar":"docsSidebar"},"documentation/building-organizing/index":{"id":"documentation/building-organizing/index","title":"Building and Organizing DataFrames","description":"Each function/method creates a new DataFrame. Remember to save it!","sidebar":"docsSidebar"},"documentation/data format conversion/index":{"id":"documentation/data format conversion/index","title":"Data Format Conversion","description":"Converting things to arrays!","sidebar":"docsSidebar"},"documentation/data format conversion/list()":{"id":"documentation/data format conversion/list()","title":"list()","description":"list(arr)","sidebar":"docsSidebar"},"documentation/data format conversion/np.array()":{"id":"documentation/data format conversion/np.array()","title":"np.array()","description":"np.array(input)","sidebar":"docsSidebar"},"documentation/for-loops/for-loops":{"id":"documentation/for-loops/for-loops","title":"for-loops","description":"for \\\\ in \\\\:","sidebar":"docsSidebar"},"documentation/Functions/Applying Functions":{"id":"documentation/Functions/Applying Functions","title":"Applying Functions","description":"df.get(columnname).apply(functionname)","sidebar":"docsSidebar"},"documentation/Functions/Writing Functions":{"id":"documentation/Functions/Writing Functions","title":"Writing Functions","description":"def function_name(parameters):","sidebar":"docsSidebar"},"documentation/Grouping/aggregation/count()":{"id":"documentation/Grouping/aggregation/count()","title":"count()","description":"df.groupby(column_name).count()","sidebar":"docsSidebar"},"documentation/Grouping/aggregation/max()":{"id":"documentation/Grouping/aggregation/max()","title":"max()","description":"df.groupby(column_name).max()","sidebar":"docsSidebar"},"documentation/Grouping/aggregation/mean()":{"id":"documentation/Grouping/aggregation/mean()","title":"mean()","description":"df.groupby(column_name).mean()","sidebar":"docsSidebar"},"documentation/Grouping/aggregation/median()":{"id":"documentation/Grouping/aggregation/median()","title":"median()","description":"df.groupby(column_name).median()","sidebar":"docsSidebar"},"documentation/Grouping/aggregation/min()":{"id":"documentation/Grouping/aggregation/min()","title":"min()","description":"df.groupby(column_name).min()","sidebar":"docsSidebar"},"documentation/Grouping/aggregation/sum()":{"id":"documentation/Grouping/aggregation/sum()","title":"sum()","description":"df.groupby(column_name).sum()","sidebar":"docsSidebar"},"documentation/Grouping/groupby":{"id":"documentation/Grouping/groupby","title":"groupby","description":"df.groupby(columnname)ordf.groupby([columnnames])","sidebar":"docsSidebar"},"documentation/if-statements/if-elif-else":{"id":"documentation/if-statements/if-elif-else","title":"if-elif-else","description":"Conditionally execute code. The elif and else blocks are optional.","sidebar":"docsSidebar"},"documentation/if-statements/in \u2044 not in":{"id":"documentation/if-statements/in \u2044 not in","title":"in \u2044 not in","description":"Checks for membership of object within a sequence.","sidebar":"docsSidebar"},"documentation/if-statements/Logical Operators":{"id":"documentation/if-statements/Logical Operators","title":"Logical Operators","description":"Allows for multiple conditions to be combined at the same time.","sidebar":"docsSidebar"},"documentation/intro":{"id":"documentation/intro","title":"intro","description":"Assumption: Assume that df is a DataFrame, ser is a Series, arr is an array, and we have already run import babypandas as bpd and import numpy as np.","sidebar":"docsSidebar"},"documentation/plotting/Bar Plot":{"id":"documentation/plotting/Bar Plot","title":"Bar Plot","description":"df.plot(kind=\'bar\', x=datacol, y=datacol)","sidebar":"docsSidebar"},"documentation/plotting/Histogram":{"id":"documentation/plotting/Histogram","title":"Histogram","description":"df.plot(kind=\'hist\', y=datacol, bins=thebins, density=True, ec=\'w\')","sidebar":"docsSidebar"},"documentation/plotting/index":{"id":"documentation/plotting/index","title":"Plotting","description":"Plotting and visualization of DataFrames.","sidebar":"docsSidebar"},"documentation/plotting/Line Plot":{"id":"documentation/plotting/Line Plot","title":"Line Plot","description":"df.plot(kind=\'line\', x = datacol, y=datacol)","sidebar":"docsSidebar"},"documentation/plotting/Scatter Plot":{"id":"documentation/plotting/Scatter Plot","title":"Scatter Plot","description":"df.plot(kind=\'scatter\', x=datacol, y=datacol)","sidebar":"docsSidebar"},"documentation/querying/df[]":{"id":"documentation/querying/df[]","title":"df[]","description":"df[condition]","sidebar":"docsSidebar"},"documentation/series-methods/index":{"id":"documentation/series-methods/index","title":"Series Methods","description":"Methods that can be performed on a Series.","sidebar":"docsSidebar"},"documentation/series-methods/ser.count()":{"id":"documentation/series-methods/ser.count()","title":"ser.count()","description":"ser.count()","sidebar":"docsSidebar"},"documentation/series-methods/ser.max()":{"id":"documentation/series-methods/ser.max()","title":"ser.max()","description":"ser.max()","sidebar":"docsSidebar"},"documentation/series-methods/ser.mean()":{"id":"documentation/series-methods/ser.mean()","title":"ser.mean()","description":"ser.mean()","sidebar":"docsSidebar"},"documentation/series-methods/ser.median()":{"id":"documentation/series-methods/ser.median()","title":"ser.median()","description":"ser.median()","sidebar":"docsSidebar"},"documentation/series-methods/ser.min()":{"id":"documentation/series-methods/ser.min()","title":"ser.min()","description":"ser.min()","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.capitalize()":{"id":"documentation/series-methods/ser.str.capitalize()","title":"ser.str.capitalize()","description":"ser.str.capitalize()","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.contains()":{"id":"documentation/series-methods/ser.str.contains()","title":"ser.str.contains()","description":"ser.str.contains(substring)","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.len()":{"id":"documentation/series-methods/ser.str.len()","title":"ser.str.len()","description":"ser.str.len()","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.lower()":{"id":"documentation/series-methods/ser.str.lower()","title":"ser.str.lower()","description":"ser.str.lower()","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.replace()":{"id":"documentation/series-methods/ser.str.replace()","title":"ser.str.replace()","description":"ser.str.replace(old, new)","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.split()":{"id":"documentation/series-methods/ser.str.split()","title":"ser.str.split()","description":"ser.str.split(pat = None)","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.strip()":{"id":"documentation/series-methods/ser.str.strip()","title":"ser.str.strip()","description":"ser.str.strip(to_strip = None)","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.title()":{"id":"documentation/series-methods/ser.str.title()","title":"ser.str.title()","description":"ser.str.title()","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.upper()":{"id":"documentation/series-methods/ser.str.upper()","title":"ser.str.upper()","description":"ser.str.upper()","sidebar":"docsSidebar"},"documentation/series-methods/ser.sum()":{"id":"documentation/series-methods/ser.sum()","title":"ser.sum()","description":"ser.sum()","sidebar":"docsSidebar"},"documentation/series-methods/ser.unique()":{"id":"documentation/series-methods/ser.unique()","title":"ser.unique()","description":"ser.unique()","sidebar":"docsSidebar"},"statistical-inference/bootstrapping":{"id":"statistical-inference/bootstrapping","title":"Bootstrapping and Confidence Intervals","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/central_limit_theorem":{"id":"statistical-inference/central_limit_theorem","title":"The Central Limit Theorem","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/concept check/bootstrapping_vs_the_CLT":{"id":"statistical-inference/concept check/bootstrapping_vs_the_CLT","title":"Bootstrapping vs. the CLT","description":"Difference","sidebar":"statsSidebar"},"statistical-inference/concept check/hypothesis_vs_permutation":{"id":"statistical-inference/concept check/hypothesis_vs_permutation","title":"Hypothesis Test vs. Permutation Test","description":"Difference","sidebar":"statsSidebar"},"statistical-inference/hypothesis_test":{"id":"statistical-inference/hypothesis_test","title":"Hypothesis Test","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/intro":{"id":"statistical-inference/intro","title":"intro","description":"Assumption: Assume that df is a DataFrame, ser is a Series, arr is an array, and we already run import babypandas as bpd and import numpy as np.","sidebar":"statsSidebar"},"statistical-inference/null_and_alt":{"id":"statistical-inference/null_and_alt","title":"Null & Alternative Hypothesis","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/obs_and_test_stats":{"id":"statistical-inference/obs_and_test_stats","title":"Observed & Test Statistic","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/p_value":{"id":"statistical-inference/p_value","title":"P-value","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/parameters-and-statistics":{"id":"statistical-inference/parameters-and-statistics","title":"Parameters and Statistics","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/permutation_test":{"id":"statistical-inference/permutation_test","title":"Permutation Test","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/random sampling/df.sample()":{"id":"statistical-inference/random sampling/df.sample()","title":"Sample","description":"df.sample(n, replace=False)","sidebar":"statsSidebar"},"statistical-inference/random sampling/np.random.choice()":{"id":"statistical-inference/random sampling/np.random.choice()","title":"Random Choice","description":"np.random.choice(arr, size, replace=True, p=[p0, p1, ...])","sidebar":"statsSidebar"},"statistical-inference/random sampling/np.random.multinomial()":{"id":"statistical-inference/random sampling/np.random.multinomial()","title":"Random Multinomial","description":"np.random.multinomial(n, [p0, p1, p_2, ...])","sidebar":"statsSidebar"},"statistical-inference/random sampling/np.random.permutation()":{"id":"statistical-inference/random sampling/np.random.permutation()","title":"Random Permutation","description":"np.random.permutation(arr)","sidebar":"statsSidebar"},"statistical-inference/random sampling/sampling":{"id":"statistical-inference/random sampling/sampling","title":"Sampling","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/spread_of_a_distribution":{"id":"statistical-inference/spread_of_a_distribution","title":"Spread of a Distribution","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/standard_normal_distribution":{"id":"statistical-inference/standard_normal_distribution","title":"The Standard Normal Distribution","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/standard_units":{"id":"statistical-inference/standard_units","title":"Standard Units, Correlation, Regression","description":"Concept","sidebar":"statsSidebar"}}}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3250],{723:e=>{e.exports=JSON.parse('{"version":{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docsSidebar":[{"type":"link","label":"Intro","href":"/bpd-reference/docs/documentation/intro","docId":"documentation/intro","unlisted":false},{"type":"category","label":"Building and Organizing DataFrames","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"bpd.DataFrame()","href":"/bpd-reference/docs/documentation/building-organizing/bpd.DataFrame()","docId":"documentation/building-organizing/bpd.DataFrame()","unlisted":false},{"type":"link","label":"bpd.read_csv()","href":"/bpd-reference/docs/documentation/building-organizing/bpd.read_csv()","docId":"documentation/building-organizing/bpd.read_csv()","unlisted":false},{"type":"link","label":"df.assign()","href":"/bpd-reference/docs/documentation/building-organizing/df.assign()","docId":"documentation/building-organizing/df.assign()","unlisted":false},{"type":"link","label":"df.drop()","href":"/bpd-reference/docs/documentation/building-organizing/df.drop()","docId":"documentation/building-organizing/df.drop()","unlisted":false},{"type":"link","label":"df.set_index()","href":"/bpd-reference/docs/documentation/building-organizing/df.set_index()","docId":"documentation/building-organizing/df.set_index()","unlisted":false},{"type":"link","label":"df.reset_index()","href":"/bpd-reference/docs/documentation/building-organizing/df.reset_index()","docId":"documentation/building-organizing/df.reset_index()","unlisted":false},{"type":"link","label":"df.sort_values()","href":"/bpd-reference/docs/documentation/building-organizing/df.sort_values()","docId":"documentation/building-organizing/df.sort_values()","unlisted":false},{"type":"link","label":"df.merge()","href":"/bpd-reference/docs/documentation/building-organizing/df.merge()","docId":"documentation/building-organizing/df.merge()","unlisted":false}],"href":"/bpd-reference/docs/documentation/building-organizing/"},{"type":"category","label":"Accessing Data","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"df.shape","href":"/bpd-reference/docs/documentation/accessing-data/df.shape","docId":"documentation/accessing-data/df.shape","unlisted":false},{"type":"link","label":"df.get()","href":"/bpd-reference/docs/documentation/accessing-data/df.get()","docId":"documentation/accessing-data/df.get()","unlisted":false},{"type":"link","label":"ser.loc[]","href":"/bpd-reference/docs/documentation/accessing-data/ser.loc[]","docId":"documentation/accessing-data/ser.loc[]","unlisted":false},{"type":"link","label":"ser.iloc[]","href":"/bpd-reference/docs/documentation/accessing-data/ser.iloc[]","docId":"documentation/accessing-data/ser.iloc[]","unlisted":false},{"type":"link","label":"df.index","href":"/bpd-reference/docs/documentation/accessing-data/df.index","docId":"documentation/accessing-data/df.index","unlisted":false},{"type":"link","label":"df.columns","href":"/bpd-reference/docs/documentation/accessing-data/df.columns","docId":"documentation/accessing-data/df.columns","unlisted":false},{"type":"link","label":"df.take()","href":"/bpd-reference/docs/documentation/accessing-data/df.take()","docId":"documentation/accessing-data/df.take()","unlisted":false}],"href":"/bpd-reference/docs/documentation/accessing-data/"},{"type":"category","label":"Series Methods","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"ser.count()","href":"/bpd-reference/docs/documentation/series-methods/ser.count()","docId":"documentation/series-methods/ser.count()","unlisted":false},{"type":"link","label":"ser.max()","href":"/bpd-reference/docs/documentation/series-methods/ser.max()","docId":"documentation/series-methods/ser.max()","unlisted":false},{"type":"link","label":"ser.min()","href":"/bpd-reference/docs/documentation/series-methods/ser.min()","docId":"documentation/series-methods/ser.min()","unlisted":false},{"type":"link","label":"ser.sum()","href":"/bpd-reference/docs/documentation/series-methods/ser.sum()","docId":"documentation/series-methods/ser.sum()","unlisted":false},{"type":"link","label":"ser.mean()","href":"/bpd-reference/docs/documentation/series-methods/ser.mean()","docId":"documentation/series-methods/ser.mean()","unlisted":false},{"type":"link","label":"ser.median()","href":"/bpd-reference/docs/documentation/series-methods/ser.median()","docId":"documentation/series-methods/ser.median()","unlisted":false},{"type":"link","label":"ser.unique()","href":"/bpd-reference/docs/documentation/series-methods/ser.unique()","docId":"documentation/series-methods/ser.unique()","unlisted":false},{"type":"link","label":"ser.str.split()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.split()","docId":"documentation/series-methods/ser.str.split()","unlisted":false},{"type":"link","label":"ser.str.strip()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.strip()","docId":"documentation/series-methods/ser.str.strip()","unlisted":false},{"type":"link","label":"ser.str.lower()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.lower()","docId":"documentation/series-methods/ser.str.lower()","unlisted":false},{"type":"link","label":"ser.str.upper()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.upper()","docId":"documentation/series-methods/ser.str.upper()","unlisted":false},{"type":"link","label":"ser.str.capitalize()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()","docId":"documentation/series-methods/ser.str.capitalize()","unlisted":false},{"type":"link","label":"ser.str.title()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.title()","docId":"documentation/series-methods/ser.str.title()","unlisted":false},{"type":"link","label":"ser.str.replace()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.replace()","docId":"documentation/series-methods/ser.str.replace()","unlisted":false},{"type":"link","label":"ser.str.len()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.len()","docId":"documentation/series-methods/ser.str.len()","unlisted":false},{"type":"link","label":"ser.str.contains()","href":"/bpd-reference/docs/documentation/series-methods/ser.str.contains()","docId":"documentation/series-methods/ser.str.contains()","unlisted":false}],"href":"/bpd-reference/docs/documentation/series-methods/"},{"type":"category","label":"Arrays and NumPy","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"arr[]","href":"/bpd-reference/docs/documentation/arrays-and-numpy/arr[]","docId":"documentation/arrays-and-numpy/arr[]","unlisted":false},{"type":"link","label":"np.append()","href":"/bpd-reference/docs/documentation/arrays-and-numpy/np.append()","docId":"documentation/arrays-and-numpy/np.append()","unlisted":false},{"type":"link","label":"np.arange()","href":"/bpd-reference/docs/documentation/arrays-and-numpy/np.arange()","docId":"documentation/arrays-and-numpy/np.arange()","unlisted":false},{"type":"link","label":"np.count_nonzero()","href":"/bpd-reference/docs/documentation/arrays-and-numpy/np.count_nonzero()","docId":"documentation/arrays-and-numpy/np.count_nonzero()","unlisted":false},{"type":"link","label":"np.percentile()","href":"/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()","docId":"documentation/arrays-and-numpy/np.percentile()","unlisted":false},{"type":"link","label":"np.round()","href":"/bpd-reference/docs/documentation/arrays-and-numpy/np.round()","docId":"documentation/arrays-and-numpy/np.round()","unlisted":false}],"href":"/bpd-reference/docs/documentation/arrays-and-numpy/"},{"type":"category","label":"Plotting","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Histogram","href":"/bpd-reference/docs/documentation/plotting/Histogram","docId":"documentation/plotting/Histogram","unlisted":false},{"type":"link","label":"Scatter Plot","href":"/bpd-reference/docs/documentation/plotting/Scatter Plot","docId":"documentation/plotting/Scatter Plot","unlisted":false},{"type":"link","label":"Bar Plot","href":"/bpd-reference/docs/documentation/plotting/Bar Plot","docId":"documentation/plotting/Bar Plot","unlisted":false},{"type":"link","label":"Line Plot","href":"/bpd-reference/docs/documentation/plotting/Line Plot","docId":"documentation/plotting/Line Plot","unlisted":false}],"href":"/bpd-reference/docs/documentation/plotting/"},{"type":"link","label":"for-loops","href":"/bpd-reference/docs/documentation/for-loops/","docId":"documentation/for-loops/for-loops","unlisted":false},{"type":"category","label":"if-statements","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"if-elif-else","href":"/bpd-reference/docs/documentation/if-statements/if-elif-else","docId":"documentation/if-statements/if-elif-else","unlisted":false},{"type":"link","label":"in \u2044 not in","href":"/bpd-reference/docs/documentation/if-statements/in \u2044 not in","docId":"documentation/if-statements/in \u2044 not in","unlisted":false},{"type":"link","label":"Logical Operators","href":"/bpd-reference/docs/documentation/if-statements/Logical Operators","docId":"documentation/if-statements/Logical Operators","unlisted":false}],"href":"/bpd-reference/docs/category/if-statements"},{"type":"category","label":"Data Format Conversion","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"np.array()","href":"/bpd-reference/docs/documentation/data format conversion/np.array()","docId":"documentation/data format conversion/np.array()","unlisted":false},{"type":"link","label":"list()","href":"/bpd-reference/docs/documentation/data format conversion/list()","docId":"documentation/data format conversion/list()","unlisted":false}],"href":"/bpd-reference/docs/documentation/data format conversion/"},{"type":"category","label":"Querying","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"df[]","href":"/bpd-reference/docs/documentation/querying/df[]","docId":"documentation/querying/df[]","unlisted":false}],"href":"/bpd-reference/docs/category/querying"},{"type":"category","label":"Functions","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Writing Functions","href":"/bpd-reference/docs/documentation/Functions/Writing Functions","docId":"documentation/Functions/Writing Functions","unlisted":false},{"type":"link","label":"Applying Functions","href":"/bpd-reference/docs/documentation/Functions/Applying Functions","docId":"documentation/Functions/Applying Functions","unlisted":false}]},{"type":"category","label":"Grouping","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"groupby","href":"/bpd-reference/docs/documentation/Grouping/groupby","docId":"documentation/Grouping/groupby","unlisted":false},{"type":"category","label":"aggregation","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"count()","href":"/bpd-reference/docs/documentation/Grouping/aggregation/count()","docId":"documentation/Grouping/aggregation/count()","unlisted":false},{"type":"link","label":"max()","href":"/bpd-reference/docs/documentation/Grouping/aggregation/max()","docId":"documentation/Grouping/aggregation/max()","unlisted":false},{"type":"link","label":"mean()","href":"/bpd-reference/docs/documentation/Grouping/aggregation/mean()","docId":"documentation/Grouping/aggregation/mean()","unlisted":false},{"type":"link","label":"median()","href":"/bpd-reference/docs/documentation/Grouping/aggregation/median()","docId":"documentation/Grouping/aggregation/median()","unlisted":false},{"type":"link","label":"min()","href":"/bpd-reference/docs/documentation/Grouping/aggregation/min()","docId":"documentation/Grouping/aggregation/min()","unlisted":false},{"type":"link","label":"sum()","href":"/bpd-reference/docs/documentation/Grouping/aggregation/sum()","docId":"documentation/Grouping/aggregation/sum()","unlisted":false}]}]}],"statsSidebar":[{"type":"link","label":"Intro","href":"/bpd-reference/docs/statistical-inference/intro","docId":"statistical-inference/intro","unlisted":false},{"type":"category","label":"Random Sampling","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Sampling","href":"/bpd-reference/docs/statistical-inference/random sampling/sampling","docId":"statistical-inference/random sampling/sampling","unlisted":false},{"type":"link","label":"Random Choice","href":"/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()","docId":"statistical-inference/random sampling/np.random.choice()","unlisted":false},{"type":"link","label":"Random Multinomial","href":"/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()","docId":"statistical-inference/random sampling/np.random.multinomial()","unlisted":false},{"type":"link","label":"Random Permutation","href":"/bpd-reference/docs/statistical-inference/random sampling/np.random.permutation()","docId":"statistical-inference/random sampling/np.random.permutation()","unlisted":false},{"type":"link","label":"Sample","href":"/bpd-reference/docs/statistical-inference/random sampling/df.sample()","docId":"statistical-inference/random sampling/df.sample()","unlisted":false}]},{"type":"link","label":"Parameters and Statistics","href":"/bpd-reference/docs/statistical-inference/parameters-and-statistics","docId":"statistical-inference/parameters-and-statistics","unlisted":false},{"type":"link","label":"Null & Alternative Hypothesis","href":"/bpd-reference/docs/statistical-inference/null_and_alt","docId":"statistical-inference/null_and_alt","unlisted":false},{"type":"link","label":"Observed & Test Statistic","href":"/bpd-reference/docs/statistical-inference/obs_and_test_stats","docId":"statistical-inference/obs_and_test_stats","unlisted":false},{"type":"link","label":"P-value","href":"/bpd-reference/docs/statistical-inference/p_value","docId":"statistical-inference/p_value","unlisted":false},{"type":"link","label":"Hypothesis Test","href":"/bpd-reference/docs/statistical-inference/hypothesis_test","docId":"statistical-inference/hypothesis_test","unlisted":false},{"type":"link","label":"Spread of a Distribution","href":"/bpd-reference/docs/statistical-inference/spread_of_a_distribution","docId":"statistical-inference/spread_of_a_distribution","unlisted":false},{"type":"link","label":"Boostrapping and Confidence Intervals","href":"/bpd-reference/docs/statistical-inference/bootstrapping","docId":"statistical-inference/bootstrapping","unlisted":false},{"type":"link","label":"Permutation Test","href":"/bpd-reference/docs/statistical-inference/permutation_test","docId":"statistical-inference/permutation_test","unlisted":false},{"type":"link","label":"Standard Units, Correlation, Regression","href":"/bpd-reference/docs/statistical-inference/standard_units","docId":"statistical-inference/standard_units","unlisted":false},{"type":"link","label":"The Standard Normal Distribution","href":"/bpd-reference/docs/statistical-inference/standard_normal_distribution","docId":"statistical-inference/standard_normal_distribution","unlisted":false},{"type":"link","label":"The Central Limit Theorem","href":"/bpd-reference/docs/statistical-inference/central_limit_theorem","docId":"statistical-inference/central_limit_theorem","unlisted":false},{"type":"category","label":"Concept Check","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Hypothesis Test vs. Permutation Test","href":"/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation","docId":"statistical-inference/concept check/hypothesis_vs_permutation","unlisted":false},{"type":"link","label":"Bootstrapping vs. the CLT","href":"/bpd-reference/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT","docId":"statistical-inference/concept check/bootstrapping_vs_the_CLT","unlisted":false}]}]},"docs":{"documentation/accessing-data/df.columns":{"id":"documentation/accessing-data/df.columns","title":"df.columns","description":"df.columns","sidebar":"docsSidebar"},"documentation/accessing-data/df.get()":{"id":"documentation/accessing-data/df.get()","title":"df.get()","description":"df.get(columnname)ordf.get([col1name, ..., colk_name])","sidebar":"docsSidebar"},"documentation/accessing-data/df.index":{"id":"documentation/accessing-data/df.index","title":"df.index","description":"df.index","sidebar":"docsSidebar"},"documentation/accessing-data/df.shape":{"id":"documentation/accessing-data/df.shape","title":"df.shape","description":"df.shape","sidebar":"docsSidebar"},"documentation/accessing-data/df.take()":{"id":"documentation/accessing-data/df.take()","title":"df.take()","description":"df.take(indices)","sidebar":"docsSidebar"},"documentation/accessing-data/index":{"id":"documentation/accessing-data/index","title":"Accessing Data","description":"df.shape","sidebar":"docsSidebar"},"documentation/accessing-data/ser.iloc[]":{"id":"documentation/accessing-data/ser.iloc[]","title":"ser.iloc[]","description":"ser.iloc[position]","sidebar":"docsSidebar"},"documentation/accessing-data/ser.loc[]":{"id":"documentation/accessing-data/ser.loc[]","title":"ser.loc[]","description":"ser.loc[label]","sidebar":"docsSidebar"},"documentation/arrays-and-numpy/arr[]":{"id":"documentation/arrays-and-numpy/arr[]","title":"arr[]","description":"arr[index]","sidebar":"docsSidebar"},"documentation/arrays-and-numpy/index":{"id":"documentation/arrays-and-numpy/index","title":"Arrays and NumPy","description":"Functions/methods for working with Arrays and NumPy.","sidebar":"docsSidebar"},"documentation/arrays-and-numpy/np.append()":{"id":"documentation/arrays-and-numpy/np.append()","title":"np.append()","description":"np.append(arr, value)","sidebar":"docsSidebar"},"documentation/arrays-and-numpy/np.arange()":{"id":"documentation/arrays-and-numpy/np.arange()","title":"np.arange()","description":"np.arange(start, stop, step)","sidebar":"docsSidebar"},"documentation/arrays-and-numpy/np.count_nonzero()":{"id":"documentation/arrays-and-numpy/np.count_nonzero()","title":"np.count_nonzero()","description":"np.count_nonzero(arr)","sidebar":"docsSidebar"},"documentation/arrays-and-numpy/np.percentile()":{"id":"documentation/arrays-and-numpy/np.percentile()","title":"np.percentile()","description":"np.percentile(arr, p)","sidebar":"docsSidebar"},"documentation/arrays-and-numpy/np.round()":{"id":"documentation/arrays-and-numpy/np.round()","title":"np.round()","description":"np.round(arr, decimals)","sidebar":"docsSidebar"},"documentation/building-organizing/bpd.DataFrame()":{"id":"documentation/building-organizing/bpd.DataFrame()","title":"bpd.DataFrame()","description":"bpd.DataFrame()","sidebar":"docsSidebar"},"documentation/building-organizing/bpd.read_csv()":{"id":"documentation/building-organizing/bpd.read_csv()","title":"bpd.read_csv()","description":"bpd.read_csv(filepath)","sidebar":"docsSidebar"},"documentation/building-organizing/df.assign()":{"id":"documentation/building-organizing/df.assign()","title":"df.assign()","description":"df.assign(nameofcolumn=column_data)","sidebar":"docsSidebar"},"documentation/building-organizing/df.drop()":{"id":"documentation/building-organizing/df.drop()","title":"df.drop()","description":"df.drop(columns=columnname or [col1name, ..., colk_name])","sidebar":"docsSidebar"},"documentation/building-organizing/df.merge()":{"id":"documentation/building-organizing/df.merge()","title":"df.merge()","description":"df.merge(right, on=column, lefton=leftcolumn, righton=rightcolumn, leftindex=False, rightindex=False)","sidebar":"docsSidebar"},"documentation/building-organizing/df.reset_index()":{"id":"documentation/building-organizing/df.reset_index()","title":"df.reset_index()","description":"df.reset_index(drop=False)","sidebar":"docsSidebar"},"documentation/building-organizing/df.set_index()":{"id":"documentation/building-organizing/df.set_index()","title":"df.set_index()","description":"df.setindex(columnname)","sidebar":"docsSidebar"},"documentation/building-organizing/df.sort_values()":{"id":"documentation/building-organizing/df.sort_values()","title":"df.sort_values()","description":"df.sortvalues(by=columnname, ascending=True)","sidebar":"docsSidebar"},"documentation/building-organizing/index":{"id":"documentation/building-organizing/index","title":"Building and Organizing DataFrames","description":"Each function/method creates a new DataFrame. Remember to save it!","sidebar":"docsSidebar"},"documentation/data format conversion/index":{"id":"documentation/data format conversion/index","title":"Data Format Conversion","description":"Converting things to arrays!","sidebar":"docsSidebar"},"documentation/data format conversion/list()":{"id":"documentation/data format conversion/list()","title":"list()","description":"list(arr)","sidebar":"docsSidebar"},"documentation/data format conversion/np.array()":{"id":"documentation/data format conversion/np.array()","title":"np.array()","description":"np.array(input)","sidebar":"docsSidebar"},"documentation/for-loops/for-loops":{"id":"documentation/for-loops/for-loops","title":"for-loops","description":"for \\\\ in \\\\:","sidebar":"docsSidebar"},"documentation/Functions/Applying Functions":{"id":"documentation/Functions/Applying Functions","title":"Applying Functions","description":"df.get(columnname).apply(functionname)","sidebar":"docsSidebar"},"documentation/Functions/Writing Functions":{"id":"documentation/Functions/Writing Functions","title":"Writing Functions","description":"def function_name(parameters):","sidebar":"docsSidebar"},"documentation/Grouping/aggregation/count()":{"id":"documentation/Grouping/aggregation/count()","title":"count()","description":"df.groupby(column_name).count()","sidebar":"docsSidebar"},"documentation/Grouping/aggregation/max()":{"id":"documentation/Grouping/aggregation/max()","title":"max()","description":"df.groupby(column_name).max()","sidebar":"docsSidebar"},"documentation/Grouping/aggregation/mean()":{"id":"documentation/Grouping/aggregation/mean()","title":"mean()","description":"df.groupby(column_name).mean()","sidebar":"docsSidebar"},"documentation/Grouping/aggregation/median()":{"id":"documentation/Grouping/aggregation/median()","title":"median()","description":"df.groupby(column_name).median()","sidebar":"docsSidebar"},"documentation/Grouping/aggregation/min()":{"id":"documentation/Grouping/aggregation/min()","title":"min()","description":"df.groupby(column_name).min()","sidebar":"docsSidebar"},"documentation/Grouping/aggregation/sum()":{"id":"documentation/Grouping/aggregation/sum()","title":"sum()","description":"df.groupby(column_name).sum()","sidebar":"docsSidebar"},"documentation/Grouping/groupby":{"id":"documentation/Grouping/groupby","title":"groupby","description":"df.groupby(columnname)ordf.groupby([columnnames])","sidebar":"docsSidebar"},"documentation/if-statements/if-elif-else":{"id":"documentation/if-statements/if-elif-else","title":"if-elif-else","description":"Conditionally execute code. The elif and else blocks are optional.","sidebar":"docsSidebar"},"documentation/if-statements/in \u2044 not in":{"id":"documentation/if-statements/in \u2044 not in","title":"in \u2044 not in","description":"Checks for membership of object within a sequence.","sidebar":"docsSidebar"},"documentation/if-statements/Logical Operators":{"id":"documentation/if-statements/Logical Operators","title":"Logical Operators","description":"Allows for multiple conditions to be combined at the same time.","sidebar":"docsSidebar"},"documentation/intro":{"id":"documentation/intro","title":"intro","description":"Assumption: Assume that df is a DataFrame, ser is a Series, arr is an array, and we already ran import babypandas as bpd and import numpy as np.","sidebar":"docsSidebar"},"documentation/plotting/Bar Plot":{"id":"documentation/plotting/Bar Plot","title":"Bar Plot","description":"df.plot(kind=\'bar\', x=datacol, y=datacol)","sidebar":"docsSidebar"},"documentation/plotting/Histogram":{"id":"documentation/plotting/Histogram","title":"Histogram","description":"df.plot(kind=\'hist\', y=datacol, bins=thebins, density=True, ec=\'w\')","sidebar":"docsSidebar"},"documentation/plotting/index":{"id":"documentation/plotting/index","title":"Plotting","description":"Plotting and visualization of DataFrames.","sidebar":"docsSidebar"},"documentation/plotting/Line Plot":{"id":"documentation/plotting/Line Plot","title":"Line Plot","description":"df.plot(kind=\'line\', x = datacol, y=datacol)","sidebar":"docsSidebar"},"documentation/plotting/Scatter Plot":{"id":"documentation/plotting/Scatter Plot","title":"Scatter Plot","description":"df.plot(kind=\'scatter\', x=datacol, y=datacol)","sidebar":"docsSidebar"},"documentation/querying/df[]":{"id":"documentation/querying/df[]","title":"df[]","description":"df[condition]","sidebar":"docsSidebar"},"documentation/series-methods/index":{"id":"documentation/series-methods/index","title":"Series Methods","description":"Methods that can be performed on a Series.","sidebar":"docsSidebar"},"documentation/series-methods/ser.count()":{"id":"documentation/series-methods/ser.count()","title":"ser.count()","description":"ser.count()","sidebar":"docsSidebar"},"documentation/series-methods/ser.max()":{"id":"documentation/series-methods/ser.max()","title":"ser.max()","description":"ser.max()","sidebar":"docsSidebar"},"documentation/series-methods/ser.mean()":{"id":"documentation/series-methods/ser.mean()","title":"ser.mean()","description":"ser.mean()","sidebar":"docsSidebar"},"documentation/series-methods/ser.median()":{"id":"documentation/series-methods/ser.median()","title":"ser.median()","description":"ser.median()","sidebar":"docsSidebar"},"documentation/series-methods/ser.min()":{"id":"documentation/series-methods/ser.min()","title":"ser.min()","description":"ser.min()","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.capitalize()":{"id":"documentation/series-methods/ser.str.capitalize()","title":"ser.str.capitalize()","description":"ser.str.capitalize()","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.contains()":{"id":"documentation/series-methods/ser.str.contains()","title":"ser.str.contains()","description":"ser.str.contains(substring)","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.len()":{"id":"documentation/series-methods/ser.str.len()","title":"ser.str.len()","description":"ser.str.len()","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.lower()":{"id":"documentation/series-methods/ser.str.lower()","title":"ser.str.lower()","description":"ser.str.lower()","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.replace()":{"id":"documentation/series-methods/ser.str.replace()","title":"ser.str.replace()","description":"ser.str.replace(old, new)","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.split()":{"id":"documentation/series-methods/ser.str.split()","title":"ser.str.split()","description":"ser.str.split(pat = None)","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.strip()":{"id":"documentation/series-methods/ser.str.strip()","title":"ser.str.strip()","description":"ser.str.strip(to_strip = None)","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.title()":{"id":"documentation/series-methods/ser.str.title()","title":"ser.str.title()","description":"ser.str.title()","sidebar":"docsSidebar"},"documentation/series-methods/ser.str.upper()":{"id":"documentation/series-methods/ser.str.upper()","title":"ser.str.upper()","description":"ser.str.upper()","sidebar":"docsSidebar"},"documentation/series-methods/ser.sum()":{"id":"documentation/series-methods/ser.sum()","title":"ser.sum()","description":"ser.sum()","sidebar":"docsSidebar"},"documentation/series-methods/ser.unique()":{"id":"documentation/series-methods/ser.unique()","title":"ser.unique()","description":"ser.unique()","sidebar":"docsSidebar"},"statistical-inference/bootstrapping":{"id":"statistical-inference/bootstrapping","title":"Bootstrapping and Confidence Intervals","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/central_limit_theorem":{"id":"statistical-inference/central_limit_theorem","title":"The Central Limit Theorem","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/concept check/bootstrapping_vs_the_CLT":{"id":"statistical-inference/concept check/bootstrapping_vs_the_CLT","title":"Bootstrapping vs. the CLT","description":"Difference","sidebar":"statsSidebar"},"statistical-inference/concept check/hypothesis_vs_permutation":{"id":"statistical-inference/concept check/hypothesis_vs_permutation","title":"Hypothesis Test vs. Permutation Test","description":"Difference","sidebar":"statsSidebar"},"statistical-inference/hypothesis_test":{"id":"statistical-inference/hypothesis_test","title":"Hypothesis Test","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/intro":{"id":"statistical-inference/intro","title":"intro","description":"Assumption: Assume that df is a DataFrame, ser is a Series, arr is an array, and we already run import babypandas as bpd and import numpy as np.","sidebar":"statsSidebar"},"statistical-inference/null_and_alt":{"id":"statistical-inference/null_and_alt","title":"Null & Alternative Hypothesis","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/obs_and_test_stats":{"id":"statistical-inference/obs_and_test_stats","title":"Observed & Test Statistic","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/p_value":{"id":"statistical-inference/p_value","title":"P-value","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/parameters-and-statistics":{"id":"statistical-inference/parameters-and-statistics","title":"Parameters and Statistics","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/permutation_test":{"id":"statistical-inference/permutation_test","title":"Permutation Test","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/random sampling/df.sample()":{"id":"statistical-inference/random sampling/df.sample()","title":"Sample","description":"df.sample(n, replace=False)","sidebar":"statsSidebar"},"statistical-inference/random sampling/np.random.choice()":{"id":"statistical-inference/random sampling/np.random.choice()","title":"Random Choice","description":"np.random.choice(arr, size, replace=True, p=[p0, p1, ...])","sidebar":"statsSidebar"},"statistical-inference/random sampling/np.random.multinomial()":{"id":"statistical-inference/random sampling/np.random.multinomial()","title":"Random Multinomial","description":"np.random.multinomial(n, [p0, p1, p_2, ...])","sidebar":"statsSidebar"},"statistical-inference/random sampling/np.random.permutation()":{"id":"statistical-inference/random sampling/np.random.permutation()","title":"Random Permutation","description":"np.random.permutation(arr)","sidebar":"statsSidebar"},"statistical-inference/random sampling/sampling":{"id":"statistical-inference/random sampling/sampling","title":"Sampling","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/spread_of_a_distribution":{"id":"statistical-inference/spread_of_a_distribution","title":"Spread of a Distribution","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/standard_normal_distribution":{"id":"statistical-inference/standard_normal_distribution","title":"The Standard Normal Distribution","description":"Concept","sidebar":"statsSidebar"},"statistical-inference/standard_units":{"id":"statistical-inference/standard_units","title":"Standard Units, Correlation, Regression","description":"Concept","sidebar":"statsSidebar"}}}}')}}]); \ No newline at end of file diff --git a/assets/js/1fc0ff79.66617d79.js b/assets/js/1fc0ff79.66617d79.js new file mode 100644 index 00000000..5aec7c19 --- /dev/null +++ b/assets/js/1fc0ff79.66617d79.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3279],{1046:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>o,default:()=>m,frontMatter:()=>a,metadata:()=>d,toc:()=>l});var n=t(4848),i=t(8453),r=t(8597);t(8205);const a={sidebar_position:3,description:"Allows for multiple conditions to be combined at the same time."},o=void 0,d={id:"documentation/if-statements/Logical Operators",title:"Logical Operators",description:"Allows for multiple conditions to be combined at the same time.",source:"@site/docs/documentation/if-statements/Logical Operators.md",sourceDirName:"documentation/if-statements",slug:"/documentation/if-statements/Logical Operators",permalink:"/bpd-reference/docs/documentation/if-statements/Logical Operators",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/if-statements/Logical Operators.md",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,description:"Allows for multiple conditions to be combined at the same time."},sidebar:"docsSidebar",previous:{title:"in \u2044 not in",permalink:"/bpd-reference/docs/documentation/if-statements/in \u2044 not in"},next:{title:"Data Format Conversion",permalink:"/bpd-reference/docs/documentation/data format conversion/"}},c={},l=[];function p(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.p,{children:[(0,n.jsxs)("code",{children:["if and : ",(0,n.jsx)("br",{})]}),"\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,n.jsxs)("code",{children:[" ",(0,n.jsx)("br",{})," "]}),"\n",(0,n.jsxs)("code",{children:["if or : ",(0,n.jsx)("br",{})]}),"\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,n.jsxs)("code",{children:[" ",(0,n.jsx)("br",{})," "]}),"\n",(0,n.jsxs)("code",{children:["if not(): ",(0,n.jsx)("br",{})]}),"\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,n.jsxs)("code",{children:[" ",(0,n.jsx)("br",{})," "]})]}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Allows for multiple conditions to be combined at the same time. "})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Operators:"}),(0,n.jsxs)("dd",{className:"parameter",children:["and : ",(0,n.jsx)("em",{})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If all conditions are satisfied, the if body is executed."}),(0,n.jsxs)("dd",{className:"parameter",children:["or : ",(0,n.jsx)("em",{})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If at least one of the conditions is satisfied, the if body is executed."}),(0,n.jsxs)("dd",{className:"parameter",children:["not : ",(0,n.jsx)("em",{})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If the reverse of the condition is satisfied, the if body is executed."}),(0,n.jsx)("dt",{className:"term",children:"Returns:"}),(0,n.jsx)("dd",{children:"True or False."}),(0,n.jsx)("dt",{className:"term",children:"Return Type:"}),(0,n.jsx)("dd",{children:"Boolean"})]})]}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0],["cat_001","cat","golden",1.5,0.2],["cat_002","cat","black",15.0,9.0],["dog_002","dog","white",80.0,2.0],["dog_003","dog","black",25.0,0.5],["ham_001","hamster","black",1.0,3.0],["ham_002","hamster","golden",0.25,0.2],["cat_003","cat","black",10.0,0.0]]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"def more_descriptive_name(id_str, species, color, weight, age):\n return id_str + ': This ' + color + ' ' + species + ' weighs ' + weight + ' lbs and is ' + age + ' years old'\n \ndef cat_and_dog_info(pet_id):\n id_arr = np.array(pets.get('ID'))\n if pet_id not in id_arr:\n return 'This pet is not in our record'\n pets_info = pets[pets.get('ID') == pet_id]\n age = pets_info.get('Age').iloc[0]\n weight = pets_info.get('Weight').iloc[0]\n species = pets_info.get('Species').iloc[0]\n color = pets_info.get('Color').iloc[0]\n if (species == 'dog') and (age < 1.5):\n return pet_id + ': This is a puppy \ud83d\udc36'\n elif (species == 'cat') and (age < 1):\n return pet_id + ': This is a kitten \ud83d\udc31'\n elif (species == 'dog') or (species == 'cat'):\n weight = str(weight)\n age = str(age)\n return more_descriptive_name(pet_id, species, color, weight, age)\n"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"cat_and_dog_info('dog_001')\n"})}),"\n",(0,n.jsx)(s.p,{children:"'dog_001: This black dog weighs 40.0 lbs and is 5.0 years old'"}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"cat_and_dog_info('cat_001')\n"})}),"\n",(0,n.jsx)(s.p,{children:"'cat_001: This is a kitten \ud83d\udc31'"}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"cat_and_dog_info('cat_009')\n"})}),"\n",(0,n.jsx)(s.p,{children:"'This pet is not in our record'"})]})}function m(e={}){const{wrapper:s}={...(0,i.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>i});t(6540);var n=t(4848);const i=e=>{let{data:s}=e,t=[],i=[],r="",a=[];if(s){const e=JSON.parse(s);t=e.columns||[],i=e.data||[],r=e.indexName||"Index",a=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:r}),t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:i.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:a[s]}),e.map(((e,s)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>i});t(6540);var n=t(4848);const i=e=>{let{data:s}=e,t=[],i=[],r="",a="";if(s)try{const e=JSON.parse(s);r=e.name||"",a=e.dtype||"Unknown type",t=e.index||[],i=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=i.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:t[s]}),(0,n.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",a]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>a,x:()=>o});var n=t(6540);const i={},r=n.createContext(i);function a(e){const s=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),n.createElement(r.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1fc0ff79.fa736358.js b/assets/js/1fc0ff79.fa736358.js deleted file mode 100644 index 9b424c86..00000000 --- a/assets/js/1fc0ff79.fa736358.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3279],{1046:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>o,default:()=>m,frontMatter:()=>a,metadata:()=>d,toc:()=>l});var n=t(4848),i=t(8453),r=t(8597);t(8205);const a={sidebar_position:3,description:"Allows for multiple conditions to be combined at the same time."},o=void 0,d={id:"documentation/if-statements/Logical Operators",title:"Logical Operators",description:"Allows for multiple conditions to be combined at the same time.",source:"@site/docs/documentation/if-statements/Logical Operators.md",sourceDirName:"documentation/if-statements",slug:"/documentation/if-statements/Logical Operators",permalink:"/bpd-reference/docs/documentation/if-statements/Logical Operators",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/if-statements/Logical Operators.md",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,description:"Allows for multiple conditions to be combined at the same time."},sidebar:"docsSidebar",previous:{title:"in \u2044 not in",permalink:"/bpd-reference/docs/documentation/if-statements/in \u2044 not in"},next:{title:"Data Format Conversion",permalink:"/bpd-reference/docs/documentation/data format conversion/"}},c={},l=[];function p(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.p,{children:[(0,n.jsxs)("code",{children:["if and : ",(0,n.jsx)("br",{})]}),"\r\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,n.jsxs)("code",{children:[" ",(0,n.jsx)("br",{})," "]}),"\r\n",(0,n.jsxs)("code",{children:["if or : ",(0,n.jsx)("br",{})]}),"\r\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,n.jsxs)("code",{children:[" ",(0,n.jsx)("br",{})," "]}),"\r\n",(0,n.jsxs)("code",{children:["if not(): ",(0,n.jsx)("br",{})]}),"\r\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,n.jsxs)("code",{children:[" ",(0,n.jsx)("br",{})," "]})]}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Allows for multiple conditions to be combined at the same time. "})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Operators:"}),(0,n.jsxs)("dd",{className:"parameter",children:["and : ",(0,n.jsx)("em",{})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If all conditions are satisfied, the if body is executed."}),(0,n.jsxs)("dd",{className:"parameter",children:["or : ",(0,n.jsx)("em",{})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If at least one of the conditions is satisfied, the if body is executed."}),(0,n.jsxs)("dd",{className:"parameter",children:["not : ",(0,n.jsx)("em",{})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If the reverse of the condition is satisfied, the if body is executed."}),(0,n.jsx)("dt",{className:"term",children:"Returns:"}),(0,n.jsx)("dd",{children:"True or False."}),(0,n.jsx)("dt",{className:"term",children:"Return Type:"}),(0,n.jsx)("dd",{children:"Boolean"})]})]}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0],["cat_001","cat","golden",1.5,0.2],["cat_002","cat","black",15.0,9.0],["dog_002","dog","white",80.0,2.0],["dog_003","dog","black",25.0,0.5],["ham_001","hamster","black",1.0,3.0],["ham_002","hamster","golden",0.25,0.2],["cat_003","cat","black",10.0,0.0]]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"def more_descriptive_name(id_str, species, color, weight, age):\r\n return id_str + ': This ' + color + ' ' + species + ' weighs ' + weight + ' lbs and is ' + age + ' years old'\r\n \r\ndef cat_and_dog_info(pet_id):\r\n id_arr = np.array(pets.get('ID'))\r\n if pet_id not in id_arr:\r\n return 'This pet is not in our record'\r\n pets_info = pets[pets.get('ID') == pet_id]\r\n age = pets_info.get('Age').iloc[0]\r\n weight = pets_info.get('Weight').iloc[0]\r\n species = pets_info.get('Species').iloc[0]\r\n color = pets_info.get('Color').iloc[0]\r\n if (species == 'dog') and (age < 1.5):\r\n return pet_id + ': This is a puppy \ud83d\udc36'\r\n elif (species == 'cat') and (age < 1):\r\n return pet_id + ': This is a kitten \ud83d\udc31'\r\n elif (species == 'dog') or (species == 'cat'):\r\n weight = str(weight)\r\n age = str(age)\r\n return more_descriptive_name(pet_id, species, color, weight, age)\n"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"cat_and_dog_info('dog_001')\n"})}),"\n",(0,n.jsx)(s.p,{children:"'dog_001: This black dog weighs 40.0 lbs and is 5.0 years old'"}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"cat_and_dog_info('cat_001')\n"})}),"\n",(0,n.jsx)(s.p,{children:"'cat_001: This is a kitten \ud83d\udc31'"}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"cat_and_dog_info('cat_009')\n"})}),"\n",(0,n.jsx)(s.p,{children:"'This pet is not in our record'"})]})}function m(e={}){const{wrapper:s}={...(0,i.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>i});t(6540);var n=t(4848);const i=e=>{let{data:s}=e,t=[],i=[],r="",a=[];if(s){const e=JSON.parse(s);t=e.columns||[],i=e.data||[],r=e.indexName||"Index",a=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:r}),t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:i.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:a[s]}),e.map(((e,s)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>i});t(6540);var n=t(4848);const i=e=>{let{data:s}=e,t=[],i=[],r="",a="";if(s)try{const e=JSON.parse(s);r=e.name||"",a=e.dtype||"Unknown type",t=e.index||[],i=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=i.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:t[s]}),(0,n.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",a]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>a,x:()=>o});var n=t(6540);const i={},r=n.createContext(i);function a(e){const s=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),n.createElement(r.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2141c98b.79c64c71.js b/assets/js/2141c98b.79c64c71.js deleted file mode 100644 index 1179449d..00000000 --- a/assets/js/2141c98b.79c64c71.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6363],{3618:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>o,metadata:()=>d,toc:()=>l});var n=t(4848),r=t(8453),a=(t(8597),t(8205));const o={sidebar_position:9},i=void 0,d={id:"documentation/series-methods/ser.str.strip()",title:"ser.str.strip()",description:"ser.str.strip(to_strip = None)",source:"@site/docs/documentation/series-methods/ser.str.strip().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.strip()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.strip()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.strip().md",tags:[],version:"current",sidebarPosition:9,frontMatter:{sidebar_position:9},sidebar:"docsSidebar",previous:{title:"ser.str.split()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.split()"},next:{title:"ser.str.lower()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.lower()"}},c={},l=[];function h(e){const s={code:"code",hr:"hr",pre:"pre",strong:"strong",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"ser.str.strip(to_strip = None)"}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Removes the specified character from each string in the Series from left and right sides."})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Input:"}),(0,n.jsxs)("dd",{className:"parameter",children:["to_strip : ",(0,n.jsx)("em",{children:"string or None, default None"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"A specified character/a set of characters to be removed. All combinations of this set of characters will be stripped. If not specified, removes whitespace (including newlines)."}),(0,n.jsx)("dt",{className:"term",children:"Returns:"}),(0,n.jsx)("dd",{children:"Returns a Series with each element as a list of strings stripped by the specified character/set of characters."}),(0,n.jsx)("dt",{className:"term",children:"Return Type:"}),(0,n.jsx)("dd",{children:"Series"})]})]}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\r\ncomment_ser\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"comment_ser.str.strip()\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":["There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"comment_ser.str.strip('*')\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","All you need is love and a cat.","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"# Notice how nothing changes\r\ncomment_ser.str.strip('?')\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,n.jsxs)("p",{children:[(0,n.jsx)("br",{})," ",(0,n.jsxs)(s.strong,{children:["Remove a set of characters simultaneously. (e.g. remove both ",(0,n.jsx)(s.code,{children:"*"})," and whitespace)"]})," "]}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"comment_ser.str.strip('* ')\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":["There are no bad dogs, only bad owners.","My best birthday present ever!!!","All you need is love and a cat.","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'})]})}function m(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],a="",o=[];if(s){const e=JSON.parse(s);t=e.columns||[],r=e.data||[],a=e.indexName||"Index",o=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:a}),t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:r.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:o[s]}),e.map(((e,s)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],a="",o="";if(s)try{const e=JSON.parse(s);a=e.name||"",o=e.dtype||"Unknown type",t=e.index||[],r=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const i=r.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:i.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:t[s]}),(0,n.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",o]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>o,x:()=>i});var n=t(6540);const r={},a=n.createContext(r);function o(e){const s=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),n.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2141c98b.8ceae88c.js b/assets/js/2141c98b.8ceae88c.js new file mode 100644 index 00000000..41398a78 --- /dev/null +++ b/assets/js/2141c98b.8ceae88c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6363],{3618:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>o,metadata:()=>d,toc:()=>l});var n=t(4848),r=t(8453),a=(t(8597),t(8205));const o={sidebar_position:9},i=void 0,d={id:"documentation/series-methods/ser.str.strip()",title:"ser.str.strip()",description:"ser.str.strip(to_strip = None)",source:"@site/docs/documentation/series-methods/ser.str.strip().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.strip()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.strip()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.strip().md",tags:[],version:"current",sidebarPosition:9,frontMatter:{sidebar_position:9},sidebar:"docsSidebar",previous:{title:"ser.str.split()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.split()"},next:{title:"ser.str.lower()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.lower()"}},c={},l=[];function h(e){const s={code:"code",hr:"hr",pre:"pre",strong:"strong",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"ser.str.strip(to_strip = None)"}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Removes the specified character from each string in the Series from left and right sides."})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Input:"}),(0,n.jsxs)("dd",{className:"parameter",children:["to_strip : ",(0,n.jsx)("em",{children:"string or None, default None"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"A specified character/a set of characters to be removed. All combinations of this set of characters will be stripped. If not specified, removes whitespace (including newlines)."}),(0,n.jsx)("dt",{className:"term",children:"Returns:"}),(0,n.jsx)("dd",{children:"Returns a Series with each element as a list of strings stripped by the specified character/set of characters."}),(0,n.jsx)("dt",{className:"term",children:"Return Type:"}),(0,n.jsx)("dd",{children:"Series"})]})]}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\ncomment_ser\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"comment_ser.str.strip()\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":["There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"comment_ser.str.strip('*')\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","All you need is love and a cat.","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"# Notice how nothing changes\ncomment_ser.str.strip('?')\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,n.jsxs)("p",{children:[(0,n.jsx)("br",{})," ",(0,n.jsxs)(s.strong,{children:["Remove a set of characters simultaneously. (e.g. remove both ",(0,n.jsx)(s.code,{children:"*"})," and whitespace)"]})," "]}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"comment_ser.str.strip('* ')\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":["There are no bad dogs, only bad owners.","My best birthday present ever!!!","All you need is love and a cat.","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'})]})}function m(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],a="",o=[];if(s){const e=JSON.parse(s);t=e.columns||[],r=e.data||[],a=e.indexName||"Index",o=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:a}),t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:r.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:o[s]}),e.map(((e,s)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],a="",o="";if(s)try{const e=JSON.parse(s);a=e.name||"",o=e.dtype||"Unknown type",t=e.index||[],r=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const i=r.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:i.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:t[s]}),(0,n.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",o]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>o,x:()=>i});var n=t(6540);const r={},a=n.createContext(r);function o(e){const s=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),n.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/26533384.8b1fc360.js b/assets/js/26533384.8b1fc360.js deleted file mode 100644 index 93869175..00000000 --- a/assets/js/26533384.8b1fc360.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7661],{5825:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>c,contentTitle:()=>d,default:()=>h,frontMatter:()=>a,metadata:()=>i,toc:()=>l});var t=r(4848),n=r(8453),o=(r(8597),r(8205));const a={sidebar_position:10},d=void 0,i={id:"documentation/series-methods/ser.str.lower()",title:"ser.str.lower()",description:"ser.str.lower()",source:"@site/docs/documentation/series-methods/ser.str.lower().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.lower()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.lower()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.lower().md",tags:[],version:"current",sidebarPosition:10,frontMatter:{sidebar_position:10},sidebar:"docsSidebar",previous:{title:"ser.str.strip()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.strip()"},next:{title:"ser.str.upper()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.upper()"}},c={},l=[];function m(e){const s={code:"code",hr:"hr",pre:"pre",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.str.lower()"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Converts strings in the Series to lowercase."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"Returns a Series with each element lowercased."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"Series"})]})]}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\r\ncomment_ser\n"})}),"\n",(0,t.jsx)(o.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser.str.lower()\n"})}),"\n",(0,t.jsx)(o.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" there are no bad dogs, only bad owners.","my best birthday present ever!!!","****all you need is love and a cat.****","love is a wet nose and a wagging tail.","be the person your dog thinks you are.","no, thank you!","no, thank you!","no, thank you!"]}'})]})}function h(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,r)=>{r.d(s,{A:()=>n});r(6540);var t=r(4848);const n=e=>{let{data:s}=e,r=[],n=[],o="",a=[];if(s){const e=JSON.parse(s);r=e.columns||[],n=e.data||[],o=e.indexName||"Index",a=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:o}),r.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:n.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:a[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},s);var r}))]},s)))})]})})}},8205:(e,s,r)=>{r.d(s,{A:()=>n});r(6540);var t=r(4848);const n=e=>{let{data:s}=e,r=[],n=[],o="",a="";if(s)try{const e=JSON.parse(s);o=e.name||"",a=e.dtype||"Unknown type",r=e.index||[],n=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const d=n.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:d.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:r[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",o,", dtype: ",a]})]})}},8453:(e,s,r)=>{r.d(s,{R:()=>a,x:()=>d});var t=r(6540);const n={},o=t.createContext(n);function a(e){const s=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),t.createElement(o.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/26533384.ba125169.js b/assets/js/26533384.ba125169.js new file mode 100644 index 00000000..18e11027 --- /dev/null +++ b/assets/js/26533384.ba125169.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7661],{5825:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>c,contentTitle:()=>d,default:()=>h,frontMatter:()=>a,metadata:()=>i,toc:()=>l});var t=r(4848),n=r(8453),o=(r(8597),r(8205));const a={sidebar_position:10},d=void 0,i={id:"documentation/series-methods/ser.str.lower()",title:"ser.str.lower()",description:"ser.str.lower()",source:"@site/docs/documentation/series-methods/ser.str.lower().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.lower()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.lower()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.lower().md",tags:[],version:"current",sidebarPosition:10,frontMatter:{sidebar_position:10},sidebar:"docsSidebar",previous:{title:"ser.str.strip()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.strip()"},next:{title:"ser.str.upper()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.upper()"}},c={},l=[];function m(e){const s={code:"code",hr:"hr",pre:"pre",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.str.lower()"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Converts strings in the Series to lowercase."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"Returns a Series with each element lowercased."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"Series"})]})]}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\ncomment_ser\n"})}),"\n",(0,t.jsx)(o.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser.str.lower()\n"})}),"\n",(0,t.jsx)(o.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" there are no bad dogs, only bad owners.","my best birthday present ever!!!","****all you need is love and a cat.****","love is a wet nose and a wagging tail.","be the person your dog thinks you are.","no, thank you!","no, thank you!","no, thank you!"]}'})]})}function h(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,r)=>{r.d(s,{A:()=>n});r(6540);var t=r(4848);const n=e=>{let{data:s}=e,r=[],n=[],o="",a=[];if(s){const e=JSON.parse(s);r=e.columns||[],n=e.data||[],o=e.indexName||"Index",a=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:o}),r.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:n.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:a[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},s);var r}))]},s)))})]})})}},8205:(e,s,r)=>{r.d(s,{A:()=>n});r(6540);var t=r(4848);const n=e=>{let{data:s}=e,r=[],n=[],o="",a="";if(s)try{const e=JSON.parse(s);o=e.name||"",a=e.dtype||"Unknown type",r=e.index||[],n=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const d=n.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:d.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:r[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",o,", dtype: ",a]})]})}},8453:(e,s,r)=>{r.d(s,{R:()=>a,x:()=>d});var t=r(6540);const n={},o=t.createContext(n);function a(e){const s=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),t.createElement(o.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2667.1d2d8cb8.js b/assets/js/2667.1d2d8cb8.js new file mode 100644 index 00000000..582af498 --- /dev/null +++ b/assets/js/2667.1d2d8cb8.js @@ -0,0 +1 @@ +(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2667],{9320:function(e,t,n){!function(e,t,n,s){"use strict";const o=0,r=1,i=2,a=3,c=4,l=-1;class u{constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n,this._ignoreList=new t.SetArray}}function h(e){return e}function p(e,t,n,s,o,r,i,a){return b(!1,e,t,n,s,o,r,i,a)}function d(e,t){return N(!1,e,t)}const f=(e,t,n,s,o,r,i,a)=>b(!0,e,t,n,s,o,r,i,a),m=(e,t)=>N(!0,e,t);function k(e,n,s){const{_sources:o,_sourcesContent:r}=h(e);r[t.put(o,n)]=s}function g(e,n,s=!0){const{_sources:o,_sourcesContent:r,_ignoreList:i}=h(e),a=t.put(o,n);a===r.length&&(r[a]=null),s?t.put(i,a):t.remove(i,a)}function x(e){const{_mappings:t,_sources:n,_sourcesContent:s,_names:o,_ignoreList:r}=h(e);return C(t),{version:3,file:e.file||void 0,names:o.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:s,mappings:t,ignoreList:r.array}}function y(e){const t=x(e);return Object.assign(Object.assign({},t),{mappings:n.encode(t.mappings)})}function _(e){const t=new s.TraceMap(e),n=new u({file:t.file,sourceRoot:t.sourceRoot});return A(h(n)._names,t.names),A(h(n)._sources,t.sources),h(n)._sourcesContent=t.sourcesContent||t.sources.map((()=>null)),h(n)._mappings=s.decodedMappings(t),t.ignoreList&&A(h(n)._ignoreList,t.ignoreList),n}function T(e){const t=[],{_mappings:n,_sources:s,_names:l}=h(e);for(let u=0;u=0&&!(t>=e[s][o]);n=s--);return n}function w(e,t,n){for(let s=e.length;s>t;s--)e[s]=e[s-1];e[t]=n}function C(e){const{length:t}=e;let n=t;for(let s=n-1;s>=0&&!(e[s].length>0);n=s,s--);ns&&(s=o)}f(n,s);const o=n.query+n.hash;switch(s){case 2:case 3:return o;case 4:{const s=n.path.slice(1);return s?a(t||e)&&!a(s)?"./"+s+o:s+o:o||"."}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}return m}()},3534:function(e,t){!function(e){"use strict";class t{constructor(){this._indexes={__proto__:null},this.array=[]}}function n(e){return e}function s(e,t){return n(e)._indexes[t]}function o(e,t){const o=s(e,t);if(void 0!==o)return o;const{array:r,_indexes:i}=n(e),a=r.push(t);return i[t]=a-1}function r(e){const{array:t,_indexes:s}=n(e);0!==t.length&&(s[t.pop()]=void 0)}function i(e,t){const o=s(e,t);if(void 0===o)return;const{array:r,_indexes:i}=n(e);for(let n=o+1;nBuffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n>>=1,c&&(o=-2147483648|-o),n[s]+=o,t}function u(e,n,s){return!(n>=s)&&e.charCodeAt(n)!==t}function h(e){e.sort(p)}function p(e,t){return e[0]-t[0]}function d(e){const s=new Int32Array(5),o=16384,r=o-36,a=new Uint8Array(o),c=a.subarray(0,r);let l=0,u="";for(let h=0;h0&&(l===o&&(u+=i.decode(a),l=0),a[l++]=n),0!==p.length){s[0]=0;for(let e=0;er&&(u+=i.decode(c),a.copyWithin(0,r,l),l-=r),e>0&&(a[l++]=t),l=f(a,l,s,n,0),1!==n.length&&(l=f(a,l,s,n,1),l=f(a,l,s,n,2),l=f(a,l,s,n,3),4!==n.length&&(l=f(a,l,s,n,4)))}}}return u+i.decode(a.subarray(0,l))}function f(e,t,n,s,r){const i=s[r];let a=i-n[r];n[r]=i,a=a<0?-a<<1|1:a<<1;do{let n=31&a;a>>>=5,a>0&&(n|=32),e[t++]=o[n]}while(a>0);return t}e.decode=a,e.encode=d,Object.defineProperty(e,"__esModule",{value:!0})}(t)},2802:function(e,t,n){!function(e,t,n){"use strict";function s(e,t){return t&&!t.endsWith("/")&&(t+="/"),n(e,t)}function o(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const r=0,i=1,a=2,c=3,l=4,u=1,h=2;function p(e,t){const n=d(e,0);if(n===e.length)return e;t||(e=e.slice());for(let s=n;s>1),i=e[o][r]-t;if(0===i)return g=!0,o;i<0?n=o+1:s=o-1}return g=!1,n-1}function y(e,t,n){for(let s=n+1;s=0&&e[s][r]===t;n=s--);return n}function T(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function b(e,t,n,s){const{lastKey:o,lastNeedle:i,lastIndex:a}=n;let c=0,l=e.length-1;if(s===o){if(t===i)return g=-1!==a&&e[a][r]===t,a;t>=i?c=-1===a?0:a:l=a}return n.lastKey=s,n.lastNeedle=t,n.lastIndex=x(e,t,c,l)}function v(e,t){const n=t.map(w);for(let s=0;st;s--)e[s]=e[s-1];e[t]=n}function w(){return{__proto__:null}}const C=function(e,t){const n=A(e);if(!("sections"in n))return new P(n,t);const s=[],o=[],r=[],i=[],a=[];return E(n,t,s,o,r,i,a,0,0,1/0,1/0),G({version:3,file:n.file,names:i,sources:o,sourcesContent:r,mappings:s,ignoreList:a})};function A(e){return"string"==typeof e?JSON.parse(e):e}function E(e,t,n,s,o,r,i,a,c,l,u){const{sections:h}=e;for(let p=0;pf)return;const t=j(n,e),s=0===I?d:0,o=_[I];for(let n=0;n=m)return;if(1===u.length){t.push([h]);continue}const p=x+u[i],d=u[a],k=u[c];t.push(4===u.length?[h,p,d,k]:[h,p,d,k,y+u[l]])}}}function N(e,t){for(let n=0;ns(e||"",d)));const{mappings:f}=r;"string"==typeof f?(this._encoded=f,this._decoded=void 0):(this._encoded=void 0,this._decoded=p(f,n)),this._decodedMemo=T(),this._bySources=void 0,this._bySourceMemos=void 0}}function B(e){return e}function q(e){var n,s;return null!==(n=(s=B(e))._encoded)&&void 0!==n?n:s._encoded=t.encode(B(e)._decoded)}function M(e){var n;return(n=B(e))._decoded||(n._decoded=t.decode(B(e)._encoded))}function F(e,t,n){const s=M(e);if(t>=s.length)return null;const o=s[t],r=ee(o,B(e)._decodedMemo,t,n,D);return-1===r?null:o[r]}function $(e,t){let{line:n,column:s,bias:o}=t;if(n--,n<0)throw new Error(R);if(s<0)throw new Error(L);const r=M(e);if(n>=r.length)return Q(null,null,null,null);const u=r[n],h=ee(u,B(e)._decodedMemo,n,s,o||D);if(-1===h)return Q(null,null,null,null);const p=u[h];if(1===p.length)return Q(null,null,null,null);const{names:d,resolvedSources:f}=e;return Q(f[p[i]],p[a]+1,p[c],5===p.length?d[p[l]]:null)}function U(e,t){const{source:n,line:s,column:o,bias:r}=t;return ne(e,n,s,o,r||D,!1)}function K(e,t){const{source:n,line:s,column:o,bias:r}=t;return ne(e,n,s,o,r||O,!0)}function H(e,t){const n=M(e),{names:s,resolvedSources:o}=e;for(let r=0;r{"use strict";n.d(t,{A:()=>S});var s=n(6540),o=n(4848);function r(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=s.Children.toArray(e),n=t.find((e=>s.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),r=t.filter((e=>e!==n)),i=n?.props.children;return{mdxAdmonitionTitle:i,rest:r.length>0?(0,o.jsx)(o.Fragment,{children:r}):null}}(e.children),r=e.title??t;return{...e,...r&&{title:r},children:n}}var i=n(4164),a=n(1312),c=n(7559);const l={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function u(e){let{type:t,className:n,children:s}=e;return(0,o.jsx)("div",{className:(0,i.A)(c.G.common.admonition,c.G.common.admonitionType(t),l.admonition,n),children:s})}function h(e){let{icon:t,title:n}=e;return(0,o.jsxs)("div",{className:l.admonitionHeading,children:[(0,o.jsx)("span",{className:l.admonitionIcon,children:t}),n]})}function p(e){let{children:t}=e;return t?(0,o.jsx)("div",{className:l.admonitionContent,children:t}):null}function d(e){const{type:t,icon:n,title:s,children:r,className:i}=e;return(0,o.jsxs)(u,{type:t,className:i,children:[s||n?(0,o.jsx)(h,{title:s,icon:n}):null,(0,o.jsx)(p,{children:r})]})}function f(e){return(0,o.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})})}const m={icon:(0,o.jsx)(f,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function k(e){return(0,o.jsx)(d,{...m,...e,className:(0,i.A)("alert alert--secondary",e.className),children:e.children})}function g(e){return(0,o.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})})}const x={icon:(0,o.jsx)(g,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function y(e){return(0,o.jsx)(d,{...x,...e,className:(0,i.A)("alert alert--success",e.className),children:e.children})}function _(e){return(0,o.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})})}const T={icon:(0,o.jsx)(_,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function b(e){return(0,o.jsx)(d,{...T,...e,className:(0,i.A)("alert alert--info",e.className),children:e.children})}function v(e){return(0,o.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})})}const I={icon:(0,o.jsx)(v,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function w(e){return(0,o.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})})}const C={icon:(0,o.jsx)(w,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const A={icon:(0,o.jsx)(v,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const E={...{note:k,tip:y,info:b,warning:function(e){return(0,o.jsx)(d,{...I,...e,className:(0,i.A)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,o.jsx)(d,{...C,...e,className:(0,i.A)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,o.jsx)(k,{title:"secondary",...e}),important:e=>(0,o.jsx)(b,{title:"important",...e}),success:e=>(0,o.jsx)(y,{title:"success",...e}),caution:function(e){return(0,o.jsx)(d,{...A,...e,className:(0,i.A)("alert alert--warning",e.className),children:e.children})}}};function S(e){const t=r(e),n=(s=t.type,E[s]||(console.warn(`No admonition component found for admonition type "${s}". Using Info as fallback.`),E.info));var s;return(0,o.jsx)(n,{...t})}},4336:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});n(6540);var s=n(4164),o=n(1312),r=n(7559),i=n(8774);const a={iconEdit:"iconEdit_Z9Sw"};var c=n(4848);function l(e){let{className:t,...n}=e;return(0,c.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,s.A)(a.iconEdit,t),"aria-hidden":"true",...n,children:(0,c.jsx)("g",{children:(0,c.jsx)("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})})})}function u(e){let{editUrl:t}=e;return(0,c.jsxs)(i.A,{to:t,className:r.G.common.editThisPage,children:[(0,c.jsx)(l,{}),(0,c.jsx)(o.A,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}var h=n(6266);function p(e){let{lastUpdatedAt:t}=e;const n=new Date(t),s=(0,h.i)({day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(n);return(0,c.jsx)(o.A,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,c.jsx)("b",{children:(0,c.jsx)("time",{dateTime:n.toISOString(),itemProp:"dateModified",children:s})})},children:" on {date}"})}function d(e){let{lastUpdatedBy:t}=e;return(0,c.jsx)(o.A,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,c.jsx)("b",{children:t})},children:" by {user}"})}function f(e){let{lastUpdatedAt:t,lastUpdatedBy:n}=e;return(0,c.jsxs)("span",{className:r.G.common.lastUpdated,children:[(0,c.jsx)(o.A,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t?(0,c.jsx)(p,{lastUpdatedAt:t}):"",byUser:n?(0,c.jsx)(d,{lastUpdatedBy:n}):""},children:"Last updated{atDate}{byUser}"}),!1]})}const m={lastUpdated:"lastUpdated_JAkA"};function k(e){let{className:t,editUrl:n,lastUpdatedAt:o,lastUpdatedBy:r}=e;return(0,c.jsxs)("div",{className:(0,s.A)("row",t),children:[(0,c.jsx)("div",{className:"col",children:n&&(0,c.jsx)(u,{editUrl:n})}),(0,c.jsx)("div",{className:(0,s.A)("col",m.lastUpdated),children:(o||r)&&(0,c.jsx)(f,{lastUpdatedAt:o,lastUpdatedBy:r})})]})}},3808:(e,t,n)=>{"use strict";n.d(t,{A:()=>gi});var s=n(6540),o=n(8453),r=n(5260),i=n(4164),a=n(2303),c=n(1765),l={characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};function u(e){var t=window.getSelection();t.empty(),t.addRange(e)}function h(e){return(e.metaKey||e.ctrlKey)&&!e.altKey&&"KeyZ"===e.code}function p(e){e=[e.firstChild];for(var t,n="";t=e.pop();)t.nodeType===Node.TEXT_NODE?n+=t.textContent:t.nodeType===Node.ELEMENT_NODE&&"BR"===t.nodeName&&(n+="\n"),t.nextSibling&&e.push(t.nextSibling),t.firstChild&&e.push(t.firstChild);return"\n"!==n[n.length-1]&&(n+="\n"),n}function d(e){var t=window.getSelection().getRangeAt(0),n=t.collapsed?0:t.toString().length,s=document.createRange();return s.setStart(e,0),s.setEnd(t.startContainer,t.startOffset),{position:e=(s=s.toString()).length,extent:n,content:s=(s=s.split("\n"))[t=s.length-1],line:t}}function f(e,t,n){0>=t&&(t=0),(!n||0>n)&&(n=t);var s=document.createRange();e=[e.firstChild];for(var o,r=0,i=t;o=e[e.length-1];){if(o.nodeType===Node.TEXT_NODE){if(r+o.textContent.length>=i){var a=i-r;if(i===t){if(i=s,a=i){if(i===t){if(a=s,0";case k.template:return"template";case k.ellipsis:return"...";case k.backQuote:return"`";case k.dollarBraceL:return"${";case k.at:return"@";case k.hash:return"#";case k.eq:return"=";case k.assign:return"_=";case k.preIncDec:case k.postIncDec:return"++/--";case k.bang:return"!";case k.tilde:return"~";case k.pipeline:return"|>";case k.nullishCoalescing:return"??";case k.logicalOR:return"||";case k.logicalAND:return"&&";case k.bitwiseOR:return"|";case k.bitwiseXOR:return"^";case k.bitwiseAND:return"&";case k.equality:return"==/!=";case k.lessThan:return"<";case k.greaterThan:return">";case k.relationalOrEqual:return"<=/>=";case k.bitShiftL:return"<<";case k.bitShiftR:return">>/>>>";case k.plus:return"+";case k.minus:return"-";case k.modulo:return"%";case k.star:return"*";case k.slash:return"/";case k.exponent:return"**";case k.jsxName:return"jsxName";case k.jsxText:return"jsxText";case k.jsxEmptyText:return"jsxEmptyText";case k.jsxTagStart:return"jsxTagStart";case k.jsxTagEnd:return"jsxTagEnd";case k.typeParameterStart:return"typeParameterStart";case k.nonNullAssertion:return"nonNullAssertion";case k._break:return"break";case k._case:return"case";case k._catch:return"catch";case k._continue:return"continue";case k._debugger:return"debugger";case k._default:return"default";case k._do:return"do";case k._else:return"else";case k._finally:return"finally";case k._for:return"for";case k._function:return"function";case k._if:return"if";case k._return:return"return";case k._switch:return"switch";case k._throw:return"throw";case k._try:return"try";case k._var:return"var";case k._let:return"let";case k._const:return"const";case k._while:return"while";case k._with:return"with";case k._new:return"new";case k._this:return"this";case k._super:return"super";case k._class:return"class";case k._extends:return"extends";case k._export:return"export";case k._import:return"import";case k._yield:return"yield";case k._null:return"null";case k._true:return"true";case k._false:return"false";case k._in:return"in";case k._instanceof:return"instanceof";case k._typeof:return"typeof";case k._void:return"void";case k._delete:return"delete";case k._async:return"async";case k._get:return"get";case k._set:return"set";case k._declare:return"declare";case k._readonly:return"readonly";case k._abstract:return"abstract";case k._static:return"static";case k._public:return"public";case k._private:return"private";case k._protected:return"protected";case k._override:return"override";case k._as:return"as";case k._enum:return"enum";case k._type:return"type";case k._implements:return"implements";default:return""}}(e)}"`)}function U(e="Unexpected token",t=w.start){if(w.error)return;const n=new SyntaxError(e);n.pos=t,w.error=n,w.pos=C.length,ve(k.eof)}const K=[9,11,12,g.space,g.nonBreakingSpace,g.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],H=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,V=new Uint8Array(65536);for(const xi of K)V[xi]=1;function W(e){if(e<48)return 36===e;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return 95===e;if(e<123)return!0;if(e<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const z=new Uint8Array(65536);for(let xi=0;xi<128;xi++)z[xi]=W(xi)?1:0;for(let xi=128;xi<65536;xi++)z[xi]=1;for(const xi of K)z[xi]=0;z[8232]=0,z[8233]=0;const G=z.slice();for(let xi=g.digit0;xi<=g.digit9;xi++)G[xi]=0;const X=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,m._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,324,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,351,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,378,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,405,-1,-1,-1,-1,-1,-1,-1,-1,m._accessor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._as<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,459,-1,-1,-1,-1,-1,594,-1,-1,-1,-1,-1,-1,486,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,513,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,540,-1,-1,-1,-1,-1,-1,m._assert<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,567,-1,-1,-1,-1,-1,-1,-1,m._asserts<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,621,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,648,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._async<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,702,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,729,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,756,-1,-1,-1,-1,-1,-1,m._await<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,810,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,837,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,864,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,891,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._break<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,945,-1,-1,-1,-1,-1,-1,1107,-1,-1,-1,1242,-1,-1,1350,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,972,1026,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,999,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._case<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1053,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._catch<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1134,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1161,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1188,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1215,-1,-1,-1,-1,-1,-1,-1,m._checks<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1269,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1296,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1323,-1,-1,-1,-1,-1,-1,-1,1+(k._class<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1377,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1404,1620,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1431,-1,-1,-1,-1,-1,-1,1+(k._const<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1458,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1485,-1,-1,-1,-1,-1,-1,-1,-1,1512,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1539,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1566,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1593,-1,-1,-1,-1,-1,-1,-1,-1,m._constructor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1647,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1674,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1701,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1728,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._continue<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1782,-1,-1,-1,-1,-1,-1,-1,-1,-1,2349,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1809,1971,-1,-1,2106,-1,-1,-1,-1,-1,2241,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1836,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1863,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1890,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1917,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1944,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._debugger<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1998,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2025,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2052,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2079,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._declare<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2133,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2160,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2187,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2214,-1,-1,-1,-1,-1,-1,1+(k._default<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2268,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2295,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2322,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._delete<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._do<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2403,-1,2484,-1,-1,-1,-1,-1,-1,-1,-1,-1,2565,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2430,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._else<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2511,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2538,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._enum<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2592,-1,-1,-1,2727,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2619,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2646,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2673,-1,-1,-1,-1,-1,-1,1+(k._export<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2700,-1,-1,-1,-1,-1,-1,-1,m._exports<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2754,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2781,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2808,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2835,-1,-1,-1,-1,-1,-1,-1,1+(k._extends<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2889,-1,-1,-1,-1,-1,-1,-1,2997,-1,-1,-1,-1,-1,3159,-1,-1,3213,-1,-1,3294,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2916,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2943,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2970,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._false<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3024,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3051,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3078,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3105,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3132,-1,1+(k._finally<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3186,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._for<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3240,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3267,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._from<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3321,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3348,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3375,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3402,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3429,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3456,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._function<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3510,-1,-1,-1,-1,-1,-1,3564,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3537,-1,-1,-1,-1,-1,-1,m._get<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3591,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3618,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3645,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._global<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3726,-1,-1,-1,-1,-1,-1,3753,4077,-1,-1,-1,-1,4590,-1,-1,-1,-1,-1,-1,-1,1+(k._if<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3780,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3807,-1,-1,3996,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3834,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3861,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3888,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3915,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3942,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3969,-1,-1,-1,-1,-1,-1,-1,m._implements<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4023,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4050,-1,-1,-1,-1,-1,-1,1+(k._import<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._in<<1),-1,-1,-1,-1,-1,4104,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4185,4401,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4131,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4158,-1,-1,-1,-1,-1,-1,-1,-1,m._infer<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4212,-1,-1,-1,-1,-1,-1,-1,4239,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4266,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4293,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4320,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4347,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4374,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._instanceof<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4428,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4455,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4482,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4509,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4536,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4563,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._interface<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._is<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4644,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4671,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4698,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4725,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._keyof<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4779,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4806,-1,-1,-1,-1,-1,-1,1+(k._let<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4860,-1,-1,-1,-1,-1,4995,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4887,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4914,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4941,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4968,-1,-1,-1,-1,-1,-1,-1,m._mixins<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5022,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5049,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5076,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5103,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._module<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5157,-1,-1,-1,5373,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5427,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5184,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5211,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5238,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5265,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5292,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5319,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5346,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._namespace<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5400,-1,-1,-1,1+(k._new<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5454,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5481,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._null<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5535,-1,-1,-1,-1,-1,-1,-1,-1,-1,5562,-1,-1,-1,-1,5697,5751,-1,-1,-1,-1,m._of<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5589,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5616,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5643,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5670,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._opaque<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5724,-1,-1,-1,-1,-1,-1,m._out<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5778,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5805,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5832,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5859,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5886,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5913,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._override<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5967,-1,-1,6345,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5994,-1,-1,-1,-1,-1,6129,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6021,-1,-1,-1,-1,-1,6048,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6075,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6102,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._private<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6156,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6183,-1,-1,-1,-1,-1,-1,-1,-1,-1,6318,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6210,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6237,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6264,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6291,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._protected<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._proto<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6372,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6399,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6426,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6453,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._public<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6507,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6534,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6696,-1,-1,6831,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6561,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6588,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6615,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6642,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6669,-1,m._readonly<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6723,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6750,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6777,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6804,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._require<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6858,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6885,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6912,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._return<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6966,-1,-1,-1,7182,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7236,7371,-1,7479,-1,7614,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6993,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7020,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7047,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7074,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7101,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7128,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7155,-1,-1,-1,-1,-1,-1,-1,m._satisfies<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7209,-1,-1,-1,-1,-1,-1,m._set<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7263,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7290,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7317,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7344,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._static<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7398,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7425,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7452,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._super<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7506,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7533,-1,-1,-1,-1,-1,-1,-1,-1,-1,7560,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7587,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._switch<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7641,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7668,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7695,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7722,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._symbol<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7776,-1,-1,-1,-1,-1,-1,-1,-1,-1,7938,-1,-1,-1,-1,-1,-1,8046,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7803,-1,-1,-1,-1,-1,-1,-1,-1,7857,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7830,-1,-1,-1,-1,-1,-1,-1,1+(k._this<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7884,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7911,-1,-1,-1,1+(k._throw<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7965,-1,-1,-1,8019,-1,-1,-1,-1,-1,-1,7992,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._true<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._try<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8073,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._type<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8127,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8154,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._typeof<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8208,-1,-1,-1,-1,8343,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8235,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8262,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8289,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8316,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._unique<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8370,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8397,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8424,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._using<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8478,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8532,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8505,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._var<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8559,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8586,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._void<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8640,8748,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8667,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8721,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._while<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._with<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._yield<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);var J,Y;function Q(e){const t=e.identifierRole;return t===J.TopLevelDeclaration||t===J.FunctionScopedDeclaration||t===J.BlockScopedDeclaration||t===J.ObjectShorthandTopLevelDeclaration||t===J.ObjectShorthandFunctionScopedDeclaration||t===J.ObjectShorthandBlockScopedDeclaration}function Z(e){const t=e.identifierRole;return t===J.FunctionScopedDeclaration||t===J.BlockScopedDeclaration||t===J.ObjectShorthandFunctionScopedDeclaration||t===J.ObjectShorthandBlockScopedDeclaration}function ee(e){const t=e.identifierRole;return t===J.TopLevelDeclaration||t===J.ObjectShorthandTopLevelDeclaration||t===J.ImportDeclaration}function te(e){const t=e.identifierRole;return t===J.TopLevelDeclaration||t===J.BlockScopedDeclaration||t===J.ObjectShorthandTopLevelDeclaration||t===J.ObjectShorthandBlockScopedDeclaration}function ne(e){const t=e.identifierRole;return t===J.FunctionScopedDeclaration||t===J.ObjectShorthandFunctionScopedDeclaration}function se(e){return e.identifierRole===J.ObjectShorthandTopLevelDeclaration||e.identifierRole===J.ObjectShorthandBlockScopedDeclaration||e.identifierRole===J.ObjectShorthandFunctionScopedDeclaration}!function(e){e[e.Access=0]="Access";e[e.ExportAccess=1]="ExportAccess";e[e.TopLevelDeclaration=2]="TopLevelDeclaration";e[e.FunctionScopedDeclaration=3]="FunctionScopedDeclaration";e[e.BlockScopedDeclaration=4]="BlockScopedDeclaration";e[e.ObjectShorthandTopLevelDeclaration=5]="ObjectShorthandTopLevelDeclaration";e[e.ObjectShorthandFunctionScopedDeclaration=6]="ObjectShorthandFunctionScopedDeclaration";e[e.ObjectShorthandBlockScopedDeclaration=7]="ObjectShorthandBlockScopedDeclaration";e[e.ObjectShorthand=8]="ObjectShorthand";e[e.ImportDeclaration=9]="ImportDeclaration";e[e.ObjectKey=10]="ObjectKey";e[e.ImportAccess=11]="ImportAccess"}(J||(J={})),function(e){e[e.NoChildren=0]="NoChildren";e[e.OneChild=1]="OneChild";e[e.StaticChildren=2]="StaticChildren";e[e.KeyAfterPropSpread=3]="KeyAfterPropSpread"}(Y||(Y={}));class oe{constructor(){this.type=w.type,this.contextualKeyword=w.contextualKeyword,this.start=w.start,this.end=w.end,this.scopeDepth=w.scopeDepth,this.isType=w.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function re(){w.tokens.push(new oe),ye()}function ie(){w.tokens.push(new oe),w.start=w.pos,function(){for(;;){if(w.pos>=C.length)return void U("Unterminated template");const e=C.charCodeAt(w.pos);if(e===g.graveAccent||e===g.dollarSign&&C.charCodeAt(w.pos+1)===g.leftCurlyBrace)return w.pos===w.start&&pe(k.template)?e===g.dollarSign?(w.pos+=2,void ve(k.dollarBraceL)):(++w.pos,void ve(k.backQuote)):void ve(k.template);e===g.backslash&&w.pos++,w.pos++}}()}function ae(){w.type===k.assign&&--w.pos,function(){const e=w.pos;let t=!1,n=!1;for(;;){if(w.pos>=C.length)return void U("Unterminated regular expression",e);const s=C.charCodeAt(w.pos);if(t)t=!1;else{if(s===g.leftSquareBracket)n=!0;else if(s===g.rightSquareBracket&&n)n=!1;else if(s===g.slash&&!n)break;t=s===g.backslash}++w.pos}++w.pos,function(){for(;w.pos=C.length){const e=w.tokens;return e.length>=2&&e[e.length-1].start>=C.length&&e[e.length-2].start>=C.length&&U("Unexpectedly reached the end of input."),void ve(k.eof)}var e;e=C.charCodeAt(w.pos),G[e]||e===g.backslash||e===g.atSign&&C.charCodeAt(w.pos+1)===g.atSign?function(){let e=0,t=0,n=w.pos;for(;ng.lowercaseZ));){const s=X[e+(t-g.lowercaseA)+1];if(-1===s)break;e=s,n++}const s=X[e];if(s>-1&&!z[t])return w.pos=n,void(1&s?ve(s>>>1):ve(k.name,s>>>1));for(;nC.length)return void U("Unterminated comment",w.pos-2);w.pos+=2}function Te(e){let t=C.charCodeAt(w.pos+=e);if(w.pos=g.digit0&&e<=g.digit9?Se(!0):e===g.dot&&C.charCodeAt(w.pos+2)===g.dot?(w.pos+=3,ve(k.ellipsis)):(++w.pos,ve(k.dot))}();case g.leftParenthesis:return++w.pos,void ve(k.parenL);case g.rightParenthesis:return++w.pos,void ve(k.parenR);case g.semicolon:return++w.pos,void ve(k.semi);case g.comma:return++w.pos,void ve(k.comma);case g.leftSquareBracket:return++w.pos,void ve(k.bracketL);case g.rightSquareBracket:return++w.pos,void ve(k.bracketR);case g.leftCurlyBrace:return void(I&&C.charCodeAt(w.pos+1)===g.verticalBar?Ae(k.braceBarL,2):(++w.pos,ve(k.braceL)));case g.rightCurlyBrace:return++w.pos,void ve(k.braceR);case g.colon:return void(C.charCodeAt(w.pos+1)===g.colon?Ae(k.doubleColon,2):(++w.pos,ve(k.colon)));case g.questionMark:return void function(){const e=C.charCodeAt(w.pos+1),t=C.charCodeAt(w.pos+2);e!==g.questionMark||I&&w.isType?e!==g.dot||t>=g.digit0&&t<=g.digit9?(++w.pos,ve(k.question)):(w.pos+=2,ve(k.questionDot)):t===g.equalsTo?Ae(k.assign,3):Ae(k.nullishCoalescing,2)}();case g.atSign:return++w.pos,void ve(k.at);case g.graveAccent:return++w.pos,void ve(k.backQuote);case g.digit0:{const e=C.charCodeAt(w.pos+1);if(e===g.lowercaseX||e===g.uppercaseX||e===g.lowercaseO||e===g.uppercaseO||e===g.lowercaseB||e===g.uppercaseB)return void function(){w.pos+=2;for(;;){const e=C.charCodeAt(w.pos);if(!(e>=g.digit0&&e<=g.digit9||e>=g.lowercaseA&&e<=g.lowercaseF||e>=g.uppercaseA&&e<=g.uppercaseF||e===g.underscore))break;w.pos++}const e=C.charCodeAt(w.pos);e===g.lowercaseN?(++w.pos,ve(k.bigint)):ve(k.num)}()}case g.digit1:case g.digit2:case g.digit3:case g.digit4:case g.digit5:case g.digit6:case g.digit7:case g.digit8:case g.digit9:return void Se(!1);case g.quotationMark:case g.apostrophe:return void function(e){for(w.pos++;;){if(w.pos>=C.length)return void U("Unterminated string constant");const t=C.charCodeAt(w.pos);if(t===g.backslash)w.pos++;else if(t===e)break;w.pos++}w.pos++,ve(k.string)}(e);case g.slash:return void(C.charCodeAt(w.pos+1)===g.equalsTo?Ae(k.assign,2):Ae(k.slash,1));case g.percentSign:case g.asterisk:return void function(e){let t=e===g.asterisk?k.star:k.modulo,n=1,s=C.charCodeAt(w.pos+1);e===g.asterisk&&s===g.asterisk&&(n++,s=C.charCodeAt(w.pos+2),t=k.exponent),s===g.equalsTo&&C.charCodeAt(w.pos+2)!==g.greaterThan&&(n++,t=k.assign),Ae(t,n)}(e);case g.verticalBar:case g.ampersand:return void function(e){const t=C.charCodeAt(w.pos+1);if(t!==e){if(e===g.verticalBar){if(t===g.greaterThan)return void Ae(k.pipeline,2);if(t===g.rightCurlyBrace&&I)return void Ae(k.braceBarR,2)}t!==g.equalsTo?Ae(e===g.verticalBar?k.bitwiseOR:k.bitwiseAND,1):Ae(k.assign,2)}else C.charCodeAt(w.pos+2)===g.equalsTo?Ae(k.assign,3):Ae(e===g.verticalBar?k.logicalOR:k.logicalAND,2)}(e);case g.caret:return void(C.charCodeAt(w.pos+1)===g.equalsTo?Ae(k.assign,2):Ae(k.bitwiseXOR,1));case g.plusSign:case g.dash:return void function(e){const t=C.charCodeAt(w.pos+1);t!==e?t===g.equalsTo?Ae(k.assign,2):e===g.plusSign?Ae(k.plus,1):Ae(k.minus,1):Ae(k.preIncDec,2)}(e);case g.lessThan:return void function(){const e=C.charCodeAt(w.pos+1);if(e===g.lessThan)return C.charCodeAt(w.pos+2)===g.equalsTo?void Ae(k.assign,3):void(w.isType?Ae(k.lessThan,1):Ae(k.bitShiftL,2));e===g.equalsTo?Ae(k.relationalOrEqual,2):Ae(k.lessThan,1)}();case g.greaterThan:return void Ie();case g.equalsTo:case g.exclamationMark:return void function(e){const t=C.charCodeAt(w.pos+1);if(t!==g.equalsTo)return e===g.equalsTo&&t===g.greaterThan?(w.pos+=2,void ve(k.arrow)):void Ae(e===g.equalsTo?k.eq:k.bang,1);Ae(k.equality,C.charCodeAt(w.pos+2)===g.equalsTo?3:2)}(e);case g.tilde:return void Ae(k.tilde,1)}U(`Unexpected character '${String.fromCharCode(e)}'`,w.pos)}function Ae(e,t){w.pos+=t,ve(e)}function Ee(){for(;;){const e=C.charCodeAt(w.pos);if(!(e>=g.digit0&&e<=g.digit9||e===g.underscore))break;w.pos++}}function Se(e){let t=!1,n=!1;e||Ee();let s=C.charCodeAt(w.pos);s===g.dot&&(++w.pos,Ee(),s=C.charCodeAt(w.pos)),s!==g.uppercaseE&&s!==g.lowercaseE||(s=C.charCodeAt(++w.pos),s!==g.plusSign&&s!==g.dash||++w.pos,Ee(),s=C.charCodeAt(w.pos)),s===g.lowercaseN?(++w.pos,t=!0):s===g.lowercaseM&&(++w.pos,n=!0),ve(t?k.bigint:n?k.decimal:k.num)}function Ne(e,t=e.currentIndex()){let n=t+1;if(je(e,n)){const s=e.identifierNameAtIndex(t);return{isType:!1,leftName:s,rightName:s,endIndex:n}}if(n++,je(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,je(e,n))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:n};if(n++,je(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${t}`)}function je(e,t){const n=e.tokens[t];return n.type===k.braceR||n.type===k.comma}const Re=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp","\xa0"],["iexcl","\xa1"],["cent","\xa2"],["pound","\xa3"],["curren","\xa4"],["yen","\xa5"],["brvbar","\xa6"],["sect","\xa7"],["uml","\xa8"],["copy","\xa9"],["ordf","\xaa"],["laquo","\xab"],["not","\xac"],["shy","\xad"],["reg","\xae"],["macr","\xaf"],["deg","\xb0"],["plusmn","\xb1"],["sup2","\xb2"],["sup3","\xb3"],["acute","\xb4"],["micro","\xb5"],["para","\xb6"],["middot","\xb7"],["cedil","\xb8"],["sup1","\xb9"],["ordm","\xba"],["raquo","\xbb"],["frac14","\xbc"],["frac12","\xbd"],["frac34","\xbe"],["iquest","\xbf"],["Agrave","\xc0"],["Aacute","\xc1"],["Acirc","\xc2"],["Atilde","\xc3"],["Auml","\xc4"],["Aring","\xc5"],["AElig","\xc6"],["Ccedil","\xc7"],["Egrave","\xc8"],["Eacute","\xc9"],["Ecirc","\xca"],["Euml","\xcb"],["Igrave","\xcc"],["Iacute","\xcd"],["Icirc","\xce"],["Iuml","\xcf"],["ETH","\xd0"],["Ntilde","\xd1"],["Ograve","\xd2"],["Oacute","\xd3"],["Ocirc","\xd4"],["Otilde","\xd5"],["Ouml","\xd6"],["times","\xd7"],["Oslash","\xd8"],["Ugrave","\xd9"],["Uacute","\xda"],["Ucirc","\xdb"],["Uuml","\xdc"],["Yacute","\xdd"],["THORN","\xde"],["szlig","\xdf"],["agrave","\xe0"],["aacute","\xe1"],["acirc","\xe2"],["atilde","\xe3"],["auml","\xe4"],["aring","\xe5"],["aelig","\xe6"],["ccedil","\xe7"],["egrave","\xe8"],["eacute","\xe9"],["ecirc","\xea"],["euml","\xeb"],["igrave","\xec"],["iacute","\xed"],["icirc","\xee"],["iuml","\xef"],["eth","\xf0"],["ntilde","\xf1"],["ograve","\xf2"],["oacute","\xf3"],["ocirc","\xf4"],["otilde","\xf5"],["ouml","\xf6"],["divide","\xf7"],["oslash","\xf8"],["ugrave","\xf9"],["uacute","\xfa"],["ucirc","\xfb"],["uuml","\xfc"],["yacute","\xfd"],["thorn","\xfe"],["yuml","\xff"],["OElig","\u0152"],["oelig","\u0153"],["Scaron","\u0160"],["scaron","\u0161"],["Yuml","\u0178"],["fnof","\u0192"],["circ","\u02c6"],["tilde","\u02dc"],["Alpha","\u0391"],["Beta","\u0392"],["Gamma","\u0393"],["Delta","\u0394"],["Epsilon","\u0395"],["Zeta","\u0396"],["Eta","\u0397"],["Theta","\u0398"],["Iota","\u0399"],["Kappa","\u039a"],["Lambda","\u039b"],["Mu","\u039c"],["Nu","\u039d"],["Xi","\u039e"],["Omicron","\u039f"],["Pi","\u03a0"],["Rho","\u03a1"],["Sigma","\u03a3"],["Tau","\u03a4"],["Upsilon","\u03a5"],["Phi","\u03a6"],["Chi","\u03a7"],["Psi","\u03a8"],["Omega","\u03a9"],["alpha","\u03b1"],["beta","\u03b2"],["gamma","\u03b3"],["delta","\u03b4"],["epsilon","\u03b5"],["zeta","\u03b6"],["eta","\u03b7"],["theta","\u03b8"],["iota","\u03b9"],["kappa","\u03ba"],["lambda","\u03bb"],["mu","\u03bc"],["nu","\u03bd"],["xi","\u03be"],["omicron","\u03bf"],["pi","\u03c0"],["rho","\u03c1"],["sigmaf","\u03c2"],["sigma","\u03c3"],["tau","\u03c4"],["upsilon","\u03c5"],["phi","\u03c6"],["chi","\u03c7"],["psi","\u03c8"],["omega","\u03c9"],["thetasym","\u03d1"],["upsih","\u03d2"],["piv","\u03d6"],["ensp","\u2002"],["emsp","\u2003"],["thinsp","\u2009"],["zwnj","\u200c"],["zwj","\u200d"],["lrm","\u200e"],["rlm","\u200f"],["ndash","\u2013"],["mdash","\u2014"],["lsquo","\u2018"],["rsquo","\u2019"],["sbquo","\u201a"],["ldquo","\u201c"],["rdquo","\u201d"],["bdquo","\u201e"],["dagger","\u2020"],["Dagger","\u2021"],["bull","\u2022"],["hellip","\u2026"],["permil","\u2030"],["prime","\u2032"],["Prime","\u2033"],["lsaquo","\u2039"],["rsaquo","\u203a"],["oline","\u203e"],["frasl","\u2044"],["euro","\u20ac"],["image","\u2111"],["weierp","\u2118"],["real","\u211c"],["trade","\u2122"],["alefsym","\u2135"],["larr","\u2190"],["uarr","\u2191"],["rarr","\u2192"],["darr","\u2193"],["harr","\u2194"],["crarr","\u21b5"],["lArr","\u21d0"],["uArr","\u21d1"],["rArr","\u21d2"],["dArr","\u21d3"],["hArr","\u21d4"],["forall","\u2200"],["part","\u2202"],["exist","\u2203"],["empty","\u2205"],["nabla","\u2207"],["isin","\u2208"],["notin","\u2209"],["ni","\u220b"],["prod","\u220f"],["sum","\u2211"],["minus","\u2212"],["lowast","\u2217"],["radic","\u221a"],["prop","\u221d"],["infin","\u221e"],["ang","\u2220"],["and","\u2227"],["or","\u2228"],["cap","\u2229"],["cup","\u222a"],["int","\u222b"],["there4","\u2234"],["sim","\u223c"],["cong","\u2245"],["asymp","\u2248"],["ne","\u2260"],["equiv","\u2261"],["le","\u2264"],["ge","\u2265"],["sub","\u2282"],["sup","\u2283"],["nsub","\u2284"],["sube","\u2286"],["supe","\u2287"],["oplus","\u2295"],["otimes","\u2297"],["perp","\u22a5"],["sdot","\u22c5"],["lceil","\u2308"],["rceil","\u2309"],["lfloor","\u230a"],["rfloor","\u230b"],["lang","\u2329"],["rang","\u232a"],["loz","\u25ca"],["spades","\u2660"],["clubs","\u2663"],["hearts","\u2665"],["diams","\u2666"]]);function Le(e){const[t,n]=Oe(e.jsxPragma||"React.createElement"),[s,o]=Oe(e.jsxFragmentPragma||"React.Fragment");return{base:t,suffix:n,fragmentBase:s,fragmentSuffix:o}}function Oe(e){let t=e.indexOf(".");return-1===t&&(t=e.length),[e.slice(0,t),e.slice(t)]}class De{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class Pe extends De{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(e,t,n,s,o){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.nameManager=s,this.options=o,Pe.prototype.__init.call(this),Pe.prototype.__init2.call(this),Pe.prototype.__init3.call(this),Pe.prototype.__init4.call(this),Pe.prototype.__init5.call(this),this.jsxPragmaInfo=Le(o),this.isAutomaticRuntime="automatic"===o.jsxRuntime,this.jsxImportSource=o.jsxImportSource||"react"}process(){return!!this.tokens.matches1(k.jsxTagStart)&&(this.processJSXTag(),!0)}getPrefixCode(){let e="";if(this.filenameVarName&&(e+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[t,n]of Object.entries(this.cjsAutomaticModuleNameResolutions))e+=`var ${n} = require("${t}");`;else{const{createElement:t,...n}=this.esmAutomaticImportNameResolutions;t&&(e+=`import {createElement as ${t}} from "${this.jsxImportSource}";`);const s=Object.entries(n).map((([e,t])=>`${e} as ${t}`)).join(", ");if(s){e+=`import {${s}} from "${this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime")}";`}}return e}processJSXTag(){const{jsxRole:e,start:t}=this.tokens.currentToken(),n=this.options.production?null:this.getElementLocationCode(t);this.isAutomaticRuntime&&e!==Y.KeyAfterPropSpread?this.transformTagToJSXFunc(n,e):this.transformTagToCreateElement(n)}getElementLocationCode(e){return`lineNumber: ${this.getLineNumberForIndex(e)}`}getLineNumberForIndex(e){const t=this.tokens.code;for(;this.lastIndex or > at the end of the tag.");this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(t)}s&&this.tokens.appendCode(`, ${s}`)}for(this.options.production||(null===s&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${n}, ${this.getDevSource(e)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(k.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(k.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),this.tokens.matches2(k.slash,k.jsxTagEnd));else{if(!this.tokens.matches1(k.jsxTagEnd))throw new Error("Expected either /> or > at the end of the tag.");this.tokens.removeToken(),this.processChildren(!0)}for(this.tokens.removeInitialToken();!this.tokens.matches1(k.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(e){return this.options.production?e?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:e}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base}${e.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:e}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}}claimAutoImportedFuncInvocation(e,t){const n=this.claimAutoImportedName(e,t);return this.importProcessor?`${n}.call(void 0, `:`${n}(`}claimAutoImportedName(e,t){if(this.importProcessor){const n=this.jsxImportSource+t;return this.cjsAutomaticModuleNameResolutions[n]||(this.cjsAutomaticModuleNameResolutions[n]=this.importProcessor.getFreeIdentifierForPath(n)),`${this.cjsAutomaticModuleNameResolutions[n]}.${e}`}return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName(`_${e}`)),this.esmAutomaticImportNameResolutions[e]}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,k.jsxName,k.jsxName)&&!this.tokens.matches2AtIndex(e-1,k.greaterThan,k.jsxName)&&!this.tokens.matches1AtIndex(e,k.braceL)&&!this.tokens.matches1AtIndex(e,k.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,k.slash,k.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){const e=this.tokens.identifierName();Be(e)&&this.tokens.replaceToken(`'${e}'`)}for(;this.tokens.currentIndex()=g.lowercaseA&&t<=g.lowercaseZ}function qe(e){let t=0,n=0;for(const s of e)"\n"===s?(t++,n=0):" "===s&&n++;return"\n".repeat(t)+" ".repeat(n)}function Me(e,t){let n,s="",o=0,r=t;if("#"===e[r]){let t,s=10;if(r++,"x"===e[r])for(s=16,r++,t=r;r=g.digit0&&i<=g.digit9||i>=g.lowercaseA&&i<=g.lowercaseF||i>=g.uppercaseA&&i<=g.uppercaseF);)r++;else for(t=r;r=g.digit0&&e<=g.digit9}function $e(e,t){const n=Le(t),s=new Set;for(let o=0;o0||t.namedExports.length>0)continue;[...t.defaultNames,...t.wildcardNames,...t.namedImports.map((({localName:e})=>e))].every((e=>this.shouldAutomaticallyElideImportedName(e)))&&this.importsToReplace.set(e,"")}}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(const[e,t]of this.importInfoByPath.entries()){const{defaultNames:n,wildcardNames:s,namedImports:o,namedExports:r,exportStarNames:i,hasStarExport:a}=t;if(0===n.length&&0===s.length&&0===o.length&&0===r.length&&0===i.length&&!a){this.importsToReplace.set(e,`require('${e}');`);continue}const c=this.getFreeIdentifierForPath(e);let l;l=this.enableLegacyTypeScriptModuleInterop?c:s.length>0?s[0]:this.getFreeIdentifierForPath(e);let u=`var ${c} = require('${e}');`;if(s.length>0)for(const e of s){u+=` var ${e} = ${this.enableLegacyTypeScriptModuleInterop?c:`${this.helperManager.getHelperName("interopRequireWildcard")}(${c})`};`}else i.length>0&&l!==c?u+=` var ${l} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${c});`:n.length>0&&l!==c&&(u+=` var ${l} = ${this.helperManager.getHelperName("interopRequireDefault")}(${c});`);for(const{importedName:e,localName:t}of r)u+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${c}, '${t}', '${e}');`;for(const e of i)u+=` exports.${e} = ${l};`;a&&(u+=` ${this.helperManager.getHelperName("createStarExport")}(${c});`),this.importsToReplace.set(e,u);for(const e of n)this.identifierReplacements.set(e,`${l}.default`);for(const{importedName:e,localName:t}of o)this.identifierReplacements.set(t,`${c}.${e}`)}}getFreeIdentifierForPath(e){const t=e.split("/"),n=t[t.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${n}`)}preprocessImportAtIndex(e){const t=[],n=[],s=[];if(e++,(this.tokens.matchesContextualAtIndex(e,m._type)||this.tokens.matches1AtIndex(e,k._typeof))&&!this.tokens.matches1AtIndex(e+1,k.comma)&&!this.tokens.matchesContextualAtIndex(e+1,m._from))return;if(this.tokens.matches1AtIndex(e,k.parenL))return;if(this.tokens.matches1AtIndex(e,k.name)&&(t.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,k.comma)&&e++),this.tokens.matches1AtIndex(e,k.star)&&(e+=2,n.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,k.braceL)){const n=this.getNamedImports(e+1);e=n.newIndex;for(const e of n.namedImports)"default"===e.importedName?t.push(e.localName):s.push(e)}if(this.tokens.matchesContextualAtIndex(e,m._from)&&e++,!this.tokens.matches1AtIndex(e,k.string))throw new Error("Expected string token at the end of import statement.");const o=this.tokens.stringValueAtIndex(e),r=this.getImportInfo(o);r.defaultNames.push(...t),r.wildcardNames.push(...n),r.namedImports.push(...s),0===t.length&&0===n.length&&0===s.length&&(r.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,k._export,k._var)||this.tokens.matches2AtIndex(e,k._export,k._let)||this.tokens.matches2AtIndex(e,k._export,k._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,k._export,k._function)||this.tokens.matches2AtIndex(e,k._export,k._class)){const t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,k._export,k.name,k._function)){const t=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(t,t)}else this.tokens.matches2AtIndex(e,k._export,k.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,k._export,k.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let t=0;for(let n=e+2;;n++)if(this.tokens.matches1AtIndex(n,k.braceL)||this.tokens.matches1AtIndex(n,k.dollarBraceL)||this.tokens.matches1AtIndex(n,k.bracketL))t++;else if(this.tokens.matches1AtIndex(n,k.braceR)||this.tokens.matches1AtIndex(n,k.bracketR))t--;else{if(0===t&&!this.tokens.matches1AtIndex(n,k.name))break;if(this.tokens.matches1AtIndex(1,k.eq)){const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error("Expected = token with an end index.");n=e-1}else{if(Q(this.tokens.tokens[n])){const e=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(e,`exports.${e}`)}}}}preprocessNamedExportAtIndex(e){e+=2;const{newIndex:t,namedImports:n}=this.getNamedImports(e);if(e=t,!this.tokens.matchesContextualAtIndex(e,m._from)){for(const{importedName:e,localName:t}of n)this.addExportBinding(e,t);return}if(e++,!this.tokens.matches1AtIndex(e,k.string))throw new Error("Expected string token at the end of import statement.");const s=this.tokens.stringValueAtIndex(e);this.getImportInfo(s).namedExports.push(...n)}preprocessExportStarAtIndex(e){let t=null;if(this.tokens.matches3AtIndex(e,k._export,k.star,k._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,k.string))throw new Error("Expected string token at the end of star export statement.");const n=this.tokens.stringValueAtIndex(e),s=this.getImportInfo(n);null!==t?s.exportStarNames.push(t):s.hasStarExport=!0}getNamedImports(e){const t=[];for(;;){if(this.tokens.matches1AtIndex(e,k.braceR)){e++;break}const n=Ne(this.tokens,e);if(e=n.endIndex,n.isType||t.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(e,k.comma,k.braceR)){e+=2;break}if(this.tokens.matches1AtIndex(e,k.braceR)){e++;break}if(!this.tokens.matches1AtIndex(e,k.comma))throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`);e++}return{newIndex:e,namedImports:t}}getImportInfo(e){const t=this.importInfoByPath.get(e);if(t)return t;const n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,n),n}addExportBinding(e,t){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}claimImportCode(e){const t=this.importsToReplace.get(e);return this.importsToReplace.set(e,""),t||""}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){const t=this.exportBindingsByLocalName.get(e);return t&&0!==t.length?t.map((e=>`exports.${e}`)).join(" = "):null}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var Ke=n(9320);function He({code:e,mappings:t},n,s,o,r){const i=function(e,t){const n=new Array(t.length);let s=0,o=t[s].start,r=0;for(let i=0;i obj[importedName]});\n }\n ",createStarExport:'\n function createStarExport(obj) {\n Object.keys(obj)\n .filter((key) => key !== "default" && key !== "__esModule")\n .forEach((key) => {\n if (exports.hasOwnProperty(key)) {\n return;\n }\n Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});\n });\n }\n ',nullishCoalesce:"\n function nullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return rhsFn();\n }\n }\n ",asyncNullishCoalesce:"\n async function asyncNullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return await rhsFn();\n }\n }\n ",optionalChain:"\n function optionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",asyncOptionalChain:"\n async function asyncOptionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = await fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = await fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",optionalChainDelete:"\n function optionalChainDelete(ops) {\n const result = OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n ",asyncOptionalChainDelete:"\n async function asyncOptionalChainDelete(ops) {\n const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n "};class We{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(e){this.nameManager=e,We.prototype.__init.call(this),We.prototype.__init2.call(this)}getHelperName(e){let t=this.helperNames[e];return t||(t=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=t,t)}emitHelpers(){let e="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[t,n]of Object.entries(Ve)){const s=this.helperNames[t];let o=n;"optionalChainDelete"===t?o=o.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):"asyncOptionalChainDelete"===t?o=o.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):"require"===t&&(null===this.createRequireName&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),o=o.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),s&&(e+=" ",e+=o.replace(t,s).replace(/\s+/g," ").trim())}return e}}function ze(e,t,n){(function(e,t){for(const n of e.tokens)if(n.type===k.name&&!n.isType&&Z(n)&&t.has(e.identifierNameForToken(n)))return!0;return!1})(e,n)&&function(e,t,n){const s=[];let o=t.length-1;for(let r=e.tokens.length-1;;r--){for(;s.length>0&&s[s.length-1].startTokenIndex===r+1;)s.pop();for(;o>=0&&t[o].endTokenIndex===r+1;)s.push(t[o]),o--;if(r<0)break;const i=e.tokens[r],a=e.identifierNameForToken(i);if(s.length>1&&!i.isType&&i.type===k.name&&n.has(a))if(te(i))Ge(s[s.length-1],e,a);else if(ne(i)){let t=s.length-1;for(;t>0&&!s[t].isFunctionScope;)t--;if(t<0)throw new Error("Did not find parent function scope.");Ge(s[t],e,a)}}if(s.length>0)throw new Error("Expected empty scope stack after processing file.")}(e,t,n)}function Ge(e,t,n){for(let s=e.startTokenIndex;s0&&!w.error;)pe(k.braceL)||pe(k.bracketL)?e++:(pe(k.braceR)||pe(k.bracketR))&&e--,re();return!0}return!1}()){if(pe(k.colon)||pe(k.comma)||pe(k.question)||pe(k.eq))return!0;if(pe(k.parenR)&&(re(),pe(k.arrow)))return!0}return!1}();return w.restoreFromSnapshot(e),t}()}function Ot(e){const t=ce(0);$(e);(function(){const e=w.snapshot();if(R(m._asserts))return re(),O(m._is)?(Bt(),!0):lt()||pe(k._this)?(re(),O(m._is)&&Bt(),!0):(w.restoreFromSnapshot(e),!1);if(lt()||pe(k._this))return re(),R(m._is)&&!B()?(re(),Bt(),!0):(w.restoreFromSnapshot(e),!1);return!1})()||Bt(),le(t)}function Dt(){pe(k.colon)&&Pt()}function Pt(){const e=ce(0);$(k.colon),Bt(),le(e)}function Bt(){if(qt(),w.inDisallowConditionalTypesContext||B()||!ue(k._extends))return;const e=w.inDisallowConditionalTypesContext;w.inDisallowConditionalTypesContext=!0,qt(),w.inDisallowConditionalTypesContext=e,$(k.question),Bt(),$(k.colon),Bt()}function qt(){Lt()?St(Et.TSFunctionType):pe(k._new)?St(Et.TSConstructorType):R(m._abstract)&&de()===k._new?St(Et.TSAbstractConstructorType):function(){if(ue(k.bitwiseOR),Rt(),pe(k.bitwiseOR))for(;ue(k.bitwiseOR);)Rt()}()}function Mt(){for(;!pe(k.braceL)&&!w.error;)Ft(),ue(k.comma)}function Ft(){dt(),pe(k.lessThan)&&Zt()}function $t(){if(pe(k.string)?Sn():Vn(),ue(k.eq)){const e=w.tokens.length-1;fn(),w.tokens[e].rhsEndIndex=w.tokens.length}}function Ut(){for(tt(!1),$(k.braceL);!ue(k.braceR)&&!w.error;)$t(),ue(k.comma)}function Kt(){$(k.braceL),Ns(k.braceR)}function Ht(){tt(!1),ue(k.dot)?Ht():Kt()}function Vt(){R(m._global)?Vn():pe(k.string)?An():U(),pe(k.braceL)?Kt():F()}function Wt(){nt(),$(k.eq),R(m._require)&&de()===k.parenL?(D(m._require),$(k.parenL),pe(k.string)||U(),Sn(),$(k.parenR)):dt(),F()}function zt(){return Xt(w.contextualKeyword,!0)}function Gt(e){switch(e){case m._declare:{const e=w.tokens.length-1,t=function(){if(M())return!1;switch(w.type){case k._function:{const e=ce(1);return re(),Ds(w.start,!0),le(e),!0}case k._class:{const e=ce(1);return Bs(!0,!1),le(e),!0}case k._const:if(pe(k._const)&&L(m._enum)){const e=ce(1);return $(k._const),D(m._enum),w.tokens[w.tokens.length-1].type=k._enum,Ut(),le(e),!0}case k._var:case k._let:{const e=ce(1);return Es(w.type!==k._var),le(e),!0}case k.name:{const e=ce(1),t=w.contextualKeyword;let n=!1;return t===m._global?(Vt(),n=!0):n=Xt(t,!0),le(e),n}default:return!1}}();if(t)return w.tokens[e].type=k._declare,!0;break}case m._global:if(pe(k.braceL))return Kt(),!0;break;default:return Xt(e,!1)}return!1}function Xt(e,t){switch(e){case m._abstract:if(Jt(t)&&pe(k._class))return w.tokens[w.tokens.length-1].type=k._abstract,Bs(!0,!1),!0;break;case m._enum:if(Jt(t)&&pe(k.name))return w.tokens[w.tokens.length-1].type=k._enum,Ut(),!0;break;case m._interface:if(Jt(t)&&pe(k.name)){const e=ce(t?2:1);return tt(!1),kt(),ue(k._extends)&&Mt(),It(),le(e),!0}break;case m._module:if(Jt(t)){if(pe(k.string)){const e=ce(t?2:1);return Vt(),le(e),!0}if(pe(k.name)){const e=ce(t?2:1);return Ht(),le(e),!0}}break;case m._namespace:if(Jt(t)&&pe(k.name)){const e=ce(t?2:1);return Ht(),le(e),!0}break;case m._type:if(Jt(t)&&pe(k.name)){const e=ce(t?2:1);return tt(!1),kt(),$(k.eq),Bt(),F(),le(e),!0}}return!1}function Jt(e){return e?(re(),!0):!M()}function Yt(){const e=w.snapshot();return gt(),Ps(),pe(k.colon)&&Ot(k.colon),$(k.arrow),w.error?(w.restoreFromSnapshot(e),!1):(Un(!0),!0)}function Qt(){w.type===k.bitShiftL&&(w.pos-=1,ve(k.lessThan)),Zt()}function Zt(){const e=ce(0);for($(k.lessThan);!pe(k.greaterThan)&&!w.error;)Bt(),ue(k.comma);e?($(k.greaterThan),le(e)):(le(e),we(),$(k.greaterThan),w.tokens[w.tokens.length-1].isType=!0)}function en(){if(pe(k.name))switch(w.contextualKeyword){case m._abstract:case m._declare:case m._enum:case m._interface:case m._module:case m._namespace:case m._type:return!0}return!1}function tn(e,t){return b?function(e,t){if(!pe(k.lessThan))return mn(e,t);const n=w.snapshot();let s=mn(e,t);if(!w.error)return s;w.restoreFromSnapshot(n);w.type=k.typeParameterStart,gt(),s=mn(e,t),s||U();return s}(e,t):function(e,t){if(!pe(k.lessThan))return mn(e,t);const n=w.snapshot();gt();const s=mn(e,t);s||U();if(!w.error)return s;w.restoreFromSnapshot(n);return mn(e,t)}(e,t)}function nn(){un()}function sn(e){nn(),ue(k.colon)?nn():w.tokens[w.tokens.length-1].identifierRole=e}function on(){const e=w.tokens.length;sn(J.Access);let t=!1;for(;pe(k.dot);)t=!0,un(),nn();if(!t){const t=w.tokens[e],n=C.charCodeAt(t.start);n>=g.lowercaseA&&n<=g.lowercaseZ&&(t.identifierRole=null)}}function rn(){switch(w.type){case k.braceL:return re(),dn(),void un();case k.jsxTagStart:return ln(),void un();case k.string:return void un();default:U("JSX value should be either an expression or a quoted JSX text")}}function an(e){if(pe(k.jsxTagEnd))return!1;on(),v&&function(){if(ue(k.jsxTagStart)){w.tokens[w.tokens.length-1].type=k.typeParameterStart;const e=ce(1);for(;!pe(k.greaterThan)&&!w.error;)Bt(),ue(k.comma);un(),le(e)}}();let t=!1;for(;!pe(k.slash)&&!pe(k.jsxTagEnd)&&!w.error;)ue(k.braceL)?(t=!0,$(k.ellipsis),fn(),un()):(t&&w.end-w.start==3&&C.charCodeAt(w.start)===g.lowercaseK&&C.charCodeAt(w.start+1)===g.lowercaseE&&C.charCodeAt(w.start+2)===g.lowercaseY&&(w.tokens[e].jsxRole=Y.KeyAfterPropSpread),sn(J.ObjectKey),pe(k.eq)&&(un(),rn()));const n=pe(k.slash);return n&&un(),n}function cn(){const e=w.tokens.length-1;w.tokens[e].jsxRole=Y.NoChildren;let t=0;if(!an(e))for(hn();;)switch(w.type){case k.jsxTagStart:if(un(),pe(k.slash))return un(),pe(k.jsxTagEnd)||on(),void(w.tokens[e].jsxRole!==Y.KeyAfterPropSpread&&(1===t?w.tokens[e].jsxRole=Y.OneChild:t>1&&(w.tokens[e].jsxRole=Y.StaticChildren)));t++,cn(),hn();break;case k.jsxText:t++,hn();break;case k.jsxEmptyText:hn();break;case k.braceL:re(),pe(k.ellipsis)?($(k.ellipsis),dn(),hn(),t+=2):(pe(k.braceR)||(t++,dn()),hn());break;default:return void U()}}function ln(){un(),cn()}function un(){w.tokens.push(new oe),be(),w.start=w.pos;const e=C.charCodeAt(w.pos);if(G[e])!function(){let e;do{if(w.pos>C.length)return void U("Unexpectedly reached the end of input.");e=C.charCodeAt(++w.pos)}while(z[e]||e===g.dash);ve(k.jsxName)}();else if(e===g.quotationMark||e===g.apostrophe)!function(e){for(w.pos++;;){if(w.pos>=C.length)return void U("Unterminated string constant");if(C.charCodeAt(w.pos)===e){w.pos++;break}w.pos++}ve(k.string)}(e);else switch(++w.pos,e){case g.greaterThan:ve(k.jsxTagEnd);break;case g.lessThan:ve(k.jsxTagStart);break;case g.slash:ve(k.slash);break;case g.equalsTo:ve(k.eq);break;case g.leftCurlyBrace:ve(k.braceL);break;case g.dot:ve(k.dot);break;case g.colon:ve(k.colon);break;default:U()}}function hn(){w.tokens.push(new oe),w.start=w.pos,function(){let e=!1,t=!1;for(;;){if(w.pos>=C.length)return void U("Unterminated JSX contents");const n=C.charCodeAt(w.pos);if(n===g.lessThan||n===g.leftCurlyBrace)return w.pos===w.start?n===g.lessThan?(w.pos++,void ve(k.jsxTagStart)):void Ce(n):void ve(e&&!t?k.jsxEmptyText:k.jsxText);n===g.lineFeed?e=!0:n!==g.space&&n!==g.carriageReturn&&n!==g.tab&&(t=!0),w.pos++}}()}!function(e){e[e.TSFunctionType=0]="TSFunctionType";e[e.TSConstructorType=1]="TSConstructorType";e[e.TSAbstractConstructorType=2]="TSAbstractConstructorType"}(Et||(Et={}));class pn{constructor(e){this.stop=e}}function dn(e=!1){if(fn(e),pe(k.comma))for(;ue(k.comma);)fn(e)}function fn(e=!1,t=!1){return v?tn(e,t):I?function(e,t){if(pe(k.lessThan)){const n=w.snapshot();let s=mn(e,t);if(!w.error)return s;w.restoreFromSnapshot(n),w.type=k.typeParameterStart;const o=ce(0);if(ns(),le(o),s=mn(e,t),s)return!0;U()}return mn(e,t)}(e,t):mn(e,t)}function mn(e,t){if(pe(k._yield))return re(),pe(k.semi)||P()||(ue(k.star),fn()),!1;(pe(k.parenL)||pe(k.name)||pe(k._yield))&&(w.potentialArrowAt=w.start);const n=function(e){const t=function(e){const t=w.tokens.length,n=xn();if(n)return!0;return gn(t,-1,e),!1}(e);if(t)return!0;return function(e){v||I?function(e){if(pe(k.question)){const e=de();if(e===k.colon||e===k.comma||e===k.parenR)return}kn(e)}(e):kn(e)}(e),!1}(e);return t&&Ln(),w.type&k.IS_ASSIGN?(re(),fn(e),!1):n}function kn(e){ue(k.question)&&(fn(),$(k.colon),fn(e))}function gn(e,t,n){if(v&&(k._in&k.PRECEDENCE_MASK)>t&&!B()&&(O(m._as)||O(m._satisfies))){const s=ce(1);return Bt(),le(s),we(),void gn(e,t,n)}const s=w.type&k.PRECEDENCE_MASK;if(s>0&&(!n||!pe(k._in))&&s>t){const o=w.type;re(),o===k.nullishCoalescing&&(w.tokens[w.tokens.length-1].nullishStartIndex=e);const r=w.tokens.length;xn(),gn(r,o&k.IS_RIGHT_ASSOCIATIVE?s-1:s,n),o===k.nullishCoalescing&&(w.tokens[e].numNullishCoalesceStarts++,w.tokens[w.tokens.length-1].numNullishCoalesceEnds++),gn(e,t,n)}}function xn(){if(v&&!b&&ue(k.lessThan))return function(){const e=ce(1);Bt(),$(k.greaterThan),le(e),xn()}(),!1;if(R(m._module)&&xe()===g.leftCurlyBrace&&!q())return D(m._module),$(k.braceL),Ns(k.braceR),!1;if(w.type&k.IS_PREFIX)return re(),xn(),!1;if(yn())return!0;for(;w.type&k.IS_POSTFIX&&!P();)w.type===k.preIncDec&&(w.type=k.postIncDec),re();return!1}function yn(){const e=w.tokens.length;return!!An()||(_n(e),w.tokens.length>e&&w.tokens[e].isOptionalChainStart&&(w.tokens[w.tokens.length-1].isOptionalChainEnd=!0),!1)}function _n(e,t=!1){I?function(e,t=!1){if(w.tokens[w.tokens.length-1].contextualKeyword===m._async&&pe(k.lessThan)){const e=w.snapshot(),t=function(){w.scopeDepth++;const e=w.tokens.length;if(Ps(),!Rn())return!1;return Fn(e),!0}();if(t&&!w.error)return;w.restoreFromSnapshot(e)}Tn(e,t)}(e,t):Tn(e,t)}function Tn(e,t=!1){const n=new pn(!1);do{bn(e,t,n)}while(!n.stop&&!w.error)}function bn(e,t,n){v?function(e,t,n){if(B()||!ue(k.bang)){if(pe(k.lessThan)||pe(k.bitShiftL)){const n=w.snapshot();if(!t&&In()&&Yt())return;if(Qt(),!t&&ue(k.parenL)?(w.tokens[w.tokens.length-1].subscriptStartIndex=e,wn()):pe(k.backQuote)?On():(w.type===k.greaterThan||w.type!==k.parenL&&Boolean(w.type&k.IS_EXPRESSION_START)&&!B())&&U(),!w.error)return;w.restoreFromSnapshot(n)}else!t&&pe(k.questionDot)&&de()===k.lessThan&&(re(),w.tokens[e].isOptionalChainStart=!0,w.tokens[w.tokens.length-1].subscriptStartIndex=e,Zt(),$(k.parenL),wn());vn(e,t,n)}else w.tokens[w.tokens.length-1].type=k.nonNullAssertion}(e,t,n):I?function(e,t,n){if(pe(k.questionDot)&&de()===k.lessThan)return t?void(n.stop=!0):(re(),ss(),$(k.parenL),void wn());if(!t&&pe(k.lessThan)){const e=w.snapshot();if(ss(),$(k.parenL),wn(),!w.error)return;w.restoreFromSnapshot(e)}vn(e,t,n)}(e,t,n):vn(e,t,n)}function vn(e,t,n){if(!t&&ue(k.doubleColon))Cn(),n.stop=!0,_n(e,t);else if(pe(k.questionDot)){if(w.tokens[e].isOptionalChainStart=!0,t&&de()===k.parenL)return void(n.stop=!0);re(),w.tokens[w.tokens.length-1].subscriptStartIndex=e,ue(k.bracketL)?(dn(),$(k.bracketR)):ue(k.parenL)?wn():En()}else if(ue(k.dot))w.tokens[w.tokens.length-1].subscriptStartIndex=e,En();else if(ue(k.bracketL))w.tokens[w.tokens.length-1].subscriptStartIndex=e,dn(),$(k.bracketR);else if(!t&&pe(k.parenL))if(In()){const t=w.snapshot(),s=w.tokens.length;re(),w.tokens[w.tokens.length-1].subscriptStartIndex=e;const o=E();w.tokens[w.tokens.length-1].contextId=o,wn(),w.tokens[w.tokens.length-1].contextId=o,(pe(k.colon)||pe(k.arrow))&&(w.restoreFromSnapshot(t),n.stop=!0,w.scopeDepth++,Ps(),function(e){v?pe(k.colon)&&Pt():I&&function(){if(pe(k.colon)){const e=w.noAnonFunctionType;w.noAnonFunctionType=!0,gs(),w.noAnonFunctionType=e}}();$(k.arrow),Fn(e)}(s))}else{re(),w.tokens[w.tokens.length-1].subscriptStartIndex=e;const t=E();w.tokens[w.tokens.length-1].contextId=t,wn(),w.tokens[w.tokens.length-1].contextId=t}else pe(k.backQuote)?On():n.stop=!0}function In(){return w.tokens[w.tokens.length-1].contextualKeyword===m._async&&!P()}function wn(){let e=!0;for(;!ue(k.parenR)&&!w.error;){if(e)e=!1;else if($(k.comma),ue(k.parenR))break;Hn(!1)}}function Cn(){const e=w.tokens.length;An(),_n(e,!0)}function An(){if(ue(k.modulo))return Vn(),!1;if(pe(k.jsxText)||pe(k.jsxEmptyText))return Sn(),!1;if(pe(k.lessThan)&&b)return w.type=k.jsxTagStart,ln(),re(),!1;const e=w.potentialArrowAt===w.start;switch(w.type){case k.slash:case k.assign:ae();case k._super:case k._this:case k.regexp:case k.num:case k.bigint:case k.decimal:case k.string:case k._null:case k._true:case k._false:return re(),!1;case k._import:return re(),pe(k.dot)&&(w.tokens[w.tokens.length-1].type=k.name,re(),Vn()),!1;case k.name:{const t=w.tokens.length,n=w.start,s=w.contextualKeyword;return Vn(),s===m._await?(xn(),!1):s===m._async&&pe(k._function)&&!P()?(re(),Ds(n,!1),!1):e&&s===m._async&&!P()&&pe(k.name)?(w.scopeDepth++,tt(!1),$(k.arrow),Fn(t),!0):pe(k._do)&&!P()?(re(),Ss(),!1):e&&!P()&&pe(k.arrow)?(w.scopeDepth++,st(!1),$(k.arrow),Fn(t),!0):(w.tokens[w.tokens.length-1].identifierRole=J.Access,!1)}case k._do:return re(),Ss(),!1;case k.parenL:return jn(e);case k.bracketL:return re(),Kn(k.bracketR,!0),!1;case k.braceL:return Dn(!1,!1),!1;case k._function:return function(){const e=w.start;Vn(),ue(k.dot)&&Vn();Ds(e,!1)}(),!1;case k.at:ws();case k._class:return Bs(!1),!1;case k._new:return function(){if($(k._new),ue(k.dot))return void Vn();Cn(),void ue(k.questionDot),I&&function(){if(pe(k.lessThan)){const e=w.snapshot();ss(),w.error&&w.restoreFromSnapshot(e)}}();ue(k.parenL)&&Kn(k.parenR)}(),!1;case k.backQuote:return On(),!1;case k.doubleColon:return re(),Cn(),!1;case k.hash:{const e=xe();return G[e]||e===g.backslash?En():re(),!1}default:return U(),!1}}function En(){ue(k.hash),Vn()}function Sn(){re()}function Nn(){$(k.parenL),dn(),$(k.parenR)}function jn(e){const t=w.snapshot(),n=w.tokens.length;$(k.parenL);let s=!0;for(;!pe(k.parenR)&&!w.error;){if(s)s=!1;else if($(k.comma),pe(k.parenR))break;if(pe(k.ellipsis)){et(!1),Ln();break}fn(!1,!0)}if($(k.parenR),e&&(pe(k.colon)||!P())){if(Rn())return w.restoreFromSnapshot(t),w.scopeDepth++,Ps(),Rn(),Fn(n),!w.error||(w.restoreFromSnapshot(t),jn(!1),!1)}return!1}function Rn(){return v?function(){if(pe(k.colon)){const e=w.snapshot();Ot(k.colon),P()&&U(),pe(k.arrow)||U(),w.error&&w.restoreFromSnapshot(e)}return ue(k.arrow)}():I?function(){if(pe(k.colon)){const e=ce(0),t=w.snapshot(),n=w.noAnonFunctionType;w.noAnonFunctionType=!0,Gn(),w.noAnonFunctionType=n,P()&&U(),pe(k.arrow)||U(),w.error&&w.restoreFromSnapshot(t),le(e)}return ue(k.arrow)}():ue(k.arrow)}function Ln(){(v||I)&&(he(k.question),pe(k.colon)&&(v?Pt():I&&gs()))}function On(){for(ie(),ie();!pe(k.backQuote)&&!w.error;)$(k.dollarBraceL),dn(),ie(),ie();re()}function Dn(e,t){const n=E();let s=!0;for(re(),w.tokens[w.tokens.length-1].contextId=n;!ue(k.braceR)&&!w.error;){if(s)s=!1;else if($(k.comma),ue(k.braceR))break;let o=!1;if(pe(k.ellipsis)){const n=w.tokens.length;if(Ze(),e&&(w.tokens.length===n+2&&st(t),ue(k.braceR)))break}else e||(o=ue(k.star)),!e&&R(m._async)?(o&&U(),Vn(),pe(k.colon)||pe(k.parenL)||pe(k.braceR)||pe(k.eq)||pe(k.comma)||(pe(k.star)&&(re(),o=!0),qn(n))):qn(n),Bn(e,t,n)}w.tokens[w.tokens.length-1].contextId=n}function Pn(e,t){const n=w.start;return pe(k.parenL)?(e&&U(),Mn(n,!1),!0):!!function(e){return!e&&(pe(k.string)||pe(k.num)||pe(k.bracketL)||pe(k.name)||!!(w.type&k.IS_KEYWORD))}(e)&&(qn(t),Mn(n,!1),!0)}function Bn(e,t,n){v?kt():I&&pe(k.lessThan)&&(ns(),pe(k.parenL)||U());Pn(e,n)||function(e,t){if(ue(k.colon))return void(e?ct(t):fn(!1));let n;n=e?0===w.scopeDepth?J.ObjectShorthandTopLevelDeclaration:t?J.ObjectShorthandBlockScopedDeclaration:J.ObjectShorthandFunctionScopedDeclaration:J.ObjectShorthand,w.tokens[w.tokens.length-1].identifierRole=n,ct(t,!0)}(e,t)}function qn(e){I&&ys(),ue(k.bracketL)?(w.tokens[w.tokens.length-1].contextId=e,fn(),$(k.bracketR),w.tokens[w.tokens.length-1].contextId=e):(pe(k.num)||pe(k.string)||pe(k.bigint)||pe(k.decimal)?An():En(),w.tokens[w.tokens.length-1].identifierRole=J.ObjectKey,w.tokens[w.tokens.length-1].contextId=e)}function Mn(e,t){const n=E();w.scopeDepth++;const s=w.tokens.length;Ps(t,n),$n(e,n);const o=w.tokens.length;w.scopes.push(new y(s,o,!0)),w.scopeDepth--}function Fn(e){Un(!0);const t=w.tokens.length;w.scopes.push(new y(e,t,!0)),w.scopeDepth--}function $n(e,t=0){v?function(e,t){if(pe(k.colon)&&Ot(k.colon),pe(k.braceL)||!M())Un(!1,t);else{let t=w.tokens.length-1;for(;t>=0&&(w.tokens[t].start>=e||w.tokens[t].type===k._default||w.tokens[t].type===k._export);)w.tokens[t].isType=!0,t--}}(e,t):I?function(e){pe(k.colon)&&Gn();Un(!1,e)}(t):Un(!1,t)}function Un(e,t=0){e&&!pe(k.braceL)?fn():Ss(!0,t)}function Kn(e,t=!1){let n=!0;for(;!ue(e)&&!w.error;){if(n)n=!1;else if($(k.comma),ue(e))break;Hn(t)}}function Hn(e){e&&pe(k.comma)||(pe(k.ellipsis)?(Ze(),Ln()):pe(k.question)?re():fn(!1,!0))}function Vn(){re(),w.tokens[w.tokens.length-1].type=k.name}function Wn(e){const t=ce(0);$(e||k.colon),ks(),le(t)}function zn(){$(k.modulo),D(m._checks),ue(k.parenL)&&(dn(),$(k.parenR))}function Gn(){const e=ce(0);$(k.colon),pe(k.modulo)?zn():(ks(),pe(k.modulo)&&zn()),le(e)}function Xn(){pe(k._class)?(re(),Jn(!0)):pe(k._function)?(re(),Vn(),pe(k.lessThan)&&ns(),$(k.parenL),hs(),$(k.parenR),Gn(),F()):pe(k._var)?(re(),xs(),F()):O(m._module)?ue(k.dot)?(D(m._exports),gs(),F()):function(){pe(k.string)?An():Vn();$(k.braceL);for(;!pe(k.braceR)&&!w.error;)pe(k._import)?(re(),Qs()):U();$(k.braceR)}():R(m._type)?(re(),es()):R(m._opaque)?(re(),ts(!0)):R(m._interface)?(re(),Jn()):pe(k._export)?($(k._export),ue(k._default)?pe(k._function)||pe(k._class)?Xn():(ks(),F()):pe(k._var)||pe(k._function)||pe(k._class)||R(m._opaque)?Xn():pe(k.star)||pe(k.braceL)||R(m._interface)||R(m._type)||R(m._opaque)?Vs():U()):U()}function Jn(e=!1){if(Zn(),pe(k.lessThan)&&ns(),ue(k._extends))do{Yn()}while(!e&&ue(k.comma));if(R(m._mixins)){re();do{Yn()}while(ue(k.comma))}if(R(m._implements)){re();do{Yn()}while(ue(k.comma))}is(e,!1,e)}function Yn(){ls(!1),pe(k.lessThan)&&ss()}function Qn(){Jn()}function Zn(){Vn()}function es(){Zn(),pe(k.lessThan)&&ns(),Wn(k.eq),F()}function ts(e){D(m._type),Zn(),pe(k.lessThan)&&ns(),pe(k.colon)&&Wn(k.colon),e||Wn(k.eq),F()}function ns(){const e=ce(0);pe(k.lessThan)||pe(k.typeParameterStart)?re():U();do{ys(),xs(),ue(k.eq)&&ks(),pe(k.greaterThan)||$(k.comma)}while(!pe(k.greaterThan)&&!w.error);$(k.greaterThan),le(e)}function ss(){const e=ce(0);for($(k.lessThan);!pe(k.greaterThan)&&!w.error;)ks(),pe(k.greaterThan)||$(k.comma);$(k.greaterThan),le(e)}function os(){pe(k.num)||pe(k.string)?An():Vn()}function rs(){for(pe(k.lessThan)&&ns(),$(k.parenL);!pe(k.parenR)&&!pe(k.ellipsis)&&!w.error;)us(),pe(k.parenR)||$(k.comma);ue(k.ellipsis)&&us(),$(k.parenR),Wn()}function is(e,t,n){let s;for(t&&pe(k.braceBarL)?($(k.braceBarL),s=k.braceBarR):($(k.braceL),s=k.braceR);!pe(s)&&!w.error;){if(n&&R(m._proto)){const t=de();t!==k.colon&&t!==k.question&&(re(),e=!1)}if(e&&R(m._static)){const e=de();e!==k.colon&&e!==k.question&&re()}if(ys(),ue(k.bracketL))ue(k.bracketL)?(os(),$(k.bracketR),$(k.bracketR),pe(k.lessThan)||pe(k.parenL)?rs():(ue(k.question),Wn())):(de()===k.colon?(os(),Wn()):ks(),$(k.bracketR),Wn());else if(pe(k.parenL)||pe(k.lessThan))rs();else{if(R(m._get)||R(m._set)){const e=de();e!==k.name&&e!==k.string&&e!==k.num||re()}as()}cs()}$(s)}function as(){if(pe(k.ellipsis)){if($(k.ellipsis),ue(k.comma)||ue(k.semi),pe(k.braceR))return;ks()}else os(),pe(k.lessThan)||pe(k.parenL)?rs():(ue(k.question),Wn())}function cs(){ue(k.semi)||ue(k.comma)||pe(k.braceR)||pe(k.braceBarR)||U()}function ls(e){for(e||Vn();ue(k.dot);)Vn()}function us(){const e=de();e===k.colon||e===k.question?(Vn(),ue(k.question),Wn()):ks()}function hs(){for(;!pe(k.parenR)&&!pe(k.ellipsis)&&!w.error;)us(),pe(k.parenR)||$(k.comma);ue(k.ellipsis)&&us()}function ps(){let e=!1;const t=w.noAnonFunctionType;switch(w.type){case k.name:return R(m._interface)?void function(){if(D(m._interface),ue(k._extends))do{Yn()}while(ue(k.comma));is(!1,!1,!1)}():(Vn(),ls(!0),void(pe(k.lessThan)&&ss()));case k.braceL:return void is(!1,!1,!1);case k.braceBarL:return void is(!1,!0,!1);case k.bracketL:return void function(){for($(k.bracketL);w.pos0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex0&&t0&&this.tokenAtRelativeIndex(-1).type===k._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let t=0;t ${e}require`);const t=this.tokens.currentToken().contextId;if(null==t)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(k.parenR,t);)this.rootTransformer.processToken();return void this.tokens.replaceToken(e?")))":"))")}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),this.tokens.appendCode(this.importProcessor.claimImportCode(e))}mo(this.tokens),this.tokens.matches1(k.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(m._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,k.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,m._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(k.name)||this.tokens.matches1(k.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(k.string))return!1;let e=!1,t=!1;for(;!this.tokens.matches1(k.string);)(!e&&this.tokens.matches1(k.braceL)||this.tokens.matches1(k.comma))&&(this.tokens.removeToken(),this.tokens.matches1(k.braceR)||(t=!0),(this.tokens.matches2(k.name,k.comma)||this.tokens.matches2(k.name,k.braceR)||this.tokens.matches4(k.name,k.name,k.name,k.comma)||this.tokens.matches4(k.name,k.name,k.name,k.braceR))&&(e=!0)),this.tokens.removeToken();return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&(t&&!e))}removeRemainingImport(){for(;!this.tokens.matches1(k.string);)this.tokens.removeToken()}processIdentifier(){const e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===J.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==J.Access)return!1;const t=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!t)return!1;let n=this.tokens.currentIndex()+1;for(;n=2&&this.tokens.matches1AtIndex(e-2,k.dot))return!1;if(e>=2&&[k._var,k._let,k._const].includes(this.tokens.tokens[e-2].type))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),!0)}processComplexAssignment(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.type!==k.name)return!1;if(t.shadowsGlobal)return!1;if(e>=2&&this.tokens.matches1AtIndex(e-2,k.dot))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.appendCode(` = ${n}`),this.tokens.copyToken(),!0)}processPreIncDec(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e+1];if(t.type!==k.name)return!1;if(t.shadowsGlobal)return!1;if(e+2=1&&this.tokens.matches1AtIndex(e-1,k.dot))return!1;const s=this.tokens.identifierNameForToken(t),o=this.importProcessor.resolveExportBinding(s);if(!o)return!1;const r=this.tokens.rawCodeForToken(n),i=this.importProcessor.getIdentifierReplacement(s)||s;if("++"===r)this.tokens.replaceToken(`(${i} = ${o} = ${i} + 1, ${i} - 1)`);else{if("--"!==r)throw new Error(`Unexpected operator: ${r}`);this.tokens.replaceToken(`(${i} = ${o} = ${i} - 1, ${i} + 1)`)}return this.tokens.removeToken(),!0}processExportDefault(){let e=!0;if(this.tokens.matches4(k._export,k._default,k._function,k.name)||this.tokens.matches5(k._export,k._default,k.name,k._function,k.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,m._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${e};`)}else if(this.tokens.matches4(k._export,k._default,k._class,k.name)||this.tokens.matches5(k._export,k._default,k._abstract,k._class,k.name)||this.tokens.matches3(k._export,k._default,k.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(k._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${e};`)}else if(ko(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const e=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${e}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");e&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(k.at);)if(this.tokens.copyToken(),this.tokens.matches1(k.parenL))this.tokens.copyExpectedToken(k.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.parenR);else{for(this.tokens.copyExpectedToken(k.name);this.tokens.matches1(k.dot);)this.tokens.copyExpectedToken(k.dot),this.tokens.copyExpectedToken(k.name);this.tokens.matches1(k.parenL)&&(this.tokens.copyExpectedToken(k.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,k.name))return!1;for(e++;en.call(t,...e))),t=void 0)}return n}([this,"access",e=>e.importProcessor,"optionalAccess",e=>e.getGlobalNames,"call",e=>e(),"optionalAccess",e=>e.has,"call",e=>e(_o)])&&this.extractHoistedCalls())}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map((e=>`${e}();`)).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(k.dot,k.name,k.parenL);){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(To.includes(t)){const t=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(t),this.tokens.replaceToken(`function ${t}(){${_o}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${_o}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.parenR),e=!0}return!0}}class vo extends De{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(k.num)){const e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}class Io extends De{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){return!!this.tokens.matches2(k._catch,k.braceL)&&(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0)}}class wo extends De{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){if(this.tokens.matches1(k.nullishCoalescing)){const e=this.tokens.currentToken();return this.tokens.tokens[e.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(k._delete)){if(this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0}const e=this.tokens.currentToken().subscriptStartIndex;if(null!=e&&this.tokens.tokens[e].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==k._super){const t=this.nameManager.claimFreeName("_");let n;if(n=e>0&&this.tokens.matches1AtIndex(e-1,k._delete)&&this.isLastSubscriptInChain()?`${t} => delete ${t}`:`${t} => ${t}`,this.tokens.tokens[e].isAsyncOperation&&(n=`async ${n}`),this.tokens.matches2(k.questionDot,k.parenL)||this.tokens.matches2(k.questionDot,k.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${n}`);else if(this.tokens.matches2(k.questionDot,k.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}`);else if(this.tokens.matches1(k.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}.`);else if(this.tokens.matches1(k.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}.`);else if(this.tokens.matches1(k.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}[`);else{if(!this.tokens.matches1(k.parenL))throw new Error("Unexpected subscript operator in optional chain.");this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${n}(`)}return!0}return!1}isLastSubscriptInChain(){let e=0;for(let t=this.tokens.currentIndex()+1;;t++){if(t>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e++:this.tokens.tokens[t].isOptionalChainEnd&&e--,e<0)return!0;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return!1}}justSkippedSuper(){let e=0,t=this.tokens.currentIndex()-1;for(;;){if(t<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e--:this.tokens.tokens[t].isOptionalChainEnd&&e++,e<0)return!1;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return this.tokens.tokens[t-1].type===k._super;t--}}}class Co extends De{constructor(e,t,n,s){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.options=s}process(){const e=this.tokens.currentIndex();if("createReactClass"===this.tokens.identifierName()){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return t?this.tokens.replaceToken(`(0, ${t})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(k.name,k.dot,k.name)&&"React"===this.tokens.identifierName()&&"createClass"===this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return t?(this.tokens.replaceToken(t),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){const t=this.findDisplayName(e);t&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(k.parenL),this.tokens.copyExpectedToken(k.braceL),this.tokens.appendCode(`displayName: '${t}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.braceR),this.tokens.copyExpectedToken(k.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,k.name,k.eq)||e>=2&&this.tokens.tokens[e-2].identifierRole===J.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,k._export,k._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const e=(this.options.filePath||"unknown").split("/"),t=e[e.length-1],n=t.lastIndexOf("."),s=-1===n?t:t.slice(0,n);return"index"===s&&e[e.length-2]?e[e.length-2]:s}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(k.parenL,k.braceL))return!1;const t=e+1,n=this.tokens.tokens[t].contextId;if(null==n)throw new Error("Expected non-null context ID on object open-brace.");for(;e({variableName:e,uniqueLocalName:e})));return this.extractedDefaultExportName&&t.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`\n;(function () {\n var reactHotLoader = require('react-hot-loader').default;\n var leaveModule = require('react-hot-loader').leaveModule;\n if (!reactHotLoader) {\n return;\n }\n${t.map((({variableName:e,uniqueLocalName:t})=>` reactHotLoader.register(${e}, "${t}", ${JSON.stringify(this.filePath||"")});`)).join("\n")}\n leaveModule(module);\n})();`}process(){return!1}}const Eo=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function So(e){if(0===e.length)return!1;if(!G[e.charCodeAt(0)])return!1;for(let t=1;t` var ${e};`)).join("");for(const o of this.transformers)e+=o.getHoistedCode();let t="";for(const o of this.transformers)t+=o.getSuffixCode();const n=this.tokens.finish();let{code:s}=n;if(s.startsWith("#!")){let o=s.indexOf("\n");return-1===o&&(o=s.length,s+="\n"),{code:s.slice(0,o+1)+e+s.slice(o+1)+t,mappings:this.shiftMappings(n.mappings,e.length)}}return{code:e+s+t,mappings:this.shiftMappings(n.mappings,e.length)}}processBalancedCode(){let e=0,t=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(k.braceL)||this.tokens.matches1(k.dollarBraceL))e++;else if(this.tokens.matches1(k.braceR)){if(0===e)return;e--}if(this.tokens.matches1(k.parenL))t++;else if(this.tokens.matches1(k.parenR)){if(0===t)return;t--}this.processToken()}}processToken(){if(this.tokens.matches1(k._class))this.processClass();else{for(const e of this.transformers){if(e.process())return}this.tokens.copyToken()}}processNamedClass(){if(!this.tokens.matches2(k._class,k.name))throw new Error("Expected identifier for exported class name.");const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){const e=ro(this,this.tokens,this.nameManager,this.disableESTransforms),t=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0;let n=e.headerInfo.className;t&&(n=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(n),this.tokens.appendCode(` (${n} =`));const s=this.tokens.currentToken().contextId;if(null==s)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(k._class);!this.tokens.matchesContextIdAndLabel(k.braceL,s);)this.processToken();this.processClassBody(e,n);const o=e.staticInitializerNames.map((e=>`${n}.${e}()`));t?this.tokens.appendCode(`, ${o.map((e=>`${e}, `)).join("")}${n})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${o.map((e=>`${e};`)).join(" ")}`)}processClassBody(e,t){const{headerInfo:n,constructorInsertPos:s,constructorInitializerStatements:o,fields:r,instanceInitializerNames:i,rangesToRemove:a}=e;let c=0,l=0;const u=this.tokens.currentToken().contextId;if(null==u)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(k.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const h=o.length+i.length>0;if(null===s&&h){const e=this.makeConstructorInitCode(o,i,t);if(n.hasSuperclass){const t=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${t}) { super(...${t}); ${e}; }`)}else this.tokens.appendCode(`constructor() { ${e}; }`)}for(;!this.tokens.matchesContextIdAndLabel(k.braceR,u);)if(c=a[l].start){for(this.tokens.currentIndex()`${n}.prototype.${e}.call(this)`))].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(k.parenR,k.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,k.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(m._async)&&!this.tokens.matches1(k._async))return!1;const e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==k.lessThan||!e.isType)return!1;let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,k.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Uo=(e,t)=>{for(var n in t||(t={}))Mo.call(t,n)&&$o(e,n,t[n]);if(qo)for(var n of qo(t))Fo.call(t,n)&&$o(e,n,t[n]);return e},Ko=(e,t)=>Po(e,Bo(t)),Ho=e=>{const{tabMode:t="indentation"}=e,n=(0,s.useRef)(null),[o,r]=(0,s.useState)(e.code||""),{theme:i}=e;return(0,s.useEffect)((()=>{r(e.code)}),[e.code]),function(e,t,n){function o(t){var n=e.current;if(n){var s=d(n);n=p(n),s.position+=t.length-n.length,k.position=s,k.onChange(t,s)}}function r(t,n){var s=e.current;if(s){var o=window.getSelection().getRangeAt(0);o.deleteContents(),o.collapse();var r=n||0;(o=f(s,n=(o=d(s)).position+(0>r?r:0),o.position+(0r-c||i&&i[1]===s?c=r:(n=++k.historyAt,k.history[n]=[o,s],k.history.splice(n+1),500r(e.slice(0,-1))),{disabled:e.disabled,indentation:"indentation"===t?2:void 0}),(0,s.useEffect)((()=>{e.onChange&&e.onChange(o)}),[o]),(0,x.jsx)("div",{className:e.className,style:e.style,children:(0,x.jsx)(c.f4,{code:o,theme:e.theme||c.Zj.nightOwl,language:e.language,children:({className:e,tokens:t,getLineProps:s,getTokenProps:o,style:r})=>(0,x.jsx)("pre",{className:e,style:Uo(Uo({margin:0,outline:"none",padding:10,fontFamily:"inherit"},i&&"object"==typeof i.plain?i.plain:{}),r),ref:n,spellCheck:"false",children:t.map(((e,t)=>(0,x.jsxs)("span",Ko(Uo({},s({line:e})),{children:[e.filter((e=>!e.empty)).map(((e,t)=>(0,x.jsx)("span",Uo({},o({token:e})),`token-${t}`))),"\n"]}),`line-${t}`)))})})})},Vo=(0,s.createContext)({}),Wo=["jsx","imports"];function zo(e={}){const t=Array.isArray(e.transforms)?e.transforms.filter(Boolean):Wo;return e=>Lo(e,{transforms:t}).code}var Go=(e,t)=>class extends s.Component{componentDidCatch(e){t(e)}render(){return"function"==typeof e?(0,x.jsx)(e,{}):s.isValidElement(e)?e:null}},Xo=(e,t)=>{const n=Object.keys(t),s=n.map((e=>t[e]));return new Function(...n,e)(...s)};var Jo='const _jsxFileName = "";',Yo=e=>e.trim().replace(/;$/,""),Qo=e=>e.replace(Jo,"").trim(),Zo=e=>Jo+e,er=e=>`return (${e})`;var tr=function({children:e,code:t="",language:n="tsx",theme:o,enableTypeScript:r=!0,disabled:i=!1,scope:a,transformCode:c,noInline:l=!1}){const[u,h]=(0,s.useState)({error:void 0,element:void 0});function p(e){return t=this,n=null,o=function*(){const t=e=>{h({error:e.toString(),element:void 0})};try{const o=c?c(e):e;try{const e=yield Promise.resolve(o),n=e=>h({error:void 0,element:e});if("string"!=typeof e)throw new Error("Code failed to transform");const i={code:e,scope:a,enableTypeScript:r};l?(h({error:void 0,element:null}),(({code:e="",scope:t={},enableTypeScript:n=!0},o,r)=>{if(!/render\s*\(/.test(e))return r(new SyntaxError("No-Inline evaluations must call `render`."));const i=["jsx","imports"];n&&i.splice(1,0,"typescript"),Xo(zo({transforms:i})(e),Ko(Uo({React:s},t),{render:e=>{void 0===e?r(new SyntaxError("`render` must be called with valid JSX.")):o(Go(e,r))}}))})(i,n,t)):n((({code:e="",scope:t={},enableTypeScript:n=!0},o)=>{const r=["jsx"];n&&r.push("typescript");const i=function(...e){return e.reduce(((e,t)=>(...n)=>e(t(...n))))}(Zo,zo({transforms:["imports"]}),er,Qo,Yo,zo({transforms:r}),Yo)(e);return Go(Xo(i,Uo({React:s},t)),o)})(i,t))}catch(n){return t(n)}}catch(o){return t(o),Promise.resolve()}},new Promise(((e,s)=>{var r=e=>{try{a(o.next(e))}catch(t){s(t)}},i=e=>{try{a(o.throw(e))}catch(t){s(t)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,i);a((o=o.apply(t,n)).next())}));var t,n,o}const d=e=>h({error:e.toString()});return(0,s.useEffect)((()=>{p(t).catch(d)}),[t,a,l,c]),(0,x.jsx)(Vo.Provider,{value:Ko(Uo({},u),{code:t,language:n,theme:o,disabled:i,onError:d,onChange:e=>{p(e).catch(d)}}),children:e})};function nr(e){const{code:t,language:n,theme:o,disabled:r,onChange:i}=(0,s.useContext)(Vo);return(0,x.jsx)(Ho,Uo({theme:o,code:t,language:n,disabled:r,onChange:i},e))}function sr(e){const{error:t}=(0,s.useContext)(Vo);return t?(0,x.jsx)("pre",Ko(Uo({},e),{children:t})):null}var or=function(e){var t=e,{Component:n="div"}=t,o=((e,t)=>{var n={};for(var s in e)Mo.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&qo)for(var s of qo(e))t.indexOf(s)<0&&Fo.call(e,s)&&(n[s]=e[s]);return n})(t,["Component"]);const{element:r}=(0,s.useContext)(Vo);return(0,x.jsx)(n,Ko(Uo({},o),{children:r?(0,x.jsx)(r,{}):null}))};var rr=n(1312),ir=n(4586);function ar(e){let{children:t,fallback:n}=e;return(0,a.A)()?(0,x.jsx)(x.Fragment,{children:t?.()}):n??null}var cr=n(2181),lr=n(5293),ur=n(6342);function hr(){const{prism:e}=(0,ur.p)(),{colorMode:t}=(0,lr.G)(),n=e.theme,s=e.darkTheme||n;return"dark"===t?s:n}var pr=n(7489);const dr={playgroundContainer:"playgroundContainer_X_Ta",playgroundHeader:"playgroundHeader_dyrN",playgroundEditor:"playgroundEditor_Q6Y7",playgroundPreview:"playgroundPreview_DzOI"};function fr(e){let{children:t}=e;return(0,x.jsx)("div",{className:(0,i.A)(dr.playgroundHeader),children:t})}function mr(){return(0,x.jsx)("div",{children:"Loading..."})}function kr(){return(0,x.jsx)(ar,{fallback:(0,x.jsx)(mr,{}),children:()=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(pr.A,{fallback:e=>(0,x.jsx)(cr.MN,{...e}),children:(0,x.jsx)(or,{})}),(0,x.jsx)(sr,{})]})})}function gr(){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(fr,{children:(0,x.jsx)(rr.A,{id:"theme.Playground.result",description:"The result label of the live codeblocks",children:"Result"})}),(0,x.jsx)("div",{className:dr.playgroundPreview,children:(0,x.jsx)(kr,{})})]})}function xr(){const e=(0,a.A)();return(0,x.jsx)(nr,{className:dr.playgroundEditor},String(e))}function yr(){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(fr,{children:(0,x.jsx)(rr.A,{id:"theme.Playground.liveEditor",description:"The live editor label of the live codeblocks",children:"Live Editor"})}),(0,x.jsx)(xr,{})]})}const _r=e=>`${e};`;function Tr(e){let{children:t,transformCode:n,...s}=e;const{siteConfig:{themeConfig:o}}=(0,ir.A)(),{liveCodeBlock:{playgroundPosition:r}}=o,i=hr(),a=s.metastring?.includes("noInline")??!1;return(0,x.jsx)("div",{className:dr.playgroundContainer,children:(0,x.jsx)(tr,{code:t?.replace(/\n$/,""),noInline:a,transformCode:n??_r,theme:i,...s,children:"top"===r?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(gr,{}),(0,x.jsx)(yr,{})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(yr,{}),(0,x.jsx)(gr,{})]})})})}const br={React:s,...s};var vr=n(7559),Ir=n(8426),wr=n.n(Ir);const Cr=/title=(?["'])(?.*?)\1/,Ar=/\{(?<range>[\d,-]+)\}/,Er={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},Sr={...Er,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},vbnet:{start:"(?:_\\s*)?['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},Nr=Object.keys(Er);function jr(e,t){const n=e.map((e=>{const{start:n,end:s}=Sr[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${s})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function Rr(e,t){let n=e.replace(/\n$/,"");const{language:s,magicComments:o,metastring:r}=t;if(r&&Ar.test(r)){const e=r.match(Ar).groups.range;if(0===o.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${r}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=o[0].className,s=wr()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(s),code:n}}if(void 0===s)return{lineClassNames:{},code:n};const i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return jr(["js","jsBlock"],t);case"jsx":case"tsx":return jr(["js","jsBlock","jsx"],t);case"html":return jr(["js","jsBlock","html"],t);case"python":case"py":case"bash":return jr(["bash"],t);case"markdown":case"md":return jr(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return jr(["tex"],t);case"lua":case"haskell":case"sql":return jr(["lua"],t);case"wasm":return jr(["wasm"],t);case"vb":case"vba":case"visual-basic":return jr(["vb","rem"],t);case"vbnet":return jr(["vbnet","rem"],t);case"batch":return jr(["rem"],t);case"basic":return jr(["rem","f90"],t);case"fsharp":return jr(["js","ml"],t);case"ocaml":case"sml":return jr(["ml"],t);case"fortran":return jr(["f90"],t);case"cobol":return jr(["cobol"],t);default:return jr(Nr,t)}}(s,o),a=n.split("\n"),c=Object.fromEntries(o.map((e=>[e.className,{start:0,range:""}]))),l=Object.fromEntries(o.filter((e=>e.line)).map((e=>{let{className:t,line:n}=e;return[n,t]}))),u=Object.fromEntries(o.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.start,t]}))),h=Object.fromEntries(o.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.end,t]})));for(let d=0;d<a.length;){const e=a[d].match(i);if(!e){d+=1;continue}const t=e.slice(1).find((e=>void 0!==e));l[t]?c[l[t]].range+=`${d},`:u[t]?c[u[t]].start=d:h[t]&&(c[h[t]].range+=`${c[h[t]].start}-${d-1},`),a.splice(d,1)}n=a.join("\n");const p={};return Object.entries(c).forEach((e=>{let[t,{range:n}]=e;wr()(n).forEach((e=>{p[e]??=[],p[e].push(t)}))})),{lineClassNames:p,code:n}}const Lr={codeBlockContainer:"codeBlockContainer_Ckt0"};function Or(e){let{as:t,...n}=e;const s=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[s,o]=e;const r=t[s];r&&"string"==typeof o&&(n[r]=o)})),n}(hr());return(0,x.jsx)(t,{...n,style:s,className:(0,i.A)(n.className,Lr.codeBlockContainer,vr.G.common.codeBlock)})}const Dr={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function Pr(e){let{children:t,className:n}=e;return(0,x.jsx)(Or,{as:"pre",tabIndex:0,className:(0,i.A)(Dr.codeBlockStandalone,"thin-scrollbar",n),children:(0,x.jsx)("code",{className:Dr.codeBlockLines,children:t})})}var Br=n(9532);const qr={attributes:!0,characterData:!0,childList:!0,subtree:!0};function Mr(e,t){const[n,o]=(0,s.useState)(),r=(0,s.useCallback)((()=>{o(e.current?.closest("[role=tabpanel][hidden]"))}),[e,o]);(0,s.useEffect)((()=>{r()}),[r]),function(e,t,n){void 0===n&&(n=qr);const o=(0,Br._q)(t),r=(0,Br.Be)(n);(0,s.useEffect)((()=>{const t=new MutationObserver(o);return e&&t.observe(e,r),()=>t.disconnect()}),[e,o,r])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),r())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}const Fr={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function $r(e){let{line:t,classNames:n,showLineNumbers:s,getLineProps:o,getTokenProps:r}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const a=o({line:t,className:(0,i.A)(n,s&&Fr.codeLine)}),c=t.map(((e,t)=>(0,x.jsx)("span",{...r({token:e})},t)));return(0,x.jsxs)("span",{...a,children:[s?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{className:Fr.codeLineNumber}),(0,x.jsx)("span",{className:Fr.codeLineContent,children:c})]}):c,(0,x.jsx)("br",{})]})}function Ur(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})})}function Kr(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const Hr={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function Vr(e){let{code:t,className:n}=e;const[o,r]=(0,s.useState)(!1),a=(0,s.useRef)(void 0),c=(0,s.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const s=document.createElement("textarea"),o=document.activeElement;s.value=e,s.setAttribute("readonly",""),s.style.contain="strict",s.style.position="absolute",s.style.left="-9999px",s.style.fontSize="12pt";const r=document.getSelection(),i=r.rangeCount>0&&r.getRangeAt(0);n.append(s),s.select(),s.selectionStart=0,s.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch{}s.remove(),i&&(r.removeAllRanges(),r.addRange(i)),o&&o.focus()}(t),r(!0),a.current=window.setTimeout((()=>{r(!1)}),1e3)}),[t]);return(0,s.useEffect)((()=>()=>window.clearTimeout(a.current)),[]),(0,x.jsx)("button",{type:"button","aria-label":o?(0,rr.T)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,rr.T)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,rr.T)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,i.A)("clean-btn",n,Hr.copyButton,o&&Hr.copyButtonCopied),onClick:c,children:(0,x.jsxs)("span",{className:Hr.copyButtonIcons,"aria-hidden":"true",children:[(0,x.jsx)(Ur,{className:Hr.copyButtonIcon}),(0,x.jsx)(Kr,{className:Hr.copyButtonSuccessIcon})]})})}function Wr(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}const zr={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function Gr(e){let{className:t,onClick:n,isEnabled:s}=e;const o=(0,rr.T)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,x.jsx)("button",{type:"button",onClick:n,className:(0,i.A)("clean-btn",t,s&&zr.wordWrapButtonEnabled),"aria-label":o,title:o,children:(0,x.jsx)(Wr,{className:zr.wordWrapButtonIcon,"aria-hidden":"true"})})}function Xr(e){let{children:t,className:n="",metastring:o,title:r,showLineNumbers:a,language:l}=e;const{prism:{defaultLanguage:u,magicComments:h}}=(0,ur.p)(),p=function(e){return e?.toLowerCase()}(l??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??u),d=hr(),f=function(){const[e,t]=(0,s.useState)(!1),[n,o]=(0,s.useState)(!1),r=(0,s.useRef)(null),i=(0,s.useCallback)((()=>{const n=r.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[r,e]),a=(0,s.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=r.current,n=e>t||r.current.querySelector("code").hasAttribute("style");o(n)}),[r]);return Mr(r,a),(0,s.useEffect)((()=>{a()}),[e,a]),(0,s.useEffect)((()=>(window.addEventListener("resize",a,{passive:!0}),()=>{window.removeEventListener("resize",a)})),[a]),{codeBlockRef:r,isEnabled:e,isCodeScrollable:n,toggle:i}}(),m=function(e){return e?.match(Cr)?.groups.title??""}(o)||r,{lineClassNames:k,code:g}=Rr(t,{metastring:o,language:p,magicComments:h}),y=a??function(e){return Boolean(e?.includes("showLineNumbers"))}(o);return(0,x.jsxs)(Or,{as:"div",className:(0,i.A)(n,p&&!n.includes(`language-${p}`)&&`language-${p}`),children:[m&&(0,x.jsx)("div",{className:Dr.codeBlockTitle,children:m}),(0,x.jsxs)("div",{className:Dr.codeBlockContent,children:[(0,x.jsx)(c.f4,{theme:d,code:g,language:p??"text",children:e=>{let{className:t,style:n,tokens:s,getLineProps:o,getTokenProps:r}=e;return(0,x.jsx)("pre",{tabIndex:0,ref:f.codeBlockRef,className:(0,i.A)(t,Dr.codeBlock,"thin-scrollbar"),style:n,children:(0,x.jsx)("code",{className:(0,i.A)(Dr.codeBlockLines,y&&Dr.codeBlockLinesWithNumbering),children:s.map(((e,t)=>(0,x.jsx)($r,{line:e,getLineProps:o,getTokenProps:r,classNames:k[t],showLineNumbers:y},t)))})})}}),(0,x.jsxs)("div",{className:Dr.buttonGroup,children:[(f.isEnabled||f.isCodeScrollable)&&(0,x.jsx)(Gr,{className:Dr.codeButton,onClick:()=>f.toggle(),isEnabled:f.isEnabled}),(0,x.jsx)(Vr,{className:Dr.codeButton,code:g})]})]})]})}const Jr=(Yr=function(e){let{children:t,...n}=e;const o=(0,a.A)(),r=function(e){return s.Children.toArray(e).some((e=>(0,s.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),i="string"==typeof r?Xr:Pr;return(0,x.jsx)(i,{...n,children:r},String(o))},function(e){return e.live?(0,x.jsx)(Tr,{scope:br,...e}):(0,x.jsx)(Yr,{...e})});var Yr;function Qr(e){return(0,x.jsx)("code",{...e})}var Zr=n(8774);var ei=n(3427),ti=n(1422);const ni={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};function si(e){return!!e&&("SUMMARY"===e.tagName||si(e.parentElement))}function oi(e,t){return!!e&&(e===t||oi(e.parentElement,t))}function ri(e){let{summary:t,children:n,...o}=e;(0,ei.A)().collectAnchor(o.id);const r=(0,a.A)(),c=(0,s.useRef)(null),{collapsed:l,setCollapsed:u}=(0,ti.u)({initialState:!o.open}),[h,p]=(0,s.useState)(o.open),d=s.isValidElement(t)?t:(0,x.jsx)("summary",{children:t??"Details"});return(0,x.jsxs)("details",{...o,ref:c,open:h,"data-collapsed":l,className:(0,i.A)(ni.details,r&&ni.isBrowser,o.className),onMouseDown:e=>{si(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;si(t)&&oi(t,c.current)&&(e.preventDefault(),l?(u(!1),p(!0)):u(!0))},children:[d,(0,x.jsx)(ti.N,{lazy:!1,collapsed:l,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{u(e),p(!e)},children:(0,x.jsx)("div",{className:ni.collapsibleContent,children:n})})]})}const ii={details:"details_b_Ee"},ai="alert alert--info";function ci(e){let{...t}=e;return(0,x.jsx)(ri,{...t,className:(0,i.A)(ai,ii.details,t.className)})}function li(e){const t=s.Children.toArray(e.children),n=t.find((e=>s.isValidElement(e)&&"summary"===e.type)),o=(0,x.jsx)(x.Fragment,{children:t.filter((e=>e!==n))});return(0,x.jsx)(ci,{...e,summary:n,children:o})}var ui=n(1107);function hi(e){return(0,x.jsx)(ui.A,{...e})}const pi={containsTaskList:"containsTaskList_mC6p"};function di(e){if(void 0!==e)return(0,i.A)(e,e?.includes("contains-task-list")&&pi.containsTaskList)}const fi={img:"img_ev3q"};var mi=n(7293);const ki={Head:r.A,details:li,Details:li,code:function(e){return function(e){return void 0!==e.children&&s.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")))}(e)?(0,x.jsx)(Qr,{...e}):(0,x.jsx)(Jr,{...e})},a:function(e){return(0,x.jsx)(Zr.A,{...e})},pre:function(e){return(0,x.jsx)(x.Fragment,{children:e.children})},ul:function(e){return(0,x.jsx)("ul",{...e,className:di(e.className)})},li:function(e){return(0,ei.A)().collectAnchor(e.id),(0,x.jsx)("li",{...e})},img:function(e){return(0,x.jsx)("img",{decoding:"async",loading:"lazy",...e,className:(t=e.className,(0,i.A)(t,fi.img))});var t},h1:e=>(0,x.jsx)(hi,{as:"h1",...e}),h2:e=>(0,x.jsx)(hi,{as:"h2",...e}),h3:e=>(0,x.jsx)(hi,{as:"h3",...e}),h4:e=>(0,x.jsx)(hi,{as:"h4",...e}),h5:e=>(0,x.jsx)(hi,{as:"h5",...e}),h6:e=>(0,x.jsx)(hi,{as:"h6",...e}),admonition:mi.A,mermaid:()=>null};function gi(e){let{children:t}=e;return(0,x.jsx)(o.x,{components:ki,children:t})}},6266:(e,t,n)=>{"use strict";n.d(t,{i:()=>o});var s=n(4586);function o(e){void 0===e&&(e={});const{i18n:{currentLocale:t}}=(0,s.A)(),n=function(){const{i18n:{currentLocale:e,localeConfigs:t}}=(0,s.A)();return t[e].calendar}();return new Intl.DateTimeFormat(t,{calendar:n,...e})}},89:(e,t)=>{"use strict";var n="\n",s=function(){function e(e){this.string=e;for(var t=[0],s=0;s<e.length;)switch(e[s]){case n:s+=1,t.push(s);break;case"\r":e[s+=1]===n&&(s+=1),t.push(s);break;default:s++}this.offsets=t}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}()},8426:(e,t)=>{function n(e){let t,n=[];for(let s of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(s))n.push(parseInt(s,10));else if(t=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,s,o,r]=t;if(s&&r){s=parseInt(s),r=parseInt(r);const e=s<r?1:-1;"-"!==o&&".."!==o&&"\u2025"!==o||(r+=e);for(let t=s;t!==r;t+=e)n.push(t)}}return n}t.default=n,e.exports=n},9361:function(e,t,n){"use strict";var s=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var s=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],i=0,a=r.length;i<a;i++,o++)s[o]=r[i];return s};Object.defineProperty(t,"__esModule",{value:!0}),t.Checker=t.createCheckers=void 0;var o=n(1680),r=n(1977),i=n(1680);Object.defineProperty(t,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(t,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(t,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(t,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(t,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(t,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(t,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(t,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(t,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(t,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(t,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(t,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(t,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(t,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(t,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(t,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(t,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(t,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(t,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(t,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(t,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(t,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(t,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(t,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(t,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(t,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(t,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var a=n(1977);Object.defineProperty(t,"VError",{enumerable:!0,get:function(){return a.VError}}),t.createCheckers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=Object.assign.apply(Object,s([{},o.basicTypes],e)),r={},i=0,a=e;i<a.length;i++)for(var l=a[i],u=0,h=Object.keys(l);u<h.length;u++){var p=h[u];r[p]=new c(n,l[p])}return r};var c=function(){function e(e,t,n){if(void 0===n&&(n="value"),this.suite=e,this.ttype=t,this._path=n,this.props=new Map,t instanceof o.TIface)for(var s=0,r=t.props;s<r.length;s++){var i=r[s];this.props.set(i.name,i.ttype)}this.checkerPlain=this.ttype.getChecker(e,!1),this.checkerStrict=this.ttype.getChecker(e,!0)}return e.prototype.setReportedPath=function(e){this._path=e},e.prototype.check=function(e){return this._doCheck(this.checkerPlain,e)},e.prototype.test=function(e){return this.checkerPlain(e,new r.NoopContext)},e.prototype.validate=function(e){return this._doValidate(this.checkerPlain,e)},e.prototype.strictCheck=function(e){return this._doCheck(this.checkerStrict,e)},e.prototype.strictTest=function(e){return this.checkerStrict(e,new r.NoopContext)},e.prototype.strictValidate=function(e){return this._doValidate(this.checkerStrict,e)},e.prototype.getProp=function(t){var n=this.props.get(t);if(!n)throw new Error("Type has no property "+t);return new e(this.suite,n,this._path+"."+t)},e.prototype.methodArgs=function(t){var n=this._getMethod(t);return new e(this.suite,n.paramList)},e.prototype.methodResult=function(t){var n=this._getMethod(t);return new e(this.suite,n.result)},e.prototype.getArgs=function(){if(!(this.ttype instanceof o.TFunc))throw new Error("getArgs() applied to non-function");return new e(this.suite,this.ttype.paramList)},e.prototype.getResult=function(){if(!(this.ttype instanceof o.TFunc))throw new Error("getResult() applied to non-function");return new e(this.suite,this.ttype.result)},e.prototype.getType=function(){return this.ttype},e.prototype._doCheck=function(e,t){if(!e(t,new r.NoopContext)){var n=new r.DetailContext;throw e(t,n),n.getError(this._path)}},e.prototype._doValidate=function(e,t){if(e(t,new r.NoopContext))return null;var n=new r.DetailContext;return e(t,n),n.getErrorDetail(this._path)},e.prototype._getMethod=function(e){var t=this.props.get(e);if(!t)throw new Error("Type has no property "+e);if(!(t instanceof o.TFunc))throw new Error("Property "+e+" is not a method");return t},e}();t.Checker=c},1680:function(e,t,n){"use strict";var s,o=this&&this.__extends||(s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},s(e,t)},function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.basicTypes=t.BasicType=t.TParamList=t.TParam=t.param=t.TFunc=t.func=t.TProp=t.TOptional=t.opt=t.TIface=t.iface=t.TEnumLiteral=t.enumlit=t.TEnumType=t.enumtype=t.TIntersection=t.intersection=t.TUnion=t.union=t.TTuple=t.tuple=t.TArray=t.array=t.TLiteral=t.lit=t.TName=t.name=t.TType=void 0;var r=n(1977),i=function(){};function a(e){return"string"==typeof e?l(e):e}function c(e,t){var n=e[t];if(!n)throw new Error("Unknown type "+t);return n}function l(e){return new u(e)}t.TType=i,t.name=l;var u=function(e){function t(t){var n=e.call(this)||this;return n.name=t,n._failMsg="is not a "+t,n}return o(t,e),t.prototype.getChecker=function(e,n,s){var o=this,r=c(e,this.name),i=r.getChecker(e,n,s);return r instanceof w||r instanceof t?i:function(e,t){return!!i(e,t)||t.fail(null,o._failMsg,0)}},t}(i);t.TName=u,t.lit=function(e){return new h(e)};var h=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n.name=JSON.stringify(t),n._failMsg="is not "+n.name,n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return e===n.value||t.fail(null,n._failMsg,-1)}},t}(i);t.TLiteral=h,t.array=function(e){return new p(a(e))};var p=function(e){function t(t){var n=e.call(this)||this;return n.ttype=t,n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this.ttype.getChecker(e,t);return function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var s=0;s<e.length;s++){if(!n(e[s],t))return t.fail(s,null,1)}return!0}},t}(i);t.TArray=p,t.tuple=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new d(e.map((function(e){return a(e)})))};var d=function(e){function t(t){var n=e.call(this)||this;return n.ttypes=t,n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this.ttypes.map((function(n){return n.getChecker(e,t)})),s=function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var s=0;s<n.length;s++){if(!n[s](e[s],t))return t.fail(s,null,1)}return!0};return t?function(e,t){return!!s(e,t)&&(e.length<=n.length||t.fail(n.length,"is extraneous",2))}:s},t}(i);t.TTuple=d,t.union=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new f(e.map((function(e){return a(e)})))};var f=function(e){function t(t){var n=e.call(this)||this;n.ttypes=t;var s=t.map((function(e){return e instanceof u||e instanceof h?e.name:null})).filter((function(e){return e})),o=t.length-s.length;return s.length?(o>0&&s.push(o+" more"),n._failMsg="is none of "+s.join(", ")):n._failMsg="is none of "+o+" types",n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this,s=this.ttypes.map((function(n){return n.getChecker(e,t)}));return function(e,t){for(var o=t.unionResolver(),r=0;r<s.length;r++){if(s[r](e,o.createContext()))return!0}return t.resolveUnion(o),t.fail(null,n._failMsg,0)}},t}(i);t.TUnion=f,t.intersection=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new m(e.map((function(e){return a(e)})))};var m=function(e){function t(t){var n=e.call(this)||this;return n.ttypes=t,n}return o(t,e),t.prototype.getChecker=function(e,t){var n=new Set,s=this.ttypes.map((function(s){return s.getChecker(e,t,n)}));return function(e,t){return!!s.every((function(n){return n(e,t)}))||t.fail(null,null,0)}},t}(i);t.TIntersection=m,t.enumtype=function(e){return new k(e)};var k=function(e){function t(t){var n=e.call(this)||this;return n.members=t,n.validValues=new Set,n._failMsg="is not a valid enum value",n.validValues=new Set(Object.keys(t).map((function(e){return t[e]}))),n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return!!n.validValues.has(e)||t.fail(null,n._failMsg,0)}},t}(i);t.TEnumType=k,t.enumlit=function(e,t){return new g(e,t)};var g=function(e){function t(t,n){var s=e.call(this)||this;return s.enumName=t,s.prop=n,s._failMsg="is not "+t+"."+n,s}return o(t,e),t.prototype.getChecker=function(e,t){var n=this,s=c(e,this.enumName);if(!(s instanceof k))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var o=s.members[this.prop];if(!s.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(e,t){return e===o||t.fail(null,n._failMsg,-1)}},t}(i);function x(e){return Object.keys(e).map((function(t){return function(e,t){return t instanceof _?new T(e,t.ttype,!0):new T(e,a(t),!1)}(t,e[t])}))}t.TEnumLiteral=g,t.iface=function(e,t){return new y(e,x(t))};var y=function(e){function t(t,n){var s=e.call(this)||this;return s.bases=t,s.props=n,s.propSet=new Set(n.map((function(e){return e.name}))),s}return o(t,e),t.prototype.getChecker=function(e,t,n){var s=this,o=this.bases.map((function(n){return c(e,n).getChecker(e,t)})),i=this.props.map((function(n){return n.ttype.getChecker(e,t)})),a=new r.NoopContext,l=this.props.map((function(e,t){return!e.isOpt&&!i[t](void 0,a)})),u=function(e,t){if("object"!=typeof e||null===e)return t.fail(null,"is not an object",0);for(var n=0;n<o.length;n++)if(!o[n](e,t))return!1;for(n=0;n<i.length;n++){var r=s.props[n].name,a=e[r];if(void 0===a){if(l[n])return t.fail(r,"is missing",1)}else if(!i[n](a,t))return t.fail(r,null,1)}return!0};if(!t)return u;var h=this.propSet;return n&&(this.propSet.forEach((function(e){return n.add(e)})),h=n),function(e,t){if(!u(e,t))return!1;for(var n in e)if(!h.has(n))return t.fail(n,"is extraneous",2);return!0}},t}(i);t.TIface=y,t.opt=function(e){return new _(a(e))};var _=function(e){function t(t){var n=e.call(this)||this;return n.ttype=t,n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this.ttype.getChecker(e,t);return function(e,t){return void 0===e||n(e,t)}},t}(i);t.TOptional=_;var T=function(e,t,n){this.name=e,this.ttype=t,this.isOpt=n};t.TProp=T,t.func=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new b(new I(t),a(e))};var b=function(e){function t(t,n){var s=e.call(this)||this;return s.paramList=t,s.result=n,s}return o(t,e),t.prototype.getChecker=function(e,t){return function(e,t){return"function"==typeof e||t.fail(null,"is not a function",0)}},t}(i);t.TFunc=b,t.param=function(e,t,n){return new v(e,a(t),Boolean(n))};var v=function(e,t,n){this.name=e,this.ttype=t,this.isOpt=n};t.TParam=v;var I=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this,s=this.params.map((function(n){return n.ttype.getChecker(e,t)})),o=new r.NoopContext,i=this.params.map((function(e,t){return!e.isOpt&&!s[t](void 0,o)})),a=function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var o=0;o<s.length;o++){var r=n.params[o];if(void 0===e[o]){if(i[o])return t.fail(r.name,"is missing",1)}else if(!s[o](e[o],t))return t.fail(r.name,null,1)}return!0};return t?function(e,t){return!!a(e,t)&&(e.length<=s.length||t.fail(s.length,"is extraneous",2))}:a},t}(i);t.TParamList=I;var w=function(e){function t(t,n){var s=e.call(this)||this;return s.validator=t,s.message=n,s}return o(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return!!n.validator(e)||t.fail(null,n.message,0)}},t}(i);t.BasicType=w,t.basicTypes={any:new w((function(e){return!0}),"is invalid"),number:new w((function(e){return"number"==typeof e}),"is not a number"),object:new w((function(e){return"object"==typeof e&&e}),"is not an object"),boolean:new w((function(e){return"boolean"==typeof e}),"is not a boolean"),string:new w((function(e){return"string"==typeof e}),"is not a string"),symbol:new w((function(e){return"symbol"==typeof e}),"is not a symbol"),void:new w((function(e){return null==e}),"is not void"),undefined:new w((function(e){return void 0===e}),"is not undefined"),null:new w((function(e){return null===e}),"is not null"),never:new w((function(e){return!1}),"is unexpected"),Date:new w(A("[object Date]"),"is not a Date"),RegExp:new w(A("[object RegExp]"),"is not a RegExp")};var C=Object.prototype.toString;function A(e){return function(t){return"object"==typeof t&&t&&C.call(t)===e}}"undefined"!=typeof Buffer&&(t.basicTypes.Buffer=new w((function(e){return Buffer.isBuffer(e)}),"is not a Buffer"));for(var E=function(e){t.basicTypes[e.name]=new w((function(t){return t instanceof e}),"is not a "+e.name)},S=0,N=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];S<N.length;S++){E(N[S])}},1977:function(e,t){"use strict";var n,s=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},n(e,t)},function(e,t){function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(t,"__esModule",{value:!0}),t.DetailContext=t.NoopContext=t.VError=void 0;var o=function(e){function t(n,s){var o=e.call(this,s)||this;return o.path=n,Object.setPrototypeOf(o,t.prototype),o}return s(t,e),t}(Error);t.VError=o;var r=function(){function e(){}return e.prototype.fail=function(e,t,n){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(e){},e}();t.NoopContext=r;var i=function(){function e(){this._propNames=[""],this._messages=[null],this._score=0}return e.prototype.fail=function(e,t,n){return this._propNames.push(e),this._messages.push(t),this._score+=n,!1},e.prototype.unionResolver=function(){return new a},e.prototype.resolveUnion=function(e){for(var t,n,s=null,o=0,r=e.contexts;o<r.length;o++){var i=r[o];(!s||i._score>=s._score)&&(s=i)}s&&s._score>0&&((t=this._propNames).push.apply(t,s._propNames),(n=this._messages).push.apply(n,s._messages))},e.prototype.getError=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var s=this._propNames[n];e+="number"==typeof s?"["+s+"]":s?"."+s:"";var r=this._messages[n];r&&t.push(e+" "+r)}return new o(e,t.join("; "))},e.prototype.getErrorDetail=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var s=this._propNames[n];e+="number"==typeof s?"["+s+"]":s?"."+s:"";var o=this._messages[n];o&&t.push({path:e,message:o})}var r=null;for(n=t.length-1;n>=0;n--)r&&(t[n].nested=[r]),r=t[n];return r},e}();t.DetailContext=i;var a=function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var e=new i;return this.contexts.push(e),e},e}()},8453:(e,t,n)=>{"use strict";n.d(t,{R:()=>i,x:()=>a});var s=n(6540);const o={},r=s.createContext(o);function i(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2be9118b.1e62f3f0.js b/assets/js/2be9118b.1e62f3f0.js new file mode 100644 index 00000000..da66ffec --- /dev/null +++ b/assets/js/2be9118b.1e62f3f0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3237],{5404:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>d,toc:()=>l});var n=t(4848),r=t(8453),a=(t(8597),t(8205));const i={sidebar_position:8},o=void 0,d={id:"documentation/series-methods/ser.str.split()",title:"ser.str.split()",description:"ser.str.split(pat = None)",source:"@site/docs/documentation/series-methods/ser.str.split().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.split()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.split()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.split().md",tags:[],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8},sidebar:"docsSidebar",previous:{title:"ser.unique()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.unique()"},next:{title:"ser.str.strip()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.strip()"}},c={},l=[];function p(e){const s={code:"code",hr:"hr",pre:"pre",strong:"strong",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"ser.str.split(pat = None)"}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Splits each string element in the Series from the beginning, at the specified seperator/delimiter string."})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Input:"}),(0,n.jsxs)("dd",{className:"parameter",children:["pat : ",(0,n.jsx)("em",{children:"string or None, default None"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"String to split on. If not specified, split on whitespace."}),(0,n.jsx)("dt",{className:"term",children:"Returns:"}),(0,n.jsx)("dd",{children:"Returns a Series with each element as a list of strings split from the original string."}),(0,n.jsx)("dt",{className:"term",children:"Return Type:"}),(0,n.jsx)("dd",{children:"Series"})]})]}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\ncomment_ser\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,n.jsxs)("p",{children:[(0,n.jsx)("br",{})," ",(0,n.jsx)(s.strong,{children:"In the default setting, the string is split by whitespace."})," "]}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"comment_ser.str.split()\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment", "dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[["There","are","no","bad","dogs,","only","bad","owners."],["My","best","birthday","present","ever!!!"],["****All","you","need","is","love","and","a","cat.****"],["Love","is","a","wet","nose","and","a","wagging","tail."],["Be","the","person","your","dog","thinks","you","are."],["No,","thank","you!"],["No,","thank","you!"],["No,","thank","you!"]]}'}),"\n",(0,n.jsxs)("p",{children:[(0,n.jsx)("br",{})," ",(0,n.jsx)(s.strong,{children:"Split the string by specified seperator."})," "]}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"comment_ser.str.split(',')\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment", "dtype":"object", "index":[0,1,2,3,4,5,6,7],"data":[[" There are no bad dogs"," only bad owners."],["My best birthday present ever!!!"],["****All you need is love and a cat.****"],["Love is a wet nose and a wagging tail."],["Be the person your dog thinks you are."],["No"," thank you!"],["No"," thank you!"],["No"," thank you!"]]}'})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],a="",i=[];if(s){const e=JSON.parse(s);t=e.columns||[],r=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:a}),t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:r.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:i[s]}),e.map(((e,s)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],a="",i="";if(s)try{const e=JSON.parse(s);a=e.name||"",i=e.dtype||"Unknown type",t=e.index||[],r=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=r.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:t[s]}),(0,n.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>i,x:()=>o});var n=t(6540);const r={},a=n.createContext(r);function i(e){const s=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),n.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2be9118b.9ba0b5ad.js b/assets/js/2be9118b.9ba0b5ad.js deleted file mode 100644 index 8858dafd..00000000 --- a/assets/js/2be9118b.9ba0b5ad.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3237],{5404:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>d,toc:()=>l});var n=t(4848),r=t(8453),a=(t(8597),t(8205));const i={sidebar_position:8},o=void 0,d={id:"documentation/series-methods/ser.str.split()",title:"ser.str.split()",description:"ser.str.split(pat = None)",source:"@site/docs/documentation/series-methods/ser.str.split().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.split()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.split()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.split().md",tags:[],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8},sidebar:"docsSidebar",previous:{title:"ser.unique()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.unique()"},next:{title:"ser.str.strip()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.strip()"}},c={},l=[];function p(e){const s={code:"code",hr:"hr",pre:"pre",strong:"strong",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"ser.str.split(pat = None)"}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Splits each string element in the Series from the beginning, at the specified seperator/delimiter string."})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Input:"}),(0,n.jsxs)("dd",{className:"parameter",children:["pat : ",(0,n.jsx)("em",{children:"string or None, default None"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"String to split on. If not specified, split on whitespace."}),(0,n.jsx)("dt",{className:"term",children:"Returns:"}),(0,n.jsx)("dd",{children:"Returns a Series with each element as a list of strings split from the original string."}),(0,n.jsx)("dt",{className:"term",children:"Return Type:"}),(0,n.jsx)("dd",{children:"Series"})]})]}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\r\ncomment_ser\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,n.jsxs)("p",{children:[(0,n.jsx)("br",{})," ",(0,n.jsx)(s.strong,{children:"In the default setting, the string is split by whitespace."})," "]}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"comment_ser.str.split()\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment", "dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[["There","are","no","bad","dogs,","only","bad","owners."],["My","best","birthday","present","ever!!!"],["****All","you","need","is","love","and","a","cat.****"],["Love","is","a","wet","nose","and","a","wagging","tail."],["Be","the","person","your","dog","thinks","you","are."],["No,","thank","you!"],["No,","thank","you!"],["No,","thank","you!"]]}'}),"\n",(0,n.jsxs)("p",{children:[(0,n.jsx)("br",{})," ",(0,n.jsx)(s.strong,{children:"Split the string by specified seperator."})," "]}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"comment_ser.str.split(',')\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Owner_Comment", "dtype":"object", "index":[0,1,2,3,4,5,6,7],"data":[[" There are no bad dogs"," only bad owners."],["My best birthday present ever!!!"],["****All you need is love and a cat.****"],["Love is a wet nose and a wagging tail."],["Be the person your dog thinks you are."],["No"," thank you!"],["No"," thank you!"],["No"," thank you!"]]}'})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],a="",i=[];if(s){const e=JSON.parse(s);t=e.columns||[],r=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:a}),t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:r.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:i[s]}),e.map(((e,s)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],a="",i="";if(s)try{const e=JSON.parse(s);a=e.name||"",i=e.dtype||"Unknown type",t=e.index||[],r=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=r.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:t[s]}),(0,n.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>i,x:()=>o});var n=t(6540);const r={},a=n.createContext(r);function i(e){const s=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),n.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2efbf384.0dfce00f.js b/assets/js/2efbf384.0dfce00f.js deleted file mode 100644 index ded65fe1..00000000 --- a/assets/js/2efbf384.0dfce00f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7069],{6621:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>o,contentTitle:()=>i,default:()=>m,frontMatter:()=>d,metadata:()=>c,toc:()=>l});var a=r(4848),s=r(8453),t=(r(8597),r(8205));const d={sidebar_position:1},i=void 0,c={id:"documentation/arrays-and-numpy/np.round()",title:"np.round()",description:"np.round(arr, decimals)",source:"@site/docs/documentation/arrays-and-numpy/np.round().md",sourceDirName:"documentation/arrays-and-numpy",slug:"/documentation/arrays-and-numpy/np.round()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.round()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/arrays-and-numpy/np.round().md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"np.percentile()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()"},next:{title:"Plotting",permalink:"/bpd-reference/docs/documentation/plotting/"}},o={},l=[];function p(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"np.round(arr, decimals)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Rounds each element of an array to a specified number of decimal places."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["arr : ",(0,a.jsx)("em",{children:"array_like"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Input data, array-like structure containing numerical data to be rounded."}),(0,a.jsxs)("dd",{className:"parameter",children:["decimals : ",(0,a.jsx)("em",{children:"int, optional (default=0)"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Number of decimal places to round to. If omitted, defaults to 0, meaning rounding to the nearest integer."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsxs)("dd",{children:["rounded_array - An array of the same shape as ",(0,a.jsx)(n.code,{children:"a"}),", with each element rounded to the specified number of decimal places."]}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"ndarray"}),(0,a.jsx)("dd",{className:"return-description",children:"A new array containing the rounded values."})]})]}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,a.jsx)(t.A,{data:'{"name":"Weight","dtype":"float64","index":["dog_001","cat_001","cat_002","dog_002","dog_003","ham_001","ham_002"],"data":[40.0,15.0,20.0,80.0,25.0,1.0,0.25]}'}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"weight_arr = np.array(weight_ser)\r\nweight_arr\n"})}),"\n",(0,a.jsx)(n.p,{children:"array([40. , 15. , 20. , 80. , 25. , 1. , 0.25])"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"np.round(weight_arr, 0) # Doesn't include decimals\n"})}),"\n",(0,a.jsx)(n.p,{children:"array([40., 2., 15., 80., 25., 1., 0., 10.])"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"np.round(weight_arr, 1) # Rounds to the nearest tenth - notice what happens to 0.25!\n"})}),"\n",(0,a.jsx)(n.p,{children:"array([40. , 1.5, 15. , 80. , 25. , 1. , 0.2, 10. ])"})]})}function m(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},8597:(e,n,r)=>{r.d(n,{A:()=>s});r(6540);var a=r(4848);const s=e=>{let{data:n}=e,r=[],s=[],t="",d=[];if(n){const e=JSON.parse(n);r=e.columns||[],s=e.data||[],t=e.indexName||"Index",d=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:t}),r.map(((e,n)=>(0,a.jsx)("th",{children:e},n)))]})}),(0,a.jsx)("tbody",{children:s.map(((e,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:d[n]}),e.map(((e,n)=>{return(0,a.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},n);var r}))]},n)))})]})})}},8205:(e,n,r)=>{r.d(n,{A:()=>s});r(6540);var a=r(4848);const s=e=>{let{data:n}=e,r=[],s=[],t="",d="";if(n)try{const e=JSON.parse(n);t=e.name||"",d=e.dtype||"Unknown type",r=e.index||[],s=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const i=s.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:i.map(((e,n)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:r[n]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",t,", dtype: ",d]})]})}},8453:(e,n,r)=>{r.d(n,{R:()=>d,x:()=>i});var a=r(6540);const s={},t=a.createContext(s);function d(e){const n=a.useContext(t);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:d(e.components),a.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2efbf384.0f6f23fb.js b/assets/js/2efbf384.0f6f23fb.js new file mode 100644 index 00000000..851cb06a --- /dev/null +++ b/assets/js/2efbf384.0f6f23fb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7069],{6621:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>o,contentTitle:()=>i,default:()=>m,frontMatter:()=>d,metadata:()=>c,toc:()=>l});var a=r(4848),s=r(8453),t=(r(8597),r(8205));const d={sidebar_position:1},i=void 0,c={id:"documentation/arrays-and-numpy/np.round()",title:"np.round()",description:"np.round(arr, decimals)",source:"@site/docs/documentation/arrays-and-numpy/np.round().md",sourceDirName:"documentation/arrays-and-numpy",slug:"/documentation/arrays-and-numpy/np.round()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.round()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/arrays-and-numpy/np.round().md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"np.percentile()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()"},next:{title:"Plotting",permalink:"/bpd-reference/docs/documentation/plotting/"}},o={},l=[];function p(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"np.round(arr, decimals)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Rounds each element of an array to a specified number of decimal places."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["arr : ",(0,a.jsx)("em",{children:"array_like"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Input data, array-like structure containing numerical data to be rounded."}),(0,a.jsxs)("dd",{className:"parameter",children:["decimals : ",(0,a.jsx)("em",{children:"int, optional (default=0)"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Number of decimal places to round to. If omitted, defaults to 0, meaning rounding to the nearest integer."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsxs)("dd",{children:["rounded_array - An array of the same shape as ",(0,a.jsx)(n.code,{children:"a"}),", with each element rounded to the specified number of decimal places."]}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"ndarray"}),(0,a.jsx)("dd",{className:"return-description",children:"A new array containing the rounded values."})]})]}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,a.jsx)(t.A,{data:'{"name":"Weight","dtype":"float64","index":["dog_001","cat_001","cat_002","dog_002","dog_003","ham_001","ham_002"],"data":[40.0,15.0,20.0,80.0,25.0,1.0,0.25]}'}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"weight_arr = np.array(weight_ser)\nweight_arr\n"})}),"\n",(0,a.jsx)(n.p,{children:"array([40. , 15. , 20. , 80. , 25. , 1. , 0.25])"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"np.round(weight_arr, 0) # Doesn't include decimals\n"})}),"\n",(0,a.jsx)(n.p,{children:"array([40., 2., 15., 80., 25., 1., 0., 10.])"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"np.round(weight_arr, 1) # Rounds to the nearest tenth - notice what happens to 0.25!\n"})}),"\n",(0,a.jsx)(n.p,{children:"array([40. , 1.5, 15. , 80. , 25. , 1. , 0.2, 10. ])"})]})}function m(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},8597:(e,n,r)=>{r.d(n,{A:()=>s});r(6540);var a=r(4848);const s=e=>{let{data:n}=e,r=[],s=[],t="",d=[];if(n){const e=JSON.parse(n);r=e.columns||[],s=e.data||[],t=e.indexName||"Index",d=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:t}),r.map(((e,n)=>(0,a.jsx)("th",{children:e},n)))]})}),(0,a.jsx)("tbody",{children:s.map(((e,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:d[n]}),e.map(((e,n)=>{return(0,a.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},n);var r}))]},n)))})]})})}},8205:(e,n,r)=>{r.d(n,{A:()=>s});r(6540);var a=r(4848);const s=e=>{let{data:n}=e,r=[],s=[],t="",d="";if(n)try{const e=JSON.parse(n);t=e.name||"",d=e.dtype||"Unknown type",r=e.index||[],s=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const i=s.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:i.map(((e,n)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:r[n]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",t,", dtype: ",d]})]})}},8453:(e,n,r)=>{r.d(n,{R:()=>d,x:()=>i});var a=r(6540);const s={},t=a.createContext(s);function d(e){const n=a.useContext(t);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:d(e.components),a.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/3242.7073af4e.js b/assets/js/3242.42f3e555.js similarity index 99% rename from assets/js/3242.7073af4e.js rename to assets/js/3242.42f3e555.js index ff47d2c6..a8758b13 100644 --- a/assets/js/3242.7073af4e.js +++ b/assets/js/3242.42f3e555.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3242],{6535:(e,t,a)=>{a.d(t,{A:()=>f});var s=a(6540),n=a(4164),r=a(4561),l=a(4581),i=a(8774),o=a(1312),c=a(6347),m=a(9169);function d(e){const{pathname:t}=(0,c.zy)();return(0,s.useMemo)((()=>e.filter((e=>function(e,t){return!(e.unlisted&&!(0,m.ys)(e.permalink,t))}(e,t)))),[e,t])}const u={sidebar:"sidebar_re4s",sidebarItemTitle:"sidebarItemTitle_pO2u",sidebarItemList:"sidebarItemList_Yudw",sidebarItem:"sidebarItem__DBe",sidebarItemLink:"sidebarItemLink_mo7H",sidebarItemLinkActive:"sidebarItemLinkActive_I1ZP"};var h=a(4848);function g(e){let{sidebar:t}=e;const a=d(t.items);return(0,h.jsx)("aside",{className:"col col--3",children:(0,h.jsxs)("nav",{className:(0,n.A)(u.sidebar,"thin-scrollbar"),"aria-label":(0,o.T)({id:"theme.blog.sidebar.navAriaLabel",message:"Blog recent posts navigation",description:"The ARIA label for recent posts in the blog sidebar"}),children:[(0,h.jsx)("div",{className:(0,n.A)(u.sidebarItemTitle,"margin-bottom--md"),children:t.title}),(0,h.jsx)("ul",{className:(0,n.A)(u.sidebarItemList,"clean-list"),children:a.map((e=>(0,h.jsx)("li",{className:u.sidebarItem,children:(0,h.jsx)(i.A,{isNavLink:!0,to:e.permalink,className:u.sidebarItemLink,activeClassName:u.sidebarItemLinkActive,children:e.title})},e.permalink)))})]})})}var x=a(5600);function j(e){let{sidebar:t}=e;const a=d(t.items);return(0,h.jsx)("ul",{className:"menu__list",children:a.map((e=>(0,h.jsx)("li",{className:"menu__list-item",children:(0,h.jsx)(i.A,{isNavLink:!0,to:e.permalink,className:"menu__link",activeClassName:"menu__link--active",children:e.title})},e.permalink)))})}function p(e){return(0,h.jsx)(x.GX,{component:j,props:e})}function b(e){let{sidebar:t}=e;const a=(0,l.l)();return t?.items.length?"mobile"===a?(0,h.jsx)(p,{sidebar:t}):(0,h.jsx)(g,{sidebar:t}):null}function f(e){const{sidebar:t,toc:a,children:s,...l}=e,i=t&&t.items.length>0;return(0,h.jsx)(r.A,{...l,children:(0,h.jsx)("div",{className:"container margin-vert--lg",children:(0,h.jsxs)("div",{className:"row",children:[(0,h.jsx)(b,{sidebar:t}),(0,h.jsx)("main",{className:(0,n.A)("col",{"col--7":i,"col--9 col--offset-1":!i}),children:s}),a&&(0,h.jsx)("div",{className:"col col--2",children:a})]})})})}},4651:(e,t,a)=>{a.d(t,{A:()=>R});a(6540);var s=a(4164),n=a(7131),r=a(4848);function l(e){let{children:t,className:a}=e;return(0,r.jsx)("article",{className:a,children:t})}var i=a(8774);const o={title:"title_f1Hy"};function c(e){let{className:t}=e;const{metadata:a,isBlogPostPage:l}=(0,n.e)(),{permalink:c,title:m}=a,d=l?"h1":"h2";return(0,r.jsx)(d,{className:(0,s.A)(o.title,t),children:l?m:(0,r.jsx)(i.A,{to:c,children:m})})}var m=a(1312),d=a(5846),u=a(6266);const h={container:"container_mt6G"};function g(e){let{readingTime:t}=e;const a=function(){const{selectMessage:e}=(0,d.W)();return t=>{const a=Math.ceil(t);return e(a,(0,m.T)({id:"theme.blog.post.readingTime.plurals",description:'Pluralized label for "{readingTime} min read". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)',message:"One min read|{readingTime} min read"},{readingTime:a}))}}();return(0,r.jsx)(r.Fragment,{children:a(t)})}function x(e){let{date:t,formattedDate:a}=e;return(0,r.jsx)("time",{dateTime:t,children:a})}function j(){return(0,r.jsx)(r.Fragment,{children:" \xb7 "})}function p(e){let{className:t}=e;const{metadata:a}=(0,n.e)(),{date:l,readingTime:i}=a,o=(0,u.i)({day:"numeric",month:"long",year:"numeric",timeZone:"UTC"});return(0,r.jsxs)("div",{className:(0,s.A)(h.container,"margin-vert--md",t),children:[(0,r.jsx)(x,{date:l,formattedDate:(c=l,o.format(new Date(c)))}),void 0!==i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j,{}),(0,r.jsx)(g,{readingTime:i})]})]});var c}function b(e){return e.href?(0,r.jsx)(i.A,{...e}):(0,r.jsx)(r.Fragment,{children:e.children})}function f(e){let{author:t,className:a}=e;const{name:n,title:l,url:i,imageURL:o,email:c}=t,m=i||c&&`mailto:${c}`||void 0;return(0,r.jsxs)("div",{className:(0,s.A)("avatar margin-bottom--sm",a),children:[o&&(0,r.jsx)(b,{href:m,className:"avatar__photo-link",children:(0,r.jsx)("img",{className:"avatar__photo",src:o,alt:n})}),n&&(0,r.jsxs)("div",{className:"avatar__intro",children:[(0,r.jsx)("div",{className:"avatar__name",children:(0,r.jsx)(b,{href:m,children:(0,r.jsx)("span",{children:n})})}),l&&(0,r.jsx)("small",{className:"avatar__subtitle",children:l})]})]})}const v={authorCol:"authorCol_Hf19",imageOnlyAuthorRow:"imageOnlyAuthorRow_pa_O",imageOnlyAuthorCol:"imageOnlyAuthorCol_G86a"};function A(e){let{className:t}=e;const{metadata:{authors:a},assets:l}=(0,n.e)();if(0===a.length)return null;const i=a.every((e=>{let{name:t}=e;return!t}));return(0,r.jsx)("div",{className:(0,s.A)("margin-top--md margin-bottom--sm",i?v.imageOnlyAuthorRow:"row",t),children:a.map(((e,t)=>(0,r.jsx)("div",{className:(0,s.A)(!i&&"col col--6",i?v.imageOnlyAuthorCol:v.authorCol),children:(0,r.jsx)(f,{author:{...e,imageURL:l.authorsImageUrls[t]??e.imageURL}})},t)))})}function N(){return(0,r.jsxs)("header",{children:[(0,r.jsx)(c,{}),(0,r.jsx)(p,{}),(0,r.jsx)(A,{})]})}var _=a(440),k=a(2639);function P(e){let{children:t,className:a}=e;const{isBlogPostPage:l}=(0,n.e)();return(0,r.jsx)("div",{id:l?_.blogPostContainerID:void 0,className:(0,s.A)("markdown",a),children:(0,r.jsx)(k.A,{children:t})})}var w=a(7559),T=a(4336),I=a(2053);function L(){return(0,r.jsx)("b",{children:(0,r.jsx)(m.A,{id:"theme.blog.post.readMore",description:"The label used in blog post item excerpts to link to full blog posts",children:"Read More"})})}function y(e){const{blogPostTitle:t,...a}=e;return(0,r.jsx)(i.A,{"aria-label":(0,m.T)({message:"Read more about {title}",id:"theme.blog.post.readMoreLabel",description:"The ARIA label for the link to full blog posts from excerpts"},{title:t}),...a,children:(0,r.jsx)(L,{})})}function C(){const{metadata:e,isBlogPostPage:t}=(0,n.e)(),{tags:a,title:l,editUrl:i,hasTruncateMarker:o,lastUpdatedBy:c,lastUpdatedAt:m}=e,d=!t&&o,u=a.length>0;if(!(u||d||i))return null;if(t){const e=!!(i||m||c);return(0,r.jsxs)("footer",{className:"docusaurus-mt-lg",children:[u&&(0,r.jsx)("div",{className:(0,s.A)("row","margin-top--sm",w.G.blog.blogFooterEditMetaRow),children:(0,r.jsx)("div",{className:"col",children:(0,r.jsx)(I.A,{tags:a})})}),e&&(0,r.jsx)(T.A,{className:(0,s.A)("margin-top--sm",w.G.blog.blogFooterEditMetaRow),editUrl:i,lastUpdatedAt:m,lastUpdatedBy:c})]})}return(0,r.jsxs)("footer",{className:"row docusaurus-mt-lg",children:[u&&(0,r.jsx)("div",{className:(0,s.A)("col",{"col--9":d}),children:(0,r.jsx)(I.A,{tags:a})}),d&&(0,r.jsx)("div",{className:(0,s.A)("col text--right",{"col--3":u}),children:(0,r.jsx)(y,{blogPostTitle:l,to:e.permalink})})]})}function R(e){let{children:t,className:a}=e;const i=function(){const{isBlogPostPage:e}=(0,n.e)();return e?void 0:"margin-bottom--xl"}();return(0,r.jsxs)(l,{className:(0,s.A)(i,a),children:[(0,r.jsx)(N,{}),(0,r.jsx)(P,{children:t}),(0,r.jsx)(C,{})]})}},9022:(e,t,a)=>{a.d(t,{A:()=>l});a(6540);var s=a(4164),n=a(8774),r=a(4848);function l(e){const{permalink:t,title:a,subLabel:l,isNext:i}=e;return(0,r.jsxs)(n.A,{className:(0,s.A)("pagination-nav__link",i?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[l&&(0,r.jsx)("div",{className:"pagination-nav__sublabel",children:l}),(0,r.jsx)("div",{className:"pagination-nav__label",children:a})]})}},6133:(e,t,a)=>{a.d(t,{A:()=>i});a(6540);var s=a(4164),n=a(8774);const r={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var l=a(4848);function i(e){let{permalink:t,label:a,count:i}=e;return(0,l.jsxs)(n.A,{href:t,className:(0,s.A)(r.tag,i?r.tagWithCount:r.tagRegular),children:[a,i&&(0,l.jsx)("span",{children:i})]})}},2053:(e,t,a)=>{a.d(t,{A:()=>o});a(6540);var s=a(4164),n=a(1312),r=a(6133);const l={tags:"tags_jXut",tag:"tag_QGVx"};var i=a(4848);function o(e){let{tags:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("b",{children:(0,i.jsx)(n.A,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,i.jsx)("ul",{className:(0,s.A)(l.tags,"padding--none","margin-left--sm"),children:t.map((e=>{let{label:t,permalink:a}=e;return(0,i.jsx)("li",{className:l.tag,children:(0,i.jsx)(r.A,{label:t,permalink:a})},a)}))})]})}},7131:(e,t,a)=>{a.d(t,{e:()=>o,i:()=>i});var s=a(6540),n=a(9532),r=a(4848);const l=s.createContext(null);function i(e){let{children:t,content:a,isBlogPostPage:n=!1}=e;const i=function(e){let{content:t,isBlogPostPage:a}=e;return(0,s.useMemo)((()=>({metadata:t.metadata,frontMatter:t.frontMatter,assets:t.assets,toc:t.toc,isBlogPostPage:a})),[t,a])}({content:a,isBlogPostPage:n});return(0,r.jsx)(l.Provider,{value:i,children:t})}function o(){const e=(0,s.useContext)(l);if(null===e)throw new n.dV("BlogPostProvider");return e}},5846:(e,t,a)=>{a.d(t,{W:()=>c});var s=a(6540),n=a(4586);const r=["zero","one","two","few","many","other"];function l(e){return r.filter((t=>e.includes(t)))}const i={locale:"en",pluralForms:l(["one","other"]),select:e=>1===e?"one":"other"};function o(){const{i18n:{currentLocale:e}}=(0,n.A)();return(0,s.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:l(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),i}}),[e])}function c(){const e=o();return{selectMessage:(t,a)=>function(e,t,a){const s=e.split("|");if(1===s.length)return s[0];s.length>a.pluralForms.length&&console.error(`For locale=${a.locale}, a maximum of ${a.pluralForms.length} plural forms are expected (${a.pluralForms.join(",")}), but the message contains ${s.length}: ${e}`);const n=a.select(t),r=a.pluralForms.indexOf(n);return s[Math.min(r,s.length-1)]}(a,t,e)}}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3242],{6535:(e,t,a)=>{a.d(t,{A:()=>f});var s=a(6540),n=a(4164),r=a(4561),l=a(4581),i=a(8774),o=a(1312),c=a(6347),m=a(9169);function d(e){const{pathname:t}=(0,c.zy)();return(0,s.useMemo)((()=>e.filter((e=>function(e,t){return!(e.unlisted&&!(0,m.ys)(e.permalink,t))}(e,t)))),[e,t])}const u={sidebar:"sidebar_re4s",sidebarItemTitle:"sidebarItemTitle_pO2u",sidebarItemList:"sidebarItemList_Yudw",sidebarItem:"sidebarItem__DBe",sidebarItemLink:"sidebarItemLink_mo7H",sidebarItemLinkActive:"sidebarItemLinkActive_I1ZP"};var h=a(4848);function g(e){let{sidebar:t}=e;const a=d(t.items);return(0,h.jsx)("aside",{className:"col col--3",children:(0,h.jsxs)("nav",{className:(0,n.A)(u.sidebar,"thin-scrollbar"),"aria-label":(0,o.T)({id:"theme.blog.sidebar.navAriaLabel",message:"Blog recent posts navigation",description:"The ARIA label for recent posts in the blog sidebar"}),children:[(0,h.jsx)("div",{className:(0,n.A)(u.sidebarItemTitle,"margin-bottom--md"),children:t.title}),(0,h.jsx)("ul",{className:(0,n.A)(u.sidebarItemList,"clean-list"),children:a.map((e=>(0,h.jsx)("li",{className:u.sidebarItem,children:(0,h.jsx)(i.A,{isNavLink:!0,to:e.permalink,className:u.sidebarItemLink,activeClassName:u.sidebarItemLinkActive,children:e.title})},e.permalink)))})]})})}var x=a(5600);function j(e){let{sidebar:t}=e;const a=d(t.items);return(0,h.jsx)("ul",{className:"menu__list",children:a.map((e=>(0,h.jsx)("li",{className:"menu__list-item",children:(0,h.jsx)(i.A,{isNavLink:!0,to:e.permalink,className:"menu__link",activeClassName:"menu__link--active",children:e.title})},e.permalink)))})}function p(e){return(0,h.jsx)(x.GX,{component:j,props:e})}function b(e){let{sidebar:t}=e;const a=(0,l.l)();return t?.items.length?"mobile"===a?(0,h.jsx)(p,{sidebar:t}):(0,h.jsx)(g,{sidebar:t}):null}function f(e){const{sidebar:t,toc:a,children:s,...l}=e,i=t&&t.items.length>0;return(0,h.jsx)(r.A,{...l,children:(0,h.jsx)("div",{className:"container margin-vert--lg",children:(0,h.jsxs)("div",{className:"row",children:[(0,h.jsx)(b,{sidebar:t}),(0,h.jsx)("main",{className:(0,n.A)("col",{"col--7":i,"col--9 col--offset-1":!i}),children:s}),a&&(0,h.jsx)("div",{className:"col col--2",children:a})]})})})}},4651:(e,t,a)=>{a.d(t,{A:()=>R});a(6540);var s=a(4164),n=a(7131),r=a(4848);function l(e){let{children:t,className:a}=e;return(0,r.jsx)("article",{className:a,children:t})}var i=a(8774);const o={title:"title_f1Hy"};function c(e){let{className:t}=e;const{metadata:a,isBlogPostPage:l}=(0,n.e)(),{permalink:c,title:m}=a,d=l?"h1":"h2";return(0,r.jsx)(d,{className:(0,s.A)(o.title,t),children:l?m:(0,r.jsx)(i.A,{to:c,children:m})})}var m=a(1312),d=a(5846),u=a(6266);const h={container:"container_mt6G"};function g(e){let{readingTime:t}=e;const a=function(){const{selectMessage:e}=(0,d.W)();return t=>{const a=Math.ceil(t);return e(a,(0,m.T)({id:"theme.blog.post.readingTime.plurals",description:'Pluralized label for "{readingTime} min read". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)',message:"One min read|{readingTime} min read"},{readingTime:a}))}}();return(0,r.jsx)(r.Fragment,{children:a(t)})}function x(e){let{date:t,formattedDate:a}=e;return(0,r.jsx)("time",{dateTime:t,children:a})}function j(){return(0,r.jsx)(r.Fragment,{children:" \xb7 "})}function p(e){let{className:t}=e;const{metadata:a}=(0,n.e)(),{date:l,readingTime:i}=a,o=(0,u.i)({day:"numeric",month:"long",year:"numeric",timeZone:"UTC"});return(0,r.jsxs)("div",{className:(0,s.A)(h.container,"margin-vert--md",t),children:[(0,r.jsx)(x,{date:l,formattedDate:(c=l,o.format(new Date(c)))}),void 0!==i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j,{}),(0,r.jsx)(g,{readingTime:i})]})]});var c}function b(e){return e.href?(0,r.jsx)(i.A,{...e}):(0,r.jsx)(r.Fragment,{children:e.children})}function f(e){let{author:t,className:a}=e;const{name:n,title:l,url:i,imageURL:o,email:c}=t,m=i||c&&`mailto:${c}`||void 0;return(0,r.jsxs)("div",{className:(0,s.A)("avatar margin-bottom--sm",a),children:[o&&(0,r.jsx)(b,{href:m,className:"avatar__photo-link",children:(0,r.jsx)("img",{className:"avatar__photo",src:o,alt:n})}),n&&(0,r.jsxs)("div",{className:"avatar__intro",children:[(0,r.jsx)("div",{className:"avatar__name",children:(0,r.jsx)(b,{href:m,children:(0,r.jsx)("span",{children:n})})}),l&&(0,r.jsx)("small",{className:"avatar__subtitle",children:l})]})]})}const v={authorCol:"authorCol_Hf19",imageOnlyAuthorRow:"imageOnlyAuthorRow_pa_O",imageOnlyAuthorCol:"imageOnlyAuthorCol_G86a"};function A(e){let{className:t}=e;const{metadata:{authors:a},assets:l}=(0,n.e)();if(0===a.length)return null;const i=a.every((e=>{let{name:t}=e;return!t}));return(0,r.jsx)("div",{className:(0,s.A)("margin-top--md margin-bottom--sm",i?v.imageOnlyAuthorRow:"row",t),children:a.map(((e,t)=>(0,r.jsx)("div",{className:(0,s.A)(!i&&"col col--6",i?v.imageOnlyAuthorCol:v.authorCol),children:(0,r.jsx)(f,{author:{...e,imageURL:l.authorsImageUrls[t]??e.imageURL}})},t)))})}function N(){return(0,r.jsxs)("header",{children:[(0,r.jsx)(c,{}),(0,r.jsx)(p,{}),(0,r.jsx)(A,{})]})}var _=a(440),k=a(3808);function P(e){let{children:t,className:a}=e;const{isBlogPostPage:l}=(0,n.e)();return(0,r.jsx)("div",{id:l?_.blogPostContainerID:void 0,className:(0,s.A)("markdown",a),children:(0,r.jsx)(k.A,{children:t})})}var w=a(7559),T=a(4336),I=a(2053);function L(){return(0,r.jsx)("b",{children:(0,r.jsx)(m.A,{id:"theme.blog.post.readMore",description:"The label used in blog post item excerpts to link to full blog posts",children:"Read More"})})}function y(e){const{blogPostTitle:t,...a}=e;return(0,r.jsx)(i.A,{"aria-label":(0,m.T)({message:"Read more about {title}",id:"theme.blog.post.readMoreLabel",description:"The ARIA label for the link to full blog posts from excerpts"},{title:t}),...a,children:(0,r.jsx)(L,{})})}function C(){const{metadata:e,isBlogPostPage:t}=(0,n.e)(),{tags:a,title:l,editUrl:i,hasTruncateMarker:o,lastUpdatedBy:c,lastUpdatedAt:m}=e,d=!t&&o,u=a.length>0;if(!(u||d||i))return null;if(t){const e=!!(i||m||c);return(0,r.jsxs)("footer",{className:"docusaurus-mt-lg",children:[u&&(0,r.jsx)("div",{className:(0,s.A)("row","margin-top--sm",w.G.blog.blogFooterEditMetaRow),children:(0,r.jsx)("div",{className:"col",children:(0,r.jsx)(I.A,{tags:a})})}),e&&(0,r.jsx)(T.A,{className:(0,s.A)("margin-top--sm",w.G.blog.blogFooterEditMetaRow),editUrl:i,lastUpdatedAt:m,lastUpdatedBy:c})]})}return(0,r.jsxs)("footer",{className:"row docusaurus-mt-lg",children:[u&&(0,r.jsx)("div",{className:(0,s.A)("col",{"col--9":d}),children:(0,r.jsx)(I.A,{tags:a})}),d&&(0,r.jsx)("div",{className:(0,s.A)("col text--right",{"col--3":u}),children:(0,r.jsx)(y,{blogPostTitle:l,to:e.permalink})})]})}function R(e){let{children:t,className:a}=e;const i=function(){const{isBlogPostPage:e}=(0,n.e)();return e?void 0:"margin-bottom--xl"}();return(0,r.jsxs)(l,{className:(0,s.A)(i,a),children:[(0,r.jsx)(N,{}),(0,r.jsx)(P,{children:t}),(0,r.jsx)(C,{})]})}},9022:(e,t,a)=>{a.d(t,{A:()=>l});a(6540);var s=a(4164),n=a(8774),r=a(4848);function l(e){const{permalink:t,title:a,subLabel:l,isNext:i}=e;return(0,r.jsxs)(n.A,{className:(0,s.A)("pagination-nav__link",i?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[l&&(0,r.jsx)("div",{className:"pagination-nav__sublabel",children:l}),(0,r.jsx)("div",{className:"pagination-nav__label",children:a})]})}},6133:(e,t,a)=>{a.d(t,{A:()=>i});a(6540);var s=a(4164),n=a(8774);const r={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var l=a(4848);function i(e){let{permalink:t,label:a,count:i}=e;return(0,l.jsxs)(n.A,{href:t,className:(0,s.A)(r.tag,i?r.tagWithCount:r.tagRegular),children:[a,i&&(0,l.jsx)("span",{children:i})]})}},2053:(e,t,a)=>{a.d(t,{A:()=>o});a(6540);var s=a(4164),n=a(1312),r=a(6133);const l={tags:"tags_jXut",tag:"tag_QGVx"};var i=a(4848);function o(e){let{tags:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("b",{children:(0,i.jsx)(n.A,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,i.jsx)("ul",{className:(0,s.A)(l.tags,"padding--none","margin-left--sm"),children:t.map((e=>{let{label:t,permalink:a}=e;return(0,i.jsx)("li",{className:l.tag,children:(0,i.jsx)(r.A,{label:t,permalink:a})},a)}))})]})}},7131:(e,t,a)=>{a.d(t,{e:()=>o,i:()=>i});var s=a(6540),n=a(9532),r=a(4848);const l=s.createContext(null);function i(e){let{children:t,content:a,isBlogPostPage:n=!1}=e;const i=function(e){let{content:t,isBlogPostPage:a}=e;return(0,s.useMemo)((()=>({metadata:t.metadata,frontMatter:t.frontMatter,assets:t.assets,toc:t.toc,isBlogPostPage:a})),[t,a])}({content:a,isBlogPostPage:n});return(0,r.jsx)(l.Provider,{value:i,children:t})}function o(){const e=(0,s.useContext)(l);if(null===e)throw new n.dV("BlogPostProvider");return e}},5846:(e,t,a)=>{a.d(t,{W:()=>c});var s=a(6540),n=a(4586);const r=["zero","one","two","few","many","other"];function l(e){return r.filter((t=>e.includes(t)))}const i={locale:"en",pluralForms:l(["one","other"]),select:e=>1===e?"one":"other"};function o(){const{i18n:{currentLocale:e}}=(0,n.A)();return(0,s.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:l(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),i}}),[e])}function c(){const e=o();return{selectMessage:(t,a)=>function(e,t,a){const s=e.split("|");if(1===s.length)return s[0];s.length>a.pluralForms.length&&console.error(`For locale=${a.locale}, a maximum of ${a.pluralForms.length} plural forms are expected (${a.pluralForms.join(",")}), but the message contains ${s.length}: ${e}`);const n=a.select(t),r=a.pluralForms.indexOf(n);return s[Math.min(r,s.length-1)]}(a,t,e)}}}}]); \ No newline at end of file diff --git a/assets/js/36d89dbe.abf69e17.js b/assets/js/36d89dbe.abf69e17.js new file mode 100644 index 00000000..82948b97 --- /dev/null +++ b/assets/js/36d89dbe.abf69e17.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2456],{6221:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>o,contentTitle:()=>i,default:()=>m,frontMatter:()=>s,metadata:()=>d,toc:()=>c});var a=r(4848),t=r(8453);r(8597),r(8205);const s={sidebar_position:4,sidebar_label:"Random Permutation",title:"Random Permutation"},i=void 0,d={id:"statistical-inference/random sampling/np.random.permutation()",title:"Random Permutation",description:"np.random.permutation(arr)",source:"@site/docs/statistical-inference/random sampling/np.random.permutation().md",sourceDirName:"statistical-inference/random sampling",slug:"/statistical-inference/random sampling/np.random.permutation()",permalink:"/bpd-reference/docs/statistical-inference/random sampling/np.random.permutation()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/random sampling/np.random.permutation().md",tags:[],version:"current",sidebarPosition:4,frontMatter:{sidebar_position:4,sidebar_label:"Random Permutation",title:"Random Permutation"},sidebar:"statsSidebar",previous:{title:"Random Multinomial",permalink:"/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()"},next:{title:"Sample",permalink:"/bpd-reference/docs/statistical-inference/random sampling/df.sample()"}},o={},c=[];function l(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"np.random.permutation(arr)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsxs)("strong",{children:["Randomly shuffles/reorders ",(0,a.jsx)(n.code,{children:"arr"}),"."]})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["arr : ",(0,a.jsx)("em",{children:"array, list, or integer"})]}),(0,a.jsxs)("dd",{className:"parameter-description",children:["If array or list, randomly reorder array or list. If integer (e.g. 5), randomly reorder ",(0,a.jsx)(n.code,{children:"np.arange(5)"})," (aka ",(0,a.jsx)(n.code,{children:"np.array([0, 1, 2, 3, 4])"}),")."]}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"Shuffled/reordered array"}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"array"})]})]}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"example_array = np.array([1, 2, 3, 4, 5])\nexample_array\n"})}),"\n",(0,a.jsx)(n.p,{children:"array([1, 2, 3, 4, 5])"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"for i in range(5):\n print(f'{i + 1}st random permutation:')\n print(np.random.permutation(example_array), end='\\n\\n')\n"})}),"\n",(0,a.jsx)(n.p,{children:"1st random permutation:\n[3 5 4 2 1]"}),"\n",(0,a.jsx)(n.p,{children:"2st random permutation:\n[5 4 1 2 3]"}),"\n",(0,a.jsx)(n.p,{children:"3st random permutation:\n[3 5 4 1 2]"}),"\n",(0,a.jsx)(n.p,{children:"4st random permutation:\n[5 1 2 4 3]"}),"\n",(0,a.jsx)(n.p,{children:"5st random permutation:\n[2 4 1 3 5]"})]})}function m(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(l,{...e})}):l(e)}},8597:(e,n,r)=>{r.d(n,{A:()=>t});r(6540);var a=r(4848);const t=e=>{let{data:n}=e,r=[],t=[],s="",i=[];if(n){const e=JSON.parse(n);r=e.columns||[],t=e.data||[],s=e.indexName||"Index",i=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:s}),r.map(((e,n)=>(0,a.jsx)("th",{children:e},n)))]})}),(0,a.jsx)("tbody",{children:t.map(((e,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:i[n]}),e.map(((e,n)=>{return(0,a.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},n);var r}))]},n)))})]})})}},8205:(e,n,r)=>{r.d(n,{A:()=>t});r(6540);var a=r(4848);const t=e=>{let{data:n}=e,r=[],t=[],s="",i="";if(n)try{const e=JSON.parse(n);s=e.name||"",i=e.dtype||"Unknown type",r=e.index||[],t=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const d=t.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:d.map(((e,n)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:r[n]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",s,", dtype: ",i]})]})}},8453:(e,n,r)=>{r.d(n,{R:()=>i,x:()=>d});var a=r(6540);const t={},s=a.createContext(t);function i(e){const n=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),a.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/36d89dbe.de5987ca.js b/assets/js/36d89dbe.de5987ca.js deleted file mode 100644 index ac86d6bc..00000000 --- a/assets/js/36d89dbe.de5987ca.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2456],{6221:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>o,contentTitle:()=>i,default:()=>m,frontMatter:()=>s,metadata:()=>d,toc:()=>c});var a=n(4848),t=n(8453);n(8597),n(8205);const s={sidebar_position:4,sidebar_label:"Random Permutation",title:"Random Permutation"},i=void 0,d={id:"statistical-inference/random sampling/np.random.permutation()",title:"Random Permutation",description:"np.random.permutation(arr)",source:"@site/docs/statistical-inference/random sampling/np.random.permutation().md",sourceDirName:"statistical-inference/random sampling",slug:"/statistical-inference/random sampling/np.random.permutation()",permalink:"/bpd-reference/docs/statistical-inference/random sampling/np.random.permutation()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/random sampling/np.random.permutation().md",tags:[],version:"current",sidebarPosition:4,frontMatter:{sidebar_position:4,sidebar_label:"Random Permutation",title:"Random Permutation"},sidebar:"statsSidebar",previous:{title:"Random Multinomial",permalink:"/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()"},next:{title:"Sample",permalink:"/bpd-reference/docs/statistical-inference/random sampling/df.sample()"}},o={},c=[];function l(e){const r={code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"np.random.permutation(arr)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsxs)("strong",{children:["Randomly shuffles/reorders ",(0,a.jsx)(r.code,{children:"arr"}),"."]})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["arr : ",(0,a.jsx)("em",{children:"array, list, or integer"})]}),(0,a.jsxs)("dd",{className:"parameter-description",children:["If array or list, randomly reorder array or list. If integer (e.g. 5), randomly reorder ",(0,a.jsx)(r.code,{children:"np.arange(5)"})," (aka ",(0,a.jsx)(r.code,{children:"np.array([0, 1, 2, 3, 4])"}),")."]}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"Shuffled/reordered array"}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"array"})]})]}),"\n",(0,a.jsx)(r.hr,{}),"\n",(0,a.jsx)(r.pre,{children:(0,a.jsx)(r.code,{className:"language-python",children:"example_array = np.array([1, 2, 3, 4, 5])\r\nexample_array\n"})}),"\n",(0,a.jsx)(r.p,{children:"array([1, 2, 3, 4, 5])"}),"\n",(0,a.jsx)(r.pre,{children:(0,a.jsx)(r.code,{className:"language-python",children:"for i in range(5):\r\n print(f'{i + 1}st random permutation:')\r\n print(np.random.permutation(example_array), end='\\n\\n')\n"})}),"\n",(0,a.jsx)(r.p,{children:"1st random permutation:\r\n[3 5 4 2 1]"}),"\n",(0,a.jsx)(r.p,{children:"2st random permutation:\r\n[5 4 1 2 3]"}),"\n",(0,a.jsx)(r.p,{children:"3st random permutation:\r\n[3 5 4 1 2]"}),"\n",(0,a.jsx)(r.p,{children:"4st random permutation:\r\n[5 1 2 4 3]"}),"\n",(0,a.jsx)(r.p,{children:"5st random permutation:\r\n[2 4 1 3 5]"})]})}function m(e={}){const{wrapper:r}={...(0,t.R)(),...e.components};return r?(0,a.jsx)(r,{...e,children:(0,a.jsx)(l,{...e})}):l(e)}},8597:(e,r,n)=>{n.d(r,{A:()=>t});n(6540);var a=n(4848);const t=e=>{let{data:r}=e,n=[],t=[],s="",i=[];if(r){const e=JSON.parse(r);n=e.columns||[],t=e.data||[],s=e.indexName||"Index",i=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:s}),n.map(((e,r)=>(0,a.jsx)("th",{children:e},r)))]})}),(0,a.jsx)("tbody",{children:t.map(((e,r)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:i[r]}),e.map(((e,r)=>{return(0,a.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},r);var n}))]},r)))})]})})}},8205:(e,r,n)=>{n.d(r,{A:()=>t});n(6540);var a=n(4848);const t=e=>{let{data:r}=e,n=[],t=[],s="",i="";if(r)try{const e=JSON.parse(r);s=e.name||"",i=e.dtype||"Unknown type",n=e.index||[],t=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const d=t.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:d.map(((e,r)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:n[r]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},r)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",s,", dtype: ",i]})]})}},8453:(e,r,n)=>{n.d(r,{R:()=>i,x:()=>d});var a=n(6540);const t={},s=a.createContext(t);function i(e){const r=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function d(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),a.createElement(s.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/37002ad4.05ddd35d.js b/assets/js/37002ad4.05ddd35d.js new file mode 100644 index 00000000..dbaf2c05 --- /dev/null +++ b/assets/js/37002ad4.05ddd35d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3870],{7147:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>h,frontMatter:()=>o,metadata:()=>i,toc:()=>l});var r=s(4848),t=s(8453),a=s(8597);s(8205);const o={sidebar_position:7},c=void 0,i={id:"documentation/Grouping/groupby",title:"groupby",description:"df.groupby(columnname)ordf.groupby([columnnames])",source:"@site/docs/documentation/Grouping/groupby.md",sourceDirName:"documentation/Grouping",slug:"/documentation/Grouping/groupby",permalink:"/bpd-reference/docs/documentation/Grouping/groupby",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/Grouping/groupby.md",tags:[],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7},sidebar:"docsSidebar",previous:{title:"Applying Functions",permalink:"/bpd-reference/docs/documentation/Functions/Applying Functions"},next:{title:"count()",permalink:"/bpd-reference/docs/documentation/Grouping/aggregation/count()"}},d={},l=[];function m(e){const n={a:"a",code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"df.groupby(column_name)"}),"\n",(0,r.jsx)("strong",{children:"or"}),"\n",(0,r.jsx)("code",{children:"df.groupby([column_names])"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsxs)("p",{children:[(0,r.jsxs)("strong",{children:["Groups all DataFrame rows with the same value in ",(0,r.jsx)("em",{children:"column_name"})," or list of ",(0,r.jsx)("em",{children:"column_names"})]}),"."]}),(0,r.jsx)("p",{children:"A groupby operation groups large amounts of data based on the column name(s)."}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Input:"}),(0,r.jsxs)("dd",{className:"parameter",children:["column_name : ",(0,r.jsx)("em",{children:"string"})]}),(0,r.jsx)("dd",{className:"parameter-description",children:"Groups by the column specified. The column becomes the index."}),(0,r.jsxs)("dd",{className:"parameter",children:["column_names : ",(0,r.jsx)("em",{children:"list"})," (of strings)"]}),(0,r.jsx)("dd",{className:"parameter-description",children:"Groups by all listed columns, starting with the first one in the list. The columns become the indices."}),(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"A new DataFrame with the parameter column(s) as the index and all other columns grouped."}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"DataFrame"}),(0,r.jsx)("dt",{className:"term",children:"Note:"}),(0,r.jsxs)("dd",{children:["A ",(0,r.jsx)(n.code,{children:"groupby()"})," is usually followed by an ",(0,r.jsx)("strong",{children:"aggregate method"}),". A ",(0,r.jsx)(n.code,{children:"groupby()"})," ",(0,r.jsx)("strong",{children:"without"})," an aggregate method will return a ",(0,r.jsx)("strong",{children:"DataFrameGroupBy object"})," rather than a DataFrame."]}),(0,r.jsxs)(n.p,{children:[(0,r.jsx)("small-title",{children:(0,r.jsx)("strong",{children:"Aggregate Methods"})}),(0,r.jsx)("br",{}),"\n",(0,r.jsx)(n.a,{href:"aggregation/mean()",children:(0,r.jsx)("code",{children:".mean()"})})," \xa0 ",(0,r.jsx)(n.a,{href:"aggregation/median()",children:(0,r.jsx)("code",{children:".median()"})})," \xa0 ",(0,r.jsx)(n.a,{href:"aggregation/count()",children:(0,r.jsx)("code",{children:".count()"})})," \xa0 ",(0,r.jsx)(n.a,{href:"aggregation/max()",children:(0,r.jsx)("code",{children:".max()"})})," \xa0 ",(0,r.jsx)(n.a,{href:"aggregation/min()",children:(0,r.jsx)("code",{children:".min()"})})," \xa0 ",(0,r.jsx)(n.a,{href:"aggregation/sum()",children:(0,r.jsx)("code",{children:".sum()"})})]})]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"pets\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"columns":["Species","Color","Weight","Age"],"index":[0,1,2,3,4,5,6],"data":[["dog","black",40.0,5.0],["cat","golden",15.0,8.0],["cat","black",20.0,9.0],["dog","white",80.0,2.0],["dog","black",25.0,0.5],["hamster","black",1.0,3.0],["hamster","golden",0.25,0.2]]}'}),"\n",(0,r.jsx)("p",{}),"\n",(0,r.jsxs)("p",{children:[(0,r.jsx)("code",{children:".groupby()"}),(0,r.jsx)("strong",{children:" with one column"})]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"pets.groupby('Species').count()\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"columns":["ID","Color","Weight","Age"],"index":["cat","dog","hamster"],"data":[[2,2,2,2],[3,3,3,3],[2,2,2,2]]}'}),"\n",(0,r.jsx)("p",{}),"\n",(0,r.jsxs)("p",{children:[(0,r.jsx)("code",{children:".groupby()"}),(0,r.jsx)("strong",{children:" with multiple columns"})]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"pets.groupby(['Species', 'Color']).count().reset_index()\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"columns":["Species","Color","ID","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5],"data":[["cat","black",2,2,2,2,2],["cat","golden",1,1,1,1,1],["dog","black",2,2,2,2,2],["dog","white",1,1,1,1,1],["hamster","black",1,1,1,1,1],["hamster","golden",1,1,1,1,1]]}'})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var r=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],a="",o=[];if(n){const e=JSON.parse(n);s=e.columns||[],t=e.data||[],a=e.indexName||"Index",o=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:a}),s.map(((e,n)=>(0,r.jsx)("th",{children:e},n)))]})}),(0,r.jsx)("tbody",{children:t.map(((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:o[n]}),e.map(((e,n)=>{return(0,r.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var r=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],a="",o="";if(n)try{const e=JSON.parse(n);a=e.name||"",o=e.dtype||"Unknown type",s=e.index||[],t=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const c=t.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:c.map(((e,n)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:s[n]}),(0,r.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",o]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>o,x:()=>c});var r=s(6540);const t={},a=r.createContext(t);function o(e){const n=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),r.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/37002ad4.acdd4bc4.js b/assets/js/37002ad4.acdd4bc4.js deleted file mode 100644 index 79a1d816..00000000 --- a/assets/js/37002ad4.acdd4bc4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3870],{7147:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>h,frontMatter:()=>o,metadata:()=>i,toc:()=>l});var r=s(4848),t=s(8453),a=s(8597);s(8205);const o={sidebar_position:7},c=void 0,i={id:"documentation/Grouping/groupby",title:"groupby",description:"df.groupby(columnname)ordf.groupby([columnnames])",source:"@site/docs/documentation/Grouping/groupby.md",sourceDirName:"documentation/Grouping",slug:"/documentation/Grouping/groupby",permalink:"/bpd-reference/docs/documentation/Grouping/groupby",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/Grouping/groupby.md",tags:[],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7},sidebar:"docsSidebar",previous:{title:"Applying Functions",permalink:"/bpd-reference/docs/documentation/Functions/Applying Functions"},next:{title:"count()",permalink:"/bpd-reference/docs/documentation/Grouping/aggregation/count()"}},d={},l=[];function m(e){const n={a:"a",code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"df.groupby(column_name)"}),"\n",(0,r.jsx)("strong",{children:"or"}),"\n",(0,r.jsx)("code",{children:"df.groupby([column_names])"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsxs)("p",{children:[(0,r.jsxs)("strong",{children:["Groups all DataFrame rows with the same value in ",(0,r.jsx)("em",{children:"column_name"})," or list of ",(0,r.jsx)("em",{children:"column_names"})]}),"."]}),(0,r.jsx)("p",{children:"A groupby operation groups large amounts of data based on the column name(s)."}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Input:"}),(0,r.jsxs)("dd",{className:"parameter",children:["column_name : ",(0,r.jsx)("em",{children:"string"})]}),(0,r.jsx)("dd",{className:"parameter-description",children:"Groups by the column specified. The column becomes the index."}),(0,r.jsxs)("dd",{className:"parameter",children:["column_names : ",(0,r.jsx)("em",{children:"list"})," (of strings)"]}),(0,r.jsx)("dd",{className:"parameter-description",children:"Groups by all listed columns, starting with the first one in the list. The columns become the indices."}),(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"A new DataFrame with the parameter column(s) as the index and all other columns grouped."}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"DataFrame"}),(0,r.jsx)("dt",{className:"term",children:"Note:"}),(0,r.jsxs)("dd",{children:["A ",(0,r.jsx)(n.code,{children:"groupby()"})," is usually followed by an ",(0,r.jsx)("strong",{children:"aggregate method"}),". A ",(0,r.jsx)(n.code,{children:"groupby()"})," ",(0,r.jsx)("strong",{children:"without"})," an aggregate method will return a ",(0,r.jsx)("strong",{children:"DataFrameGroupBy object"})," rather than a DataFrame."]}),(0,r.jsxs)(n.p,{children:[(0,r.jsx)("small-title",{children:(0,r.jsx)("strong",{children:"Aggregate Methods"})}),(0,r.jsx)("br",{}),"\r\n",(0,r.jsx)(n.a,{href:"aggregation/mean()",children:(0,r.jsx)("code",{children:".mean()"})})," \xa0 ",(0,r.jsx)(n.a,{href:"aggregation/median()",children:(0,r.jsx)("code",{children:".median()"})})," \xa0 ",(0,r.jsx)(n.a,{href:"aggregation/count()",children:(0,r.jsx)("code",{children:".count()"})})," \xa0 ",(0,r.jsx)(n.a,{href:"aggregation/max()",children:(0,r.jsx)("code",{children:".max()"})})," \xa0 ",(0,r.jsx)(n.a,{href:"aggregation/min()",children:(0,r.jsx)("code",{children:".min()"})})," \xa0 ",(0,r.jsx)(n.a,{href:"aggregation/sum()",children:(0,r.jsx)("code",{children:".sum()"})})]})]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"pets\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"columns":["Species","Color","Weight","Age"],"index":[0,1,2,3,4,5,6],"data":[["dog","black",40.0,5.0],["cat","golden",15.0,8.0],["cat","black",20.0,9.0],["dog","white",80.0,2.0],["dog","black",25.0,0.5],["hamster","black",1.0,3.0],["hamster","golden",0.25,0.2]]}'}),"\n",(0,r.jsx)("p",{}),"\n",(0,r.jsxs)("p",{children:[(0,r.jsx)("code",{children:".groupby()"}),(0,r.jsx)("strong",{children:" with one column"})]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"pets.groupby('Species').count()\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"columns":["ID","Color","Weight","Age"],"index":["cat","dog","hamster"],"data":[[2,2,2,2],[3,3,3,3],[2,2,2,2]]}'}),"\n",(0,r.jsx)("p",{}),"\n",(0,r.jsxs)("p",{children:[(0,r.jsx)("code",{children:".groupby()"}),(0,r.jsx)("strong",{children:" with multiple columns"})]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"pets.groupby(['Species', 'Color']).count().reset_index()\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"columns":["Species","Color","ID","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5],"data":[["cat","black",2,2,2,2,2],["cat","golden",1,1,1,1,1],["dog","black",2,2,2,2,2],["dog","white",1,1,1,1,1],["hamster","black",1,1,1,1,1],["hamster","golden",1,1,1,1,1]]}'})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var r=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],a="",o=[];if(n){const e=JSON.parse(n);s=e.columns||[],t=e.data||[],a=e.indexName||"Index",o=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:a}),s.map(((e,n)=>(0,r.jsx)("th",{children:e},n)))]})}),(0,r.jsx)("tbody",{children:t.map(((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:o[n]}),e.map(((e,n)=>{return(0,r.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var r=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],a="",o="";if(n)try{const e=JSON.parse(n);a=e.name||"",o=e.dtype||"Unknown type",s=e.index||[],t=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const c=t.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:c.map(((e,n)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:s[n]}),(0,r.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",o]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>o,x:()=>c});var r=s(6540);const t={},a=r.createContext(t);function o(e){const n=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),r.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/3f791b14.1dbf70e4.js b/assets/js/3f791b14.1dbf70e4.js deleted file mode 100644 index f682cc1b..00000000 --- a/assets/js/3f791b14.1dbf70e4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6090],{9016:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>o,metadata:()=>c,toc:()=>l});var t=s(4848),i=s(8453),r=s(8597);s(8205);const o={sidebar_position:1,description:"Conditionally execute code. The elif and else blocks are optional."},a=void 0,c={id:"documentation/if-statements/if-elif-else",title:"if-elif-else",description:"Conditionally execute code. The elif and else blocks are optional.",source:"@site/docs/documentation/if-statements/if-elif-else.md",sourceDirName:"documentation/if-statements",slug:"/documentation/if-statements/if-elif-else",permalink:"/bpd-reference/docs/documentation/if-statements/if-elif-else",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/if-statements/if-elif-else.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,description:"Conditionally execute code. The elif and else blocks are optional."},sidebar:"docsSidebar",previous:{title:"if-statements",permalink:"/bpd-reference/docs/category/if-statements"},next:{title:"in \u2044 not in",permalink:"/bpd-reference/docs/documentation/if-statements/in \u2044 not in"}},d={},l=[];function p(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.p,{children:[(0,t.jsxs)("code",{children:["if <condition>: ",(0,t.jsx)("br",{})," "]}),"\r\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsxs)("code",{children:[" <if body> ",(0,t.jsx)("br",{})," "]}),"\r\n",(0,t.jsxs)("code",{children:[" elif <second_condition>: ",(0,t.jsx)("br",{})," "]}),"\r\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsxs)("code",{children:[" <elif body> ",(0,t.jsx)("br",{})," "]}),"\r\n",(0,t.jsxs)("code",{children:[" elif <third_condition>: ",(0,t.jsx)("br",{})," "]}),"\r\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsxs)("code",{children:[" <elif body> ",(0,t.jsx)("br",{})," "]}),"\r\n",(0,t.jsxs)("code",{children:[" ... ",(0,t.jsx)("br",{})," "]}),"\r\n",(0,t.jsxs)("code",{children:[" else: ",(0,t.jsx)("br",{})," "]}),"\r\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsx)("code",{children:" <else body> "})]}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Conditionally execute code. The elif and else blocks are optional."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Components:"}),(0,t.jsx)("dd",{className:"parameter",children:"if <condition>:"}),(0,t.jsx)("dd",{className:"parameter-description",children:"If the condition is True, the body of the if statement is executed. Condition will be checked even if\r\nanother if condition is fulfilled. "}),(0,t.jsx)("dd",{className:"parameter",children:"elif <condition>:"}),(0,t.jsx)("dd",{className:"parameter-description",children:"If the if condition is False, code moves onto the elif statement and checks the condition. If an if statement was executed, the elif conditions will not be checked."}),(0,t.jsx)("dd",{className:"parameter",children:"else <condition>:"}),(0,t.jsx)("dd",{className:"parameter-description",children:"If none of the if and elif conditions are met, the else body will execute. "})]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets = bpd.read_csv('pets.csv')\r\npets\n"})}),"\n",(0,t.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0],["cat_001","cat","golden",1.5,0.2],["cat_002","cat","black",15.0,9.0],["dog_002","dog","white",80.0,2.0],["dog_003","dog","black",25.0,0.5],["ham_001","hamster","black",1.0,3.0],["ham_002","hamster","golden",0.25,0.2],["cat_003","cat","black",10.0,0.0]]}'}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"def more_descriptive_name(id_str, species, color, weight, age):\r\n return id_str + ': This ' + color + ' ' + species + ' weighs ' + weight + ' lbs and is ' + age + ' years old'\r\n \r\ndef cat_and_dog_info(pet_id):\r\n id_arr = np.array(pets.get('ID'))\r\n if pet_id not in id_arr:\r\n return 'This pet is not in our record'\r\n pets_info = pets[pets.get('ID') == pet_id]\r\n age = pets_info.get('Age').iloc[0]\r\n weight = pets_info.get('Weight').iloc[0]\r\n species = pets_info.get('Species').iloc[0]\r\n color = pets_info.get('Color').iloc[0]\r\n if (species == 'dog') and (age < 1.5):\r\n return pet_id + ': This is a puppy \ud83d\udc36'\r\n elif (species == 'cat') and (age < 1):\r\n return pet_id + ': This is a kitten \ud83d\udc31'\r\n elif (species == 'dog') or (species == 'cat'):\r\n weight = str(weight)\r\n age = str(age)\r\n return more_descriptive_name(pet_id, species, color, weight, age)\r\n \r\n else:\r\n return pet_id + ': This pet is not a dog or a cat'\n"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"cat_and_dog_info('dog_001')\n"})}),"\n",(0,t.jsx)(n.p,{children:"'dog_001: This black dog weighs 40.0 lbs and is 5.0 years old'"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"cat_and_dog_info('cat_001')\n"})}),"\n",(0,t.jsx)(n.p,{children:"'cat_001: This is a kitten \ud83d\udc31'"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"cat_and_dog_info('cat_009')\n"})}),"\n",(0,t.jsx)(n.p,{children:"'This pet is not in our record'"})]})}function h(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>i});s(6540);var t=s(4848);const i=e=>{let{data:n}=e,s=[],i=[],r="",o=[];if(n){const e=JSON.parse(n);s=e.columns||[],i=e.data||[],r=e.indexName||"Index",o=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:r}),s.map(((e,n)=>(0,t.jsx)("th",{children:e},n)))]})}),(0,t.jsx)("tbody",{children:i.map(((e,n)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:o[n]}),e.map(((e,n)=>{return(0,t.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>i});s(6540);var t=s(4848);const i=e=>{let{data:n}=e,s=[],i=[],r="",o="";if(n)try{const e=JSON.parse(n);r=e.name||"",o=e.dtype||"Unknown type",s=e.index||[],i=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const a=i.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:a.map(((e,n)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:s[n]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",o]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>o,x:()=>a});var t=s(6540);const i={},r=t.createContext(i);function o(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/3f791b14.fee676c1.js b/assets/js/3f791b14.fee676c1.js new file mode 100644 index 00000000..ddf64788 --- /dev/null +++ b/assets/js/3f791b14.fee676c1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6090],{9016:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>h,frontMatter:()=>a,metadata:()=>r,toc:()=>l});var t=s(4848),i=s(8453),o=s(8597);s(8205);const a={sidebar_position:1,description:"Conditionally execute code. The elif and else blocks are optional."},c=void 0,r={id:"documentation/if-statements/if-elif-else",title:"if-elif-else",description:"Conditionally execute code. The elif and else blocks are optional.",source:"@site/docs/documentation/if-statements/if-elif-else.md",sourceDirName:"documentation/if-statements",slug:"/documentation/if-statements/if-elif-else",permalink:"/bpd-reference/docs/documentation/if-statements/if-elif-else",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/if-statements/if-elif-else.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,description:"Conditionally execute code. The elif and else blocks are optional."},sidebar:"docsSidebar",previous:{title:"if-statements",permalink:"/bpd-reference/docs/category/if-statements"},next:{title:"in \u2044 not in",permalink:"/bpd-reference/docs/documentation/if-statements/in \u2044 not in"}},d={},l=[];function p(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.p,{children:[(0,t.jsxs)("code",{children:["if <condition>: ",(0,t.jsx)("br",{})," "]}),"\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsxs)("code",{children:[" <if body> ",(0,t.jsx)("br",{})," "]}),"\n",(0,t.jsxs)("code",{children:[" elif <second_condition>: ",(0,t.jsx)("br",{})," "]}),"\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsxs)("code",{children:[" <elif body> ",(0,t.jsx)("br",{})," "]}),"\n",(0,t.jsxs)("code",{children:[" elif <third_condition>: ",(0,t.jsx)("br",{})," "]}),"\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsxs)("code",{children:[" <elif body> ",(0,t.jsx)("br",{})," "]}),"\n",(0,t.jsxs)("code",{children:[" ... ",(0,t.jsx)("br",{})," "]}),"\n",(0,t.jsxs)("code",{children:[" else: ",(0,t.jsx)("br",{})," "]}),"\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsx)("code",{children:" <else body> "})]}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Conditionally execute code. The elif and else blocks are optional."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Components:"}),(0,t.jsx)("dd",{className:"parameter",children:"if <condition>:"}),(0,t.jsx)("dd",{className:"parameter-description",children:"If the condition is True, the body of the if statement is executed. Condition will be checked even if\nanother if condition is fulfilled. "}),(0,t.jsx)("dd",{className:"parameter",children:"elif <condition>:"}),(0,t.jsx)("dd",{className:"parameter-description",children:"If the if condition is False, code moves onto the elif statement and checks the condition. If an if statement was executed, the elif conditions will not be checked."}),(0,t.jsx)("dd",{className:"parameter",children:"else <condition>:"}),(0,t.jsx)("dd",{className:"parameter-description",children:"If none of the if and elif conditions are met, the else body will execute. "})]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets = bpd.read_csv('pets.csv')\npets\n"})}),"\n",(0,t.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0],["cat_001","cat","golden",1.5,0.2],["cat_002","cat","black",15.0,9.0],["dog_002","dog","white",80.0,2.0],["dog_003","dog","black",25.0,0.5],["ham_001","hamster","black",1.0,3.0],["ham_002","hamster","golden",0.25,0.2],["cat_003","cat","black",10.0,0.0]]}'}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"def more_descriptive_name(id_str, species, color, weight, age):\n return id_str + ': This ' + color + ' ' + species + ' weighs ' + weight + ' lbs and is ' + age + ' years old'\n \ndef cat_and_dog_info(pet_id):\n id_arr = np.array(pets.get('ID'))\n if pet_id not in id_arr:\n return 'This pet is not in our record'\n pets_info = pets[pets.get('ID') == pet_id]\n age = pets_info.get('Age').iloc[0]\n weight = pets_info.get('Weight').iloc[0]\n species = pets_info.get('Species').iloc[0]\n color = pets_info.get('Color').iloc[0]\n if (species == 'dog') and (age < 1.5):\n return pet_id + ': This is a puppy \ud83d\udc36'\n elif (species == 'cat') and (age < 1):\n return pet_id + ': This is a kitten \ud83d\udc31'\n elif (species == 'dog') or (species == 'cat'):\n weight = str(weight)\n age = str(age)\n return more_descriptive_name(pet_id, species, color, weight, age)\n \n else:\n return pet_id + ': This pet is not a dog or a cat'\n"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"cat_and_dog_info('dog_001')\n"})}),"\n",(0,t.jsx)(n.p,{children:"'dog_001: This black dog weighs 40.0 lbs and is 5.0 years old'"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"cat_and_dog_info('cat_001')\n"})}),"\n",(0,t.jsx)(n.p,{children:"'cat_001: This is a kitten \ud83d\udc31'"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"cat_and_dog_info('cat_009')\n"})}),"\n",(0,t.jsx)(n.p,{children:"'This pet is not in our record'"})]})}function h(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>i});s(6540);var t=s(4848);const i=e=>{let{data:n}=e,s=[],i=[],o="",a=[];if(n){const e=JSON.parse(n);s=e.columns||[],i=e.data||[],o=e.indexName||"Index",a=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:o}),s.map(((e,n)=>(0,t.jsx)("th",{children:e},n)))]})}),(0,t.jsx)("tbody",{children:i.map(((e,n)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:a[n]}),e.map(((e,n)=>{return(0,t.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>i});s(6540);var t=s(4848);const i=e=>{let{data:n}=e,s=[],i=[],o="",a="";if(n)try{const e=JSON.parse(n);o=e.name||"",a=e.dtype||"Unknown type",s=e.index||[],i=e.data||[]}catch(r){console.error("Error parsing data prop in SeriesComponent:",r)}const c=i.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:c.map(((e,n)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:s[n]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",o,", dtype: ",a]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>a,x:()=>c});var t=s(6540);const i={},o=t.createContext(i);function a(e){const n=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),t.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/46ccc97a.8eb8150e.js b/assets/js/46ccc97a.8eb8150e.js deleted file mode 100644 index 969ccef4..00000000 --- a/assets/js/46ccc97a.8eb8150e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5579],{6314:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>c,toc:()=>l});var t=n(4848),r=n(8453),a=(n(8597),n(8205));const i={sidebar_position:5},o=void 0,c={id:"documentation/series-methods/ser.mean()",title:"ser.mean()",description:"ser.mean()",source:"@site/docs/documentation/series-methods/ser.mean().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.mean()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.mean()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.mean().md",tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5},sidebar:"docsSidebar",previous:{title:"ser.sum()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.sum()"},next:{title:"ser.median()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.median()"}},d={},l=[];function m(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.mean()"}),"\n",(0,t.jsx)("div",{className:"base",children:(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Returns the mean of the values in the Series."})})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser.mean()\n"})}),"\n",(0,t.jsx)(s.p,{children:"21.59375"})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],a="",i=[];if(s){const e=JSON.parse(s);n=e.columns||[],r=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:a}),n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:i[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],a="",i="";if(s)try{const e=JSON.parse(s);a=e.name||"",i=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>i,x:()=>o});var t=n(6540);const r={},a=t.createContext(r);function i(e){const s=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),t.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/46ccc97a.c2d0e88e.js b/assets/js/46ccc97a.c2d0e88e.js new file mode 100644 index 00000000..553699de --- /dev/null +++ b/assets/js/46ccc97a.c2d0e88e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5579],{6314:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>c,toc:()=>l});var t=n(4848),r=n(8453),a=(n(8597),n(8205));const i={sidebar_position:5},o=void 0,c={id:"documentation/series-methods/ser.mean()",title:"ser.mean()",description:"ser.mean()",source:"@site/docs/documentation/series-methods/ser.mean().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.mean()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.mean()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.mean().md",tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5},sidebar:"docsSidebar",previous:{title:"ser.sum()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.sum()"},next:{title:"ser.median()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.median()"}},d={},l=[];function m(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.mean()"}),"\n",(0,t.jsx)("div",{className:"base",children:(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Returns the mean of the values in the Series."})})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser.mean()\n"})}),"\n",(0,t.jsx)(s.p,{children:"21.59375"})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],a="",i=[];if(s){const e=JSON.parse(s);n=e.columns||[],r=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:a}),n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:i[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],a="",i="";if(s)try{const e=JSON.parse(s);a=e.name||"",i=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>i,x:()=>o});var t=n(6540);const r={},a=t.createContext(r);function i(e){const s=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),t.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/499d47b2.d2522afc.js b/assets/js/499d47b2.d2522afc.js deleted file mode 100644 index 45dd00dd..00000000 --- a/assets/js/499d47b2.d2522afc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2302],{3331:(A,e,t)=>{t.r(e),t.d(e,{assets:()=>w,contentTitle:()=>C,default:()=>i,frontMatter:()=>n,metadata:()=>c,toc:()=>l});var a=t(4848),r=t(8453),s=t(8597);t(8205);const n={sidebar_position:3},C=void 0,c={id:"documentation/plotting/Bar Plot",title:"Bar Plot",description:"df.plot(kind='bar', x=datacol, y=datacol)",source:"@site/docs/documentation/plotting/Bar Plot.md",sourceDirName:"documentation/plotting",slug:"/documentation/plotting/Bar Plot",permalink:"/bpd-reference/docs/documentation/plotting/Bar Plot",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/plotting/Bar Plot.md",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3},sidebar:"docsSidebar",previous:{title:"Scatter Plot",permalink:"/bpd-reference/docs/documentation/plotting/Scatter Plot"},next:{title:"Line Plot",permalink:"/bpd-reference/docs/documentation/plotting/Line Plot"}},w={},l=[];function d(A){const e={a:"a",code:"code",hr:"hr",img:"img",p:"p",pre:"pre",...(0,r.R)(),...A.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df.plot(kind='bar', x=data_col, y=data_col)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Create a bar plot using a DataFrame."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["kind : ",(0,a.jsx)("em",{children:"string"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"To create a bar plot, use kind='bar'"}),(0,a.jsxs)("dd",{className:"parameter-description",children:["To create a ",(0,a.jsx)("em",{children:"horizontal"})," bar plot, use kind='barh'"]}),(0,a.jsxs)("dd",{className:"parameter",children:["x : ",(0,a.jsx)("em",{children:"label, optional"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Column containing categorical data for group labels. If not specified, the index of the DataFrame is used."}),(0,a.jsxs)("dd",{className:"parameter",children:["y : ",(0,a.jsx)("em",{children:"label, optional"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Column containing numerical data for the groups in x. If not specified, all numerical columns are used."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsxs)("dd",{children:["plot - Matplotlib plot created using ",(0,a.jsx)(e.a,{href:"https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.html",children:"parameters"}),"."]}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"Matplotlib plot"}),(0,a.jsx)("dt",{className:"term",children:"Note:"}),(0,a.jsx)("dd",{children:(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:["When kind='bar', you can sort your DataFrame in ",(0,a.jsx)("em",{children:"descending"})," order by your y column before plotting to create a ",(0,a.jsx)("em",{children:"vertical"})," bar plot that goes from tall to short from left to right."]}),(0,a.jsxs)("li",{children:["When kind='barh', you can sort your DataFrame in ",(0,a.jsx)("em",{children:"ascending"})," order by your y column before plotting to create a ",(0,a.jsx)("em",{children:"horizontal"})," bar plot that goes from tall to short from top to bottom."]})]})})]})]}),"\n",(0,a.jsx)(e.hr,{}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-python",children:"# Creating a DataFrame to use for bar plots below\r\navg_species_weights = pets.get(['Species', 'Weight']).groupby('Species').mean().reset_index()\r\navg_species_weights\n"})}),"\n",(0,a.jsx)(s.A,{data:'{"columns":["Species","Weight"],"index":[0,1,2],"data":[["cat",8.8333333333],["dog",48.3333333333],["hamster",0.625]]}'}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-python",children:"avg_species_weights.sort_values(by='Weight', ascending=False).plot(kind='bar', x='Species', y='Weight')\n"})}),"\n",(0,a.jsx)(e.p,{children:(0,a.jsx)(e.img,{alt:"Bar plot example 1",src:t(4028).A+"",width:"543",height:"476"})}),"\n",(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"If the group label is the index of the DataFrame, the x parameter can be omitted."})}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-python",children:"# Creating a DataFrame to use for bar plots below\r\nspecies_count = pets.get(['Species','ID']).groupby('Species').count()\r\nspecies_count = species_count.assign(Count = species_count.get('ID')).drop(columns = ['ID'])\r\nspecies_count\n"})}),"\n",(0,a.jsx)(s.A,{data:'{"columns":["Count"],"index":["cat","dog","hamster"],"data":[[3],[3],[2]]}'}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-python",children:"species_count.plot(kind='bar', y='Count', title='Distribution of Species');\n"})}),"\n",(0,a.jsx)(e.p,{children:(0,a.jsx)(e.img,{alt:"Bar plot example 2",src:t(4814).A+"",width:"640",height:"480"})}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-python",children:"avg_species_weights.sort_values(by='Weight', ascending=True).plot(kind='barh', x='Species', y='Weight')\n"})}),"\n",(0,a.jsx)(e.p,{children:(0,a.jsx)(e.img,{alt:"Bar plot example 3",src:t(2503).A+"",width:"604",height:"413"})}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-python",children:"pets.groupby('Species').count().plot(kind='bar', y='ID', title='Distribution of Species')\n"})}),"\n",(0,a.jsx)(e.p,{children:(0,a.jsx)(e.img,{alt:"Bar plot example 3",src:t(7281).A+"",width:"547",height:"496"})})]})}function i(A={}){const{wrapper:e}={...(0,r.R)(),...A.components};return e?(0,a.jsx)(e,{...A,children:(0,a.jsx)(d,{...A})}):d(A)}},8597:(A,e,t)=>{t.d(e,{A:()=>r});t(6540);var a=t(4848);const r=A=>{let{data:e}=A,t=[],r=[],s="",n=[];if(e){const A=JSON.parse(e);t=A.columns||[],r=A.data||[],s=A.indexName||"Index",n=A.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:s}),t.map(((A,e)=>(0,a.jsx)("th",{children:A},e)))]})}),(0,a.jsx)("tbody",{children:r.map(((A,e)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:n[e]}),A.map(((A,e)=>{return(0,a.jsx)("td",{children:(t=A,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},e);var t}))]},e)))})]})})}},8205:(A,e,t)=>{t.d(e,{A:()=>r});t(6540);var a=t(4848);const r=A=>{let{data:e}=A,t=[],r=[],s="",n="";if(e)try{const A=JSON.parse(e);s=A.name||"",n=A.dtype||"Unknown type",t=A.index||[],r=A.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const C=r.map((A=>JSON.stringify(A)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:C.map(((A,e)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:t[e]}),(0,a.jsx)("span",{className:"series-value",children:"true"===A||"false"===A?A.charAt(0).toUpperCase()+A.slice(1):A})]},e)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",s,", dtype: ",n]})]})}},4028:(A,e,t)=>{t.d(e,{A:()=>a});const a=t.p+"assets/images/barex1-21e546e39652d57da5a66250931ada7d.png"},2503:(A,e,t)=>{t.d(e,{A:()=>a});const a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlwAAAGdCAYAAADHQK08AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAk9klEQVR4nO3de1TUdf7H8dcgF0UGvIMkCoJg5i21i2UCJV4rra21crPS6uRmSVam2xZqtl62rMySaivR42qW1nFbtbyAIeYNJS+Zsd5LzGxNUBOF+f7+8Di/HVHTcT58uTwf58w5zfc7DO+Zz8/l+fvOd2YclmVZAgAAgDF+dg8AAABQ1RFcAAAAhhFcAAAAhhFcAAAAhhFcAAAAhhFcAAAAhhFcAAAAhhFcAAAAhvnbPUB153K5tH//fjmdTjkcDrvHAQAAF8GyLBUVFSkyMlJ+fr9//Irgstn+/fsVFRVl9xgAAMAL+/btU5MmTX73dgSXzZxOp6TTCxYaGmrzNAAA4GIUFhYqKirK/Xf89xBcNjvzMmJoaCjBBQBAJXOxpwNx0jwAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBh/nYPgNNap30hv6Bgu8cAAKDK2D2hj90juHGECwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCC6yxJSUlKTU21ewwAAFCFEFwAAACGEVwAAACGVevgOnbsmAYOHKiQkBA1btxYr776qsf+w4cPa+DAgapbt66Cg4PVq1cv5efne9zmvffeU1RUlIKDg3XHHXdo8uTJqlOnTjk+CgAAUNFV6+B69tlnlZmZqU8//VRffvmlsrKylJub697/4IMPav369VqwYIG+/vprWZal3r1769SpU5KknJwcPfbYYxo2bJjy8vKUkpKil19++YK/s7i4WIWFhR4XAABQtfnbPYBdjh49qvfff18zZsxQSkqKJCkjI0NNmjSRJOXn52vBggXKycnRDTfcIEmaNWuWoqKi9Nlnn+nuu+/Wm2++qV69eumZZ56RJMXHx2vVqlX6/PPPz/t7x48frzFjxhh+dAAAoCKptke4duzYoZMnT6pz587ubfXq1VNCQoIkadu2bfL399d1113n3l+/fn0lJCRo27ZtkqTt27fr2muv9bjfs6+fbdSoUTpy5Ij7sm/fPl89JAAAUEFV2yNclmV5td+yLDkcjjL/fbH3GxQUpKCgoEuYFAAAVHbV9ghXXFycAgICtHr1ave2w4cP6/vvv5cktWrVSiUlJVqzZo17/y+//KLvv/9eV155pSSpZcuWWrt2rcf9rl+/vhymBwAAlUm1PcIVEhKiwYMH69lnn1X9+vUVHh6u559/Xn5+pxu0RYsW6tu3rx555BG98847cjqdGjlypK644gr17dtXkvTEE0+oa9eumjx5sm677TYtX75cixYtKnPUCwAAVG/V9giXJP39739X165ddfvtt6tbt27q0qWLOnbs6N7/4YcfqmPHjrr11lvVuXNnWZalhQsXKiAgQJJ04403Kj09XZMnT1a7du20ePFiPfXUU6pZs6ZdDwkAAFRADuv3TjrCJXnkkUf03XffKTs7+6JuX1hYqLCwMEWlzpVfULDh6QAAqD52T+hj7L7P/P0+cuSIQkNDf/f21fYlRV955ZVXlJKSotq1a2vRokXKyMjQ22+/bfdYAACgAiG4LtPatWs1adIkFRUVqXnz5poyZYoefvhhu8cCAAAVCMF1mebOnWv3CAAAoIKr1ifNAwAAlAeCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDB/uwfAaVvG9FBoaKjdYwAAAAM4wgUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGCYv90D4LTWaV/ILyjY7jGqlN0T+tg9AgAAkjjCBQAAYBzBBQAAYBjBBQAAYBjBBQAAYBjBBQAAYJhXwbVv3z798MMP7utr165Vamqq3n33XZ8NBgAAUFV4FVz33XefMjMzJUkHDhxQSkqK1q5dq7/85S8aO3asTwcEAACo7LwKri1btujaa6+VJM2dO1etW7fWqlWr9M9//lPTp0/35XwAAACVnlfBderUKQUFBUmSli5dqttvv12S1LJlSxUUFPhuOgAAgCrAq+C66qqrlJ6eruzsbC1ZskQ9e/aUJO3fv1/169f36YAAAACVnVfBNXHiRL3zzjtKSkrSvffeq3bt2kmSFixY4H6pEQAAAKd59V2KSUlJOnTokAoLC1W3bl339kcffVTBwXwfIAAAwP/y+nO4LMtSbm6u3nnnHRUVFUmSAgMDCS4AAICzeHWEa8+ePerZs6f27t2r4uJipaSkyOl0atKkSTpx4oTS09N9PScAAECl5dURrmHDhqlTp046fPiwatWq5d5+xx13aNmyZT4bDgAAoCrw6gjXypUrlZOTo8DAQI/tzZo1048//uiTwQAAAKoKr45wuVwulZaWltn+ww8/yOl0XvZQAAAAVYlXwZWSkqLXX3/dfd3hcOjo0aNKS0tT7969fTUbAABAleDVS4qvvfaakpOT1apVK504cUL33Xef8vPz1aBBA82ePdvXMwIAAFRqXgVXZGSk8vLyNHv2bG3YsEEul0uDBw/WgAEDPE6iBwAAgJfBJUm1atXSoEGDNGjQIF/OAwAAUOVcdHAtWLBAvXr1UkBAgBYsWHDB2575MmsAAABcQnD169dPBw4cUKNGjdSvX7/z3s7hcJzzHYwAAADV1UUHl8vlOud/AwAA4MK8/i5FAAAAXByvguvJJ5/UlClTymyfOnWqUlNTL3emSmn06NFq37693WMAAIAKyKvgmjdvnm688cYy22+44QZ98sknlz0UAABAVeJVcP3yyy8KCwsrsz00NFSHDh267KHs4nK5NHHiRMXFxSkoKEhNmzbVyy+/LEl67rnnFB8fr+DgYDVv3lwvvPCCTp06JUmaPn26xowZo2+++UYOh0MOh0PTp0+38ZEAAICKxKvP4YqLi9PixYs1dOhQj+2LFi1S8+bNfTKYHUaNGqX33ntPr732mrp06aKCggJ99913kiSn06np06crMjJSmzdv1iOPPCKn06kRI0aof//+2rJlixYvXqylS5dK0jmDVJKKi4tVXFzsvl5YWGj+gQEAAFt5FVzDhw/X0KFD9fPPP+vmm2+WJC1btkyvvvqqx3csViZFRUV64403NHXqVD3wwAOSpNjYWHXp0kWS9Ne//tV92+joaD399NP66KOPNGLECNWqVUshISHy9/dXRETEBX/P+PHjNWbMGHMPBAAAVDheBdegQYNUXFysl19+WS+99JKk0xEybdo0DRw40KcDlpdt27apuLhYt9xyyzn3f/LJJ3r99df1n//8R0ePHlVJSYlCQ0Mv+feMGjVKw4cPd18vLCxUVFSU13MDAICKz+uv9hkyZIiGDBmin3/+2X2EpzK70HdArl69Wvfcc4/GjBmjHj16KCwsTHPmzNGrr756yb8nKChIQUFBlzMqAACoZLz+HK6SkhItXbpU8+fPl2VZkqT9+/fr6NGjPhuuPLVo0UK1atXSsmXLyuzLyclRs2bN9Pzzz6tTp05q0aKF9uzZ43GbwMBAPmEfAACck1dHuPbs2aOePXtq7969Ki4uVkpKipxOpyZNmqQTJ04oPT3d13MaV7NmTT333HMaMWKEAgMDdeONN+rnn3/W1q1bFRcXp71792rOnDm65ppr9O9//1uffvqpx89HR0dr165dysvLU5MmTeR0OjmSBQAAJHl5hGvYsGHq1KmTDh8+7PFS3B133HHOI0SVxQsvvKCnn35aL774oq688kr1799fBw8eVN++ffXUU09p6NChat++vVatWqUXXnjB42f/8Ic/qGfPnkpOTlbDhg01e/Zsmx4FAACoaBzWmdcDL0GDBg2Uk5OjhIQEOZ1OffPNN2revLl2796tVq1a6fjx4yZmrZIKCwsVFhamqNS58gsKtnucKmX3hD52jwAAqKLO/P0+cuTIRb2JzqsjXC6X65znK/3www9yOp3e3CUAAECV5VVwpaSkeHzelsPh0NGjR5WWlqbevXv7ajYAAIAqwauT5l977TUlJyerVatWOnHihO677z7l5+erQYMGnLsEAABwFq+CKzIyUnl5eZo9e7Y2bNggl8ulwYMHa8CAARf8PCsAAIDqyOsPPq1Vq5YGDRqkQYMG+XIeAACAKsfr4Nq+fbvefPNNbdu2TQ6HQy1bttTQoUPVsmVLX84HAABQ6Xl10vwnn3yi1q1bKzc3V+3atVPbtm21YcMGtWnTRh9//LGvZwQAAKjUvDrCNWLECI0aNUpjx4712J6WlqbnnntOd999t0+GAwAAqAq8OsJ14MABDRw4sMz2P/3pTzpw4MBlDwUAAFCVeBVcSUlJys7OLrN95cqVuummmy57KAAAgKrEq5cUb7/9dj333HPKzc3V9ddfL0lavXq1Pv74Y40ZM0YLFizwuC0AAEB15tV3Kfr5XdyBMYfDcc6vAML/47sUzeG7FAEAplzqdyl6dYTL5XJ582MAAADV0iWdw7VmzRotWrTIY9uMGTMUExOjRo0a6dFHH1VxcbFPBwQAAKjsLim4Ro8erU2bNrmvb968WYMHD1a3bt00cuRI/etf/9L48eN9PiQAAEBldknBlZeXp1tuucV9fc6cObruuuv03nvvafjw4ZoyZYrmzp3r8yEBAAAqs0sKrsOHDys8PNx9fcWKFerZs6f7+jXXXKN9+/b5bjoAAIAq4JKCKzw8XLt27ZIknTx5Uhs2bFDnzp3d+4uKihQQEODbCQEAACq5Swqunj17auTIkcrOztaoUaMUHBzs8UGnmzZtUmxsrM+HBAAAqMwu6WMhxo0bpzvvvFOJiYkKCQlRRkaGAgMD3fs/+OADde/e3edDAgAAVGaXFFwNGzZUdna2jhw5opCQENWoUcNj/8cff6yQkBCfDggAAFDZefXBp2FhYefcXq9evcsaBgAAoCry6surAQAAcPEILgAAAMO8ekkRvrdlTI+L+vJLAABQ+XCECwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDB/uwfAaa3TvpBfULDHtt0T+tg0DQAA8CWOcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhma3AlJSUpNTXVzhEAAACM4wjXWYhAAADgawSXISdPnrR7BAAAUEHYHlwul0sjRoxQvXr1FBERodGjR7v3TZ48WW3atFHt2rUVFRWlP//5zzp69Kh7//Tp01WnTh19/vnnSkhIUHBwsO666y4dO3ZMGRkZio6OVt26dfXEE0+otLTU/XNvv/22WrRooZo1ayo8PFx33XWXJOnBBx/UihUr9MYbb8jhcMjhcGj37t2SpG+//Va9e/dWSEiIwsPDdf/99+vQoUPu+0xKStLQoUM1fPhwNWjQQCkpKWafOAAAUGnYHlwZGRmqXbu21qxZo0mTJmns2LFasmSJJMnPz09TpkzRli1blJGRoeXLl2vEiBEeP3/8+HFNmTJFc+bM0eLFi5WVlaU777xTCxcu1MKFCzVz5ky9++67+uSTTyRJ69ev15NPPqmxY8dq+/btWrx4sbp27SpJeuONN9S5c2c98sgjKigoUEFBgaKiolRQUKDExES1b99e69ev1+LFi/XTTz/pj3/8Y5nH4u/vr5ycHL3zzjvnfLzFxcUqLCz0uAAAgKrN3+4B2rZtq7S0NElSixYtNHXqVC1btkwpKSke51LFxMTopZde0pAhQ/T222+7t586dUrTpk1TbGysJOmuu+7SzJkz9dNPPykkJEStWrVScnKyMjMz1b9/f+3du1e1a9fWrbfeKqfTqWbNmunqq6+WJIWFhSkwMFDBwcGKiIhw/45p06apQ4cO+tvf/ube9sEHHygqKkrff/+94uPjJUlxcXGaNGnSBR/v+PHjNWbMmMt70gAAQKVi+xGutm3belxv3LixDh48KEnKzMxUSkqKrrjiCjmdTg0cOFC//PKLjh075r59cHCwO7YkKTw8XNHR0QoJCfHYduY+U1JS1KxZMzVv3lz333+/Zs2apePHj19wxtzcXGVmZiokJMR9admypSRpx44d7tt16tTpdx/vqFGjdOTIEfdl3759v/szAACgcrM9uAICAjyuOxwOuVwu7dmzR71791br1q01b9485ebm6q233pJ0+qjWhX7+fPcpSU6nUxs2bNDs2bPVuHFjvfjii2rXrp1+/fXX887ocrl02223KS8vz+OSn5/vfjlSkmrXrv27jzcoKEihoaEeFwAAULXZ/pLi+axfv14lJSV69dVX5ed3ugvnzp3rk/v29/dXt27d1K1bN6WlpalOnTpavny57rzzTgUGBnqcYC9JHTp00Lx58xQdHS1//wr7lAEAgArK9iNc5xMbG6uSkhK9+eab2rlzp2bOnKn09PTLvt/PP/9cU6ZMUV5envbs2aMZM2bI5XIpISFBkhQdHa01a9Zo9+7dOnTokFwulx5//HH997//1b333qu1a9dq586d+vLLLzVo0KAycQYAAHC2Chtc7du31+TJkzVx4kS1bt1as2bN0vjx4y/7fuvUqaP58+fr5ptv1pVXXqn09HTNnj1bV111lSTpmWeeUY0aNdSqVSs1bNhQe/fuVWRkpHJyclRaWqoePXqodevWGjZsmMLCwtxH3wAAAM7HYVmWZfcQ1VlhYaHCwsIUlTpXfkHBHvt2T+hj01QAAOBCzvz9PnLkyEWdj83hGQAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMP87R4AF6e0tFSnTp2ye4xqKTAwUH5+/P8mAADvEVwVnGVZOnDggH799Ve7R6m2/Pz8FBMTo8DAQLtHAQBUUgRXBbFlTA+FhoaW2X4mtho1aqTg4GA5HA4bpqu+XC6X9u/fr4KCAjVt2pTnHwDgFYKrAistLXXHVv369e0ep9pq2LCh9u/fr5KSEgUEBNg9DgCgEuLElArszDlbwcHBNk9SvZ15KbG0tNTmSQAAlRXBVQnwMpa9eP4BAJeL4AIAADCM4EKlMH36dNWpU+eSfubBBx9Uv379jMwDAMCl4KT5Sip65L/L7XftntDnkm6fnp6uZ599VocPH5a//+n/Ezt69Kjq1q2r66+/XtnZ2e7bZmdnq2vXrtq+fbvi4+PPe5/9+/dX7969vXsAFxAdHa3U1FSlpqb6/L4BADiDI1zwueTkZB09elTr1693b8vOzlZERITWrVun48ePu7dnZWUpMjLygrElSbVq1VKjRo2MzQwAgEkEF3wuISFBkZGRysrKcm/LyspS3759FRsbq1WrVnlsT05O1smTJzVixAhdccUVql27tq677jqPnz/XS4rjxo1To0aN5HQ69fDDD2vkyJFq3759mXleeeUVNW7cWPXr19fjjz/ufvdnUlKS9uzZo6eeekoOh4OT4wEAxhBcMCIpKUmZmZnu65mZmUpKSlJiYqJ7+8mTJ/X1118rOTlZDz30kHJycjRnzhxt2rRJd999t3r27Kn8/Pxz3v+sWbP08ssva+LEicrNzVXTpk01bdq0MrfLzMzUjh07lJmZqYyMDE2fPl3Tp0+XJM2fP19NmjTR2LFjVVBQoIKCAt8/EQAAiOCCIUlJScrJyVFJSYmKioq0ceNGde3aVYmJie4jV6tXr9Zvv/2mpKQkzZ49Wx9//LFuuukmxcbG6plnnlGXLl304YcfnvP+33zzTQ0ePFgPPfSQ4uPj9eKLL6pNmzZlble3bl1NnTpVLVu21K233qo+ffpo2bJlkqR69eqpRo0acjqdioiIUEREhLHnAwBQvRFcMCI5OVnHjh3TunXrlJ2drfj4eDVq1EiJiYlat26djh07pqysLDVt2lQbNmyQZVmKj49XSEiI+7JixQrt2LHjnPe/fft2XXvttR7bzr4uSVdddZVq1Kjhvt64cWMdPHjQtw8WAIDfwbsUYURcXJyaNGmizMxMHT58WImJiZKkiIgIxcTEKCcnR5mZmbr55pvlcrlUo0YN5ebmesSRJIWEhJz3d5x9zpVlWWVuc/ZX8TgcDrlcLm8fFgAAXuEIF4xJTk5WVlaWsrKylJSU5N6emJioL774QqtXr1ZycrKuvvpqlZaW6uDBg4qLi/O4nO9lvoSEBK1du9Zj2/++K/JiBQYG8pU9AADjCC4Yk5ycrJUrVyovL899hEs6HVzvvfeeTpw4oeTkZMXHx2vAgAEaOHCg5s+fr127dmndunWaOHGiFi5ceM77fuKJJ/T+++8rIyND+fn5GjdunDZt2nTJ7zSMjo7WV199pR9//FGHDh26rMcLAMD5EFwwJjk5Wb/99pvi4uIUHh7u3p6YmKiioiLFxsYqKipKkvThhx9q4MCBevrpp5WQkKDbb79da9asce8/24ABAzRq1Cg988wz6tChg3bt2qUHH3xQNWvWvKQZx44dq927dys2NlYNGzb0/sECAHABDutcJ76g3BQWFiosLExHjhxRaGiox74TJ05o165diomJueSQqI5SUlIUERGhmTNn+vR+WQcAwNku9Pf7XDhpHpXS8ePHlZ6erh49eqhGjRqaPXu2li5dqiVLltg9GgAAZRBcqJQcDocWLlyocePGqbi4WAkJCZo3b566detm92gAAJRBcKFSqlWrlpYuXWr3GAAAXBROmgcAADCM4AIAADCM4KoE+GR0e/FGXgDA5eIcrgosMDBQfn5+2r9/vxo2bKjAwMBL/mBPXB7LsvTzzz/L4XCU+ZogAAAuFsFVgfn5+SkmJkYFBQXav3+/3eNUWw6HQ02aNCnzPY8AAFwsgquCCwwMVNOmTVVSUsJ3/tkkICCA2AIAXBaCqxI483IWL2kBAFA5cdI8AACAYQQXAACAYQQXAACAYZzDZbMzn/FUWFho8yQAAOBinfm7fbGf1Uhw2eyXX36RJEVFRdk8CQAAuFRFRUUKCwv73dsRXDarV6+eJGnv3r0XtWAwo7CwUFFRUdq3b59CQ0PtHqdaYg0qBtahYmAdKoYLrYNlWSoqKlJkZORF3RfBZTM/v9On0YWFhfGPqgIIDQ1lHWzGGlQMrEPFwDpUDOdbh0s5UMJJ8wAAAIYRXAAAAIYRXDYLCgpSWlqagoKC7B6lWmMd7McaVAysQ8XAOlQMvlwHh3Wx72cEAACAVzjCBQAAYBjBBQAAYBjBBQAAYBjBBQAAYBjBZaO3335bMTExqlmzpjp27Kjs7Gy7R6rSvvrqK912222KjIyUw+HQZ5995rHfsiyNHj1akZGRqlWrlpKSkrR161Z7hq3Cxo8fr2uuuUZOp1ONGjVSv379tH37do/bsBZmTZs2TW3btnV/mGPnzp21aNEi936ef3uMHz9eDodDqamp7m2shXmjR4+Ww+HwuERERLj3+2oNCC6bfPTRR0pNTdXzzz+vjRs36qabblKvXr20d+9eu0erso4dO6Z27dpp6tSp59w/adIkTZ48WVOnTtW6desUERGhlJQUFRUVlfOkVduKFSv0+OOPa/Xq1VqyZIlKSkrUvXt3HTt2zH0b1sKsJk2aaMKECVq/fr3Wr1+vm2++WX379nX/EeH5L3/r1q3Tu+++q7Zt23psZy3Kx1VXXaWCggL3ZfPmze59PlsDC7a49tprrccee8xjW8uWLa2RI0faNFH1Isn69NNP3dddLpcVERFhTZgwwb3txIkTVlhYmJWenm7DhNXHwYMHLUnWihUrLMtiLexSt25d6x//+AfPvw2KioqsFi1aWEuWLLESExOtYcOGWZbFv4XykpaWZrVr1+6c+3y5BhzhssHJkyeVm5ur7t27e2zv3r27Vq1aZdNU1duuXbt04MABjzUJCgpSYmIia2LYkSNHJP3/F7mzFuWrtLRUc+bM0bFjx9S5c2eefxs8/vjj6tOnj7p16+axnbUoP/n5+YqMjFRMTIzuuece7dy5U5Jv14Avr7bBoUOHVFpaqvDwcI/t4eHhOnDggE1TVW9nnvdzrcmePXvsGKlasCxLw4cPV5cuXdS6dWtJrEV52bx5szp37qwTJ04oJCREn376qVq1auX+I8LzXz7mzJmjDRs2aN26dWX28W+hfFx33XWaMWOG4uPj9dNPP2ncuHG64YYbtHXrVp+uAcFlI4fD4XHdsqwy21C+WJPyNXToUG3atEkrV64ss4+1MCshIUF5eXn69ddfNW/ePD3wwANasWKFez/Pv3n79u3TsGHD9OWXX6pmzZrnvR1rYVavXr3c/92mTRt17txZsbGxysjI0PXXXy/JN2vAS4o2aNCggWrUqFHmaNbBgwfLVDTKx5l3pLAm5eeJJ57QggULlJmZqSZNmri3sxblIzAwUHFxcerUqZPGjx+vdu3a6Y033uD5L0e5ubk6ePCgOnbsKH9/f/n7+2vFihWaMmWK/P393c83a1G+ateurTZt2ig/P9+n/x4ILhsEBgaqY8eOWrJkicf2JUuW6IYbbrBpquotJiZGERERHmty8uRJrVixgjXxMcuyNHToUM2fP1/Lly9XTEyMx37Wwh6WZam4uJjnvxzdcsst2rx5s/Ly8tyXTp06acCAAcrLy1Pz5s1ZCxsUFxdr27Ztaty4sW//PXhxQj98YM6cOVZAQID1/vvvW99++62Vmppq1a5d29q9e7fdo1VZRUVF1saNG62NGzdakqzJkydbGzdutPbs2WNZlmVNmDDBCgsLs+bPn29t3rzZuvfee63GjRtbhYWFNk9etQwZMsQKCwuzsrKyrIKCAvfl+PHj7tuwFmaNGjXK+uqrr6xdu3ZZmzZtsv7yl79Yfn5+1pdffmlZFs+/nf73XYqWxVqUh6efftrKysqydu7caa1evdq69dZbLafT6f577Ks1ILhs9NZbb1nNmjWzAgMDrQ4dOrjfFg8zMjMzLUllLg888IBlWaff/puWlmZFRERYQUFBVteuXa3NmzfbO3QVdK41kGR9+OGH7tuwFmYNGjTI/b89DRs2tG655RZ3bFkWz7+dzg4u1sK8/v37W40bN7YCAgKsyMhI684777S2bt3q3u+rNXBYlmX54AgcAAAAzoNzuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAz7PyJauZFJ+x/AAAAAAElFTkSuQmCC"},4814:(A,e,t)=>{t.d(e,{A:()=>a});const a=t.p+"assets/images/barex3-10f7f96ec4c5c233666af459ad98447d.png"},7281:(A,e,t)=>{t.d(e,{A:()=>a});const a=t.p+"assets/images/barex4-243bfdca4b1a1d8f6fdc72a0cd9af62e.png"},8453:(A,e,t)=>{t.d(e,{R:()=>n,x:()=>C});var a=t(6540);const r={},s=a.createContext(r);function n(A){const e=a.useContext(s);return a.useMemo((function(){return"function"==typeof A?A(e):{...e,...A}}),[e,A])}function C(A){let e;return e=A.disableParentContext?"function"==typeof A.components?A.components(r):A.components||r:n(A.components),a.createElement(s.Provider,{value:e},A.children)}}}]); \ No newline at end of file diff --git a/assets/js/499d47b2.d3a1471f.js b/assets/js/499d47b2.d3a1471f.js new file mode 100644 index 00000000..3d5de2ca --- /dev/null +++ b/assets/js/499d47b2.d3a1471f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2302],{3331:(A,e,t)=>{t.r(e),t.d(e,{assets:()=>w,contentTitle:()=>C,default:()=>i,frontMatter:()=>n,metadata:()=>c,toc:()=>l});var a=t(4848),r=t(8453),s=t(8597);t(8205);const n={sidebar_position:3},C=void 0,c={id:"documentation/plotting/Bar Plot",title:"Bar Plot",description:"df.plot(kind='bar', x=datacol, y=datacol)",source:"@site/docs/documentation/plotting/Bar Plot.md",sourceDirName:"documentation/plotting",slug:"/documentation/plotting/Bar Plot",permalink:"/bpd-reference/docs/documentation/plotting/Bar Plot",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/plotting/Bar Plot.md",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3},sidebar:"docsSidebar",previous:{title:"Scatter Plot",permalink:"/bpd-reference/docs/documentation/plotting/Scatter Plot"},next:{title:"Line Plot",permalink:"/bpd-reference/docs/documentation/plotting/Line Plot"}},w={},l=[];function d(A){const e={a:"a",code:"code",hr:"hr",img:"img",p:"p",pre:"pre",...(0,r.R)(),...A.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df.plot(kind='bar', x=data_col, y=data_col)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Create a bar plot using a DataFrame."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["kind : ",(0,a.jsx)("em",{children:"string"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"To create a bar plot, use kind='bar'"}),(0,a.jsxs)("dd",{className:"parameter-description",children:["To create a ",(0,a.jsx)("em",{children:"horizontal"})," bar plot, use kind='barh'"]}),(0,a.jsxs)("dd",{className:"parameter",children:["x : ",(0,a.jsx)("em",{children:"label, optional"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Column containing categorical data for group labels. If not specified, the index of the DataFrame is used."}),(0,a.jsxs)("dd",{className:"parameter",children:["y : ",(0,a.jsx)("em",{children:"label, optional"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Column containing numerical data for the groups in x. If not specified, all numerical columns are used."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsxs)("dd",{children:["plot - Matplotlib plot created using ",(0,a.jsx)(e.a,{href:"https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.html",children:"parameters"}),"."]}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"Matplotlib plot"}),(0,a.jsx)("dt",{className:"term",children:"Note:"}),(0,a.jsx)("dd",{children:(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:["When kind='bar', you can sort your DataFrame in ",(0,a.jsx)("em",{children:"descending"})," order by your y column before plotting to create a ",(0,a.jsx)("em",{children:"vertical"})," bar plot that goes from tall to short from left to right."]}),(0,a.jsxs)("li",{children:["When kind='barh', you can sort your DataFrame in ",(0,a.jsx)("em",{children:"ascending"})," order by your y column before plotting to create a ",(0,a.jsx)("em",{children:"horizontal"})," bar plot that goes from tall to short from top to bottom."]})]})})]})]}),"\n",(0,a.jsx)(e.hr,{}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-python",children:"# Creating a DataFrame to use for bar plots below\navg_species_weights = pets.get(['Species', 'Weight']).groupby('Species').mean().reset_index()\navg_species_weights\n"})}),"\n",(0,a.jsx)(s.A,{data:'{"columns":["Species","Weight"],"index":[0,1,2],"data":[["cat",8.8333333333],["dog",48.3333333333],["hamster",0.625]]}'}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-python",children:"avg_species_weights.sort_values(by='Weight', ascending=False).plot(kind='bar', x='Species', y='Weight')\n"})}),"\n",(0,a.jsx)(e.p,{children:(0,a.jsx)(e.img,{alt:"Bar plot example 1",src:t(2340).A+"",width:"543",height:"476"})}),"\n",(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"If the group label is the index of the DataFrame, the x parameter can be omitted."})}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-python",children:"# Creating a DataFrame to use for bar plots below\nspecies_count = pets.get(['Species','ID']).groupby('Species').count()\nspecies_count = species_count.assign(Count = species_count.get('ID')).drop(columns = ['ID'])\nspecies_count\n"})}),"\n",(0,a.jsx)(s.A,{data:'{"columns":["Count"],"index":["cat","dog","hamster"],"data":[[3],[3],[2]]}'}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-python",children:"species_count.plot(kind='bar', y='Count', title='Distribution of Species');\n"})}),"\n",(0,a.jsx)(e.p,{children:(0,a.jsx)(e.img,{alt:"Bar plot example 2",src:t(7814).A+"",width:"640",height:"480"})}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-python",children:"avg_species_weights.sort_values(by='Weight', ascending=True).plot(kind='barh', x='Species', y='Weight')\n"})}),"\n",(0,a.jsx)(e.p,{children:(0,a.jsx)(e.img,{alt:"Bar plot example 3",src:t(5903).A+"",width:"604",height:"413"})}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-python",children:"pets.groupby('Species').count().plot(kind='bar', y='ID', title='Distribution of Species')\n"})}),"\n",(0,a.jsx)(e.p,{children:(0,a.jsx)(e.img,{alt:"Bar plot example 3",src:t(2073).A+"",width:"547",height:"496"})})]})}function i(A={}){const{wrapper:e}={...(0,r.R)(),...A.components};return e?(0,a.jsx)(e,{...A,children:(0,a.jsx)(d,{...A})}):d(A)}},8597:(A,e,t)=>{t.d(e,{A:()=>r});t(6540);var a=t(4848);const r=A=>{let{data:e}=A,t=[],r=[],s="",n=[];if(e){const A=JSON.parse(e);t=A.columns||[],r=A.data||[],s=A.indexName||"Index",n=A.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:s}),t.map(((A,e)=>(0,a.jsx)("th",{children:A},e)))]})}),(0,a.jsx)("tbody",{children:r.map(((A,e)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:n[e]}),A.map(((A,e)=>{return(0,a.jsx)("td",{children:(t=A,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},e);var t}))]},e)))})]})})}},8205:(A,e,t)=>{t.d(e,{A:()=>r});t(6540);var a=t(4848);const r=A=>{let{data:e}=A,t=[],r=[],s="",n="";if(e)try{const A=JSON.parse(e);s=A.name||"",n=A.dtype||"Unknown type",t=A.index||[],r=A.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const C=r.map((A=>JSON.stringify(A)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:C.map(((A,e)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:t[e]}),(0,a.jsx)("span",{className:"series-value",children:"true"===A||"false"===A?A.charAt(0).toUpperCase()+A.slice(1):A})]},e)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",s,", dtype: ",n]})]})}},2340:(A,e,t)=>{t.d(e,{A:()=>a});const a=t.p+"assets/images/barex1-21e546e39652d57da5a66250931ada7d.png"},5903:(A,e,t)=>{t.d(e,{A:()=>a});const a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlwAAAGdCAYAAADHQK08AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAk9klEQVR4nO3de1TUdf7H8dcgF0UGvIMkCoJg5i21i2UCJV4rra21crPS6uRmSVam2xZqtl62rMySaivR42qW1nFbtbyAIeYNJS+Zsd5LzGxNUBOF+f7+8Di/HVHTcT58uTwf58w5zfc7DO+Zz8/l+fvOd2YclmVZAgAAgDF+dg8AAABQ1RFcAAAAhhFcAAAAhhFcAAAAhhFcAAAAhhFcAAAAhhFcAAAAhhFcAAAAhvnbPUB153K5tH//fjmdTjkcDrvHAQAAF8GyLBUVFSkyMlJ+fr9//Irgstn+/fsVFRVl9xgAAMAL+/btU5MmTX73dgSXzZxOp6TTCxYaGmrzNAAA4GIUFhYqKirK/Xf89xBcNjvzMmJoaCjBBQBAJXOxpwNx0jwAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBhBBcAAIBh/nYPgNNap30hv6Bgu8cAAKDK2D2hj90juHGECwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCC6yxJSUlKTU21ewwAAFCFEFwAAACGEVwAAACGVevgOnbsmAYOHKiQkBA1btxYr776qsf+w4cPa+DAgapbt66Cg4PVq1cv5efne9zmvffeU1RUlIKDg3XHHXdo8uTJqlOnTjk+CgAAUNFV6+B69tlnlZmZqU8//VRffvmlsrKylJub697/4IMPav369VqwYIG+/vprWZal3r1769SpU5KknJwcPfbYYxo2bJjy8vKUkpKil19++YK/s7i4WIWFhR4XAABQtfnbPYBdjh49qvfff18zZsxQSkqKJCkjI0NNmjSRJOXn52vBggXKycnRDTfcIEmaNWuWoqKi9Nlnn+nuu+/Wm2++qV69eumZZ56RJMXHx2vVqlX6/PPPz/t7x48frzFjxhh+dAAAoCKptke4duzYoZMnT6pz587ubfXq1VNCQoIkadu2bfL399d1113n3l+/fn0lJCRo27ZtkqTt27fr2muv9bjfs6+fbdSoUTpy5Ij7sm/fPl89JAAAUEFV2yNclmV5td+yLDkcjjL/fbH3GxQUpKCgoEuYFAAAVHbV9ghXXFycAgICtHr1ave2w4cP6/vvv5cktWrVSiUlJVqzZo17/y+//KLvv/9eV155pSSpZcuWWrt2rcf9rl+/vhymBwAAlUm1PcIVEhKiwYMH69lnn1X9+vUVHh6u559/Xn5+pxu0RYsW6tu3rx555BG98847cjqdGjlypK644gr17dtXkvTEE0+oa9eumjx5sm677TYtX75cixYtKnPUCwAAVG/V9giXJP39739X165ddfvtt6tbt27q0qWLOnbs6N7/4YcfqmPHjrr11lvVuXNnWZalhQsXKiAgQJJ04403Kj09XZMnT1a7du20ePFiPfXUU6pZs6ZdDwkAAFRADuv3TjrCJXnkkUf03XffKTs7+6JuX1hYqLCwMEWlzpVfULDh6QAAqD52T+hj7L7P/P0+cuSIQkNDf/f21fYlRV955ZVXlJKSotq1a2vRokXKyMjQ22+/bfdYAACgAiG4LtPatWs1adIkFRUVqXnz5poyZYoefvhhu8cCAAAVCMF1mebOnWv3CAAAoIKr1ifNAwAAlAeCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDB/uwfAaVvG9FBoaKjdYwAAAAM4wgUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGAYwQUAAGCYv90D4LTWaV/ILyjY7jGqlN0T+tg9AgAAkjjCBQAAYBzBBQAAYBjBBQAAYBjBBQAAYBjBBQAAYJhXwbVv3z798MMP7utr165Vamqq3n33XZ8NBgAAUFV4FVz33XefMjMzJUkHDhxQSkqK1q5dq7/85S8aO3asTwcEAACo7LwKri1btujaa6+VJM2dO1etW7fWqlWr9M9//lPTp0/35XwAAACVnlfBderUKQUFBUmSli5dqttvv12S1LJlSxUUFPhuOgAAgCrAq+C66qqrlJ6eruzsbC1ZskQ9e/aUJO3fv1/169f36YAAAACVnVfBNXHiRL3zzjtKSkrSvffeq3bt2kmSFixY4H6pEQAAAKd59V2KSUlJOnTokAoLC1W3bl339kcffVTBwXwfIAAAwP/y+nO4LMtSbm6u3nnnHRUVFUmSAgMDCS4AAICzeHWEa8+ePerZs6f27t2r4uJipaSkyOl0atKkSTpx4oTS09N9PScAAECl5dURrmHDhqlTp046fPiwatWq5d5+xx13aNmyZT4bDgAAoCrw6gjXypUrlZOTo8DAQI/tzZo1048//uiTwQAAAKoKr45wuVwulZaWltn+ww8/yOl0XvZQAAAAVYlXwZWSkqLXX3/dfd3hcOjo0aNKS0tT7969fTUbAABAleDVS4qvvfaakpOT1apVK504cUL33Xef8vPz1aBBA82ePdvXMwIAAFRqXgVXZGSk8vLyNHv2bG3YsEEul0uDBw/WgAEDPE6iBwAAgJfBJUm1atXSoEGDNGjQIF/OAwAAUOVcdHAtWLBAvXr1UkBAgBYsWHDB2575MmsAAABcQnD169dPBw4cUKNGjdSvX7/z3s7hcJzzHYwAAADV1UUHl8vlOud/AwAA4MK8/i5FAAAAXByvguvJJ5/UlClTymyfOnWqUlNTL3emSmn06NFq37693WMAAIAKyKvgmjdvnm688cYy22+44QZ98sknlz0UAABAVeJVcP3yyy8KCwsrsz00NFSHDh267KHs4nK5NHHiRMXFxSkoKEhNmzbVyy+/LEl67rnnFB8fr+DgYDVv3lwvvPCCTp06JUmaPn26xowZo2+++UYOh0MOh0PTp0+38ZEAAICKxKvP4YqLi9PixYs1dOhQj+2LFi1S8+bNfTKYHUaNGqX33ntPr732mrp06aKCggJ99913kiSn06np06crMjJSmzdv1iOPPCKn06kRI0aof//+2rJlixYvXqylS5dK0jmDVJKKi4tVXFzsvl5YWGj+gQEAAFt5FVzDhw/X0KFD9fPPP+vmm2+WJC1btkyvvvqqx3csViZFRUV64403NHXqVD3wwAOSpNjYWHXp0kWS9Ne//tV92+joaD399NP66KOPNGLECNWqVUshISHy9/dXRETEBX/P+PHjNWbMGHMPBAAAVDheBdegQYNUXFysl19+WS+99JKk0xEybdo0DRw40KcDlpdt27apuLhYt9xyyzn3f/LJJ3r99df1n//8R0ePHlVJSYlCQ0Mv+feMGjVKw4cPd18vLCxUVFSU13MDAICKz+uv9hkyZIiGDBmin3/+2X2EpzK70HdArl69Wvfcc4/GjBmjHj16KCwsTHPmzNGrr756yb8nKChIQUFBlzMqAACoZLz+HK6SkhItXbpU8+fPl2VZkqT9+/fr6NGjPhuuPLVo0UK1atXSsmXLyuzLyclRs2bN9Pzzz6tTp05q0aKF9uzZ43GbwMBAPmEfAACck1dHuPbs2aOePXtq7969Ki4uVkpKipxOpyZNmqQTJ04oPT3d13MaV7NmTT333HMaMWKEAgMDdeONN+rnn3/W1q1bFRcXp71792rOnDm65ppr9O9//1uffvqpx89HR0dr165dysvLU5MmTeR0OjmSBQAAJHl5hGvYsGHq1KmTDh8+7PFS3B133HHOI0SVxQsvvKCnn35aL774oq688kr1799fBw8eVN++ffXUU09p6NChat++vVatWqUXXnjB42f/8Ic/qGfPnkpOTlbDhg01e/Zsmx4FAACoaBzWmdcDL0GDBg2Uk5OjhIQEOZ1OffPNN2revLl2796tVq1a6fjx4yZmrZIKCwsVFhamqNS58gsKtnucKmX3hD52jwAAqKLO/P0+cuTIRb2JzqsjXC6X65znK/3www9yOp3e3CUAAECV5VVwpaSkeHzelsPh0NGjR5WWlqbevXv7ajYAAIAqwauT5l977TUlJyerVatWOnHihO677z7l5+erQYMGnLsEAABwFq+CKzIyUnl5eZo9e7Y2bNggl8ulwYMHa8CAARf8PCsAAIDqyOsPPq1Vq5YGDRqkQYMG+XIeAACAKsfr4Nq+fbvefPNNbdu2TQ6HQy1bttTQoUPVsmVLX84HAABQ6Xl10vwnn3yi1q1bKzc3V+3atVPbtm21YcMGtWnTRh9//LGvZwQAAKjUvDrCNWLECI0aNUpjx4712J6WlqbnnntOd999t0+GAwAAqAq8OsJ14MABDRw4sMz2P/3pTzpw4MBlDwUAAFCVeBVcSUlJys7OLrN95cqVuummmy57KAAAgKrEq5cUb7/9dj333HPKzc3V9ddfL0lavXq1Pv74Y40ZM0YLFizwuC0AAEB15tV3Kfr5XdyBMYfDcc6vAML/47sUzeG7FAEAplzqdyl6dYTL5XJ582MAAADV0iWdw7VmzRotWrTIY9uMGTMUExOjRo0a6dFHH1VxcbFPBwQAAKjsLim4Ro8erU2bNrmvb968WYMHD1a3bt00cuRI/etf/9L48eN9PiQAAEBldknBlZeXp1tuucV9fc6cObruuuv03nvvafjw4ZoyZYrmzp3r8yEBAAAqs0sKrsOHDys8PNx9fcWKFerZs6f7+jXXXKN9+/b5bjoAAIAq4JKCKzw8XLt27ZIknTx5Uhs2bFDnzp3d+4uKihQQEODbCQEAACq5Swqunj17auTIkcrOztaoUaMUHBzs8UGnmzZtUmxsrM+HBAAAqMwu6WMhxo0bpzvvvFOJiYkKCQlRRkaGAgMD3fs/+OADde/e3edDAgAAVGaXFFwNGzZUdna2jhw5opCQENWoUcNj/8cff6yQkBCfDggAAFDZefXBp2FhYefcXq9evcsaBgAAoCry6surAQAAcPEILgAAAMO8ekkRvrdlTI+L+vJLAABQ+XCECwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDCCCwAAwDB/uwfAaa3TvpBfULDHtt0T+tg0DQAA8CWOcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhGcAEAABhma3AlJSUpNTXVzhEAAACM4wjXWYhAAADgawSXISdPnrR7BAAAUEHYHlwul0sjRoxQvXr1FBERodGjR7v3TZ48WW3atFHt2rUVFRWlP//5zzp69Kh7//Tp01WnTh19/vnnSkhIUHBwsO666y4dO3ZMGRkZio6OVt26dfXEE0+otLTU/XNvv/22WrRooZo1ayo8PFx33XWXJOnBBx/UihUr9MYbb8jhcMjhcGj37t2SpG+//Va9e/dWSEiIwsPDdf/99+vQoUPu+0xKStLQoUM1fPhwNWjQQCkpKWafOAAAUGnYHlwZGRmqXbu21qxZo0mTJmns2LFasmSJJMnPz09TpkzRli1blJGRoeXLl2vEiBEeP3/8+HFNmTJFc+bM0eLFi5WVlaU777xTCxcu1MKFCzVz5ky9++67+uSTTyRJ69ev15NPPqmxY8dq+/btWrx4sbp27SpJeuONN9S5c2c98sgjKigoUEFBgaKiolRQUKDExES1b99e69ev1+LFi/XTTz/pj3/8Y5nH4u/vr5ycHL3zzjvnfLzFxcUqLCz0uAAAgKrN3+4B2rZtq7S0NElSixYtNHXqVC1btkwpKSke51LFxMTopZde0pAhQ/T222+7t586dUrTpk1TbGysJOmuu+7SzJkz9dNPPykkJEStWrVScnKyMjMz1b9/f+3du1e1a9fWrbfeKqfTqWbNmunqq6+WJIWFhSkwMFDBwcGKiIhw/45p06apQ4cO+tvf/ube9sEHHygqKkrff/+94uPjJUlxcXGaNGnSBR/v+PHjNWbMmMt70gAAQKVi+xGutm3belxv3LixDh48KEnKzMxUSkqKrrjiCjmdTg0cOFC//PKLjh075r59cHCwO7YkKTw8XNHR0QoJCfHYduY+U1JS1KxZMzVv3lz333+/Zs2apePHj19wxtzcXGVmZiokJMR9admypSRpx44d7tt16tTpdx/vqFGjdOTIEfdl3759v/szAACgcrM9uAICAjyuOxwOuVwu7dmzR71791br1q01b9485ebm6q233pJ0+qjWhX7+fPcpSU6nUxs2bNDs2bPVuHFjvfjii2rXrp1+/fXX887ocrl02223KS8vz+OSn5/vfjlSkmrXrv27jzcoKEihoaEeFwAAULXZ/pLi+axfv14lJSV69dVX5ed3ugvnzp3rk/v29/dXt27d1K1bN6WlpalOnTpavny57rzzTgUGBnqcYC9JHTp00Lx58xQdHS1//wr7lAEAgArK9iNc5xMbG6uSkhK9+eab2rlzp2bOnKn09PTLvt/PP/9cU6ZMUV5envbs2aMZM2bI5XIpISFBkhQdHa01a9Zo9+7dOnTokFwulx5//HH997//1b333qu1a9dq586d+vLLLzVo0KAycQYAAHC2Chtc7du31+TJkzVx4kS1bt1as2bN0vjx4y/7fuvUqaP58+fr5ptv1pVXXqn09HTNnj1bV111lSTpmWeeUY0aNdSqVSs1bNhQe/fuVWRkpHJyclRaWqoePXqodevWGjZsmMLCwtxH3wAAAM7HYVmWZfcQ1VlhYaHCwsIUlTpXfkHBHvt2T+hj01QAAOBCzvz9PnLkyEWdj83hGQAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMMILgAAAMP87R4AF6e0tFSnTp2ye4xqKTAwUH5+/P8mAADvEVwVnGVZOnDggH799Ve7R6m2/Pz8FBMTo8DAQLtHAQBUUgRXBbFlTA+FhoaW2X4mtho1aqTg4GA5HA4bpqu+XC6X9u/fr4KCAjVt2pTnHwDgFYKrAistLXXHVv369e0ep9pq2LCh9u/fr5KSEgUEBNg9DgCgEuLElArszDlbwcHBNk9SvZ15KbG0tNTmSQAAlRXBVQnwMpa9eP4BAJeL4AIAADCM4EKlMH36dNWpU+eSfubBBx9Uv379jMwDAMCl4KT5Sip65L/L7XftntDnkm6fnp6uZ599VocPH5a//+n/Ezt69Kjq1q2r66+/XtnZ2e7bZmdnq2vXrtq+fbvi4+PPe5/9+/dX7969vXsAFxAdHa3U1FSlpqb6/L4BADiDI1zwueTkZB09elTr1693b8vOzlZERITWrVun48ePu7dnZWUpMjLygrElSbVq1VKjRo2MzQwAgEkEF3wuISFBkZGRysrKcm/LyspS3759FRsbq1WrVnlsT05O1smTJzVixAhdccUVql27tq677jqPnz/XS4rjxo1To0aN5HQ69fDDD2vkyJFq3759mXleeeUVNW7cWPXr19fjjz/ufvdnUlKS9uzZo6eeekoOh4OT4wEAxhBcMCIpKUmZmZnu65mZmUpKSlJiYqJ7+8mTJ/X1118rOTlZDz30kHJycjRnzhxt2rRJd999t3r27Kn8/Pxz3v+sWbP08ssva+LEicrNzVXTpk01bdq0MrfLzMzUjh07lJmZqYyMDE2fPl3Tp0+XJM2fP19NmjTR2LFjVVBQoIKCAt8/EQAAiOCCIUlJScrJyVFJSYmKioq0ceNGde3aVYmJie4jV6tXr9Zvv/2mpKQkzZ49Wx9//LFuuukmxcbG6plnnlGXLl304YcfnvP+33zzTQ0ePFgPPfSQ4uPj9eKLL6pNmzZlble3bl1NnTpVLVu21K233qo+ffpo2bJlkqR69eqpRo0acjqdioiIUEREhLHnAwBQvRFcMCI5OVnHjh3TunXrlJ2drfj4eDVq1EiJiYlat26djh07pqysLDVt2lQbNmyQZVmKj49XSEiI+7JixQrt2LHjnPe/fft2XXvttR7bzr4uSVdddZVq1Kjhvt64cWMdPHjQtw8WAIDfwbsUYURcXJyaNGmizMxMHT58WImJiZKkiIgIxcTEKCcnR5mZmbr55pvlcrlUo0YN5ebmesSRJIWEhJz3d5x9zpVlWWVuc/ZX8TgcDrlcLm8fFgAAXuEIF4xJTk5WVlaWsrKylJSU5N6emJioL774QqtXr1ZycrKuvvpqlZaW6uDBg4qLi/O4nO9lvoSEBK1du9Zj2/++K/JiBQYG8pU9AADjCC4Yk5ycrJUrVyovL899hEs6HVzvvfeeTpw4oeTkZMXHx2vAgAEaOHCg5s+fr127dmndunWaOHGiFi5ceM77fuKJJ/T+++8rIyND+fn5GjdunDZt2nTJ7zSMjo7WV199pR9//FGHDh26rMcLAMD5EFwwJjk5Wb/99pvi4uIUHh7u3p6YmKiioiLFxsYqKipKkvThhx9q4MCBevrpp5WQkKDbb79da9asce8/24ABAzRq1Cg988wz6tChg3bt2qUHH3xQNWvWvKQZx44dq927dys2NlYNGzb0/sECAHABDutcJ76g3BQWFiosLExHjhxRaGiox74TJ05o165diomJueSQqI5SUlIUERGhmTNn+vR+WQcAwNku9Pf7XDhpHpXS8ePHlZ6erh49eqhGjRqaPXu2li5dqiVLltg9GgAAZRBcqJQcDocWLlyocePGqbi4WAkJCZo3b566detm92gAAJRBcKFSqlWrlpYuXWr3GAAAXBROmgcAADCM4AIAADCM4KoE+GR0e/FGXgDA5eIcrgosMDBQfn5+2r9/vxo2bKjAwMBL/mBPXB7LsvTzzz/L4XCU+ZogAAAuFsFVgfn5+SkmJkYFBQXav3+/3eNUWw6HQ02aNCnzPY8AAFwsgquCCwwMVNOmTVVSUsJ3/tkkICCA2AIAXBaCqxI483IWL2kBAFA5cdI8AACAYQQXAACAYQQXAACAYZzDZbMzn/FUWFho8yQAAOBinfm7fbGf1Uhw2eyXX36RJEVFRdk8CQAAuFRFRUUKCwv73dsRXDarV6+eJGnv3r0XtWAwo7CwUFFRUdq3b59CQ0PtHqdaYg0qBtahYmAdKoYLrYNlWSoqKlJkZORF3RfBZTM/v9On0YWFhfGPqgIIDQ1lHWzGGlQMrEPFwDpUDOdbh0s5UMJJ8wAAAIYRXAAAAIYRXDYLCgpSWlqagoKC7B6lWmMd7McaVAysQ8XAOlQMvlwHh3Wx72cEAACAVzjCBQAAYBjBBQAAYBjBBQAAYBjBBQAAYBjBZaO3335bMTExqlmzpjp27Kjs7Gy7R6rSvvrqK912222KjIyUw+HQZ5995rHfsiyNHj1akZGRqlWrlpKSkrR161Z7hq3Cxo8fr2uuuUZOp1ONGjVSv379tH37do/bsBZmTZs2TW3btnV/mGPnzp21aNEi936ef3uMHz9eDodDqamp7m2shXmjR4+Ww+HwuERERLj3+2oNCC6bfPTRR0pNTdXzzz+vjRs36qabblKvXr20d+9eu0erso4dO6Z27dpp6tSp59w/adIkTZ48WVOnTtW6desUERGhlJQUFRUVlfOkVduKFSv0+OOPa/Xq1VqyZIlKSkrUvXt3HTt2zH0b1sKsJk2aaMKECVq/fr3Wr1+vm2++WX379nX/EeH5L3/r1q3Tu+++q7Zt23psZy3Kx1VXXaWCggL3ZfPmze59PlsDC7a49tprrccee8xjW8uWLa2RI0faNFH1Isn69NNP3dddLpcVERFhTZgwwb3txIkTVlhYmJWenm7DhNXHwYMHLUnWihUrLMtiLexSt25d6x//+AfPvw2KioqsFi1aWEuWLLESExOtYcOGWZbFv4XykpaWZrVr1+6c+3y5BhzhssHJkyeVm5ur7t27e2zv3r27Vq1aZdNU1duuXbt04MABjzUJCgpSYmIia2LYkSNHJP3/F7mzFuWrtLRUc+bM0bFjx9S5c2eefxs8/vjj6tOnj7p16+axnbUoP/n5+YqMjFRMTIzuuece7dy5U5Jv14Avr7bBoUOHVFpaqvDwcI/t4eHhOnDggE1TVW9nnvdzrcmePXvsGKlasCxLw4cPV5cuXdS6dWtJrEV52bx5szp37qwTJ04oJCREn376qVq1auX+I8LzXz7mzJmjDRs2aN26dWX28W+hfFx33XWaMWOG4uPj9dNPP2ncuHG64YYbtHXrVp+uAcFlI4fD4XHdsqwy21C+WJPyNXToUG3atEkrV64ss4+1MCshIUF5eXn69ddfNW/ePD3wwANasWKFez/Pv3n79u3TsGHD9OWXX6pmzZrnvR1rYVavXr3c/92mTRt17txZsbGxysjI0PXXXy/JN2vAS4o2aNCggWrUqFHmaNbBgwfLVDTKx5l3pLAm5eeJJ57QggULlJmZqSZNmri3sxblIzAwUHFxcerUqZPGjx+vdu3a6Y033uD5L0e5ubk6ePCgOnbsKH9/f/n7+2vFihWaMmWK/P393c83a1G+ateurTZt2ig/P9+n/x4ILhsEBgaqY8eOWrJkicf2JUuW6IYbbrBpquotJiZGERERHmty8uRJrVixgjXxMcuyNHToUM2fP1/Lly9XTEyMx37Wwh6WZam4uJjnvxzdcsst2rx5s/Ly8tyXTp06acCAAcrLy1Pz5s1ZCxsUFxdr27Ztaty4sW//PXhxQj98YM6cOVZAQID1/vvvW99++62Vmppq1a5d29q9e7fdo1VZRUVF1saNG62NGzdakqzJkydbGzdutPbs2WNZlmVNmDDBCgsLs+bPn29t3rzZuvfee63GjRtbhYWFNk9etQwZMsQKCwuzsrKyrIKCAvfl+PHj7tuwFmaNGjXK+uqrr6xdu3ZZmzZtsv7yl79Yfn5+1pdffmlZFs+/nf73XYqWxVqUh6efftrKysqydu7caa1evdq69dZbLafT6f577Ks1ILhs9NZbb1nNmjWzAgMDrQ4dOrjfFg8zMjMzLUllLg888IBlWaff/puWlmZFRERYQUFBVteuXa3NmzfbO3QVdK41kGR9+OGH7tuwFmYNGjTI/b89DRs2tG655RZ3bFkWz7+dzg4u1sK8/v37W40bN7YCAgKsyMhI684777S2bt3q3u+rNXBYlmX54AgcAAAAzoNzuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAwjuAAAAAz7PyJauZFJ+x/AAAAAAElFTkSuQmCC"},7814:(A,e,t)=>{t.d(e,{A:()=>a});const a=t.p+"assets/images/barex3-10f7f96ec4c5c233666af459ad98447d.png"},2073:(A,e,t)=>{t.d(e,{A:()=>a});const a=t.p+"assets/images/barex4-243bfdca4b1a1d8f6fdc72a0cd9af62e.png"},8453:(A,e,t)=>{t.d(e,{R:()=>n,x:()=>C});var a=t(6540);const r={},s=a.createContext(r);function n(A){const e=a.useContext(s);return a.useMemo((function(){return"function"==typeof A?A(e):{...e,...A}}),[e,A])}function C(A){let e;return e=A.disableParentContext?"function"==typeof A.components?A.components(r):A.components||r:n(A.components),a.createElement(s.Provider,{value:e},A.children)}}}]); \ No newline at end of file diff --git a/assets/js/5d6a2894.ac62096c.js b/assets/js/5d6a2894.ac62096c.js new file mode 100644 index 00000000..790bcc4d --- /dev/null +++ b/assets/js/5d6a2894.ac62096c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5622],{1168:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>o,contentTitle:()=>i,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>l});var t=r(4848),a=r(8453),s=(r(8597),r(8205));const c={sidebar_position:1},i=void 0,d={id:"documentation/arrays-and-numpy/np.percentile()",title:"np.percentile()",description:"np.percentile(arr, p)",source:"@site/docs/documentation/arrays-and-numpy/np.percentile().md",sourceDirName:"documentation/arrays-and-numpy",slug:"/documentation/arrays-and-numpy/np.percentile()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/arrays-and-numpy/np.percentile().md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"np.count_nonzero()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.count_nonzero()"},next:{title:"np.round()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.round()"}},o={},l=[];function p(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"np.percentile(arr, p)"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"The pth percentile of the numbers in arr."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Input:"}),(0,t.jsxs)("dd",{className:"parameter",children:["arr : ",(0,t.jsx)("em",{children:"array"})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"The array from which to calculate the percentile."}),(0,t.jsxs)("dd",{className:"parameter",children:["p : ",(0,t.jsx)("em",{children:"float or array of floats"})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"Percentile or sequence of percentiles to compute, which must be between 0 and 100 inclusive."}),(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"percentile - The pth percentile of the array values."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"float or ndarray"}),(0,t.jsx)("dd",{className:"return-description",children:"The result is a single float if p is a single percentile or an ndarray if multiple percentiles are given."})]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,t.jsx)(s.A,{data:'{"name":"Weight","dtype":"float64","index":["dog_001","cat_001","cat_002","dog_002","dog_003","ham_001","ham_002"],"data":[40.0,15.0,20.0,80.0,25.0,1.0,0.25]}'}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"weight_arr = np.array(weight_ser)\nweight_arr\n"})}),"\n",(0,t.jsx)(n.p,{children:"array([40. , 15. , 20. , 80. , 25. , 1. , 0.25])"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"np.percentile(weight_arr, 50)\n"})}),"\n",(0,t.jsx)(n.p,{children:"12.5"})]})}function m(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}},8597:(e,n,r)=>{r.d(n,{A:()=>a});r(6540);var t=r(4848);const a=e=>{let{data:n}=e,r=[],a=[],s="",c=[];if(n){const e=JSON.parse(n);r=e.columns||[],a=e.data||[],s=e.indexName||"Index",c=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:s}),r.map(((e,n)=>(0,t.jsx)("th",{children:e},n)))]})}),(0,t.jsx)("tbody",{children:a.map(((e,n)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:c[n]}),e.map(((e,n)=>{return(0,t.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},n);var r}))]},n)))})]})})}},8205:(e,n,r)=>{r.d(n,{A:()=>a});r(6540);var t=r(4848);const a=e=>{let{data:n}=e,r=[],a=[],s="",c="";if(n)try{const e=JSON.parse(n);s=e.name||"",c=e.dtype||"Unknown type",r=e.index||[],a=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const i=a.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:i.map(((e,n)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:r[n]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",s,", dtype: ",c]})]})}},8453:(e,n,r)=>{r.d(n,{R:()=>c,x:()=>i});var t=r(6540);const a={},s=t.createContext(a);function c(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:c(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5d6a2894.defd590f.js b/assets/js/5d6a2894.defd590f.js deleted file mode 100644 index ccf3b757..00000000 --- a/assets/js/5d6a2894.defd590f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5622],{1168:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>o,contentTitle:()=>i,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>l});var t=r(4848),a=r(8453),s=(r(8597),r(8205));const c={sidebar_position:1},i=void 0,d={id:"documentation/arrays-and-numpy/np.percentile()",title:"np.percentile()",description:"np.percentile(arr, p)",source:"@site/docs/documentation/arrays-and-numpy/np.percentile().md",sourceDirName:"documentation/arrays-and-numpy",slug:"/documentation/arrays-and-numpy/np.percentile()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/arrays-and-numpy/np.percentile().md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"np.count_nonzero()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.count_nonzero()"},next:{title:"np.round()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.round()"}},o={},l=[];function p(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"np.percentile(arr, p)"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"The pth percentile of the numbers in arr."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Input:"}),(0,t.jsxs)("dd",{className:"parameter",children:["arr : ",(0,t.jsx)("em",{children:"array"})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"The array from which to calculate the percentile."}),(0,t.jsxs)("dd",{className:"parameter",children:["p : ",(0,t.jsx)("em",{children:"float or array of floats"})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"Percentile or sequence of percentiles to compute, which must be between 0 and 100 inclusive."}),(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"percentile - The pth percentile of the array values."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"float or ndarray"}),(0,t.jsx)("dd",{className:"return-description",children:"The result is a single float if p is a single percentile or an ndarray if multiple percentiles are given."})]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,t.jsx)(s.A,{data:'{"name":"Weight","dtype":"float64","index":["dog_001","cat_001","cat_002","dog_002","dog_003","ham_001","ham_002"],"data":[40.0,15.0,20.0,80.0,25.0,1.0,0.25]}'}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"weight_arr = np.array(weight_ser)\r\nweight_arr\n"})}),"\n",(0,t.jsx)(n.p,{children:"array([40. , 15. , 20. , 80. , 25. , 1. , 0.25])"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"np.percentile(weight_arr, 50)\n"})}),"\n",(0,t.jsx)(n.p,{children:"12.5"})]})}function m(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}},8597:(e,n,r)=>{r.d(n,{A:()=>a});r(6540);var t=r(4848);const a=e=>{let{data:n}=e,r=[],a=[],s="",c=[];if(n){const e=JSON.parse(n);r=e.columns||[],a=e.data||[],s=e.indexName||"Index",c=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:s}),r.map(((e,n)=>(0,t.jsx)("th",{children:e},n)))]})}),(0,t.jsx)("tbody",{children:a.map(((e,n)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:c[n]}),e.map(((e,n)=>{return(0,t.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},n);var r}))]},n)))})]})})}},8205:(e,n,r)=>{r.d(n,{A:()=>a});r(6540);var t=r(4848);const a=e=>{let{data:n}=e,r=[],a=[],s="",c="";if(n)try{const e=JSON.parse(n);s=e.name||"",c=e.dtype||"Unknown type",r=e.index||[],a=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const i=a.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:i.map(((e,n)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:r[n]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",s,", dtype: ",c]})]})}},8453:(e,n,r)=>{r.d(n,{R:()=>c,x:()=>i});var t=r(6540);const a={},s=t.createContext(a);function c(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:c(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5ddb68ca.036894d0.js b/assets/js/5ddb68ca.036894d0.js new file mode 100644 index 00000000..259cada5 --- /dev/null +++ b/assets/js/5ddb68ca.036894d0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6280],{5408:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>o,metadata:()=>d,toc:()=>l});var t=r(4848),n=r(8453),a=(r(8597),r(8205));const o={sidebar_position:11},i=void 0,d={id:"documentation/series-methods/ser.str.upper()",title:"ser.str.upper()",description:"ser.str.upper()",source:"@site/docs/documentation/series-methods/ser.str.upper().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.upper()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.upper()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.upper().md",tags:[],version:"current",sidebarPosition:11,frontMatter:{sidebar_position:11},sidebar:"docsSidebar",previous:{title:"ser.str.lower()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.lower()"},next:{title:"ser.str.capitalize()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()"}},c={},l=[];function p(e){const s={code:"code",hr:"hr",pre:"pre",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.str.upper()"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Converts strings in the Series to uppercase."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"Returns a Series with each element uppercased."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"Series"})]})]}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\ncomment_ser\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser.str.upper()\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" THERE ARE NO BAD DOGS, ONLY BAD OWNERS.","MY BEST BIRTHDAY PRESENT EVER!!!","****ALL YOU NEED IS LOVE AND A CAT.****","LOVE IS A WET NOSE AND A WAGGING TAIL.","BE THE PERSON YOUR DOG THINKS YOU ARE.","NO, THANK YOU!","NO, THANK YOU!","NO, THANK YOU!"]}'})]})}function m(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}},8597:(e,s,r)=>{r.d(s,{A:()=>n});r(6540);var t=r(4848);const n=e=>{let{data:s}=e,r=[],n=[],a="",o=[];if(s){const e=JSON.parse(s);r=e.columns||[],n=e.data||[],a=e.indexName||"Index",o=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:a}),r.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:n.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:o[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},s);var r}))]},s)))})]})})}},8205:(e,s,r)=>{r.d(s,{A:()=>n});r(6540);var t=r(4848);const n=e=>{let{data:s}=e,r=[],n=[],a="",o="";if(s)try{const e=JSON.parse(s);a=e.name||"",o=e.dtype||"Unknown type",r=e.index||[],n=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const i=n.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:i.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:r[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",o]})]})}},8453:(e,s,r)=>{r.d(s,{R:()=>o,x:()=>i});var t=r(6540);const n={},a=t.createContext(n);function o(e){const s=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:o(e.components),t.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5ddb68ca.b60b2c9d.js b/assets/js/5ddb68ca.b60b2c9d.js deleted file mode 100644 index 41ca8a21..00000000 --- a/assets/js/5ddb68ca.b60b2c9d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6280],{5408:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>o,metadata:()=>d,toc:()=>l});var t=r(4848),n=r(8453),a=(r(8597),r(8205));const o={sidebar_position:11},i=void 0,d={id:"documentation/series-methods/ser.str.upper()",title:"ser.str.upper()",description:"ser.str.upper()",source:"@site/docs/documentation/series-methods/ser.str.upper().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.upper()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.upper()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.upper().md",tags:[],version:"current",sidebarPosition:11,frontMatter:{sidebar_position:11},sidebar:"docsSidebar",previous:{title:"ser.str.lower()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.lower()"},next:{title:"ser.str.capitalize()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()"}},c={},l=[];function p(e){const s={code:"code",hr:"hr",pre:"pre",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.str.upper()"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Converts strings in the Series to uppercase."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"Returns a Series with each element uppercased."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"Series"})]})]}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\r\ncomment_ser\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser.str.upper()\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" THERE ARE NO BAD DOGS, ONLY BAD OWNERS.","MY BEST BIRTHDAY PRESENT EVER!!!","****ALL YOU NEED IS LOVE AND A CAT.****","LOVE IS A WET NOSE AND A WAGGING TAIL.","BE THE PERSON YOUR DOG THINKS YOU ARE.","NO, THANK YOU!","NO, THANK YOU!","NO, THANK YOU!"]}'})]})}function m(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}},8597:(e,s,r)=>{r.d(s,{A:()=>n});r(6540);var t=r(4848);const n=e=>{let{data:s}=e,r=[],n=[],a="",o=[];if(s){const e=JSON.parse(s);r=e.columns||[],n=e.data||[],a=e.indexName||"Index",o=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:a}),r.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:n.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:o[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},s);var r}))]},s)))})]})})}},8205:(e,s,r)=>{r.d(s,{A:()=>n});r(6540);var t=r(4848);const n=e=>{let{data:s}=e,r=[],n=[],a="",o="";if(s)try{const e=JSON.parse(s);a=e.name||"",o=e.dtype||"Unknown type",r=e.index||[],n=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const i=n.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:i.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:r[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",o]})]})}},8453:(e,s,r)=>{r.d(s,{R:()=>o,x:()=>i});var t=r(6540);const n={},a=t.createContext(n);function o(e){const s=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:o(e.components),t.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/60c4aef6.19e4e86c.js b/assets/js/60c4aef6.19e4e86c.js deleted file mode 100644 index f64475b6..00000000 --- a/assets/js/60c4aef6.19e4e86c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6142],{3071:(s,e,a)=>{a.r(e),a.d(e,{assets:()=>m,contentTitle:()=>r,default:()=>x,frontMatter:()=>i,metadata:()=>c,toc:()=>h});var n=a(4848),l=a(8453),t=a(8597);a(5158);const i={sidebar_position:5,sidebar_label:"Observed & Test Statistic",title:"Observed & Test Statistic"},r=void 0,c={id:"statistical-inference/obs_and_test_stats",title:"Observed & Test Statistic",description:"Concept",source:"@site/docs/statistical-inference/obs_and_test_stats.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/obs_and_test_stats",permalink:"/bpd-reference/docs/statistical-inference/obs_and_test_stats",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/obs_and_test_stats.md",tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5,sidebar_label:"Observed & Test Statistic",title:"Observed & Test Statistic"},sidebar:"statsSidebar",previous:{title:"Null & Alternative Hypothesis",permalink:"/bpd-reference/docs/statistical-inference/null_and_alt"},next:{title:"P-value",permalink:"/bpd-reference/docs/statistical-inference/p_value"}},m={},h=[{value:"Concept",id:"concept",level:2},{value:"Common Test Statistics \ud83c\udf1f",id:"common-test-statistics-",level:2},{value:"1. Absolute Difference",id:"1-absolute-difference",level:3},{value:"2. Difference",id:"2-difference",level:3},{value:"3. Total Variation Distance (TVD)",id:"3-total-variation-distance-tvd",level:3}];function d(s){const e={a:"a",admonition:"admonition",annotation:"annotation",code:"code",em:"em",h2:"h2",h3:"h3",img:"img",li:"li",math:"math",mfrac:"mfrac",mi:"mi",mn:"mn",mo:"mo",mrow:"mrow",mstyle:"mstyle",mtable:"mtable",mtd:"mtd",mtext:"mtext",mtr:"mtr",ol:"ol",p:"p",pre:"pre",semantics:"semantics",span:"span",strong:"strong",ul:"ul",...(0,l.R)(),...s.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h2,{id:"concept",children:"Concept"}),"\n",(0,n.jsxs)(e.admonition,{title:"Terminology",type:"info",children:[(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Experiment"}),": A process whose outcome is random."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Example: Flipping 100 coins."}),"\n"]}),(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Observed Statistic"}),": A statistic computed from the observed data."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Example: The number of heads observed."}),"\n"]}),(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Test Statistic"}),": A statistic computed from a sample generated under the assumption that the null hypothesis is true."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Think of the test statistic a number you write down each time you perform an experiment."}),"\n",(0,n.jsx)(e.li,{children:"The test statistic should be such that high observed values lean towards one hypothesis and low observed values lean towards the other."}),"\n"]})]}),"\n",(0,n.jsx)(e.h2,{id:"common-test-statistics-",children:"Common Test Statistics \ud83c\udf1f"}),"\n",(0,n.jsx)(e.h3,{id:"1-absolute-difference",children:"1. Absolute Difference"}),"\n",(0,n.jsx)(e.p,{children:"Absolute difference in group mean/median/number of times a certain event happens."}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:["\u2705 Used for measuring how different two ",(0,n.jsx)(e.strong,{children:"numerical distributions"})," are, and when the alternative hypothesis is ",(0,n.jsx)(e.strong,{children:(0,n.jsx)(e.em,{children:"not equal to"})}),'. For example, "the coin is biased" or "the probability of tossing a head is 0.5".']}),"\n",(0,n.jsxs)(e.li,{children:["\ud83d\udcbb ",(0,n.jsx)(e.a,{href:"https://dsc-courses.github.io/bpd-reference/docs/statistical-inference/permutation_test#code-example-absolute-difference",children:"Example"})," of using absolute difference as the test statistic in a permutation test."]}),"\n"]}),"\n",(0,n.jsx)(e.h3,{id:"2-difference",children:"2. Difference"}),"\n",(0,n.jsx)(e.p,{children:"Difference in group mean/median/number of times a certain event happens."}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:["\u2705 Used for measuring how different two ",(0,n.jsx)(e.strong,{children:"numerical distributions"})," are, and the alternative hypothesis is ",(0,n.jsx)(e.strong,{children:(0,n.jsx)(e.em,{children:"less than"})})," or ",(0,n.jsx)(e.strong,{children:(0,n.jsx)(e.em,{children:"greater than"})}),'. For example, "the coin is biased towards heads" or "the probability of tossing a head is greater then 0.5".']}),"\n",(0,n.jsxs)(e.li,{children:["\ud83d\udcbb ",(0,n.jsx)(e.a,{href:"https://dsc-courses.github.io/bpd-reference/docs/statistical-inference/hypothesis_test#code-example-1-difference",children:"Example"})," of using difference as the test statistic in a hypothesis test."]}),"\n"]}),"\n",(0,n.jsx)(e.h3,{id:"3-total-variation-distance-tvd",children:"3. Total Variation Distance (TVD)"}),"\n",(0,n.jsxs)(e.p,{children:["A test statistic that quantifies how different ",(0,n.jsx)(e.strong,{children:"two categorical distributions"})," are by calculating the sum of the absolute differences of their proportions, all divided by 2."]}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"\u274c\ufe0f The TVD is not used for permutation tests."}),"\n",(0,n.jsxs)(e.li,{children:['\u2705 Used for assessing whether an "observed sample" was drawn randomly from a known ',(0,n.jsx)(e.strong,{children:"categorical distribution"}),"."]}),"\n",(0,n.jsxs)(e.li,{children:["\ud83d\udcbb ",(0,n.jsx)(e.a,{href:"https://dsc-courses.github.io/bpd-reference/docs/statistical-inference/hypothesis_test/#code-example-2-tvd",children:"Example"})," of using TVD as the test statistic in a hypothesis test."]}),"\n"]}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"#code implementation\r\ndef tvd(dist1, dist2):\r\n '''Computes the TVD between two categorical distributions, \r\n assuming the categories appear in the same order.'''\r\n return np.abs(dist1 - dist2).sum() / 2\n"})}),"\n",(0,n.jsxs)(e.admonition,{title:"note",type:"info",children:[(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"3 Ways of Manually Computing TVD:"})," \ud83e\uddee"]}),(0,n.jsx)(e.p,{children:(0,n.jsxs)(e.em,{children:["Assume ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"P"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"P"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"})]})})]})," is the first distribution and ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"Q"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"Q"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"Q"})]})})]})," is the second distribution, and the categories appear in the same order."]})}),(0,n.jsxs)(e.ol,{children:["\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Follow the Definition:"})," Calculate the sum of the absolute differences of the proportions of the two distributions ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"P"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"P"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"})]})})]})," and ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"Q"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"Q"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"Q"})]})})]}),", all divided by 2."]}),"\n"]}),"\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Sum of Positive Differences:"})," Add only the values where the first distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"P"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"P"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"})]})})]})," is greater than the second distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"Q"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"Q"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"Q"})]})})]}),". This essentially sums the excessive probabilities in one distribution over the other."]}),"\n"]}),"\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Sum of Negative Differences:"})," Add only the absolute values where the first distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"P"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"P"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"})]})})]})," is less than the second distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"Q"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"Q"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"Q"})]})})]}),". This can also be interpreted as adding only the values where the second distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"Q"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"Q"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"Q"})]})})]})," is greater than the first distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"P"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"P"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"})]})})]}),"."]}),"\n"]}),"\n"]}),(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Any of the three methods can be the optimal choice depending on specific distributions."})}),(0,n.jsxs)(e.admonition,{title:"Example \ud83c\udf1f",type:"note",children:[(0,n.jsx)(e.p,{children:"Let's use an example to show how TVD can be computed in three ways."}),(0,n.jsxs)(e.p,{children:["In the ",(0,n.jsx)(e.code,{children:"full_pets"})," DataFrame, we found that the color distribution of dogs seems different from that of all pets. Let's compute the TVD between the two distributions ",(0,n.jsx)(e.code,{children:"Pets_Dist"})," and ",(0,n.jsx)(e.code,{children:"Dogs_Dist"}),"."]}),(0,n.jsx)(t.A,{data:'{"columns":["Pets_Dist","Dogs_Dist"],"index":["black","golden","white"],"data":[[0.53,0.44],[0.21,0.12],[0.26,0.44]]}'}),(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"1. Follow the Definition"})}),(0,n.jsx)(e.span,{className:"katex-display",children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mtable,{rowspacing:"0.25em",columnalign:"right left",columnspacing:"0em",children:[(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mtext,{children:"TVD"})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsxs)(e.mfrac,{children:[(0,n.jsx)(e.mn,{children:"1"}),(0,n.jsx)(e.mn,{children:"2"})]}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"}),(0,n.jsx)(e.mn,{children:"0.53"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mn,{children:"0.44"}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"}),(0,n.jsx)(e.mn,{children:"0.21"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mn,{children:"0.12"}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"}),(0,n.jsx)(e.mn,{children:"0.26"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mn,{children:"0.44"}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsxs)(e.mfrac,{children:[(0,n.jsx)(e.mn,{children:"1"}),(0,n.jsx)(e.mn,{children:"2"})]}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mn,{children:"0.09"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mn,{children:"0.09"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mn,{children:"0.18"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mn,{children:"0.18"})]})})})]})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\begin{align*} \n\\text{TVD}\n&= \\frac{1}{2}(|0.53-0.44|+|0.21-0.12|+|0.26-0.44|) \\\\\n&= \\frac{1}{2}(0.09+0.09+0.18) \\\\\n&= 0.18\n\\end{align*} "})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"6.1149em",verticalAlign:"-2.8074em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsxs)(e.span,{className:"mtable",children:[(0,n.jsx)(e.span,{className:"col-align-r",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"3.3074em"},children:[(0,n.jsxs)(e.span,{style:{top:"-5.3074em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.3214em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord",children:"TVD"})})})]}),(0,n.jsxs)(e.span,{style:{top:"-3em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.3214em"}}),(0,n.jsx)(e.span,{className:"mord"})]}),(0,n.jsxs)(e.span,{style:{top:"-1.174em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.3214em"}}),(0,n.jsx)(e.span,{className:"mord"})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"2.8074em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"col-align-l",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"3.3074em"},children:[(0,n.jsxs)(e.span,{style:{top:"-5.3074em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.3214em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.3214em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.314em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsx)(e.span,{className:"mord",children:"2"})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.677em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsx)(e.span,{className:"mord",children:"1"})})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.686em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]}),(0,n.jsx)(e.span,{className:"mopen",children:"("}),(0,n.jsx)(e.span,{className:"mord",children:"\u22230.53"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.44\u2223"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"+"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"\u22230.21"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.12\u2223"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"+"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"\u22230.26"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.44\u2223"}),(0,n.jsx)(e.span,{className:"mclose",children:")"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-3em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.3214em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.3214em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.314em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsx)(e.span,{className:"mord",children:"2"})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.677em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsx)(e.span,{className:"mord",children:"1"})})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.686em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]}),(0,n.jsx)(e.span,{className:"mopen",children:"("}),(0,n.jsx)(e.span,{className:"mord",children:"0.09"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"+"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.09"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"+"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.18"}),(0,n.jsx)(e.span,{className:"mclose",children:")"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-1.174em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.3214em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.18"})]})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"2.8074em"},children:(0,n.jsx)(e.span,{})})})]})})]})})]})})]})}),(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"2. Sum of Positive Differences & 3. Sum of Negative Differences"}),"\r\n",(0,n.jsx)(e.img,{alt:"tvd_calculation",src:a(3433).A+"",width:"1200",height:"600"}),"\r\nAssume ",(0,n.jsx)(e.code,{children:"Pets_Dist"})," is the first distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"P"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"P"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"})]})})]}),", and ",(0,n.jsx)(e.code,{children:"Dogs_Dist"})," is the second distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"Q"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"Q"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"Q"})]})})]}),","]}),(0,n.jsx)(e.p,{children:"Then,"}),(0,n.jsx)(e.span,{className:"katex-display",children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mtable,{rowspacing:"0.25em",columnalign:"right left",columnspacing:"0em",children:[(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mtext,{children:"TVD"})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mtext,{children:"Sum\xa0of\xa0positive\xa0differences"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mtext,{children:"Adding\xa0up\xa0the\xa0excessive\xa0blue\xa0bars"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mn,{children:"0.53"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mn,{children:"0.44"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mn,{children:"0.21"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mn,{children:"0.12"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mn,{children:"0.09"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mn,{children:"0.09"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mn,{children:"0.18"})]})})})]})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\begin{align*} \n\\text{TVD} \n&= \\text{Sum of positive differences} \\\\\n&= \\text{Adding up the excessive blue bars} \\\\\n&= (0.53-0.44)+(0.21-0.12) \\\\ \n&= 0.09+0.09 \\\\\n&= 0.18\n\\end{align*} "})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"7.5em",verticalAlign:"-3.5em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsxs)(e.span,{className:"mtable",children:[(0,n.jsx)(e.span,{className:"col-align-r",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"4em"},children:[(0,n.jsxs)(e.span,{style:{top:"-6.16em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord",children:"TVD"})})})]}),(0,n.jsxs)(e.span,{style:{top:"-4.66em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord"})]}),(0,n.jsxs)(e.span,{style:{top:"-3.16em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord"})]}),(0,n.jsxs)(e.span,{style:{top:"-1.66em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord"})]}),(0,n.jsxs)(e.span,{style:{top:"-0.16em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord"})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"3.5em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"col-align-l",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"4em"},children:[(0,n.jsxs)(e.span,{style:{top:"-6.16em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord",children:"Sum\xa0of\xa0positive\xa0differences"})})]})]}),(0,n.jsxs)(e.span,{style:{top:"-4.66em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord",children:"Adding\xa0up\xa0the\xa0excessive\xa0blue\xa0bars"})})]})]}),(0,n.jsxs)(e.span,{style:{top:"-3.16em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mopen",children:"("}),(0,n.jsx)(e.span,{className:"mord",children:"0.53"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.44"}),(0,n.jsx)(e.span,{className:"mclose",children:")"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"+"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mopen",children:"("}),(0,n.jsx)(e.span,{className:"mord",children:"0.21"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.12"}),(0,n.jsx)(e.span,{className:"mclose",children:")"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-1.66em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.09"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"+"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.09"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-0.16em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.18"})]})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"3.5em"},children:(0,n.jsx)(e.span,{})})})]})})]})})]})})]})}),(0,n.jsx)(e.span,{className:"katex-display",children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mtable,{rowspacing:"0.25em",columnalign:"right left",columnspacing:"0em",children:[(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mtext,{children:"TVD"})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mtext,{children:"Sum\xa0of\xa0negative\xa0differences"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mtext,{children:"Adding\xa0up\xa0the\xa0excessive\xa0orange\xa0bar"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"}),(0,n.jsx)(e.mn,{children:"0.26"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mn,{children:"0.44"}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mn,{children:"0.18"})]})})})]})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\begin{align*} \n\\text{TVD} \n&= \\text{Sum of negative differences} \\\\\n&= \\text{Adding up the excessive orange bar} \\\\\n&= |0.26-0.44| \\\\\n&= 0.18\n\\end{align*} "})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"6em",verticalAlign:"-2.75em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsxs)(e.span,{className:"mtable",children:[(0,n.jsx)(e.span,{className:"col-align-r",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"3.25em"},children:[(0,n.jsxs)(e.span,{style:{top:"-5.41em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord",children:"TVD"})})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.91em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord"})]}),(0,n.jsxs)(e.span,{style:{top:"-2.41em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord"})]}),(0,n.jsxs)(e.span,{style:{top:"-0.91em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord"})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"2.75em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"col-align-l",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"3.25em"},children:[(0,n.jsxs)(e.span,{style:{top:"-5.41em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord",children:"Sum\xa0of\xa0negative\xa0differences"})})]})]}),(0,n.jsxs)(e.span,{style:{top:"-3.91em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord",children:"Adding\xa0up\xa0the\xa0excessive\xa0orange\xa0bar"})})]})]}),(0,n.jsxs)(e.span,{style:{top:"-2.41em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord",children:"\u22230.26"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.44\u2223"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-0.91em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.18"})]})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"2.75em"},children:(0,n.jsx)(e.span,{})})})]})})]})})]})})]})}),(0,n.jsx)(e.p,{children:"In this example, sum of negative differences is the fastest way to compute TVD, but it is not always optimal. Any of the three methods can be the optimal choice depending on specific distributions."})]})]})]})}function x(s={}){const{wrapper:e}={...(0,l.R)(),...s.components};return e?(0,n.jsx)(e,{...s,children:(0,n.jsx)(d,{...s})}):d(s)}},8597:(s,e,a)=>{a.d(e,{A:()=>l});a(6540);var n=a(4848);const l=s=>{let{data:e}=s,a=[],l=[],t="",i=[];if(e){const s=JSON.parse(e);a=s.columns||[],l=s.data||[],t=s.indexName||"Index",i=s.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:t}),a.map(((s,e)=>(0,n.jsx)("th",{children:s},e)))]})}),(0,n.jsx)("tbody",{children:l.map(((s,e)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:i[e]}),s.map(((s,e)=>{return(0,n.jsx)("td",{children:(a=s,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},e);var a}))]},e)))})]})})}},5158:(s,e,a)=>{a.d(e,{A:()=>t});var n=a(6540),l=a(4848);const t=function(s){let{src:e,sourceLink:a,aspectRatio:t=16/9}=s;const[i,r]=(0,n.useState)(0),[c,m]=(0,n.useState)(0),h=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const s=()=>{if(h.current){const s=h.current.offsetWidth;m(s/t)}};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)}),[t]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:h,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,l.jsx)("iframe",{src:e,style:{width:"100%",height:`${c}px`,border:"0",allowFullScreen:!0}},i)}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,l.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,l.jsx)("button",{onClick:()=>{r((s=>s+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:s=>s.currentTarget.style.backgroundColor="#45a049",onMouseOut:s=>s.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},3433:(s,e,a)=>{a.d(e,{A:()=>n});const n=a.p+"assets/images/manually_computing_tvd-ac22c4c695883f26a27d27d5a352fe7a.png"},8453:(s,e,a)=>{a.d(e,{R:()=>i,x:()=>r});var n=a(6540);const l={},t=n.createContext(l);function i(s){const e=n.useContext(t);return n.useMemo((function(){return"function"==typeof s?s(e):{...e,...s}}),[e,s])}function r(s){let e;return e=s.disableParentContext?"function"==typeof s.components?s.components(l):s.components||l:i(s.components),n.createElement(t.Provider,{value:e},s.children)}}}]); \ No newline at end of file diff --git a/assets/js/60c4aef6.df31d04c.js b/assets/js/60c4aef6.df31d04c.js new file mode 100644 index 00000000..e06da40b --- /dev/null +++ b/assets/js/60c4aef6.df31d04c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6142],{3071:(s,e,a)=>{a.r(e),a.d(e,{assets:()=>m,contentTitle:()=>r,default:()=>x,frontMatter:()=>i,metadata:()=>c,toc:()=>h});var n=a(4848),l=a(8453),t=a(8597);a(5158);const i={sidebar_position:5,sidebar_label:"Observed & Test Statistic",title:"Observed & Test Statistic"},r=void 0,c={id:"statistical-inference/obs_and_test_stats",title:"Observed & Test Statistic",description:"Concept",source:"@site/docs/statistical-inference/obs_and_test_stats.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/obs_and_test_stats",permalink:"/bpd-reference/docs/statistical-inference/obs_and_test_stats",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/obs_and_test_stats.md",tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5,sidebar_label:"Observed & Test Statistic",title:"Observed & Test Statistic"},sidebar:"statsSidebar",previous:{title:"Null & Alternative Hypothesis",permalink:"/bpd-reference/docs/statistical-inference/null_and_alt"},next:{title:"P-value",permalink:"/bpd-reference/docs/statistical-inference/p_value"}},m={},h=[{value:"Concept",id:"concept",level:2},{value:"Common Test Statistics \ud83c\udf1f",id:"common-test-statistics-",level:2},{value:"1. Absolute Difference",id:"1-absolute-difference",level:3},{value:"2. Difference",id:"2-difference",level:3},{value:"3. Total Variation Distance (TVD)",id:"3-total-variation-distance-tvd",level:3}];function d(s){const e={a:"a",admonition:"admonition",annotation:"annotation",code:"code",em:"em",h2:"h2",h3:"h3",img:"img",li:"li",math:"math",mfrac:"mfrac",mi:"mi",mn:"mn",mo:"mo",mrow:"mrow",mstyle:"mstyle",mtable:"mtable",mtd:"mtd",mtext:"mtext",mtr:"mtr",ol:"ol",p:"p",pre:"pre",semantics:"semantics",span:"span",strong:"strong",ul:"ul",...(0,l.R)(),...s.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h2,{id:"concept",children:"Concept"}),"\n",(0,n.jsxs)(e.admonition,{title:"Terminology",type:"info",children:[(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Experiment"}),": A process whose outcome is random."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Example: Flipping 100 coins."}),"\n"]}),(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Observed Statistic"}),": A statistic computed from the observed data."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Example: The number of heads observed."}),"\n"]}),(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Test Statistic"}),": A statistic computed from a sample generated under the assumption that the null hypothesis is true."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Think of the test statistic a number you write down each time you perform an experiment."}),"\n",(0,n.jsx)(e.li,{children:"The test statistic should be such that high observed values lean towards one hypothesis and low observed values lean towards the other."}),"\n"]})]}),"\n",(0,n.jsx)(e.h2,{id:"common-test-statistics-",children:"Common Test Statistics \ud83c\udf1f"}),"\n",(0,n.jsx)(e.h3,{id:"1-absolute-difference",children:"1. Absolute Difference"}),"\n",(0,n.jsx)(e.p,{children:"Absolute difference in group mean/median/number of times a certain event happens."}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:["\u2705 Used for measuring how different two ",(0,n.jsx)(e.strong,{children:"numerical distributions"})," are, and when the alternative hypothesis is ",(0,n.jsx)(e.strong,{children:(0,n.jsx)(e.em,{children:"not equal to"})}),'. For example, "the coin is biased" or "the probability of tossing a head is 0.5".']}),"\n",(0,n.jsxs)(e.li,{children:["\ud83d\udcbb ",(0,n.jsx)(e.a,{href:"https://dsc-courses.github.io/bpd-reference/docs/statistical-inference/permutation_test#code-example-absolute-difference",children:"Example"})," of using absolute difference as the test statistic in a permutation test."]}),"\n"]}),"\n",(0,n.jsx)(e.h3,{id:"2-difference",children:"2. Difference"}),"\n",(0,n.jsx)(e.p,{children:"Difference in group mean/median/number of times a certain event happens."}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:["\u2705 Used for measuring how different two ",(0,n.jsx)(e.strong,{children:"numerical distributions"})," are, and the alternative hypothesis is ",(0,n.jsx)(e.strong,{children:(0,n.jsx)(e.em,{children:"less than"})})," or ",(0,n.jsx)(e.strong,{children:(0,n.jsx)(e.em,{children:"greater than"})}),'. For example, "the coin is biased towards heads" or "the probability of tossing a head is greater then 0.5".']}),"\n",(0,n.jsxs)(e.li,{children:["\ud83d\udcbb ",(0,n.jsx)(e.a,{href:"https://dsc-courses.github.io/bpd-reference/docs/statistical-inference/hypothesis_test#code-example-1-difference",children:"Example"})," of using difference as the test statistic in a hypothesis test."]}),"\n"]}),"\n",(0,n.jsx)(e.h3,{id:"3-total-variation-distance-tvd",children:"3. Total Variation Distance (TVD)"}),"\n",(0,n.jsxs)(e.p,{children:["A test statistic that quantifies how different ",(0,n.jsx)(e.strong,{children:"two categorical distributions"})," are by calculating the sum of the absolute differences of their proportions, all divided by 2."]}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"\u274c\ufe0f The TVD is not used for permutation tests."}),"\n",(0,n.jsxs)(e.li,{children:['\u2705 Used for assessing whether an "observed sample" was drawn randomly from a known ',(0,n.jsx)(e.strong,{children:"categorical distribution"}),"."]}),"\n",(0,n.jsxs)(e.li,{children:["\ud83d\udcbb ",(0,n.jsx)(e.a,{href:"https://dsc-courses.github.io/bpd-reference/docs/statistical-inference/hypothesis_test/#code-example-2-tvd",children:"Example"})," of using TVD as the test statistic in a hypothesis test."]}),"\n"]}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"#code implementation\ndef tvd(dist1, dist2):\n '''Computes the TVD between two categorical distributions, \n assuming the categories appear in the same order.'''\n return np.abs(dist1 - dist2).sum() / 2\n"})}),"\n",(0,n.jsxs)(e.admonition,{title:"note",type:"info",children:[(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"3 Ways of Manually Computing TVD:"})," \ud83e\uddee"]}),(0,n.jsx)(e.p,{children:(0,n.jsxs)(e.em,{children:["Assume ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"P"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"P"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"})]})})]})," is the first distribution and ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"Q"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"Q"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"Q"})]})})]})," is the second distribution, and the categories appear in the same order."]})}),(0,n.jsxs)(e.ol,{children:["\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Follow the Definition:"})," Calculate the sum of the absolute differences of the proportions of the two distributions ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"P"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"P"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"})]})})]})," and ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"Q"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"Q"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"Q"})]})})]}),", all divided by 2."]}),"\n"]}),"\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Sum of Positive Differences:"})," Add only the values where the first distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"P"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"P"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"})]})})]})," is greater than the second distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"Q"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"Q"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"Q"})]})})]}),". This essentially sums the excessive probabilities in one distribution over the other."]}),"\n"]}),"\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Sum of Negative Differences:"})," Add only the absolute values where the first distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"P"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"P"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"})]})})]})," is less than the second distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"Q"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"Q"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"Q"})]})})]}),". This can also be interpreted as adding only the values where the second distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"Q"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"Q"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"Q"})]})})]})," is greater than the first distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"P"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"P"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"})]})})]}),"."]}),"\n"]}),"\n"]}),(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Any of the three methods can be the optimal choice depending on specific distributions."})}),(0,n.jsxs)(e.admonition,{title:"Example \ud83c\udf1f",type:"note",children:[(0,n.jsx)(e.p,{children:"Let's use an example to show how TVD can be computed in three ways."}),(0,n.jsxs)(e.p,{children:["In the ",(0,n.jsx)(e.code,{children:"full_pets"})," DataFrame, we found that the color distribution of dogs seems different from that of all pets. Let's compute the TVD between the two distributions ",(0,n.jsx)(e.code,{children:"Pets_Dist"})," and ",(0,n.jsx)(e.code,{children:"Dogs_Dist"}),"."]}),(0,n.jsx)(t.A,{data:'{"columns":["Pets_Dist","Dogs_Dist"],"index":["black","golden","white"],"data":[[0.53,0.44],[0.21,0.12],[0.26,0.44]]}'}),(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"1. Follow the Definition"})}),(0,n.jsx)(e.span,{className:"katex-display",children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mtable,{rowspacing:"0.25em",columnalign:"right left",columnspacing:"0em",children:[(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mtext,{children:"TVD"})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsxs)(e.mfrac,{children:[(0,n.jsx)(e.mn,{children:"1"}),(0,n.jsx)(e.mn,{children:"2"})]}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"}),(0,n.jsx)(e.mn,{children:"0.53"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mn,{children:"0.44"}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"}),(0,n.jsx)(e.mn,{children:"0.21"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mn,{children:"0.12"}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"}),(0,n.jsx)(e.mn,{children:"0.26"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mn,{children:"0.44"}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsxs)(e.mfrac,{children:[(0,n.jsx)(e.mn,{children:"1"}),(0,n.jsx)(e.mn,{children:"2"})]}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mn,{children:"0.09"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mn,{children:"0.09"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mn,{children:"0.18"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mn,{children:"0.18"})]})})})]})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\begin{align*} \n\\text{TVD}\n&= \\frac{1}{2}(|0.53-0.44|+|0.21-0.12|+|0.26-0.44|) \\\\\n&= \\frac{1}{2}(0.09+0.09+0.18) \\\\\n&= 0.18\n\\end{align*} "})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"6.1149em",verticalAlign:"-2.8074em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsxs)(e.span,{className:"mtable",children:[(0,n.jsx)(e.span,{className:"col-align-r",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"3.3074em"},children:[(0,n.jsxs)(e.span,{style:{top:"-5.3074em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.3214em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord",children:"TVD"})})})]}),(0,n.jsxs)(e.span,{style:{top:"-3em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.3214em"}}),(0,n.jsx)(e.span,{className:"mord"})]}),(0,n.jsxs)(e.span,{style:{top:"-1.174em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.3214em"}}),(0,n.jsx)(e.span,{className:"mord"})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"2.8074em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"col-align-l",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"3.3074em"},children:[(0,n.jsxs)(e.span,{style:{top:"-5.3074em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.3214em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.3214em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.314em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsx)(e.span,{className:"mord",children:"2"})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.677em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsx)(e.span,{className:"mord",children:"1"})})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.686em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]}),(0,n.jsx)(e.span,{className:"mopen",children:"("}),(0,n.jsx)(e.span,{className:"mord",children:"\u22230.53"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.44\u2223"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"+"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"\u22230.21"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.12\u2223"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"+"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"\u22230.26"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.44\u2223"}),(0,n.jsx)(e.span,{className:"mclose",children:")"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-3em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.3214em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.3214em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.314em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsx)(e.span,{className:"mord",children:"2"})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.677em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsx)(e.span,{className:"mord",children:"1"})})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.686em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]}),(0,n.jsx)(e.span,{className:"mopen",children:"("}),(0,n.jsx)(e.span,{className:"mord",children:"0.09"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"+"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.09"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"+"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.18"}),(0,n.jsx)(e.span,{className:"mclose",children:")"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-1.174em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.3214em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.18"})]})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"2.8074em"},children:(0,n.jsx)(e.span,{})})})]})})]})})]})})]})}),(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"2. Sum of Positive Differences & 3. Sum of Negative Differences"}),"\n",(0,n.jsx)(e.img,{alt:"tvd_calculation",src:a(2913).A+"",width:"1200",height:"600"}),"\nAssume ",(0,n.jsx)(e.code,{children:"Pets_Dist"})," is the first distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"P"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"P"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.13889em"},children:"P"})]})})]}),", and ",(0,n.jsx)(e.code,{children:"Dogs_Dist"})," is the second distribution ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"Q"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"Q"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"Q"})]})})]}),","]}),(0,n.jsx)(e.p,{children:"Then,"}),(0,n.jsx)(e.span,{className:"katex-display",children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mtable,{rowspacing:"0.25em",columnalign:"right left",columnspacing:"0em",children:[(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mtext,{children:"TVD"})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mtext,{children:"Sum\xa0of\xa0positive\xa0differences"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mtext,{children:"Adding\xa0up\xa0the\xa0excessive\xa0blue\xa0bars"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mn,{children:"0.53"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mn,{children:"0.44"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mn,{children:"0.21"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mn,{children:"0.12"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mn,{children:"0.09"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mn,{children:"0.09"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mn,{children:"0.18"})]})})})]})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\begin{align*} \n\\text{TVD} \n&= \\text{Sum of positive differences} \\\\\n&= \\text{Adding up the excessive blue bars} \\\\\n&= (0.53-0.44)+(0.21-0.12) \\\\ \n&= 0.09+0.09 \\\\\n&= 0.18\n\\end{align*} "})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"7.5em",verticalAlign:"-3.5em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsxs)(e.span,{className:"mtable",children:[(0,n.jsx)(e.span,{className:"col-align-r",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"4em"},children:[(0,n.jsxs)(e.span,{style:{top:"-6.16em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord",children:"TVD"})})})]}),(0,n.jsxs)(e.span,{style:{top:"-4.66em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord"})]}),(0,n.jsxs)(e.span,{style:{top:"-3.16em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord"})]}),(0,n.jsxs)(e.span,{style:{top:"-1.66em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord"})]}),(0,n.jsxs)(e.span,{style:{top:"-0.16em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord"})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"3.5em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"col-align-l",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"4em"},children:[(0,n.jsxs)(e.span,{style:{top:"-6.16em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord",children:"Sum\xa0of\xa0positive\xa0differences"})})]})]}),(0,n.jsxs)(e.span,{style:{top:"-4.66em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord",children:"Adding\xa0up\xa0the\xa0excessive\xa0blue\xa0bars"})})]})]}),(0,n.jsxs)(e.span,{style:{top:"-3.16em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mopen",children:"("}),(0,n.jsx)(e.span,{className:"mord",children:"0.53"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.44"}),(0,n.jsx)(e.span,{className:"mclose",children:")"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"+"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mopen",children:"("}),(0,n.jsx)(e.span,{className:"mord",children:"0.21"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.12"}),(0,n.jsx)(e.span,{className:"mclose",children:")"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-1.66em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.09"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"+"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.09"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-0.16em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.18"})]})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"3.5em"},children:(0,n.jsx)(e.span,{})})})]})})]})})]})})]})}),(0,n.jsx)(e.span,{className:"katex-display",children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",display:"block",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mtable,{rowspacing:"0.25em",columnalign:"right left",columnspacing:"0em",children:[(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mtext,{children:"TVD"})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mtext,{children:"Sum\xa0of\xa0negative\xa0differences"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mtext,{children:"Adding\xa0up\xa0the\xa0excessive\xa0orange\xa0bar"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"}),(0,n.jsx)(e.mn,{children:"0.26"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mn,{children:"0.44"}),(0,n.jsx)(e.mi,{mathvariant:"normal",children:"\u2223"})]})})})]}),(0,n.jsxs)(e.mtr,{children:[(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsx)(e.mrow,{})})}),(0,n.jsx)(e.mtd,{children:(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"true",children:(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mrow,{}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mn,{children:"0.18"})]})})})]})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\begin{align*} \n\\text{TVD} \n&= \\text{Sum of negative differences} \\\\\n&= \\text{Adding up the excessive orange bar} \\\\\n&= |0.26-0.44| \\\\\n&= 0.18\n\\end{align*} "})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"6em",verticalAlign:"-2.75em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsxs)(e.span,{className:"mtable",children:[(0,n.jsx)(e.span,{className:"col-align-r",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"3.25em"},children:[(0,n.jsxs)(e.span,{style:{top:"-5.41em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord",children:"TVD"})})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.91em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord"})]}),(0,n.jsxs)(e.span,{style:{top:"-2.41em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord"})]}),(0,n.jsxs)(e.span,{style:{top:"-0.91em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord"})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"2.75em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"col-align-l",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"3.25em"},children:[(0,n.jsxs)(e.span,{style:{top:"-5.41em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord",children:"Sum\xa0of\xa0negative\xa0differences"})})]})]}),(0,n.jsxs)(e.span,{style:{top:"-3.91em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord",children:"Adding\xa0up\xa0the\xa0excessive\xa0orange\xa0bar"})})]})]}),(0,n.jsxs)(e.span,{style:{top:"-2.41em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord",children:"\u22230.26"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.44\u2223"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-0.91em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mord",children:"0.18"})]})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"2.75em"},children:(0,n.jsx)(e.span,{})})})]})})]})})]})})]})}),(0,n.jsx)(e.p,{children:"In this example, sum of negative differences is the fastest way to compute TVD, but it is not always optimal. Any of the three methods can be the optimal choice depending on specific distributions."})]})]})]})}function x(s={}){const{wrapper:e}={...(0,l.R)(),...s.components};return e?(0,n.jsx)(e,{...s,children:(0,n.jsx)(d,{...s})}):d(s)}},8597:(s,e,a)=>{a.d(e,{A:()=>l});a(6540);var n=a(4848);const l=s=>{let{data:e}=s,a=[],l=[],t="",i=[];if(e){const s=JSON.parse(e);a=s.columns||[],l=s.data||[],t=s.indexName||"Index",i=s.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:t}),a.map(((s,e)=>(0,n.jsx)("th",{children:s},e)))]})}),(0,n.jsx)("tbody",{children:l.map(((s,e)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:i[e]}),s.map(((s,e)=>{return(0,n.jsx)("td",{children:(a=s,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},e);var a}))]},e)))})]})})}},5158:(s,e,a)=>{a.d(e,{A:()=>t});var n=a(6540),l=a(4848);const t=function(s){let{src:e,sourceLink:a,aspectRatio:t=16/9}=s;const[i,r]=(0,n.useState)(0),[c,m]=(0,n.useState)(0),h=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const s=()=>{if(h.current){const s=h.current.offsetWidth;m(s/t)}};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)}),[t]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:h,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,l.jsx)("iframe",{src:e,style:{width:"100%",height:`${c}px`,border:"0",allowFullScreen:!0}},i)}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,l.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,l.jsx)("button",{onClick:()=>{r((s=>s+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:s=>s.currentTarget.style.backgroundColor="#45a049",onMouseOut:s=>s.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},2913:(s,e,a)=>{a.d(e,{A:()=>n});const n=a.p+"assets/images/manually_computing_tvd-ac22c4c695883f26a27d27d5a352fe7a.png"},8453:(s,e,a)=>{a.d(e,{R:()=>i,x:()=>r});var n=a(6540);const l={},t=n.createContext(l);function i(s){const e=n.useContext(t);return n.useMemo((function(){return"function"==typeof s?s(e):{...e,...s}}),[e,s])}function r(s){let e;return e=s.disableParentContext?"function"==typeof s.components?s.components(l):s.components||l:i(s.components),n.createElement(t.Provider,{value:e},s.children)}}}]); \ No newline at end of file diff --git a/assets/js/61546123.aa0b9096.js b/assets/js/61546123.aa0b9096.js deleted file mode 100644 index e0e0f3aa..00000000 --- a/assets/js/61546123.aa0b9096.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6137],{3627:(s,e,a)=>{a.r(e),a.d(e,{assets:()=>m,contentTitle:()=>i,default:()=>d,frontMatter:()=>t,metadata:()=>r,toc:()=>c});var n=a(4848),l=a(8453);a(8597),a(5158);const t={sidebar_position:8,sidebar_label:"Standard Units, Correlation, Regression",title:"Standard Units, Correlation, Regression",tags:["standard units","correlation","regression"]},i=void 0,r={id:"statistical-inference/standard_units",title:"Standard Units, Correlation, Regression",description:"Concept",source:"@site/docs/statistical-inference/standard_units.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/standard_units",permalink:"/bpd-reference/docs/statistical-inference/standard_units",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/standard_units.md",tags:[{label:"standard units",permalink:"/bpd-reference/docs/tags/standard-units"},{label:"correlation",permalink:"/bpd-reference/docs/tags/correlation"},{label:"regression",permalink:"/bpd-reference/docs/tags/regression"}],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8,sidebar_label:"Standard Units, Correlation, Regression",title:"Standard Units, Correlation, Regression",tags:["standard units","correlation","regression"]},sidebar:"statsSidebar",previous:{title:"Permutation Test",permalink:"/bpd-reference/docs/statistical-inference/permutation_test"},next:{title:"The Standard Normal Distribution",permalink:"/bpd-reference/docs/statistical-inference/standard_normal_distribution"}},m={},c=[{value:"Concept",id:"concept",level:2},{value:"Formulas",id:"formulas",level:2},{value:"Standard Units",id:"standard-units",level:3},{value:"Regression Line",id:"regression-line",level:3},{value:"Converting to Original Units",id:"converting-to-original-units",level:3},{value:"Code Example",id:"code-example",level:2},{value:"Method 1: Using SD and Mean",id:"method-1-using-sd-and-mean",level:3},{value:"Method 2: Slope-intercept Form",id:"method-2-slope-intercept-form",level:3},{value:"Plot the regression line",id:"plot-the-regression-line",level:3},{value:"Residuals",id:"residuals",level:2},{value:"Patternless "cloud" example from Anscombe's quartet:",id:"patternless-cloud-example-from-anscombes-quartet",level:4}];function h(s){const e={admonition:"admonition",annotation:"annotation",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",hr:"hr",img:"img",li:"li",math:"math",mfrac:"mfrac",mi:"mi",mo:"mo",mrow:"mrow",mstyle:"mstyle",msub:"msub",mtext:"mtext",p:"p",pre:"pre",semantics:"semantics",span:"span",strong:"strong",ul:"ul",...(0,l.R)(),...s.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h2,{id:"concept",children:"Concept"}),"\n",(0,n.jsx)(e.admonition,{title:"Key Idea",type:"tip",children:(0,n.jsx)(e.p,{children:"We use regression to make predictions about the data (based on the correlation between two variables in standard units)."})}),"\n",(0,n.jsxs)(e.admonition,{title:"Terminology",type:"info",children:[(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Association:"})," Any relationship or link between two variables in a scatter plot."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Positive association: as one variable increases, the other tends to increase."}),"\n",(0,n.jsx)(e.li,{children:"Negative association: as one variable increases, the other tends to decrease."}),"\n"]}),(0,n.jsxs)(e.p,{children:[(0,n.jsxs)(e.strong,{children:["Correlation coefficient ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"r"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"r"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"})]})})]})]}),": The correlation coefficient, ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"r"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"r"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"})]})})]}),", of two variables ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"x"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})})]})," and ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"y"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"y"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})})]})," measures the strength of the linear association between them (how clustered points are around a straight line)."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"r"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"r"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"})]})})]})," is always between -1 and 1."]}),"\n"]})]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h2,{id:"formulas",children:"Formulas"}),"\n",(0,n.jsx)(e.h3,{id:"standard-units",children:"Standard Units"}),"\n",(0,n.jsx)(e.p,{children:"Standardize your units to compare two variables with different units (ex. height and weight)."}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"i"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"s"}),(0,n.jsx)(e.mi,{children:"u"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})]}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mstyle,{displaystyle:"true",scriptlevel:"0",children:(0,n.jsxs)(e.mfrac,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mi,{children:"i"})]}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"mean\xa0of\xa0"}),(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"false",children:(0,n.jsx)(e.mi,{children:"x"})})]})]}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"SD\xa0of\xa0"}),(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"false",children:(0,n.jsx)(e.mi,{children:"x"})})]})]})})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x_{i(su)}=\\dfrac{x_{i}-\\textnormal{mean of $x$}}{\\textnormal{SD of $x$}}"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.7858em",verticalAlign:"-0.3552em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3448em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.5198em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"u"}),(0,n.jsx)(e.span,{className:"mclose mtight",children:")"})]})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3552em"},children:(0,n.jsx)(e.span,{})})})]})})]}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.3714em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.314em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsxs)(e.span,{className:"mord text",children:[(0,n.jsx)(e.span,{className:"mord textrm",children:"SD\xa0of\xa0"}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.677em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3117em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"})})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(e.span,{})})})]})})]}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsxs)(e.span,{className:"mord text",children:[(0,n.jsx)(e.span,{className:"mord textrm",children:"mean\xa0of\xa0"}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})]})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.686em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]})]})]})]})}),"\n",(0,n.jsx)(e.admonition,{title:"variables",type:"note",children:(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mi,{children:"i"})]})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x_{i}"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3117em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"})})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})})]})})," = value (in original units) from column x."]}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"i"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"s"}),(0,n.jsx)(e.mi,{children:"u"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})]})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x_{i(su)}"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.7858em",verticalAlign:"-0.3552em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3448em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.5198em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"u"}),(0,n.jsx)(e.span,{className:"mclose mtight",children:")"})]})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3552em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})})]})})," = value of ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mi,{children:"i"})]})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x_{i}"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3117em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"})})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})})]})," converted to standard units."]}),"\n"]})}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:'def standard_units(col):\r\n """\r\n Standardizes the units of a column.\r\n """\r\n return (col - col.mean()) / np.std(col)\n'})}),"\n",(0,n.jsx)(e.h3,{id:"regression-line",children:"Regression Line"}),"\n",(0,n.jsxs)(e.p,{children:["A line used to make ",(0,n.jsx)(e.strong,{children:"predictions"})," about the value of y based on the correlation coefficient and the value of x."]}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Both variables are measured in standard units."}),"\n",(0,n.jsxs)(e.li,{children:["Always predicts that ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"y"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"y"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})})]})," will be closer to the average than ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"x"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})})]}),", the ",(0,n.jsx)(e.em,{children:"regression to the mean"})," effect."]}),"\n"]}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mtext,{children:"predicted\xa0y"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"i"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"s"}),(0,n.jsx)(e.mi,{children:"u"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})]}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mi,{children:"r"}),(0,n.jsx)(e.mo,{children:"\u22c5"}),(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"i"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"s"}),(0,n.jsx)(e.mi,{children:"u"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})]})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\textnormal{predicted y}_{i(su)} = r\\cdot x_{i(su)} "})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1.1136em",verticalAlign:"-0.4191em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"predicted\xa0y"})}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.2809em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.4559em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"u"}),(0,n.jsx)(e.span,{className:"mclose mtight",children:")"})]})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.4191em"},children:(0,n.jsx)(e.span,{})})})]})})]}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4445em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u22c5"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.7858em",verticalAlign:"-0.3552em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3448em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.5198em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"u"}),(0,n.jsx)(e.span,{className:"mclose mtight",children:")"})]})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3552em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})]})]})}),"\n",(0,n.jsx)(e.admonition,{title:"variables",type:"note",children:(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"i"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"s"}),(0,n.jsx)(e.mi,{children:"u"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})]})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x_{i(su)}"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.7858em",verticalAlign:"-0.3552em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3448em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.5198em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"u"}),(0,n.jsx)(e.span,{className:"mclose mtight",children:")"})]})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3552em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})})]})})," = value of ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mi,{children:"i"})]})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x_{i}"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3117em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"})})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})})]})," converted to standard units."]}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"r"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"r"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"})]})})]})})," = correlation coefficient, the strength of the linear association between ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"x"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})})]})," and ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"y"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"y"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})})]}),"."]}),"\n"]})}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:'def calculate_r(df, x, y):\r\n """\r\n Returns the average value of the product of x and y, \r\n when both are measured in standard units.\r\n """\r\n x_su = standard_units(df.get(x))\r\n y_su = standard_units(df.get(y))\r\n return (x_su * y_su).mean()\n'})}),"\n",(0,n.jsx)(e.h3,{id:"converting-to-original-units",children:"Converting to Original Units"}),"\n",(0,n.jsx)(e.p,{children:"Finding the slope and intercept of the regression line in original units."}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mstyle,{displaystyle:"true",scriptlevel:"0",children:(0,n.jsxs)(e.mfrac,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"predicted\xa0"}),(0,n.jsx)(e.mi,{children:"y"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mtext,{children:"mean\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"y"})]}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"SD\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"y"})]})]})}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mi,{children:"r"}),(0,n.jsx)(e.mo,{children:"\u22c5"}),(0,n.jsx)(e.mstyle,{displaystyle:"true",scriptlevel:"0",children:(0,n.jsxs)(e.mfrac,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mtext,{children:"mean\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"x"})]}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"SD\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"x"})]})]})})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\dfrac{\\textnormal{predicted } y - \\textnormal{mean of }y}{\\textnormal{SD of }y} = r \\cdot \\dfrac{x - \\textnormal{mean of } x}{\\textnormal{SD of }x}"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"2.2519em",verticalAlign:"-0.8804em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.3714em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.314em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"SD\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.677em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"predicted\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"mean\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.8804em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4445em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u22c5"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.3714em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.314em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"SD\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.677em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"mean\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.686em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]})]})]})]})}),"\n",(0,n.jsxs)(e.p,{children:["Re-arranged to the form ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"predicted\xa0"}),(0,n.jsx)(e.mi,{children:"y"}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mi,{children:"m"}),(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mi,{children:"b"})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\textnormal{predicted } y = mx + b"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"predicted\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6667em",verticalAlign:"-0.0833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"m"}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"+"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"b"})]})]})]})]}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsx)(e.p,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"m"}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mi,{children:"r"}),(0,n.jsx)(e.mo,{children:"\u22c5"}),(0,n.jsx)(e.mstyle,{displaystyle:"true",scriptlevel:"0",children:(0,n.jsxs)(e.mfrac,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"SD\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"y"})]}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"SD\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"x"})]})]})})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"m = r \\cdot \\dfrac{\\textnormal{SD of } y}{\\textnormal{SD of }x}"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"m"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4445em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u22c5"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.3714em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.314em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"SD\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.677em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"SD\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.686em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]})]})]})]})}),"\n"]}),"\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsx)(e.p,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"b"}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mtext,{children:"mean\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"y"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"m"}),(0,n.jsx)(e.mo,{children:"\u22c5"}),(0,n.jsx)(e.mtext,{children:"mean\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"b = \\textnormal{mean of } y - (m \\cdot \\textnormal{mean of } x)"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"b"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"mean\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.jsx)(e.span,{className:"mopen",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"m"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u22c5"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"mean\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"mclose",children:")"})]})]})]})}),"\n"]}),"\n"]}),"\n",(0,n.jsx)(e.admonition,{type:"note",children:(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"r"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"r"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"})]})})]}),", mean of x, mean of y, SD of x, and SD of y are constants."]}),"\n",(0,n.jsx)(e.li,{children:"if you have a DataFrame with two columns, you can determine all 5 values."}),"\n"]})}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:'def slope(df, x, y):\r\n """\r\n Returns the slope of the regression line between columns x and y in df (in original units).\r\n """\r\n r = calculate_r(df, x, y)\r\n return r * np.std(df.get(y)) / np.std(df.get(x))\r\n\r\ndef intercept(df, x, y):\r\n """\r\n Returns the intercept of the regression line between columns x and y in df (in original units).\r\n """\r\n return df.get(y).mean() - slope(df, x, y) * df.get(x).mean()\n'})}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h2,{id:"code-example",children:"Code Example"}),"\n",(0,n.jsxs)(e.p,{children:["Predicting pet weight using the regression line of the ",(0,n.jsx)("code",{children:"Age"})," and ",(0,n.jsx)("code",{children:"Weight"})," columns."]}),"\n",(0,n.jsx)(e.h3,{id:"method-1-using-sd-and-mean",children:"Method 1: Using SD and Mean"}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Convert"})," ",(0,n.jsx)("code",{children:"Age"})," ",(0,n.jsx)(e.strong,{children:"values into standard units, find SD and mean of"})," ",(0,n.jsx)("code",{children:"Weight"}),"."]}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"x_su = standard_units(full_pets.get('Age')) # series of floats ('Age' values in standard units)\r\ny_sd = np.std(full_pets.get('Weight'))\r\ny_mean = full_pets.get('Weight').mean()\r\n\r\nprint(\"SD of y:\", y_sd)\r\nprint(\"Mean of y:\", y_mean)\n"})}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Plug into"})," ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mtext,{children:"predicted\xa0y"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"i"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"s"}),(0,n.jsx)(e.mi,{children:"u"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})]}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mi,{children:"r"}),(0,n.jsx)(e.mo,{children:"\u22c5"}),(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"i"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"s"}),(0,n.jsx)(e.mi,{children:"u"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})]})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\textnormal{predicted y}_{i(su)} = r\\cdot x_{i(su)} "})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1.1136em",verticalAlign:"-0.4191em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"predicted\xa0y"})}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.2809em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.4559em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"u"}),(0,n.jsx)(e.span,{className:"mclose mtight",children:")"})]})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.4191em"},children:(0,n.jsx)(e.span,{})})})]})})]}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4445em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u22c5"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.7858em",verticalAlign:"-0.3552em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3448em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.5198em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"u"}),(0,n.jsx)(e.span,{className:"mclose mtight",children:")"})]})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3552em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})]})]})," ",(0,n.jsx)(e.strong,{children:"and convert to original units."})]}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"def predict_weight():\r\n # Predicts the weight of a pet that is 'age' years old.\r\n predicted_y_su = r * x_su\r\n return predicted_y_su * y_sd + y_mean\n"})}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"This function returns an array of predicted"})," ",(0,n.jsx)("code",{children:"Weight"})," ",(0,n.jsx)(e.strong,{children:"values."})]}),"\n",(0,n.jsx)(e.h3,{id:"method-2-slope-intercept-form",children:"Method 2: Slope-intercept Form"}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Calculate the correlation coefficient, slope, and intercept of the regression line."})}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"r = calculate_r(full_pets, 'Age', 'Weight')\r\nm = slope(full_pets, 'Age', 'Weight')\r\nb = intercept(full_pets, 'Age', 'Weight')\r\n\r\nprint(\"Correlation coefficient (r):\", np.round(r, 3))\r\nprint(\"Slope of regression line:\", np.round(m, 3))\r\nprint(\"Intercept of regression line:\", np.round(b, 3))\n"})}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Correlation coefficient (r): 0.134"})," ",(0,n.jsx)("br",{}),"\r\n",(0,n.jsx)(e.strong,{children:"Slope: 1.162"})," ",(0,n.jsx)("br",{}),"\r\n",(0,n.jsx)(e.strong,{children:"Intercept: 18.704"})]}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"def predict_weight2(age):\r\n # Predicts the weight of a pet that is 'age' years old.\r\n return m * age + b\n"})}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Apply function to"})," ",(0,n.jsx)("code",{children:"Age"})," ",(0,n.jsx)(e.strong,{children:"values for an array of predicted"})," ",(0,n.jsx)("code",{children:"Weight"})," ",(0,n.jsx)(e.strong,{children:"values:"})]}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"all_predictions = np.array([])\r\n\r\nfor age in full_pets.get('Age').values:\r\n all_predictions = np.append(all_predictions, predict_weight2(age))\n"})}),"\n",(0,n.jsx)(e.h3,{id:"plot-the-regression-line",children:"Plot the regression line"}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"plt.scatter(x=full_pets.get('Age'), y=full_pets.get('Weight'))\r\nplt.plot(full_pets.get('Age'), all_predictions, color='red')\r\n# or plt.plot(full_pets.get('Age'), predict_weight(), color='red')\n"})}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.img,{alt:"Regression",src:a(6813).A+"",width:"543",height:"413"})}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h2,{id:"residuals",children:"Residuals"}),"\n",(0,n.jsx)(e.admonition,{title:"Key Idea",type:"tip",children:(0,n.jsx)(e.p,{children:'If there is no pattern in a residual plot (patternless "cloud"), the regression line is a good linear fit.'})}),"\n",(0,n.jsxs)(e.admonition,{title:"Terminology",type:"info",children:[(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Errors:"})," Difference between the actual and predicted values."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"error"}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mtext,{children:"actual\xa0"}),(0,n.jsx)(e.mi,{children:"y"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mtext,{children:"predicted\xa0"}),(0,n.jsx)(e.mi,{children:"y"})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\textnormal{error} = \\textnormal{actual } y - \\textnormal{predicted } y"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"error"})}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"actual\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"predicted\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})]})]})}),"\n",(0,n.jsx)(e.li,{children:"Any set of predictions have errors."}),"\n"]}),(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Residuals"}),": Errors when using a regression line."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"residual"}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mtext,{children:"actual\xa0"}),(0,n.jsx)(e.mi,{children:"y"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mtext,{children:"predicted\xa0"}),(0,n.jsx)(e.mi,{children:"y"}),(0,n.jsx)(e.mtext,{children:"\xa0by\xa0regression\xa0line"})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\textnormal{residual} = \\textnormal{actual } y - \\textnormal{predicted } y \\textnormal{ by regression line}"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6944em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"residual"})}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"actual\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"predicted\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"\xa0by\xa0regression\xa0line"})})]})]})]})}),"\n",(0,n.jsxs)(e.li,{children:["There is one residual corresponding to each data point ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mo,{separator:"true",children:","}),(0,n.jsx)(e.mi,{children:"y"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"(x, y)"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.jsx)(e.span,{className:"mopen",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"mpunct",children:","}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(e.span,{className:"mclose",children:")"})]})})]})," in the dataset."]}),"\n"]}),(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Residual plots"}),": The scatter plot with the ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"x"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})})]})," variable on the ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"x"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})})]}),"-axis and residuals on the ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"y"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"y"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})})]}),"-axis."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Residual plots describe how the error in the regression line's predictions varies."}),"\n",(0,n.jsxs)(e.li,{children:["The correlation ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"r"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"r"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"})]})})]})," does not tell the full story."]}),"\n"]})]}),"\n",(0,n.jsx)(e.h4,{id:"patternless-cloud-example-from-anscombes-quartet",children:'Patternless "cloud" example from Anscombe\'s quartet:'}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.img,{alt:"Residuals",src:a(5108).A+"",width:"1846",height:"1270"})})]})}function d(s={}){const{wrapper:e}={...(0,l.R)(),...s.components};return e?(0,n.jsx)(e,{...s,children:(0,n.jsx)(h,{...s})}):h(s)}},8597:(s,e,a)=>{a.d(e,{A:()=>l});a(6540);var n=a(4848);const l=s=>{let{data:e}=s,a=[],l=[],t="",i=[];if(e){const s=JSON.parse(e);a=s.columns||[],l=s.data||[],t=s.indexName||"Index",i=s.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:t}),a.map(((s,e)=>(0,n.jsx)("th",{children:s},e)))]})}),(0,n.jsx)("tbody",{children:l.map(((s,e)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:i[e]}),s.map(((s,e)=>{return(0,n.jsx)("td",{children:(a=s,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},e);var a}))]},e)))})]})})}},5158:(s,e,a)=>{a.d(e,{A:()=>t});var n=a(6540),l=a(4848);const t=function(s){let{src:e,sourceLink:a,aspectRatio:t=16/9}=s;const[i,r]=(0,n.useState)(0),[m,c]=(0,n.useState)(0),h=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const s=()=>{if(h.current){const s=h.current.offsetWidth;c(s/t)}};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)}),[t]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:h,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,l.jsx)("iframe",{src:e,style:{width:"100%",height:`${m}px`,border:"0",allowFullScreen:!0}},i)}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,l.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,l.jsx)("button",{onClick:()=>{r((s=>s+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:s=>s.currentTarget.style.backgroundColor="#45a049",onMouseOut:s=>s.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},6813:(s,e,a)=>{a.d(e,{A:()=>n});const n=a.p+"assets/images/regression-f2c9ac9d266b059a611e8fa20d7c625d.png"},5108:(s,e,a)=>{a.d(e,{A:()=>n});const n=a.p+"assets/images/residuals-45c02beded9e59cb841adc27c3d9a2f5.png"},8453:(s,e,a)=>{a.d(e,{R:()=>i,x:()=>r});var n=a(6540);const l={},t=n.createContext(l);function i(s){const e=n.useContext(t);return n.useMemo((function(){return"function"==typeof s?s(e):{...e,...s}}),[e,s])}function r(s){let e;return e=s.disableParentContext?"function"==typeof s.components?s.components(l):s.components||l:i(s.components),n.createElement(t.Provider,{value:e},s.children)}}}]); \ No newline at end of file diff --git a/assets/js/61546123.cc7aeccc.js b/assets/js/61546123.cc7aeccc.js new file mode 100644 index 00000000..3966352c --- /dev/null +++ b/assets/js/61546123.cc7aeccc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6137],{3627:(s,e,a)=>{a.r(e),a.d(e,{assets:()=>m,contentTitle:()=>i,default:()=>d,frontMatter:()=>t,metadata:()=>r,toc:()=>c});var n=a(4848),l=a(8453);a(8597),a(5158);const t={sidebar_position:8,sidebar_label:"Standard Units, Correlation, Regression",title:"Standard Units, Correlation, Regression",tags:["standard units","correlation","regression"]},i=void 0,r={id:"statistical-inference/standard_units",title:"Standard Units, Correlation, Regression",description:"Concept",source:"@site/docs/statistical-inference/standard_units.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/standard_units",permalink:"/bpd-reference/docs/statistical-inference/standard_units",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/standard_units.md",tags:[{label:"standard units",permalink:"/bpd-reference/docs/tags/standard-units"},{label:"correlation",permalink:"/bpd-reference/docs/tags/correlation"},{label:"regression",permalink:"/bpd-reference/docs/tags/regression"}],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8,sidebar_label:"Standard Units, Correlation, Regression",title:"Standard Units, Correlation, Regression",tags:["standard units","correlation","regression"]},sidebar:"statsSidebar",previous:{title:"Permutation Test",permalink:"/bpd-reference/docs/statistical-inference/permutation_test"},next:{title:"The Standard Normal Distribution",permalink:"/bpd-reference/docs/statistical-inference/standard_normal_distribution"}},m={},c=[{value:"Concept",id:"concept",level:2},{value:"Formulas",id:"formulas",level:2},{value:"Standard Units",id:"standard-units",level:3},{value:"Regression Line",id:"regression-line",level:3},{value:"Converting to Original Units",id:"converting-to-original-units",level:3},{value:"Code Example",id:"code-example",level:2},{value:"Method 1: Using SD and Mean",id:"method-1-using-sd-and-mean",level:3},{value:"Method 2: Slope-intercept Form",id:"method-2-slope-intercept-form",level:3},{value:"Plot the regression line",id:"plot-the-regression-line",level:3},{value:"Residuals",id:"residuals",level:2},{value:"Patternless "cloud" example from Anscombe's quartet:",id:"patternless-cloud-example-from-anscombes-quartet",level:4}];function h(s){const e={admonition:"admonition",annotation:"annotation",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",hr:"hr",img:"img",li:"li",math:"math",mfrac:"mfrac",mi:"mi",mo:"mo",mrow:"mrow",mstyle:"mstyle",msub:"msub",mtext:"mtext",p:"p",pre:"pre",semantics:"semantics",span:"span",strong:"strong",ul:"ul",...(0,l.R)(),...s.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h2,{id:"concept",children:"Concept"}),"\n",(0,n.jsx)(e.admonition,{title:"Key Idea",type:"tip",children:(0,n.jsx)(e.p,{children:"We use regression to make predictions about the data (based on the correlation between two variables in standard units)."})}),"\n",(0,n.jsxs)(e.admonition,{title:"Terminology",type:"info",children:[(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Association:"})," Any relationship or link between two variables in a scatter plot."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Positive association: as one variable increases, the other tends to increase."}),"\n",(0,n.jsx)(e.li,{children:"Negative association: as one variable increases, the other tends to decrease."}),"\n"]}),(0,n.jsxs)(e.p,{children:[(0,n.jsxs)(e.strong,{children:["Correlation coefficient ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"r"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"r"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"})]})})]})]}),": The correlation coefficient, ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"r"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"r"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"})]})})]}),", of two variables ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"x"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})})]})," and ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"y"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"y"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})})]})," measures the strength of the linear association between them (how clustered points are around a straight line)."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"r"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"r"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"})]})})]})," is always between -1 and 1."]}),"\n"]})]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h2,{id:"formulas",children:"Formulas"}),"\n",(0,n.jsx)(e.h3,{id:"standard-units",children:"Standard Units"}),"\n",(0,n.jsx)(e.p,{children:"Standardize your units to compare two variables with different units (ex. height and weight)."}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"i"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"s"}),(0,n.jsx)(e.mi,{children:"u"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})]}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mstyle,{displaystyle:"true",scriptlevel:"0",children:(0,n.jsxs)(e.mfrac,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mi,{children:"i"})]}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"mean\xa0of\xa0"}),(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"false",children:(0,n.jsx)(e.mi,{children:"x"})})]})]}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"SD\xa0of\xa0"}),(0,n.jsx)(e.mstyle,{scriptlevel:"0",displaystyle:"false",children:(0,n.jsx)(e.mi,{children:"x"})})]})]})})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x_{i(su)}=\\dfrac{x_{i}-\\textnormal{mean of $x$}}{\\textnormal{SD of $x$}}"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.7858em",verticalAlign:"-0.3552em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3448em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.5198em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"u"}),(0,n.jsx)(e.span,{className:"mclose mtight",children:")"})]})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3552em"},children:(0,n.jsx)(e.span,{})})})]})})]}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.3714em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.314em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"mord",children:(0,n.jsxs)(e.span,{className:"mord text",children:[(0,n.jsx)(e.span,{className:"mord textrm",children:"SD\xa0of\xa0"}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.677em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3117em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"})})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(e.span,{})})})]})})]}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsxs)(e.span,{className:"mord text",children:[(0,n.jsx)(e.span,{className:"mord textrm",children:"mean\xa0of\xa0"}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})]})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.686em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]})]})]})]})}),"\n",(0,n.jsx)(e.admonition,{title:"variables",type:"note",children:(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mi,{children:"i"})]})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x_{i}"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3117em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"})})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})})]})})," = value (in original units) from column x."]}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"i"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"s"}),(0,n.jsx)(e.mi,{children:"u"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})]})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x_{i(su)}"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.7858em",verticalAlign:"-0.3552em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3448em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.5198em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"u"}),(0,n.jsx)(e.span,{className:"mclose mtight",children:")"})]})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3552em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})})]})})," = value of ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mi,{children:"i"})]})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x_{i}"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3117em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"})})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})})]})," converted to standard units."]}),"\n"]})}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:'def standard_units(col):\n """\n Standardizes the units of a column.\n """\n return (col - col.mean()) / np.std(col)\n'})}),"\n",(0,n.jsx)(e.h3,{id:"regression-line",children:"Regression Line"}),"\n",(0,n.jsxs)(e.p,{children:["A line used to make ",(0,n.jsx)(e.strong,{children:"predictions"})," about the value of y based on the correlation coefficient and the value of x."]}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Both variables are measured in standard units."}),"\n",(0,n.jsxs)(e.li,{children:["Always predicts that ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"y"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"y"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})})]})," will be closer to the average than ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"x"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})})]}),", the ",(0,n.jsx)(e.em,{children:"regression to the mean"})," effect."]}),"\n"]}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mtext,{children:"predicted\xa0y"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"i"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"s"}),(0,n.jsx)(e.mi,{children:"u"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})]}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mi,{children:"r"}),(0,n.jsx)(e.mo,{children:"\u22c5"}),(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"i"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"s"}),(0,n.jsx)(e.mi,{children:"u"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})]})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\textnormal{predicted y}_{i(su)} = r\\cdot x_{i(su)} "})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1.1136em",verticalAlign:"-0.4191em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"predicted\xa0y"})}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.2809em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.4559em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"u"}),(0,n.jsx)(e.span,{className:"mclose mtight",children:")"})]})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.4191em"},children:(0,n.jsx)(e.span,{})})})]})})]}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4445em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u22c5"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.7858em",verticalAlign:"-0.3552em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3448em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.5198em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"u"}),(0,n.jsx)(e.span,{className:"mclose mtight",children:")"})]})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3552em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})]})]})}),"\n",(0,n.jsx)(e.admonition,{title:"variables",type:"note",children:(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"i"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"s"}),(0,n.jsx)(e.mi,{children:"u"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})]})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x_{i(su)}"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.7858em",verticalAlign:"-0.3552em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3448em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.5198em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"u"}),(0,n.jsx)(e.span,{className:"mclose mtight",children:")"})]})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3552em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})})]})})," = value of ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mi,{children:"i"})]})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x_{i}"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3117em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"})})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})})]})," converted to standard units."]}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"r"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"r"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"})]})})]})})," = correlation coefficient, the strength of the linear association between ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"x"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})})]})," and ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"y"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"y"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})})]}),"."]}),"\n"]})}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:'def calculate_r(df, x, y):\n """\n Returns the average value of the product of x and y, \n when both are measured in standard units.\n """\n x_su = standard_units(df.get(x))\n y_su = standard_units(df.get(y))\n return (x_su * y_su).mean()\n'})}),"\n",(0,n.jsx)(e.h3,{id:"converting-to-original-units",children:"Converting to Original Units"}),"\n",(0,n.jsx)(e.p,{children:"Finding the slope and intercept of the regression line in original units."}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mstyle,{displaystyle:"true",scriptlevel:"0",children:(0,n.jsxs)(e.mfrac,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"predicted\xa0"}),(0,n.jsx)(e.mi,{children:"y"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mtext,{children:"mean\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"y"})]}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"SD\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"y"})]})]})}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mi,{children:"r"}),(0,n.jsx)(e.mo,{children:"\u22c5"}),(0,n.jsx)(e.mstyle,{displaystyle:"true",scriptlevel:"0",children:(0,n.jsxs)(e.mfrac,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mtext,{children:"mean\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"x"})]}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"SD\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"x"})]})]})})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\dfrac{\\textnormal{predicted } y - \\textnormal{mean of }y}{\\textnormal{SD of }y} = r \\cdot \\dfrac{x - \\textnormal{mean of } x}{\\textnormal{SD of }x}"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"2.2519em",verticalAlign:"-0.8804em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.3714em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.314em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"SD\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.677em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"predicted\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"mean\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.8804em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4445em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u22c5"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.3714em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.314em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"SD\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.677em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"mean\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.686em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]})]})]})]})}),"\n",(0,n.jsxs)(e.p,{children:["Re-arranged to the form ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"predicted\xa0"}),(0,n.jsx)(e.mi,{children:"y"}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mi,{children:"m"}),(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mi,{children:"b"})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\textnormal{predicted } y = mx + b"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"predicted\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6667em",verticalAlign:"-0.0833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"m"}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"+"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"b"})]})]})]})]}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsx)(e.p,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"m"}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mi,{children:"r"}),(0,n.jsx)(e.mo,{children:"\u22c5"}),(0,n.jsx)(e.mstyle,{displaystyle:"true",scriptlevel:"0",children:(0,n.jsxs)(e.mfrac,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"SD\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"y"})]}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"SD\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"x"})]})]})})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"m = r \\cdot \\dfrac{\\textnormal{SD of } y}{\\textnormal{SD of }x}"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"m"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4445em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u22c5"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.3714em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.314em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"SD\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.677em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"SD\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.686em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]})]})]})]})}),"\n"]}),"\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsx)(e.p,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"b"}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mtext,{children:"mean\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"y"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"m"}),(0,n.jsx)(e.mo,{children:"\u22c5"}),(0,n.jsx)(e.mtext,{children:"mean\xa0of\xa0"}),(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"b = \\textnormal{mean of } y - (m \\cdot \\textnormal{mean of } x)"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"b"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"mean\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.jsx)(e.span,{className:"mopen",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"m"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u22c5"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"mean\xa0of\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"mclose",children:")"})]})]})]})}),"\n"]}),"\n"]}),"\n",(0,n.jsx)(e.admonition,{type:"note",children:(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"r"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"r"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"})]})})]}),", mean of x, mean of y, SD of x, and SD of y are constants."]}),"\n",(0,n.jsx)(e.li,{children:"if you have a DataFrame with two columns, you can determine all 5 values."}),"\n"]})}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:'def slope(df, x, y):\n """\n Returns the slope of the regression line between columns x and y in df (in original units).\n """\n r = calculate_r(df, x, y)\n return r * np.std(df.get(y)) / np.std(df.get(x))\n\ndef intercept(df, x, y):\n """\n Returns the intercept of the regression line between columns x and y in df (in original units).\n """\n return df.get(y).mean() - slope(df, x, y) * df.get(x).mean()\n'})}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h2,{id:"code-example",children:"Code Example"}),"\n",(0,n.jsxs)(e.p,{children:["Predicting pet weight using the regression line of the ",(0,n.jsx)("code",{children:"Age"})," and ",(0,n.jsx)("code",{children:"Weight"})," columns."]}),"\n",(0,n.jsx)(e.h3,{id:"method-1-using-sd-and-mean",children:"Method 1: Using SD and Mean"}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Convert"})," ",(0,n.jsx)("code",{children:"Age"})," ",(0,n.jsx)(e.strong,{children:"values into standard units, find SD and mean of"})," ",(0,n.jsx)("code",{children:"Weight"}),"."]}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"x_su = standard_units(full_pets.get('Age')) # series of floats ('Age' values in standard units)\ny_sd = np.std(full_pets.get('Weight'))\ny_mean = full_pets.get('Weight').mean()\n\nprint(\"SD of y:\", y_sd)\nprint(\"Mean of y:\", y_mean)\n"})}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Plug into"})," ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mtext,{children:"predicted\xa0y"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"i"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"s"}),(0,n.jsx)(e.mi,{children:"u"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})]}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mi,{children:"r"}),(0,n.jsx)(e.mo,{children:"\u22c5"}),(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"i"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"s"}),(0,n.jsx)(e.mi,{children:"u"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]})]})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\textnormal{predicted y}_{i(su)} = r\\cdot x_{i(su)} "})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1.1136em",verticalAlign:"-0.4191em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"predicted\xa0y"})}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.2809em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.4559em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"u"}),(0,n.jsx)(e.span,{className:"mclose mtight",children:")"})]})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.4191em"},children:(0,n.jsx)(e.span,{})})})]})})]}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4445em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u22c5"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.7858em",verticalAlign:"-0.3552em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3448em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.5198em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"s"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"u"}),(0,n.jsx)(e.span,{className:"mclose mtight",children:")"})]})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3552em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})]})]})," ",(0,n.jsx)(e.strong,{children:"and convert to original units."})]}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"def predict_weight():\n # Predicts the weight of a pet that is 'age' years old.\n predicted_y_su = r * x_su\n return predicted_y_su * y_sd + y_mean\n"})}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"This function returns an array of predicted"})," ",(0,n.jsx)("code",{children:"Weight"})," ",(0,n.jsx)(e.strong,{children:"values."})]}),"\n",(0,n.jsx)(e.h3,{id:"method-2-slope-intercept-form",children:"Method 2: Slope-intercept Form"}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Calculate the correlation coefficient, slope, and intercept of the regression line."})}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"r = calculate_r(full_pets, 'Age', 'Weight')\nm = slope(full_pets, 'Age', 'Weight')\nb = intercept(full_pets, 'Age', 'Weight')\n\nprint(\"Correlation coefficient (r):\", np.round(r, 3))\nprint(\"Slope of regression line:\", np.round(m, 3))\nprint(\"Intercept of regression line:\", np.round(b, 3))\n"})}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Correlation coefficient (r): 0.134"})," ",(0,n.jsx)("br",{}),"\n",(0,n.jsx)(e.strong,{children:"Slope: 1.162"})," ",(0,n.jsx)("br",{}),"\n",(0,n.jsx)(e.strong,{children:"Intercept: 18.704"})]}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"def predict_weight2(age):\n # Predicts the weight of a pet that is 'age' years old.\n return m * age + b\n"})}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Apply function to"})," ",(0,n.jsx)("code",{children:"Age"})," ",(0,n.jsx)(e.strong,{children:"values for an array of predicted"})," ",(0,n.jsx)("code",{children:"Weight"})," ",(0,n.jsx)(e.strong,{children:"values:"})]}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"all_predictions = np.array([])\n\nfor age in full_pets.get('Age').values:\n all_predictions = np.append(all_predictions, predict_weight2(age))\n"})}),"\n",(0,n.jsx)(e.h3,{id:"plot-the-regression-line",children:"Plot the regression line"}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"plt.scatter(x=full_pets.get('Age'), y=full_pets.get('Weight'))\nplt.plot(full_pets.get('Age'), all_predictions, color='red')\n# or plt.plot(full_pets.get('Age'), predict_weight(), color='red')\n"})}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.img,{alt:"Regression",src:a(5989).A+"",width:"543",height:"413"})}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h2,{id:"residuals",children:"Residuals"}),"\n",(0,n.jsx)(e.admonition,{title:"Key Idea",type:"tip",children:(0,n.jsx)(e.p,{children:'If there is no pattern in a residual plot (patternless "cloud"), the regression line is a good linear fit.'})}),"\n",(0,n.jsxs)(e.admonition,{title:"Terminology",type:"info",children:[(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Errors:"})," Difference between the actual and predicted values."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"error"}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mtext,{children:"actual\xa0"}),(0,n.jsx)(e.mi,{children:"y"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mtext,{children:"predicted\xa0"}),(0,n.jsx)(e.mi,{children:"y"})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\textnormal{error} = \\textnormal{actual } y - \\textnormal{predicted } y"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"error"})}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"actual\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"predicted\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})]})]})}),"\n",(0,n.jsx)(e.li,{children:"Any set of predictions have errors."}),"\n"]}),(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Residuals"}),": Errors when using a regression line."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mtext,{children:"residual"}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.mtext,{children:"actual\xa0"}),(0,n.jsx)(e.mi,{children:"y"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mtext,{children:"predicted\xa0"}),(0,n.jsx)(e.mi,{children:"y"}),(0,n.jsx)(e.mtext,{children:"\xa0by\xa0regression\xa0line"})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"\\textnormal{residual} = \\textnormal{actual } y - \\textnormal{predicted } y \\textnormal{ by regression line}"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6944em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"residual"})}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"actual\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"predicted\xa0"})}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(e.span,{className:"mord text",children:(0,n.jsx)(e.span,{className:"mord textrm",children:"\xa0by\xa0regression\xa0line"})})]})]})]})}),"\n",(0,n.jsxs)(e.li,{children:["There is one residual corresponding to each data point ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mo,{separator:"true",children:","}),(0,n.jsx)(e.mi,{children:"y"}),(0,n.jsx)(e.mo,{stretchy:"false",children:")"})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"(x, y)"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.jsx)(e.span,{className:"mopen",children:"("}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"mpunct",children:","}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"}),(0,n.jsx)(e.span,{className:"mclose",children:")"})]})})]})," in the dataset."]}),"\n"]}),(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Residual plots"}),": The scatter plot with the ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"x"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})})]})," variable on the ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"x"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"})]})})]}),"-axis and residuals on the ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"y"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"y"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.03588em"},children:"y"})]})})]}),"-axis."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Residual plots describe how the error in the regression line's predictions varies."}),"\n",(0,n.jsxs)(e.li,{children:["The correlation ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsx)(e.mi,{children:"r"})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"r"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.4306em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"r"})]})})]})," does not tell the full story."]}),"\n"]})]}),"\n",(0,n.jsx)(e.h4,{id:"patternless-cloud-example-from-anscombes-quartet",children:'Patternless "cloud" example from Anscombe\'s quartet:'}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.img,{alt:"Residuals",src:a(5180).A+"",width:"1846",height:"1270"})})]})}function d(s={}){const{wrapper:e}={...(0,l.R)(),...s.components};return e?(0,n.jsx)(e,{...s,children:(0,n.jsx)(h,{...s})}):h(s)}},8597:(s,e,a)=>{a.d(e,{A:()=>l});a(6540);var n=a(4848);const l=s=>{let{data:e}=s,a=[],l=[],t="",i=[];if(e){const s=JSON.parse(e);a=s.columns||[],l=s.data||[],t=s.indexName||"Index",i=s.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:t}),a.map(((s,e)=>(0,n.jsx)("th",{children:s},e)))]})}),(0,n.jsx)("tbody",{children:l.map(((s,e)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:i[e]}),s.map(((s,e)=>{return(0,n.jsx)("td",{children:(a=s,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},e);var a}))]},e)))})]})})}},5158:(s,e,a)=>{a.d(e,{A:()=>t});var n=a(6540),l=a(4848);const t=function(s){let{src:e,sourceLink:a,aspectRatio:t=16/9}=s;const[i,r]=(0,n.useState)(0),[m,c]=(0,n.useState)(0),h=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const s=()=>{if(h.current){const s=h.current.offsetWidth;c(s/t)}};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)}),[t]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:h,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,l.jsx)("iframe",{src:e,style:{width:"100%",height:`${m}px`,border:"0",allowFullScreen:!0}},i)}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,l.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,l.jsx)("button",{onClick:()=>{r((s=>s+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:s=>s.currentTarget.style.backgroundColor="#45a049",onMouseOut:s=>s.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},5989:(s,e,a)=>{a.d(e,{A:()=>n});const n=a.p+"assets/images/regression-f2c9ac9d266b059a611e8fa20d7c625d.png"},5180:(s,e,a)=>{a.d(e,{A:()=>n});const n=a.p+"assets/images/residuals-45c02beded9e59cb841adc27c3d9a2f5.png"},8453:(s,e,a)=>{a.d(e,{R:()=>i,x:()=>r});var n=a(6540);const l={},t=n.createContext(l);function i(s){const e=n.useContext(t);return n.useMemo((function(){return"function"==typeof s?s(e):{...e,...s}}),[e,s])}function r(s){let e;return e=s.disableParentContext?"function"==typeof s.components?s.components(l):s.components||l:i(s.components),n.createElement(t.Provider,{value:e},s.children)}}}]); \ No newline at end of file diff --git a/assets/js/62efbc4a.00648062.js b/assets/js/62efbc4a.00648062.js new file mode 100644 index 00000000..0e0a2965 --- /dev/null +++ b/assets/js/62efbc4a.00648062.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4594],{7442:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>d,toc:()=>l});var r=t(4848),n=t(8453),a=(t(8597),t(8205));const o={sidebar_position:13},i=void 0,d={id:"documentation/series-methods/ser.str.title()",title:"ser.str.title()",description:"ser.str.title()",source:"@site/docs/documentation/series-methods/ser.str.title().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.title()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.title()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.title().md",tags:[],version:"current",sidebarPosition:13,frontMatter:{sidebar_position:13},sidebar:"docsSidebar",previous:{title:"ser.str.capitalize()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()"},next:{title:"ser.str.replace()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.replace()"}},c={},l=[];function m(e){const s={code:"code",hr:"hr",pre:"pre",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.str.title()"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Converts strings in the Series to titlecase. Every beginning character to a string of letters will be uppercased."})}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"Returns a Series with each element titlecased."}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"Series"})]})]}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\ncomment_ser\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser.str.title()\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There Are No Bad Dogs, Only Bad Owners.","My Best Birthday Present Ever!!!","****All You Need Is Love And A Cat.****","Love Is A Wet Nose And A Wagging Tail.","Be The Person Your Dog Thinks You Are.","No, Thank You!","No, Thank You!","No, Thank You!"]}'})]})}function h(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>n});t(6540);var r=t(4848);const n=e=>{let{data:s}=e,t=[],n=[],a="",o=[];if(s){const e=JSON.parse(s);t=e.columns||[],n=e.data||[],a=e.indexName||"Index",o=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:a}),t.map(((e,s)=>(0,r.jsx)("th",{children:e},s)))]})}),(0,r.jsx)("tbody",{children:n.map(((e,s)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:o[s]}),e.map(((e,s)=>{return(0,r.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>n});t(6540);var r=t(4848);const n=e=>{let{data:s}=e,t=[],n=[],a="",o="";if(s)try{const e=JSON.parse(s);a=e.name||"",o=e.dtype||"Unknown type",t=e.index||[],n=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const i=n.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:i.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:t[s]}),(0,r.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",o]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>o,x:()=>i});var r=t(6540);const n={},a=r.createContext(n);function o(e){const s=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:o(e.components),r.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/62efbc4a.b6392b54.js b/assets/js/62efbc4a.b6392b54.js deleted file mode 100644 index a8ec8dfd..00000000 --- a/assets/js/62efbc4a.b6392b54.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4594],{7442:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>d,toc:()=>l});var r=t(4848),n=t(8453),a=(t(8597),t(8205));const o={sidebar_position:13},i=void 0,d={id:"documentation/series-methods/ser.str.title()",title:"ser.str.title()",description:"ser.str.title()",source:"@site/docs/documentation/series-methods/ser.str.title().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.title()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.title()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.title().md",tags:[],version:"current",sidebarPosition:13,frontMatter:{sidebar_position:13},sidebar:"docsSidebar",previous:{title:"ser.str.capitalize()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()"},next:{title:"ser.str.replace()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.replace()"}},c={},l=[];function m(e){const s={code:"code",hr:"hr",pre:"pre",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.str.title()"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Converts strings in the Series to titlecase. Every beginning character to a string of letters will be uppercased."})}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"Returns a Series with each element titlecased."}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"Series"})]})]}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\r\ncomment_ser\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser.str.title()\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There Are No Bad Dogs, Only Bad Owners.","My Best Birthday Present Ever!!!","****All You Need Is Love And A Cat.****","Love Is A Wet Nose And A Wagging Tail.","Be The Person Your Dog Thinks You Are.","No, Thank You!","No, Thank You!","No, Thank You!"]}'})]})}function h(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>n});t(6540);var r=t(4848);const n=e=>{let{data:s}=e,t=[],n=[],a="",o=[];if(s){const e=JSON.parse(s);t=e.columns||[],n=e.data||[],a=e.indexName||"Index",o=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:a}),t.map(((e,s)=>(0,r.jsx)("th",{children:e},s)))]})}),(0,r.jsx)("tbody",{children:n.map(((e,s)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:o[s]}),e.map(((e,s)=>{return(0,r.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>n});t(6540);var r=t(4848);const n=e=>{let{data:s}=e,t=[],n=[],a="",o="";if(s)try{const e=JSON.parse(s);a=e.name||"",o=e.dtype||"Unknown type",t=e.index||[],n=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const i=n.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:i.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:t[s]}),(0,r.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",o]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>o,x:()=>i});var r=t(6540);const n={},a=r.createContext(n);function o(e){const s=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:o(e.components),r.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/655190df.23a73ffd.js b/assets/js/655190df.23a73ffd.js new file mode 100644 index 00000000..2dbb670f --- /dev/null +++ b/assets/js/655190df.23a73ffd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4567],{5364:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>c,toc:()=>l});var n=t(4848),r=t(8453),a=(t(8597),t(8205));const i={sidebar_position:2},o=void 0,c={id:"documentation/series-methods/ser.max()",title:"ser.max()",description:"ser.max()",source:"@site/docs/documentation/series-methods/ser.max().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.max()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.max()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.max().md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"docsSidebar",previous:{title:"ser.count()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.count()"},next:{title:"ser.min()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.min()"}},d={},l=[];function m(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"ser.max()"}),"\n",(0,n.jsx)("div",{className:"base",children:(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Returns the maximum of the values in the Series."})})}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"weight_ser.max()\n"})}),"\n",(0,n.jsx)(s.p,{children:"80.0"})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(m,{...e})}):m(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],a="",i=[];if(s){const e=JSON.parse(s);t=e.columns||[],r=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:a}),t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:r.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:i[s]}),e.map(((e,s)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],a="",i="";if(s)try{const e=JSON.parse(s);a=e.name||"",i=e.dtype||"Unknown type",t=e.index||[],r=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=r.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:t[s]}),(0,n.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>i,x:()=>o});var n=t(6540);const r={},a=n.createContext(r);function i(e){const s=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),n.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/655190df.cff71572.js b/assets/js/655190df.cff71572.js deleted file mode 100644 index 063bf93e..00000000 --- a/assets/js/655190df.cff71572.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4567],{5364:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>c,toc:()=>l});var n=t(4848),r=t(8453),a=(t(8597),t(8205));const i={sidebar_position:2},o=void 0,c={id:"documentation/series-methods/ser.max()",title:"ser.max()",description:"ser.max()",source:"@site/docs/documentation/series-methods/ser.max().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.max()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.max()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.max().md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"docsSidebar",previous:{title:"ser.count()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.count()"},next:{title:"ser.min()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.min()"}},d={},l=[];function m(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"ser.max()"}),"\n",(0,n.jsx)("div",{className:"base",children:(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Returns the maximum of the values in the Series."})})}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"weight_ser.max()\n"})}),"\n",(0,n.jsx)(s.p,{children:"80.0"})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(m,{...e})}):m(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],a="",i=[];if(s){const e=JSON.parse(s);t=e.columns||[],r=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:a}),t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:r.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:i[s]}),e.map(((e,s)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],a="",i="";if(s)try{const e=JSON.parse(s);a=e.name||"",i=e.dtype||"Unknown type",t=e.index||[],r=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=r.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:t[s]}),(0,n.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>i,x:()=>o});var n=t(6540);const r={},a=n.createContext(r);function i(e){const s=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),n.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/65beeb93.0cea168a.js b/assets/js/65beeb93.1715e24a.js similarity index 97% rename from assets/js/65beeb93.0cea168a.js rename to assets/js/65beeb93.1715e24a.js index 653424e9..5227f681 100644 --- a/assets/js/65beeb93.0cea168a.js +++ b/assets/js/65beeb93.1715e24a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2334],{7190:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>n,metadata:()=>i,toc:()=>o});var a=s(4848),r=s(8453);s(8597),s(8205);const n={sidebar_position:2},c=void 0,i={id:"documentation/plotting/Scatter Plot",title:"Scatter Plot",description:"df.plot(kind='scatter', x=datacol, y=datacol)",source:"@site/docs/documentation/plotting/Scatter Plot.md",sourceDirName:"documentation/plotting",slug:"/documentation/plotting/Scatter Plot",permalink:"/bpd-reference/docs/documentation/plotting/Scatter Plot",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/plotting/Scatter Plot.md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"docsSidebar",previous:{title:"Histogram",permalink:"/bpd-reference/docs/documentation/plotting/Histogram"},next:{title:"Bar Plot",permalink:"/bpd-reference/docs/documentation/plotting/Bar Plot"}},d={},o=[];function l(e){const t={a:"a",code:"code",hr:"hr",img:"img",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df.plot(kind='scatter', x=data_col, y=data_col)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Create a scatter plot using a DataFrame."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["kind : ",(0,a.jsx)("em",{children:"string"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"To create a scatter plot, use kind='scatter'"}),(0,a.jsxs)("dd",{className:"parameter",children:["x : ",(0,a.jsx)("em",{children:"label"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Column for horizontal coordinates of each point."}),(0,a.jsxs)("dd",{className:"parameter",children:["y : ",(0,a.jsx)("em",{children:"label"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Column for vertical coordinates of each point.."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsxs)("dd",{children:["plot - Matplotlib plot created using ",(0,a.jsx)(t.a,{href:"https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.html",children:"parameters"}),"."]}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"Matplotlib plot"})]})]}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-python",children:"pets.plot(kind='scatter', x='Age', y='Weight')\n"})}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.img,{alt:"Scatter plot example 1",src:s(1141).A+"",width:"563",height:"432"})})]})}function p(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(l,{...e})}):l(e)}},8597:(e,t,s)=>{s.d(t,{A:()=>r});s(6540);var a=s(4848);const r=e=>{let{data:t}=e,s=[],r=[],n="",c=[];if(t){const e=JSON.parse(t);s=e.columns||[],r=e.data||[],n=e.indexName||"Index",c=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:n}),s.map(((e,t)=>(0,a.jsx)("th",{children:e},t)))]})}),(0,a.jsx)("tbody",{children:r.map(((e,t)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:c[t]}),e.map(((e,t)=>{return(0,a.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},t);var s}))]},t)))})]})})}},8205:(e,t,s)=>{s.d(t,{A:()=>r});s(6540);var a=s(4848);const r=e=>{let{data:t}=e,s=[],r=[],n="",c="";if(t)try{const e=JSON.parse(t);n=e.name||"",c=e.dtype||"Unknown type",s=e.index||[],r=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const i=r.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:i.map(((e,t)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:s[t]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},t)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",n,", dtype: ",c]})]})}},1141:(e,t,s)=>{s.d(t,{A:()=>a});const a=s.p+"assets/images/scatex1-7f19b56ad8dbc6cedd356c27ea79be77.png"},8453:(e,t,s)=>{s.d(t,{R:()=>c,x:()=>i});var a=s(6540);const r={},n=a.createContext(r);function c(e){const t=a.useContext(n);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),a.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2334],{7190:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>n,metadata:()=>i,toc:()=>o});var a=s(4848),r=s(8453);s(8597),s(8205);const n={sidebar_position:2},c=void 0,i={id:"documentation/plotting/Scatter Plot",title:"Scatter Plot",description:"df.plot(kind='scatter', x=datacol, y=datacol)",source:"@site/docs/documentation/plotting/Scatter Plot.md",sourceDirName:"documentation/plotting",slug:"/documentation/plotting/Scatter Plot",permalink:"/bpd-reference/docs/documentation/plotting/Scatter Plot",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/plotting/Scatter Plot.md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"docsSidebar",previous:{title:"Histogram",permalink:"/bpd-reference/docs/documentation/plotting/Histogram"},next:{title:"Bar Plot",permalink:"/bpd-reference/docs/documentation/plotting/Bar Plot"}},d={},o=[];function l(e){const t={a:"a",code:"code",hr:"hr",img:"img",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df.plot(kind='scatter', x=data_col, y=data_col)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Create a scatter plot using a DataFrame."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["kind : ",(0,a.jsx)("em",{children:"string"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"To create a scatter plot, use kind='scatter'"}),(0,a.jsxs)("dd",{className:"parameter",children:["x : ",(0,a.jsx)("em",{children:"label"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Column for horizontal coordinates of each point."}),(0,a.jsxs)("dd",{className:"parameter",children:["y : ",(0,a.jsx)("em",{children:"label"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Column for vertical coordinates of each point.."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsxs)("dd",{children:["plot - Matplotlib plot created using ",(0,a.jsx)(t.a,{href:"https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.html",children:"parameters"}),"."]}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"Matplotlib plot"})]})]}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-python",children:"pets.plot(kind='scatter', x='Age', y='Weight')\n"})}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.img,{alt:"Scatter plot example 1",src:s(8333).A+"",width:"563",height:"432"})})]})}function p(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(l,{...e})}):l(e)}},8597:(e,t,s)=>{s.d(t,{A:()=>r});s(6540);var a=s(4848);const r=e=>{let{data:t}=e,s=[],r=[],n="",c=[];if(t){const e=JSON.parse(t);s=e.columns||[],r=e.data||[],n=e.indexName||"Index",c=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:n}),s.map(((e,t)=>(0,a.jsx)("th",{children:e},t)))]})}),(0,a.jsx)("tbody",{children:r.map(((e,t)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:c[t]}),e.map(((e,t)=>{return(0,a.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},t);var s}))]},t)))})]})})}},8205:(e,t,s)=>{s.d(t,{A:()=>r});s(6540);var a=s(4848);const r=e=>{let{data:t}=e,s=[],r=[],n="",c="";if(t)try{const e=JSON.parse(t);n=e.name||"",c=e.dtype||"Unknown type",s=e.index||[],r=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const i=r.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:i.map(((e,t)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:s[t]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},t)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",n,", dtype: ",c]})]})}},8333:(e,t,s)=>{s.d(t,{A:()=>a});const a=s.p+"assets/images/scatex1-7f19b56ad8dbc6cedd356c27ea79be77.png"},8453:(e,t,s)=>{s.d(t,{R:()=>c,x:()=>i});var a=s(6540);const r={},n=a.createContext(r);function c(e){const t=a.useContext(n);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),a.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6a26c916.af28a919.js b/assets/js/6a26c916.af28a919.js new file mode 100644 index 00000000..c1fa6064 --- /dev/null +++ b/assets/js/6a26c916.af28a919.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4469],{352:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>r,metadata:()=>o,toc:()=>d});var s=t(4848),i=t(8453);t(8597),t(8205);const r={sidebar_position:1},a=void 0,o={id:"documentation/Functions/Writing Functions",title:"Writing Functions",description:"def function_name(parameters):",source:"@site/docs/documentation/Functions/Writing Functions.md",sourceDirName:"documentation/Functions",slug:"/documentation/Functions/Writing Functions",permalink:"/bpd-reference/docs/documentation/Functions/Writing Functions",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/Functions/Writing Functions.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"df[]",permalink:"/bpd-reference/docs/documentation/querying/df[]"},next:{title:"Applying Functions",permalink:"/bpd-reference/docs/documentation/Functions/Applying Functions"}},c={},d=[];function l(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"def function_name(parameters):"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:"Define a customizable function in Python."})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["parameters: ",(0,s.jsx)("em",{children:"any data type"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"These parameters are variables that act as placeholders for the values you pass to the function. A function can take a single parameter or a comma-separated list of parameters. Including parameters is optional; a function may operate without any."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"The result of the function. If there is no return statement, the function returns None by default."}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"The type of the returned object depends on the value provided by the return expression. If no return statement is used, the return type is NoneType."})]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:'def is_dog(species):\n """\n Sees if the species is a dog.\n ---\n Input:\n species: a string\n ---\n Output:\n a boolean\n """\n if species == \'dog\':\n return True\n return False\n'})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"is_dog('dog')\n"})}),"\n",(0,s.jsx)(n.p,{children:"True"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"def categorize_animal(index):\n \"\"\"\n Categorizes the animal based on its species, weight, and age.\n ---\n Input:\n index: a string containing the ID of the animal\n ---\n Output:\n a string describing the animal\n \"\"\"\n pets_idx = pets.set_index('ID')\n species = pets_idx.loc[index].get('Species')\n weight = pets_idx.loc[index].get('Weight')\n age = pets_idx.loc[index].get('Age')\n \n # Initialize descriptors\n life_stage = ''\n weight_status = ''\n \n # Define thresholds for dogs\n if species == 'dog':\n if age < 2:\n life_stage = 'Puppy'\n elif age < 7:\n life_stage = 'Adult'\n else:\n life_stage = 'Senior'\n \n if weight < 20:\n weight_status = 'Underweight'\n elif weight <= 60:\n weight_status = 'Normal'\n else:\n weight_status = 'Overweight'\n \n # Define thresholds for cats\n elif species == 'cat':\n if age < 2:\n life_stage = 'Kitten'\n elif age < 10:\n life_stage = 'Adult'\n else:\n life_stage = 'Senior'\n \n if weight < 2:\n weight_status = 'Underweight'\n elif weight <= 10:\n weight_status = 'Normal'\n else:\n weight_status = 'Overweight'\n \n # Define thresholds for hamsters\n elif species == 'hamster':\n if age < 0.5:\n life_stage = 'Young'\n elif age < 2:\n life_stage = 'Adult'\n else:\n life_stage = 'Senior'\n \n if weight < 0.2:\n weight_status = 'Underweight'\n elif weight <= 0.5:\n weight_status = 'Normal'\n else:\n weight_status = 'Overweight'\n \n # Return a combined description as a single string\n return f\"{life_stage} {weight_status}\"\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"categorize_animal(pets.get('ID').iloc[0])\n"})}),"\n",(0,s.jsx)(n.p,{children:"'Adult Normal'"})]})}function u(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8597:(e,n,t)=>{t.d(n,{A:()=>i});t(6540);var s=t(4848);const i=e=>{let{data:n}=e,t=[],i=[],r="",a=[];if(n){const e=JSON.parse(n);t=e.columns||[],i=e.data||[],r=e.indexName||"Index",a=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:r}),t.map(((e,n)=>(0,s.jsx)("th",{children:e},n)))]})}),(0,s.jsx)("tbody",{children:i.map(((e,n)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:a[n]}),e.map(((e,n)=>{return(0,s.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},n);var t}))]},n)))})]})})}},8205:(e,n,t)=>{t.d(n,{A:()=>i});t(6540);var s=t(4848);const i=e=>{let{data:n}=e,t=[],i=[],r="",a="";if(n)try{const e=JSON.parse(n);r=e.name||"",a=e.dtype||"Unknown type",t=e.index||[],i=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=i.map((e=>JSON.stringify(e)));return(0,s.jsxs)("div",{className:"series-container",children:[(0,s.jsx)("ul",{className:"series-list",children:o.map(((e,n)=>(0,s.jsxs)("li",{className:"series-item",children:[(0,s.jsx)("span",{className:"series-index",children:t[n]}),(0,s.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,s.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",a]})]})}},8453:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>o});var s=t(6540);const i={},r=s.createContext(i);function a(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6a26c916.d7db71df.js b/assets/js/6a26c916.d7db71df.js deleted file mode 100644 index b0502b82..00000000 --- a/assets/js/6a26c916.d7db71df.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4469],{352:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>i,metadata:()=>o,toc:()=>d});var r=t(4848),s=t(8453);t(8597),t(8205);const i={sidebar_position:1},a=void 0,o={id:"documentation/Functions/Writing Functions",title:"Writing Functions",description:"def function_name(parameters):",source:"@site/docs/documentation/Functions/Writing Functions.md",sourceDirName:"documentation/Functions",slug:"/documentation/Functions/Writing Functions",permalink:"/bpd-reference/docs/documentation/Functions/Writing Functions",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/Functions/Writing Functions.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"df[]",permalink:"/bpd-reference/docs/documentation/querying/df[]"},next:{title:"Applying Functions",permalink:"/bpd-reference/docs/documentation/Functions/Applying Functions"}},c={},d=[];function l(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"def function_name(parameters):"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Define a customizable function in Python."})}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Input:"}),(0,r.jsxs)("dd",{className:"parameter",children:["parameters: ",(0,r.jsx)("em",{children:"any data type"})]}),(0,r.jsx)("dd",{className:"parameter-description",children:"These parameters are variables that act as placeholders for the values you pass to the function. A function can take a single parameter or a comma-separated list of parameters. Including parameters is optional; a function may operate without any."}),(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"The result of the function. If there is no return statement, the function returns None by default."}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"The type of the returned object depends on the value provided by the return expression. If no return statement is used, the return type is NoneType."})]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:'def is_dog(species):\r\n """\r\n Sees if the species is a dog.\r\n ---\r\n Input:\r\n species: a string\r\n ---\r\n Output:\r\n a boolean\r\n """\r\n if species == \'dog\':\r\n return True\r\n return False\n'})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"is_dog('dog')\n"})}),"\n",(0,r.jsx)(n.p,{children:"True"}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"def categorize_animal(index):\r\n \"\"\"\r\n Categorizes the animal based on its species, weight, and age.\r\n ---\r\n Input:\r\n index: a string containing the ID of the animal\r\n ---\r\n Output:\r\n a string describing the animal\r\n \"\"\"\r\n pets_idx = pets.set_index('ID')\r\n species = pets_idx.loc[index].get('Species')\r\n weight = pets_idx.loc[index].get('Weight')\r\n age = pets_idx.loc[index].get('Age')\r\n \r\n # Initialize descriptors\r\n life_stage = ''\r\n weight_status = ''\r\n \r\n # Define thresholds for dogs\r\n if species == 'dog':\r\n if age < 2:\r\n life_stage = 'Puppy'\r\n elif age < 7:\r\n life_stage = 'Adult'\r\n else:\r\n life_stage = 'Senior'\r\n \r\n if weight < 20:\r\n weight_status = 'Underweight'\r\n elif weight <= 60:\r\n weight_status = 'Normal'\r\n else:\r\n weight_status = 'Overweight'\r\n \r\n # Define thresholds for cats\r\n elif species == 'cat':\r\n if age < 2:\r\n life_stage = 'Kitten'\r\n elif age < 10:\r\n life_stage = 'Adult'\r\n else:\r\n life_stage = 'Senior'\r\n \r\n if weight < 2:\r\n weight_status = 'Underweight'\r\n elif weight <= 10:\r\n weight_status = 'Normal'\r\n else:\r\n weight_status = 'Overweight'\r\n \r\n # Define thresholds for hamsters\r\n elif species == 'hamster':\r\n if age < 0.5:\r\n life_stage = 'Young'\r\n elif age < 2:\r\n life_stage = 'Adult'\r\n else:\r\n life_stage = 'Senior'\r\n \r\n if weight < 0.2:\r\n weight_status = 'Underweight'\r\n elif weight <= 0.5:\r\n weight_status = 'Normal'\r\n else:\r\n weight_status = 'Overweight'\r\n \r\n # Return a combined description as a single string\r\n return f\"{life_stage} {weight_status}\"\n"})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"categorize_animal(pets.get('ID').iloc[0])\n"})}),"\n",(0,r.jsx)(n.p,{children:"'Adult Normal'"})]})}function u(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8597:(e,n,t)=>{t.d(n,{A:()=>s});t(6540);var r=t(4848);const s=e=>{let{data:n}=e,t=[],s=[],i="",a=[];if(n){const e=JSON.parse(n);t=e.columns||[],s=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:i}),t.map(((e,n)=>(0,r.jsx)("th",{children:e},n)))]})}),(0,r.jsx)("tbody",{children:s.map(((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:a[n]}),e.map(((e,n)=>{return(0,r.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},n);var t}))]},n)))})]})})}},8205:(e,n,t)=>{t.d(n,{A:()=>s});t(6540);var r=t(4848);const s=e=>{let{data:n}=e,t=[],s=[],i="",a="";if(n)try{const e=JSON.parse(n);i=e.name||"",a=e.dtype||"Unknown type",t=e.index||[],s=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=s.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:o.map(((e,n)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:t[n]}),(0,r.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>o});var r=t(6540);const s={},i=r.createContext(s);function a(e){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6e05dac9.5de02c24.js b/assets/js/6e05dac9.5de02c24.js new file mode 100644 index 00000000..bb27d224 --- /dev/null +++ b/assets/js/6e05dac9.5de02c24.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2284],{6802:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>i,contentTitle:()=>o,default:()=>p,frontMatter:()=>c,metadata:()=>d,toc:()=>l});var t=s(4848),a=s(8453),r=s(8597);s(8205);const c={sidebar_position:6},o=void 0,d={id:"documentation/accessing-data/df.columns",title:"df.columns",description:"df.columns",source:"@site/docs/documentation/accessing-data/df.columns.md",sourceDirName:"documentation/accessing-data",slug:"/documentation/accessing-data/df.columns",permalink:"/bpd-reference/docs/documentation/accessing-data/df.columns",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/accessing-data/df.columns.md",tags:[],version:"current",sidebarPosition:6,frontMatter:{sidebar_position:6},sidebar:"docsSidebar",previous:{title:"df.index",permalink:"/bpd-reference/docs/documentation/accessing-data/df.index"},next:{title:"df.take()",permalink:"/bpd-reference/docs/documentation/accessing-data/df.take()"}},i={},l=[];function m(e){const n={a:"a",code:"code",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"df.columns"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Returns the column labels of the DataFrame."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Note:"}),(0,t.jsx)("dd",{children:(0,t.jsx)("ul",{children:(0,t.jsxs)("li",{children:["The return type is bpd.Index. Use ",(0,t.jsx)(n.code,{children:"np.array()"})," to convert it to a numpy array."]})})})]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets\n"})}),"\n",(0,t.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets_cols = pets.columns\npets_cols\n"})}),"\n",(0,t.jsx)(n.p,{children:"Index(['ID', 'Species', 'Color', 'Weight', 'Age', 'Is_Cat', 'Owner_Comment'], dtype='object')"}),"\n",(0,t.jsxs)("p",{children:[(0,t.jsx)("br",{})," ",(0,t.jsxs)(n.strong,{children:["Convert index to a numpy array. Learn more about this in the ",(0,t.jsx)(n.a,{href:"https://dsc-courses.github.io/bpd-reference/docs/documentation/data%20format%20conversion/np.array()",children:"Data Format Conversion"})," section."]})," "]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"col_arr = np.array(col_lst)\ncol_arr\n"})}),"\n",(0,t.jsx)(n.p,{children:"array(['ID', 'Species', 'Color', 'Weight', 'Age', 'Is_Cat',\n'Owner_Comment'], dtype=object)"})]})}function p(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>a});s(6540);var t=s(4848);const a=e=>{let{data:n}=e,s=[],a=[],r="",c=[];if(n){const e=JSON.parse(n);s=e.columns||[],a=e.data||[],r=e.indexName||"Index",c=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:r}),s.map(((e,n)=>(0,t.jsx)("th",{children:e},n)))]})}),(0,t.jsx)("tbody",{children:a.map(((e,n)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:c[n]}),e.map(((e,n)=>{return(0,t.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>a});s(6540);var t=s(4848);const a=e=>{let{data:n}=e,s=[],a=[],r="",c="";if(n)try{const e=JSON.parse(n);r=e.name||"",c=e.dtype||"Unknown type",s=e.index||[],a=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=a.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:o.map(((e,n)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:s[n]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",c]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>c,x:()=>o});var t=s(6540);const a={},r=t.createContext(a);function c(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:c(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6e05dac9.794051db.js b/assets/js/6e05dac9.794051db.js deleted file mode 100644 index b15b53b0..00000000 --- a/assets/js/6e05dac9.794051db.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2284],{6802:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>i,contentTitle:()=>o,default:()=>p,frontMatter:()=>c,metadata:()=>d,toc:()=>l});var t=s(4848),a=s(8453),r=s(8597);s(8205);const c={sidebar_position:6},o=void 0,d={id:"documentation/accessing-data/df.columns",title:"df.columns",description:"df.columns",source:"@site/docs/documentation/accessing-data/df.columns.md",sourceDirName:"documentation/accessing-data",slug:"/documentation/accessing-data/df.columns",permalink:"/bpd-reference/docs/documentation/accessing-data/df.columns",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/accessing-data/df.columns.md",tags:[],version:"current",sidebarPosition:6,frontMatter:{sidebar_position:6},sidebar:"docsSidebar",previous:{title:"df.index",permalink:"/bpd-reference/docs/documentation/accessing-data/df.index"},next:{title:"df.take()",permalink:"/bpd-reference/docs/documentation/accessing-data/df.take()"}},i={},l=[];function m(e){const n={a:"a",code:"code",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"df.columns"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Returns the column labels of the DataFrame."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Note:"}),(0,t.jsx)("dd",{children:(0,t.jsx)("ul",{children:(0,t.jsxs)("li",{children:["The return type is bpd.Index. Use ",(0,t.jsx)(n.code,{children:"np.array()"})," to convert it to a numpy array."]})})})]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets\n"})}),"\n",(0,t.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets_cols = pets.columns\r\npets_cols\n"})}),"\n",(0,t.jsx)(n.p,{children:"Index(['ID', 'Species', 'Color', 'Weight', 'Age', 'Is_Cat', 'Owner_Comment'], dtype='object')"}),"\n",(0,t.jsxs)("p",{children:[(0,t.jsx)("br",{})," ",(0,t.jsxs)(n.strong,{children:["Convert index to a numpy array. Learn more about this in the ",(0,t.jsx)(n.a,{href:"https://dsc-courses.github.io/bpd-reference/docs/documentation/data%20format%20conversion/np.array()",children:"Data Format Conversion"})," section."]})," "]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"col_arr = np.array(col_lst)\r\ncol_arr\n"})}),"\n",(0,t.jsx)(n.p,{children:"array(['ID', 'Species', 'Color', 'Weight', 'Age', 'Is_Cat',\r\n'Owner_Comment'], dtype=object)"})]})}function p(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>a});s(6540);var t=s(4848);const a=e=>{let{data:n}=e,s=[],a=[],r="",c=[];if(n){const e=JSON.parse(n);s=e.columns||[],a=e.data||[],r=e.indexName||"Index",c=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:r}),s.map(((e,n)=>(0,t.jsx)("th",{children:e},n)))]})}),(0,t.jsx)("tbody",{children:a.map(((e,n)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:c[n]}),e.map(((e,n)=>{return(0,t.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>a});s(6540);var t=s(4848);const a=e=>{let{data:n}=e,s=[],a=[],r="",c="";if(n)try{const e=JSON.parse(n);r=e.name||"",c=e.dtype||"Unknown type",s=e.index||[],a=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=a.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:o.map(((e,n)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:s[n]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",c]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>c,x:()=>o});var t=s(6540);const a={},r=t.createContext(a);function c(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:c(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6e2ca103.25b793cd.js b/assets/js/6e2ca103.1cb6c2aa.js similarity index 50% rename from assets/js/6e2ca103.25b793cd.js rename to assets/js/6e2ca103.1cb6c2aa.js index 026a62c7..0757d4ad 100644 --- a/assets/js/6e2ca103.25b793cd.js +++ b/assets/js/6e2ca103.1cb6c2aa.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5980],{5814:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>r,default:()=>p,frontMatter:()=>i,metadata:()=>d,toc:()=>o});var n=t(4848),a=t(8453);t(8597),t(8205);const i={sidebar_position:1},r=void 0,d={id:"documentation/plotting/Histogram",title:"Histogram",description:"df.plot(kind='hist', y=datacol, bins=thebins, density=True, ec='w')",source:"@site/docs/documentation/plotting/Histogram.md",sourceDirName:"documentation/plotting",slug:"/documentation/plotting/Histogram",permalink:"/bpd-reference/docs/documentation/plotting/Histogram",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/plotting/Histogram.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"Plotting",permalink:"/bpd-reference/docs/documentation/plotting/"},next:{title:"Scatter Plot",permalink:"/bpd-reference/docs/documentation/plotting/Scatter Plot"}},c={},o=[];function l(e){const s={a:"a",code:"code",hr:"hr",img:"img",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"df.plot(kind='hist', y=data_col, bins=the_bins, density=True, ec='w')"}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Create a histogram using a DataFrame."})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Input:"}),(0,n.jsxs)("dd",{className:"parameter",children:["kind : ",(0,n.jsx)("em",{children:"string"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"To create a histogram, use kind='hist'"}),(0,n.jsxs)("dd",{className:"parameter",children:["y : ",(0,n.jsx)("em",{children:"label"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"Column to calculate frequency/probability density."}),(0,n.jsxs)("dd",{className:"parameter",children:["bins : ",(0,n.jsx)("em",{children:"integer or array, default None"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If integer, number of bins to use."}),(0,n.jsx)("dd",{className:"parameter-description",children:"If array, specifies the bin edges. "}),(0,n.jsx)("dd",{className:"parameter-description",children:"If not specified, matplotlib tries to calculate the optimal number of bins. "}),(0,n.jsxs)("dd",{className:"parameter",children:["density : ",(0,n.jsx)("em",{children:"boolean, default False"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If False, y-axis plots the number of observations."}),(0,n.jsx)("dd",{className:"parameter-description",children:"If True, y-axis plots the probability density."}),(0,n.jsxs)("dd",{className:"parameter",children:["ec : ",(0,n.jsx)("em",{children:"string"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"Color for histogram bin outlines, use ec='w' for a white outline."}),(0,n.jsx)("dt",{className:"term",children:"Returns:"}),(0,n.jsxs)("dd",{children:["plot - Matplotlib plot created using ",(0,n.jsx)(s.a,{href:"https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.html",children:"parameters"}),"."]}),(0,n.jsx)("dt",{className:"term",children:"Return Type:"}),(0,n.jsx)("dd",{children:"Matplotlib plot"}),(0,n.jsx)("dt",{className:"term",children:"Note:"}),(0,n.jsx)("dd",{children:(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:"In a histogram, only the last bin is inclusive of the right endpoint! [left, right)"}),(0,n.jsx)("li",{children:"The bins you specity don't have to include all data values; data values not in any bin won't be shown in the histogram."})]})})]})]}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"pets.plot(kind='hist', y='Age', bins=np.arange(0, 15, 3), density=True, ec='w')\n"})}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"Histogram example 1",src:t(878).A+"",width:"585",height:"413"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"pets.plot(kind='hist', y='Weight', bins=5, density=True, ec='w')\n"})}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"Histogram example 2",src:t(6629).A+"",width:"585",height:"413"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"# DataFrame with weights of only cats and dogs.\r\ncats_dogs = bpd.DataFrame().assign(\r\n cats=np.array(pets[pets.get('Species') == 'cat'].get('Weight')),\r\n dogs=np.array(pets[pets.get('Species') == 'dog'].get('Weight')),\r\n)\r\n\r\n# Overlaid histogram.\r\nbins = np.arange(0, 40, 15)\r\ncats_dogs.plot(kind='hist', alpha=0.65, density=True, ec='w', bins=bins)\n"})}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"Histogram example 3",src:t(4364).A+"",width:"576",height:"418"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"# Without the `bins` parameter.\r\npets.plot(kind='hist', y='Weight', density=True, ec='w')\n"})}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"Histogram example 4",src:t(611).A+"",width:"576",height:"413"})})]})}function p(e={}){const{wrapper:s}={...(0,a.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>a});t(6540);var n=t(4848);const a=e=>{let{data:s}=e,t=[],a=[],i="",r=[];if(s){const e=JSON.parse(s);t=e.columns||[],a=e.data||[],i=e.indexName||"Index",r=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:i}),t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:a.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:r[s]}),e.map(((e,s)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>a});t(6540);var n=t(4848);const a=e=>{let{data:s}=e,t=[],a=[],i="",r="";if(s)try{const e=JSON.parse(s);i=e.name||"",r=e.dtype||"Unknown type",t=e.index||[],a=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const d=a.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:d.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:t[s]}),(0,n.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",r]})]})}},878:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/histex1-ca89deede07f4121aaf1ffcdc41ca947.png"},6629:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/histex2-5b2bc1d1349c29bf183a61e69dbe6c3a.png"},4364:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/histex3-48dc5c40cb3bf5281d80af0c4877ed82.png"},611:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/histex4-bc72986eb46b0b82dbdb0509f4c712e5.png"},8453:(e,s,t)=>{t.d(s,{R:()=>r,x:()=>d});var n=t(6540);const a={},i=n.createContext(a);function r(e){const s=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:r(e.components),n.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5980],{3433:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>r,default:()=>p,frontMatter:()=>i,metadata:()=>d,toc:()=>o});var n=t(4848),a=t(8453);t(8597),t(8205);const i={sidebar_position:1},r=void 0,d={id:"documentation/plotting/Histogram",title:"Histogram",description:"df.plot(kind='hist', y=datacol, bins=thebins, density=True, ec='w')",source:"@site/docs/documentation/plotting/Histogram.md",sourceDirName:"documentation/plotting",slug:"/documentation/plotting/Histogram",permalink:"/bpd-reference/docs/documentation/plotting/Histogram",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/plotting/Histogram.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"Plotting",permalink:"/bpd-reference/docs/documentation/plotting/"},next:{title:"Scatter Plot",permalink:"/bpd-reference/docs/documentation/plotting/Scatter Plot"}},c={},o=[];function l(e){const s={a:"a",code:"code",hr:"hr",img:"img",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"df.plot(kind='hist', y=data_col, bins=the_bins, density=True, ec='w')"}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Create a histogram using a DataFrame."})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Input:"}),(0,n.jsxs)("dd",{className:"parameter",children:["kind : ",(0,n.jsx)("em",{children:"string"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"To create a histogram, use kind='hist'"}),(0,n.jsxs)("dd",{className:"parameter",children:["y : ",(0,n.jsx)("em",{children:"label"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"Column to calculate frequency/probability density."}),(0,n.jsxs)("dd",{className:"parameter",children:["bins : ",(0,n.jsx)("em",{children:"integer or array, default None"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If integer, number of bins to use."}),(0,n.jsx)("dd",{className:"parameter-description",children:"If array, specifies the bin edges. "}),(0,n.jsx)("dd",{className:"parameter-description",children:"If not specified, matplotlib tries to calculate the optimal number of bins. "}),(0,n.jsxs)("dd",{className:"parameter",children:["density : ",(0,n.jsx)("em",{children:"boolean, default False"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If False, y-axis plots the number of observations."}),(0,n.jsx)("dd",{className:"parameter-description",children:"If True, y-axis plots the probability density."}),(0,n.jsxs)("dd",{className:"parameter",children:["ec : ",(0,n.jsx)("em",{children:"string"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"Color for histogram bin outlines, use ec='w' for a white outline."}),(0,n.jsx)("dt",{className:"term",children:"Returns:"}),(0,n.jsxs)("dd",{children:["plot - Matplotlib plot created using ",(0,n.jsx)(s.a,{href:"https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.html",children:"parameters"}),"."]}),(0,n.jsx)("dt",{className:"term",children:"Return Type:"}),(0,n.jsx)("dd",{children:"Matplotlib plot"}),(0,n.jsx)("dt",{className:"term",children:"Note:"}),(0,n.jsx)("dd",{children:(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:"In a histogram, only the last bin is inclusive of the right endpoint! [left, right)"}),(0,n.jsx)("li",{children:"The bins you specity don't have to include all data values; data values not in any bin won't be shown in the histogram."})]})})]})]}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"pets.plot(kind='hist', y='Age', bins=np.arange(0, 15, 3), density=True, ec='w')\n"})}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"Histogram example 1",src:t(2854).A+"",width:"585",height:"413"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"pets.plot(kind='hist', y='Weight', bins=5, density=True, ec='w')\n"})}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"Histogram example 2",src:t(9002).A+"",width:"585",height:"413"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"# DataFrame with weights of only cats and dogs.\ncats_dogs = bpd.DataFrame().assign(\n cats=np.array(pets[pets.get('Species') == 'cat'].get('Weight')),\n dogs=np.array(pets[pets.get('Species') == 'dog'].get('Weight')),\n)\n\n# Overlaid histogram.\nbins = np.arange(0, 40, 15)\ncats_dogs.plot(kind='hist', alpha=0.65, density=True, ec='w', bins=bins)\n"})}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"Histogram example 3",src:t(6759).A+"",width:"576",height:"418"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"# Without the `bins` parameter.\npets.plot(kind='hist', y='Weight', density=True, ec='w')\n"})}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"Histogram example 4",src:t(1131).A+"",width:"576",height:"413"})})]})}function p(e={}){const{wrapper:s}={...(0,a.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>a});t(6540);var n=t(4848);const a=e=>{let{data:s}=e,t=[],a=[],i="",r=[];if(s){const e=JSON.parse(s);t=e.columns||[],a=e.data||[],i=e.indexName||"Index",r=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:i}),t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:a.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:r[s]}),e.map(((e,s)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>a});t(6540);var n=t(4848);const a=e=>{let{data:s}=e,t=[],a=[],i="",r="";if(s)try{const e=JSON.parse(s);i=e.name||"",r=e.dtype||"Unknown type",t=e.index||[],a=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const d=a.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:d.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:t[s]}),(0,n.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",r]})]})}},2854:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/histex1-ca89deede07f4121aaf1ffcdc41ca947.png"},9002:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/histex2-5b2bc1d1349c29bf183a61e69dbe6c3a.png"},6759:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/histex3-48dc5c40cb3bf5281d80af0c4877ed82.png"},1131:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/histex4-bc72986eb46b0b82dbdb0509f4c712e5.png"},8453:(e,s,t)=>{t.d(s,{R:()=>r,x:()=>d});var n=t(6540);const a={},i=n.createContext(a);function r(e){const s=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:r(e.components),n.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/724.b40f7e36.js b/assets/js/724.b40f7e36.js deleted file mode 100644 index 49e0dde5..00000000 --- a/assets/js/724.b40f7e36.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[724],{9320:function(e,t,n){!function(e,t,n,s){"use strict";const o=0,r=1,i=2,a=3,c=4,l=-1;class u{constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n,this._ignoreList=new t.SetArray}}function h(e){return e}function p(e,t,n,s,o,r,i,a){return b(!1,e,t,n,s,o,r,i,a)}function d(e,t){return N(!1,e,t)}const f=(e,t,n,s,o,r,i,a)=>b(!0,e,t,n,s,o,r,i,a),m=(e,t)=>N(!0,e,t);function k(e,n,s){const{_sources:o,_sourcesContent:r}=h(e);r[t.put(o,n)]=s}function g(e,n,s=!0){const{_sources:o,_sourcesContent:r,_ignoreList:i}=h(e),a=t.put(o,n);a===r.length&&(r[a]=null),s?t.put(i,a):t.remove(i,a)}function x(e){const{_mappings:t,_sources:n,_sourcesContent:s,_names:o,_ignoreList:r}=h(e);return C(t),{version:3,file:e.file||void 0,names:o.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:s,mappings:t,ignoreList:r.array}}function y(e){const t=x(e);return Object.assign(Object.assign({},t),{mappings:n.encode(t.mappings)})}function _(e){const t=new s.TraceMap(e),n=new u({file:t.file,sourceRoot:t.sourceRoot});return A(h(n)._names,t.names),A(h(n)._sources,t.sources),h(n)._sourcesContent=t.sourcesContent||t.sources.map((()=>null)),h(n)._mappings=s.decodedMappings(t),t.ignoreList&&A(h(n)._ignoreList,t.ignoreList),n}function T(e){const t=[],{_mappings:n,_sources:s,_names:l}=h(e);for(let u=0;u<n.length;u++){const e=n[u];for(let n=0;n<e.length;n++){const h=e[n],p={line:u+1,column:h[o]};let d,f,m;1!==h.length&&(d=s.array[h[r]],f={line:h[i]+1,column:h[a]},5===h.length&&(m=l.array[h[c]])),t.push({generated:p,source:d,original:f,name:m})}}return t}function b(e,n,s,o,r,i,a,c,u){const{_mappings:p,_sources:d,_sourcesContent:f,_names:m}=h(n),k=v(p,s),g=I(k,o);if(!r){if(e&&E(k,g))return;return w(k,g,[o])}const x=t.put(d,r),y=c?t.put(m,c):l;if(x===f.length&&(f[x]=null!=u?u:null),!e||!S(k,g,x,i,a,y))return w(k,g,c?[o,x,i,a,y]:[o,x,i,a])}function v(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}function I(e,t){let n=e.length;for(let s=n-1;s>=0&&!(t>=e[s][o]);n=s--);return n}function w(e,t,n){for(let s=e.length;s>t;s--)e[s]=e[s-1];e[t]=n}function C(e){const{length:t}=e;let n=t;for(let s=n-1;s>=0&&!(e[s].length>0);n=s,s--);n<t&&(e.length=n)}function A(e,n){for(let s=0;s<n.length;s++)t.put(e,n[s])}function E(e,t){return 0===t||1===e[t-1].length}function S(e,t,n,s,o,u){if(0===t)return!1;const h=e[t-1];return 1!==h.length&&n===h[r]&&s===h[i]&&o===h[a]&&u===(5===h.length?h[c]:l)}function N(e,t,n){const{generated:s,source:o,original:r,name:i,content:a}=n;return o?b(e,t,s.line-1,s.column,o,r.line-1,r.column,i,a):b(e,t,s.line-1,s.column,null,null,null,null,null)}e.GenMapping=u,e.addMapping=d,e.addSegment=p,e.allMappings=T,e.fromMap=_,e.maybeAddMapping=m,e.maybeAddSegment=f,e.setIgnore=g,e.setSourceContent=k,e.toDecodedMap=x,e.toEncodedMap=y,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(3534),n(4318),n(2802))},4424:function(e){e.exports=function(){"use strict";const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function s(t){return e.test(t)}function o(e){return e.startsWith("//")}function r(e){return e.startsWith("/")}function i(e){return e.startsWith("file:")}function a(e){return/^[.?#]/.test(e)}function c(e){const n=t.exec(e);return u(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function l(e){const t=n.exec(e),s=t[2];return u("file:","",t[1]||"","",r(s)?s:"/"+s,t[3]||"",t[4]||"")}function u(e,t,n,s,o,r,i){return{scheme:e,user:t,host:n,port:s,path:o,query:r,hash:i,type:7}}function h(e){if(o(e)){const t=c("http:"+e);return t.scheme="",t.type=6,t}if(r(e)){const t=c("http://foo.com"+e);return t.scheme="",t.host="",t.type=5,t}if(i(e))return l(e);if(s(e))return c(e);const t=c("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,t}function p(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function d(e,t){f(t,t.type),"/"===e.path?e.path=t.path:e.path=p(t.path)+e.path}function f(e,t){const n=t<=4,s=e.path.split("/");let o=1,r=0,i=!1;for(let c=1;c<s.length;c++){const e=s[c];e?(i=!1,"."!==e&&(".."!==e?(s[o++]=e,r++):r?(i=!0,r--,o--):n&&(s[o++]=e))):i=!0}let a="";for(let c=1;c<o;c++)a+="/"+s[c];(!a||i&&!a.endsWith("/.."))&&(a+="/"),e.path=a}function m(e,t){if(!e&&!t)return"";const n=h(e);let s=n.type;if(t&&7!==s){const e=h(t),o=e.type;switch(s){case 1:n.hash=e.hash;case 2:n.query=e.query;case 3:case 4:d(n,e);case 5:n.user=e.user,n.host=e.host,n.port=e.port;case 6:n.scheme=e.scheme}o>s&&(s=o)}f(n,s);const o=n.query+n.hash;switch(s){case 2:case 3:return o;case 4:{const s=n.path.slice(1);return s?a(t||e)&&!a(s)?"./"+s+o:s+o:o||"."}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}return m}()},3534:function(e,t){!function(e){"use strict";class t{constructor(){this._indexes={__proto__:null},this.array=[]}}function n(e){return e}function s(e,t){return n(e)._indexes[t]}function o(e,t){const o=s(e,t);if(void 0!==o)return o;const{array:r,_indexes:i}=n(e),a=r.push(t);return i[t]=a-1}function r(e){const{array:t,_indexes:s}=n(e);0!==t.length&&(s[t.pop()]=void 0)}function i(e,t){const o=s(e,t);if(void 0===o)return;const{array:r,_indexes:i}=n(e);for(let n=o+1;n<r.length;n++){const e=r[n];r[n-1]=e,i[e]--}i[t]=void 0,r.pop()}e.SetArray=t,e.get=s,e.pop=r,e.put=o,e.remove=i,Object.defineProperty(e,"__esModule",{value:!0})}(t)},4318:function(e,t){!function(e){"use strict";const t=",".charCodeAt(0),n=";".charCodeAt(0),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=new Uint8Array(64),r=new Uint8Array(128);for(let m=0;m<s.length;m++){const e=s.charCodeAt(m);o[m]=e,r[e]=m}const i="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}};function a(e){const t=new Int32Array(5),n=[];let s=0;do{const o=c(e,s),r=[];let i=!0,a=0;t[0]=0;for(let n=s;n<o;n++){let s;n=l(e,n,t,0);const c=t[0];c<a&&(i=!1),a=c,u(e,n,o)?(n=l(e,n,t,1),n=l(e,n,t,2),n=l(e,n,t,3),u(e,n,o)?(n=l(e,n,t,4),s=[c,t[1],t[2],t[3],t[4]]):s=[c,t[1],t[2],t[3]]):s=[c],r.push(s)}i||h(r),n.push(r),s=o+1}while(s<=e.length);return n}function c(e,t){const n=e.indexOf(";",t);return-1===n?e.length:n}function l(e,t,n,s){let o=0,i=0,a=0;do{const n=e.charCodeAt(t++);a=r[n],o|=(31&a)<<i,i+=5}while(32&a);const c=1&o;return o>>>=1,c&&(o=-2147483648|-o),n[s]+=o,t}function u(e,n,s){return!(n>=s)&&e.charCodeAt(n)!==t}function h(e){e.sort(p)}function p(e,t){return e[0]-t[0]}function d(e){const s=new Int32Array(5),o=16384,r=o-36,a=new Uint8Array(o),c=a.subarray(0,r);let l=0,u="";for(let h=0;h<e.length;h++){const p=e[h];if(h>0&&(l===o&&(u+=i.decode(a),l=0),a[l++]=n),0!==p.length){s[0]=0;for(let e=0;e<p.length;e++){const n=p[e];l>r&&(u+=i.decode(c),a.copyWithin(0,r,l),l-=r),e>0&&(a[l++]=t),l=f(a,l,s,n,0),1!==n.length&&(l=f(a,l,s,n,1),l=f(a,l,s,n,2),l=f(a,l,s,n,3),4!==n.length&&(l=f(a,l,s,n,4)))}}}return u+i.decode(a.subarray(0,l))}function f(e,t,n,s,r){const i=s[r];let a=i-n[r];n[r]=i,a=a<0?-a<<1|1:a<<1;do{let n=31&a;a>>>=5,a>0&&(n|=32),e[t++]=o[n]}while(a>0);return t}e.decode=a,e.encode=d,Object.defineProperty(e,"__esModule",{value:!0})}(t)},2802:function(e,t,n){!function(e,t,n){"use strict";function s(e,t){return t&&!t.endsWith("/")&&(t+="/"),n(e,t)}function o(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const r=0,i=1,a=2,c=3,l=4,u=1,h=2;function p(e,t){const n=d(e,0);if(n===e.length)return e;t||(e=e.slice());for(let s=n;s<e.length;s=d(e,s+1))e[s]=m(e[s],t);return e}function d(e,t){for(let n=t;n<e.length;n++)if(!f(e[n]))return n;return e.length}function f(e){for(let t=1;t<e.length;t++)if(e[t][r]<e[t-1][r])return!1;return!0}function m(e,t){return t||(e=e.slice()),e.sort(k)}function k(e,t){return e[r]-t[r]}let g=!1;function x(e,t,n,s){for(;n<=s;){const o=n+(s-n>>1),i=e[o][r]-t;if(0===i)return g=!0,o;i<0?n=o+1:s=o-1}return g=!1,n-1}function y(e,t,n){for(let s=n+1;s<e.length&&e[s][r]===t;n=s++);return n}function _(e,t,n){for(let s=n-1;s>=0&&e[s][r]===t;n=s--);return n}function T(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function b(e,t,n,s){const{lastKey:o,lastNeedle:i,lastIndex:a}=n;let c=0,l=e.length-1;if(s===o){if(t===i)return g=-1!==a&&e[a][r]===t,a;t>=i?c=-1===a?0:a:l=a}return n.lastKey=s,n.lastNeedle=t,n.lastIndex=x(e,t,c,l)}function v(e,t){const n=t.map(w);for(let s=0;s<e.length;s++){const o=e[s];for(let e=0;e<o.length;e++){const l=o[e];if(1===l.length)continue;const u=l[i],h=l[a],p=l[c],d=n[u],f=d[h]||(d[h]=[]),m=t[u];let k=y(f,p,b(f,p,m,h));m.lastIndex=++k,I(f,k,[p,s,l[r]])}}return n}function I(e,t,n){for(let s=e.length;s>t;s--)e[s]=e[s-1];e[t]=n}function w(){return{__proto__:null}}const C=function(e,t){const n=A(e);if(!("sections"in n))return new P(n,t);const s=[],o=[],r=[],i=[],a=[];return E(n,t,s,o,r,i,a,0,0,1/0,1/0),G({version:3,file:n.file,names:i,sources:o,sourcesContent:r,mappings:s,ignoreList:a})};function A(e){return"string"==typeof e?JSON.parse(e):e}function E(e,t,n,s,o,r,i,a,c,l,u){const{sections:h}=e;for(let p=0;p<h.length;p++){const{map:e,offset:d}=h[p];let f=l,m=u;if(p+1<h.length){const e=h[p+1].offset;f=Math.min(l,a+e.line),f===l?m=Math.min(u,c+e.column):f<l&&(m=c+e.column)}S(e,t,n,s,o,r,i,a+d.line,c+d.column,f,m)}}function S(e,t,n,s,o,u,h,p,d,f,m){const k=A(e);if("sections"in k)return E(...arguments);const g=new P(k,t),x=s.length,y=u.length,_=M(g),{resolvedSources:T,sourcesContent:b,ignoreList:v}=g;if(N(s,T),N(u,g.names),b)N(o,b);else for(let r=0;r<T.length;r++)o.push(null);if(v)for(let r=0;r<v.length;r++)h.push(v[r]+x);for(let I=0;I<_.length;I++){const e=p+I;if(e>f)return;const t=j(n,e),s=0===I?d:0,o=_[I];for(let n=0;n<o.length;n++){const u=o[n],h=s+u[r];if(e===f&&h>=m)return;if(1===u.length){t.push([h]);continue}const p=x+u[i],d=u[a],k=u[c];t.push(4===u.length?[h,p,d,k]:[h,p,d,k,y+u[l]])}}}function N(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function j(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}const R="`line` must be greater than 0 (lines start at line 1)",L="`column` must be greater than or equal to 0 (columns start at column 0)",O=-1,D=1;class P{constructor(e,t){const n="string"==typeof e;if(!n&&e._decodedMemo)return e;const r=n?JSON.parse(e):e,{version:i,file:a,names:c,sourceRoot:l,sources:u,sourcesContent:h}=r;this.version=i,this.file=a,this.names=c||[],this.sourceRoot=l,this.sources=u,this.sourcesContent=h,this.ignoreList=r.ignoreList||r.x_google_ignoreList||void 0;const d=s(l||"",o(t));this.resolvedSources=u.map((e=>s(e||"",d)));const{mappings:f}=r;"string"==typeof f?(this._encoded=f,this._decoded=void 0):(this._encoded=void 0,this._decoded=p(f,n)),this._decodedMemo=T(),this._bySources=void 0,this._bySourceMemos=void 0}}function B(e){return e}function q(e){var n,s;return null!==(n=(s=B(e))._encoded)&&void 0!==n?n:s._encoded=t.encode(B(e)._decoded)}function M(e){var n;return(n=B(e))._decoded||(n._decoded=t.decode(B(e)._encoded))}function F(e,t,n){const s=M(e);if(t>=s.length)return null;const o=s[t],r=ee(o,B(e)._decodedMemo,t,n,D);return-1===r?null:o[r]}function $(e,t){let{line:n,column:s,bias:o}=t;if(n--,n<0)throw new Error(R);if(s<0)throw new Error(L);const r=M(e);if(n>=r.length)return Q(null,null,null,null);const u=r[n],h=ee(u,B(e)._decodedMemo,n,s,o||D);if(-1===h)return Q(null,null,null,null);const p=u[h];if(1===p.length)return Q(null,null,null,null);const{names:d,resolvedSources:f}=e;return Q(f[p[i]],p[a]+1,p[c],5===p.length?d[p[l]]:null)}function U(e,t){const{source:n,line:s,column:o,bias:r}=t;return ne(e,n,s,o,r||D,!1)}function K(e,t){const{source:n,line:s,column:o,bias:r}=t;return ne(e,n,s,o,r||O,!0)}function H(e,t){const n=M(e),{names:s,resolvedSources:o}=e;for(let r=0;r<n.length;r++){const e=n[r];for(let n=0;n<e.length;n++){const i=e[n],a=r+1,c=i[0];let l=null,u=null,h=null,p=null;1!==i.length&&(l=o[i[1]],u=i[2]+1,h=i[3]),5===i.length&&(p=s[i[4]]),t({generatedLine:a,generatedColumn:c,source:l,originalLine:u,originalColumn:h,name:p})}}}function V(e,t){const{sources:n,resolvedSources:s}=e;let o=n.indexOf(t);return-1===o&&(o=s.indexOf(t)),o}function W(e,t){const{sourcesContent:n}=e;if(null==n)return null;const s=V(e,t);return-1===s?null:n[s]}function z(e,t){const{ignoreList:n}=e;if(null==n)return!1;const s=V(e,t);return-1!==s&&n.includes(s)}function G(e,t){const n=new P(Y(e,[]),t);return B(n)._decoded=e.mappings,n}function X(e){return Y(e,M(e))}function J(e){return Y(e,q(e))}function Y(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t,ignoreList:e.ignoreList||e.x_google_ignoreList}}function Q(e,t,n,s){return{source:e,line:t,column:n,name:s}}function Z(e,t){return{line:e,column:t}}function ee(e,t,n,s,o){let r=b(e,s,t,n);return g?r=(o===O?y:_)(e,s,r):o===O&&r++,-1===r||r===e.length?-1:r}function te(e,t,n,s,o){let i=ee(e,t,n,s,D);if(g||o!==O||i++,-1===i||i===e.length)return[];const a=g?s:e[i][r];g||(i=_(e,a,i));const c=y(e,a,i),l=[];for(;i<=c;i++){const t=e[i];l.push(Z(t[u]+1,t[h]))}return l}function ne(e,t,n,s,o,r){var i;if(--n<0)throw new Error(R);if(s<0)throw new Error(L);const{sources:a,resolvedSources:c}=e;let l=a.indexOf(t);if(-1===l&&(l=c.indexOf(t)),-1===l)return r?[]:Z(null,null);const p=((i=B(e))._bySources||(i._bySources=v(M(e),B(e)._bySourceMemos=a.map(T))))[l][n];if(null==p)return r?[]:Z(null,null);const d=B(e)._bySourceMemos[l];if(r)return te(p,d,n,s,o);const f=ee(p,d,n,s,o);if(-1===f)return Z(null,null);const m=p[f];return Z(m[u]+1,m[h])}e.AnyMap=C,e.GREATEST_LOWER_BOUND=D,e.LEAST_UPPER_BOUND=O,e.TraceMap=P,e.allGeneratedPositionsFor=K,e.decodedMap=X,e.decodedMappings=M,e.eachMapping=H,e.encodedMap=J,e.encodedMappings=q,e.generatedPositionFor=U,e.isIgnored=z,e.originalPositionFor=$,e.presortedDecodedMap=G,e.sourceContentFor=W,e.traceSegment=F}(t,n(4318),n(4424))},7293:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var s=n(6540),o=n(4848);function r(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=s.Children.toArray(e),n=t.find((e=>s.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),r=t.filter((e=>e!==n)),i=n?.props.children;return{mdxAdmonitionTitle:i,rest:r.length>0?(0,o.jsx)(o.Fragment,{children:r}):null}}(e.children),r=e.title??t;return{...e,...r&&{title:r},children:n}}var i=n(4164),a=n(1312),c=n(7559);const l={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function u(e){let{type:t,className:n,children:s}=e;return(0,o.jsx)("div",{className:(0,i.A)(c.G.common.admonition,c.G.common.admonitionType(t),l.admonition,n),children:s})}function h(e){let{icon:t,title:n}=e;return(0,o.jsxs)("div",{className:l.admonitionHeading,children:[(0,o.jsx)("span",{className:l.admonitionIcon,children:t}),n]})}function p(e){let{children:t}=e;return t?(0,o.jsx)("div",{className:l.admonitionContent,children:t}):null}function d(e){const{type:t,icon:n,title:s,children:r,className:i}=e;return(0,o.jsxs)(u,{type:t,className:i,children:[s||n?(0,o.jsx)(h,{title:s,icon:n}):null,(0,o.jsx)(p,{children:r})]})}function f(e){return(0,o.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})})}const m={icon:(0,o.jsx)(f,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function k(e){return(0,o.jsx)(d,{...m,...e,className:(0,i.A)("alert alert--secondary",e.className),children:e.children})}function g(e){return(0,o.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})})}const x={icon:(0,o.jsx)(g,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function y(e){return(0,o.jsx)(d,{...x,...e,className:(0,i.A)("alert alert--success",e.className),children:e.children})}function _(e){return(0,o.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})})}const T={icon:(0,o.jsx)(_,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function b(e){return(0,o.jsx)(d,{...T,...e,className:(0,i.A)("alert alert--info",e.className),children:e.children})}function v(e){return(0,o.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})})}const I={icon:(0,o.jsx)(v,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function w(e){return(0,o.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})})}const C={icon:(0,o.jsx)(w,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const A={icon:(0,o.jsx)(v,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const E={...{note:k,tip:y,info:b,warning:function(e){return(0,o.jsx)(d,{...I,...e,className:(0,i.A)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,o.jsx)(d,{...C,...e,className:(0,i.A)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,o.jsx)(k,{title:"secondary",...e}),important:e=>(0,o.jsx)(b,{title:"important",...e}),success:e=>(0,o.jsx)(y,{title:"success",...e}),caution:function(e){return(0,o.jsx)(d,{...A,...e,className:(0,i.A)("alert alert--warning",e.className),children:e.children})}}};function S(e){const t=r(e),n=(s=t.type,E[s]||(console.warn(`No admonition component found for admonition type "${s}". Using Info as fallback.`),E.info));var s;return(0,o.jsx)(n,{...t})}},4336:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});n(6540);var s=n(4164),o=n(1312),r=n(7559),i=n(8774);const a={iconEdit:"iconEdit_Z9Sw"};var c=n(4848);function l(e){let{className:t,...n}=e;return(0,c.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,s.A)(a.iconEdit,t),"aria-hidden":"true",...n,children:(0,c.jsx)("g",{children:(0,c.jsx)("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})})})}function u(e){let{editUrl:t}=e;return(0,c.jsxs)(i.A,{to:t,className:r.G.common.editThisPage,children:[(0,c.jsx)(l,{}),(0,c.jsx)(o.A,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}var h=n(6266);function p(e){let{lastUpdatedAt:t}=e;const n=new Date(t),s=(0,h.i)({day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(n);return(0,c.jsx)(o.A,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,c.jsx)("b",{children:(0,c.jsx)("time",{dateTime:n.toISOString(),itemProp:"dateModified",children:s})})},children:" on {date}"})}function d(e){let{lastUpdatedBy:t}=e;return(0,c.jsx)(o.A,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,c.jsx)("b",{children:t})},children:" by {user}"})}function f(e){let{lastUpdatedAt:t,lastUpdatedBy:n}=e;return(0,c.jsxs)("span",{className:r.G.common.lastUpdated,children:[(0,c.jsx)(o.A,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t?(0,c.jsx)(p,{lastUpdatedAt:t}):"",byUser:n?(0,c.jsx)(d,{lastUpdatedBy:n}):""},children:"Last updated{atDate}{byUser}"}),!1]})}const m={lastUpdated:"lastUpdated_JAkA"};function k(e){let{className:t,editUrl:n,lastUpdatedAt:o,lastUpdatedBy:r}=e;return(0,c.jsxs)("div",{className:(0,s.A)("row",t),children:[(0,c.jsx)("div",{className:"col",children:n&&(0,c.jsx)(u,{editUrl:n})}),(0,c.jsx)("div",{className:(0,s.A)("col",m.lastUpdated),children:(o||r)&&(0,c.jsx)(f,{lastUpdatedAt:o,lastUpdatedBy:r})})]})}},2639:(e,t,n)=>{"use strict";n.d(t,{A:()=>gi});var s=n(6540),o=n(8453),r=n(5260),i=n(4164),a=n(2303),c=n(1765),l={characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};function u(e){var t=window.getSelection();t.empty(),t.addRange(e)}function h(e){return(e.metaKey||e.ctrlKey)&&!e.altKey&&"KeyZ"===e.code}function p(e){e=[e.firstChild];for(var t,n="";t=e.pop();)t.nodeType===Node.TEXT_NODE?n+=t.textContent:t.nodeType===Node.ELEMENT_NODE&&"BR"===t.nodeName&&(n+="\n"),t.nextSibling&&e.push(t.nextSibling),t.firstChild&&e.push(t.firstChild);return"\n"!==n[n.length-1]&&(n+="\n"),n}function d(e){var t=window.getSelection().getRangeAt(0),n=t.collapsed?0:t.toString().length,s=document.createRange();return s.setStart(e,0),s.setEnd(t.startContainer,t.startOffset),{position:e=(s=s.toString()).length,extent:n,content:s=(s=s.split("\n"))[t=s.length-1],line:t}}function f(e,t,n){0>=t&&(t=0),(!n||0>n)&&(n=t);var s=document.createRange();e=[e.firstChild];for(var o,r=0,i=t;o=e[e.length-1];){if(o.nodeType===Node.TEXT_NODE){if(r+o.textContent.length>=i){var a=i-r;if(i===t){if(i=s,a<o.textContent.length?i.setStart(o,a):i.setStartAfter(o),n!==t){i=n;continue}break}t=s,a<(n=o).textContent.length?t.setEnd(n,a):t.setEndAfter(n);break}r+=o.textContent.length}else if(o.nodeType===Node.ELEMENT_NODE&&"BR"===o.nodeName){if(r+1>=i){if(i===t){if(a=s,0<o.textContent.length?a.setStart(o,0):a.setStartAfter(o),n!==t){i=n;continue}break}t=s,0<(n=o).textContent.length?t.setEnd(n,0):t.setEndAfter(n);break}r++}e.pop(),o.nextSibling&&e.push(o.nextSibling),o.firstChild&&e.push(o.firstChild)}return s}var m,k,g,x=n(4848);!function(e){e[e.NONE=0]="NONE";e[e._abstract=1]="_abstract";e[e._accessor=2]="_accessor";e[e._as=3]="_as";e[e._assert=4]="_assert";e[e._asserts=5]="_asserts";e[e._async=6]="_async";e[e._await=7]="_await";e[e._checks=8]="_checks";e[e._constructor=9]="_constructor";e[e._declare=10]="_declare";e[e._enum=11]="_enum";e[e._exports=12]="_exports";e[e._from=13]="_from";e[e._get=14]="_get";e[e._global=15]="_global";e[e._implements=16]="_implements";e[e._infer=17]="_infer";e[e._interface=18]="_interface";e[e._is=19]="_is";e[e._keyof=20]="_keyof";e[e._mixins=21]="_mixins";e[e._module=22]="_module";e[e._namespace=23]="_namespace";e[e._of=24]="_of";e[e._opaque=25]="_opaque";e[e._out=26]="_out";e[e._override=27]="_override";e[e._private=28]="_private";e[e._protected=29]="_protected";e[e._proto=30]="_proto";e[e._public=31]="_public";e[e._readonly=32]="_readonly";e[e._require=33]="_require";e[e._satisfies=34]="_satisfies";e[e._set=35]="_set";e[e._static=36]="_static";e[e._symbol=37]="_symbol";e[e._type=38]="_type";e[e._unique=39]="_unique";e[e._using=40]="_using"}(m||(m={})),function(e){e[e.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";e[e.IS_KEYWORD=16]="IS_KEYWORD";e[e.IS_ASSIGN=32]="IS_ASSIGN";e[e.IS_RIGHT_ASSOCIATIVE=64]="IS_RIGHT_ASSOCIATIVE";e[e.IS_PREFIX=128]="IS_PREFIX";e[e.IS_POSTFIX=256]="IS_POSTFIX";e[e.IS_EXPRESSION_START=512]="IS_EXPRESSION_START";e[e.num=512]="num";e[e.bigint=1536]="bigint";e[e.decimal=2560]="decimal";e[e.regexp=3584]="regexp";e[e.string=4608]="string";e[e.name=5632]="name";e[e.eof=6144]="eof";e[e.bracketL=7680]="bracketL";e[e.bracketR=8192]="bracketR";e[e.braceL=9728]="braceL";e[e.braceBarL=10752]="braceBarL";e[e.braceR=11264]="braceR";e[e.braceBarR=12288]="braceBarR";e[e.parenL=13824]="parenL";e[e.parenR=14336]="parenR";e[e.comma=15360]="comma";e[e.semi=16384]="semi";e[e.colon=17408]="colon";e[e.doubleColon=18432]="doubleColon";e[e.dot=19456]="dot";e[e.question=20480]="question";e[e.questionDot=21504]="questionDot";e[e.arrow=22528]="arrow";e[e.template=23552]="template";e[e.ellipsis=24576]="ellipsis";e[e.backQuote=25600]="backQuote";e[e.dollarBraceL=27136]="dollarBraceL";e[e.at=27648]="at";e[e.hash=29184]="hash";e[e.eq=29728]="eq";e[e.assign=30752]="assign";e[e.preIncDec=32640]="preIncDec";e[e.postIncDec=33664]="postIncDec";e[e.bang=34432]="bang";e[e.tilde=35456]="tilde";e[e.pipeline=35841]="pipeline";e[e.nullishCoalescing=36866]="nullishCoalescing";e[e.logicalOR=37890]="logicalOR";e[e.logicalAND=38915]="logicalAND";e[e.bitwiseOR=39940]="bitwiseOR";e[e.bitwiseXOR=40965]="bitwiseXOR";e[e.bitwiseAND=41990]="bitwiseAND";e[e.equality=43015]="equality";e[e.lessThan=44040]="lessThan";e[e.greaterThan=45064]="greaterThan";e[e.relationalOrEqual=46088]="relationalOrEqual";e[e.bitShiftL=47113]="bitShiftL";e[e.bitShiftR=48137]="bitShiftR";e[e.plus=49802]="plus";e[e.minus=50826]="minus";e[e.modulo=51723]="modulo";e[e.star=52235]="star";e[e.slash=53259]="slash";e[e.exponent=54348]="exponent";e[e.jsxName=55296]="jsxName";e[e.jsxText=56320]="jsxText";e[e.jsxEmptyText=57344]="jsxEmptyText";e[e.jsxTagStart=58880]="jsxTagStart";e[e.jsxTagEnd=59392]="jsxTagEnd";e[e.typeParameterStart=60928]="typeParameterStart";e[e.nonNullAssertion=61440]="nonNullAssertion";e[e._break=62480]="_break";e[e._case=63504]="_case";e[e._catch=64528]="_catch";e[e._continue=65552]="_continue";e[e._debugger=66576]="_debugger";e[e._default=67600]="_default";e[e._do=68624]="_do";e[e._else=69648]="_else";e[e._finally=70672]="_finally";e[e._for=71696]="_for";e[e._function=73232]="_function";e[e._if=73744]="_if";e[e._return=74768]="_return";e[e._switch=75792]="_switch";e[e._throw=77456]="_throw";e[e._try=77840]="_try";e[e._var=78864]="_var";e[e._let=79888]="_let";e[e._const=80912]="_const";e[e._while=81936]="_while";e[e._with=82960]="_with";e[e._new=84496]="_new";e[e._this=85520]="_this";e[e._super=86544]="_super";e[e._class=87568]="_class";e[e._extends=88080]="_extends";e[e._export=89104]="_export";e[e._import=90640]="_import";e[e._yield=91664]="_yield";e[e._null=92688]="_null";e[e._true=93712]="_true";e[e._false=94736]="_false";e[e._in=95256]="_in";e[e._instanceof=96280]="_instanceof";e[e._typeof=97936]="_typeof";e[e._void=98960]="_void";e[e._delete=99984]="_delete";e[e._async=100880]="_async";e[e._get=101904]="_get";e[e._set=102928]="_set";e[e._declare=103952]="_declare";e[e._readonly=104976]="_readonly";e[e._abstract=106e3]="_abstract";e[e._static=107024]="_static";e[e._public=107536]="_public";e[e._private=108560]="_private";e[e._protected=109584]="_protected";e[e._override=110608]="_override";e[e._as=112144]="_as";e[e._enum=113168]="_enum";e[e._type=114192]="_type";e[e._implements=115216]="_implements"}(k||(k={}));class y{constructor(e,t,n){this.startTokenIndex=e,this.endTokenIndex=t,this.isFunctionScope=n}}class _{constructor(e,t,n,s,o,r,i,a,c,l,u,h,p){this.potentialArrowAt=e,this.noAnonFunctionType=t,this.inDisallowConditionalTypesContext=n,this.tokensLength=s,this.scopesLength=o,this.pos=r,this.type=i,this.contextualKeyword=a,this.start=c,this.end=l,this.isType=u,this.scopeDepth=h,this.error=p}}class T{constructor(){T.prototype.__init.call(this),T.prototype.__init2.call(this),T.prototype.__init3.call(this),T.prototype.__init4.call(this),T.prototype.__init5.call(this),T.prototype.__init6.call(this),T.prototype.__init7.call(this),T.prototype.__init8.call(this),T.prototype.__init9.call(this),T.prototype.__init10.call(this),T.prototype.__init11.call(this),T.prototype.__init12.call(this),T.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=k.eof}__init8(){this.contextualKeyword=m.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new _(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(e){this.potentialArrowAt=e.potentialArrowAt,this.noAnonFunctionType=e.noAnonFunctionType,this.inDisallowConditionalTypesContext=e.inDisallowConditionalTypesContext,this.tokens.length=e.tokensLength,this.scopes.length=e.scopesLength,this.pos=e.pos,this.type=e.type,this.contextualKeyword=e.contextualKeyword,this.start=e.start,this.end=e.end,this.isType=e.isType,this.scopeDepth=e.scopeDepth,this.error=e.error}}let b,v,I,w,C,A;function E(){return A++}function S(e){if("pos"in e){const t=function(e){let t=1,n=1;for(let s=0;s<e;s++)C.charCodeAt(s)===g.lineFeed?(t++,n=1):n++;return new N(t,n)}(e.pos);e.message+=` (${t.line}:${t.column})`,e.loc=t}return e}!function(e){e[e.backSpace=8]="backSpace";e[e.lineFeed=10]="lineFeed";e[e.tab=9]="tab";e[e.carriageReturn=13]="carriageReturn";e[e.shiftOut=14]="shiftOut";e[e.space=32]="space";e[e.exclamationMark=33]="exclamationMark";e[e.quotationMark=34]="quotationMark";e[e.numberSign=35]="numberSign";e[e.dollarSign=36]="dollarSign";e[e.percentSign=37]="percentSign";e[e.ampersand=38]="ampersand";e[e.apostrophe=39]="apostrophe";e[e.leftParenthesis=40]="leftParenthesis";e[e.rightParenthesis=41]="rightParenthesis";e[e.asterisk=42]="asterisk";e[e.plusSign=43]="plusSign";e[e.comma=44]="comma";e[e.dash=45]="dash";e[e.dot=46]="dot";e[e.slash=47]="slash";e[e.digit0=48]="digit0";e[e.digit1=49]="digit1";e[e.digit2=50]="digit2";e[e.digit3=51]="digit3";e[e.digit4=52]="digit4";e[e.digit5=53]="digit5";e[e.digit6=54]="digit6";e[e.digit7=55]="digit7";e[e.digit8=56]="digit8";e[e.digit9=57]="digit9";e[e.colon=58]="colon";e[e.semicolon=59]="semicolon";e[e.lessThan=60]="lessThan";e[e.equalsTo=61]="equalsTo";e[e.greaterThan=62]="greaterThan";e[e.questionMark=63]="questionMark";e[e.atSign=64]="atSign";e[e.uppercaseA=65]="uppercaseA";e[e.uppercaseB=66]="uppercaseB";e[e.uppercaseC=67]="uppercaseC";e[e.uppercaseD=68]="uppercaseD";e[e.uppercaseE=69]="uppercaseE";e[e.uppercaseF=70]="uppercaseF";e[e.uppercaseG=71]="uppercaseG";e[e.uppercaseH=72]="uppercaseH";e[e.uppercaseI=73]="uppercaseI";e[e.uppercaseJ=74]="uppercaseJ";e[e.uppercaseK=75]="uppercaseK";e[e.uppercaseL=76]="uppercaseL";e[e.uppercaseM=77]="uppercaseM";e[e.uppercaseN=78]="uppercaseN";e[e.uppercaseO=79]="uppercaseO";e[e.uppercaseP=80]="uppercaseP";e[e.uppercaseQ=81]="uppercaseQ";e[e.uppercaseR=82]="uppercaseR";e[e.uppercaseS=83]="uppercaseS";e[e.uppercaseT=84]="uppercaseT";e[e.uppercaseU=85]="uppercaseU";e[e.uppercaseV=86]="uppercaseV";e[e.uppercaseW=87]="uppercaseW";e[e.uppercaseX=88]="uppercaseX";e[e.uppercaseY=89]="uppercaseY";e[e.uppercaseZ=90]="uppercaseZ";e[e.leftSquareBracket=91]="leftSquareBracket";e[e.backslash=92]="backslash";e[e.rightSquareBracket=93]="rightSquareBracket";e[e.caret=94]="caret";e[e.underscore=95]="underscore";e[e.graveAccent=96]="graveAccent";e[e.lowercaseA=97]="lowercaseA";e[e.lowercaseB=98]="lowercaseB";e[e.lowercaseC=99]="lowercaseC";e[e.lowercaseD=100]="lowercaseD";e[e.lowercaseE=101]="lowercaseE";e[e.lowercaseF=102]="lowercaseF";e[e.lowercaseG=103]="lowercaseG";e[e.lowercaseH=104]="lowercaseH";e[e.lowercaseI=105]="lowercaseI";e[e.lowercaseJ=106]="lowercaseJ";e[e.lowercaseK=107]="lowercaseK";e[e.lowercaseL=108]="lowercaseL";e[e.lowercaseM=109]="lowercaseM";e[e.lowercaseN=110]="lowercaseN";e[e.lowercaseO=111]="lowercaseO";e[e.lowercaseP=112]="lowercaseP";e[e.lowercaseQ=113]="lowercaseQ";e[e.lowercaseR=114]="lowercaseR";e[e.lowercaseS=115]="lowercaseS";e[e.lowercaseT=116]="lowercaseT";e[e.lowercaseU=117]="lowercaseU";e[e.lowercaseV=118]="lowercaseV";e[e.lowercaseW=119]="lowercaseW";e[e.lowercaseX=120]="lowercaseX";e[e.lowercaseY=121]="lowercaseY";e[e.lowercaseZ=122]="lowercaseZ";e[e.leftCurlyBrace=123]="leftCurlyBrace";e[e.verticalBar=124]="verticalBar";e[e.rightCurlyBrace=125]="rightCurlyBrace";e[e.tilde=126]="tilde";e[e.nonBreakingSpace=160]="nonBreakingSpace";e[e.oghamSpaceMark=5760]="oghamSpaceMark";e[e.lineSeparator=8232]="lineSeparator";e[e.paragraphSeparator=8233]="paragraphSeparator"}(g||(g={}));class N{constructor(e,t){this.line=e,this.column=t}}function j(e,t,n,s){C=e,w=new T,A=1,b=t,v=n,I=s}function R(e){return w.contextualKeyword===e}function L(e){const t=me();return t.type===k.name&&t.contextualKeyword===e}function O(e){return w.contextualKeyword===e&&ue(k.name)}function D(e){O(e)||U()}function P(){return pe(k.eof)||pe(k.braceR)||B()}function B(){const e=w.tokens[w.tokens.length-1];for(let t=e?e.end:0;t<w.start;t++){const e=C.charCodeAt(t);if(e===g.lineFeed||e===g.carriageReturn||8232===e||8233===e)return!0}return!1}function q(){const e=ke();for(let t=w.end;t<e;t++){const e=C.charCodeAt(t);if(e===g.lineFeed||e===g.carriageReturn||8232===e||8233===e)return!0}return!1}function M(){return ue(k.semi)||P()}function F(){M()||U('Unexpected token, expected ";"')}function $(e){ue(e)||U(`Unexpected token, expected "${function(e){switch(e){case k.num:return"num";case k.bigint:return"bigint";case k.decimal:return"decimal";case k.regexp:return"regexp";case k.string:return"string";case k.name:return"name";case k.eof:return"eof";case k.bracketL:return"[";case k.bracketR:return"]";case k.braceL:return"{";case k.braceBarL:return"{|";case k.braceR:return"}";case k.braceBarR:return"|}";case k.parenL:return"(";case k.parenR:return")";case k.comma:return",";case k.semi:return";";case k.colon:return":";case k.doubleColon:return"::";case k.dot:return".";case k.question:return"?";case k.questionDot:return"?.";case k.arrow:return"=>";case k.template:return"template";case k.ellipsis:return"...";case k.backQuote:return"`";case k.dollarBraceL:return"${";case k.at:return"@";case k.hash:return"#";case k.eq:return"=";case k.assign:return"_=";case k.preIncDec:case k.postIncDec:return"++/--";case k.bang:return"!";case k.tilde:return"~";case k.pipeline:return"|>";case k.nullishCoalescing:return"??";case k.logicalOR:return"||";case k.logicalAND:return"&&";case k.bitwiseOR:return"|";case k.bitwiseXOR:return"^";case k.bitwiseAND:return"&";case k.equality:return"==/!=";case k.lessThan:return"<";case k.greaterThan:return">";case k.relationalOrEqual:return"<=/>=";case k.bitShiftL:return"<<";case k.bitShiftR:return">>/>>>";case k.plus:return"+";case k.minus:return"-";case k.modulo:return"%";case k.star:return"*";case k.slash:return"/";case k.exponent:return"**";case k.jsxName:return"jsxName";case k.jsxText:return"jsxText";case k.jsxEmptyText:return"jsxEmptyText";case k.jsxTagStart:return"jsxTagStart";case k.jsxTagEnd:return"jsxTagEnd";case k.typeParameterStart:return"typeParameterStart";case k.nonNullAssertion:return"nonNullAssertion";case k._break:return"break";case k._case:return"case";case k._catch:return"catch";case k._continue:return"continue";case k._debugger:return"debugger";case k._default:return"default";case k._do:return"do";case k._else:return"else";case k._finally:return"finally";case k._for:return"for";case k._function:return"function";case k._if:return"if";case k._return:return"return";case k._switch:return"switch";case k._throw:return"throw";case k._try:return"try";case k._var:return"var";case k._let:return"let";case k._const:return"const";case k._while:return"while";case k._with:return"with";case k._new:return"new";case k._this:return"this";case k._super:return"super";case k._class:return"class";case k._extends:return"extends";case k._export:return"export";case k._import:return"import";case k._yield:return"yield";case k._null:return"null";case k._true:return"true";case k._false:return"false";case k._in:return"in";case k._instanceof:return"instanceof";case k._typeof:return"typeof";case k._void:return"void";case k._delete:return"delete";case k._async:return"async";case k._get:return"get";case k._set:return"set";case k._declare:return"declare";case k._readonly:return"readonly";case k._abstract:return"abstract";case k._static:return"static";case k._public:return"public";case k._private:return"private";case k._protected:return"protected";case k._override:return"override";case k._as:return"as";case k._enum:return"enum";case k._type:return"type";case k._implements:return"implements";default:return""}}(e)}"`)}function U(e="Unexpected token",t=w.start){if(w.error)return;const n=new SyntaxError(e);n.pos=t,w.error=n,w.pos=C.length,ve(k.eof)}const K=[9,11,12,g.space,g.nonBreakingSpace,g.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],H=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,V=new Uint8Array(65536);for(const xi of K)V[xi]=1;function W(e){if(e<48)return 36===e;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return 95===e;if(e<123)return!0;if(e<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const z=new Uint8Array(65536);for(let xi=0;xi<128;xi++)z[xi]=W(xi)?1:0;for(let xi=128;xi<65536;xi++)z[xi]=1;for(const xi of K)z[xi]=0;z[8232]=0,z[8233]=0;const G=z.slice();for(let xi=g.digit0;xi<=g.digit9;xi++)G[xi]=0;const X=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,m._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,324,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,351,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,378,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,405,-1,-1,-1,-1,-1,-1,-1,-1,m._accessor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._as<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,459,-1,-1,-1,-1,-1,594,-1,-1,-1,-1,-1,-1,486,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,513,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,540,-1,-1,-1,-1,-1,-1,m._assert<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,567,-1,-1,-1,-1,-1,-1,-1,m._asserts<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,621,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,648,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._async<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,702,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,729,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,756,-1,-1,-1,-1,-1,-1,m._await<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,810,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,837,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,864,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,891,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._break<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,945,-1,-1,-1,-1,-1,-1,1107,-1,-1,-1,1242,-1,-1,1350,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,972,1026,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,999,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._case<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1053,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._catch<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1134,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1161,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1188,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1215,-1,-1,-1,-1,-1,-1,-1,m._checks<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1269,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1296,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1323,-1,-1,-1,-1,-1,-1,-1,1+(k._class<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1377,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1404,1620,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1431,-1,-1,-1,-1,-1,-1,1+(k._const<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1458,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1485,-1,-1,-1,-1,-1,-1,-1,-1,1512,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1539,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1566,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1593,-1,-1,-1,-1,-1,-1,-1,-1,m._constructor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1647,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1674,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1701,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1728,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._continue<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1782,-1,-1,-1,-1,-1,-1,-1,-1,-1,2349,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1809,1971,-1,-1,2106,-1,-1,-1,-1,-1,2241,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1836,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1863,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1890,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1917,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1944,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._debugger<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1998,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2025,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2052,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2079,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._declare<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2133,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2160,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2187,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2214,-1,-1,-1,-1,-1,-1,1+(k._default<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2268,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2295,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2322,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._delete<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._do<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2403,-1,2484,-1,-1,-1,-1,-1,-1,-1,-1,-1,2565,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2430,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._else<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2511,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2538,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._enum<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2592,-1,-1,-1,2727,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2619,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2646,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2673,-1,-1,-1,-1,-1,-1,1+(k._export<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2700,-1,-1,-1,-1,-1,-1,-1,m._exports<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2754,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2781,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2808,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2835,-1,-1,-1,-1,-1,-1,-1,1+(k._extends<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2889,-1,-1,-1,-1,-1,-1,-1,2997,-1,-1,-1,-1,-1,3159,-1,-1,3213,-1,-1,3294,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2916,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2943,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2970,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._false<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3024,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3051,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3078,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3105,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3132,-1,1+(k._finally<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3186,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._for<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3240,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3267,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._from<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3321,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3348,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3375,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3402,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3429,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3456,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._function<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3510,-1,-1,-1,-1,-1,-1,3564,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3537,-1,-1,-1,-1,-1,-1,m._get<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3591,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3618,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3645,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._global<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3726,-1,-1,-1,-1,-1,-1,3753,4077,-1,-1,-1,-1,4590,-1,-1,-1,-1,-1,-1,-1,1+(k._if<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3780,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3807,-1,-1,3996,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3834,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3861,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3888,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3915,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3942,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3969,-1,-1,-1,-1,-1,-1,-1,m._implements<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4023,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4050,-1,-1,-1,-1,-1,-1,1+(k._import<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._in<<1),-1,-1,-1,-1,-1,4104,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4185,4401,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4131,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4158,-1,-1,-1,-1,-1,-1,-1,-1,m._infer<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4212,-1,-1,-1,-1,-1,-1,-1,4239,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4266,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4293,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4320,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4347,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4374,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._instanceof<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4428,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4455,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4482,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4509,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4536,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4563,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._interface<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._is<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4644,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4671,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4698,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4725,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._keyof<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4779,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4806,-1,-1,-1,-1,-1,-1,1+(k._let<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4860,-1,-1,-1,-1,-1,4995,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4887,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4914,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4941,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4968,-1,-1,-1,-1,-1,-1,-1,m._mixins<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5022,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5049,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5076,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5103,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._module<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5157,-1,-1,-1,5373,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5427,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5184,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5211,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5238,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5265,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5292,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5319,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5346,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._namespace<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5400,-1,-1,-1,1+(k._new<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5454,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5481,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._null<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5535,-1,-1,-1,-1,-1,-1,-1,-1,-1,5562,-1,-1,-1,-1,5697,5751,-1,-1,-1,-1,m._of<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5589,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5616,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5643,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5670,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._opaque<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5724,-1,-1,-1,-1,-1,-1,m._out<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5778,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5805,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5832,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5859,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5886,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5913,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._override<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5967,-1,-1,6345,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5994,-1,-1,-1,-1,-1,6129,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6021,-1,-1,-1,-1,-1,6048,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6075,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6102,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._private<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6156,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6183,-1,-1,-1,-1,-1,-1,-1,-1,-1,6318,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6210,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6237,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6264,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6291,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._protected<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._proto<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6372,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6399,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6426,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6453,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._public<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6507,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6534,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6696,-1,-1,6831,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6561,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6588,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6615,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6642,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6669,-1,m._readonly<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6723,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6750,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6777,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6804,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._require<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6858,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6885,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6912,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._return<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6966,-1,-1,-1,7182,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7236,7371,-1,7479,-1,7614,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6993,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7020,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7047,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7074,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7101,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7128,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7155,-1,-1,-1,-1,-1,-1,-1,m._satisfies<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7209,-1,-1,-1,-1,-1,-1,m._set<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7263,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7290,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7317,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7344,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._static<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7398,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7425,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7452,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._super<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7506,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7533,-1,-1,-1,-1,-1,-1,-1,-1,-1,7560,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7587,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._switch<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7641,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7668,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7695,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7722,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._symbol<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7776,-1,-1,-1,-1,-1,-1,-1,-1,-1,7938,-1,-1,-1,-1,-1,-1,8046,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7803,-1,-1,-1,-1,-1,-1,-1,-1,7857,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7830,-1,-1,-1,-1,-1,-1,-1,1+(k._this<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7884,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7911,-1,-1,-1,1+(k._throw<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7965,-1,-1,-1,8019,-1,-1,-1,-1,-1,-1,7992,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._true<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._try<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8073,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._type<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8127,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8154,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._typeof<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8208,-1,-1,-1,-1,8343,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8235,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8262,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8289,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8316,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._unique<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8370,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8397,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8424,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,m._using<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8478,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8532,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8505,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._var<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8559,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8586,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._void<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8640,8748,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8667,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8721,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._while<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._with<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(k._yield<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);var J,Y;function Q(e){const t=e.identifierRole;return t===J.TopLevelDeclaration||t===J.FunctionScopedDeclaration||t===J.BlockScopedDeclaration||t===J.ObjectShorthandTopLevelDeclaration||t===J.ObjectShorthandFunctionScopedDeclaration||t===J.ObjectShorthandBlockScopedDeclaration}function Z(e){const t=e.identifierRole;return t===J.FunctionScopedDeclaration||t===J.BlockScopedDeclaration||t===J.ObjectShorthandFunctionScopedDeclaration||t===J.ObjectShorthandBlockScopedDeclaration}function ee(e){const t=e.identifierRole;return t===J.TopLevelDeclaration||t===J.ObjectShorthandTopLevelDeclaration||t===J.ImportDeclaration}function te(e){const t=e.identifierRole;return t===J.TopLevelDeclaration||t===J.BlockScopedDeclaration||t===J.ObjectShorthandTopLevelDeclaration||t===J.ObjectShorthandBlockScopedDeclaration}function ne(e){const t=e.identifierRole;return t===J.FunctionScopedDeclaration||t===J.ObjectShorthandFunctionScopedDeclaration}function se(e){return e.identifierRole===J.ObjectShorthandTopLevelDeclaration||e.identifierRole===J.ObjectShorthandBlockScopedDeclaration||e.identifierRole===J.ObjectShorthandFunctionScopedDeclaration}!function(e){e[e.Access=0]="Access";e[e.ExportAccess=1]="ExportAccess";e[e.TopLevelDeclaration=2]="TopLevelDeclaration";e[e.FunctionScopedDeclaration=3]="FunctionScopedDeclaration";e[e.BlockScopedDeclaration=4]="BlockScopedDeclaration";e[e.ObjectShorthandTopLevelDeclaration=5]="ObjectShorthandTopLevelDeclaration";e[e.ObjectShorthandFunctionScopedDeclaration=6]="ObjectShorthandFunctionScopedDeclaration";e[e.ObjectShorthandBlockScopedDeclaration=7]="ObjectShorthandBlockScopedDeclaration";e[e.ObjectShorthand=8]="ObjectShorthand";e[e.ImportDeclaration=9]="ImportDeclaration";e[e.ObjectKey=10]="ObjectKey";e[e.ImportAccess=11]="ImportAccess"}(J||(J={})),function(e){e[e.NoChildren=0]="NoChildren";e[e.OneChild=1]="OneChild";e[e.StaticChildren=2]="StaticChildren";e[e.KeyAfterPropSpread=3]="KeyAfterPropSpread"}(Y||(Y={}));class oe{constructor(){this.type=w.type,this.contextualKeyword=w.contextualKeyword,this.start=w.start,this.end=w.end,this.scopeDepth=w.scopeDepth,this.isType=w.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function re(){w.tokens.push(new oe),ye()}function ie(){w.tokens.push(new oe),w.start=w.pos,function(){for(;;){if(w.pos>=C.length)return void U("Unterminated template");const e=C.charCodeAt(w.pos);if(e===g.graveAccent||e===g.dollarSign&&C.charCodeAt(w.pos+1)===g.leftCurlyBrace)return w.pos===w.start&&pe(k.template)?e===g.dollarSign?(w.pos+=2,void ve(k.dollarBraceL)):(++w.pos,void ve(k.backQuote)):void ve(k.template);e===g.backslash&&w.pos++,w.pos++}}()}function ae(){w.type===k.assign&&--w.pos,function(){const e=w.pos;let t=!1,n=!1;for(;;){if(w.pos>=C.length)return void U("Unterminated regular expression",e);const s=C.charCodeAt(w.pos);if(t)t=!1;else{if(s===g.leftSquareBracket)n=!0;else if(s===g.rightSquareBracket&&n)n=!1;else if(s===g.slash&&!n)break;t=s===g.backslash}++w.pos}++w.pos,function(){for(;w.pos<C.length;){const e=C.charCodeAt(w.pos);if(z[e])w.pos++;else{if(e!==g.backslash)break;if(w.pos+=2,C.charCodeAt(w.pos)===g.leftCurlyBrace){for(;w.pos<C.length&&C.charCodeAt(w.pos)!==g.rightCurlyBrace;)w.pos++;w.pos++}}}}(),ve(k.regexp)}()}function ce(e){for(let n=w.tokens.length-e;n<w.tokens.length;n++)w.tokens[n].isType=!0;const t=w.isType;return w.isType=!0,t}function le(e){w.isType=e}function ue(e){return!!pe(e)&&(re(),!0)}function he(e){const t=w.isType;w.isType=!0,ue(e),w.isType=t}function pe(e){return w.type===e}function de(){const e=w.snapshot();re();const t=w.type;return w.restoreFromSnapshot(e),t}class fe{constructor(e,t){this.type=e,this.contextualKeyword=t}}function me(){const e=w.snapshot();re();const t=w.type,n=w.contextualKeyword;return w.restoreFromSnapshot(e),new fe(t,n)}function ke(){return ge(w.pos)}function ge(e){H.lastIndex=e;return e+H.exec(C)[0].length}function xe(){return C.charCodeAt(ke())}function ye(){if(be(),w.start=w.pos,w.pos>=C.length){const e=w.tokens;return e.length>=2&&e[e.length-1].start>=C.length&&e[e.length-2].start>=C.length&&U("Unexpectedly reached the end of input."),void ve(k.eof)}var e;e=C.charCodeAt(w.pos),G[e]||e===g.backslash||e===g.atSign&&C.charCodeAt(w.pos+1)===g.atSign?function(){let e=0,t=0,n=w.pos;for(;n<C.length&&(t=C.charCodeAt(n),!(t<g.lowercaseA||t>g.lowercaseZ));){const s=X[e+(t-g.lowercaseA)+1];if(-1===s)break;e=s,n++}const s=X[e];if(s>-1&&!z[t])return w.pos=n,void(1&s?ve(s>>>1):ve(k.name,s>>>1));for(;n<C.length;){const e=C.charCodeAt(n);if(z[e])n++;else if(e===g.backslash){if(n+=2,C.charCodeAt(n)===g.leftCurlyBrace){for(;n<C.length&&C.charCodeAt(n)!==g.rightCurlyBrace;)n++;n++}}else{if(e!==g.atSign||C.charCodeAt(n+1)!==g.atSign)break;n+=2}}w.pos=n,ve(k.name)}():Ce(e)}function _e(){for(;C.charCodeAt(w.pos)!==g.asterisk||C.charCodeAt(w.pos+1)!==g.slash;)if(w.pos++,w.pos>C.length)return void U("Unterminated comment",w.pos-2);w.pos+=2}function Te(e){let t=C.charCodeAt(w.pos+=e);if(w.pos<C.length)for(;t!==g.lineFeed&&t!==g.carriageReturn&&t!==g.lineSeparator&&t!==g.paragraphSeparator&&++w.pos<C.length;)t=C.charCodeAt(w.pos)}function be(){for(;w.pos<C.length;){const e=C.charCodeAt(w.pos);switch(e){case g.carriageReturn:C.charCodeAt(w.pos+1)===g.lineFeed&&++w.pos;case g.lineFeed:case g.lineSeparator:case g.paragraphSeparator:++w.pos;break;case g.slash:switch(C.charCodeAt(w.pos+1)){case g.asterisk:w.pos+=2,_e();break;case g.slash:Te(2);break;default:return}break;default:if(!V[e])return;++w.pos}}}function ve(e,t=m.NONE){w.end=w.pos,w.type=e,w.contextualKeyword=t}function Ie(){if(w.isType)return void Ae(k.greaterThan,1);const e=C.charCodeAt(w.pos+1);if(e===g.greaterThan){const e=C.charCodeAt(w.pos+2)===g.greaterThan?3:2;return C.charCodeAt(w.pos+e)===g.equalsTo?void Ae(k.assign,e+1):void Ae(k.bitShiftR,e)}e===g.equalsTo?Ae(k.relationalOrEqual,2):Ae(k.greaterThan,1)}function we(){w.type===k.greaterThan&&(w.pos-=1,Ie())}function Ce(e){switch(e){case g.numberSign:return++w.pos,void ve(k.hash);case g.dot:return void function(){const e=C.charCodeAt(w.pos+1);e>=g.digit0&&e<=g.digit9?Se(!0):e===g.dot&&C.charCodeAt(w.pos+2)===g.dot?(w.pos+=3,ve(k.ellipsis)):(++w.pos,ve(k.dot))}();case g.leftParenthesis:return++w.pos,void ve(k.parenL);case g.rightParenthesis:return++w.pos,void ve(k.parenR);case g.semicolon:return++w.pos,void ve(k.semi);case g.comma:return++w.pos,void ve(k.comma);case g.leftSquareBracket:return++w.pos,void ve(k.bracketL);case g.rightSquareBracket:return++w.pos,void ve(k.bracketR);case g.leftCurlyBrace:return void(I&&C.charCodeAt(w.pos+1)===g.verticalBar?Ae(k.braceBarL,2):(++w.pos,ve(k.braceL)));case g.rightCurlyBrace:return++w.pos,void ve(k.braceR);case g.colon:return void(C.charCodeAt(w.pos+1)===g.colon?Ae(k.doubleColon,2):(++w.pos,ve(k.colon)));case g.questionMark:return void function(){const e=C.charCodeAt(w.pos+1),t=C.charCodeAt(w.pos+2);e!==g.questionMark||I&&w.isType?e!==g.dot||t>=g.digit0&&t<=g.digit9?(++w.pos,ve(k.question)):(w.pos+=2,ve(k.questionDot)):t===g.equalsTo?Ae(k.assign,3):Ae(k.nullishCoalescing,2)}();case g.atSign:return++w.pos,void ve(k.at);case g.graveAccent:return++w.pos,void ve(k.backQuote);case g.digit0:{const e=C.charCodeAt(w.pos+1);if(e===g.lowercaseX||e===g.uppercaseX||e===g.lowercaseO||e===g.uppercaseO||e===g.lowercaseB||e===g.uppercaseB)return void function(){w.pos+=2;for(;;){const e=C.charCodeAt(w.pos);if(!(e>=g.digit0&&e<=g.digit9||e>=g.lowercaseA&&e<=g.lowercaseF||e>=g.uppercaseA&&e<=g.uppercaseF||e===g.underscore))break;w.pos++}const e=C.charCodeAt(w.pos);e===g.lowercaseN?(++w.pos,ve(k.bigint)):ve(k.num)}()}case g.digit1:case g.digit2:case g.digit3:case g.digit4:case g.digit5:case g.digit6:case g.digit7:case g.digit8:case g.digit9:return void Se(!1);case g.quotationMark:case g.apostrophe:return void function(e){for(w.pos++;;){if(w.pos>=C.length)return void U("Unterminated string constant");const t=C.charCodeAt(w.pos);if(t===g.backslash)w.pos++;else if(t===e)break;w.pos++}w.pos++,ve(k.string)}(e);case g.slash:return void(C.charCodeAt(w.pos+1)===g.equalsTo?Ae(k.assign,2):Ae(k.slash,1));case g.percentSign:case g.asterisk:return void function(e){let t=e===g.asterisk?k.star:k.modulo,n=1,s=C.charCodeAt(w.pos+1);e===g.asterisk&&s===g.asterisk&&(n++,s=C.charCodeAt(w.pos+2),t=k.exponent),s===g.equalsTo&&C.charCodeAt(w.pos+2)!==g.greaterThan&&(n++,t=k.assign),Ae(t,n)}(e);case g.verticalBar:case g.ampersand:return void function(e){const t=C.charCodeAt(w.pos+1);if(t!==e){if(e===g.verticalBar){if(t===g.greaterThan)return void Ae(k.pipeline,2);if(t===g.rightCurlyBrace&&I)return void Ae(k.braceBarR,2)}t!==g.equalsTo?Ae(e===g.verticalBar?k.bitwiseOR:k.bitwiseAND,1):Ae(k.assign,2)}else C.charCodeAt(w.pos+2)===g.equalsTo?Ae(k.assign,3):Ae(e===g.verticalBar?k.logicalOR:k.logicalAND,2)}(e);case g.caret:return void(C.charCodeAt(w.pos+1)===g.equalsTo?Ae(k.assign,2):Ae(k.bitwiseXOR,1));case g.plusSign:case g.dash:return void function(e){const t=C.charCodeAt(w.pos+1);t!==e?t===g.equalsTo?Ae(k.assign,2):e===g.plusSign?Ae(k.plus,1):Ae(k.minus,1):Ae(k.preIncDec,2)}(e);case g.lessThan:return void function(){const e=C.charCodeAt(w.pos+1);if(e===g.lessThan)return C.charCodeAt(w.pos+2)===g.equalsTo?void Ae(k.assign,3):void(w.isType?Ae(k.lessThan,1):Ae(k.bitShiftL,2));e===g.equalsTo?Ae(k.relationalOrEqual,2):Ae(k.lessThan,1)}();case g.greaterThan:return void Ie();case g.equalsTo:case g.exclamationMark:return void function(e){const t=C.charCodeAt(w.pos+1);if(t!==g.equalsTo)return e===g.equalsTo&&t===g.greaterThan?(w.pos+=2,void ve(k.arrow)):void Ae(e===g.equalsTo?k.eq:k.bang,1);Ae(k.equality,C.charCodeAt(w.pos+2)===g.equalsTo?3:2)}(e);case g.tilde:return void Ae(k.tilde,1)}U(`Unexpected character '${String.fromCharCode(e)}'`,w.pos)}function Ae(e,t){w.pos+=t,ve(e)}function Ee(){for(;;){const e=C.charCodeAt(w.pos);if(!(e>=g.digit0&&e<=g.digit9||e===g.underscore))break;w.pos++}}function Se(e){let t=!1,n=!1;e||Ee();let s=C.charCodeAt(w.pos);s===g.dot&&(++w.pos,Ee(),s=C.charCodeAt(w.pos)),s!==g.uppercaseE&&s!==g.lowercaseE||(s=C.charCodeAt(++w.pos),s!==g.plusSign&&s!==g.dash||++w.pos,Ee(),s=C.charCodeAt(w.pos)),s===g.lowercaseN?(++w.pos,t=!0):s===g.lowercaseM&&(++w.pos,n=!0),ve(t?k.bigint:n?k.decimal:k.num)}function Ne(e,t=e.currentIndex()){let n=t+1;if(je(e,n)){const s=e.identifierNameAtIndex(t);return{isType:!1,leftName:s,rightName:s,endIndex:n}}if(n++,je(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,je(e,n))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:n};if(n++,je(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${t}`)}function je(e,t){const n=e.tokens[t];return n.type===k.braceR||n.type===k.comma}const Re=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp","\xa0"],["iexcl","\xa1"],["cent","\xa2"],["pound","\xa3"],["curren","\xa4"],["yen","\xa5"],["brvbar","\xa6"],["sect","\xa7"],["uml","\xa8"],["copy","\xa9"],["ordf","\xaa"],["laquo","\xab"],["not","\xac"],["shy","\xad"],["reg","\xae"],["macr","\xaf"],["deg","\xb0"],["plusmn","\xb1"],["sup2","\xb2"],["sup3","\xb3"],["acute","\xb4"],["micro","\xb5"],["para","\xb6"],["middot","\xb7"],["cedil","\xb8"],["sup1","\xb9"],["ordm","\xba"],["raquo","\xbb"],["frac14","\xbc"],["frac12","\xbd"],["frac34","\xbe"],["iquest","\xbf"],["Agrave","\xc0"],["Aacute","\xc1"],["Acirc","\xc2"],["Atilde","\xc3"],["Auml","\xc4"],["Aring","\xc5"],["AElig","\xc6"],["Ccedil","\xc7"],["Egrave","\xc8"],["Eacute","\xc9"],["Ecirc","\xca"],["Euml","\xcb"],["Igrave","\xcc"],["Iacute","\xcd"],["Icirc","\xce"],["Iuml","\xcf"],["ETH","\xd0"],["Ntilde","\xd1"],["Ograve","\xd2"],["Oacute","\xd3"],["Ocirc","\xd4"],["Otilde","\xd5"],["Ouml","\xd6"],["times","\xd7"],["Oslash","\xd8"],["Ugrave","\xd9"],["Uacute","\xda"],["Ucirc","\xdb"],["Uuml","\xdc"],["Yacute","\xdd"],["THORN","\xde"],["szlig","\xdf"],["agrave","\xe0"],["aacute","\xe1"],["acirc","\xe2"],["atilde","\xe3"],["auml","\xe4"],["aring","\xe5"],["aelig","\xe6"],["ccedil","\xe7"],["egrave","\xe8"],["eacute","\xe9"],["ecirc","\xea"],["euml","\xeb"],["igrave","\xec"],["iacute","\xed"],["icirc","\xee"],["iuml","\xef"],["eth","\xf0"],["ntilde","\xf1"],["ograve","\xf2"],["oacute","\xf3"],["ocirc","\xf4"],["otilde","\xf5"],["ouml","\xf6"],["divide","\xf7"],["oslash","\xf8"],["ugrave","\xf9"],["uacute","\xfa"],["ucirc","\xfb"],["uuml","\xfc"],["yacute","\xfd"],["thorn","\xfe"],["yuml","\xff"],["OElig","\u0152"],["oelig","\u0153"],["Scaron","\u0160"],["scaron","\u0161"],["Yuml","\u0178"],["fnof","\u0192"],["circ","\u02c6"],["tilde","\u02dc"],["Alpha","\u0391"],["Beta","\u0392"],["Gamma","\u0393"],["Delta","\u0394"],["Epsilon","\u0395"],["Zeta","\u0396"],["Eta","\u0397"],["Theta","\u0398"],["Iota","\u0399"],["Kappa","\u039a"],["Lambda","\u039b"],["Mu","\u039c"],["Nu","\u039d"],["Xi","\u039e"],["Omicron","\u039f"],["Pi","\u03a0"],["Rho","\u03a1"],["Sigma","\u03a3"],["Tau","\u03a4"],["Upsilon","\u03a5"],["Phi","\u03a6"],["Chi","\u03a7"],["Psi","\u03a8"],["Omega","\u03a9"],["alpha","\u03b1"],["beta","\u03b2"],["gamma","\u03b3"],["delta","\u03b4"],["epsilon","\u03b5"],["zeta","\u03b6"],["eta","\u03b7"],["theta","\u03b8"],["iota","\u03b9"],["kappa","\u03ba"],["lambda","\u03bb"],["mu","\u03bc"],["nu","\u03bd"],["xi","\u03be"],["omicron","\u03bf"],["pi","\u03c0"],["rho","\u03c1"],["sigmaf","\u03c2"],["sigma","\u03c3"],["tau","\u03c4"],["upsilon","\u03c5"],["phi","\u03c6"],["chi","\u03c7"],["psi","\u03c8"],["omega","\u03c9"],["thetasym","\u03d1"],["upsih","\u03d2"],["piv","\u03d6"],["ensp","\u2002"],["emsp","\u2003"],["thinsp","\u2009"],["zwnj","\u200c"],["zwj","\u200d"],["lrm","\u200e"],["rlm","\u200f"],["ndash","\u2013"],["mdash","\u2014"],["lsquo","\u2018"],["rsquo","\u2019"],["sbquo","\u201a"],["ldquo","\u201c"],["rdquo","\u201d"],["bdquo","\u201e"],["dagger","\u2020"],["Dagger","\u2021"],["bull","\u2022"],["hellip","\u2026"],["permil","\u2030"],["prime","\u2032"],["Prime","\u2033"],["lsaquo","\u2039"],["rsaquo","\u203a"],["oline","\u203e"],["frasl","\u2044"],["euro","\u20ac"],["image","\u2111"],["weierp","\u2118"],["real","\u211c"],["trade","\u2122"],["alefsym","\u2135"],["larr","\u2190"],["uarr","\u2191"],["rarr","\u2192"],["darr","\u2193"],["harr","\u2194"],["crarr","\u21b5"],["lArr","\u21d0"],["uArr","\u21d1"],["rArr","\u21d2"],["dArr","\u21d3"],["hArr","\u21d4"],["forall","\u2200"],["part","\u2202"],["exist","\u2203"],["empty","\u2205"],["nabla","\u2207"],["isin","\u2208"],["notin","\u2209"],["ni","\u220b"],["prod","\u220f"],["sum","\u2211"],["minus","\u2212"],["lowast","\u2217"],["radic","\u221a"],["prop","\u221d"],["infin","\u221e"],["ang","\u2220"],["and","\u2227"],["or","\u2228"],["cap","\u2229"],["cup","\u222a"],["int","\u222b"],["there4","\u2234"],["sim","\u223c"],["cong","\u2245"],["asymp","\u2248"],["ne","\u2260"],["equiv","\u2261"],["le","\u2264"],["ge","\u2265"],["sub","\u2282"],["sup","\u2283"],["nsub","\u2284"],["sube","\u2286"],["supe","\u2287"],["oplus","\u2295"],["otimes","\u2297"],["perp","\u22a5"],["sdot","\u22c5"],["lceil","\u2308"],["rceil","\u2309"],["lfloor","\u230a"],["rfloor","\u230b"],["lang","\u2329"],["rang","\u232a"],["loz","\u25ca"],["spades","\u2660"],["clubs","\u2663"],["hearts","\u2665"],["diams","\u2666"]]);function Le(e){const[t,n]=Oe(e.jsxPragma||"React.createElement"),[s,o]=Oe(e.jsxFragmentPragma||"React.Fragment");return{base:t,suffix:n,fragmentBase:s,fragmentSuffix:o}}function Oe(e){let t=e.indexOf(".");return-1===t&&(t=e.length),[e.slice(0,t),e.slice(t)]}class De{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class Pe extends De{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(e,t,n,s,o){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.nameManager=s,this.options=o,Pe.prototype.__init.call(this),Pe.prototype.__init2.call(this),Pe.prototype.__init3.call(this),Pe.prototype.__init4.call(this),Pe.prototype.__init5.call(this),this.jsxPragmaInfo=Le(o),this.isAutomaticRuntime="automatic"===o.jsxRuntime,this.jsxImportSource=o.jsxImportSource||"react"}process(){return!!this.tokens.matches1(k.jsxTagStart)&&(this.processJSXTag(),!0)}getPrefixCode(){let e="";if(this.filenameVarName&&(e+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[t,n]of Object.entries(this.cjsAutomaticModuleNameResolutions))e+=`var ${n} = require("${t}");`;else{const{createElement:t,...n}=this.esmAutomaticImportNameResolutions;t&&(e+=`import {createElement as ${t}} from "${this.jsxImportSource}";`);const s=Object.entries(n).map((([e,t])=>`${e} as ${t}`)).join(", ");if(s){e+=`import {${s}} from "${this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime")}";`}}return e}processJSXTag(){const{jsxRole:e,start:t}=this.tokens.currentToken(),n=this.options.production?null:this.getElementLocationCode(t);this.isAutomaticRuntime&&e!==Y.KeyAfterPropSpread?this.transformTagToJSXFunc(n,e):this.transformTagToCreateElement(n)}getElementLocationCode(e){return`lineNumber: ${this.getLineNumberForIndex(e)}`}getLineNumberForIndex(e){const t=this.tokens.code;for(;this.lastIndex<e&&this.lastIndex<t.length;)"\n"===t[this.lastIndex]&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(e,t){const n=t===Y.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(n));let s=null;if(this.tokens.matches1(k.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(t);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),s=this.processProps(!0),this.tokens.matches2(k.slash,k.jsxTagEnd))this.tokens.appendCode("}");else{if(!this.tokens.matches1(k.jsxTagEnd))throw new Error("Expected either /> or > at the end of the tag.");this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(t)}s&&this.tokens.appendCode(`, ${s}`)}for(this.options.production||(null===s&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${n}, ${this.getDevSource(e)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(k.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(k.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),this.tokens.matches2(k.slash,k.jsxTagEnd));else{if(!this.tokens.matches1(k.jsxTagEnd))throw new Error("Expected either /> or > at the end of the tag.");this.tokens.removeToken(),this.processChildren(!0)}for(this.tokens.removeInitialToken();!this.tokens.matches1(k.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(e){return this.options.production?e?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:e}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base}${e.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:e}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}}claimAutoImportedFuncInvocation(e,t){const n=this.claimAutoImportedName(e,t);return this.importProcessor?`${n}.call(void 0, `:`${n}(`}claimAutoImportedName(e,t){if(this.importProcessor){const n=this.jsxImportSource+t;return this.cjsAutomaticModuleNameResolutions[n]||(this.cjsAutomaticModuleNameResolutions[n]=this.importProcessor.getFreeIdentifierForPath(n)),`${this.cjsAutomaticModuleNameResolutions[n]}.${e}`}return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName(`_${e}`)),this.esmAutomaticImportNameResolutions[e]}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,k.jsxName,k.jsxName)&&!this.tokens.matches2AtIndex(e-1,k.greaterThan,k.jsxName)&&!this.tokens.matches1AtIndex(e,k.braceL)&&!this.tokens.matches1AtIndex(e,k.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,k.slash,k.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){const e=this.tokens.identifierName();Be(e)&&this.tokens.replaceToken(`'${e}'`)}for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(e){const t=this.options.production?"":`__self: this, __source: ${this.getDevSource(e)}`;this.tokens.matches1(k.jsxName)||this.tokens.matches1(k.braceL)?(this.tokens.appendCode(", {"),this.processProps(!1),t?this.tokens.appendCode(` ${t}}`):this.tokens.appendCode("}")):t?this.tokens.appendCode(`, {${t}}`):this.tokens.appendCode(", null")}processProps(e){let t=null;for(;;){if(this.tokens.matches2(k.jsxName,k.eq)){const n=this.tokens.identifierName();if(e&&"key"===n){null!==t&&this.tokens.appendCode(t.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const e=this.tokens.snapshot();this.processPropValue(),t=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(e);continue}this.processPropName(n),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(k.jsxName)){const e=this.tokens.identifierName();this.processPropName(e),this.tokens.appendCode(": true")}else{if(!this.tokens.matches1(k.braceL))break;this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")}this.tokens.appendCode(",")}return t}processPropName(e){e.includes("-")?this.tokens.replaceToken(`'${e}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(k.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(k.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const e=this.tokens.currentToken(),t=this.tokens.code.slice(e.start+1,e.end-1),n=qe(t),s=function(e){let t="";for(let n=0;n<e.length;n++){const s=e[n];if("\n"===s)if(/\s/.test(e[n+1]))for(t+=" ";n<e.length&&/\s/.test(e[n+1]);)n++;else t+="\n";else if("&"===s){const{entity:s,newI:o}=Me(e,n+1);t+=s,n=o-1}else t+=s}return JSON.stringify(t)}(t);this.tokens.replaceToken(s+n)}processAutomaticChildrenAndEndProps(e){e===Y.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(e===Y.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(e){let t=e;for(;;){if(this.tokens.matches2(k.jsxTagStart,k.slash))return;let e=!1;if(this.tokens.matches1(k.braceL))this.tokens.matches2(k.braceL,k.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(t?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),e=!0);else if(this.tokens.matches1(k.jsxTagStart))this.tokens.appendCode(t?", ":""),this.processJSXTag(),e=!0;else{if(!this.tokens.matches1(k.jsxText)&&!this.tokens.matches1(k.jsxEmptyText))throw new Error("Unexpected token when processing JSX children.");e=this.processChildTextElement(t)}e&&(t=!0)}}processChildTextElement(e){const t=this.tokens.currentToken(),n=this.tokens.code.slice(t.start,t.end),s=qe(n),o=function(e){let t="",n="",s=!1,o=!1;for(let r=0;r<e.length;r++){const i=e[r];if(" "===i||"\t"===i||"\r"===i)s||(n+=i);else if("\n"===i)n="",s=!0;else{if(o&&s&&(t+=" "),t+=n,n="","&"===i){const{entity:n,newI:s}=Me(e,r+1);r=s-1,t+=n}else t+=i;o=!0,s=!1}}s||(t+=n);return JSON.stringify(t)}(n);return'""'===o?(this.tokens.replaceToken(s),!1):(this.tokens.replaceToken(`${e?", ":""}${o}${s}`),!0)}getDevSource(e){return`{fileName: ${this.getFilenameVarName()}, ${e}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function Be(e){const t=e.charCodeAt(0);return t>=g.lowercaseA&&t<=g.lowercaseZ}function qe(e){let t=0,n=0;for(const s of e)"\n"===s?(t++,n=0):" "===s&&n++;return"\n".repeat(t)+" ".repeat(n)}function Me(e,t){let n,s="",o=0,r=t;if("#"===e[r]){let t,s=10;if(r++,"x"===e[r])for(s=16,r++,t=r;r<e.length&&((i=e.charCodeAt(r))>=g.digit0&&i<=g.digit9||i>=g.lowercaseA&&i<=g.lowercaseF||i>=g.uppercaseA&&i<=g.uppercaseF);)r++;else for(t=r;r<e.length&&Fe(e.charCodeAt(r));)r++;if(";"===e[r]){const o=e.slice(t,r);o&&(r++,n=String.fromCodePoint(parseInt(o,s)))}}else for(;r<e.length&&o++<10;){const t=e[r];if(r++,";"===t){n=Re.get(s);break}s+=t}var i;return n?{entity:n,newI:r}:{entity:"&",newI:t}}function Fe(e){return e>=g.digit0&&e<=g.digit9}function $e(e,t){const n=Le(t),s=new Set;for(let o=0;o<e.tokens.length;o++){const t=e.tokens[o];if(t.type!==k.name||t.isType||t.identifierRole!==J.Access&&t.identifierRole!==J.ObjectShorthand&&t.identifierRole!==J.ExportAccess||t.shadowsGlobal||s.add(e.identifierNameForToken(t)),t.type===k.jsxTagStart&&s.add(n.base),t.type===k.jsxTagStart&&o+1<e.tokens.length&&e.tokens[o+1].type===k.jsxTagEnd&&(s.add(n.base),s.add(n.fragmentBase)),t.type===k.jsxName&&t.identifierRole===J.Access){Be(e.identifierNameForToken(t))&&e.tokens[o+1].type!==k.dot||s.add(e.identifierNameForToken(t))}}return s}class Ue{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(e,t,n,s,o,r,i){this.nameManager=e,this.tokens=t,this.enableLegacyTypeScriptModuleInterop=n,this.options=s,this.isTypeScriptTransformEnabled=o,this.keepUnusedImports=r,this.helperManager=i,Ue.prototype.__init.call(this),Ue.prototype.__init2.call(this),Ue.prototype.__init3.call(this),Ue.prototype.__init4.call(this),Ue.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,k._import)&&!this.tokens.matches3AtIndex(e,k._import,k.name,k.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,k._export)&&!this.tokens.matches2AtIndex(e,k._export,k.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=$e(this.tokens,this.options);for(const[e,t]of this.importInfoByPath.entries()){if(t.hasBareImport||t.hasStarExport||t.exportStarNames.length>0||t.namedExports.length>0)continue;[...t.defaultNames,...t.wildcardNames,...t.namedImports.map((({localName:e})=>e))].every((e=>this.shouldAutomaticallyElideImportedName(e)))&&this.importsToReplace.set(e,"")}}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(const[e,t]of this.importInfoByPath.entries()){const{defaultNames:n,wildcardNames:s,namedImports:o,namedExports:r,exportStarNames:i,hasStarExport:a}=t;if(0===n.length&&0===s.length&&0===o.length&&0===r.length&&0===i.length&&!a){this.importsToReplace.set(e,`require('${e}');`);continue}const c=this.getFreeIdentifierForPath(e);let l;l=this.enableLegacyTypeScriptModuleInterop?c:s.length>0?s[0]:this.getFreeIdentifierForPath(e);let u=`var ${c} = require('${e}');`;if(s.length>0)for(const e of s){u+=` var ${e} = ${this.enableLegacyTypeScriptModuleInterop?c:`${this.helperManager.getHelperName("interopRequireWildcard")}(${c})`};`}else i.length>0&&l!==c?u+=` var ${l} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${c});`:n.length>0&&l!==c&&(u+=` var ${l} = ${this.helperManager.getHelperName("interopRequireDefault")}(${c});`);for(const{importedName:e,localName:t}of r)u+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${c}, '${t}', '${e}');`;for(const e of i)u+=` exports.${e} = ${l};`;a&&(u+=` ${this.helperManager.getHelperName("createStarExport")}(${c});`),this.importsToReplace.set(e,u);for(const e of n)this.identifierReplacements.set(e,`${l}.default`);for(const{importedName:e,localName:t}of o)this.identifierReplacements.set(t,`${c}.${e}`)}}getFreeIdentifierForPath(e){const t=e.split("/"),n=t[t.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${n}`)}preprocessImportAtIndex(e){const t=[],n=[],s=[];if(e++,(this.tokens.matchesContextualAtIndex(e,m._type)||this.tokens.matches1AtIndex(e,k._typeof))&&!this.tokens.matches1AtIndex(e+1,k.comma)&&!this.tokens.matchesContextualAtIndex(e+1,m._from))return;if(this.tokens.matches1AtIndex(e,k.parenL))return;if(this.tokens.matches1AtIndex(e,k.name)&&(t.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,k.comma)&&e++),this.tokens.matches1AtIndex(e,k.star)&&(e+=2,n.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,k.braceL)){const n=this.getNamedImports(e+1);e=n.newIndex;for(const e of n.namedImports)"default"===e.importedName?t.push(e.localName):s.push(e)}if(this.tokens.matchesContextualAtIndex(e,m._from)&&e++,!this.tokens.matches1AtIndex(e,k.string))throw new Error("Expected string token at the end of import statement.");const o=this.tokens.stringValueAtIndex(e),r=this.getImportInfo(o);r.defaultNames.push(...t),r.wildcardNames.push(...n),r.namedImports.push(...s),0===t.length&&0===n.length&&0===s.length&&(r.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,k._export,k._var)||this.tokens.matches2AtIndex(e,k._export,k._let)||this.tokens.matches2AtIndex(e,k._export,k._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,k._export,k._function)||this.tokens.matches2AtIndex(e,k._export,k._class)){const t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,k._export,k.name,k._function)){const t=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(t,t)}else this.tokens.matches2AtIndex(e,k._export,k.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,k._export,k.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let t=0;for(let n=e+2;;n++)if(this.tokens.matches1AtIndex(n,k.braceL)||this.tokens.matches1AtIndex(n,k.dollarBraceL)||this.tokens.matches1AtIndex(n,k.bracketL))t++;else if(this.tokens.matches1AtIndex(n,k.braceR)||this.tokens.matches1AtIndex(n,k.bracketR))t--;else{if(0===t&&!this.tokens.matches1AtIndex(n,k.name))break;if(this.tokens.matches1AtIndex(1,k.eq)){const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error("Expected = token with an end index.");n=e-1}else{if(Q(this.tokens.tokens[n])){const e=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(e,`exports.${e}`)}}}}preprocessNamedExportAtIndex(e){e+=2;const{newIndex:t,namedImports:n}=this.getNamedImports(e);if(e=t,!this.tokens.matchesContextualAtIndex(e,m._from)){for(const{importedName:e,localName:t}of n)this.addExportBinding(e,t);return}if(e++,!this.tokens.matches1AtIndex(e,k.string))throw new Error("Expected string token at the end of import statement.");const s=this.tokens.stringValueAtIndex(e);this.getImportInfo(s).namedExports.push(...n)}preprocessExportStarAtIndex(e){let t=null;if(this.tokens.matches3AtIndex(e,k._export,k.star,k._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,k.string))throw new Error("Expected string token at the end of star export statement.");const n=this.tokens.stringValueAtIndex(e),s=this.getImportInfo(n);null!==t?s.exportStarNames.push(t):s.hasStarExport=!0}getNamedImports(e){const t=[];for(;;){if(this.tokens.matches1AtIndex(e,k.braceR)){e++;break}const n=Ne(this.tokens,e);if(e=n.endIndex,n.isType||t.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(e,k.comma,k.braceR)){e+=2;break}if(this.tokens.matches1AtIndex(e,k.braceR)){e++;break}if(!this.tokens.matches1AtIndex(e,k.comma))throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`);e++}return{newIndex:e,namedImports:t}}getImportInfo(e){const t=this.importInfoByPath.get(e);if(t)return t;const n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,n),n}addExportBinding(e,t){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}claimImportCode(e){const t=this.importsToReplace.get(e);return this.importsToReplace.set(e,""),t||""}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){const t=this.exportBindingsByLocalName.get(e);return t&&0!==t.length?t.map((e=>`exports.${e}`)).join(" = "):null}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var Ke=n(9320);function He({code:e,mappings:t},n,s,o,r){const i=function(e,t){const n=new Array(t.length);let s=0,o=t[s].start,r=0;for(let i=0;i<e.length;i++)i===o&&(n[s]=o-r,s++,o=t[s].start),e.charCodeAt(i)===g.lineFeed&&(r=i+1);return n}(o,r),a=new Ke.GenMapping({file:s.compiledFilename});let c=0,l=t[0];for(;void 0===l&&c<t.length-1;)c++,l=t[c];let u=0,h=0;l!==h&&(0,Ke.maybeAddSegment)(a,u,0,n,u,0);for(let m=0;m<e.length;m++){if(m===l){const e=l-h,s=i[c];for((0,Ke.maybeAddSegment)(a,u,e,n,u,s);(l===m||void 0===l)&&c<t.length-1;)c++,l=t[c]}e.charCodeAt(m)===g.lineFeed&&(u++,h=m+1,l!==h&&(0,Ke.maybeAddSegment)(a,u,0,n,u,0))}const{sourceRoot:p,sourcesContent:d,...f}=(0,Ke.toEncodedMap)(a);return f}const Ve={require:'\n import {createRequire as CREATE_REQUIRE_NAME} from "module";\n const require = CREATE_REQUIRE_NAME(import.meta.url);\n ',interopRequireWildcard:"\n function interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n newObj[key] = obj[key];\n }\n }\n }\n newObj.default = obj;\n return newObj;\n }\n }\n ",interopRequireDefault:"\n function interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n }\n ",createNamedExportFrom:"\n function createNamedExportFrom(obj, localName, importedName) {\n Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});\n }\n ",createStarExport:'\n function createStarExport(obj) {\n Object.keys(obj)\n .filter((key) => key !== "default" && key !== "__esModule")\n .forEach((key) => {\n if (exports.hasOwnProperty(key)) {\n return;\n }\n Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});\n });\n }\n ',nullishCoalesce:"\n function nullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return rhsFn();\n }\n }\n ",asyncNullishCoalesce:"\n async function asyncNullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return await rhsFn();\n }\n }\n ",optionalChain:"\n function optionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",asyncOptionalChain:"\n async function asyncOptionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = await fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = await fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",optionalChainDelete:"\n function optionalChainDelete(ops) {\n const result = OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n ",asyncOptionalChainDelete:"\n async function asyncOptionalChainDelete(ops) {\n const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n "};class We{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(e){this.nameManager=e,We.prototype.__init.call(this),We.prototype.__init2.call(this)}getHelperName(e){let t=this.helperNames[e];return t||(t=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=t,t)}emitHelpers(){let e="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[t,n]of Object.entries(Ve)){const s=this.helperNames[t];let o=n;"optionalChainDelete"===t?o=o.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):"asyncOptionalChainDelete"===t?o=o.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):"require"===t&&(null===this.createRequireName&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),o=o.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),s&&(e+=" ",e+=o.replace(t,s).replace(/\s+/g," ").trim())}return e}}function ze(e,t,n){(function(e,t){for(const n of e.tokens)if(n.type===k.name&&!n.isType&&Z(n)&&t.has(e.identifierNameForToken(n)))return!0;return!1})(e,n)&&function(e,t,n){const s=[];let o=t.length-1;for(let r=e.tokens.length-1;;r--){for(;s.length>0&&s[s.length-1].startTokenIndex===r+1;)s.pop();for(;o>=0&&t[o].endTokenIndex===r+1;)s.push(t[o]),o--;if(r<0)break;const i=e.tokens[r],a=e.identifierNameForToken(i);if(s.length>1&&!i.isType&&i.type===k.name&&n.has(a))if(te(i))Ge(s[s.length-1],e,a);else if(ne(i)){let t=s.length-1;for(;t>0&&!s[t].isFunctionScope;)t--;if(t<0)throw new Error("Did not find parent function scope.");Ge(s[t],e,a)}}if(s.length>0)throw new Error("Expected empty scope stack after processing file.")}(e,t,n)}function Ge(e,t,n){for(let s=e.startTokenIndex;s<e.endTokenIndex;s++){const e=t.tokens[s];e.type!==k.name&&e.type!==k.jsxName||t.identifierNameForToken(e)!==n||(e.shadowsGlobal=!0)}}class Xe{__init(){this.usedNames=new Set}constructor(e,t){Xe.prototype.__init.call(this),this.usedNames=new Set(function(e,t){const n=[];for(const s of t)s.type===k.name&&n.push(e.slice(s.start,s.end));return n}(e,t))}claimFreeName(e){const t=this.findFreeName(e);return this.usedNames.add(t),t}findFreeName(e){if(!this.usedNames.has(e))return e;let t=2;for(;this.usedNames.has(e+String(t));)t++;return e+String(t)}}var Je=n(9361);const Ye={Transform:Je.union(Je.lit("jsx"),Je.lit("typescript"),Je.lit("flow"),Je.lit("imports"),Je.lit("react-hot-loader"),Je.lit("jest")),SourceMapOptions:Je.iface([],{compiledFilename:"string"}),Options:Je.iface([],{transforms:Je.array("Transform"),disableESTransforms:Je.opt("boolean"),jsxRuntime:Je.opt(Je.union(Je.lit("classic"),Je.lit("automatic"),Je.lit("preserve"))),production:Je.opt("boolean"),jsxImportSource:Je.opt("string"),jsxPragma:Je.opt("string"),jsxFragmentPragma:Je.opt("string"),keepUnusedImports:Je.opt("boolean"),preserveDynamicImport:Je.opt("boolean"),injectCreateRequireForImportRequire:Je.opt("boolean"),enableLegacyTypeScriptModuleInterop:Je.opt("boolean"),enableLegacyBabel5ModuleInterop:Je.opt("boolean"),sourceMapOptions:Je.opt("SourceMapOptions"),filePath:Je.opt("string")})},{Options:Qe}=(0,Je.createCheckers)(Ye);function Ze(){re(),fn(!1)}function et(e){re(),ot(e)}function tt(e){Vn(),st(e)}function nt(){Vn(),w.tokens[w.tokens.length-1].identifierRole=J.ImportDeclaration}function st(e){let t;t=0===w.scopeDepth?J.TopLevelDeclaration:e?J.BlockScopedDeclaration:J.FunctionScopedDeclaration,w.tokens[w.tokens.length-1].identifierRole=t}function ot(e){switch(w.type){case k._this:{const e=ce(0);return re(),void le(e)}case k._yield:case k.name:return w.type=k.name,void tt(e);case k.bracketL:return re(),void rt(k.bracketR,e,!0);case k.braceL:return void Dn(!0,e);default:U()}}function rt(e,t,n=!1,s=!1,o=0){let r=!0,i=!1;const a=w.tokens.length;for(;!ue(e)&&!w.error;)if(r?r=!1:($(k.comma),w.tokens[w.tokens.length-1].contextId=o,!i&&w.tokens[a].isType&&(w.tokens[w.tokens.length-1].isType=!0,i=!0)),n&&pe(k.comma));else{if(ue(e))break;if(pe(k.ellipsis)){et(t),at(),ue(k.comma),$(e);break}it(s,t)}}function it(e,t){e&&ht([m._public,m._protected,m._private,m._readonly,m._override]),ct(t),at(),ct(t,!0)}function at(){I?function(){const e=ce(0);ue(k.question),pe(k.colon)&&gs();le(e)}():v&&function(){const e=ce(0);ue(k.question),Dt(),le(e)}()}function ct(e,t=!1){if(t||ot(e),!ue(k.eq))return;const n=w.tokens.length-1;fn(),w.tokens[n].rhsEndIndex=w.tokens.length}function lt(){return pe(k.name)}function ut(){const e=w.snapshot();re();return!!((pe(k.bracketL)||pe(k.braceL)||pe(k.star)||pe(k.ellipsis)||pe(k.hash)||pe(k.name)||Boolean(w.type&k.IS_KEYWORD)||pe(k.string)||pe(k.num)||pe(k.bigint)||pe(k.decimal))&&!B())||(w.restoreFromSnapshot(e),!1)}function ht(e){for(;;){if(null===pt(e))break}}function pt(e){if(!pe(k.name))return null;const t=w.contextualKeyword;if(-1!==e.indexOf(t)&&ut()){switch(t){case m._readonly:w.tokens[w.tokens.length-1].type=k._readonly;break;case m._abstract:w.tokens[w.tokens.length-1].type=k._abstract;break;case m._static:w.tokens[w.tokens.length-1].type=k._static;break;case m._public:w.tokens[w.tokens.length-1].type=k._public;break;case m._private:w.tokens[w.tokens.length-1].type=k._private;break;case m._protected:w.tokens[w.tokens.length-1].type=k._protected;break;case m._override:w.tokens[w.tokens.length-1].type=k._override;break;case m._declare:w.tokens[w.tokens.length-1].type=k._declare}return t}return null}function dt(){for(Vn();ue(k.dot);)Vn()}function ft(){$(k._import),$(k.parenL),$(k.string),$(k.parenR),ue(k.dot)&&dt(),pe(k.lessThan)&&Zt()}function mt(){ue(k._const);const e=ue(k._in),t=O(m._out);ue(k._const),!e&&!t||pe(k.name)?Vn():w.tokens[w.tokens.length-1].type=k.name,ue(k._extends)&&Bt(),ue(k.eq)&&Bt()}function kt(){pe(k.lessThan)&>()}function gt(){const e=ce(0);for(pe(k.lessThan)||pe(k.typeParameterStart)?re():U();!ue(k.greaterThan)&&!w.error;)mt(),ue(k.comma);le(e)}function xt(e){const t=e===k.arrow;var n;kt(),$(k.parenL),w.scopeDepth++,n=!1,rt(k.parenR,n),w.scopeDepth--,(t||pe(e))&&Ot(e)}function yt(){ue(k.comma)||F()}function _t(){xt(k.colon),yt()}function Tt(){if(!pe(k.bracketL)||!function(){const e=w.snapshot();re();const t=ue(k.name)&&pe(k.colon);return w.restoreFromSnapshot(e),t}())return!1;const e=ce(0);return $(k.bracketL),Vn(),Pt(),$(k.bracketR),Dt(),yt(),le(e),!0}function bt(e){ue(k.question),e||!pe(k.parenL)&&!pe(k.lessThan)?(Dt(),yt()):(xt(k.colon),yt())}function vt(){if(pe(k.parenL)||pe(k.lessThan))return void _t();if(pe(k._new))return re(),void(pe(k.parenL)||pe(k.lessThan)?_t():bt(!1));const e=!!pt([m._readonly]);Tt()||((R(m._get)||R(m._set))&&ut(),qn(-1),bt(e))}function It(){for($(k.braceL);!ue(k.braceR)&&!w.error;)vt()}function wt(){const e=w.snapshot(),t=function(){if(re(),ue(k.plus)||ue(k.minus))return R(m._readonly);R(m._readonly)&&re();if(!pe(k.bracketL))return!1;if(re(),!lt())return!1;return re(),pe(k._in)}();return w.restoreFromSnapshot(e),t}function Ct(){$(k.braceL),pe(k.plus)||pe(k.minus)?(re(),D(m._readonly)):O(m._readonly),$(k.bracketL),Vn(),$(k._in),Bt(),O(m._as)&&Bt(),$(k.bracketR),pe(k.plus)||pe(k.minus)?(re(),$(k.question)):ue(k.question),ue(k.colon)&&Bt(),F(),$(k.braceR)}function At(){ue(k.ellipsis)?Bt():(Bt(),ue(k.question)),ue(k.colon)&&Bt()}var Et;function St(e){e===Et.TSAbstractConstructorType&&D(m._abstract),e!==Et.TSConstructorType&&e!==Et.TSAbstractConstructorType||$(k._new);const t=w.inDisallowConditionalTypesContext;w.inDisallowConditionalTypesContext=!1,xt(k.arrow),w.inDisallowConditionalTypesContext=t}function Nt(){switch(w.type){case k.name:return dt(),void(!B()&&pe(k.lessThan)&&Zt());case k._void:case k._null:return void re();case k.string:case k.num:case k.bigint:case k.decimal:case k._true:case k._false:return void Sn();case k.minus:return re(),void Sn();case k._this:return re(),void(R(m._is)&&!B()&&(re(),Pt()));case k._typeof:return $(k._typeof),pe(k._import)?ft():dt(),void(!B()&&pe(k.lessThan)&&Zt());case k._import:return void ft();case k.braceL:return void(wt()?Ct():It());case k.bracketL:return void function(){for($(k.bracketL);!ue(k.bracketR)&&!w.error;)At(),ue(k.comma)}();case k.parenL:return $(k.parenL),Bt(),void $(k.parenR);case k.backQuote:return void function(){for(ie(),ie();!pe(k.backQuote)&&!w.error;)$(k.dollarBraceL),Bt(),ie(),ie();re()}();default:if(w.type&k.IS_KEYWORD)return re(),void(w.tokens[w.tokens.length-1].type=k.name)}U()}function jt(){if(R(m._keyof)||R(m._unique)||R(m._readonly))re(),jt();else if(R(m._infer))!function(){if(D(m._infer),Vn(),pe(k._extends)){const e=w.snapshot();$(k._extends);const t=w.inDisallowConditionalTypesContext;w.inDisallowConditionalTypesContext=!0,Bt(),w.inDisallowConditionalTypesContext=t,(w.error||!w.inDisallowConditionalTypesContext&&pe(k.question))&&w.restoreFromSnapshot(e)}}();else{const e=w.inDisallowConditionalTypesContext;w.inDisallowConditionalTypesContext=!1,function(){for(Nt();!B()&&ue(k.bracketL);)ue(k.bracketR)||(Bt(),$(k.bracketR))}(),w.inDisallowConditionalTypesContext=e}}function Rt(){if(ue(k.bitwiseAND),jt(),pe(k.bitwiseAND))for(;ue(k.bitwiseAND);)jt()}function Lt(){return!!pe(k.lessThan)||pe(k.parenL)&&function(){const e=w.snapshot(),t=function(){if(re(),pe(k.parenR)||pe(k.ellipsis))return!0;if(function(){if(pe(k.name)||pe(k._this))return re(),!0;if(pe(k.braceL)||pe(k.bracketL)){let e=1;for(re();e>0&&!w.error;)pe(k.braceL)||pe(k.bracketL)?e++:(pe(k.braceR)||pe(k.bracketR))&&e--,re();return!0}return!1}()){if(pe(k.colon)||pe(k.comma)||pe(k.question)||pe(k.eq))return!0;if(pe(k.parenR)&&(re(),pe(k.arrow)))return!0}return!1}();return w.restoreFromSnapshot(e),t}()}function Ot(e){const t=ce(0);$(e);(function(){const e=w.snapshot();if(R(m._asserts))return re(),O(m._is)?(Bt(),!0):lt()||pe(k._this)?(re(),O(m._is)&&Bt(),!0):(w.restoreFromSnapshot(e),!1);if(lt()||pe(k._this))return re(),R(m._is)&&!B()?(re(),Bt(),!0):(w.restoreFromSnapshot(e),!1);return!1})()||Bt(),le(t)}function Dt(){pe(k.colon)&&Pt()}function Pt(){const e=ce(0);$(k.colon),Bt(),le(e)}function Bt(){if(qt(),w.inDisallowConditionalTypesContext||B()||!ue(k._extends))return;const e=w.inDisallowConditionalTypesContext;w.inDisallowConditionalTypesContext=!0,qt(),w.inDisallowConditionalTypesContext=e,$(k.question),Bt(),$(k.colon),Bt()}function qt(){Lt()?St(Et.TSFunctionType):pe(k._new)?St(Et.TSConstructorType):R(m._abstract)&&de()===k._new?St(Et.TSAbstractConstructorType):function(){if(ue(k.bitwiseOR),Rt(),pe(k.bitwiseOR))for(;ue(k.bitwiseOR);)Rt()}()}function Mt(){for(;!pe(k.braceL)&&!w.error;)Ft(),ue(k.comma)}function Ft(){dt(),pe(k.lessThan)&&Zt()}function $t(){if(pe(k.string)?Sn():Vn(),ue(k.eq)){const e=w.tokens.length-1;fn(),w.tokens[e].rhsEndIndex=w.tokens.length}}function Ut(){for(tt(!1),$(k.braceL);!ue(k.braceR)&&!w.error;)$t(),ue(k.comma)}function Kt(){$(k.braceL),Ns(k.braceR)}function Ht(){tt(!1),ue(k.dot)?Ht():Kt()}function Vt(){R(m._global)?Vn():pe(k.string)?An():U(),pe(k.braceL)?Kt():F()}function Wt(){nt(),$(k.eq),R(m._require)&&de()===k.parenL?(D(m._require),$(k.parenL),pe(k.string)||U(),Sn(),$(k.parenR)):dt(),F()}function zt(){return Xt(w.contextualKeyword,!0)}function Gt(e){switch(e){case m._declare:{const e=w.tokens.length-1,t=function(){if(M())return!1;switch(w.type){case k._function:{const e=ce(1);return re(),Ds(w.start,!0),le(e),!0}case k._class:{const e=ce(1);return Bs(!0,!1),le(e),!0}case k._const:if(pe(k._const)&&L(m._enum)){const e=ce(1);return $(k._const),D(m._enum),w.tokens[w.tokens.length-1].type=k._enum,Ut(),le(e),!0}case k._var:case k._let:{const e=ce(1);return Es(w.type!==k._var),le(e),!0}case k.name:{const e=ce(1),t=w.contextualKeyword;let n=!1;return t===m._global?(Vt(),n=!0):n=Xt(t,!0),le(e),n}default:return!1}}();if(t)return w.tokens[e].type=k._declare,!0;break}case m._global:if(pe(k.braceL))return Kt(),!0;break;default:return Xt(e,!1)}return!1}function Xt(e,t){switch(e){case m._abstract:if(Jt(t)&&pe(k._class))return w.tokens[w.tokens.length-1].type=k._abstract,Bs(!0,!1),!0;break;case m._enum:if(Jt(t)&&pe(k.name))return w.tokens[w.tokens.length-1].type=k._enum,Ut(),!0;break;case m._interface:if(Jt(t)&&pe(k.name)){const e=ce(t?2:1);return tt(!1),kt(),ue(k._extends)&&Mt(),It(),le(e),!0}break;case m._module:if(Jt(t)){if(pe(k.string)){const e=ce(t?2:1);return Vt(),le(e),!0}if(pe(k.name)){const e=ce(t?2:1);return Ht(),le(e),!0}}break;case m._namespace:if(Jt(t)&&pe(k.name)){const e=ce(t?2:1);return Ht(),le(e),!0}break;case m._type:if(Jt(t)&&pe(k.name)){const e=ce(t?2:1);return tt(!1),kt(),$(k.eq),Bt(),F(),le(e),!0}}return!1}function Jt(e){return e?(re(),!0):!M()}function Yt(){const e=w.snapshot();return gt(),Ps(),pe(k.colon)&&Ot(k.colon),$(k.arrow),w.error?(w.restoreFromSnapshot(e),!1):(Un(!0),!0)}function Qt(){w.type===k.bitShiftL&&(w.pos-=1,ve(k.lessThan)),Zt()}function Zt(){const e=ce(0);for($(k.lessThan);!pe(k.greaterThan)&&!w.error;)Bt(),ue(k.comma);e?($(k.greaterThan),le(e)):(le(e),we(),$(k.greaterThan),w.tokens[w.tokens.length-1].isType=!0)}function en(){if(pe(k.name))switch(w.contextualKeyword){case m._abstract:case m._declare:case m._enum:case m._interface:case m._module:case m._namespace:case m._type:return!0}return!1}function tn(e,t){return b?function(e,t){if(!pe(k.lessThan))return mn(e,t);const n=w.snapshot();let s=mn(e,t);if(!w.error)return s;w.restoreFromSnapshot(n);w.type=k.typeParameterStart,gt(),s=mn(e,t),s||U();return s}(e,t):function(e,t){if(!pe(k.lessThan))return mn(e,t);const n=w.snapshot();gt();const s=mn(e,t);s||U();if(!w.error)return s;w.restoreFromSnapshot(n);return mn(e,t)}(e,t)}function nn(){un()}function sn(e){nn(),ue(k.colon)?nn():w.tokens[w.tokens.length-1].identifierRole=e}function on(){const e=w.tokens.length;sn(J.Access);let t=!1;for(;pe(k.dot);)t=!0,un(),nn();if(!t){const t=w.tokens[e],n=C.charCodeAt(t.start);n>=g.lowercaseA&&n<=g.lowercaseZ&&(t.identifierRole=null)}}function rn(){switch(w.type){case k.braceL:return re(),dn(),void un();case k.jsxTagStart:return ln(),void un();case k.string:return void un();default:U("JSX value should be either an expression or a quoted JSX text")}}function an(e){if(pe(k.jsxTagEnd))return!1;on(),v&&function(){if(ue(k.jsxTagStart)){w.tokens[w.tokens.length-1].type=k.typeParameterStart;const e=ce(1);for(;!pe(k.greaterThan)&&!w.error;)Bt(),ue(k.comma);un(),le(e)}}();let t=!1;for(;!pe(k.slash)&&!pe(k.jsxTagEnd)&&!w.error;)ue(k.braceL)?(t=!0,$(k.ellipsis),fn(),un()):(t&&w.end-w.start==3&&C.charCodeAt(w.start)===g.lowercaseK&&C.charCodeAt(w.start+1)===g.lowercaseE&&C.charCodeAt(w.start+2)===g.lowercaseY&&(w.tokens[e].jsxRole=Y.KeyAfterPropSpread),sn(J.ObjectKey),pe(k.eq)&&(un(),rn()));const n=pe(k.slash);return n&&un(),n}function cn(){const e=w.tokens.length-1;w.tokens[e].jsxRole=Y.NoChildren;let t=0;if(!an(e))for(hn();;)switch(w.type){case k.jsxTagStart:if(un(),pe(k.slash))return un(),pe(k.jsxTagEnd)||on(),void(w.tokens[e].jsxRole!==Y.KeyAfterPropSpread&&(1===t?w.tokens[e].jsxRole=Y.OneChild:t>1&&(w.tokens[e].jsxRole=Y.StaticChildren)));t++,cn(),hn();break;case k.jsxText:t++,hn();break;case k.jsxEmptyText:hn();break;case k.braceL:re(),pe(k.ellipsis)?($(k.ellipsis),dn(),hn(),t+=2):(pe(k.braceR)||(t++,dn()),hn());break;default:return void U()}}function ln(){un(),cn()}function un(){w.tokens.push(new oe),be(),w.start=w.pos;const e=C.charCodeAt(w.pos);if(G[e])!function(){let e;do{if(w.pos>C.length)return void U("Unexpectedly reached the end of input.");e=C.charCodeAt(++w.pos)}while(z[e]||e===g.dash);ve(k.jsxName)}();else if(e===g.quotationMark||e===g.apostrophe)!function(e){for(w.pos++;;){if(w.pos>=C.length)return void U("Unterminated string constant");if(C.charCodeAt(w.pos)===e){w.pos++;break}w.pos++}ve(k.string)}(e);else switch(++w.pos,e){case g.greaterThan:ve(k.jsxTagEnd);break;case g.lessThan:ve(k.jsxTagStart);break;case g.slash:ve(k.slash);break;case g.equalsTo:ve(k.eq);break;case g.leftCurlyBrace:ve(k.braceL);break;case g.dot:ve(k.dot);break;case g.colon:ve(k.colon);break;default:U()}}function hn(){w.tokens.push(new oe),w.start=w.pos,function(){let e=!1,t=!1;for(;;){if(w.pos>=C.length)return void U("Unterminated JSX contents");const n=C.charCodeAt(w.pos);if(n===g.lessThan||n===g.leftCurlyBrace)return w.pos===w.start?n===g.lessThan?(w.pos++,void ve(k.jsxTagStart)):void Ce(n):void ve(e&&!t?k.jsxEmptyText:k.jsxText);n===g.lineFeed?e=!0:n!==g.space&&n!==g.carriageReturn&&n!==g.tab&&(t=!0),w.pos++}}()}!function(e){e[e.TSFunctionType=0]="TSFunctionType";e[e.TSConstructorType=1]="TSConstructorType";e[e.TSAbstractConstructorType=2]="TSAbstractConstructorType"}(Et||(Et={}));class pn{constructor(e){this.stop=e}}function dn(e=!1){if(fn(e),pe(k.comma))for(;ue(k.comma);)fn(e)}function fn(e=!1,t=!1){return v?tn(e,t):I?function(e,t){if(pe(k.lessThan)){const n=w.snapshot();let s=mn(e,t);if(!w.error)return s;w.restoreFromSnapshot(n),w.type=k.typeParameterStart;const o=ce(0);if(ns(),le(o),s=mn(e,t),s)return!0;U()}return mn(e,t)}(e,t):mn(e,t)}function mn(e,t){if(pe(k._yield))return re(),pe(k.semi)||P()||(ue(k.star),fn()),!1;(pe(k.parenL)||pe(k.name)||pe(k._yield))&&(w.potentialArrowAt=w.start);const n=function(e){const t=function(e){const t=w.tokens.length,n=xn();if(n)return!0;return gn(t,-1,e),!1}(e);if(t)return!0;return function(e){v||I?function(e){if(pe(k.question)){const e=de();if(e===k.colon||e===k.comma||e===k.parenR)return}kn(e)}(e):kn(e)}(e),!1}(e);return t&&Ln(),w.type&k.IS_ASSIGN?(re(),fn(e),!1):n}function kn(e){ue(k.question)&&(fn(),$(k.colon),fn(e))}function gn(e,t,n){if(v&&(k._in&k.PRECEDENCE_MASK)>t&&!B()&&(O(m._as)||O(m._satisfies))){const s=ce(1);return Bt(),le(s),we(),void gn(e,t,n)}const s=w.type&k.PRECEDENCE_MASK;if(s>0&&(!n||!pe(k._in))&&s>t){const o=w.type;re(),o===k.nullishCoalescing&&(w.tokens[w.tokens.length-1].nullishStartIndex=e);const r=w.tokens.length;xn(),gn(r,o&k.IS_RIGHT_ASSOCIATIVE?s-1:s,n),o===k.nullishCoalescing&&(w.tokens[e].numNullishCoalesceStarts++,w.tokens[w.tokens.length-1].numNullishCoalesceEnds++),gn(e,t,n)}}function xn(){if(v&&!b&&ue(k.lessThan))return function(){const e=ce(1);Bt(),$(k.greaterThan),le(e),xn()}(),!1;if(R(m._module)&&xe()===g.leftCurlyBrace&&!q())return D(m._module),$(k.braceL),Ns(k.braceR),!1;if(w.type&k.IS_PREFIX)return re(),xn(),!1;if(yn())return!0;for(;w.type&k.IS_POSTFIX&&!P();)w.type===k.preIncDec&&(w.type=k.postIncDec),re();return!1}function yn(){const e=w.tokens.length;return!!An()||(_n(e),w.tokens.length>e&&w.tokens[e].isOptionalChainStart&&(w.tokens[w.tokens.length-1].isOptionalChainEnd=!0),!1)}function _n(e,t=!1){I?function(e,t=!1){if(w.tokens[w.tokens.length-1].contextualKeyword===m._async&&pe(k.lessThan)){const e=w.snapshot(),t=function(){w.scopeDepth++;const e=w.tokens.length;if(Ps(),!Rn())return!1;return Fn(e),!0}();if(t&&!w.error)return;w.restoreFromSnapshot(e)}Tn(e,t)}(e,t):Tn(e,t)}function Tn(e,t=!1){const n=new pn(!1);do{bn(e,t,n)}while(!n.stop&&!w.error)}function bn(e,t,n){v?function(e,t,n){if(B()||!ue(k.bang)){if(pe(k.lessThan)||pe(k.bitShiftL)){const n=w.snapshot();if(!t&&In()&&Yt())return;if(Qt(),!t&&ue(k.parenL)?(w.tokens[w.tokens.length-1].subscriptStartIndex=e,wn()):pe(k.backQuote)?On():(w.type===k.greaterThan||w.type!==k.parenL&&Boolean(w.type&k.IS_EXPRESSION_START)&&!B())&&U(),!w.error)return;w.restoreFromSnapshot(n)}else!t&&pe(k.questionDot)&&de()===k.lessThan&&(re(),w.tokens[e].isOptionalChainStart=!0,w.tokens[w.tokens.length-1].subscriptStartIndex=e,Zt(),$(k.parenL),wn());vn(e,t,n)}else w.tokens[w.tokens.length-1].type=k.nonNullAssertion}(e,t,n):I?function(e,t,n){if(pe(k.questionDot)&&de()===k.lessThan)return t?void(n.stop=!0):(re(),ss(),$(k.parenL),void wn());if(!t&&pe(k.lessThan)){const e=w.snapshot();if(ss(),$(k.parenL),wn(),!w.error)return;w.restoreFromSnapshot(e)}vn(e,t,n)}(e,t,n):vn(e,t,n)}function vn(e,t,n){if(!t&&ue(k.doubleColon))Cn(),n.stop=!0,_n(e,t);else if(pe(k.questionDot)){if(w.tokens[e].isOptionalChainStart=!0,t&&de()===k.parenL)return void(n.stop=!0);re(),w.tokens[w.tokens.length-1].subscriptStartIndex=e,ue(k.bracketL)?(dn(),$(k.bracketR)):ue(k.parenL)?wn():En()}else if(ue(k.dot))w.tokens[w.tokens.length-1].subscriptStartIndex=e,En();else if(ue(k.bracketL))w.tokens[w.tokens.length-1].subscriptStartIndex=e,dn(),$(k.bracketR);else if(!t&&pe(k.parenL))if(In()){const t=w.snapshot(),s=w.tokens.length;re(),w.tokens[w.tokens.length-1].subscriptStartIndex=e;const o=E();w.tokens[w.tokens.length-1].contextId=o,wn(),w.tokens[w.tokens.length-1].contextId=o,(pe(k.colon)||pe(k.arrow))&&(w.restoreFromSnapshot(t),n.stop=!0,w.scopeDepth++,Ps(),function(e){v?pe(k.colon)&&Pt():I&&function(){if(pe(k.colon)){const e=w.noAnonFunctionType;w.noAnonFunctionType=!0,gs(),w.noAnonFunctionType=e}}();$(k.arrow),Fn(e)}(s))}else{re(),w.tokens[w.tokens.length-1].subscriptStartIndex=e;const t=E();w.tokens[w.tokens.length-1].contextId=t,wn(),w.tokens[w.tokens.length-1].contextId=t}else pe(k.backQuote)?On():n.stop=!0}function In(){return w.tokens[w.tokens.length-1].contextualKeyword===m._async&&!P()}function wn(){let e=!0;for(;!ue(k.parenR)&&!w.error;){if(e)e=!1;else if($(k.comma),ue(k.parenR))break;Hn(!1)}}function Cn(){const e=w.tokens.length;An(),_n(e,!0)}function An(){if(ue(k.modulo))return Vn(),!1;if(pe(k.jsxText)||pe(k.jsxEmptyText))return Sn(),!1;if(pe(k.lessThan)&&b)return w.type=k.jsxTagStart,ln(),re(),!1;const e=w.potentialArrowAt===w.start;switch(w.type){case k.slash:case k.assign:ae();case k._super:case k._this:case k.regexp:case k.num:case k.bigint:case k.decimal:case k.string:case k._null:case k._true:case k._false:return re(),!1;case k._import:return re(),pe(k.dot)&&(w.tokens[w.tokens.length-1].type=k.name,re(),Vn()),!1;case k.name:{const t=w.tokens.length,n=w.start,s=w.contextualKeyword;return Vn(),s===m._await?(xn(),!1):s===m._async&&pe(k._function)&&!P()?(re(),Ds(n,!1),!1):e&&s===m._async&&!P()&&pe(k.name)?(w.scopeDepth++,tt(!1),$(k.arrow),Fn(t),!0):pe(k._do)&&!P()?(re(),Ss(),!1):e&&!P()&&pe(k.arrow)?(w.scopeDepth++,st(!1),$(k.arrow),Fn(t),!0):(w.tokens[w.tokens.length-1].identifierRole=J.Access,!1)}case k._do:return re(),Ss(),!1;case k.parenL:return jn(e);case k.bracketL:return re(),Kn(k.bracketR,!0),!1;case k.braceL:return Dn(!1,!1),!1;case k._function:return function(){const e=w.start;Vn(),ue(k.dot)&&Vn();Ds(e,!1)}(),!1;case k.at:ws();case k._class:return Bs(!1),!1;case k._new:return function(){if($(k._new),ue(k.dot))return void Vn();Cn(),void ue(k.questionDot),I&&function(){if(pe(k.lessThan)){const e=w.snapshot();ss(),w.error&&w.restoreFromSnapshot(e)}}();ue(k.parenL)&&Kn(k.parenR)}(),!1;case k.backQuote:return On(),!1;case k.doubleColon:return re(),Cn(),!1;case k.hash:{const e=xe();return G[e]||e===g.backslash?En():re(),!1}default:return U(),!1}}function En(){ue(k.hash),Vn()}function Sn(){re()}function Nn(){$(k.parenL),dn(),$(k.parenR)}function jn(e){const t=w.snapshot(),n=w.tokens.length;$(k.parenL);let s=!0;for(;!pe(k.parenR)&&!w.error;){if(s)s=!1;else if($(k.comma),pe(k.parenR))break;if(pe(k.ellipsis)){et(!1),Ln();break}fn(!1,!0)}if($(k.parenR),e&&(pe(k.colon)||!P())){if(Rn())return w.restoreFromSnapshot(t),w.scopeDepth++,Ps(),Rn(),Fn(n),!w.error||(w.restoreFromSnapshot(t),jn(!1),!1)}return!1}function Rn(){return v?function(){if(pe(k.colon)){const e=w.snapshot();Ot(k.colon),P()&&U(),pe(k.arrow)||U(),w.error&&w.restoreFromSnapshot(e)}return ue(k.arrow)}():I?function(){if(pe(k.colon)){const e=ce(0),t=w.snapshot(),n=w.noAnonFunctionType;w.noAnonFunctionType=!0,Gn(),w.noAnonFunctionType=n,P()&&U(),pe(k.arrow)||U(),w.error&&w.restoreFromSnapshot(t),le(e)}return ue(k.arrow)}():ue(k.arrow)}function Ln(){(v||I)&&(he(k.question),pe(k.colon)&&(v?Pt():I&&gs()))}function On(){for(ie(),ie();!pe(k.backQuote)&&!w.error;)$(k.dollarBraceL),dn(),ie(),ie();re()}function Dn(e,t){const n=E();let s=!0;for(re(),w.tokens[w.tokens.length-1].contextId=n;!ue(k.braceR)&&!w.error;){if(s)s=!1;else if($(k.comma),ue(k.braceR))break;let o=!1;if(pe(k.ellipsis)){const n=w.tokens.length;if(Ze(),e&&(w.tokens.length===n+2&&st(t),ue(k.braceR)))break}else e||(o=ue(k.star)),!e&&R(m._async)?(o&&U(),Vn(),pe(k.colon)||pe(k.parenL)||pe(k.braceR)||pe(k.eq)||pe(k.comma)||(pe(k.star)&&(re(),o=!0),qn(n))):qn(n),Bn(e,t,n)}w.tokens[w.tokens.length-1].contextId=n}function Pn(e,t){const n=w.start;return pe(k.parenL)?(e&&U(),Mn(n,!1),!0):!!function(e){return!e&&(pe(k.string)||pe(k.num)||pe(k.bracketL)||pe(k.name)||!!(w.type&k.IS_KEYWORD))}(e)&&(qn(t),Mn(n,!1),!0)}function Bn(e,t,n){v?kt():I&&pe(k.lessThan)&&(ns(),pe(k.parenL)||U());Pn(e,n)||function(e,t){if(ue(k.colon))return void(e?ct(t):fn(!1));let n;n=e?0===w.scopeDepth?J.ObjectShorthandTopLevelDeclaration:t?J.ObjectShorthandBlockScopedDeclaration:J.ObjectShorthandFunctionScopedDeclaration:J.ObjectShorthand,w.tokens[w.tokens.length-1].identifierRole=n,ct(t,!0)}(e,t)}function qn(e){I&&ys(),ue(k.bracketL)?(w.tokens[w.tokens.length-1].contextId=e,fn(),$(k.bracketR),w.tokens[w.tokens.length-1].contextId=e):(pe(k.num)||pe(k.string)||pe(k.bigint)||pe(k.decimal)?An():En(),w.tokens[w.tokens.length-1].identifierRole=J.ObjectKey,w.tokens[w.tokens.length-1].contextId=e)}function Mn(e,t){const n=E();w.scopeDepth++;const s=w.tokens.length;Ps(t,n),$n(e,n);const o=w.tokens.length;w.scopes.push(new y(s,o,!0)),w.scopeDepth--}function Fn(e){Un(!0);const t=w.tokens.length;w.scopes.push(new y(e,t,!0)),w.scopeDepth--}function $n(e,t=0){v?function(e,t){if(pe(k.colon)&&Ot(k.colon),pe(k.braceL)||!M())Un(!1,t);else{let t=w.tokens.length-1;for(;t>=0&&(w.tokens[t].start>=e||w.tokens[t].type===k._default||w.tokens[t].type===k._export);)w.tokens[t].isType=!0,t--}}(e,t):I?function(e){pe(k.colon)&&Gn();Un(!1,e)}(t):Un(!1,t)}function Un(e,t=0){e&&!pe(k.braceL)?fn():Ss(!0,t)}function Kn(e,t=!1){let n=!0;for(;!ue(e)&&!w.error;){if(n)n=!1;else if($(k.comma),ue(e))break;Hn(t)}}function Hn(e){e&&pe(k.comma)||(pe(k.ellipsis)?(Ze(),Ln()):pe(k.question)?re():fn(!1,!0))}function Vn(){re(),w.tokens[w.tokens.length-1].type=k.name}function Wn(e){const t=ce(0);$(e||k.colon),ks(),le(t)}function zn(){$(k.modulo),D(m._checks),ue(k.parenL)&&(dn(),$(k.parenR))}function Gn(){const e=ce(0);$(k.colon),pe(k.modulo)?zn():(ks(),pe(k.modulo)&&zn()),le(e)}function Xn(){pe(k._class)?(re(),Jn(!0)):pe(k._function)?(re(),Vn(),pe(k.lessThan)&&ns(),$(k.parenL),hs(),$(k.parenR),Gn(),F()):pe(k._var)?(re(),xs(),F()):O(m._module)?ue(k.dot)?(D(m._exports),gs(),F()):function(){pe(k.string)?An():Vn();$(k.braceL);for(;!pe(k.braceR)&&!w.error;)pe(k._import)?(re(),Qs()):U();$(k.braceR)}():R(m._type)?(re(),es()):R(m._opaque)?(re(),ts(!0)):R(m._interface)?(re(),Jn()):pe(k._export)?($(k._export),ue(k._default)?pe(k._function)||pe(k._class)?Xn():(ks(),F()):pe(k._var)||pe(k._function)||pe(k._class)||R(m._opaque)?Xn():pe(k.star)||pe(k.braceL)||R(m._interface)||R(m._type)||R(m._opaque)?Vs():U()):U()}function Jn(e=!1){if(Zn(),pe(k.lessThan)&&ns(),ue(k._extends))do{Yn()}while(!e&&ue(k.comma));if(R(m._mixins)){re();do{Yn()}while(ue(k.comma))}if(R(m._implements)){re();do{Yn()}while(ue(k.comma))}is(e,!1,e)}function Yn(){ls(!1),pe(k.lessThan)&&ss()}function Qn(){Jn()}function Zn(){Vn()}function es(){Zn(),pe(k.lessThan)&&ns(),Wn(k.eq),F()}function ts(e){D(m._type),Zn(),pe(k.lessThan)&&ns(),pe(k.colon)&&Wn(k.colon),e||Wn(k.eq),F()}function ns(){const e=ce(0);pe(k.lessThan)||pe(k.typeParameterStart)?re():U();do{ys(),xs(),ue(k.eq)&&ks(),pe(k.greaterThan)||$(k.comma)}while(!pe(k.greaterThan)&&!w.error);$(k.greaterThan),le(e)}function ss(){const e=ce(0);for($(k.lessThan);!pe(k.greaterThan)&&!w.error;)ks(),pe(k.greaterThan)||$(k.comma);$(k.greaterThan),le(e)}function os(){pe(k.num)||pe(k.string)?An():Vn()}function rs(){for(pe(k.lessThan)&&ns(),$(k.parenL);!pe(k.parenR)&&!pe(k.ellipsis)&&!w.error;)us(),pe(k.parenR)||$(k.comma);ue(k.ellipsis)&&us(),$(k.parenR),Wn()}function is(e,t,n){let s;for(t&&pe(k.braceBarL)?($(k.braceBarL),s=k.braceBarR):($(k.braceL),s=k.braceR);!pe(s)&&!w.error;){if(n&&R(m._proto)){const t=de();t!==k.colon&&t!==k.question&&(re(),e=!1)}if(e&&R(m._static)){const e=de();e!==k.colon&&e!==k.question&&re()}if(ys(),ue(k.bracketL))ue(k.bracketL)?(os(),$(k.bracketR),$(k.bracketR),pe(k.lessThan)||pe(k.parenL)?rs():(ue(k.question),Wn())):(de()===k.colon?(os(),Wn()):ks(),$(k.bracketR),Wn());else if(pe(k.parenL)||pe(k.lessThan))rs();else{if(R(m._get)||R(m._set)){const e=de();e!==k.name&&e!==k.string&&e!==k.num||re()}as()}cs()}$(s)}function as(){if(pe(k.ellipsis)){if($(k.ellipsis),ue(k.comma)||ue(k.semi),pe(k.braceR))return;ks()}else os(),pe(k.lessThan)||pe(k.parenL)?rs():(ue(k.question),Wn())}function cs(){ue(k.semi)||ue(k.comma)||pe(k.braceR)||pe(k.braceBarR)||U()}function ls(e){for(e||Vn();ue(k.dot);)Vn()}function us(){const e=de();e===k.colon||e===k.question?(Vn(),ue(k.question),Wn()):ks()}function hs(){for(;!pe(k.parenR)&&!pe(k.ellipsis)&&!w.error;)us(),pe(k.parenR)||$(k.comma);ue(k.ellipsis)&&us()}function ps(){let e=!1;const t=w.noAnonFunctionType;switch(w.type){case k.name:return R(m._interface)?void function(){if(D(m._interface),ue(k._extends))do{Yn()}while(ue(k.comma));is(!1,!1,!1)}():(Vn(),ls(!0),void(pe(k.lessThan)&&ss()));case k.braceL:return void is(!1,!1,!1);case k.braceBarL:return void is(!1,!0,!1);case k.bracketL:return void function(){for($(k.bracketL);w.pos<C.length&&!pe(k.bracketR)&&(ks(),!pe(k.bracketR));)$(k.comma);$(k.bracketR)}();case k.lessThan:return ns(),$(k.parenL),hs(),$(k.parenR),$(k.arrow),void ks();case k.parenL:if(re(),!pe(k.parenR)&&!pe(k.ellipsis))if(pe(k.name)){const t=de();e=t!==k.question&&t!==k.colon}else e=!0;if(e){if(w.noAnonFunctionType=!1,ks(),w.noAnonFunctionType=t,w.noAnonFunctionType||!(pe(k.comma)||pe(k.parenR)&&de()===k.arrow))return void $(k.parenR);ue(k.comma)}return hs(),$(k.parenR),$(k.arrow),void ks();case k.minus:return re(),void Sn();case k.string:case k.num:case k._true:case k._false:case k._null:case k._this:case k._void:case k.star:return void re();default:if(w.type===k._typeof)return $(k._typeof),void ps();if(w.type&k.IS_KEYWORD)return re(),void(w.tokens[w.tokens.length-1].type=k.name)}U()}function ds(){ue(k.question)?ds():function(){for(ps();!P()&&(pe(k.bracketL)||pe(k.questionDot));)ue(k.questionDot),$(k.bracketL),ue(k.bracketR)||(ks(),$(k.bracketR))}()}function fs(){ds(),!w.noAnonFunctionType&&ue(k.arrow)&&ks()}function ms(){for(ue(k.bitwiseAND),fs();ue(k.bitwiseAND);)fs()}function ks(){!function(){for(ue(k.bitwiseOR),ms();ue(k.bitwiseOR);)ms()}()}function gs(){Wn()}function xs(){Vn(),pe(k.colon)&&gs()}function ys(){(pe(k.plus)||pe(k.minus))&&(re(),w.tokens[w.tokens.length-1].isType=!0)}function _s(){if(pe(k._typeof)||R(m._type)){const t=me();(((e=t).type===k.name||e.type&k.IS_KEYWORD)&&e.contextualKeyword!==m._from||t.type===k.braceL||t.type===k.star)&&re()}var e}function Ts(){D(m._enum),w.tokens[w.tokens.length-1].type=k._enum,Vn(),function(){O(m._of)&&re();$(k.braceL),function(){for(;!pe(k.braceR)&&!w.error&&!ue(k.ellipsis);)bs(),pe(k.braceR)||$(k.comma)}(),$(k.braceR)}()}function bs(){Vn(),ue(k.eq)&&re()}function vs(e){I&&function(){if(pe(k.name)&&w.contextualKeyword===m._interface){const e=ce(0);return re(),Qn(),le(e),!0}return!!R(m._enum)&&(Ts(),!0)}()||(pe(k.at)&&ws(),function(e){if(v&&function(){if(w.type===k._const){const e=me();if(e.type===k.name&&e.contextualKeyword===m._enum)return $(k._const),D(m._enum),w.tokens[w.tokens.length-1].type=k._enum,Ut(),!0}return!1}())return;const t=w.type;switch(t){case k._break:case k._continue:return re(),void(M()||(Vn(),F()));case k._debugger:return re(),void F();case k._do:return re(),vs(!1),$(k._while),Nn(),void ue(k.semi);case k._for:return void function(){w.scopeDepth++;const e=w.tokens.length;!function(){re();let e=!1;R(m._await)&&(e=!0,re());if($(k.parenL),pe(k.semi))return e&&U(),void js();const t=Is();if(t||pe(k._var)||pe(k._let)||pe(k._const)||function(){if(!R(m._using))return!1;if(L(m._of))return!1;return!0}())return t&&D(m._await),re(),Ls(!0,w.type!==k._var),pe(k._in)||R(m._of)?void Rs(e):void js();if(dn(!0),pe(k._in)||R(m._of))return void Rs(e);e&&U();js()}();const t=w.tokens.length;w.scopes.push(new y(e,t,!1)),w.scopeDepth--}();case k._function:if(de()===k.dot)break;return e||U(),void function(){const e=w.start;re(),Ds(e,!0)}();case k._class:return e||U(),void Bs(!0);case k._if:return re(),Nn(),vs(!1),void(ue(k._else)&&vs(!1));case k._return:return re(),void(M()||(dn(),F()));case k._switch:return void function(){re(),Nn(),w.scopeDepth++;const e=w.tokens.length;$(k.braceL);for(;!pe(k.braceR)&&!w.error;)if(pe(k._case)||pe(k._default)){const e=pe(k._case);re(),e&&dn(),$(k.colon)}else vs(!0);re();const t=w.tokens.length;w.scopes.push(new y(e,t,!1)),w.scopeDepth--}();case k._throw:return re(),dn(),void F();case k._try:return void function(){if(re(),Ss(),pe(k._catch)){re();let e=null;if(pe(k.parenL)&&(w.scopeDepth++,e=w.tokens.length,$(k.parenL),ot(!0),v&&Dt(),$(k.parenR)),Ss(),null!=e){const t=w.tokens.length;w.scopes.push(new y(e,t,!1)),w.scopeDepth--}}ue(k._finally)&&Ss()}();case k._let:case k._const:e||U();case k._var:return void Es(t!==k._var);case k._while:return re(),Nn(),void vs(!1);case k.braceL:return void Ss();case k.semi:return void re();case k._export:case k._import:{const e=de();if(e===k.parenL||e===k.dot)break;return re(),void(t===k._import?Qs():Vs())}case k.name:if(w.contextualKeyword===m._async){const e=w.start,t=w.snapshot();if(re(),pe(k._function)&&!P())return $(k._function),void Ds(e,!0);w.restoreFromSnapshot(t)}else{if(w.contextualKeyword===m._using&&!q()&&de()===k.name)return void Es(!0);if(Is())return D(m._await),void Es(!0)}}const n=w.tokens.length;dn();let s=null;if(w.tokens.length===n+1){const e=w.tokens[w.tokens.length-1];e.type===k.name&&(s=e.contextualKeyword)}if(null==s)return void F();ue(k.colon)?vs(!0):(o=s,v?function(e){Gt(e)||F()}(o):I?function(e){if(e===m._declare){if(pe(k._class)||pe(k.name)||pe(k._function)||pe(k._var)||pe(k._export)){const e=ce(1);Xn(),le(e)}}else if(pe(k.name))if(e===m._interface){const e=ce(1);Qn(),le(e)}else if(e===m._type){const e=ce(1);es(),le(e)}else if(e===m._opaque){const e=ce(1);ts(!1),le(e)}F()}(o):F());var o}(e))}function Is(){if(!R(m._await))return!1;const e=w.snapshot();return re(),!R(m._using)||B()?(w.restoreFromSnapshot(e),!1):(re(),!pe(k.name)||B()?(w.restoreFromSnapshot(e),!1):(w.restoreFromSnapshot(e),!0))}function ws(){for(;pe(k.at);)Cs()}function Cs(){if(re(),ue(k.parenL))dn(),$(k.parenR);else{for(Vn();ue(k.dot);)Vn();v?((pe(k.lessThan)||pe(k.bitShiftL))&&Qt(),As()):As()}}function As(){ue(k.parenL)&&wn()}function Es(e){re(),Ls(!1,e),F()}function Ss(e=!1,t=0){const n=w.tokens.length;w.scopeDepth++,$(k.braceL),t&&(w.tokens[w.tokens.length-1].contextId=t),Ns(k.braceR),t&&(w.tokens[w.tokens.length-1].contextId=t);const s=w.tokens.length;w.scopes.push(new y(n,s,e)),w.scopeDepth--}function Ns(e){for(;!ue(e)&&!w.error;)vs(!0)}function js(){$(k.semi),pe(k.semi)||dn(),$(k.semi),pe(k.parenR)||dn(),$(k.parenR),vs(!1)}function Rs(e){e?O(m._of):re(),dn(),$(k.parenR),vs(!1)}function Ls(e,t){for(;;){if(Os(t),ue(k.eq)){const t=w.tokens.length-1;fn(e),w.tokens[t].rhsEndIndex=w.tokens.length}if(!ue(k.comma))break}}function Os(e){ot(e),v?function(){const e=ce(0);B()||ue(k.bang),Dt(),le(e)}():I&&pe(k.colon)&&gs()}function Ds(e,t,n=!1){pe(k.star)&&re(),!t||n||pe(k.name)||pe(k._yield)||U();let s=null;pe(k.name)&&(t||(s=w.tokens.length,w.scopeDepth++),tt(!1));const o=w.tokens.length;w.scopeDepth++,Ps(),$n(e);const r=w.tokens.length;w.scopes.push(new y(o,r,!0)),w.scopeDepth--,null!==s&&(w.scopes.push(new y(s,r,!0)),w.scopeDepth--)}function Ps(e=!1,t=0){v?kt():I&&function(){if(pe(k.lessThan)){const e=ce(0);ns(),le(e)}}(),$(k.parenL),t&&(w.tokens[w.tokens.length-1].contextId=t),rt(k.parenR,!1,!1,e,t),t&&(w.tokens[w.tokens.length-1].contextId=t)}function Bs(e,t=!1){const n=E();re(),w.tokens[w.tokens.length-1].contextId=n,w.tokens[w.tokens.length-1].isExpression=!e;let s=null;e||(s=w.tokens.length,w.scopeDepth++),function(e,t=!1){if(v&&(!e||t)&&R(m._implements))return;pe(k.name)&&tt(!0);v?kt():I&&pe(k.lessThan)&&ns()}(e,t),function(){let e=!1;ue(k._extends)?(yn(),e=!0):e=!1;v?function(e){if(e&&(pe(k.lessThan)||pe(k.bitShiftL))&&Qt(),O(m._implements)){w.tokens[w.tokens.length-1].type=k._implements;const e=ce(1);Mt(),le(e)}}(e):I&&function(e){if(e&&pe(k.lessThan)&&ss(),R(m._implements)){const e=ce(0);re(),w.tokens[w.tokens.length-1].type=k._implements;do{Zn(),pe(k.lessThan)&&ss()}while(ue(k.comma));le(e)}}(e)}();const o=w.tokens.length;if(function(e){$(k.braceL);for(;!ue(k.braceR)&&!w.error;){if(ue(k.semi))continue;if(pe(k.at)){Cs();continue}Fs(w.start,e)}}(n),!w.error&&(w.tokens[o].contextId=n,w.tokens[w.tokens.length-1].contextId=n,null!==s)){const e=w.tokens.length;w.scopes.push(new y(s,e,!1)),w.scopeDepth--}}function qs(){return pe(k.eq)||pe(k.semi)||pe(k.braceR)||pe(k.bang)||pe(k.colon)}function Ms(){return pe(k.parenL)||pe(k.lessThan)}function Fs(e,t){v&&ht([m._declare,m._public,m._protected,m._private,m._override]);let n=!1;if(pe(k.name)&&w.contextualKeyword===m._static){if(Vn(),Ms())return void $s(e,!1);if(qs())return void Hs();if(w.tokens[w.tokens.length-1].type=k._static,n=!0,pe(k.braceL))return w.tokens[w.tokens.length-1].contextId=t,void Ss()}!function(e,t,n){if(v&&function(e){const t=w.tokens.length;ht([m._abstract,m._readonly,m._declare,m._static,m._override]);const n=w.tokens.length;if(Tt()){for(let s=e?t-1:t;s<n;s++)w.tokens[s].isType=!0;return!0}return!1}(t))return;if(ue(k.star))return Us(n),void $s(e,!1);Us(n);let s=!1;const o=w.tokens[w.tokens.length-1];o.contextualKeyword===m._constructor&&(s=!0);if(Ks(),Ms())$s(e,s);else if(qs())Hs();else if(o.contextualKeyword!==m._async||M())o.contextualKeyword!==m._get&&o.contextualKeyword!==m._set||M()&&pe(k.star)?o.contextualKeyword!==m._accessor||M()?M()?Hs():U():(Us(n),Hs()):(o.contextualKeyword===m._get?w.tokens[w.tokens.length-1].type=k._get:w.tokens[w.tokens.length-1].type=k._set,Us(n),$s(e,!1));else{w.tokens[w.tokens.length-1].type=k._async;pe(k.star)&&re(),Us(n),Ks(),$s(e,!1)}}(e,n,t)}function $s(e,t){v?kt():I&&pe(k.lessThan)&&ns(),Mn(e,t)}function Us(e){qn(e)}function Ks(){if(v){const e=ce(0);ue(k.question),le(e)}}function Hs(){if(v?(he(k.bang),Dt()):I&&pe(k.colon)&&gs(),pe(k.eq)){const e=w.tokens.length;re(),fn(),w.tokens[e].rhsEndIndex=w.tokens.length}F()}function Vs(){const e=w.tokens.length-1;v&&function(){if(ue(k._import))return R(m._type)&&de()!==k.eq&&D(m._type),Wt(),!0;if(ue(k.eq))return dn(),F(),!0;if(O(m._as))return D(m._namespace),Vn(),F(),!0;if(R(m._type)){const e=de();e!==k.braceL&&e!==k.star||re()}return!1}()||((I?pe(k.star)||R(m._type)&&de()===k.star:pe(k.star))?I?function(){if(O(m._type)){const e=ce(2);Gs(),le(e)}else Gs()}():Gs():function(){if(v&&en())return!1;if(I&&pe(k.name)&&(w.contextualKeyword===m._type||w.contextualKeyword===m._interface||w.contextualKeyword===m._opaque||w.contextualKeyword===m._enum))return!1;if(pe(k.name))return w.contextualKeyword!==m._async;if(!pe(k._default))return!1;const e=ke(),t=me(),n=t.type===k.name&&t.contextualKeyword===m._from;if(t.type===k.comma)return!0;if(n){const t=C.charCodeAt(ge(e+4));return t===g.quotationMark||t===g.apostrophe}return!1}()?(Vn(),pe(k.comma)&&de()===k.star?($(k.comma),$(k.star),D(m._as),Vn()):Ws(),zs()):ue(k._default)?function(){if(v&&function(){if(R(m._abstract)&&de()===k._class)return w.type=k._abstract,re(),Bs(!0,!0),!0;if(R(m._interface)){const e=ce(2);return Xt(m._interface,!0),le(e),!0}return!1}())return;if(I&&R(m._enum)&&(Ts(),1))return;const e=w.start;ue(k._function)?Ds(e,!0,!0):R(m._async)&&de()===k._function?(O(m._async),ue(k._function),Ds(e,!0,!0)):pe(k._class)?Bs(!0,!0):pe(k.at)?(ws(),Bs(!0,!0)):(fn(),F())}():v&&en()||I&&(R(m._type)||R(m._interface)||R(m._opaque)||R(m._enum))||w.type===k._var||w.type===k._const||w.type===k._let||w.type===k._function||w.type===k._class||R(m._async)||pe(k.at)?v?function(){const e=O(m._declare);e&&(w.tokens[w.tokens.length-1].type=k._declare);let t=!1;if(pe(k.name))if(e){const e=ce(2);t=zt(),le(e)}else t=zt();if(!t)if(e){const e=ce(2);vs(!0),le(e)}else vs(!0)}():I?function(){if(R(m._type)){const e=ce(1);re(),pe(k.braceL)?(Xs(),zs()):es(),le(e)}else if(R(m._opaque)){const e=ce(1);re(),ts(!1),le(e)}else if(R(m._interface)){const e=ce(1);re(),Qn(),le(e)}else vs(!0)}():vs(!0):(Xs(),zs()),w.tokens[e].rhsEndIndex=w.tokens.length)}function Ws(){ue(k.comma)&&Xs()}function zs(){O(m._from)&&(An(),to()),F()}function Gs(){$(k.star),R(m._as)?(re(),w.tokens[w.tokens.length-1].type=k._as,Vn(),Ws(),zs()):zs()}function Xs(){let e=!0;for($(k.braceL);!ue(k.braceR)&&!w.error;){if(e)e=!1;else if($(k.comma),ue(k.braceR))break;Js()}}function Js(){v?function(){if(Vn(),pe(k.comma)||pe(k.braceR))w.tokens[w.tokens.length-1].identifierRole=J.ExportAccess;else{if(Vn(),pe(k.comma)||pe(k.braceR))return w.tokens[w.tokens.length-1].identifierRole=J.ExportAccess,w.tokens[w.tokens.length-2].isType=!0,void(w.tokens[w.tokens.length-1].isType=!0);Vn(),pe(k.comma)||pe(k.braceR)?w.tokens[w.tokens.length-3].identifierRole=J.ExportAccess:(Vn(),w.tokens[w.tokens.length-3].identifierRole=J.ExportAccess,w.tokens[w.tokens.length-4].isType=!0,w.tokens[w.tokens.length-3].isType=!0,w.tokens[w.tokens.length-2].isType=!0,w.tokens[w.tokens.length-1].isType=!0)}}():(Vn(),w.tokens[w.tokens.length-1].identifierRole=J.ExportAccess,O(m._as)&&Vn())}function Ys(){R(m._module)&&function(){const e=w.snapshot();return D(m._module),O(m._from)?R(m._from)?(w.restoreFromSnapshot(e),!0):(w.restoreFromSnapshot(e),!1):pe(k.comma)?(w.restoreFromSnapshot(e),!1):(w.restoreFromSnapshot(e),!0)}()&&re()}function Qs(){if(v&&pe(k.name)&&de()===k.eq)Wt();else{if(v&&R(m._type)){const e=me();if(e.type===k.name&&e.contextualKeyword!==m._from){if(D(m._type),de()===k.eq)return void Wt()}else e.type!==k.star&&e.type!==k.braceL||D(m._type)}pe(k.string)||(Ys(),function(){I&&_s();let e=!0;if(pe(k.name)&&(Zs(),!ue(k.comma)))return;if(pe(k.star))return re(),D(m._as),void Zs();$(k.braceL);for(;!ue(k.braceR)&&!w.error;){if(e)e=!1;else if(ue(k.colon)&&U("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),$(k.comma),ue(k.braceR))break;eo()}}(),D(m._from)),An(),to(),F()}}function Zs(){nt()}function eo(){v?function(){if(Vn(),pe(k.comma)||pe(k.braceR))w.tokens[w.tokens.length-1].identifierRole=J.ImportDeclaration;else{if(Vn(),pe(k.comma)||pe(k.braceR))return w.tokens[w.tokens.length-1].identifierRole=J.ImportDeclaration,w.tokens[w.tokens.length-2].isType=!0,void(w.tokens[w.tokens.length-1].isType=!0);if(Vn(),pe(k.comma)||pe(k.braceR))return w.tokens[w.tokens.length-3].identifierRole=J.ImportAccess,void(w.tokens[w.tokens.length-1].identifierRole=J.ImportDeclaration);Vn(),w.tokens[w.tokens.length-3].identifierRole=J.ImportAccess,w.tokens[w.tokens.length-1].identifierRole=J.ImportDeclaration,w.tokens[w.tokens.length-4].isType=!0,w.tokens[w.tokens.length-3].isType=!0,w.tokens[w.tokens.length-2].isType=!0,w.tokens[w.tokens.length-1].isType=!0}}():I?function(){const e=w.contextualKeyword===m._type||w.type===k._typeof;e?re():Vn(),R(m._as)&&!L(m._as)?(Vn(),(!e||pe(k.name)||w.type&k.IS_KEYWORD)&&Vn()):(e&&(pe(k.name)||w.type&k.IS_KEYWORD)&&Vn(),O(m._as)&&Vn())}():(nt(),R(m._as)&&(w.tokens[w.tokens.length-1].identifierRole=J.ImportAccess,re(),nt()))}function to(){(pe(k._with)||R(m._assert)&&!B())&&(re(),Dn(!1,!1))}function no(){return 0===w.pos&&C.charCodeAt(0)===g.numberSign&&C.charCodeAt(1)===g.exclamationMark&&Te(2),ye(),function(){if(Ns(k.eof),w.scopes.push(new y(0,w.tokens.length,!0)),0!==w.scopeDepth)throw new Error(`Invalid scope depth at end of file: ${w.scopeDepth}`);return new so(w.tokens,w.scopes)}()}class so{constructor(e,t){this.tokens=e,this.scopes=t}}class oo{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(e,t,n,s,o){this.code=e,this.tokens=t,this.isFlowEnabled=n,this.disableESTransforms=s,this.helperManager=o,oo.prototype.__init.call(this),oo.prototype.__init2.call(this),oo.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(e){this.resultCode=e.resultCode,this.tokenIndex=e.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(e){const t=this.resultCode.slice(e.resultCode.length);return this.resultCode=e.resultCode,t}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(e,t){return this.matches1AtIndex(e,k.name)&&this.tokens[e].contextualKeyword===t}identifierNameAtIndex(e){return this.identifierNameForToken(this.tokens[e])}identifierNameAtRelativeIndex(e){return this.identifierNameForToken(this.tokenAtRelativeIndex(e))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(e){return this.code.slice(e.start,e.end)}rawCodeForToken(e){return this.code.slice(e.start,e.end)}stringValueAtIndex(e){return this.stringValueForToken(this.tokens[e])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(e){return this.code.slice(e.start+1,e.end-1)}matches1AtIndex(e,t){return this.tokens[e].type===t}matches2AtIndex(e,t,n){return this.tokens[e].type===t&&this.tokens[e+1].type===n}matches3AtIndex(e,t,n,s){return this.tokens[e].type===t&&this.tokens[e+1].type===n&&this.tokens[e+2].type===s}matches1(e){return this.tokens[this.tokenIndex].type===e}matches2(e,t){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t}matches3(e,t,n){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n}matches4(e,t,n,s){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===s}matches5(e,t,n,s,o){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===s&&this.tokens[this.tokenIndex+4].type===o}matchesContextual(e){return this.matchesContextualAtIndex(this.tokenIndex,e)}matchesContextIdAndLabel(e,t){return this.matches1(e)&&this.currentToken().contextId===t}previousWhitespaceAndComments(){let e=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(e=e.replace(/@flow/g,"")),e}replaceToken(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(e){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let e=0;for(;!this.isAtEnd();){if(this.matches1(k.braceL))e++;else if(this.matches1(k.braceR)){if(0===e)return;e--}this.removeToken()}}copyExpectedToken(e){if(this.tokens[this.tokenIndex].type!==e)throw new Error(`Expected token ${e}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=e,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const e=this.currentToken();if((e.numNullishCoalesceStarts||e.isOptionalChainStart)&&(e.isAsyncOperation=function(e){let t=e.currentIndex(),n=0;const s=e.currentToken();do{const o=e.tokens[t];if(o.isOptionalChainStart&&n++,o.isOptionalChainEnd&&n--,n+=o.numNullishCoalesceStarts,n-=o.numNullishCoalesceEnds,o.contextualKeyword===m._await&&null==o.identifierRole&&o.scopeDepth===s.scopeDepth)return!0;t+=1}while(n>0&&t<e.tokens.length);return!1}(this)),!this.disableESTransforms){if(e.numNullishCoalesceStarts)for(let t=0;t<e.numNullishCoalesceStarts;t++)e.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";e.isOptionalChainStart&&(e.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===k._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let t=0;t<e.numNullishCoalesceEnds;t++)this.resultCode+="))"}appendCode(e){this.resultCode+=e}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const e=this.currentToken();return this.code.slice(e.start,e.end)}tokenAtRelativeIndex(e){return this.tokens[this.tokenIndex+e]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function ro(e,t,n,s){const o=t.snapshot(),r=function(e){const t=e.currentToken(),n=t.contextId;if(null==n)throw new Error("Expected context ID on class token.");const s=t.isExpression;if(null==s)throw new Error("Expected isExpression on class token.");let o=null,r=!1;e.nextToken(),e.matches1(k.name)&&(o=e.identifierName());for(;!e.matchesContextIdAndLabel(k.braceL,n);)e.matches1(k._extends)&&!e.currentToken().isType&&(r=!0),e.nextToken();return{isExpression:s,className:o,hasSuperclass:r}}(t);let i=[];const a=[],c=[];let l=null;const u=[],h=[],p=t.currentToken().contextId;if(null==p)throw new Error("Expected non-null class context ID on class open-brace.");for(t.nextToken();!t.matchesContextIdAndLabel(k.braceR,p);)if(t.matchesContextual(m._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:i,constructorInsertPos:l}=ao(t));else if(t.matches1(k.semi))s||h.push({start:t.currentIndex(),end:t.currentIndex()+1}),t.nextToken();else if(t.currentToken().isType)t.nextToken();else{const o=t.currentIndex();let r=!1,d=!1,f=!1;for(;co(t.currentToken());)t.matches1(k._static)&&(r=!0),t.matches1(k.hash)&&(d=!0),(t.matches1(k._declare)||t.matches1(k._abstract))&&(f=!0),t.nextToken();if(r&&t.matches1(k.braceL)){io(t,p);continue}if(d){io(t,p);continue}if(t.matchesContextual(m._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:i,constructorInsertPos:l}=ao(t));continue}const g=t.currentIndex();if(lo(t),t.matches1(k.lessThan)||t.matches1(k.parenL)){io(t,p);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(k.eq)){const s=t.currentIndex(),o=t.currentToken().rhsEndIndex;if(null==o)throw new Error("Expected rhsEndIndex on class field assignment.");for(t.nextToken();t.currentIndex()<o;)e.processToken();let i;r?(i=n.claimFreeName("__initStatic"),c.push(i)):(i=n.claimFreeName("__init"),a.push(i)),u.push({initializerName:i,equalsIndex:s,start:g,end:t.currentIndex()})}else s&&!f||h.push({start:o,end:t.currentIndex()})}return t.restoreToSnapshot(o),s?{headerInfo:r,constructorInitializerStatements:i,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:l,fields:[],rangesToRemove:h}:{headerInfo:r,constructorInitializerStatements:i,instanceInitializerNames:a,staticInitializerNames:c,constructorInsertPos:l,fields:u,rangesToRemove:h}}function io(e,t){for(e.nextToken();e.currentToken().contextId!==t;)e.nextToken();for(;co(e.tokenAtRelativeIndex(-1));)e.previousToken()}function ao(e){const t=[];e.nextToken();const n=e.currentToken().contextId;if(null==n)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!e.matchesContextIdAndLabel(k.parenR,n);)if(e.currentToken().contextId===n){if(e.nextToken(),co(e.currentToken())){for(e.nextToken();co(e.currentToken());)e.nextToken();const n=e.currentToken();if(n.type!==k.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const s=e.identifierNameForToken(n);t.push(`this.${s} = ${s}`)}}else e.nextToken();for(e.nextToken();e.currentToken().isType;)e.nextToken();let s=e.currentIndex(),o=!1;for(;!e.matchesContextIdAndLabel(k.braceR,n);){if(!o&&e.matches2(k._super,k.parenL)){e.nextToken();const t=e.currentToken().contextId;if(null==t)throw new Error("Expected a context ID on the super call");for(;!e.matchesContextIdAndLabel(k.parenR,t);)e.nextToken();s=e.currentIndex(),o=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:t,constructorInsertPos:s}}function co(e){return[k._async,k._get,k._set,k.plus,k.minus,k._readonly,k._static,k._public,k._private,k._protected,k._override,k._abstract,k.star,k._declare,k.hash].includes(e.type)}function lo(e){if(e.matches1(k.bracketL)){const t=e.currentToken().contextId;if(null==t)throw new Error("Expected class context ID on computed name open bracket.");for(;!e.matchesContextIdAndLabel(k.bracketR,t);)e.nextToken();e.nextToken()}else e.nextToken()}function uo(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(k.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(k.dot);)e.removeToken(),e.removeToken()}const ho={typeDeclarations:new Set,valueDeclarations:new Set};function po(e){const t=new Set,n=new Set;for(let s=0;s<e.tokens.length;s++){const o=e.tokens[s];o.type===k.name&&ee(o)&&(o.isType?t.add(e.identifierNameForToken(o)):n.add(e.identifierNameForToken(o)))}return{typeDeclarations:t,valueDeclarations:n}}function fo(e){let t=e.currentIndex();for(;!e.matches1AtIndex(t,k.braceR);)t++;return e.matchesContextualAtIndex(t+1,m._from)&&e.matches1AtIndex(t+2,k.string)}function mo(e){(e.matches2(k._with,k.braceL)||e.matches2(k.name,k.braceL)&&e.matchesContextual(m._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}function ko(e,t,n,s){if(!e||t)return!1;const o=n.currentToken();if(null==o.rhsEndIndex)throw new Error("Expected non-null rhsEndIndex on export token.");const r=o.rhsEndIndex-n.currentIndex();if(3!==r&&(4!==r||!n.matches1AtIndex(o.rhsEndIndex-1,k.semi)))return!1;const i=n.tokenAtRelativeIndex(2);if(i.type!==k.name)return!1;const a=n.identifierNameForToken(i);return s.typeDeclarations.has(a)&&!s.valueDeclarations.has(a)}class go extends De{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(e,t,n,s,o,r,i,a,c,l,u,h){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.nameManager=s,this.helperManager=o,this.reactHotLoaderTransformer=r,this.enableLegacyBabel5ModuleInterop=i,this.enableLegacyTypeScriptModuleInterop=a,this.isTypeScriptTransformEnabled=c,this.isFlowTransformEnabled=l,this.preserveDynamicImport=u,this.keepUnusedImports=h,go.prototype.__init.call(this),go.prototype.__init2.call(this),go.prototype.__init3.call(this),this.declarationInfo=c?po(t):ho}getPrefixCode(){let e="";return this.hadExport&&(e+='Object.defineProperty(exports, "__esModule", {value: true});'),e}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?"\nmodule.exports = exports.default;\n":""}process(){return this.tokens.matches3(k._import,k.name,k.eq)?this.processImportEquals():this.tokens.matches1(k._import)?(this.processImport(),!0):this.tokens.matches2(k._export,k.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(k._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):!(!this.tokens.matches2(k.name,k.postIncDec)||!this.processPostIncDec())||(this.tokens.matches1(k.name)||this.tokens.matches1(k.jsxName)?this.processIdentifier():this.tokens.matches1(k.eq)?this.processAssignment():this.tokens.matches1(k.assign)?this.processComplexAssignment():!!this.tokens.matches1(k.preIncDec)&&this.processPreIncDec())}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(e)?uo(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(k._import,k.parenL)){if(this.preserveDynamicImport)return void this.tokens.copyToken();const e=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${e}require`);const t=this.tokens.currentToken().contextId;if(null==t)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(k.parenR,t);)this.rootTransformer.processToken();return void this.tokens.replaceToken(e?")))":"))")}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),this.tokens.appendCode(this.importProcessor.claimImportCode(e))}mo(this.tokens),this.tokens.matches1(k.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(m._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,k.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,m._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(k.name)||this.tokens.matches1(k.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(k.string))return!1;let e=!1,t=!1;for(;!this.tokens.matches1(k.string);)(!e&&this.tokens.matches1(k.braceL)||this.tokens.matches1(k.comma))&&(this.tokens.removeToken(),this.tokens.matches1(k.braceR)||(t=!0),(this.tokens.matches2(k.name,k.comma)||this.tokens.matches2(k.name,k.braceR)||this.tokens.matches4(k.name,k.name,k.name,k.comma)||this.tokens.matches4(k.name,k.name,k.name,k.braceR))&&(e=!0)),this.tokens.removeToken();return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&(t&&!e))}removeRemainingImport(){for(;!this.tokens.matches1(k.string);)this.tokens.removeToken()}processIdentifier(){const e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===J.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==J.Access)return!1;const t=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!t)return!1;let n=this.tokens.currentIndex()+1;for(;n<this.tokens.tokens.length&&this.tokens.tokens[n].type===k.parenR;)n++;return this.tokens.tokens[n].type===k.parenL?this.tokens.tokenAtRelativeIndex(1).type===k.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==k._new?(this.tokens.replaceToken(`${t}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.parenR)):this.tokens.replaceToken(`(0, ${t})`):this.tokens.replaceToken(t),!0}processObjectShorthand(){const e=this.tokens.identifierName(),t=this.importProcessor.getIdentifierReplacement(e);return!!t&&(this.tokens.replaceToken(`${e}: ${t}`),!0)}processExport(){if(this.tokens.matches2(k._export,k._enum)||this.tokens.matches3(k._export,k._const,k._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(k._export,k._default))return this.tokens.matches3(k._export,k._default,k._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(k._export,k.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(k._export,k.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,m._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(k.braceL)){for(;!this.tokens.matches1(k.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(k._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(m._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,k.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),mo(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(k._export,k._var)||this.tokens.matches2(k._export,k._let)||this.tokens.matches2(k._export,k._const))return this.processExportVar(),!0;if(this.tokens.matches2(k._export,k._function)||this.tokens.matches3(k._export,k.name,k._function))return this.processExportFunction(),!0;if(this.tokens.matches2(k._export,k._class)||this.tokens.matches3(k._export,k._abstract,k._class)||this.tokens.matches2(k._export,k.at))return this.processExportClass(),!0;if(this.tokens.matches2(k._export,k.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.isType||t.type!==k.name)return!1;if(t.shadowsGlobal)return!1;if(e>=2&&this.tokens.matches1AtIndex(e-2,k.dot))return!1;if(e>=2&&[k._var,k._let,k._const].includes(this.tokens.tokens[e-2].type))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),!0)}processComplexAssignment(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.type!==k.name)return!1;if(t.shadowsGlobal)return!1;if(e>=2&&this.tokens.matches1AtIndex(e-2,k.dot))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.appendCode(` = ${n}`),this.tokens.copyToken(),!0)}processPreIncDec(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e+1];if(t.type!==k.name)return!1;if(t.shadowsGlobal)return!1;if(e+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(e+2,k.dot)||this.tokens.matches1AtIndex(e+2,k.bracketL)||this.tokens.matches1AtIndex(e+2,k.parenL)))return!1;const n=this.tokens.identifierNameForToken(t),s=this.importProcessor.resolveExportBinding(n);return!!s&&(this.tokens.appendCode(`${s} = `),this.tokens.copyToken(),!0)}processPostIncDec(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e],n=this.tokens.tokens[e+1];if(t.type!==k.name)return!1;if(t.shadowsGlobal)return!1;if(e>=1&&this.tokens.matches1AtIndex(e-1,k.dot))return!1;const s=this.tokens.identifierNameForToken(t),o=this.importProcessor.resolveExportBinding(s);if(!o)return!1;const r=this.tokens.rawCodeForToken(n),i=this.importProcessor.getIdentifierReplacement(s)||s;if("++"===r)this.tokens.replaceToken(`(${i} = ${o} = ${i} + 1, ${i} - 1)`);else{if("--"!==r)throw new Error(`Unexpected operator: ${r}`);this.tokens.replaceToken(`(${i} = ${o} = ${i} - 1, ${i} + 1)`)}return this.tokens.removeToken(),!0}processExportDefault(){let e=!0;if(this.tokens.matches4(k._export,k._default,k._function,k.name)||this.tokens.matches5(k._export,k._default,k.name,k._function,k.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,m._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${e};`)}else if(this.tokens.matches4(k._export,k._default,k._class,k.name)||this.tokens.matches5(k._export,k._default,k._abstract,k._class,k.name)||this.tokens.matches3(k._export,k._default,k.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(k._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${e};`)}else if(ko(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const e=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${e}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");e&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(k.at);)if(this.tokens.copyToken(),this.tokens.matches1(k.parenL))this.tokens.copyExpectedToken(k.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.parenR);else{for(this.tokens.copyExpectedToken(k.name);this.tokens.matches1(k.dot);)this.tokens.copyExpectedToken(k.dot),this.tokens.copyExpectedToken(k.name);this.tokens.matches1(k.parenL)&&(this.tokens.copyExpectedToken(k.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,k.name))return!1;for(e++;e<this.tokens.tokens.length&&this.tokens.tokens[e].isType;)e++;return!!this.tokens.matches1AtIndex(e,k.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const e=this.tokens.identifierName();for(;!this.tokens.matches1(k.eq);)this.rootTransformer.processToken();const t=this.tokens.currentToken().rhsEndIndex;if(null==t)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${e} = ${e}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.matches1(k.braceL);e&&this.tokens.appendCode("(");let t=0;for(;;)if(this.tokens.matches1(k.braceL)||this.tokens.matches1(k.dollarBraceL)||this.tokens.matches1(k.bracketL))t++,this.tokens.copyToken();else if(this.tokens.matches1(k.braceR)||this.tokens.matches1(k.bracketR))t--,this.tokens.copyToken();else{if(0===t&&!this.tokens.matches1(k.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(k.eq)){const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}else{const e=this.tokens.currentToken();if(Q(e)){const t=this.tokens.identifierName();let n=this.importProcessor.getIdentifierReplacement(t);if(null===n)throw new Error(`Expected a replacement for ${t} in \`export var\` syntax.`);se(e)&&(n=`${t}: ${n}`),this.tokens.replaceToken(n)}else this.rootTransformer.processToken()}}if(e){const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const e=this.processNamedFunction();this.tokens.appendCode(` exports.${e} = ${e};`)}processNamedFunction(){if(this.tokens.matches1(k._function))this.tokens.copyToken();else if(this.tokens.matches2(k.name,k._function)){if(!this.tokens.matchesContextual(m._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(k.star)&&this.tokens.copyToken(),!this.tokens.matches1(k.name))throw new Error("Expected identifier for exported function name.");const e=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(k.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(k.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.braceR),e}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(k._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${e} = ${e};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=fo(this.tokens),t=[];for(;;){if(this.tokens.matches1(k.braceR)){this.tokens.removeToken();break}const n=Ne(this.tokens);for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();if(!(n.isType||!e&&this.shouldElideExportedIdentifier(n.leftName))){const e=n.rightName;"default"===e?this.hadDefaultExport=!0:this.hadNamedExport=!0;const s=n.leftName,o=this.importProcessor.getIdentifierReplacement(s);t.push(`exports.${e} = ${o||s};`)}if(this.tokens.matches1(k.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(k.comma,k.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}if(!this.tokens.matches1(k.comma))throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`);this.tokens.removeToken()}if(this.tokens.matchesContextual(m._from)){this.tokens.removeToken();const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),mo(this.tokens)}else this.tokens.appendCode(t.join(" "));this.tokens.matches1(k.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(k.string);)this.tokens.removeToken();const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),mo(this.tokens),this.tokens.matches1(k.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(e)}}class xo extends De{constructor(e,t,n,s,o,r,i,a){super(),this.tokens=e,this.nameManager=t,this.helperManager=n,this.reactHotLoaderTransformer=s,this.isTypeScriptTransformEnabled=o,this.isFlowTransformEnabled=r,this.keepUnusedImports=i,this.nonTypeIdentifiers=o&&!i?$e(e,a):new Set,this.declarationInfo=o&&!i?po(e):ho,this.injectCreateRequireForImportRequire=Boolean(a.injectCreateRequireForImportRequire)}process(){if(this.tokens.matches3(k._import,k.name,k.eq))return this.processImportEquals();if(this.tokens.matches4(k._import,k.name,k.name,k.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,m._type)){this.tokens.removeInitialToken();for(let e=0;e<7;e++)this.tokens.removeToken();return!0}if(this.tokens.matches2(k._export,k.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(k._export,k._import,k.name,k.name,k.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,m._type)){this.tokens.removeInitialToken();for(let e=0;e<8;e++)this.tokens.removeToken();return!0}if(this.tokens.matches1(k._import))return this.processImport();if(this.tokens.matches2(k._export,k._default))return this.processExportDefault();if(this.tokens.matches2(k._export,k.braceL))return this.processNamedExports();if(this.tokens.matches2(k._export,k.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,m._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(k.braceL)){for(;!this.tokens.matches1(k.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(k._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(m._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,k.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),mo(this.tokens)),!0}return!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(e)?uo(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(k._import,k.parenL))return!1;const e=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(e);!this.tokens.matches1(k.string);)this.tokens.removeToken();this.tokens.removeToken(),mo(this.tokens),this.tokens.matches1(k.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(k._import),this.tokens.matchesContextual(m._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,k.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,m._from))return!0;if(this.tokens.matches1(k.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(m._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,m._from)&&this.tokens.copyToken();let e=!1,t=!1,n=!1;if(this.tokens.matches1(k.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(k.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(k.comma)&&(n=!0,this.tokens.removeToken()))),this.tokens.matches1(k.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(n&&this.tokens.appendCode(","),e=!0,this.tokens.copyExpectedToken(k.star),this.tokens.copyExpectedToken(k.name),this.tokens.copyExpectedToken(k.name));else if(this.tokens.matches1(k.braceL)){for(n&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(k.braceR);){t=!0;const n=Ne(this.tokens);if(n.isType||this.shouldAutomaticallyElideImportedName(n.rightName)){for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();this.tokens.matches1(k.comma)&&this.tokens.removeToken()}else{for(e=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(k.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(k.braceR)}return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&(t&&!e))}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}processExportDefault(){if(ko(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(k._export,k._default,k._function,k.name)||this.tokens.matches5(k._export,k._default,k.name,k._function,k.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,m._async)||this.tokens.matches4(k._export,k._default,k._class,k.name)||this.tokens.matches5(k._export,k._default,k._abstract,k._class,k.name))&&this.reactHotLoaderTransformer){const e=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${e}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(k._export),this.tokens.copyExpectedToken(k.braceL);const e=fo(this.tokens);let t=!1;for(;!this.tokens.matches1(k.braceR);){const n=Ne(this.tokens);if(n.isType||!e&&this.shouldElideExportedName(n.leftName)){for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();this.tokens.matches1(k.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(k.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(k.braceR),this.keepUnusedImports||!e||t||(this.tokens.removeToken(),this.tokens.removeToken(),mo(this.tokens)),!0}shouldElideExportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(e)&&!this.declarationInfo.valueDeclarations.has(e)}}class yo extends De{constructor(e,t,n){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=n}process(){return!!(this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange())||(this.tokens.matches1(k._enum)?(this.processEnum(),!0):this.tokens.matches2(k._export,k._enum)?(this.processNamedExportEnum(),!0):!!this.tokens.matches3(k._export,k._default,k._enum)&&(this.processDefaultExportEnum(),!0))}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${e} = ${e};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${e};`):this.tokens.appendCode(` export default ${e};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(k.name);let e=!1;this.tokens.matchesContextual(m._of)&&(this.tokens.removeToken(),e=this.tokens.matchesContextual(m._symbol),this.tokens.removeToken());const t=this.tokens.matches3(k.braceL,k.name,k.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const n=!e&&!t;for(this.tokens.replaceTokenTrimmingLeftWhitespace(n?".Mirrored([":"({");!this.tokens.matches1(k.braceR);){if(this.tokens.matches1(k.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(e,t),this.tokens.matches1(k.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(n?"]);":"});")}processEnumElement(e,t){if(e){const e=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${e}")`)}else t?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}const _o="jest",To=["mock","unmock","enableAutomock","disableAutomock"];class bo extends De{__init(){this.hoistedFunctionNames=[]}constructor(e,t,n,s){super(),this.rootTransformer=e,this.tokens=t,this.nameManager=n,this.importProcessor=s,bo.prototype.__init.call(this)}process(){return!(0!==this.tokens.currentToken().scopeDepth||!this.tokens.matches4(k.name,k.dot,k.name,k.parenL)||this.tokens.identifierName()!==_o)&&(!function(e){let t,n=e[0],s=1;for(;s<e.length;){const o=e[s],r=e[s+1];if(s+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=r(n)):"call"!==o&&"optionalCall"!==o||(n=r(((...e)=>n.call(t,...e))),t=void 0)}return n}([this,"access",e=>e.importProcessor,"optionalAccess",e=>e.getGlobalNames,"call",e=>e(),"optionalAccess",e=>e.has,"call",e=>e(_o)])&&this.extractHoistedCalls())}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map((e=>`${e}();`)).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(k.dot,k.name,k.parenL);){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(To.includes(t)){const t=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(t),this.tokens.replaceToken(`function ${t}(){${_o}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${_o}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.parenR),e=!0}return!0}}class vo extends De{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(k.num)){const e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}class Io extends De{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){return!!this.tokens.matches2(k._catch,k.braceL)&&(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0)}}class wo extends De{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){if(this.tokens.matches1(k.nullishCoalescing)){const e=this.tokens.currentToken();return this.tokens.tokens[e.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(k._delete)){if(this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0}const e=this.tokens.currentToken().subscriptStartIndex;if(null!=e&&this.tokens.tokens[e].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==k._super){const t=this.nameManager.claimFreeName("_");let n;if(n=e>0&&this.tokens.matches1AtIndex(e-1,k._delete)&&this.isLastSubscriptInChain()?`${t} => delete ${t}`:`${t} => ${t}`,this.tokens.tokens[e].isAsyncOperation&&(n=`async ${n}`),this.tokens.matches2(k.questionDot,k.parenL)||this.tokens.matches2(k.questionDot,k.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${n}`);else if(this.tokens.matches2(k.questionDot,k.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}`);else if(this.tokens.matches1(k.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}.`);else if(this.tokens.matches1(k.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}.`);else if(this.tokens.matches1(k.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}[`);else{if(!this.tokens.matches1(k.parenL))throw new Error("Unexpected subscript operator in optional chain.");this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${n}(`)}return!0}return!1}isLastSubscriptInChain(){let e=0;for(let t=this.tokens.currentIndex()+1;;t++){if(t>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e++:this.tokens.tokens[t].isOptionalChainEnd&&e--,e<0)return!0;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return!1}}justSkippedSuper(){let e=0,t=this.tokens.currentIndex()-1;for(;;){if(t<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e--:this.tokens.tokens[t].isOptionalChainEnd&&e++,e<0)return!1;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return this.tokens.tokens[t-1].type===k._super;t--}}}class Co extends De{constructor(e,t,n,s){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.options=s}process(){const e=this.tokens.currentIndex();if("createReactClass"===this.tokens.identifierName()){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return t?this.tokens.replaceToken(`(0, ${t})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(k.name,k.dot,k.name)&&"React"===this.tokens.identifierName()&&"createClass"===this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return t?(this.tokens.replaceToken(t),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){const t=this.findDisplayName(e);t&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(k.parenL),this.tokens.copyExpectedToken(k.braceL),this.tokens.appendCode(`displayName: '${t}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.braceR),this.tokens.copyExpectedToken(k.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,k.name,k.eq)||e>=2&&this.tokens.tokens[e-2].identifierRole===J.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,k._export,k._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const e=(this.options.filePath||"unknown").split("/"),t=e[e.length-1],n=t.lastIndexOf("."),s=-1===n?t:t.slice(0,n);return"index"===s&&e[e.length-2]?e[e.length-2]:s}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(k.parenL,k.braceL))return!1;const t=e+1,n=this.tokens.tokens[t].contextId;if(null==n)throw new Error("Expected non-null context ID on object open-brace.");for(;e<this.tokens.tokens.length;e++){const t=this.tokens.tokens[e];if(t.type===k.braceR&&t.contextId===n){e++;break}if("displayName"===this.tokens.identifierNameAtIndex(e)&&this.tokens.tokens[e].identifierRole===J.ObjectKey&&t.contextId===n)return!1}if(e===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(e,k.parenR)||this.tokens.matches2AtIndex(e,k.comma,k.parenR)}}class Ao extends De{__init(){this.extractedDefaultExportName=null}constructor(e,t){super(),this.tokens=e,this.filePath=t,Ao.prototype.__init.call(this)}setExtractedDefaultExportName(e){this.extractedDefaultExportName=e}getPrefixCode(){return"\n (function () {\n var enterModule = require('react-hot-loader').enterModule;\n enterModule && enterModule(module);\n })();".replace(/\s+/g," ").trim()}getSuffixCode(){const e=new Set;for(const n of this.tokens.tokens)!n.isType&&ee(n)&&n.identifierRole!==J.ImportDeclaration&&e.add(this.tokens.identifierNameForToken(n));const t=Array.from(e).map((e=>({variableName:e,uniqueLocalName:e})));return this.extractedDefaultExportName&&t.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`\n;(function () {\n var reactHotLoader = require('react-hot-loader').default;\n var leaveModule = require('react-hot-loader').leaveModule;\n if (!reactHotLoader) {\n return;\n }\n${t.map((({variableName:e,uniqueLocalName:t})=>` reactHotLoader.register(${e}, "${t}", ${JSON.stringify(this.filePath||"")});`)).join("\n")}\n leaveModule(module);\n})();`}process(){return!1}}const Eo=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function So(e){if(0===e.length)return!1;if(!G[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!z[e.charCodeAt(t)])return!1;return!Eo.has(e)}class No extends De{constructor(e,t,n){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=n}process(){return!!(this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange())||(this.tokens.matches1(k._public)||this.tokens.matches1(k._protected)||this.tokens.matches1(k._private)||this.tokens.matches1(k._abstract)||this.tokens.matches1(k._readonly)||this.tokens.matches1(k._override)||this.tokens.matches1(k.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(k._enum)||this.tokens.matches2(k._const,k._enum)?(this.processEnum(),!0):!(!this.tokens.matches2(k._export,k._enum)&&!this.tokens.matches3(k._export,k._const,k._enum))&&(this.processEnum(!0),!0))}processEnum(e=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(k._const)||this.tokens.matches1(k._enum);)this.tokens.removeToken();const t=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${t}; (function (${t})`),this.tokens.copyExpectedToken(k.braceL),this.processEnumBody(t),this.tokens.copyExpectedToken(k.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${t} || (exports.${t} = ${t} = {}));`):this.tokens.appendCode(`)(${t} || (${t} = {}));`)}processEnumBody(e){let t=null;for(;!this.tokens.matches1(k.braceR);){const{nameStringCode:n,variableName:s}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(k.eq,k.string,k.comma)||this.tokens.matches3(k.eq,k.string,k.braceR)?this.processStringLiteralEnumMember(e,n,s):this.tokens.matches1(k.eq)?this.processExplicitValueEnumMember(e,n,s):this.processImplicitValueEnumMember(e,n,s,t),this.tokens.matches1(k.comma)&&this.tokens.removeToken(),t=null!=s?s:`${e}[${n}]`}}extractEnumKeyInfo(e){if(e.type===k.name){const t=this.tokens.identifierNameForToken(e);return{nameStringCode:`"${t}"`,variableName:So(t)?t:null}}if(e.type===k.string){const t=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:So(t)?t:null}}throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(e,t,n){null!=n?(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${e}[${t}] = ${n};`)):(this.tokens.appendCode(`${e}[${t}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(e,t,n){const s=this.tokens.currentToken().rhsEndIndex;if(null==s)throw new Error("Expected rhsEndIndex on enum assign.");if(null!=n){for(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken();this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${e}[${e}[${t}] = ${n}] = ${t};`)}else{for(this.tokens.appendCode(`${e}[${e}[${t}]`),this.tokens.copyToken();this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${t};`)}}processImplicitValueEnumMember(e,t,n,s){let o=null!=s?`${s} + 1`:"0";null!=n&&(this.tokens.appendCode(`const ${n} = ${o}; `),o=n),this.tokens.appendCode(`${e}[${e}[${t}] = ${o}] = ${t};`)}}class jo{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(e,t,n,s){jo.prototype.__init.call(this),jo.prototype.__init2.call(this),this.nameManager=e.nameManager,this.helperManager=e.helperManager;const{tokenProcessor:o,importProcessor:r}=e;this.tokens=o,this.isImportsTransformEnabled=t.includes("imports"),this.isReactHotLoaderTransformEnabled=t.includes("react-hot-loader"),this.disableESTransforms=Boolean(s.disableESTransforms),s.disableESTransforms||(this.transformers.push(new wo(o,this.nameManager)),this.transformers.push(new vo(o)),this.transformers.push(new Io(o,this.nameManager))),t.includes("jsx")&&("preserve"!==s.jsxRuntime&&this.transformers.push(new Pe(this,o,r,this.nameManager,s)),this.transformers.push(new Co(this,o,r,s)));let i=null;if(t.includes("react-hot-loader")){if(!s.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");i=new Ao(o,s.filePath),this.transformers.push(i)}if(t.includes("imports")){if(null===r)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new go(this,o,r,this.nameManager,this.helperManager,i,n,Boolean(s.enableLegacyTypeScriptModuleInterop),t.includes("typescript"),t.includes("flow"),Boolean(s.preserveDynamicImport),Boolean(s.keepUnusedImports)))}else this.transformers.push(new xo(o,this.nameManager,this.helperManager,i,t.includes("typescript"),t.includes("flow"),Boolean(s.keepUnusedImports),s));t.includes("flow")&&this.transformers.push(new yo(this,o,t.includes("imports"))),t.includes("typescript")&&this.transformers.push(new No(this,o,t.includes("imports"))),t.includes("jest")&&this.transformers.push(new bo(this,o,this.nameManager,r))}transform(){this.tokens.reset(),this.processBalancedCode();let e=this.isImportsTransformEnabled?'"use strict";':"";for(const o of this.transformers)e+=o.getPrefixCode();e+=this.helperManager.emitHelpers(),e+=this.generatedVariables.map((e=>` var ${e};`)).join("");for(const o of this.transformers)e+=o.getHoistedCode();let t="";for(const o of this.transformers)t+=o.getSuffixCode();const n=this.tokens.finish();let{code:s}=n;if(s.startsWith("#!")){let o=s.indexOf("\n");return-1===o&&(o=s.length,s+="\n"),{code:s.slice(0,o+1)+e+s.slice(o+1)+t,mappings:this.shiftMappings(n.mappings,e.length)}}return{code:e+s+t,mappings:this.shiftMappings(n.mappings,e.length)}}processBalancedCode(){let e=0,t=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(k.braceL)||this.tokens.matches1(k.dollarBraceL))e++;else if(this.tokens.matches1(k.braceR)){if(0===e)return;e--}if(this.tokens.matches1(k.parenL))t++;else if(this.tokens.matches1(k.parenR)){if(0===t)return;t--}this.processToken()}}processToken(){if(this.tokens.matches1(k._class))this.processClass();else{for(const e of this.transformers){if(e.process())return}this.tokens.copyToken()}}processNamedClass(){if(!this.tokens.matches2(k._class,k.name))throw new Error("Expected identifier for exported class name.");const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){const e=ro(this,this.tokens,this.nameManager,this.disableESTransforms),t=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0;let n=e.headerInfo.className;t&&(n=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(n),this.tokens.appendCode(` (${n} =`));const s=this.tokens.currentToken().contextId;if(null==s)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(k._class);!this.tokens.matchesContextIdAndLabel(k.braceL,s);)this.processToken();this.processClassBody(e,n);const o=e.staticInitializerNames.map((e=>`${n}.${e}()`));t?this.tokens.appendCode(`, ${o.map((e=>`${e}, `)).join("")}${n})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${o.map((e=>`${e};`)).join(" ")}`)}processClassBody(e,t){const{headerInfo:n,constructorInsertPos:s,constructorInitializerStatements:o,fields:r,instanceInitializerNames:i,rangesToRemove:a}=e;let c=0,l=0;const u=this.tokens.currentToken().contextId;if(null==u)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(k.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const h=o.length+i.length>0;if(null===s&&h){const e=this.makeConstructorInitCode(o,i,t);if(n.hasSuperclass){const t=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${t}) { super(...${t}); ${e}; }`)}else this.tokens.appendCode(`constructor() { ${e}; }`)}for(;!this.tokens.matchesContextIdAndLabel(k.braceR,u);)if(c<r.length&&this.tokens.currentIndex()===r[c].start){let e=!1;for(this.tokens.matches1(k.bracketL)?this.tokens.copyTokenWithPrefix(`${r[c].initializerName}() {this`):this.tokens.matches1(k.string)||this.tokens.matches1(k.num)?(this.tokens.copyTokenWithPrefix(`${r[c].initializerName}() {this[`),e=!0):this.tokens.copyTokenWithPrefix(`${r[c].initializerName}() {this.`);this.tokens.currentIndex()<r[c].end;)e&&this.tokens.currentIndex()===r[c].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),c++}else if(l<a.length&&this.tokens.currentIndex()>=a[l].start){for(this.tokens.currentIndex()<a[l].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<a[l].end;)this.tokens.removeToken();l++}else this.tokens.currentIndex()===s?(this.tokens.copyToken(),h&&this.tokens.appendCode(`;${this.makeConstructorInitCode(o,i,t)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(k.braceR)}makeConstructorInitCode(e,t,n){return[...e,...t.map((e=>`${n}.prototype.${e}.call(this)`))].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(k.parenR,k.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,k.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(m._async)&&!this.tokens.matches1(k._async))return!1;const e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==k.lessThan||!e.isType)return!1;let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,k.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(e,t){for(let n=0;n<e.length;n++){const s=e[n];void 0!==s&&(e[n]=s+t)}return e}}n(89);function Ro(e,t,n){t++,e.matches1AtIndex(t,k.parenL)||(e.matches1AtIndex(t,k.name)&&(n.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,k.comma)&&t++),e.matches1AtIndex(t,k.star)&&(t+=2,n.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,k.braceL)&&function(e,t,n){for(;;){if(e.matches1AtIndex(t,k.braceR))return;const s=Ne(e,t);if(t=s.endIndex,s.isType||n.add(s.rightName),e.matches2AtIndex(t,k.comma,k.braceR))return;if(e.matches1AtIndex(t,k.braceR))return;if(!e.matches1AtIndex(t,k.comma))throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`);t++}}(e,++t,n))}function Lo(e,t){!function(e){Qe.strictCheck(e)}(t);try{const n=Oo(e,t),s=new jo(n,t.transforms,Boolean(t.enableLegacyBabel5ModuleInterop),t).transform();let o={code:s.code};if(t.sourceMapOptions){if(!t.filePath)throw new Error("filePath must be specified when generating a source map.");o={...o,sourceMap:He(s,t.filePath,t.sourceMapOptions,e,n.tokenProcessor.tokens)}}return o}catch(n){throw t.filePath&&(n.message=`Error transforming ${t.filePath}: ${n.message}`),n}}function Oo(e,t){const n=t.transforms.includes("jsx"),s=t.transforms.includes("typescript"),o=t.transforms.includes("flow"),r=!0===t.disableESTransforms,i=function(e,t,n,s){if(s&&n)throw new Error("Cannot combine flow and typescript plugins.");j(e,t,n,s);const o=no();if(w.error)throw S(w.error);return o}(e,n,s,o),a=i.tokens,c=i.scopes,l=new Xe(e,a),u=new We(l),h=new oo(e,a,o,r,u),p=Boolean(t.enableLegacyTypeScriptModuleInterop);let d=null;return t.transforms.includes("imports")?(d=new Ue(l,h,p,t,t.transforms.includes("typescript"),Boolean(t.keepUnusedImports),u),d.preprocessTokens(),ze(h,c,d.getGlobalNames()),t.transforms.includes("typescript")&&!t.keepUnusedImports&&d.pruneTypeOnlyImports()):t.transforms.includes("typescript")&&!t.keepUnusedImports&&ze(h,c,function(e){const t=new Set;for(let n=0;n<e.tokens.length;n++)e.matches1AtIndex(n,k._import)&&!e.matches3AtIndex(n,k._import,k.name,k.eq)&&Ro(e,n,t);return t}(h)),{tokenProcessor:h,scopes:c,nameManager:l,importProcessor:d,helperManager:u}}var Do=Object.defineProperty,Po=Object.defineProperties,Bo=Object.getOwnPropertyDescriptors,qo=Object.getOwnPropertySymbols,Mo=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,$o=(e,t,n)=>t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Uo=(e,t)=>{for(var n in t||(t={}))Mo.call(t,n)&&$o(e,n,t[n]);if(qo)for(var n of qo(t))Fo.call(t,n)&&$o(e,n,t[n]);return e},Ko=(e,t)=>Po(e,Bo(t)),Ho=e=>{const{tabMode:t="indentation"}=e,n=(0,s.useRef)(null),[o,r]=(0,s.useState)(e.code||""),{theme:i}=e;return(0,s.useEffect)((()=>{r(e.code)}),[e.code]),function(e,t,n){function o(t){var n=e.current;if(n){var s=d(n);n=p(n),s.position+=t.length-n.length,k.position=s,k.onChange(t,s)}}function r(t,n){var s=e.current;if(s){var o=window.getSelection().getRangeAt(0);o.deleteContents(),o.collapse();var r=n||0;(o=f(s,n=(o=d(s)).position+(0>r?r:0),o.position+(0<r?r:0))).deleteContents(),t&&o.insertNode(document.createTextNode(t)),u(f(s,n+t.length))}}function i(t){var n=e.current;if(n){n.focus();var s=0;if("number"==typeof t)s=t;else{var o=p(n).split("\n").slice(0,t.row);t.row&&(s+=o.join("\n").length+1),s+=t.column}u(f(n,s))}}function a(){var t=e.current;return{text:p(t),position:t=d(t)}}function c(){k.observer.disconnect()}n||(n={});var m=(0,s.useState)([])[1],k=(0,s.useState)((function(){var e={observer:null,disconnected:!1,onChange:t,queue:[],history:[],historyAt:-1,position:null};return"undefined"!=typeof MutationObserver&&(e.observer=new MutationObserver((function(t){var n;(n=e.queue).push.apply(n,t)}))),e}))[0],g=(0,s.useMemo)((function(){return{update:o,insert:r,move:i,getState:a}}),[]);"object"!=typeof navigator||((0,s.useLayoutEffect)((function(){if(k.onChange=t,e.current&&!n.disabled){if(k.disconnected=!1,k.observer.observe(e.current,l),k.position){var s=k.position,o=s.position;u(f(e.current,o,o+s.extent))}return c}})),(0,s.useLayoutEffect)((function(){if(e.current&&!n.disabled){var t=e.current;if(k.position){t.focus();var s=k.position,o=s.position;u(f(t,o,o+s.extent))}var r=t.style.whiteSpace,i=t.contentEditable,a=!0;try{t.contentEditable="plaintext-only"}catch(w){t.contentEditable="true",a=!1}"pre"!==r&&(t.style.whiteSpace="pre-wrap"),n.indentation&&(t.style.tabSize=t.style.MozTabSize=""+n.indentation),s=""+" ".repeat(n.indentation||0);var c,l=new RegExp("^(?:"+s+")"),x=new RegExp("^(?:"+s+")*("+s+")$"),y=function(n){if(e.current&&k.position){var s=p(t),o=d(t),r=(new Date).valueOf(),i=k.history[k.historyAt];!n&&500>r-c||i&&i[1]===s?c=r:(n=++k.historyAt,k.history[n]=[o,s],k.history.splice(n+1),500<n&&(k.historyAt--,k.history.shift()))}},_=function(){var e;if((e=k.queue).push.apply(e,k.observer.takeRecords()),e=d(t),k.queue.length){k.observer.disconnect(),k.disconnected=!0;var n,s,o=p(t);for(k.position=e;n=k.queue.pop();){for(null!==n.oldValue&&(n.target.textContent=n.oldValue),s=n.removedNodes.length-1;0<=s;s--)n.target.insertBefore(n.removedNodes[s],n.nextSibling);for(s=n.addedNodes.length-1;0<=s;s--)n.addedNodes[s].parentNode&&n.target.removeChild(n.addedNodes[s])}k.onChange(o,e)}},T=function(e){if(!e.defaultPrevented&&e.target===t){if(k.disconnected)return e.preventDefault(),m([]);if(h(e))e.preventDefault(),e.shiftKey?(e=++k.historyAt,(e=k.history[e])||(k.historyAt=k.history.length-1)):(e=--k.historyAt,(e=k.history[e])||(k.historyAt=0)),e&&(k.observer.disconnect(),k.disconnected=!0,k.position=e[0],k.onChange(e[1],e[0]));else{if(y(),"Enter"===e.key){e.preventDefault();var s=d(t),o=/\S/g.exec(s.content);s="\n"+s.content.slice(0,o?o.index:s.content.length),g.insert(s)}else if(a&&!n.indentation||"Backspace"!==e.key){if(n.indentation&&"Tab"===e.key){e.preventDefault(),o=(s=d(t)).position-s.content.length;var r=p(t);s=e.shiftKey?r.slice(0,o)+s.content.replace(l,"")+r.slice(o+s.content.length):r.slice(0,o)+(n.indentation?" ".repeat(n.indentation):"\t")+r.slice(o),g.update(s)}}else e.preventDefault(),window.getSelection().getRangeAt(0).collapsed?(s=d(t),s=x.exec(s.content),g.insert("",s?-s[1].length:-1)):g.insert("",0);e.repeat&&_()}}},b=function(e){e.defaultPrevented||e.isComposing||(h(e)||y(),_(),t.focus())},v=function(e){k.position=window.getSelection().rangeCount&&e.target===t?d(t):null},I=function(e){e.preventDefault(),y(!0),g.insert(e.clipboardData.getData("text/plain")),y(!0),_()};return document.addEventListener("selectstart",v),window.addEventListener("keydown",T),t.addEventListener("paste",I),t.addEventListener("keyup",b),function(){document.removeEventListener("selectstart",v),window.removeEventListener("keydown",T),t.removeEventListener("paste",I),t.removeEventListener("keyup",b),t.style.whiteSpace=r,t.contentEditable=i}}k.history.length=0,k.historyAt=-1}),[e.current,n.disabled,n.indentation]))}(n,(e=>r(e.slice(0,-1))),{disabled:e.disabled,indentation:"indentation"===t?2:void 0}),(0,s.useEffect)((()=>{e.onChange&&e.onChange(o)}),[o]),(0,x.jsx)("div",{className:e.className,style:e.style,children:(0,x.jsx)(c.f4,{code:o,theme:e.theme||c.Zj.nightOwl,language:e.language,children:({className:e,tokens:t,getLineProps:s,getTokenProps:o,style:r})=>(0,x.jsx)("pre",{className:e,style:Uo(Uo({margin:0,outline:"none",padding:10,fontFamily:"inherit"},i&&"object"==typeof i.plain?i.plain:{}),r),ref:n,spellCheck:"false",children:t.map(((e,t)=>(0,x.jsxs)("span",Ko(Uo({},s({line:e})),{children:[e.filter((e=>!e.empty)).map(((e,t)=>(0,x.jsx)("span",Uo({},o({token:e})),`token-${t}`))),"\n"]}),`line-${t}`)))})})})},Vo=(0,s.createContext)({}),Wo=["jsx","imports"];function zo(e={}){const t=Array.isArray(e.transforms)?e.transforms.filter(Boolean):Wo;return e=>Lo(e,{transforms:t}).code}var Go=(e,t)=>class extends s.Component{componentDidCatch(e){t(e)}render(){return"function"==typeof e?(0,x.jsx)(e,{}):s.isValidElement(e)?e:null}},Xo=(e,t)=>{const n=Object.keys(t),s=n.map((e=>t[e]));return new Function(...n,e)(...s)};var Jo='const _jsxFileName = "";',Yo=e=>e.trim().replace(/;$/,""),Qo=e=>e.replace(Jo,"").trim(),Zo=e=>Jo+e,er=e=>`return (${e})`;var tr=function({children:e,code:t="",language:n="tsx",theme:o,enableTypeScript:r=!0,disabled:i=!1,scope:a,transformCode:c,noInline:l=!1}){const[u,h]=(0,s.useState)({error:void 0,element:void 0});function p(e){return t=this,n=null,o=function*(){const t=e=>{h({error:e.toString(),element:void 0})};try{const o=c?c(e):e;try{const e=yield Promise.resolve(o),n=e=>h({error:void 0,element:e});if("string"!=typeof e)throw new Error("Code failed to transform");const i={code:e,scope:a,enableTypeScript:r};l?(h({error:void 0,element:null}),(({code:e="",scope:t={},enableTypeScript:n=!0},o,r)=>{if(!/render\s*\(/.test(e))return r(new SyntaxError("No-Inline evaluations must call `render`."));const i=["jsx","imports"];n&&i.splice(1,0,"typescript"),Xo(zo({transforms:i})(e),Ko(Uo({React:s},t),{render:e=>{void 0===e?r(new SyntaxError("`render` must be called with valid JSX.")):o(Go(e,r))}}))})(i,n,t)):n((({code:e="",scope:t={},enableTypeScript:n=!0},o)=>{const r=["jsx"];n&&r.push("typescript");const i=function(...e){return e.reduce(((e,t)=>(...n)=>e(t(...n))))}(Zo,zo({transforms:["imports"]}),er,Qo,Yo,zo({transforms:r}),Yo)(e);return Go(Xo(i,Uo({React:s},t)),o)})(i,t))}catch(n){return t(n)}}catch(o){return t(o),Promise.resolve()}},new Promise(((e,s)=>{var r=e=>{try{a(o.next(e))}catch(t){s(t)}},i=e=>{try{a(o.throw(e))}catch(t){s(t)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,i);a((o=o.apply(t,n)).next())}));var t,n,o}const d=e=>h({error:e.toString()});return(0,s.useEffect)((()=>{p(t).catch(d)}),[t,a,l,c]),(0,x.jsx)(Vo.Provider,{value:Ko(Uo({},u),{code:t,language:n,theme:o,disabled:i,onError:d,onChange:e=>{p(e).catch(d)}}),children:e})};function nr(e){const{code:t,language:n,theme:o,disabled:r,onChange:i}=(0,s.useContext)(Vo);return(0,x.jsx)(Ho,Uo({theme:o,code:t,language:n,disabled:r,onChange:i},e))}function sr(e){const{error:t}=(0,s.useContext)(Vo);return t?(0,x.jsx)("pre",Ko(Uo({},e),{children:t})):null}var or=function(e){var t=e,{Component:n="div"}=t,o=((e,t)=>{var n={};for(var s in e)Mo.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&qo)for(var s of qo(e))t.indexOf(s)<0&&Fo.call(e,s)&&(n[s]=e[s]);return n})(t,["Component"]);const{element:r}=(0,s.useContext)(Vo);return(0,x.jsx)(n,Ko(Uo({},o),{children:r?(0,x.jsx)(r,{}):null}))};var rr=n(1312),ir=n(4586);function ar(e){let{children:t,fallback:n}=e;return(0,a.A)()?(0,x.jsx)(x.Fragment,{children:t?.()}):n??null}var cr=n(2181),lr=n(5293),ur=n(6342);function hr(){const{prism:e}=(0,ur.p)(),{colorMode:t}=(0,lr.G)(),n=e.theme,s=e.darkTheme||n;return"dark"===t?s:n}var pr=n(7489);const dr={playgroundContainer:"playgroundContainer_X_Ta",playgroundHeader:"playgroundHeader_dyrN",playgroundEditor:"playgroundEditor_Q6Y7",playgroundPreview:"playgroundPreview_DzOI"};function fr(e){let{children:t}=e;return(0,x.jsx)("div",{className:(0,i.A)(dr.playgroundHeader),children:t})}function mr(){return(0,x.jsx)("div",{children:"Loading..."})}function kr(){return(0,x.jsx)(ar,{fallback:(0,x.jsx)(mr,{}),children:()=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(pr.A,{fallback:e=>(0,x.jsx)(cr.MN,{...e}),children:(0,x.jsx)(or,{})}),(0,x.jsx)(sr,{})]})})}function gr(){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(fr,{children:(0,x.jsx)(rr.A,{id:"theme.Playground.result",description:"The result label of the live codeblocks",children:"Result"})}),(0,x.jsx)("div",{className:dr.playgroundPreview,children:(0,x.jsx)(kr,{})})]})}function xr(){const e=(0,a.A)();return(0,x.jsx)(nr,{className:dr.playgroundEditor},String(e))}function yr(){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(fr,{children:(0,x.jsx)(rr.A,{id:"theme.Playground.liveEditor",description:"The live editor label of the live codeblocks",children:"Live Editor"})}),(0,x.jsx)(xr,{})]})}const _r=e=>`${e};`;function Tr(e){let{children:t,transformCode:n,...s}=e;const{siteConfig:{themeConfig:o}}=(0,ir.A)(),{liveCodeBlock:{playgroundPosition:r}}=o,i=hr(),a=s.metastring?.includes("noInline")??!1;return(0,x.jsx)("div",{className:dr.playgroundContainer,children:(0,x.jsx)(tr,{code:t?.replace(/\n$/,""),noInline:a,transformCode:n??_r,theme:i,...s,children:"top"===r?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(gr,{}),(0,x.jsx)(yr,{})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(yr,{}),(0,x.jsx)(gr,{})]})})})}const br={React:s,...s};var vr=n(7559),Ir=n(8426),wr=n.n(Ir);const Cr=/title=(?<quote>["'])(?<title>.*?)\1/,Ar=/\{(?<range>[\d,-]+)\}/,Er={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},Sr={...Er,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},vbnet:{start:"(?:_\\s*)?['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},Nr=Object.keys(Er);function jr(e,t){const n=e.map((e=>{const{start:n,end:s}=Sr[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${s})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function Rr(e,t){let n=e.replace(/\n$/,"");const{language:s,magicComments:o,metastring:r}=t;if(r&&Ar.test(r)){const e=r.match(Ar).groups.range;if(0===o.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${r}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=o[0].className,s=wr()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(s),code:n}}if(void 0===s)return{lineClassNames:{},code:n};const i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return jr(["js","jsBlock"],t);case"jsx":case"tsx":return jr(["js","jsBlock","jsx"],t);case"html":return jr(["js","jsBlock","html"],t);case"python":case"py":case"bash":return jr(["bash"],t);case"markdown":case"md":return jr(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return jr(["tex"],t);case"lua":case"haskell":case"sql":return jr(["lua"],t);case"wasm":return jr(["wasm"],t);case"vb":case"vba":case"visual-basic":return jr(["vb","rem"],t);case"vbnet":return jr(["vbnet","rem"],t);case"batch":return jr(["rem"],t);case"basic":return jr(["rem","f90"],t);case"fsharp":return jr(["js","ml"],t);case"ocaml":case"sml":return jr(["ml"],t);case"fortran":return jr(["f90"],t);case"cobol":return jr(["cobol"],t);default:return jr(Nr,t)}}(s,o),a=n.split("\n"),c=Object.fromEntries(o.map((e=>[e.className,{start:0,range:""}]))),l=Object.fromEntries(o.filter((e=>e.line)).map((e=>{let{className:t,line:n}=e;return[n,t]}))),u=Object.fromEntries(o.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.start,t]}))),h=Object.fromEntries(o.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.end,t]})));for(let d=0;d<a.length;){const e=a[d].match(i);if(!e){d+=1;continue}const t=e.slice(1).find((e=>void 0!==e));l[t]?c[l[t]].range+=`${d},`:u[t]?c[u[t]].start=d:h[t]&&(c[h[t]].range+=`${c[h[t]].start}-${d-1},`),a.splice(d,1)}n=a.join("\n");const p={};return Object.entries(c).forEach((e=>{let[t,{range:n}]=e;wr()(n).forEach((e=>{p[e]??=[],p[e].push(t)}))})),{lineClassNames:p,code:n}}const Lr={codeBlockContainer:"codeBlockContainer_Ckt0"};function Or(e){let{as:t,...n}=e;const s=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[s,o]=e;const r=t[s];r&&"string"==typeof o&&(n[r]=o)})),n}(hr());return(0,x.jsx)(t,{...n,style:s,className:(0,i.A)(n.className,Lr.codeBlockContainer,vr.G.common.codeBlock)})}const Dr={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function Pr(e){let{children:t,className:n}=e;return(0,x.jsx)(Or,{as:"pre",tabIndex:0,className:(0,i.A)(Dr.codeBlockStandalone,"thin-scrollbar",n),children:(0,x.jsx)("code",{className:Dr.codeBlockLines,children:t})})}var Br=n(9532);const qr={attributes:!0,characterData:!0,childList:!0,subtree:!0};function Mr(e,t){const[n,o]=(0,s.useState)(),r=(0,s.useCallback)((()=>{o(e.current?.closest("[role=tabpanel][hidden]"))}),[e,o]);(0,s.useEffect)((()=>{r()}),[r]),function(e,t,n){void 0===n&&(n=qr);const o=(0,Br._q)(t),r=(0,Br.Be)(n);(0,s.useEffect)((()=>{const t=new MutationObserver(o);return e&&t.observe(e,r),()=>t.disconnect()}),[e,o,r])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),r())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}const Fr={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function $r(e){let{line:t,classNames:n,showLineNumbers:s,getLineProps:o,getTokenProps:r}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const a=o({line:t,className:(0,i.A)(n,s&&Fr.codeLine)}),c=t.map(((e,t)=>(0,x.jsx)("span",{...r({token:e})},t)));return(0,x.jsxs)("span",{...a,children:[s?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{className:Fr.codeLineNumber}),(0,x.jsx)("span",{className:Fr.codeLineContent,children:c})]}):c,(0,x.jsx)("br",{})]})}function Ur(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})})}function Kr(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const Hr={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function Vr(e){let{code:t,className:n}=e;const[o,r]=(0,s.useState)(!1),a=(0,s.useRef)(void 0),c=(0,s.useCallback)((()=>{!function(e,{target:t=document.body}={}){if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const n=document.createElement("textarea"),s=document.activeElement;n.value=e,n.setAttribute("readonly",""),n.style.contain="strict",n.style.position="absolute",n.style.left="-9999px",n.style.fontSize="12pt";const o=document.getSelection(),r=o.rangeCount>0&&o.getRangeAt(0);t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let i=!1;try{i=document.execCommand("copy")}catch{}n.remove(),r&&(o.removeAllRanges(),o.addRange(r)),s&&s.focus()}(t),r(!0),a.current=window.setTimeout((()=>{r(!1)}),1e3)}),[t]);return(0,s.useEffect)((()=>()=>window.clearTimeout(a.current)),[]),(0,x.jsx)("button",{type:"button","aria-label":o?(0,rr.T)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,rr.T)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,rr.T)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,i.A)("clean-btn",n,Hr.copyButton,o&&Hr.copyButtonCopied),onClick:c,children:(0,x.jsxs)("span",{className:Hr.copyButtonIcons,"aria-hidden":"true",children:[(0,x.jsx)(Ur,{className:Hr.copyButtonIcon}),(0,x.jsx)(Kr,{className:Hr.copyButtonSuccessIcon})]})})}function Wr(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}const zr={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function Gr(e){let{className:t,onClick:n,isEnabled:s}=e;const o=(0,rr.T)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,x.jsx)("button",{type:"button",onClick:n,className:(0,i.A)("clean-btn",t,s&&zr.wordWrapButtonEnabled),"aria-label":o,title:o,children:(0,x.jsx)(Wr,{className:zr.wordWrapButtonIcon,"aria-hidden":"true"})})}function Xr(e){let{children:t,className:n="",metastring:o,title:r,showLineNumbers:a,language:l}=e;const{prism:{defaultLanguage:u,magicComments:h}}=(0,ur.p)(),p=function(e){return e?.toLowerCase()}(l??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??u),d=hr(),f=function(){const[e,t]=(0,s.useState)(!1),[n,o]=(0,s.useState)(!1),r=(0,s.useRef)(null),i=(0,s.useCallback)((()=>{const n=r.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[r,e]),a=(0,s.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=r.current,n=e>t||r.current.querySelector("code").hasAttribute("style");o(n)}),[r]);return Mr(r,a),(0,s.useEffect)((()=>{a()}),[e,a]),(0,s.useEffect)((()=>(window.addEventListener("resize",a,{passive:!0}),()=>{window.removeEventListener("resize",a)})),[a]),{codeBlockRef:r,isEnabled:e,isCodeScrollable:n,toggle:i}}(),m=function(e){return e?.match(Cr)?.groups.title??""}(o)||r,{lineClassNames:k,code:g}=Rr(t,{metastring:o,language:p,magicComments:h}),y=a??function(e){return Boolean(e?.includes("showLineNumbers"))}(o);return(0,x.jsxs)(Or,{as:"div",className:(0,i.A)(n,p&&!n.includes(`language-${p}`)&&`language-${p}`),children:[m&&(0,x.jsx)("div",{className:Dr.codeBlockTitle,children:m}),(0,x.jsxs)("div",{className:Dr.codeBlockContent,children:[(0,x.jsx)(c.f4,{theme:d,code:g,language:p??"text",children:e=>{let{className:t,style:n,tokens:s,getLineProps:o,getTokenProps:r}=e;return(0,x.jsx)("pre",{tabIndex:0,ref:f.codeBlockRef,className:(0,i.A)(t,Dr.codeBlock,"thin-scrollbar"),style:n,children:(0,x.jsx)("code",{className:(0,i.A)(Dr.codeBlockLines,y&&Dr.codeBlockLinesWithNumbering),children:s.map(((e,t)=>(0,x.jsx)($r,{line:e,getLineProps:o,getTokenProps:r,classNames:k[t],showLineNumbers:y},t)))})})}}),(0,x.jsxs)("div",{className:Dr.buttonGroup,children:[(f.isEnabled||f.isCodeScrollable)&&(0,x.jsx)(Gr,{className:Dr.codeButton,onClick:()=>f.toggle(),isEnabled:f.isEnabled}),(0,x.jsx)(Vr,{className:Dr.codeButton,code:g})]})]})]})}const Jr=(Yr=function(e){let{children:t,...n}=e;const o=(0,a.A)(),r=function(e){return s.Children.toArray(e).some((e=>(0,s.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),i="string"==typeof r?Xr:Pr;return(0,x.jsx)(i,{...n,children:r},String(o))},function(e){return e.live?(0,x.jsx)(Tr,{scope:br,...e}):(0,x.jsx)(Yr,{...e})});var Yr;function Qr(e){return(0,x.jsx)("code",{...e})}var Zr=n(8774);var ei=n(3427),ti=n(1422);const ni={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};function si(e){return!!e&&("SUMMARY"===e.tagName||si(e.parentElement))}function oi(e,t){return!!e&&(e===t||oi(e.parentElement,t))}function ri(e){let{summary:t,children:n,...o}=e;(0,ei.A)().collectAnchor(o.id);const r=(0,a.A)(),c=(0,s.useRef)(null),{collapsed:l,setCollapsed:u}=(0,ti.u)({initialState:!o.open}),[h,p]=(0,s.useState)(o.open),d=s.isValidElement(t)?t:(0,x.jsx)("summary",{children:t??"Details"});return(0,x.jsxs)("details",{...o,ref:c,open:h,"data-collapsed":l,className:(0,i.A)(ni.details,r&&ni.isBrowser,o.className),onMouseDown:e=>{si(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;si(t)&&oi(t,c.current)&&(e.preventDefault(),l?(u(!1),p(!0)):u(!0))},children:[d,(0,x.jsx)(ti.N,{lazy:!1,collapsed:l,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{u(e),p(!e)},children:(0,x.jsx)("div",{className:ni.collapsibleContent,children:n})})]})}const ii={details:"details_b_Ee"},ai="alert alert--info";function ci(e){let{...t}=e;return(0,x.jsx)(ri,{...t,className:(0,i.A)(ai,ii.details,t.className)})}function li(e){const t=s.Children.toArray(e.children),n=t.find((e=>s.isValidElement(e)&&"summary"===e.type)),o=(0,x.jsx)(x.Fragment,{children:t.filter((e=>e!==n))});return(0,x.jsx)(ci,{...e,summary:n,children:o})}var ui=n(1107);function hi(e){return(0,x.jsx)(ui.A,{...e})}const pi={containsTaskList:"containsTaskList_mC6p"};function di(e){if(void 0!==e)return(0,i.A)(e,e?.includes("contains-task-list")&&pi.containsTaskList)}const fi={img:"img_ev3q"};var mi=n(7293);const ki={Head:r.A,details:li,Details:li,code:function(e){return function(e){return void 0!==e.children&&s.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")))}(e)?(0,x.jsx)(Qr,{...e}):(0,x.jsx)(Jr,{...e})},a:function(e){return(0,x.jsx)(Zr.A,{...e})},pre:function(e){return(0,x.jsx)(x.Fragment,{children:e.children})},ul:function(e){return(0,x.jsx)("ul",{...e,className:di(e.className)})},li:function(e){return(0,ei.A)().collectAnchor(e.id),(0,x.jsx)("li",{...e})},img:function(e){return(0,x.jsx)("img",{decoding:"async",loading:"lazy",...e,className:(t=e.className,(0,i.A)(t,fi.img))});var t},h1:e=>(0,x.jsx)(hi,{as:"h1",...e}),h2:e=>(0,x.jsx)(hi,{as:"h2",...e}),h3:e=>(0,x.jsx)(hi,{as:"h3",...e}),h4:e=>(0,x.jsx)(hi,{as:"h4",...e}),h5:e=>(0,x.jsx)(hi,{as:"h5",...e}),h6:e=>(0,x.jsx)(hi,{as:"h6",...e}),admonition:mi.A,mermaid:()=>null};function gi(e){let{children:t}=e;return(0,x.jsx)(o.x,{components:ki,children:t})}},6266:(e,t,n)=>{"use strict";n.d(t,{i:()=>o});var s=n(4586);function o(e){void 0===e&&(e={});const{i18n:{currentLocale:t}}=(0,s.A)(),n=function(){const{i18n:{currentLocale:e,localeConfigs:t}}=(0,s.A)();return t[e].calendar}();return new Intl.DateTimeFormat(t,{calendar:n,...e})}},89:(e,t)=>{"use strict";var n="\n",s=function(){function e(e){this.string=e;for(var t=[0],s=0;s<e.length;)switch(e[s]){case n:s+=1,t.push(s);break;case"\r":e[s+=1]===n&&(s+=1),t.push(s);break;default:s++}this.offsets=t}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}()},8426:(e,t)=>{function n(e){let t,n=[];for(let s of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(s))n.push(parseInt(s,10));else if(t=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,s,o,r]=t;if(s&&r){s=parseInt(s),r=parseInt(r);const e=s<r?1:-1;"-"!==o&&".."!==o&&"\u2025"!==o||(r+=e);for(let t=s;t!==r;t+=e)n.push(t)}}return n}t.default=n,e.exports=n},9361:function(e,t,n){"use strict";var s=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var s=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],i=0,a=r.length;i<a;i++,o++)s[o]=r[i];return s};Object.defineProperty(t,"__esModule",{value:!0}),t.Checker=t.createCheckers=void 0;var o=n(1680),r=n(1977),i=n(1680);Object.defineProperty(t,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(t,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(t,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(t,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(t,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(t,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(t,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(t,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(t,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(t,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(t,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(t,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(t,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(t,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(t,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(t,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(t,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(t,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(t,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(t,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(t,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(t,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(t,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(t,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(t,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(t,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(t,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var a=n(1977);Object.defineProperty(t,"VError",{enumerable:!0,get:function(){return a.VError}}),t.createCheckers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=Object.assign.apply(Object,s([{},o.basicTypes],e)),r={},i=0,a=e;i<a.length;i++)for(var l=a[i],u=0,h=Object.keys(l);u<h.length;u++){var p=h[u];r[p]=new c(n,l[p])}return r};var c=function(){function e(e,t,n){if(void 0===n&&(n="value"),this.suite=e,this.ttype=t,this._path=n,this.props=new Map,t instanceof o.TIface)for(var s=0,r=t.props;s<r.length;s++){var i=r[s];this.props.set(i.name,i.ttype)}this.checkerPlain=this.ttype.getChecker(e,!1),this.checkerStrict=this.ttype.getChecker(e,!0)}return e.prototype.setReportedPath=function(e){this._path=e},e.prototype.check=function(e){return this._doCheck(this.checkerPlain,e)},e.prototype.test=function(e){return this.checkerPlain(e,new r.NoopContext)},e.prototype.validate=function(e){return this._doValidate(this.checkerPlain,e)},e.prototype.strictCheck=function(e){return this._doCheck(this.checkerStrict,e)},e.prototype.strictTest=function(e){return this.checkerStrict(e,new r.NoopContext)},e.prototype.strictValidate=function(e){return this._doValidate(this.checkerStrict,e)},e.prototype.getProp=function(t){var n=this.props.get(t);if(!n)throw new Error("Type has no property "+t);return new e(this.suite,n,this._path+"."+t)},e.prototype.methodArgs=function(t){var n=this._getMethod(t);return new e(this.suite,n.paramList)},e.prototype.methodResult=function(t){var n=this._getMethod(t);return new e(this.suite,n.result)},e.prototype.getArgs=function(){if(!(this.ttype instanceof o.TFunc))throw new Error("getArgs() applied to non-function");return new e(this.suite,this.ttype.paramList)},e.prototype.getResult=function(){if(!(this.ttype instanceof o.TFunc))throw new Error("getResult() applied to non-function");return new e(this.suite,this.ttype.result)},e.prototype.getType=function(){return this.ttype},e.prototype._doCheck=function(e,t){if(!e(t,new r.NoopContext)){var n=new r.DetailContext;throw e(t,n),n.getError(this._path)}},e.prototype._doValidate=function(e,t){if(e(t,new r.NoopContext))return null;var n=new r.DetailContext;return e(t,n),n.getErrorDetail(this._path)},e.prototype._getMethod=function(e){var t=this.props.get(e);if(!t)throw new Error("Type has no property "+e);if(!(t instanceof o.TFunc))throw new Error("Property "+e+" is not a method");return t},e}();t.Checker=c},1680:function(e,t,n){"use strict";var s,o=this&&this.__extends||(s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},s(e,t)},function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.basicTypes=t.BasicType=t.TParamList=t.TParam=t.param=t.TFunc=t.func=t.TProp=t.TOptional=t.opt=t.TIface=t.iface=t.TEnumLiteral=t.enumlit=t.TEnumType=t.enumtype=t.TIntersection=t.intersection=t.TUnion=t.union=t.TTuple=t.tuple=t.TArray=t.array=t.TLiteral=t.lit=t.TName=t.name=t.TType=void 0;var r=n(1977),i=function(){};function a(e){return"string"==typeof e?l(e):e}function c(e,t){var n=e[t];if(!n)throw new Error("Unknown type "+t);return n}function l(e){return new u(e)}t.TType=i,t.name=l;var u=function(e){function t(t){var n=e.call(this)||this;return n.name=t,n._failMsg="is not a "+t,n}return o(t,e),t.prototype.getChecker=function(e,n,s){var o=this,r=c(e,this.name),i=r.getChecker(e,n,s);return r instanceof w||r instanceof t?i:function(e,t){return!!i(e,t)||t.fail(null,o._failMsg,0)}},t}(i);t.TName=u,t.lit=function(e){return new h(e)};var h=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n.name=JSON.stringify(t),n._failMsg="is not "+n.name,n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return e===n.value||t.fail(null,n._failMsg,-1)}},t}(i);t.TLiteral=h,t.array=function(e){return new p(a(e))};var p=function(e){function t(t){var n=e.call(this)||this;return n.ttype=t,n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this.ttype.getChecker(e,t);return function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var s=0;s<e.length;s++){if(!n(e[s],t))return t.fail(s,null,1)}return!0}},t}(i);t.TArray=p,t.tuple=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new d(e.map((function(e){return a(e)})))};var d=function(e){function t(t){var n=e.call(this)||this;return n.ttypes=t,n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this.ttypes.map((function(n){return n.getChecker(e,t)})),s=function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var s=0;s<n.length;s++){if(!n[s](e[s],t))return t.fail(s,null,1)}return!0};return t?function(e,t){return!!s(e,t)&&(e.length<=n.length||t.fail(n.length,"is extraneous",2))}:s},t}(i);t.TTuple=d,t.union=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new f(e.map((function(e){return a(e)})))};var f=function(e){function t(t){var n=e.call(this)||this;n.ttypes=t;var s=t.map((function(e){return e instanceof u||e instanceof h?e.name:null})).filter((function(e){return e})),o=t.length-s.length;return s.length?(o>0&&s.push(o+" more"),n._failMsg="is none of "+s.join(", ")):n._failMsg="is none of "+o+" types",n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this,s=this.ttypes.map((function(n){return n.getChecker(e,t)}));return function(e,t){for(var o=t.unionResolver(),r=0;r<s.length;r++){if(s[r](e,o.createContext()))return!0}return t.resolveUnion(o),t.fail(null,n._failMsg,0)}},t}(i);t.TUnion=f,t.intersection=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new m(e.map((function(e){return a(e)})))};var m=function(e){function t(t){var n=e.call(this)||this;return n.ttypes=t,n}return o(t,e),t.prototype.getChecker=function(e,t){var n=new Set,s=this.ttypes.map((function(s){return s.getChecker(e,t,n)}));return function(e,t){return!!s.every((function(n){return n(e,t)}))||t.fail(null,null,0)}},t}(i);t.TIntersection=m,t.enumtype=function(e){return new k(e)};var k=function(e){function t(t){var n=e.call(this)||this;return n.members=t,n.validValues=new Set,n._failMsg="is not a valid enum value",n.validValues=new Set(Object.keys(t).map((function(e){return t[e]}))),n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return!!n.validValues.has(e)||t.fail(null,n._failMsg,0)}},t}(i);t.TEnumType=k,t.enumlit=function(e,t){return new g(e,t)};var g=function(e){function t(t,n){var s=e.call(this)||this;return s.enumName=t,s.prop=n,s._failMsg="is not "+t+"."+n,s}return o(t,e),t.prototype.getChecker=function(e,t){var n=this,s=c(e,this.enumName);if(!(s instanceof k))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var o=s.members[this.prop];if(!s.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(e,t){return e===o||t.fail(null,n._failMsg,-1)}},t}(i);function x(e){return Object.keys(e).map((function(t){return function(e,t){return t instanceof _?new T(e,t.ttype,!0):new T(e,a(t),!1)}(t,e[t])}))}t.TEnumLiteral=g,t.iface=function(e,t){return new y(e,x(t))};var y=function(e){function t(t,n){var s=e.call(this)||this;return s.bases=t,s.props=n,s.propSet=new Set(n.map((function(e){return e.name}))),s}return o(t,e),t.prototype.getChecker=function(e,t,n){var s=this,o=this.bases.map((function(n){return c(e,n).getChecker(e,t)})),i=this.props.map((function(n){return n.ttype.getChecker(e,t)})),a=new r.NoopContext,l=this.props.map((function(e,t){return!e.isOpt&&!i[t](void 0,a)})),u=function(e,t){if("object"!=typeof e||null===e)return t.fail(null,"is not an object",0);for(var n=0;n<o.length;n++)if(!o[n](e,t))return!1;for(n=0;n<i.length;n++){var r=s.props[n].name,a=e[r];if(void 0===a){if(l[n])return t.fail(r,"is missing",1)}else if(!i[n](a,t))return t.fail(r,null,1)}return!0};if(!t)return u;var h=this.propSet;return n&&(this.propSet.forEach((function(e){return n.add(e)})),h=n),function(e,t){if(!u(e,t))return!1;for(var n in e)if(!h.has(n))return t.fail(n,"is extraneous",2);return!0}},t}(i);t.TIface=y,t.opt=function(e){return new _(a(e))};var _=function(e){function t(t){var n=e.call(this)||this;return n.ttype=t,n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this.ttype.getChecker(e,t);return function(e,t){return void 0===e||n(e,t)}},t}(i);t.TOptional=_;var T=function(e,t,n){this.name=e,this.ttype=t,this.isOpt=n};t.TProp=T,t.func=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new b(new I(t),a(e))};var b=function(e){function t(t,n){var s=e.call(this)||this;return s.paramList=t,s.result=n,s}return o(t,e),t.prototype.getChecker=function(e,t){return function(e,t){return"function"==typeof e||t.fail(null,"is not a function",0)}},t}(i);t.TFunc=b,t.param=function(e,t,n){return new v(e,a(t),Boolean(n))};var v=function(e,t,n){this.name=e,this.ttype=t,this.isOpt=n};t.TParam=v;var I=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this,s=this.params.map((function(n){return n.ttype.getChecker(e,t)})),o=new r.NoopContext,i=this.params.map((function(e,t){return!e.isOpt&&!s[t](void 0,o)})),a=function(e,t){if(!Array.isArray(e))return t.fail(null,"is not an array",0);for(var o=0;o<s.length;o++){var r=n.params[o];if(void 0===e[o]){if(i[o])return t.fail(r.name,"is missing",1)}else if(!s[o](e[o],t))return t.fail(r.name,null,1)}return!0};return t?function(e,t){return!!a(e,t)&&(e.length<=s.length||t.fail(s.length,"is extraneous",2))}:a},t}(i);t.TParamList=I;var w=function(e){function t(t,n){var s=e.call(this)||this;return s.validator=t,s.message=n,s}return o(t,e),t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return!!n.validator(e)||t.fail(null,n.message,0)}},t}(i);t.BasicType=w,t.basicTypes={any:new w((function(e){return!0}),"is invalid"),number:new w((function(e){return"number"==typeof e}),"is not a number"),object:new w((function(e){return"object"==typeof e&&e}),"is not an object"),boolean:new w((function(e){return"boolean"==typeof e}),"is not a boolean"),string:new w((function(e){return"string"==typeof e}),"is not a string"),symbol:new w((function(e){return"symbol"==typeof e}),"is not a symbol"),void:new w((function(e){return null==e}),"is not void"),undefined:new w((function(e){return void 0===e}),"is not undefined"),null:new w((function(e){return null===e}),"is not null"),never:new w((function(e){return!1}),"is unexpected"),Date:new w(A("[object Date]"),"is not a Date"),RegExp:new w(A("[object RegExp]"),"is not a RegExp")};var C=Object.prototype.toString;function A(e){return function(t){return"object"==typeof t&&t&&C.call(t)===e}}"undefined"!=typeof Buffer&&(t.basicTypes.Buffer=new w((function(e){return Buffer.isBuffer(e)}),"is not a Buffer"));for(var E=function(e){t.basicTypes[e.name]=new w((function(t){return t instanceof e}),"is not a "+e.name)},S=0,N=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];S<N.length;S++){E(N[S])}},1977:function(e,t){"use strict";var n,s=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},n(e,t)},function(e,t){function s(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(t,"__esModule",{value:!0}),t.DetailContext=t.NoopContext=t.VError=void 0;var o=function(e){function t(n,s){var o=e.call(this,s)||this;return o.path=n,Object.setPrototypeOf(o,t.prototype),o}return s(t,e),t}(Error);t.VError=o;var r=function(){function e(){}return e.prototype.fail=function(e,t,n){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(e){},e}();t.NoopContext=r;var i=function(){function e(){this._propNames=[""],this._messages=[null],this._score=0}return e.prototype.fail=function(e,t,n){return this._propNames.push(e),this._messages.push(t),this._score+=n,!1},e.prototype.unionResolver=function(){return new a},e.prototype.resolveUnion=function(e){for(var t,n,s=null,o=0,r=e.contexts;o<r.length;o++){var i=r[o];(!s||i._score>=s._score)&&(s=i)}s&&s._score>0&&((t=this._propNames).push.apply(t,s._propNames),(n=this._messages).push.apply(n,s._messages))},e.prototype.getError=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var s=this._propNames[n];e+="number"==typeof s?"["+s+"]":s?"."+s:"";var r=this._messages[n];r&&t.push(e+" "+r)}return new o(e,t.join("; "))},e.prototype.getErrorDetail=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var s=this._propNames[n];e+="number"==typeof s?"["+s+"]":s?"."+s:"";var o=this._messages[n];o&&t.push({path:e,message:o})}var r=null;for(n=t.length-1;n>=0;n--)r&&(t[n].nested=[r]),r=t[n];return r},e}();t.DetailContext=i;var a=function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var e=new i;return this.contexts.push(e),e},e}()},8453:(e,t,n)=>{"use strict";n.d(t,{R:()=>i,x:()=>a});var s=n(6540);const o={},r=s.createContext(o);function i(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/739bf370.64f0d5ca.js b/assets/js/739bf370.64f0d5ca.js deleted file mode 100644 index cc86fb71..00000000 --- a/assets/js/739bf370.64f0d5ca.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4812],{8145:(e,n,a)=>{a.r(n),a.d(n,{Tag:()=>l,assets:()=>c,contentTitle:()=>d,default:()=>u,frontMatter:()=>o,metadata:()=>i,toc:()=>h});var t=a(4848),r=a(8453),s=a(8597);const o={sidebar_position:1,sidebar_label:"Intro"},d="BabyPandas Documentation",i={id:"documentation/intro",title:"intro",description:"Assumption: Assume that df is a DataFrame, ser is a Series, arr is an array, and we have already run import babypandas as bpd and import numpy as np.",source:"@site/docs/documentation/intro.md",sourceDirName:"documentation",slug:"/documentation/intro",permalink:"/bpd-reference/docs/documentation/intro",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/intro.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,sidebar_label:"Intro"},sidebar:"docsSidebar",next:{title:"Building and Organizing DataFrames",permalink:"/bpd-reference/docs/documentation/building-organizing/"}},c={},l=({children:e,color:n})=>{const a={span:"span",...(0,r.R)()};return(0,t.jsx)(a.span,{style:{backgroundColor:n,borderRadius:"4px",color:"#fff",padding:"0.2rem 0.5rem",fontWeight:"bold"},children:e})},h=[];function p(e){const n={a:"a",code:"code",h1:"h1",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"babypandas-documentation",children:"BabyPandas Documentation"}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(l,{color:"#FF5733",children:"Assumption:"})," Assume that ",(0,t.jsx)(n.code,{children:"df"})," is a DataFrame, ",(0,t.jsx)(n.code,{children:"ser"})," is a Series, ",(0,t.jsx)(n.code,{children:"arr"})," is an array, and we have already run ",(0,t.jsx)(n.code,{children:"import babypandas as bpd"})," and ",(0,t.jsx)(n.code,{children:"import numpy as np"}),"."]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsxs)(n.p,{children:["This section contains common and useful methods in the BabyPandas package. For this section, ",(0,t.jsx)(n.code,{children:"pets"})," refers to the DataFrame below."]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets\n"})}),"\n",(0,t.jsx)(s.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{target:"_blank","data-noBrokenLinkCheck":!0,href:a(4853).A+"",children:"Download this data"})})]})}function u(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}},8597:(e,n,a)=>{a.d(n,{A:()=>r});a(6540);var t=a(4848);const r=e=>{let{data:n}=e,a=[],r=[],s="",o=[];if(n){const e=JSON.parse(n);a=e.columns||[],r=e.data||[],s=e.indexName||"Index",o=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:s}),a.map(((e,n)=>(0,t.jsx)("th",{children:e},n)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,n)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:o[n]}),e.map(((e,n)=>{return(0,t.jsx)("td",{children:(a=e,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},n);var a}))]},n)))})]})})}},4853:(e,n,a)=>{a.d(n,{A:()=>t});const t=a.p+"assets/files/pets-75b73fd7a514f0ed386c8767c7c854bf.csv"},8453:(e,n,a)=>{a.d(n,{R:()=>o,x:()=>d});var t=a(6540);const r={},s=t.createContext(r);function o(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/739bf370.9d003505.js b/assets/js/739bf370.9d003505.js new file mode 100644 index 00000000..39292dba --- /dev/null +++ b/assets/js/739bf370.9d003505.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4812],{8145:(e,n,a)=>{a.r(n),a.d(n,{Tag:()=>l,assets:()=>c,contentTitle:()=>d,default:()=>u,frontMatter:()=>o,metadata:()=>i,toc:()=>h});var t=a(4848),r=a(8453),s=a(8597);const o={sidebar_position:1,sidebar_label:"Intro"},d="BabyPandas Documentation",i={id:"documentation/intro",title:"intro",description:"Assumption: Assume that df is a DataFrame, ser is a Series, arr is an array, and we already ran import babypandas as bpd and import numpy as np.",source:"@site/docs/documentation/intro.md",sourceDirName:"documentation",slug:"/documentation/intro",permalink:"/bpd-reference/docs/documentation/intro",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/intro.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,sidebar_label:"Intro"},sidebar:"docsSidebar",next:{title:"Building and Organizing DataFrames",permalink:"/bpd-reference/docs/documentation/building-organizing/"}},c={},l=({children:e,color:n})=>{const a={span:"span",...(0,r.R)()};return(0,t.jsx)(a.span,{style:{backgroundColor:n,borderRadius:"4px",color:"#fff",padding:"0.2rem 0.5rem",fontWeight:"bold"},children:e})},h=[];function p(e){const n={a:"a",code:"code",h1:"h1",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"babypandas-documentation",children:"BabyPandas Documentation"}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(l,{color:"#FF5733",children:"Assumption:"})," Assume that ",(0,t.jsx)(n.code,{children:"df"})," is a DataFrame, ",(0,t.jsx)(n.code,{children:"ser"})," is a Series, ",(0,t.jsx)(n.code,{children:"arr"})," is an array, and we already ran ",(0,t.jsx)(n.code,{children:"import babypandas as bpd"})," and ",(0,t.jsx)(n.code,{children:"import numpy as np"}),"."]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsxs)(n.p,{children:["This section contains common and useful methods in the BabyPandas package. For this section, ",(0,t.jsx)(n.code,{children:"pets"})," refers to the DataFrame below."]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets\n"})}),"\n",(0,t.jsx)(s.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{target:"_blank","data-noBrokenLinkCheck":!0,href:a(4853).A+"",children:"Download this data"})})]})}function u(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}},8597:(e,n,a)=>{a.d(n,{A:()=>r});a(6540);var t=a(4848);const r=e=>{let{data:n}=e,a=[],r=[],s="",o=[];if(n){const e=JSON.parse(n);a=e.columns||[],r=e.data||[],s=e.indexName||"Index",o=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:s}),a.map(((e,n)=>(0,t.jsx)("th",{children:e},n)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,n)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:o[n]}),e.map(((e,n)=>{return(0,t.jsx)("td",{children:(a=e,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},n);var a}))]},n)))})]})})}},4853:(e,n,a)=>{a.d(n,{A:()=>t});const t=a.p+"assets/files/pets-60c4fcbf3eef32ca775cf4990a93182a.csv"},8453:(e,n,a)=>{a.d(n,{R:()=>o,x:()=>d});var t=a(6540);const r={},s=t.createContext(r);function o(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/7661071f.e81fafbc.js b/assets/js/7661071f.8f82254d.js similarity index 96% rename from assets/js/7661071f.e81fafbc.js rename to assets/js/7661071f.8f82254d.js index 1327284d..940d82a7 100644 --- a/assets/js/7661071f.e81fafbc.js +++ b/assets/js/7661071f.8f82254d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8737],{4137:(e,o,n)=>{n.r(o),n.d(o,{assets:()=>c,contentTitle:()=>l,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>u});var s=n(4848),t=n(8453);const r={slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},l=void 0,a={permalink:"/bpd-reference/blog/welcome",source:"@site/blog/2021-08-26-welcome/index.md",title:"Welcome",description:"Docusaurus blogging features are powered by the blog plugin.",date:"2021-08-26T00:00:00.000Z",tags:[{label:"facebook",permalink:"/bpd-reference/blog/tags/facebook"},{label:"hello",permalink:"/bpd-reference/blog/tags/hello"},{label:"docusaurus",permalink:"/bpd-reference/blog/tags/docusaurus"}],readingTime:.405,hasTruncateMarker:!1,authors:[{name:"S\xe9bastien Lorber",title:"Docusaurus maintainer",url:"https://sebastienlorber.com",imageURL:"https://github.com/slorber.png",key:"slorber"},{name:"Yangshun Tay",title:"Front End Engineer @ Facebook",url:"https://github.com/yangshun",imageURL:"https://github.com/yangshun.png",key:"yangshun"}],frontMatter:{slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},unlisted:!1,nextItem:{title:"MDX Blog Post",permalink:"/bpd-reference/blog/mdx-blog-post"}},c={authorsImageUrls:[void 0,void 0]},u=[];function i(e){const o={a:"a",code:"code",img:"img",li:"li",p:"p",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/blog",children:"Docusaurus blogging features"})," are powered by the ",(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog",children:"blog plugin"}),"."]}),"\n",(0,s.jsxs)(o.p,{children:["Simply add Markdown files (or folders) to the ",(0,s.jsx)(o.code,{children:"blog"})," directory."]}),"\n",(0,s.jsxs)(o.p,{children:["Regular blog authors can be added to ",(0,s.jsx)(o.code,{children:"authors.yml"}),"."]}),"\n",(0,s.jsx)(o.p,{children:"The blog post date can be extracted from filenames, such as:"}),"\n",(0,s.jsxs)(o.ul,{children:["\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome.md"})}),"\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome/index.md"})}),"\n"]}),"\n",(0,s.jsx)(o.p,{children:"A blog post folder can be convenient to co-locate blog post images:"}),"\n",(0,s.jsx)(o.p,{children:(0,s.jsx)(o.img,{alt:"Docusaurus Plushie",src:n(5693).A+"",width:"1500",height:"500"})}),"\n",(0,s.jsx)(o.p,{children:"The blog supports tags as well!"}),"\n",(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.strong,{children:"And if you don't want a blog"}),": just delete this directory, and use ",(0,s.jsx)(o.code,{children:"blog: false"})," in your Docusaurus config."]})]})}function d(e={}){const{wrapper:o}={...(0,t.R)(),...e.components};return o?(0,s.jsx)(o,{...e,children:(0,s.jsx)(i,{...e})}):i(e)}},5693:(e,o,n)=>{n.d(o,{A:()=>s});const s=n.p+"assets/images/docusaurus-plushie-banner-a60f7593abca1e3eef26a9afa244e4fb.jpeg"},8453:(e,o,n)=>{n.d(o,{R:()=>l,x:()=>a});var s=n(6540);const t={},r=s.createContext(t);function l(e){const o=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function a(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(r.Provider,{value:o},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8737],{4137:(e,o,n)=>{n.r(o),n.d(o,{assets:()=>c,contentTitle:()=>l,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>u});var s=n(4848),t=n(8453);const r={slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},l=void 0,a={permalink:"/bpd-reference/blog/welcome",source:"@site/blog/2021-08-26-welcome/index.md",title:"Welcome",description:"Docusaurus blogging features are powered by the blog plugin.",date:"2021-08-26T00:00:00.000Z",tags:[{label:"facebook",permalink:"/bpd-reference/blog/tags/facebook"},{label:"hello",permalink:"/bpd-reference/blog/tags/hello"},{label:"docusaurus",permalink:"/bpd-reference/blog/tags/docusaurus"}],readingTime:.405,hasTruncateMarker:!1,authors:[{name:"S\xe9bastien Lorber",title:"Docusaurus maintainer",url:"https://sebastienlorber.com",imageURL:"https://github.com/slorber.png",key:"slorber"},{name:"Yangshun Tay",title:"Front End Engineer @ Facebook",url:"https://github.com/yangshun",imageURL:"https://github.com/yangshun.png",key:"yangshun"}],frontMatter:{slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},unlisted:!1,nextItem:{title:"MDX Blog Post",permalink:"/bpd-reference/blog/mdx-blog-post"}},c={authorsImageUrls:[void 0,void 0]},u=[];function i(e){const o={a:"a",code:"code",img:"img",li:"li",p:"p",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/blog",children:"Docusaurus blogging features"})," are powered by the ",(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog",children:"blog plugin"}),"."]}),"\n",(0,s.jsxs)(o.p,{children:["Simply add Markdown files (or folders) to the ",(0,s.jsx)(o.code,{children:"blog"})," directory."]}),"\n",(0,s.jsxs)(o.p,{children:["Regular blog authors can be added to ",(0,s.jsx)(o.code,{children:"authors.yml"}),"."]}),"\n",(0,s.jsx)(o.p,{children:"The blog post date can be extracted from filenames, such as:"}),"\n",(0,s.jsxs)(o.ul,{children:["\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome.md"})}),"\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome/index.md"})}),"\n"]}),"\n",(0,s.jsx)(o.p,{children:"A blog post folder can be convenient to co-locate blog post images:"}),"\n",(0,s.jsx)(o.p,{children:(0,s.jsx)(o.img,{alt:"Docusaurus Plushie",src:n(5237).A+"",width:"1500",height:"500"})}),"\n",(0,s.jsx)(o.p,{children:"The blog supports tags as well!"}),"\n",(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.strong,{children:"And if you don't want a blog"}),": just delete this directory, and use ",(0,s.jsx)(o.code,{children:"blog: false"})," in your Docusaurus config."]})]})}function d(e={}){const{wrapper:o}={...(0,t.R)(),...e.components};return o?(0,s.jsx)(o,{...e,children:(0,s.jsx)(i,{...e})}):i(e)}},5237:(e,o,n)=>{n.d(o,{A:()=>s});const s=n.p+"assets/images/docusaurus-plushie-banner-a60f7593abca1e3eef26a9afa244e4fb.jpeg"},8453:(e,o,n)=>{n.d(o,{R:()=>l,x:()=>a});var s=n(6540);const t={},r=s.createContext(t);function l(e){const o=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function a(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(r.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/81322b72.65633f64.js b/assets/js/81322b72.65633f64.js deleted file mode 100644 index 8d0299e5..00000000 --- a/assets/js/81322b72.65633f64.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[94],{7352:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var r=n(4848),t=n(8453),i=(n(8597),n(8205));const a={sidebar_position:7},c=void 0,o={id:"documentation/series-methods/ser.unique()",title:"ser.unique()",description:"ser.unique()",source:"@site/docs/documentation/series-methods/ser.unique().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.unique()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.unique()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.unique().md",tags:[],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7},sidebar:"docsSidebar",previous:{title:"ser.median()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.median()"},next:{title:"ser.str.split()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.split()"}},d={},l=[];function u(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.unique()"}),"\n",(0,r.jsx)("div",{className:"base",children:(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Returns the unique values in the Series."})})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,r.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser.unique()\n"})}),"\n",(0,r.jsx)(s.p,{children:"array([40. , 1.5 , 15. , 80. , 25. , 1. , 0.25, 10. ])"}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"# Number of unique values\r\nlen(weight_ser.unique())\n"})}),"\n",(0,r.jsx)(s.p,{children:"8"})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>t});n(6540);var r=n(4848);const t=e=>{let{data:s}=e,n=[],t=[],i="",a=[];if(s){const e=JSON.parse(s);n=e.columns||[],t=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:i}),n.map(((e,s)=>(0,r.jsx)("th",{children:e},s)))]})}),(0,r.jsx)("tbody",{children:t.map(((e,s)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:a[s]}),e.map(((e,s)=>{return(0,r.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>t});n(6540);var r=n(4848);const t=e=>{let{data:s}=e,n=[],t=[],i="",a="";if(s)try{const e=JSON.parse(s);i=e.name||"",a=e.dtype||"Unknown type",n=e.index||[],t=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const c=t.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:c.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:n[s]}),(0,r.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>c});var r=n(6540);const t={},i=r.createContext(t);function a(e){const s=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function c(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),r.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/81322b72.90d5758b.js b/assets/js/81322b72.90d5758b.js new file mode 100644 index 00000000..fc282f1c --- /dev/null +++ b/assets/js/81322b72.90d5758b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[94],{7352:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var r=n(4848),t=n(8453),i=(n(8597),n(8205));const a={sidebar_position:7},c=void 0,o={id:"documentation/series-methods/ser.unique()",title:"ser.unique()",description:"ser.unique()",source:"@site/docs/documentation/series-methods/ser.unique().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.unique()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.unique()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.unique().md",tags:[],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7},sidebar:"docsSidebar",previous:{title:"ser.median()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.median()"},next:{title:"ser.str.split()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.split()"}},d={},l=[];function u(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.unique()"}),"\n",(0,r.jsx)("div",{className:"base",children:(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Returns the unique values in the Series."})})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,r.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser.unique()\n"})}),"\n",(0,r.jsx)(s.p,{children:"array([40. , 1.5 , 15. , 80. , 25. , 1. , 0.25, 10. ])"}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"# Number of unique values\nlen(weight_ser.unique())\n"})}),"\n",(0,r.jsx)(s.p,{children:"8"})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>t});n(6540);var r=n(4848);const t=e=>{let{data:s}=e,n=[],t=[],i="",a=[];if(s){const e=JSON.parse(s);n=e.columns||[],t=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:i}),n.map(((e,s)=>(0,r.jsx)("th",{children:e},s)))]})}),(0,r.jsx)("tbody",{children:t.map(((e,s)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:a[s]}),e.map(((e,s)=>{return(0,r.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>t});n(6540);var r=n(4848);const t=e=>{let{data:s}=e,n=[],t=[],i="",a="";if(s)try{const e=JSON.parse(s);i=e.name||"",a=e.dtype||"Unknown type",n=e.index||[],t=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const c=t.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:c.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:n[s]}),(0,r.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>c});var r=n(6540);const t={},i=r.createContext(t);function a(e){const s=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function c(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),r.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/82ff9878.7e78a65b.js b/assets/js/82ff9878.7e78a65b.js deleted file mode 100644 index 44699d89..00000000 --- a/assets/js/82ff9878.7e78a65b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[675],{4458:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>o,default:()=>p,frontMatter:()=>i,metadata:()=>d,toc:()=>l});var r=t(4848),n=t(8453),a=(t(8597),t(8205));const i={sidebar_position:12},o=void 0,d={id:"documentation/series-methods/ser.str.capitalize()",title:"ser.str.capitalize()",description:"ser.str.capitalize()",source:"@site/docs/documentation/series-methods/ser.str.capitalize().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.capitalize()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.capitalize().md",tags:[],version:"current",sidebarPosition:12,frontMatter:{sidebar_position:12},sidebar:"docsSidebar",previous:{title:"ser.str.upper()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.upper()"},next:{title:"ser.str.title()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.title()"}},c={},l=[];function h(e){const s={code:"code",hr:"hr",pre:"pre",strong:"strong",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.str.capitalize()"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Converts strings in the Series to be capitalized. Only the first character in the string will be capitalized."})}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"Returns a Series with each element's first character capitalized."}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"Series"})]})]}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\r\ncomment_ser\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,r.jsxs)("p",{children:[(0,r.jsx)("br",{})," ",(0,r.jsxs)(s.strong,{children:["Notice that ",(0,r.jsx)(s.code,{children:"ser.str.capitalize()"})," only works when there are no special characters before the first letter in the sentence."]})," "]}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser.str.capitalize()\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" there are no bad dogs, only bad owners.","My best birthday present ever!!!","****all you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,r.jsxs)("p",{children:[(0,r.jsx)("br",{})," ",(0,r.jsxs)(s.strong,{children:["After removing special characters, ",(0,r.jsx)(s.code,{children:"ser.str.capitalize()"})," will work. This is also an example of how to use multiple ",(0,r.jsx)(s.code,{children:"ser.str"})," methods on a bpd Series."]})," "]}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser.str.strip().str.capitalize()\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":["There are no bad dogs, only bad owners.","My best birthday present ever!!!","****all you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'})]})}function p(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>n});t(6540);var r=t(4848);const n=e=>{let{data:s}=e,t=[],n=[],a="",i=[];if(s){const e=JSON.parse(s);t=e.columns||[],n=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:a}),t.map(((e,s)=>(0,r.jsx)("th",{children:e},s)))]})}),(0,r.jsx)("tbody",{children:n.map(((e,s)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:i[s]}),e.map(((e,s)=>{return(0,r.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>n});t(6540);var r=t(4848);const n=e=>{let{data:s}=e,t=[],n=[],a="",i="";if(s)try{const e=JSON.parse(s);a=e.name||"",i=e.dtype||"Unknown type",t=e.index||[],n=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=n.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:t[s]}),(0,r.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>i,x:()=>o});var r=t(6540);const n={},a=r.createContext(n);function i(e){const s=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),r.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/82ff9878.9143662a.js b/assets/js/82ff9878.9143662a.js new file mode 100644 index 00000000..efcf095d --- /dev/null +++ b/assets/js/82ff9878.9143662a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[675],{4458:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>o,default:()=>p,frontMatter:()=>i,metadata:()=>d,toc:()=>l});var r=t(4848),n=t(8453),a=(t(8597),t(8205));const i={sidebar_position:12},o=void 0,d={id:"documentation/series-methods/ser.str.capitalize()",title:"ser.str.capitalize()",description:"ser.str.capitalize()",source:"@site/docs/documentation/series-methods/ser.str.capitalize().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.capitalize()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.capitalize().md",tags:[],version:"current",sidebarPosition:12,frontMatter:{sidebar_position:12},sidebar:"docsSidebar",previous:{title:"ser.str.upper()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.upper()"},next:{title:"ser.str.title()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.title()"}},c={},l=[];function h(e){const s={code:"code",hr:"hr",pre:"pre",strong:"strong",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.str.capitalize()"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Converts strings in the Series to be capitalized. Only the first character in the string will be capitalized."})}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"Returns a Series with each element's first character capitalized."}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"Series"})]})]}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\ncomment_ser\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,r.jsxs)("p",{children:[(0,r.jsx)("br",{})," ",(0,r.jsxs)(s.strong,{children:["Notice that ",(0,r.jsx)(s.code,{children:"ser.str.capitalize()"})," only works when there are no special characters before the first letter in the sentence."]})," "]}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser.str.capitalize()\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" there are no bad dogs, only bad owners.","My best birthday present ever!!!","****all you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,r.jsxs)("p",{children:[(0,r.jsx)("br",{})," ",(0,r.jsxs)(s.strong,{children:["After removing special characters, ",(0,r.jsx)(s.code,{children:"ser.str.capitalize()"})," will work. This is also an example of how to use multiple ",(0,r.jsx)(s.code,{children:"ser.str"})," methods on a bpd Series."]})," "]}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser.str.strip().str.capitalize()\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":["There are no bad dogs, only bad owners.","My best birthday present ever!!!","****all you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'})]})}function p(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>n});t(6540);var r=t(4848);const n=e=>{let{data:s}=e,t=[],n=[],a="",i=[];if(s){const e=JSON.parse(s);t=e.columns||[],n=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:a}),t.map(((e,s)=>(0,r.jsx)("th",{children:e},s)))]})}),(0,r.jsx)("tbody",{children:n.map(((e,s)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:i[s]}),e.map(((e,s)=>{return(0,r.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>n});t(6540);var r=t(4848);const n=e=>{let{data:s}=e,t=[],n=[],a="",i="";if(s)try{const e=JSON.parse(s);a=e.name||"",i=e.dtype||"Unknown type",t=e.index||[],n=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=n.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:t[s]}),(0,r.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>i,x:()=>o});var r=t(6540);const n={},a=r.createContext(n);function i(e){const s=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),r.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8c496670.dc29cff5.js b/assets/js/8c496670.3ecad696.js similarity index 68% rename from assets/js/8c496670.dc29cff5.js rename to assets/js/8c496670.3ecad696.js index 2db036aa..9cf58df5 100644 --- a/assets/js/8c496670.dc29cff5.js +++ b/assets/js/8c496670.3ecad696.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[9572],{9108:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>l,contentTitle:()=>d,default:()=>p,frontMatter:()=>i,metadata:()=>c,toc:()=>h});var a=n(4848),t=n(8453),o=n(8597),r=n(8205);const i={sidebar_position:2},d=void 0,c={id:"documentation/querying/df[]",title:"df[]",description:"df[condition]",source:"@site/docs/documentation/querying/df[].md",sourceDirName:"documentation/querying",slug:"/documentation/querying/df[]",permalink:"/bpd-reference/docs/documentation/querying/df[]",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/querying/df[].md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"docsSidebar",previous:{title:"Querying",permalink:"/bpd-reference/docs/category/querying"},next:{title:"Writing Functions",permalink:"/bpd-reference/docs/documentation/Functions/Writing Functions"}},l={},h=[];function g(e){const s={code:"code",hr:"hr",pre:"pre",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df[condition]"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Creates a new dataframe containing only the rows that satisfy a specific condition. "})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["condition : ",(0,a.jsx)("em",{children:"bool"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:" A sequence of boolean values with length equal to the number of rows of the DataFrame."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"new_df - A new DataFrame that contains only the rows whose corresponding element in condition is True."}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,a.jsx)(s.hr,{}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:" Series of bools of if Species is a dog AND Color is white "})}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"(pets.get('Species')=='dog') & (pets.get('Color')=='white')\n"})}),"\n",(0,a.jsx)(r.A,{data:'{"name":"Species is a dog AND color is white","index":[0,1,2,3,4,5,6,7],"data":[false,false,false,true,false,false,false,false]}'}),"\n",(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:" DataFrame where Species is a dog AND Color is white "})}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets[(pets.get('Species')=='dog') & (pets.get('Color')=='white')]\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[3],"data":[["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."]]}'}),"\n",(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:" Series of bools where Species is a dog OR Color is white"})}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"(pets.get('Species')=='dog') | (pets.get('Color')=='white')\n"})}),"\n",(0,a.jsx)(r.A,{data:'{"name":"Species is a dog OR color is white","index":[0,1,2,3,4,5,6,7],"data":[true,false,false,true,true,false,false,false]}'}),"\n",(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:" DataFrame where Species is a dog OR Color is white"})}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets[(pets.get('Species')=='dog') | (pets.get('Color')=='white')]\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,3,4],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."]]}'}),"\n",(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Some other examples!"})}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets[pets.get('Weight') >= 25]\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,3,4],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."]]}'}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets[pets[(pets.get('Weight') >= 25) & (pets.get('Weight') < 80)]]\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,4],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."]]}'}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets[pets[pets.get('Color').str.contains('e')]]\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[1,3,6],"data":[["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"]]}'}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets[pets1 = pets.set_index('ID')\r\npets1[pets1.index.str.contains('cat')]]\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":["cat_001","cat_002","cat_003"],"data":[["cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets[pets.index > 3]\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[4,5,6,7],"data":[["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(g,{...e})}):g(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>t});n(6540);var a=n(4848);const t=e=>{let{data:s}=e,n=[],t=[],o="",r=[];if(s){const e=JSON.parse(s);n=e.columns||[],t=e.data||[],o=e.indexName||"Index",r=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:o}),n.map(((e,s)=>(0,a.jsx)("th",{children:e},s)))]})}),(0,a.jsx)("tbody",{children:t.map(((e,s)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:r[s]}),e.map(((e,s)=>{return(0,a.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>t});n(6540);var a=n(4848);const t=e=>{let{data:s}=e,n=[],t=[],o="",r="";if(s)try{const e=JSON.parse(s);o=e.name||"",r=e.dtype||"Unknown type",n=e.index||[],t=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const i=t.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:i.map(((e,s)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:n[s]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",o,", dtype: ",r]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>r,x:()=>i});var a=n(6540);const t={},o=a.createContext(t);function r(e){const s=a.useContext(o);return a.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),a.createElement(o.Provider,{value:s},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[9572],{9108:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>l,contentTitle:()=>d,default:()=>p,frontMatter:()=>i,metadata:()=>c,toc:()=>h});var a=n(4848),t=n(8453),o=n(8597),r=n(8205);const i={sidebar_position:2},d=void 0,c={id:"documentation/querying/df[]",title:"df[]",description:"df[condition]",source:"@site/docs/documentation/querying/df[].md",sourceDirName:"documentation/querying",slug:"/documentation/querying/df[]",permalink:"/bpd-reference/docs/documentation/querying/df[]",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/querying/df[].md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"docsSidebar",previous:{title:"Querying",permalink:"/bpd-reference/docs/category/querying"},next:{title:"Writing Functions",permalink:"/bpd-reference/docs/documentation/Functions/Writing Functions"}},l={},h=[];function g(e){const s={code:"code",hr:"hr",pre:"pre",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df[condition]"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Creates a new dataframe containing only the rows that satisfy a specific condition. "})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["condition : ",(0,a.jsx)("em",{children:"bool"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:" A sequence of boolean values with length equal to the number of rows of the DataFrame."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"new_df - A new DataFrame that contains only the rows whose corresponding element in condition is True."}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,a.jsx)(s.hr,{}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:" Series of bools of if Species is a dog AND Color is white "})}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"(pets.get('Species')=='dog') & (pets.get('Color')=='white')\n"})}),"\n",(0,a.jsx)(r.A,{data:'{"name":"Species is a dog AND color is white","index":[0,1,2,3,4,5,6,7],"data":[false,false,false,true,false,false,false,false]}'}),"\n",(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:" DataFrame where Species is a dog AND Color is white "})}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets[(pets.get('Species')=='dog') & (pets.get('Color')=='white')]\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[3],"data":[["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."]]}'}),"\n",(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:" Series of bools where Species is a dog OR Color is white"})}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"(pets.get('Species')=='dog') | (pets.get('Color')=='white')\n"})}),"\n",(0,a.jsx)(r.A,{data:'{"name":"Species is a dog OR color is white","index":[0,1,2,3,4,5,6,7],"data":[true,false,false,true,true,false,false,false]}'}),"\n",(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:" DataFrame where Species is a dog OR Color is white"})}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets[(pets.get('Species')=='dog') | (pets.get('Color')=='white')]\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,3,4],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."]]}'}),"\n",(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Some other examples!"})}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets[pets.get('Weight') >= 25]\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,3,4],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."]]}'}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets[pets[(pets.get('Weight') >= 25) & (pets.get('Weight') < 80)]]\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,4],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."]]}'}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets[pets[pets.get('Color').str.contains('e')]]\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[1,3,6],"data":[["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"]]}'}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets[pets1 = pets.set_index('ID')\npets1[pets1.index.str.contains('cat')]]\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":["cat_001","cat_002","cat_003"],"data":[["cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-python",children:"pets[pets.index > 3]\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[4,5,6,7],"data":[["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(g,{...e})}):g(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>t});n(6540);var a=n(4848);const t=e=>{let{data:s}=e,n=[],t=[],o="",r=[];if(s){const e=JSON.parse(s);n=e.columns||[],t=e.data||[],o=e.indexName||"Index",r=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:o}),n.map(((e,s)=>(0,a.jsx)("th",{children:e},s)))]})}),(0,a.jsx)("tbody",{children:t.map(((e,s)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:r[s]}),e.map(((e,s)=>{return(0,a.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>t});n(6540);var a=n(4848);const t=e=>{let{data:s}=e,n=[],t=[],o="",r="";if(s)try{const e=JSON.parse(s);o=e.name||"",r=e.dtype||"Unknown type",n=e.index||[],t=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const i=t.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:i.map(((e,s)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:n[s]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",o,", dtype: ",r]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>r,x:()=>i});var a=n(6540);const t={},o=a.createContext(t);function r(e){const s=a.useContext(o);return a.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),a.createElement(o.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/920988e2.1a73d040.js b/assets/js/920988e2.1a73d040.js new file mode 100644 index 00000000..3967a90b --- /dev/null +++ b/assets/js/920988e2.1a73d040.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6690],{1399:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>i,contentTitle:()=>d,default:()=>l,frontMatter:()=>t,metadata:()=>c,toc:()=>o});var a=r(4848),s=r(8453);r(8597),r(8205);const t={sidebar_position:1},d=void 0,c={id:"documentation/arrays-and-numpy/np.append()",title:"np.append()",description:"np.append(arr, value)",source:"@site/docs/documentation/arrays-and-numpy/np.append().md",sourceDirName:"documentation/arrays-and-numpy",slug:"/documentation/arrays-and-numpy/np.append()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.append()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/arrays-and-numpy/np.append().md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"arr[]",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/arr[]"},next:{title:"np.arange()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.arange()"}},i={},o=[];function p(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"np.append(arr, value)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"A copy of arr with value appended to the end. This does not\nchange arr unless you store the result in arr."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["arr : ",(0,a.jsx)("em",{children:"array"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"The original array to which a value will be appended."}),(0,a.jsxs)("dd",{className:"parameter",children:["value : ",(0,a.jsx)("em",{children:"any type"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"The value to append to the array."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"new_arr - a new array containing the elements of the original array followed by the appended value"}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"array"})]})]}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"np.append(weight_arr, 2)\n"})}),"\n",(0,a.jsx)(n.p,{children:"array([40. , 1.5 , 15. , 80. , 25. , 1. , 0.25, 10. , 2. ])"})]})}function l(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},8597:(e,n,r)=>{r.d(n,{A:()=>s});r(6540);var a=r(4848);const s=e=>{let{data:n}=e,r=[],s=[],t="",d=[];if(n){const e=JSON.parse(n);r=e.columns||[],s=e.data||[],t=e.indexName||"Index",d=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:t}),r.map(((e,n)=>(0,a.jsx)("th",{children:e},n)))]})}),(0,a.jsx)("tbody",{children:s.map(((e,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:d[n]}),e.map(((e,n)=>{return(0,a.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},n);var r}))]},n)))})]})})}},8205:(e,n,r)=>{r.d(n,{A:()=>s});r(6540);var a=r(4848);const s=e=>{let{data:n}=e,r=[],s=[],t="",d="";if(n)try{const e=JSON.parse(n);t=e.name||"",d=e.dtype||"Unknown type",r=e.index||[],s=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const c=s.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:c.map(((e,n)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:r[n]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",t,", dtype: ",d]})]})}},8453:(e,n,r)=>{r.d(n,{R:()=>d,x:()=>c});var a=r(6540);const s={},t=a.createContext(s);function d(e){const n=a.useContext(t);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:d(e.components),a.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/920988e2.d63c6515.js b/assets/js/920988e2.d63c6515.js deleted file mode 100644 index 9729c022..00000000 --- a/assets/js/920988e2.d63c6515.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6690],{1399:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>i,contentTitle:()=>d,default:()=>l,frontMatter:()=>t,metadata:()=>c,toc:()=>o});var a=r(4848),s=r(8453);r(8597),r(8205);const t={sidebar_position:1},d=void 0,c={id:"documentation/arrays-and-numpy/np.append()",title:"np.append()",description:"np.append(arr, value)",source:"@site/docs/documentation/arrays-and-numpy/np.append().md",sourceDirName:"documentation/arrays-and-numpy",slug:"/documentation/arrays-and-numpy/np.append()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.append()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/arrays-and-numpy/np.append().md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"arr[]",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/arr[]"},next:{title:"np.arange()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.arange()"}},i={},o=[];function p(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"np.append(arr, value)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"A copy of arr with value appended to the end. This does not\r\nchange arr unless you store the result in arr."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["arr : ",(0,a.jsx)("em",{children:"array"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"The original array to which a value will be appended."}),(0,a.jsxs)("dd",{className:"parameter",children:["value : ",(0,a.jsx)("em",{children:"any type"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"The value to append to the array."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"new_arr - a new array containing the elements of the original array followed by the appended value"}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"array"})]})]}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"np.append(weight_arr, 2)\n"})}),"\n",(0,a.jsx)(n.p,{children:"array([40. , 1.5 , 15. , 80. , 25. , 1. , 0.25, 10. , 2. ])"})]})}function l(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},8597:(e,n,r)=>{r.d(n,{A:()=>s});r(6540);var a=r(4848);const s=e=>{let{data:n}=e,r=[],s=[],t="",d=[];if(n){const e=JSON.parse(n);r=e.columns||[],s=e.data||[],t=e.indexName||"Index",d=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:t}),r.map(((e,n)=>(0,a.jsx)("th",{children:e},n)))]})}),(0,a.jsx)("tbody",{children:s.map(((e,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:d[n]}),e.map(((e,n)=>{return(0,a.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},n);var r}))]},n)))})]})})}},8205:(e,n,r)=>{r.d(n,{A:()=>s});r(6540);var a=r(4848);const s=e=>{let{data:n}=e,r=[],s=[],t="",d="";if(n)try{const e=JSON.parse(n);t=e.name||"",d=e.dtype||"Unknown type",r=e.index||[],s=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const c=s.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:c.map(((e,n)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:r[n]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",t,", dtype: ",d]})]})}},8453:(e,n,r)=>{r.d(n,{R:()=>d,x:()=>c});var a=r(6540);const s={},t=a.createContext(s);function d(e){const n=a.useContext(t);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:d(e.components),a.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9746c0ef.2880f7ec.js b/assets/js/9746c0ef.2880f7ec.js new file mode 100644 index 00000000..025961eb --- /dev/null +++ b/assets/js/9746c0ef.2880f7ec.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4638],{9849:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>d,toc:()=>l});var t=n(4848),r=n(8453),a=(n(8597),n(8205));const i={sidebar_position:16},o=void 0,d={id:"documentation/series-methods/ser.str.contains()",title:"ser.str.contains()",description:"ser.str.contains(substring)",source:"@site/docs/documentation/series-methods/ser.str.contains().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.contains()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.contains()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.contains().md",tags:[],version:"current",sidebarPosition:16,frontMatter:{sidebar_position:16},sidebar:"docsSidebar",previous:{title:"ser.str.len()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.len()"},next:{title:"Arrays and NumPy",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/"}},c={},l=[];function m(e){const s={code:"code",hr:"hr",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.str.contains(substring)"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Tests if a substring is contained within each element of the Series."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Input:"}),(0,t.jsxs)("dd",{className:"parameter",children:["substring : ",(0,t.jsx)("em",{children:"string"})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"String to search for."}),(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"Returns a Series with a boolean value for each element expressing if each element contained the inputted substring."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"Series"})]})]}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\ncomment_ser\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser.str.contains('dog')\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"bool","index":[0,1,2,3,4,5,6,7],"data":[true,false,false,false,true,false,false,false]}'})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],a="",i=[];if(s){const e=JSON.parse(s);n=e.columns||[],r=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:a}),n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:i[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],a="",i="";if(s)try{const e=JSON.parse(s);a=e.name||"",i=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>i,x:()=>o});var t=n(6540);const r={},a=t.createContext(r);function i(e){const s=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),t.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9746c0ef.75ed6b19.js b/assets/js/9746c0ef.75ed6b19.js deleted file mode 100644 index 48ce398d..00000000 --- a/assets/js/9746c0ef.75ed6b19.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4638],{9849:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>d,toc:()=>l});var t=n(4848),r=n(8453),a=(n(8597),n(8205));const i={sidebar_position:16},o=void 0,d={id:"documentation/series-methods/ser.str.contains()",title:"ser.str.contains()",description:"ser.str.contains(substring)",source:"@site/docs/documentation/series-methods/ser.str.contains().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.contains()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.contains()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.contains().md",tags:[],version:"current",sidebarPosition:16,frontMatter:{sidebar_position:16},sidebar:"docsSidebar",previous:{title:"ser.str.len()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.len()"},next:{title:"Arrays and NumPy",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/"}},c={},l=[];function m(e){const s={code:"code",hr:"hr",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.str.contains(substring)"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Tests if a substring is contained within each element of the Series."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Input:"}),(0,t.jsxs)("dd",{className:"parameter",children:["substring : ",(0,t.jsx)("em",{children:"string"})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"String to search for."}),(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"Returns a Series with a boolean value for each element expressing if each element contained the inputted substring."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"Series"})]})]}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\r\ncomment_ser\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser.str.contains('dog')\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"bool","index":[0,1,2,3,4,5,6,7],"data":[true,false,false,false,true,false,false,false]}'})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],a="",i=[];if(s){const e=JSON.parse(s);n=e.columns||[],r=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:a}),n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:i[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],a="",i="";if(s)try{const e=JSON.parse(s);a=e.name||"",i=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>i,x:()=>o});var t=n(6540);const r={},a=t.createContext(r);function i(e){const s=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),t.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9a265863.941bfa1e.js b/assets/js/9a265863.941bfa1e.js new file mode 100644 index 00000000..8f2b7e68 --- /dev/null +++ b/assets/js/9a265863.941bfa1e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[1779],{2878:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>s,default:()=>h,frontMatter:()=>a,metadata:()=>d,toc:()=>l});var r=t(4848),i=t(8453);t(8597),t(5158);const a={sidebar_position:9,sidebar_label:"The Standard Normal Distribution",title:"The Standard Normal Distribution",tags:["normal distributions","standard units"]},s=void 0,d={id:"statistical-inference/standard_normal_distribution",title:"The Standard Normal Distribution",description:"Concept",source:"@site/docs/statistical-inference/standard_normal_distribution.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/standard_normal_distribution",permalink:"/bpd-reference/docs/statistical-inference/standard_normal_distribution",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/standard_normal_distribution.md",tags:[{label:"normal distributions",permalink:"/bpd-reference/docs/tags/normal-distributions"},{label:"standard units",permalink:"/bpd-reference/docs/tags/standard-units"}],version:"current",sidebarPosition:9,frontMatter:{sidebar_position:9,sidebar_label:"The Standard Normal Distribution",title:"The Standard Normal Distribution",tags:["normal distributions","standard units"]},sidebar:"statsSidebar",previous:{title:"Standard Units, Correlation, Regression",permalink:"/bpd-reference/docs/statistical-inference/standard_units"},next:{title:"The Central Limit Theorem",permalink:"/bpd-reference/docs/statistical-inference/central_limit_theorem"}},o={},l=[{value:"Concept",id:"concept",level:2},{value:"Inflection Points Visualized",id:"inflection-points-visualized",level:4},{value:"Finding Areas Under the Standard Normal Curve",id:"finding-areas-under-the-standard-normal-curve",level:2},{value:"Find the area under the standard normal curve from -\u221e to <em>z</em>.",id:"find-the-area-under-the-standard-normal-curve-from---to-z",level:4},{value:"Find the area under the standard normal curve from <em>z_1</em> to <em>z_2</em>.",id:"find-the-area-under-the-standard-normal-curve-from-z_1-to-z_2",level:4},{value:"Examples in Python:",id:"examples-in-python",level:3}];function c(e){const n={admonition:"admonition",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",hr:"hr",img:"img",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"concept",children:"Concept"}),"\n",(0,r.jsx)(n.admonition,{title:"Key Idea",type:"tip",children:(0,r.jsxs)(n.p,{children:["The standard normal distribution is a normal distribution with mean 0, standard deviation 1, and\ninflection points at \xb11. The shape of the the standard normal distribution is called the\n",(0,r.jsx)(n.strong,{children:"standard normal curve"})," or ",(0,r.jsx)(n.strong,{children:"bell curve"}),"."]})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{alt:"Curve",src:t(4807).A+"",width:"835",height:"489"})}),"\n",(0,r.jsx)(n.p,{children:"This is what the standard normal distribution curve looks like. Don't worry about the formula\nat the top."}),"\n",(0,r.jsx)(n.admonition,{type:"note",children:(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"The area under the standard normal curve is always equal to 1."}),"\n",(0,r.jsxs)(n.li,{children:["The area between any values ",(0,r.jsx)(n.em,{children:"a"})," and ",(0,r.jsx)(n.em,{children:"b"})," is the ",(0,r.jsx)(n.strong,{children:"proportion of values"})," between ",(0,r.jsx)(n.em,{children:"a"})," and ",(0,r.jsx)(n.em,{children:"b"}),"."]}),"\n",(0,r.jsxs)(n.li,{children:["The x-axis in a plot of the standard normal distribution is in ",(0,r.jsx)(n.strong,{children:"standard units"}),"."]}),"\n"]})}),"\n",(0,r.jsxs)(n.admonition,{title:"Terminology",type:"info",children:[(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Cumulative Density Function (CDF)"}),": a function that takes in a value ",(0,r.jsx)(n.em,{children:"z"})," and returns the proportion of values in the distribution that are less than or equal to ",(0,r.jsx)(n.em,{children:"z"}),"."]}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["Also known as the ",(0,r.jsx)(n.strong,{children:"area under the curve"})," to the left of ",(0,r.jsx)(n.em,{children:"z"}),"."]}),"\n"]}),(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Inflection Point"}),': where a curve goes from "opening down" \ud83d\ude41 to "opening up" \ud83d\ude42.']}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"The standard normal curve has inflections points at 1 and -1."}),"\n"]}),(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"68\u201395\u201399.7 rule"}),": states that 68% of the data under the standard normal distribution falls within 1 standard deviation above and below the mean,\n95% within 2 standard deviations, and 99.7% within 3 standard deviations."]})]}),"\n",(0,r.jsx)(n.h4,{id:"inflection-points-visualized",children:"Inflection Points Visualized"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{alt:"Curve",src:t(9715).A+"",width:"835",height:"452"})}),"\n",(0,r.jsx)(n.p,{children:"As you can see, the inflection points on a bell curve occur at 1 and -1."}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"finding-areas-under-the-standard-normal-curve",children:"Finding Areas Under the Standard Normal Curve"}),"\n",(0,r.jsxs)(n.h4,{id:"find-the-area-under-the-standard-normal-curve-from---to-z",children:["Find the area under the standard normal curve from -\u221e to ",(0,r.jsx)(n.em,{children:"z"}),"."]}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"scipy.stats.norm.cdf(z)"})}),"\n",(0,r.jsxs)(n.h4,{id:"find-the-area-under-the-standard-normal-curve-from-z_1-to-z_2",children:["Find the area under the standard normal curve from ",(0,r.jsx)(n.em,{children:"z_1"})," to ",(0,r.jsx)(n.em,{children:"z_2"}),"."]}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"scipy.stats.norm.cdf(z_2) - scipy.stats.norm.cdf(z_1)"})}),"\n",(0,r.jsx)(n.h3,{id:"examples-in-python",children:"Examples in Python:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{children:'print("Area from -inf to -1:", scipy.stats.norm.cdf(-1))\n'})}),"\n",(0,r.jsx)(n.p,{children:"Area from -inf to -1: 0.15865525393145707"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"This means that 15.865% of the data in a standard normal curve\nfalls to the left of 1 standard deviation below the mean."})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{children:'print("Area from -inf to 0:", scipy.stats.norm.cdf(0))\n'})}),"\n",(0,r.jsx)(n.p,{children:"Area from -inf to 0: 0.5"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"This means that 50% of the data in a standard normal curve\nfalls to the left of the mean."})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{children:'print("Area from -1 to 1:", scipy.stats.norm.cdf(1) - scipy.stats.norm.cdf(-1))\n'})}),"\n",(0,r.jsx)(n.p,{children:"Area from -1 to 1: 0.6826894921370859"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"This means that 68.27% of the data in a standard normal curve\nfalls between 1 standard deviation above and below the mean, as stated\nin the 68-95-99.7 rule."})})]})}function h(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},8597:(e,n,t)=>{t.d(n,{A:()=>i});t(6540);var r=t(4848);const i=e=>{let{data:n}=e,t=[],i=[],a="",s=[];if(n){const e=JSON.parse(n);t=e.columns||[],i=e.data||[],a=e.indexName||"Index",s=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:a}),t.map(((e,n)=>(0,r.jsx)("th",{children:e},n)))]})}),(0,r.jsx)("tbody",{children:i.map(((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:s[n]}),e.map(((e,n)=>{return(0,r.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},n);var t}))]},n)))})]})})}},5158:(e,n,t)=>{t.d(n,{A:()=>a});var r=t(6540),i=t(4848);const a=function(e){let{src:n,sourceLink:t,aspectRatio:a=16/9}=e;const[s,d]=(0,r.useState)(0),[o,l]=(0,r.useState)(0),c=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const e=()=>{if(c.current){const e=c.current.offsetWidth;l(e/a)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[a]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:c,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,i.jsx)("iframe",{src:n,style:{width:"100%",height:`${o}px`,border:"0",allowFullScreen:!0}},s)}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,i.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,i.jsx)("button",{onClick:()=>{d((e=>e+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#45a049",onMouseOut:e=>e.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},4807:(e,n,t)=>{t.d(n,{A:()=>r});const r=t.p+"assets/images/bell-curve-c4a482525c2e17750bb95647297d25f3.png"},9715:(e,n,t)=>{t.d(n,{A:()=>r});const r=t.p+"assets/images/inflection-points-6b128ab39b34eba0a4180b9238445c5f.png"},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>d});var r=t(6540);const i={},a=r.createContext(i);function s(e){const n=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),r.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9a265863.c79182d8.js b/assets/js/9a265863.c79182d8.js deleted file mode 100644 index b50b5a32..00000000 --- a/assets/js/9a265863.c79182d8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[1779],{2878:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>s,default:()=>h,frontMatter:()=>a,metadata:()=>d,toc:()=>l});var r=t(4848),i=t(8453);t(8597),t(5158);const a={sidebar_position:9,sidebar_label:"The Standard Normal Distribution",title:"The Standard Normal Distribution",tags:["normal distributions","standard units"]},s=void 0,d={id:"statistical-inference/standard_normal_distribution",title:"The Standard Normal Distribution",description:"Concept",source:"@site/docs/statistical-inference/standard_normal_distribution.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/standard_normal_distribution",permalink:"/bpd-reference/docs/statistical-inference/standard_normal_distribution",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/standard_normal_distribution.md",tags:[{label:"normal distributions",permalink:"/bpd-reference/docs/tags/normal-distributions"},{label:"standard units",permalink:"/bpd-reference/docs/tags/standard-units"}],version:"current",sidebarPosition:9,frontMatter:{sidebar_position:9,sidebar_label:"The Standard Normal Distribution",title:"The Standard Normal Distribution",tags:["normal distributions","standard units"]},sidebar:"statsSidebar",previous:{title:"Standard Units, Correlation, Regression",permalink:"/bpd-reference/docs/statistical-inference/standard_units"},next:{title:"The Central Limit Theorem",permalink:"/bpd-reference/docs/statistical-inference/central_limit_theorem"}},o={},l=[{value:"Concept",id:"concept",level:2},{value:"Inflection Points Visualized",id:"inflection-points-visualized",level:4},{value:"Finding Areas Under the Standard Normal Curve",id:"finding-areas-under-the-standard-normal-curve",level:2},{value:"Find the area under the standard normal curve from -\u221e to <em>z</em>.",id:"find-the-area-under-the-standard-normal-curve-from---to-z",level:4},{value:"Find the area under the standard normal curve from <em>z_1</em> to <em>z_2</em>.",id:"find-the-area-under-the-standard-normal-curve-from-z_1-to-z_2",level:4},{value:"Examples in Python:",id:"examples-in-python",level:3}];function c(e){const n={admonition:"admonition",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",hr:"hr",img:"img",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"concept",children:"Concept"}),"\n",(0,r.jsx)(n.admonition,{title:"Key Idea",type:"tip",children:(0,r.jsxs)(n.p,{children:["The standard normal distribution is a normal distribution with mean 0, standard deviation 1, and\r\ninflection points at \xb11. The shape of the the standard normal distribution is called the\r\n",(0,r.jsx)(n.strong,{children:"standard normal curve"})," or ",(0,r.jsx)(n.strong,{children:"bell curve"}),"."]})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{alt:"Curve",src:t(9391).A+"",width:"835",height:"489"})}),"\n",(0,r.jsx)(n.p,{children:"This is what the standard normal distribution curve looks like. Don't worry about the formula\r\nat the top."}),"\n",(0,r.jsx)(n.admonition,{type:"note",children:(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"The area under the standard normal curve is always equal to 1."}),"\n",(0,r.jsxs)(n.li,{children:["The area between any values ",(0,r.jsx)(n.em,{children:"a"})," and ",(0,r.jsx)(n.em,{children:"b"})," is the ",(0,r.jsx)(n.strong,{children:"proportion of values"})," between ",(0,r.jsx)(n.em,{children:"a"})," and ",(0,r.jsx)(n.em,{children:"b"}),"."]}),"\n",(0,r.jsxs)(n.li,{children:["The x-axis in a plot of the standard normal distribution is in ",(0,r.jsx)(n.strong,{children:"standard units"}),"."]}),"\n"]})}),"\n",(0,r.jsxs)(n.admonition,{title:"Terminology",type:"info",children:[(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Cumulative Density Function (CDF)"}),": a function that takes in a value ",(0,r.jsx)(n.em,{children:"z"})," and returns the proportion of values in the distribution that are less than or equal to ",(0,r.jsx)(n.em,{children:"z"}),"."]}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["Also known as the ",(0,r.jsx)(n.strong,{children:"area under the curve"})," to the left of ",(0,r.jsx)(n.em,{children:"z"}),"."]}),"\n"]}),(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Inflection Point"}),': where a curve goes from "opening down" \ud83d\ude41 to "opening up" \ud83d\ude42.']}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"The standard normal curve has inflections points at 1 and -1."}),"\n"]}),(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"68\u201395\u201399.7 rule"}),": states that 68% of the data under the standard normal distribution falls within 1 standard deviation above and below the mean,\r\n95% within 2 standard deviations, and 99.7% within 3 standard deviations."]})]}),"\n",(0,r.jsx)(n.h4,{id:"inflection-points-visualized",children:"Inflection Points Visualized"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{alt:"Curve",src:t(7547).A+"",width:"835",height:"452"})}),"\n",(0,r.jsx)(n.p,{children:"As you can see, the inflection points on a bell curve occur at 1 and -1."}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"finding-areas-under-the-standard-normal-curve",children:"Finding Areas Under the Standard Normal Curve"}),"\n",(0,r.jsxs)(n.h4,{id:"find-the-area-under-the-standard-normal-curve-from---to-z",children:["Find the area under the standard normal curve from -\u221e to ",(0,r.jsx)(n.em,{children:"z"}),"."]}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"scipy.stats.norm.cdf(z)"})}),"\n",(0,r.jsxs)(n.h4,{id:"find-the-area-under-the-standard-normal-curve-from-z_1-to-z_2",children:["Find the area under the standard normal curve from ",(0,r.jsx)(n.em,{children:"z_1"})," to ",(0,r.jsx)(n.em,{children:"z_2"}),"."]}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"scipy.stats.norm.cdf(z_2) - scipy.stats.norm.cdf(z_1)"})}),"\n",(0,r.jsx)(n.h3,{id:"examples-in-python",children:"Examples in Python:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{children:'print("Area from -inf to -1:", scipy.stats.norm.cdf(-1))\n'})}),"\n",(0,r.jsx)(n.p,{children:"Area from -inf to -1: 0.15865525393145707"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"This means that 15.865% of the data in a standard normal curve\r\nfalls to the left of 1 standard deviation below the mean."})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{children:'print("Area from -inf to 0:", scipy.stats.norm.cdf(0))\n'})}),"\n",(0,r.jsx)(n.p,{children:"Area from -inf to 0: 0.5"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"This means that 50% of the data in a standard normal curve\r\nfalls to the left of the mean."})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{children:'print("Area from -1 to 1:", scipy.stats.norm.cdf(1) - scipy.stats.norm.cdf(-1))\n'})}),"\n",(0,r.jsx)(n.p,{children:"Area from -1 to 1: 0.6826894921370859"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"This means that 68.27% of the data in a standard normal curve\r\nfalls between 1 standard deviation above and below the mean, as stated\r\nin the 68-95-99.7 rule."})})]})}function h(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},8597:(e,n,t)=>{t.d(n,{A:()=>i});t(6540);var r=t(4848);const i=e=>{let{data:n}=e,t=[],i=[],a="",s=[];if(n){const e=JSON.parse(n);t=e.columns||[],i=e.data||[],a=e.indexName||"Index",s=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:a}),t.map(((e,n)=>(0,r.jsx)("th",{children:e},n)))]})}),(0,r.jsx)("tbody",{children:i.map(((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:s[n]}),e.map(((e,n)=>{return(0,r.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},n);var t}))]},n)))})]})})}},5158:(e,n,t)=>{t.d(n,{A:()=>a});var r=t(6540),i=t(4848);const a=function(e){let{src:n,sourceLink:t,aspectRatio:a=16/9}=e;const[s,d]=(0,r.useState)(0),[o,l]=(0,r.useState)(0),c=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const e=()=>{if(c.current){const e=c.current.offsetWidth;l(e/a)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[a]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:c,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,i.jsx)("iframe",{src:n,style:{width:"100%",height:`${o}px`,border:"0",allowFullScreen:!0}},s)}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,i.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,i.jsx)("button",{onClick:()=>{d((e=>e+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#45a049",onMouseOut:e=>e.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},9391:(e,n,t)=>{t.d(n,{A:()=>r});const r=t.p+"assets/images/bell-curve-c4a482525c2e17750bb95647297d25f3.png"},7547:(e,n,t)=>{t.d(n,{A:()=>r});const r=t.p+"assets/images/inflection-points-6b128ab39b34eba0a4180b9238445c5f.png"},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>d});var r=t(6540);const i={},a=r.createContext(i);function s(e){const n=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),r.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9ac7dbcc.29890201.js b/assets/js/9ac7dbcc.29890201.js deleted file mode 100644 index e468347f..00000000 --- a/assets/js/9ac7dbcc.29890201.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[719],{7574:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>a,metadata:()=>c,toc:()=>l});var t=n(4848),r=n(8453),i=(n(8597),n(8205));const a={sidebar_position:4},o=void 0,c={id:"documentation/series-methods/ser.sum()",title:"ser.sum()",description:"ser.sum()",source:"@site/docs/documentation/series-methods/ser.sum().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.sum()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.sum()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.sum().md",tags:[],version:"current",sidebarPosition:4,frontMatter:{sidebar_position:4},sidebar:"docsSidebar",previous:{title:"ser.min()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.min()"},next:{title:"ser.mean()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.mean()"}},d={},l=[];function m(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.sum()"}),"\n",(0,t.jsx)("div",{className:"base",children:(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Returns the sum of the values in the Series."})})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,t.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser.sum()\n"})}),"\n",(0,t.jsx)(s.p,{children:"172.75"})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],i="",a=[];if(s){const e=JSON.parse(s);n=e.columns||[],r=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:i}),n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:a[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],i="",a="";if(s)try{const e=JSON.parse(s);i=e.name||"",a=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>o});var t=n(6540);const r={},i=t.createContext(r);function a(e){const s=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),t.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9ac7dbcc.77c0c128.js b/assets/js/9ac7dbcc.77c0c128.js new file mode 100644 index 00000000..232e9f24 --- /dev/null +++ b/assets/js/9ac7dbcc.77c0c128.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[719],{7574:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>a,metadata:()=>c,toc:()=>l});var t=n(4848),r=n(8453),i=(n(8597),n(8205));const a={sidebar_position:4},o=void 0,c={id:"documentation/series-methods/ser.sum()",title:"ser.sum()",description:"ser.sum()",source:"@site/docs/documentation/series-methods/ser.sum().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.sum()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.sum()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.sum().md",tags:[],version:"current",sidebarPosition:4,frontMatter:{sidebar_position:4},sidebar:"docsSidebar",previous:{title:"ser.min()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.min()"},next:{title:"ser.mean()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.mean()"}},d={},l=[];function m(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.sum()"}),"\n",(0,t.jsx)("div",{className:"base",children:(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Returns the sum of the values in the Series."})})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,t.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser.sum()\n"})}),"\n",(0,t.jsx)(s.p,{children:"172.75"})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],i="",a=[];if(s){const e=JSON.parse(s);n=e.columns||[],r=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:i}),n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:a[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],i="",a="";if(s)try{const e=JSON.parse(s);i=e.name||"",a=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>o});var t=n(6540);const r={},i=t.createContext(r);function a(e){const s=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),t.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9e1896f0.53464e90.js b/assets/js/9e1896f0.53464e90.js new file mode 100644 index 00000000..f8084900 --- /dev/null +++ b/assets/js/9e1896f0.53464e90.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2441],{1841:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>d,default:()=>u,frontMatter:()=>i,metadata:()=>o,toc:()=>l});var s=t(4848),a=t(8453),r=t(8597);t(8205);const i={sidebar_position:5},d=void 0,o={id:"documentation/building-organizing/df.set_index()",title:"df.set_index()",description:"df.setindex(columnname)",source:"@site/docs/documentation/building-organizing/df.set_index().md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/df.set_index()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.set_index()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/df.set_index().md",tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5},sidebar:"docsSidebar",previous:{title:"df.drop()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.drop()"},next:{title:"df.reset_index()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.reset_index()"}},c={},l=[];function m(e){const n={code:"code",hr:"hr",pre:"pre",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"df.set_index(column_name)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:"Moves a column to the index."})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["column_name : ",(0,s.jsx)("em",{children:"string"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Column name to make as the index."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"df_with_idx - A new DataFrame with the column set as the index."}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"pets = pets.set_index('ID')\npets\n"})}),"\n",(0,s.jsx)(r.A,{data:'{"columns":["Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":["dog_001","cat_001","cat_002","dog_002","dog_003","ham_001","ham_002","cat_003"],"data":[["dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["hamster","black",1.0,3.0,false,"No, thank you!"],["hamster","golden",0.25,0.2,false,"No, thank you!"],["cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function u(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},8597:(e,n,t)=>{t.d(n,{A:()=>a});t(6540);var s=t(4848);const a=e=>{let{data:n}=e,t=[],a=[],r="",i=[];if(n){const e=JSON.parse(n);t=e.columns||[],a=e.data||[],r=e.indexName||"Index",i=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:r}),t.map(((e,n)=>(0,s.jsx)("th",{children:e},n)))]})}),(0,s.jsx)("tbody",{children:a.map(((e,n)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:i[n]}),e.map(((e,n)=>{return(0,s.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},n);var t}))]},n)))})]})})}},8205:(e,n,t)=>{t.d(n,{A:()=>a});t(6540);var s=t(4848);const a=e=>{let{data:n}=e,t=[],a=[],r="",i="";if(n)try{const e=JSON.parse(n);r=e.name||"",i=e.dtype||"Unknown type",t=e.index||[],a=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const d=a.map((e=>JSON.stringify(e)));return(0,s.jsxs)("div",{className:"series-container",children:[(0,s.jsx)("ul",{className:"series-list",children:d.map(((e,n)=>(0,s.jsxs)("li",{className:"series-item",children:[(0,s.jsx)("span",{className:"series-index",children:t[n]}),(0,s.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,s.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",i]})]})}},8453:(e,n,t)=>{t.d(n,{R:()=>i,x:()=>d});var s=t(6540);const a={},r=s.createContext(a);function i(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9e1896f0.73dd9b87.js b/assets/js/9e1896f0.73dd9b87.js deleted file mode 100644 index 49d2183b..00000000 --- a/assets/js/9e1896f0.73dd9b87.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2441],{1841:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>d,default:()=>u,frontMatter:()=>i,metadata:()=>o,toc:()=>l});var s=t(4848),a=t(8453),r=t(8597);t(8205);const i={sidebar_position:5},d=void 0,o={id:"documentation/building-organizing/df.set_index()",title:"df.set_index()",description:"df.setindex(columnname)",source:"@site/docs/documentation/building-organizing/df.set_index().md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/df.set_index()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.set_index()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/df.set_index().md",tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5},sidebar:"docsSidebar",previous:{title:"df.drop()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.drop()"},next:{title:"df.reset_index()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.reset_index()"}},c={},l=[];function m(e){const n={code:"code",hr:"hr",pre:"pre",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"df.set_index(column_name)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:"Moves a column to the index."})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["column_name : ",(0,s.jsx)("em",{children:"string"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Column name to make as the index."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"df_with_idx - A new DataFrame with the column set as the index."}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"pets = pets.set_index('ID')\r\npets\n"})}),"\n",(0,s.jsx)(r.A,{data:'{"columns":["Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":["dog_001","cat_001","cat_002","dog_002","dog_003","ham_001","ham_002","cat_003"],"data":[["dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["hamster","black",1.0,3.0,false,"No, thank you!"],["hamster","golden",0.25,0.2,false,"No, thank you!"],["cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function u(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},8597:(e,n,t)=>{t.d(n,{A:()=>a});t(6540);var s=t(4848);const a=e=>{let{data:n}=e,t=[],a=[],r="",i=[];if(n){const e=JSON.parse(n);t=e.columns||[],a=e.data||[],r=e.indexName||"Index",i=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:r}),t.map(((e,n)=>(0,s.jsx)("th",{children:e},n)))]})}),(0,s.jsx)("tbody",{children:a.map(((e,n)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:i[n]}),e.map(((e,n)=>{return(0,s.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},n);var t}))]},n)))})]})})}},8205:(e,n,t)=>{t.d(n,{A:()=>a});t(6540);var s=t(4848);const a=e=>{let{data:n}=e,t=[],a=[],r="",i="";if(n)try{const e=JSON.parse(n);r=e.name||"",i=e.dtype||"Unknown type",t=e.index||[],a=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const d=a.map((e=>JSON.stringify(e)));return(0,s.jsxs)("div",{className:"series-container",children:[(0,s.jsx)("ul",{className:"series-list",children:d.map(((e,n)=>(0,s.jsxs)("li",{className:"series-item",children:[(0,s.jsx)("span",{className:"series-index",children:t[n]}),(0,s.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,s.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",i]})]})}},8453:(e,n,t)=>{t.d(n,{R:()=>i,x:()=>d});var s=t(6540);const a={},r=s.createContext(a);function i(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9f1843d8.235e28da.js b/assets/js/9f1843d8.235e28da.js new file mode 100644 index 00000000..f0215a15 --- /dev/null +++ b/assets/js/9f1843d8.235e28da.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[9894],{6171:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>l,default:()=>p,frontMatter:()=>o,metadata:()=>c,toc:()=>h});var s=n(4848),i=n(8453),a=n(8597),r=n(5158);const o={sidebar_position:8,sidebar_label:"Permutation Test",title:"Permutation Test",tags:["querying","functions","for-loop","histogram"]},l=void 0,c={id:"statistical-inference/permutation_test",title:"Permutation Test",description:"Concept",source:"@site/docs/statistical-inference/permutation_test.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/permutation_test",permalink:"/bpd-reference/docs/statistical-inference/permutation_test",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/permutation_test.md",tags:[{label:"querying",permalink:"/bpd-reference/docs/tags/querying"},{label:"functions",permalink:"/bpd-reference/docs/tags/functions"},{label:"for-loop",permalink:"/bpd-reference/docs/tags/for-loop"},{label:"histogram",permalink:"/bpd-reference/docs/tags/histogram"}],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8,sidebar_label:"Permutation Test",title:"Permutation Test",tags:["querying","functions","for-loop","histogram"]},sidebar:"statsSidebar",previous:{title:"Boostrapping and Confidence Intervals",permalink:"/bpd-reference/docs/statistical-inference/bootstrapping"},next:{title:"Standard Units, Correlation, Regression",permalink:"/bpd-reference/docs/statistical-inference/standard_units"}},d={},h=[{value:"Concept",id:"concept",level:2},{value:"Code Example (Absolute Difference)",id:"code-example-absolute-difference",level:2},{value:"1. State the question/hypothesis",id:"1-state-the-questionhypothesis",level:3},{value:"2. Query the DataFrame",id:"2-query-the-dataframe",level:3},{value:"3. Create a function to calculate test statistic",id:"3-create-a-function-to-calculate-test-statistic",level:3},{value:"4. Simulate the permutation test",id:"4-simulate-the-permutation-test",level:3},{value:"5. Conclusion",id:"5-conclusion",level:3},{value:"6. Extra",id:"6-extra",level:3}];function u(e){const t={a:"a",admonition:"admonition",annotation:"annotation",code:"code",em:"em",h2:"h2",h3:"h3",hr:"hr",img:"img",li:"li",math:"math",mo:"mo",mrow:"mrow",ol:"ol",p:"p",pre:"pre",semantics:"semantics",span:"span",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h2,{id:"concept",children:"Concept"}),"\n",(0,s.jsx)(t.admonition,{title:"Key Idea",type:"tip",children:(0,s.jsx)(t.p,{children:"We use a permutation test to test whether two samples are drawn from the same population."})}),"\n",(0,s.jsxs)(t.admonition,{title:"Terminology",type:"info",children:[(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"Permutation"}),": A permutation of a sequence is a rearrangement of the elements in that sequence."]}),(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:"Example: 'BAC' and 'CAB' are both permutations of the string 'ABC'."}),"\n",(0,s.jsx)(t.li,{children:"We create permutations by shuffling."}),"\n"]}),(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"Permutation tests:"})," A permutation test is a type of A/B test (and a type of hypothesis test). It tests whether two samples come from the same population distribution. To conduct a permutation test:"]}),(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsx)(t.li,{children:"Shuffle the group labels (i.e. the Trues and Falses) to generate two new samples under the null."}),"\n",(0,s.jsx)(t.li,{children:"Compute the test statistic (i.e. the difference in group means)."}),"\n",(0,s.jsx)(t.li,{children:"Repeat steps 1 and 2 to generate an empirical distribution of the test statistics (i.e. the difference in group means)."}),"\n",(0,s.jsx)(t.li,{children:"See where the observed statistic lies in the empirical distribution. If, in our simulations, we rarely saw a difference in group means as extreme as the observed difference in group means, we have evidence to reject the null."}),"\n"]})]}),"\n",(0,s.jsx)(t.admonition,{type:"note",children:(0,s.jsx)(t.p,{children:"While shuffling, the size of the two new samples should be the same as the observed samples."})}),"\n",(0,s.jsxs)(t.p,{children:["The diagram below provides an overview of conducting a permutation test, although it references a different dataset. ",(0,s.jsx)(t.a,{href:"https://www.jwilber.me/permutationtest/",children:"Here"})," is another useful visualization. For additional helpful visual guides, please visit the ",(0,s.jsx)(t.a,{href:"https://dsc10.com/diagrams/",children:"Diagrams"})," site."]}),"\n",(0,s.jsx)(r.A,{src:"https://docs.google.com/presentation/d/e/2PACX-1vSovXDonR6EmjrT45h4pY1mwmcKFMWVSdgpbKHC5HNTm9sbG7dojvvCDEQCjuk2dk1oA4gmwMogr8ZL/embed?start=true&loop=false&delayms=3000&rm=minimal",sourceLink:"https://docs.google.com/presentation/d/1TTWoQ7FU4tzBGc7EskF6WYccIn1BWQbTSizAiFc2p2o/edit?usp=sharing"}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h2,{id:"code-example-absolute-difference",children:"Code Example (Absolute Difference)"}),"\n",(0,s.jsx)(t.h3,{id:"1-state-the-questionhypothesis",children:"1. State the question/hypothesis"}),"\n",(0,s.jsxs)(t.admonition,{title:"Hypotheses",type:"info",children:[(0,s.jsx)(t.p,{children:"We will test the following pair of hypotheses at the standard p = 0.05 significance level:"}),(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Null Hypothesis:"})," In the population, weights of dogs and cats have the ",(0,s.jsx)(t.strong,{children:"same"})," distribution, and the observed differences in our samples are due to random chance."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Alternative Hypothesis:"})," In the population, dogs and cats have ",(0,s.jsx)(t.strong,{children:"different"})," weights, on average. The observed differences in our samples cannot be explained by random chance alone."]}),"\n"]})]}),"\n",(0,s.jsxs)(t.p,{children:['Since the alternative hypothesis is of the form "A and B are different," the ',(0,s.jsx)(t.strong,{children:"test statistic"})," should measure distance and use an absolute value."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsxs)(t.span,{className:"katex",children:[(0,s.jsx)(t.span,{className:"katex-mathml",children:(0,s.jsx)(t.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,s.jsxs)(t.semantics,{children:[(0,s.jsx)(t.mrow,{children:(0,s.jsx)(t.mo,{children:"\u2234"})}),(0,s.jsx)(t.annotation,{encoding:"application/x-tex",children:"\\therefore"})]})})}),(0,s.jsx)(t.span,{className:"katex-html","aria-hidden":"true",children:(0,s.jsxs)(t.span,{className:"base",children:[(0,s.jsx)(t.span,{className:"strut",style:{height:"0.6922em"}}),(0,s.jsx)(t.span,{className:"mrel amsrm",children:"\u2234"})]})})]})," We use ",(0,s.jsx)(t.strong,{children:"absolute difference in group means"})," as the test statistic."]}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"2-query-the-dataframe",children:"2. Query the DataFrame"}),"\n",(0,s.jsx)(t.p,{children:"Since we want to compare the distributions of only cats and dogs, we need to make sure to only include the relevant pieces of data (e.g., cats and dogs weights)."}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:"# Create a boolean Series that references which rows fulfill either condition.\nquerying_condition = (full_pets.get('Species') == 'dog') | (full_pets.get('Species') == 'cat')\n# Query.\ncats_dogs = full_pets[querying_condition]\n# Display the first 5 rows only.\ncats_dogs.take(np.arange(5)) \n"})}),"\n",(0,s.jsx)(a.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."]]}'}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"3-create-a-function-to-calculate-test-statistic",children:"3. Create a function to calculate test statistic"}),"\n",(0,s.jsx)(t.p,{children:"Since our hypotheses depend on the test statistic, create a function to be able to calculate it during every trial of our permutation test."}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:"def difference_in_means(cats_dogs):\n \"\"\"\n Calculate the absolute difference in the mean weight of dogs and cats.\n ---\n Input:\n cats_dogs: a DataFrame containing the columns 'Species' and 'Weight'.\n ---\n Output:\n The absolute difference in the mean weight of dogs and cats.\n \"\"\"\n means = cats_dogs.groupby('Species').mean()\n return np.abs((means.get('Weight').loc['dog'] - means.get('Weight').loc['cat']))\n"})}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.em,{children:"Note: Although we can simply do this in the for-loop shown in the next step, we can practice good coding habits by separating our code into readable bits!"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"4-simulate-the-permutation-test",children:"4. Simulate the permutation test"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:"n = 500 # Number of simulations.\nstatistics = np.array([]) # Array to keep track of the difference in means for each iteration.\nfor i in np.arange(n): # Run the simulation `n` number of times\n # 1. Shuffle the species.\n shuffled = cats_dogs.assign(Species=np.random.permutation(cats_dogs.get('Species')))\n\n # 2. Compute the test statistic.\n statistic = difference_in_means(shuffled)\n\n # 3. Save the result.\n statistics = np.append(statistics, statistic)\n"})}),"\n",(0,s.jsxs)(t.p,{children:["This code will run the permutation test 500 times, but a different reasonable number can be used instead. It is ",(0,s.jsx)(t.strong,{children:"crucial"})," to keep track of the difference in means each time our for-loop runs so that the number of simulated values can be displayed."]}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"5-conclusion",children:"5. Conclusion"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:'observed = difference_in_means(cats_dogs)\np_value = np.count_nonzero(statistics >= observed) / n\n\nprint("The observed value of the test statistic is:", observed)\nprint("The p-value is:", p_value)\n'})}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"The observed value of the test statistic is: 30.361111111111107"})," ",(0,s.jsx)("br",{}),"\n",(0,s.jsx)(t.strong,{children:"The p-value is: 0.004"})]}),"\n",(0,s.jsx)(t.p,{children:"Using a significance level of 0.05:"}),"\n",(0,s.jsx)(t.admonition,{title:"Conclusion",type:"info",children:(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:"Under the null hypothesis, we rarely see a difference greater than the observed value."}),"\n",(0,s.jsxs)(t.li,{children:["Therefore, we ",(0,s.jsx)(t.strong,{children:"reject"})," the null hypothesis: the evidence implies that the two groups do not come from the same distribution."]}),"\n",(0,s.jsx)(t.li,{children:"Still, we cannot conclude that species causes a different weight because there may be other confounding variables."}),"\n"]})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"6-extra",children:"6. Extra"}),"\n",(0,s.jsx)(t.p,{children:"Let's see how our observed statistic compares to the overall simulated values!"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:"# Create the histogram.\nbpd.DataFrame().assign(statistics=statistics).plot(kind='hist', bins=20, density=True, ec='w')\n# Don't worry about this line - you won't need to know it for this course!\nplt.axvline(x=observed, c='black', linewidth=4, label='population difference in means')\n"})}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{alt:"Distribution",src:n(5771).A+"",width:"576",height:"413"})}),"\n",(0,s.jsxs)(t.p,{children:["From this graph, we can tell that there is barely any data to the ",(0,s.jsx)(t.strong,{children:"right"})," of the black vertical line (our observed statistic), meaning we have a very low p-value!"]})]})}function p(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},8597:(e,t,n)=>{n.d(t,{A:()=>i});n(6540);var s=n(4848);const i=e=>{let{data:t}=e,n=[],i=[],a="",r=[];if(t){const e=JSON.parse(t);n=e.columns||[],i=e.data||[],a=e.indexName||"Index",r=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:a}),n.map(((e,t)=>(0,s.jsx)("th",{children:e},t)))]})}),(0,s.jsx)("tbody",{children:i.map(((e,t)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:r[t]}),e.map(((e,t)=>{return(0,s.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},t);var n}))]},t)))})]})})}},5158:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(6540),i=n(4848);const a=function(e){let{src:t,sourceLink:n,aspectRatio:a=16/9}=e;const[r,o]=(0,s.useState)(0),[l,c]=(0,s.useState)(0),d=(0,s.useRef)(null);return(0,s.useEffect)((()=>{const e=()=>{if(d.current){const e=d.current.offsetWidth;c(e/a)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[a]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:d,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,i.jsx)("iframe",{src:t,style:{width:"100%",height:`${l}px`,border:"0",allowFullScreen:!0}},r)}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,i.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,i.jsx)("button",{onClick:()=>{o((e=>e+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#45a049",onMouseOut:e=>e.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},5771:(e,t,n)=>{n.d(t,{A:()=>s});const s=n.p+"assets/images/permutation-test-fae4df12733e667b05989b96bf08d9a9.png"},8453:(e,t,n)=>{n.d(t,{R:()=>r,x:()=>o});var s=n(6540);const i={},a=s.createContext(i);function r(e){const t=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),s.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9f1843d8.8224833f.js b/assets/js/9f1843d8.8224833f.js deleted file mode 100644 index b6f3fbeb..00000000 --- a/assets/js/9f1843d8.8224833f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[9894],{6171:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>l,default:()=>p,frontMatter:()=>o,metadata:()=>c,toc:()=>h});var s=n(4848),i=n(8453),a=n(8597),r=n(5158);const o={sidebar_position:8,sidebar_label:"Permutation Test",title:"Permutation Test",tags:["querying","functions","for-loop","histogram"]},l=void 0,c={id:"statistical-inference/permutation_test",title:"Permutation Test",description:"Concept",source:"@site/docs/statistical-inference/permutation_test.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/permutation_test",permalink:"/bpd-reference/docs/statistical-inference/permutation_test",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/permutation_test.md",tags:[{label:"querying",permalink:"/bpd-reference/docs/tags/querying"},{label:"functions",permalink:"/bpd-reference/docs/tags/functions"},{label:"for-loop",permalink:"/bpd-reference/docs/tags/for-loop"},{label:"histogram",permalink:"/bpd-reference/docs/tags/histogram"}],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8,sidebar_label:"Permutation Test",title:"Permutation Test",tags:["querying","functions","for-loop","histogram"]},sidebar:"statsSidebar",previous:{title:"Boostrapping and Confidence Intervals",permalink:"/bpd-reference/docs/statistical-inference/bootstrapping"},next:{title:"Standard Units, Correlation, Regression",permalink:"/bpd-reference/docs/statistical-inference/standard_units"}},d={},h=[{value:"Concept",id:"concept",level:2},{value:"Code Example (Absolute Difference)",id:"code-example-absolute-difference",level:2},{value:"1. State the question/hypothesis",id:"1-state-the-questionhypothesis",level:3},{value:"2. Query the DataFrame",id:"2-query-the-dataframe",level:3},{value:"3. Create a function to calculate test statistic",id:"3-create-a-function-to-calculate-test-statistic",level:3},{value:"4. Simulate the permutation test",id:"4-simulate-the-permutation-test",level:3},{value:"5. Conclusion",id:"5-conclusion",level:3},{value:"6. Extra",id:"6-extra",level:3}];function u(e){const t={a:"a",admonition:"admonition",annotation:"annotation",code:"code",em:"em",h2:"h2",h3:"h3",hr:"hr",img:"img",li:"li",math:"math",mo:"mo",mrow:"mrow",ol:"ol",p:"p",pre:"pre",semantics:"semantics",span:"span",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h2,{id:"concept",children:"Concept"}),"\n",(0,s.jsx)(t.admonition,{title:"Key Idea",type:"tip",children:(0,s.jsx)(t.p,{children:"We use a permutation test to test whether two samples are drawn from the same population."})}),"\n",(0,s.jsxs)(t.admonition,{title:"Terminology",type:"info",children:[(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"Permutation"}),": A permutation of a sequence is a rearrangement of the elements in that sequence."]}),(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:"Example: 'BAC' and 'CAB' are both permutations of the string 'ABC'."}),"\n",(0,s.jsx)(t.li,{children:"We create permutations by shuffling."}),"\n"]}),(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"Permutation tests:"})," A permutation test is a type of A/B test (and a type of hypothesis test). It tests whether two samples come from the same population distribution. To conduct a permutation test:"]}),(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsx)(t.li,{children:"Shuffle the group labels (i.e. the Trues and Falses) to generate two new samples under the null."}),"\n",(0,s.jsx)(t.li,{children:"Compute the test statistic (i.e. the difference in group means)."}),"\n",(0,s.jsx)(t.li,{children:"Repeat steps 1 and 2 to generate an empirical distribution of the test statistics (i.e. the difference in group means)."}),"\n",(0,s.jsx)(t.li,{children:"See where the observed statistic lies in the empirical distribution. If, in our simulations, we rarely saw a difference in group means as extreme as the observed difference in group means, we have evidence to reject the null."}),"\n"]})]}),"\n",(0,s.jsx)(t.admonition,{type:"note",children:(0,s.jsx)(t.p,{children:"While shuffling, the size of the two new samples should be the same as the observed samples."})}),"\n",(0,s.jsxs)(t.p,{children:["The diagram below provides an overview of conducting a permutation test, although it references a different dataset. ",(0,s.jsx)(t.a,{href:"https://www.jwilber.me/permutationtest/",children:"Here"})," is another useful visualization. For additional helpful visual guides, please visit the ",(0,s.jsx)(t.a,{href:"https://dsc10.com/diagrams/",children:"Diagrams"})," site."]}),"\n",(0,s.jsx)(r.A,{src:"https://docs.google.com/presentation/d/e/2PACX-1vSovXDonR6EmjrT45h4pY1mwmcKFMWVSdgpbKHC5HNTm9sbG7dojvvCDEQCjuk2dk1oA4gmwMogr8ZL/embed?start=true&loop=false&delayms=3000&rm=minimal",sourceLink:"https://docs.google.com/presentation/d/1TTWoQ7FU4tzBGc7EskF6WYccIn1BWQbTSizAiFc2p2o/edit?usp=sharing"}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h2,{id:"code-example-absolute-difference",children:"Code Example (Absolute Difference)"}),"\n",(0,s.jsx)(t.h3,{id:"1-state-the-questionhypothesis",children:"1. State the question/hypothesis"}),"\n",(0,s.jsxs)(t.admonition,{title:"Hypotheses",type:"info",children:[(0,s.jsx)(t.p,{children:"We will test the following pair of hypotheses at the standard p = 0.05 significance level:"}),(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Null Hypothesis:"})," In the population, weights of dogs and cats have the ",(0,s.jsx)(t.strong,{children:"same"})," distribution, and the observed differences in our samples are due to random chance."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Alternative Hypothesis:"})," In the population, dogs and cats have ",(0,s.jsx)(t.strong,{children:"different"})," weights, on average. The observed differences in our samples cannot be explained by random chance alone."]}),"\n"]})]}),"\n",(0,s.jsxs)(t.p,{children:['Since the alternative hypothesis is of the form "A and B are different," the ',(0,s.jsx)(t.strong,{children:"test statistic"})," should measure distance and use an absolute value."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsxs)(t.span,{className:"katex",children:[(0,s.jsx)(t.span,{className:"katex-mathml",children:(0,s.jsx)(t.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,s.jsxs)(t.semantics,{children:[(0,s.jsx)(t.mrow,{children:(0,s.jsx)(t.mo,{children:"\u2234"})}),(0,s.jsx)(t.annotation,{encoding:"application/x-tex",children:"\\therefore"})]})})}),(0,s.jsx)(t.span,{className:"katex-html","aria-hidden":"true",children:(0,s.jsxs)(t.span,{className:"base",children:[(0,s.jsx)(t.span,{className:"strut",style:{height:"0.6922em"}}),(0,s.jsx)(t.span,{className:"mrel amsrm",children:"\u2234"})]})})]})," We use ",(0,s.jsx)(t.strong,{children:"absolute difference in group means"})," as the test statistic."]}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"2-query-the-dataframe",children:"2. Query the DataFrame"}),"\n",(0,s.jsx)(t.p,{children:"Since we want to compare the distributions of only cats and dogs, we need to make sure to only include the relevant pieces of data (e.g., cats and dogs weights)."}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:"# Create a boolean Series that references which rows fulfill either condition.\r\nquerying_condition = (full_pets.get('Species') == 'dog') | (full_pets.get('Species') == 'cat')\r\n# Query.\r\ncats_dogs = full_pets[querying_condition]\r\n# Display the first 5 rows only.\r\ncats_dogs.take(np.arange(5)) \n"})}),"\n",(0,s.jsx)(a.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."]]}'}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"3-create-a-function-to-calculate-test-statistic",children:"3. Create a function to calculate test statistic"}),"\n",(0,s.jsx)(t.p,{children:"Since our hypotheses depend on the test statistic, create a function to be able to calculate it during every trial of our permutation test."}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:"def difference_in_means(cats_dogs):\r\n \"\"\"\r\n Calculate the absolute difference in the mean weight of dogs and cats.\r\n ---\r\n Input:\r\n cats_dogs: a DataFrame containing the columns 'Species' and 'Weight'.\r\n ---\r\n Output:\r\n The absolute difference in the mean weight of dogs and cats.\r\n \"\"\"\r\n means = cats_dogs.groupby('Species').mean()\r\n return np.abs((means.get('Weight').loc['dog'] - means.get('Weight').loc['cat']))\n"})}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.em,{children:"Note: Although we can simply do this in the for-loop shown in the next step, we can practice good coding habits by separating our code into readable bits!"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"4-simulate-the-permutation-test",children:"4. Simulate the permutation test"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:"n = 500 # Number of simulations.\r\nstatistics = np.array([]) # Array to keep track of the difference in means for each iteration.\r\nfor i in np.arange(n): # Run the simulation `n` number of times\r\n # 1. Shuffle the species.\r\n shuffled = cats_dogs.assign(Species=np.random.permutation(cats_dogs.get('Species')))\r\n\r\n # 2. Compute the test statistic.\r\n statistic = difference_in_means(shuffled)\r\n\r\n # 3. Save the result.\r\n statistics = np.append(statistics, statistic)\n"})}),"\n",(0,s.jsxs)(t.p,{children:["This code will run the permutation test 500 times, but a different reasonable number can be used instead. It is ",(0,s.jsx)(t.strong,{children:"crucial"})," to keep track of the difference in means each time our for-loop runs so that the number of simulated values can be displayed."]}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"5-conclusion",children:"5. Conclusion"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:'observed = difference_in_means(cats_dogs)\r\np_value = np.count_nonzero(statistics >= observed) / n\r\n\r\nprint("The observed value of the test statistic is:", observed)\r\nprint("The p-value is:", p_value)\n'})}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"The observed value of the test statistic is: 30.361111111111107"})," ",(0,s.jsx)("br",{}),"\r\n",(0,s.jsx)(t.strong,{children:"The p-value is: 0.004"})]}),"\n",(0,s.jsx)(t.p,{children:"Using a significance level of 0.05:"}),"\n",(0,s.jsx)(t.admonition,{title:"Conclusion",type:"info",children:(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:"Under the null hypothesis, we rarely see a difference greater than the observed value."}),"\n",(0,s.jsxs)(t.li,{children:["Therefore, we ",(0,s.jsx)(t.strong,{children:"reject"})," the null hypothesis: the evidence implies that the two groups do not come from the same distribution."]}),"\n",(0,s.jsx)(t.li,{children:"Still, we cannot conclude that species causes a different weight because there may be other confounding variables."}),"\n"]})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"6-extra",children:"6. Extra"}),"\n",(0,s.jsx)(t.p,{children:"Let's see how our observed statistic compares to the overall simulated values!"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:"# Create the histogram.\r\nbpd.DataFrame().assign(statistics=statistics).plot(kind='hist', bins=20, density=True, ec='w')\r\n# Don't worry about this line - you won't need to know it for this course!\r\nplt.axvline(x=observed, c='black', linewidth=4, label='population difference in means')\n"})}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{alt:"Distribution",src:n(131).A+"",width:"576",height:"413"})}),"\n",(0,s.jsxs)(t.p,{children:["From this graph, we can tell that there is barely any data to the ",(0,s.jsx)(t.strong,{children:"right"})," of the black vertical line (our observed statistic), meaning we have a very low p-value!"]})]})}function p(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},8597:(e,t,n)=>{n.d(t,{A:()=>i});n(6540);var s=n(4848);const i=e=>{let{data:t}=e,n=[],i=[],a="",r=[];if(t){const e=JSON.parse(t);n=e.columns||[],i=e.data||[],a=e.indexName||"Index",r=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:a}),n.map(((e,t)=>(0,s.jsx)("th",{children:e},t)))]})}),(0,s.jsx)("tbody",{children:i.map(((e,t)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:r[t]}),e.map(((e,t)=>{return(0,s.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},t);var n}))]},t)))})]})})}},5158:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(6540),i=n(4848);const a=function(e){let{src:t,sourceLink:n,aspectRatio:a=16/9}=e;const[r,o]=(0,s.useState)(0),[l,c]=(0,s.useState)(0),d=(0,s.useRef)(null);return(0,s.useEffect)((()=>{const e=()=>{if(d.current){const e=d.current.offsetWidth;c(e/a)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[a]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:d,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,i.jsx)("iframe",{src:t,style:{width:"100%",height:`${l}px`,border:"0",allowFullScreen:!0}},r)}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,i.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,i.jsx)("button",{onClick:()=>{o((e=>e+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#45a049",onMouseOut:e=>e.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},131:(e,t,n)=>{n.d(t,{A:()=>s});const s=n.p+"assets/images/permutation-test-fae4df12733e667b05989b96bf08d9a9.png"},8453:(e,t,n)=>{n.d(t,{R:()=>r,x:()=>o});var s=n(6540);const i={},a=s.createContext(i);function r(e){const t=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),s.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a278cdf6.f2e85f73.js b/assets/js/a278cdf6.6d5ef8b3.js similarity index 59% rename from assets/js/a278cdf6.f2e85f73.js rename to assets/js/a278cdf6.6d5ef8b3.js index daf4e47c..a80dd4e0 100644 --- a/assets/js/a278cdf6.f2e85f73.js +++ b/assets/js/a278cdf6.6d5ef8b3.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[1746],{8242:(e,a,t)=>{t.r(a),t.d(a,{Tag:()=>l,assets:()=>d,contentTitle:()=>i,default:()=>u,frontMatter:()=>o,metadata:()=>c,toc:()=>h});var n=t(4848),s=t(8453),r=t(8597);const o={sidebar_position:1,sidebar_label:"Intro"},i="Statistical Inference",c={id:"statistical-inference/intro",title:"intro",description:"Assumption: Assume that df is a DataFrame, ser is a Series, arr is an array, and we already run import babypandas as bpd and import numpy as np.",source:"@site/docs/statistical-inference/intro.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/intro",permalink:"/bpd-reference/docs/statistical-inference/intro",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/intro.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,sidebar_label:"Intro"},sidebar:"statsSidebar",next:{title:"Sampling",permalink:"/bpd-reference/docs/statistical-inference/random sampling/sampling"}},d={},l=({children:e,color:a})=>{const t={span:"span",...(0,s.R)()};return(0,n.jsx)(t.span,{style:{backgroundColor:a,borderRadius:"4px",color:"#fff",padding:"0.2rem 0.5rem",fontWeight:"bold"},children:e})},h=[];function p(e){const a={a:"a",code:"code",h1:"h1",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.h1,{id:"statistical-inference",children:"Statistical Inference"}),"\n",(0,n.jsxs)(a.p,{children:[(0,n.jsx)(l,{color:"#FF5733",children:"Assumption:"})," Assume that ",(0,n.jsx)(a.code,{children:"df"})," is a DataFrame, ",(0,n.jsx)(a.code,{children:"ser"})," is a Series, ",(0,n.jsx)(a.code,{children:"arr"})," is an array, and we already run ",(0,n.jsx)(a.code,{children:"import babypandas as bpd"})," and ",(0,n.jsx)(a.code,{children:"import numpy as np"}),"."]}),"\n",(0,n.jsx)(a.hr,{}),"\n",(0,n.jsxs)(a.p,{children:["This section provides explanations and code implementations of theories covered in ",(0,n.jsx)(a.a,{href:"https://dsc10.com",children:(0,n.jsx)(a.strong,{children:"DSC 10"})}),". For examples in this section, refer to the ",(0,n.jsx)(a.code,{children:"full_pets"})," DataFrame, which has more data than ",(0,n.jsx)(a.code,{children:"pets"})," DataFrame (which is used in the Documentation section)."]}),"\n",(0,n.jsx)(a.pre,{children:(0,n.jsx)(a.code,{className:"language-python",children:"full_pets\n"})}),"\n",(0,n.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"],["dog_004","dog","black",45.0,6.7,false,"No, thank you!"],["dog_005","dog","white",10.0,7.0,false,"No, thank you!"],["dog_006","dog","golden",35.0,4.0,false,"No, thank you!"],["cat_004","cat","black",10.0,1.2,true,"No, thank you!"],["cat_005","cat","white",15.0,2.5,true,"No, thank you!"],["ham_003","hamster","black",0.5,0.1,false,"No, thank you!"],["dog_007","dog","white",50.0,6.1,false,"No, thank you!"],["ham_004","hamster","golden",0.25,0.2,false,"No, thank you!"],["dog_008","dog","black",40.0,5.0,false,"No, thank you!"],["dog_009","dog","white",30.0,4.8,false,"No, thank you!"],["cat_006","cat","black",3.0,0.5,true,"No, thank you!"]]}'}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsx)(a.a,{target:"_blank","data-noBrokenLinkCheck":!0,href:t(7093).A+"",children:"Download this data"})})]})}function u(e={}){const{wrapper:a}={...(0,s.R)(),...e.components};return a?(0,n.jsx)(a,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},8597:(e,a,t)=>{t.d(a,{A:()=>s});t(6540);var n=t(4848);const s=e=>{let{data:a}=e,t=[],s=[],r="",o=[];if(a){const e=JSON.parse(a);t=e.columns||[],s=e.data||[],r=e.indexName||"Index",o=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:r}),t.map(((e,a)=>(0,n.jsx)("th",{children:e},a)))]})}),(0,n.jsx)("tbody",{children:s.map(((e,a)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:o[a]}),e.map(((e,a)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},a);var t}))]},a)))})]})})}},7093:(e,a,t)=>{t.d(a,{A:()=>n});const n=t.p+"assets/files/full_pets-517ccf7b024b3bc88dca09fa66ea6f10.csv"},8453:(e,a,t)=>{t.d(a,{R:()=>o,x:()=>i});var n=t(6540);const s={},r=n.createContext(s);function o(e){const a=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function i(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(r.Provider,{value:a},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[1746],{8242:(e,t,a)=>{a.r(t),a.d(t,{Tag:()=>l,assets:()=>d,contentTitle:()=>i,default:()=>u,frontMatter:()=>o,metadata:()=>c,toc:()=>h});var n=a(4848),s=a(8453),r=a(8597);const o={sidebar_position:1,sidebar_label:"Intro"},i="Statistical Inference",c={id:"statistical-inference/intro",title:"intro",description:"Assumption: Assume that df is a DataFrame, ser is a Series, arr is an array, and we already run import babypandas as bpd and import numpy as np.",source:"@site/docs/statistical-inference/intro.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/intro",permalink:"/bpd-reference/docs/statistical-inference/intro",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/intro.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,sidebar_label:"Intro"},sidebar:"statsSidebar",next:{title:"Sampling",permalink:"/bpd-reference/docs/statistical-inference/random sampling/sampling"}},d={},l=({children:e,color:t})=>{const a={span:"span",...(0,s.R)()};return(0,n.jsx)(a.span,{style:{backgroundColor:t,borderRadius:"4px",color:"#fff",padding:"0.2rem 0.5rem",fontWeight:"bold"},children:e})},h=[];function p(e){const t={a:"a",code:"code",h1:"h1",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h1,{id:"statistical-inference",children:"Statistical Inference"}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(l,{color:"#FF5733",children:"Assumption:"})," Assume that ",(0,n.jsx)(t.code,{children:"df"})," is a DataFrame, ",(0,n.jsx)(t.code,{children:"ser"})," is a Series, ",(0,n.jsx)(t.code,{children:"arr"})," is an array, and we already run ",(0,n.jsx)(t.code,{children:"import babypandas as bpd"})," and ",(0,n.jsx)(t.code,{children:"import numpy as np"}),"."]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsxs)(t.p,{children:["This section provides explanations and code implementations of theories covered in ",(0,n.jsx)(t.a,{href:"https://dsc10.com",children:(0,n.jsx)(t.strong,{children:"DSC 10"})}),". For examples in this section, refer to the ",(0,n.jsx)(t.code,{children:"full_pets"})," DataFrame, which has more data than ",(0,n.jsx)(t.code,{children:"pets"})," DataFrame (which is used in the Documentation section)."]}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"full_pets\n"})}),"\n",(0,n.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"],["dog_004","dog","black",45.0,6.7,false,"No, thank you!"],["dog_005","dog","white",10.0,7.0,false,"No, thank you!"],["dog_006","dog","golden",35.0,4.0,false,"No, thank you!"],["cat_004","cat","black",10.0,1.2,true,"No, thank you!"],["cat_005","cat","white",15.0,2.5,true,"No, thank you!"],["ham_003","hamster","black",0.5,0.1,false,"No, thank you!"],["dog_007","dog","white",50.0,6.1,false,"No, thank you!"],["ham_004","hamster","golden",0.25,0.2,false,"No, thank you!"],["dog_008","dog","black",40.0,5.0,false,"No, thank you!"],["dog_009","dog","white",30.0,4.8,false,"No, thank you!"],["cat_006","cat","black",3.0,0.5,true,"No, thank you!"]]}'}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.a,{target:"_blank","data-noBrokenLinkCheck":!0,href:a(7093).A+"",children:"Download this data"})})]})}function u(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},8597:(e,t,a)=>{a.d(t,{A:()=>s});a(6540);var n=a(4848);const s=e=>{let{data:t}=e,a=[],s=[],r="",o=[];if(t){const e=JSON.parse(t);a=e.columns||[],s=e.data||[],r=e.indexName||"Index",o=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:r}),a.map(((e,t)=>(0,n.jsx)("th",{children:e},t)))]})}),(0,n.jsx)("tbody",{children:s.map(((e,t)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:o[t]}),e.map(((e,t)=>{return(0,n.jsx)("td",{children:(a=e,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},t);var a}))]},t)))})]})})}},7093:(e,t,a)=>{a.d(t,{A:()=>n});const n=a.p+"assets/files/full_pets-bd4f41996253fb2dfaf6757c68a3446f.csv"},8453:(e,t,a)=>{a.d(t,{R:()=>o,x:()=>i});var n=a(6540);const s={},r=n.createContext(s);function o(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a4805c9a.53481746.js b/assets/js/a4805c9a.53481746.js new file mode 100644 index 00000000..3d813f19 --- /dev/null +++ b/assets/js/a4805c9a.53481746.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7174],{1617:(e,a,n)=>{n.r(a),n.d(a,{assets:()=>i,contentTitle:()=>o,default:()=>m,frontMatter:()=>d,metadata:()=>c,toc:()=>l});var s=n(4848),t=n(8453),r=n(8597);n(8205);const d={sidebar_position:7},o=void 0,c={id:"documentation/accessing-data/df.take()",title:"df.take()",description:"df.take(indices)",source:"@site/docs/documentation/accessing-data/df.take().md",sourceDirName:"documentation/accessing-data",slug:"/documentation/accessing-data/df.take()",permalink:"/bpd-reference/docs/documentation/accessing-data/df.take()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/accessing-data/df.take().md",tags:[],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7},sidebar:"docsSidebar",previous:{title:"df.columns",permalink:"/bpd-reference/docs/documentation/accessing-data/df.columns"},next:{title:"Series Methods",permalink:"/bpd-reference/docs/documentation/series-methods/"}},i={},l=[];function h(e){const a={code:"code",hr:"hr",pre:"pre",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"df.take(indices)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsxs)("strong",{children:["Return the elements in the given ",(0,s.jsx)("em",{children:"positional"})," indices."]})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["indices : ",(0,s.jsx)("em",{children:"array"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"An array of ints indicating which positions to take."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"df - DataFrame with only the indices specified."}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,s.jsx)(a.hr,{}),"\n",(0,s.jsx)(a.pre,{children:(0,s.jsx)(a.code,{className:"language-python",children:"pets\n"})}),"\n",(0,s.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,s.jsx)(a.pre,{children:(0,s.jsx)(a.code,{className:"language-python",children:"# take the top 5 rows of the DataFrame. (indices 0, 1, 2, 3, 4)\npets.take(np.arange(5))\n"})}),"\n",(0,s.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."]]}'}),"\n",(0,s.jsx)(a.pre,{children:(0,s.jsx)(a.code,{className:"language-python",children:"# 0, 2, 4 indices.\npets.take(np.arange(0, 6, 2))\n"})}),"\n",(0,s.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,2,4],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."]]}'})]})}function m(e={}){const{wrapper:a}={...(0,t.R)(),...e.components};return a?(0,s.jsx)(a,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8597:(e,a,n)=>{n.d(a,{A:()=>t});n(6540);var s=n(4848);const t=e=>{let{data:a}=e,n=[],t=[],r="",d=[];if(a){const e=JSON.parse(a);n=e.columns||[],t=e.data||[],r=e.indexName||"Index",d=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:r}),n.map(((e,a)=>(0,s.jsx)("th",{children:e},a)))]})}),(0,s.jsx)("tbody",{children:t.map(((e,a)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:d[a]}),e.map(((e,a)=>{return(0,s.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},a);var n}))]},a)))})]})})}},8205:(e,a,n)=>{n.d(a,{A:()=>t});n(6540);var s=n(4848);const t=e=>{let{data:a}=e,n=[],t=[],r="",d="";if(a)try{const e=JSON.parse(a);r=e.name||"",d=e.dtype||"Unknown type",n=e.index||[],t=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=t.map((e=>JSON.stringify(e)));return(0,s.jsxs)("div",{className:"series-container",children:[(0,s.jsx)("ul",{className:"series-list",children:o.map(((e,a)=>(0,s.jsxs)("li",{className:"series-item",children:[(0,s.jsx)("span",{className:"series-index",children:n[a]}),(0,s.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},a)))}),(0,s.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",d]})]})}},8453:(e,a,n)=>{n.d(a,{R:()=>d,x:()=>o});var s=n(6540);const t={},r=s.createContext(t);function d(e){const a=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function o(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:d(e.components),s.createElement(r.Provider,{value:a},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a4805c9a.bf5ef1fd.js b/assets/js/a4805c9a.bf5ef1fd.js deleted file mode 100644 index abe4a687..00000000 --- a/assets/js/a4805c9a.bf5ef1fd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7174],{1617:(e,a,n)=>{n.r(a),n.d(a,{assets:()=>i,contentTitle:()=>o,default:()=>m,frontMatter:()=>d,metadata:()=>c,toc:()=>l});var s=n(4848),t=n(8453),r=n(8597);n(8205);const d={sidebar_position:7},o=void 0,c={id:"documentation/accessing-data/df.take()",title:"df.take()",description:"df.take(indices)",source:"@site/docs/documentation/accessing-data/df.take().md",sourceDirName:"documentation/accessing-data",slug:"/documentation/accessing-data/df.take()",permalink:"/bpd-reference/docs/documentation/accessing-data/df.take()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/accessing-data/df.take().md",tags:[],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7},sidebar:"docsSidebar",previous:{title:"df.columns",permalink:"/bpd-reference/docs/documentation/accessing-data/df.columns"},next:{title:"Series Methods",permalink:"/bpd-reference/docs/documentation/series-methods/"}},i={},l=[];function h(e){const a={code:"code",hr:"hr",pre:"pre",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"df.take(indices)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsxs)("strong",{children:["Return the elements in the given ",(0,s.jsx)("em",{children:"positional"})," indices."]})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["indices : ",(0,s.jsx)("em",{children:"array"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"An array of ints indicating which positions to take."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"df - DataFrame with only the indices specified."}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,s.jsx)(a.hr,{}),"\n",(0,s.jsx)(a.pre,{children:(0,s.jsx)(a.code,{className:"language-python",children:"pets\n"})}),"\n",(0,s.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,s.jsx)(a.pre,{children:(0,s.jsx)(a.code,{className:"language-python",children:"# take the top 5 rows of the DataFrame. (indices 0, 1, 2, 3, 4)\r\npets.take(np.arange(5))\n"})}),"\n",(0,s.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."]]}'}),"\n",(0,s.jsx)(a.pre,{children:(0,s.jsx)(a.code,{className:"language-python",children:"# 0, 2, 4 indices.\r\npets.take(np.arange(0, 6, 2))\n"})}),"\n",(0,s.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,2,4],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."]]}'})]})}function m(e={}){const{wrapper:a}={...(0,t.R)(),...e.components};return a?(0,s.jsx)(a,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8597:(e,a,n)=>{n.d(a,{A:()=>t});n(6540);var s=n(4848);const t=e=>{let{data:a}=e,n=[],t=[],r="",d=[];if(a){const e=JSON.parse(a);n=e.columns||[],t=e.data||[],r=e.indexName||"Index",d=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:r}),n.map(((e,a)=>(0,s.jsx)("th",{children:e},a)))]})}),(0,s.jsx)("tbody",{children:t.map(((e,a)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:d[a]}),e.map(((e,a)=>{return(0,s.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},a);var n}))]},a)))})]})})}},8205:(e,a,n)=>{n.d(a,{A:()=>t});n(6540);var s=n(4848);const t=e=>{let{data:a}=e,n=[],t=[],r="",d="";if(a)try{const e=JSON.parse(a);r=e.name||"",d=e.dtype||"Unknown type",n=e.index||[],t=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=t.map((e=>JSON.stringify(e)));return(0,s.jsxs)("div",{className:"series-container",children:[(0,s.jsx)("ul",{className:"series-list",children:o.map(((e,a)=>(0,s.jsxs)("li",{className:"series-item",children:[(0,s.jsx)("span",{className:"series-index",children:n[a]}),(0,s.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},a)))}),(0,s.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",d]})]})}},8453:(e,a,n)=>{n.d(a,{R:()=>d,x:()=>o});var s=n(6540);const t={},r=s.createContext(t);function d(e){const a=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function o(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:d(e.components),s.createElement(r.Provider,{value:a},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/acb40918.20b35a67.js b/assets/js/acb40918.20b35a67.js new file mode 100644 index 00000000..7e6976db --- /dev/null +++ b/assets/js/acb40918.20b35a67.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2491],{1721:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>c,contentTitle:()=>d,default:()=>h,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var t=n(4848),r=n(8453),i=(n(8597),n(8205));const a={sidebar_position:6},d=void 0,o={id:"documentation/series-methods/ser.median()",title:"ser.median()",description:"ser.median()",source:"@site/docs/documentation/series-methods/ser.median().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.median()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.median()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.median().md",tags:[],version:"current",sidebarPosition:6,frontMatter:{sidebar_position:6},sidebar:"docsSidebar",previous:{title:"ser.mean()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.mean()"},next:{title:"ser.unique()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.unique()"}},c={},l=[];function m(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.median()"}),"\n",(0,t.jsx)("div",{className:"base",children:(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Returns the median of the values in the Series."})})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,t.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser.median()\n"})}),"\n",(0,t.jsx)(s.p,{children:"12.5"})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],i="",a=[];if(s){const e=JSON.parse(s);n=e.columns||[],r=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:i}),n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:a[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],i="",a="";if(s)try{const e=JSON.parse(s);i=e.name||"",a=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const d=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:d.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>d});var t=n(6540);const r={},i=t.createContext(r);function a(e){const s=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),t.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/acb40918.33fe453e.js b/assets/js/acb40918.33fe453e.js deleted file mode 100644 index 4911aa17..00000000 --- a/assets/js/acb40918.33fe453e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2491],{1721:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>c,contentTitle:()=>d,default:()=>h,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var t=n(4848),r=n(8453),i=(n(8597),n(8205));const a={sidebar_position:6},d=void 0,o={id:"documentation/series-methods/ser.median()",title:"ser.median()",description:"ser.median()",source:"@site/docs/documentation/series-methods/ser.median().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.median()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.median()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.median().md",tags:[],version:"current",sidebarPosition:6,frontMatter:{sidebar_position:6},sidebar:"docsSidebar",previous:{title:"ser.mean()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.mean()"},next:{title:"ser.unique()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.unique()"}},c={},l=[];function m(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.median()"}),"\n",(0,t.jsx)("div",{className:"base",children:(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Returns the median of the values in the Series."})})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,t.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser.median()\n"})}),"\n",(0,t.jsx)(s.p,{children:"12.5"})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],i="",a=[];if(s){const e=JSON.parse(s);n=e.columns||[],r=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:i}),n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:a[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],i="",a="";if(s)try{const e=JSON.parse(s);i=e.name||"",a=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const d=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:d.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>d});var t=n(6540);const r={},i=t.createContext(r);function a(e){const s=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),t.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b0c30e46.494989bc.js b/assets/js/b0c30e46.494989bc.js new file mode 100644 index 00000000..cb8e960d --- /dev/null +++ b/assets/js/b0c30e46.494989bc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[1944],{3509:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var t=s(4848),r=s(8453),i=(s(8597),s(8205));const a={sidebar_position:2,description:"Checks for membership of object within a sequence."},c=void 0,o={id:"documentation/if-statements/in \u2044 not in",title:"in \u2044 not in",description:"Checks for membership of object within a sequence.",source:"@site/docs/documentation/if-statements/in \u2044 not in.md",sourceDirName:"documentation/if-statements",slug:"/documentation/if-statements/in \u2044 not in",permalink:"/bpd-reference/docs/documentation/if-statements/in \u2044 not in",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/if-statements/in \u2044 not in.md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,description:"Checks for membership of object within a sequence."},sidebar:"docsSidebar",previous:{title:"if-elif-else",permalink:"/bpd-reference/docs/documentation/if-statements/if-elif-else"},next:{title:"Logical Operators",permalink:"/bpd-reference/docs/documentation/if-statements/Logical Operators"}},d={},l=[];function m(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.p,{children:[(0,t.jsxs)("code",{children:["if <object> in <sequence>: ",(0,t.jsx)("br",{})]}),"\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsxs)("code",{children:[" <if body> ",(0,t.jsx)("br",{})," "]}),"\n",(0,t.jsxs)("code",{children:["if <object> not in <sequence>: ",(0,t.jsx)("br",{})]}),"\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsx)("code",{children:" <if body> "})]}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Checks for membership of object within a sequence."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Operators:"}),(0,t.jsxs)("dd",{className:"parameter",children:["in : ",(0,t.jsx)("em",{})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"Checks if object is a member of a sequence"}),(0,t.jsxs)("dd",{className:"parameter",children:["not in : ",(0,t.jsx)("em",{})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"Checks if object is not a member of a sequence"}),(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"True or False."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"Boolean"})]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"id_ser = pets.get('ID')\nid_ser\n"})}),"\n",(0,t.jsx)(i.A,{data:'{"name":"ID","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":["dog_001","cat_001","cat_002","dog_002","dog_003","ham_001","ham_002","cat_003"]}'}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"def cat_and_dog_info(pet_id):\n id_arr = np.array(pets.get('ID'))\n if pet_id not in id_arr:\n return 'This pet is not in our record'\n"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"cat_and_dog_info('cat_009')\n"})}),"\n",(0,t.jsx)(n.p,{children:"'This pet is not in our record'"})]})}function p(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>r});s(6540);var t=s(4848);const r=e=>{let{data:n}=e,s=[],r=[],i="",a=[];if(n){const e=JSON.parse(n);s=e.columns||[],r=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:i}),s.map(((e,n)=>(0,t.jsx)("th",{children:e},n)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,n)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:a[n]}),e.map(((e,n)=>{return(0,t.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>r});s(6540);var t=s(4848);const r=e=>{let{data:n}=e,s=[],r=[],i="",a="";if(n)try{const e=JSON.parse(n);i=e.name||"",a=e.dtype||"Unknown type",s=e.index||[],r=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const c=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:c.map(((e,n)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:s[n]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>a,x:()=>c});var t=s(6540);const r={},i=t.createContext(r);function a(e){const n=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b0c30e46.b4ca6cce.js b/assets/js/b0c30e46.b4ca6cce.js deleted file mode 100644 index de177a87..00000000 --- a/assets/js/b0c30e46.b4ca6cce.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[1944],{3509:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var t=s(4848),r=s(8453),i=(s(8597),s(8205));const a={sidebar_position:2,description:"Checks for membership of object within a sequence."},c=void 0,o={id:"documentation/if-statements/in \u2044 not in",title:"in \u2044 not in",description:"Checks for membership of object within a sequence.",source:"@site/docs/documentation/if-statements/in \u2044 not in.md",sourceDirName:"documentation/if-statements",slug:"/documentation/if-statements/in \u2044 not in",permalink:"/bpd-reference/docs/documentation/if-statements/in \u2044 not in",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/if-statements/in \u2044 not in.md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,description:"Checks for membership of object within a sequence."},sidebar:"docsSidebar",previous:{title:"if-elif-else",permalink:"/bpd-reference/docs/documentation/if-statements/if-elif-else"},next:{title:"Logical Operators",permalink:"/bpd-reference/docs/documentation/if-statements/Logical Operators"}},d={},l=[];function m(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.p,{children:[(0,t.jsxs)("code",{children:["if <object> in <sequence>: ",(0,t.jsx)("br",{})]}),"\r\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsxs)("code",{children:[" <if body> ",(0,t.jsx)("br",{})," "]}),"\r\n",(0,t.jsxs)("code",{children:["if <object> not in <sequence>: ",(0,t.jsx)("br",{})]}),"\r\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsx)("code",{children:" <if body> "})]}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Checks for membership of object within a sequence."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Operators:"}),(0,t.jsxs)("dd",{className:"parameter",children:["in : ",(0,t.jsx)("em",{})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"Checks if object is a member of a sequence"}),(0,t.jsxs)("dd",{className:"parameter",children:["not in : ",(0,t.jsx)("em",{})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"Checks if object is not a member of a sequence"}),(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"True or False."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"Boolean"})]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"id_ser = pets.get('ID')\r\nid_ser\n"})}),"\n",(0,t.jsx)(i.A,{data:'{"name":"ID","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":["dog_001","cat_001","cat_002","dog_002","dog_003","ham_001","ham_002","cat_003"]}'}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"def cat_and_dog_info(pet_id):\r\n id_arr = np.array(pets.get('ID'))\r\n if pet_id not in id_arr:\r\n return 'This pet is not in our record'\n"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"cat_and_dog_info('cat_009')\n"})}),"\n",(0,t.jsx)(n.p,{children:"'This pet is not in our record'"})]})}function p(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>r});s(6540);var t=s(4848);const r=e=>{let{data:n}=e,s=[],r=[],i="",a=[];if(n){const e=JSON.parse(n);s=e.columns||[],r=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:i}),s.map(((e,n)=>(0,t.jsx)("th",{children:e},n)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,n)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:a[n]}),e.map(((e,n)=>{return(0,t.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>r});s(6540);var t=s(4848);const r=e=>{let{data:n}=e,s=[],r=[],i="",a="";if(n)try{const e=JSON.parse(n);i=e.name||"",a=e.dtype||"Unknown type",s=e.index||[],r=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const c=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:c.map(((e,n)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:s[n]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>a,x:()=>c});var t=s(6540);const r={},i=t.createContext(r);function a(e){const n=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b78139e1.4361acc2.js b/assets/js/b78139e1.4361acc2.js deleted file mode 100644 index 42638e79..00000000 --- a/assets/js/b78139e1.4361acc2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4929],{351:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>c,toc:()=>l});var t=n(4848),r=n(8453),a=(n(8597),n(8205));const o={sidebar_position:15},i=void 0,c={id:"documentation/series-methods/ser.str.len()",title:"ser.str.len()",description:"ser.str.len()",source:"@site/docs/documentation/series-methods/ser.str.len().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.len()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.len()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.len().md",tags:[],version:"current",sidebarPosition:15,frontMatter:{sidebar_position:15},sidebar:"docsSidebar",previous:{title:"ser.str.replace()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.replace()"},next:{title:"ser.str.contains()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.contains()"}},d={},l=[];function m(e){const s={code:"code",hr:"hr",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.str.len()"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Counts the number of characters in the Series for each element."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"Returns a Series with the number of characters for each element."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"Series"})]})]}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\r\ncomment_ser\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser.str.len()\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"int64","index":[0,1,2,3,4,5,6,7],"data":[45,32,39,38,38,14,14,14]}'})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],a="",o=[];if(s){const e=JSON.parse(s);n=e.columns||[],r=e.data||[],a=e.indexName||"Index",o=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:a}),n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:o[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],a="",o="";if(s)try{const e=JSON.parse(s);a=e.name||"",o=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const i=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:i.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",o]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>o,x:()=>i});var t=n(6540);const r={},a=t.createContext(r);function o(e){const s=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),t.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b78139e1.88fdbdc8.js b/assets/js/b78139e1.88fdbdc8.js new file mode 100644 index 00000000..4f473d72 --- /dev/null +++ b/assets/js/b78139e1.88fdbdc8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4929],{351:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>c,toc:()=>l});var t=n(4848),r=n(8453),a=(n(8597),n(8205));const o={sidebar_position:15},i=void 0,c={id:"documentation/series-methods/ser.str.len()",title:"ser.str.len()",description:"ser.str.len()",source:"@site/docs/documentation/series-methods/ser.str.len().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.len()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.len()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.len().md",tags:[],version:"current",sidebarPosition:15,frontMatter:{sidebar_position:15},sidebar:"docsSidebar",previous:{title:"ser.str.replace()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.replace()"},next:{title:"ser.str.contains()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.contains()"}},d={},l=[];function m(e){const s={code:"code",hr:"hr",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.str.len()"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Counts the number of characters in the Series for each element."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"Returns a Series with the number of characters for each element."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"Series"})]})]}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\ncomment_ser\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser.str.len()\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"int64","index":[0,1,2,3,4,5,6,7],"data":[45,32,39,38,38,14,14,14]}'})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],a="",o=[];if(s){const e=JSON.parse(s);n=e.columns||[],r=e.data||[],a=e.indexName||"Index",o=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:a}),n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:o[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],a="",o="";if(s)try{const e=JSON.parse(s);a=e.name||"",o=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const i=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:i.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",o]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>o,x:()=>i});var t=n(6540);const r={},a=t.createContext(r);function o(e){const s=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),t.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b7ff327f.cadf970c.js b/assets/js/b7ff327f.cadf970c.js deleted file mode 100644 index 09d4b96b..00000000 --- a/assets/js/b7ff327f.cadf970c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6730],{8039:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>d,default:()=>u,frontMatter:()=>r,metadata:()=>i,toc:()=>l});var a=s(4848),t=s(8453),o=s(8597);s(8205);const r={sidebar_position:4},d=void 0,i={id:"documentation/building-organizing/df.drop()",title:"df.drop()",description:"df.drop(columns=columnname or [col1name, ..., colk_name])",source:"@site/docs/documentation/building-organizing/df.drop().md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/df.drop()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.drop()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/df.drop().md",tags:[],version:"current",sidebarPosition:4,frontMatter:{sidebar_position:4},sidebar:"docsSidebar",previous:{title:"df.assign()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.assign()"},next:{title:"df.set_index()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.set_index()"}},c={},l=[];function m(e){const n={code:"code",hr:"hr",pre:"pre",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df.drop(columns=column_name or [col_1_name, ..., col_k_name])"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Drops a single column, or every column in a list of column names."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["columns : ",(0,a.jsx)("em",{children:"string or list"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Column name(s) to drop."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"df_without_cols - A new DataFrame without the column(s) specified in the method"}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets = pets.assign(New_column_1=['this', 'is', 'a', 'new', 'column', 'I', 'assigned'], \r\n New_column_2=['this', 'is', 'another', 'new', 'column', 'I', 'assigned'])\r\npets\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment","New_column_1","New_column_2"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners.","this","this"],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!","is","is"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****","a","another"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail.","new","new"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are.","column","column"],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!","I","I"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!","assigned","assigned"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!",".","."]]}'}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python3",children:"pets = pets.drop(columns=['New_column_1', 'New_column_2'])\r\npets\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function u(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(m,{...e})}):m(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],o="",r=[];if(n){const e=JSON.parse(n);s=e.columns||[],t=e.data||[],o=e.indexName||"Index",r=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:o}),s.map(((e,n)=>(0,a.jsx)("th",{children:e},n)))]})}),(0,a.jsx)("tbody",{children:t.map(((e,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:r[n]}),e.map(((e,n)=>{return(0,a.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],o="",r="";if(n)try{const e=JSON.parse(n);o=e.name||"",r=e.dtype||"Unknown type",s=e.index||[],t=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const d=t.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:d.map(((e,n)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:s[n]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",o,", dtype: ",r]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>r,x:()=>d});var a=s(6540);const t={},o=a.createContext(t);function r(e){const n=a.useContext(o);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),a.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b7ff327f.d6f9457e.js b/assets/js/b7ff327f.d6f9457e.js new file mode 100644 index 00000000..242b6cc0 --- /dev/null +++ b/assets/js/b7ff327f.d6f9457e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6730],{8039:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>d,default:()=>u,frontMatter:()=>r,metadata:()=>i,toc:()=>l});var a=s(4848),t=s(8453),o=s(8597);s(8205);const r={sidebar_position:4},d=void 0,i={id:"documentation/building-organizing/df.drop()",title:"df.drop()",description:"df.drop(columns=columnname or [col1name, ..., colk_name])",source:"@site/docs/documentation/building-organizing/df.drop().md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/df.drop()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.drop()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/df.drop().md",tags:[],version:"current",sidebarPosition:4,frontMatter:{sidebar_position:4},sidebar:"docsSidebar",previous:{title:"df.assign()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.assign()"},next:{title:"df.set_index()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.set_index()"}},c={},l=[];function m(e){const n={code:"code",hr:"hr",pre:"pre",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df.drop(columns=column_name or [col_1_name, ..., col_k_name])"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Drops a single column, or every column in a list of column names."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["columns : ",(0,a.jsx)("em",{children:"string or list"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Column name(s) to drop."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"df_without_cols - A new DataFrame without the column(s) specified in the method"}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets = pets.assign(New_column_1=['this', 'is', 'a', 'new', 'column', 'I', 'assigned'], \n New_column_2=['this', 'is', 'another', 'new', 'column', 'I', 'assigned'])\npets\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment","New_column_1","New_column_2"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners.","this","this"],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!","is","is"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****","a","another"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail.","new","new"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are.","column","column"],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!","I","I"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!","assigned","assigned"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!",".","."]]}'}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python3",children:"pets = pets.drop(columns=['New_column_1', 'New_column_2'])\npets\n"})}),"\n",(0,a.jsx)(o.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function u(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(m,{...e})}):m(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],o="",r=[];if(n){const e=JSON.parse(n);s=e.columns||[],t=e.data||[],o=e.indexName||"Index",r=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:o}),s.map(((e,n)=>(0,a.jsx)("th",{children:e},n)))]})}),(0,a.jsx)("tbody",{children:t.map(((e,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:r[n]}),e.map(((e,n)=>{return(0,a.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],o="",r="";if(n)try{const e=JSON.parse(n);o=e.name||"",r=e.dtype||"Unknown type",s=e.index||[],t=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const d=t.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:d.map(((e,n)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:s[n]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",o,", dtype: ",r]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>r,x:()=>d});var a=s(6540);const t={},o=a.createContext(t);function r(e){const n=a.useContext(o);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),a.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c94468d5.5dc63ddc.js b/assets/js/c94468d5.5dc63ddc.js deleted file mode 100644 index 7aef5833..00000000 --- a/assets/js/c94468d5.5dc63ddc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3484],{7486:(e,a,n)=>{n.r(a),n.d(a,{assets:()=>l,contentTitle:()=>d,default:()=>h,frontMatter:()=>i,metadata:()=>o,toc:()=>c});var s=n(4848),r=n(8453),t=n(8597);n(8205);const i={sidebar_position:8},d=void 0,o={id:"documentation/building-organizing/df.merge()",title:"df.merge()",description:"df.merge(right, on=column, lefton=leftcolumn, righton=rightcolumn, leftindex=False, rightindex=False)",source:"@site/docs/documentation/building-organizing/df.merge().md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/df.merge()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.merge()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/df.merge().md",tags:[],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8},sidebar:"docsSidebar",previous:{title:"df.sort_values()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.sort_values()"},next:{title:"Accessing Data",permalink:"/bpd-reference/docs/documentation/accessing-data/"}},l={},c=[];function m(e){const a={code:"code",hr:"hr",pre:"pre",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"df.merge(right, on=column, left_on=left_column, right_on=right_column, left_index=False, right_index=False)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:"Merges two DataFrames by specified columns or indexes."})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["right : ",(0,s.jsx)("em",{children:"DataFrame"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"DataFrame to merge with."}),(0,s.jsxs)("dd",{className:"parameter",children:["on : ",(0,s.jsx)("em",{children:"label or list"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Column or index names to join on."}),(0,s.jsxs)("dd",{className:"parameter",children:["left_on : ",(0,s.jsx)("em",{children:"label, list, or array-like"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Column or index names to join on the in the left DataFrame."}),(0,s.jsxs)("dd",{className:"parameter",children:["right_on : ",(0,s.jsx)("em",{children:"label, list, or array-like"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Column or index names to join on the in the right DataFrame."}),(0,s.jsxs)("dd",{className:"parameter",children:["left_index : ",(0,s.jsx)("em",{children:"boolean, default False"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Use index from left DataFrame as join key(s)."}),(0,s.jsxs)("dd",{className:"parameter",children:["right_index : ",(0,s.jsx)("em",{children:"boolean, default False"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Use index from right DataFrame as join key(s)."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"df_merged - A new DataFrame with the two DataFrames merged on the specified input combinations."}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"DataFrame"}),(0,s.jsx)("dt",{className:"term",children:"Note:"}),(0,s.jsx)("dd",{children:(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{children:"The number of columns merged on the left and right DataFrames must be the same."}),(0,s.jsxs)("li",{children:[(0,s.jsx)("em",{children:"left_on"})," and ",(0,s.jsx)("em",{children:"left_index"})," cannot happen at the same time. Same as ",(0,s.jsx)("em",{children:"right_on"})," and ",(0,s.jsx)("em",{children:"right_index"}),"."]})]})})]})]}),"\n",(0,s.jsx)(a.hr,{}),"\n",(0,s.jsx)(a.pre,{children:(0,s.jsx)(a.code,{className:"language-python",children:"pets_info = bpd.DataFrame().assign(\r\n Pet_ID=['dog_001', 'cat_001', 'cat_002', 'dog_002', 'dog_003', 'ham_001'],\r\n Breed=['Labrador', 'Sphinx', 'Siamese', 'Chihuahua', 'Labrador', 'Roborovski'],\r\n Owner=['Jason', 'Lauren', 'Cassidy', 'Bobby', 'Dhruv', 'Cassidy']\r\n)\r\npets_info\n"})}),"\n",(0,s.jsx)(t.A,{data:'{"columns":["Pet_ID","Breed","Owner"],"index":[0,1,2,3,4,5],"data":[["dog_001","Labrador","Jason"],["cat_001","Sphinx","Lauren"],["cat_002","Siamese","Cassidy"],["dog_002","Chihuahua","Bobby"],["dog_003","Labrador","Dhruv"],["ham_001","Roborovski","Cassidy"]]}'}),"\n",(0,s.jsx)(a.pre,{children:(0,s.jsx)(a.code,{className:"language-python",children:"pets.merge(pets_info, left_on='ID', right_on='Pet_ID')\n"})}),"\n",(0,s.jsx)(t.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment","Pet_ID","Breed","Owner"],"index":[0,1,2,3,4,5],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners.","dog_001","Labrador","Jason"],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!","cat_001","Sphinx","Lauren"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****","cat_002","Siamese","Cassidy"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail.","dog_002","Chihuahua","Bobby"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are.","dog_003","Labrador","Dhruv"],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!","ham_001","Roborovski","Cassidy"]]}'}),"\n",(0,s.jsx)(a.pre,{children:(0,s.jsx)(a.code,{className:"language-python",children:"pets_info = pets_info.set_index('Pet_ID')\r\npets.merge(pets_info, left_on='ID', right_index=True)\n"})}),"\n",(0,s.jsx)(t.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment","Breed","Owner"],"index":[0,1,2,3,4,5],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners.","Labrador","Jason"],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!","Sphinx","Lauren"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****","Siamese","Cassidy"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail.","Chihuahua","Bobby"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are.","Labrador","Dhruv"],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!","Roborovski","Cassidy"]]}'}),"\n",(0,s.jsx)(a.pre,{children:(0,s.jsx)(a.code,{className:"language-python",children:"pets_info2 = pets_info.assign(ID = pets_info.index)\r\npets.merge(pets_info2, on='ID')\n"})}),"\n",(0,s.jsx)(t.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment","Breed","Owner"],"index":[0,1,2,3,4,5],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners.","Labrador","Jason"],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!","Sphinx","Lauren"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****","Siamese","Cassidy"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail.","Chihuahua","Bobby"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are.","Labrador","Dhruv"],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!","Roborovski","Cassidy"]]}'})]})}function h(e={}){const{wrapper:a}={...(0,r.R)(),...e.components};return a?(0,s.jsx)(a,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},8597:(e,a,n)=>{n.d(a,{A:()=>r});n(6540);var s=n(4848);const r=e=>{let{data:a}=e,n=[],r=[],t="",i=[];if(a){const e=JSON.parse(a);n=e.columns||[],r=e.data||[],t=e.indexName||"Index",i=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:t}),n.map(((e,a)=>(0,s.jsx)("th",{children:e},a)))]})}),(0,s.jsx)("tbody",{children:r.map(((e,a)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:i[a]}),e.map(((e,a)=>{return(0,s.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},a);var n}))]},a)))})]})})}},8205:(e,a,n)=>{n.d(a,{A:()=>r});n(6540);var s=n(4848);const r=e=>{let{data:a}=e,n=[],r=[],t="",i="";if(a)try{const e=JSON.parse(a);t=e.name||"",i=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const d=r.map((e=>JSON.stringify(e)));return(0,s.jsxs)("div",{className:"series-container",children:[(0,s.jsx)("ul",{className:"series-list",children:d.map(((e,a)=>(0,s.jsxs)("li",{className:"series-item",children:[(0,s.jsx)("span",{className:"series-index",children:n[a]}),(0,s.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},a)))}),(0,s.jsxs)("div",{className:"series-footer",children:["Name: ",t,", dtype: ",i]})]})}},8453:(e,a,n)=>{n.d(a,{R:()=>i,x:()=>d});var s=n(6540);const r={},t=s.createContext(r);function i(e){const a=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function d(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(t.Provider,{value:a},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c94468d5.c6edfbc0.js b/assets/js/c94468d5.c6edfbc0.js new file mode 100644 index 00000000..9229a32b --- /dev/null +++ b/assets/js/c94468d5.c6edfbc0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3484],{7486:(e,a,n)=>{n.r(a),n.d(a,{assets:()=>l,contentTitle:()=>d,default:()=>h,frontMatter:()=>i,metadata:()=>o,toc:()=>c});var s=n(4848),r=n(8453),t=n(8597);n(8205);const i={sidebar_position:8},d=void 0,o={id:"documentation/building-organizing/df.merge()",title:"df.merge()",description:"df.merge(right, on=column, lefton=leftcolumn, righton=rightcolumn, leftindex=False, rightindex=False)",source:"@site/docs/documentation/building-organizing/df.merge().md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/df.merge()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.merge()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/df.merge().md",tags:[],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8},sidebar:"docsSidebar",previous:{title:"df.sort_values()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.sort_values()"},next:{title:"Accessing Data",permalink:"/bpd-reference/docs/documentation/accessing-data/"}},l={},c=[];function m(e){const a={code:"code",hr:"hr",pre:"pre",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"df.merge(right, on=column, left_on=left_column, right_on=right_column, left_index=False, right_index=False)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:"Merges two DataFrames by specified columns or indexes."})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["right : ",(0,s.jsx)("em",{children:"DataFrame"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"DataFrame to merge with."}),(0,s.jsxs)("dd",{className:"parameter",children:["on : ",(0,s.jsx)("em",{children:"label or list"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Column or index names to join on."}),(0,s.jsxs)("dd",{className:"parameter",children:["left_on : ",(0,s.jsx)("em",{children:"label, list, or array-like"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Column or index names to join on the in the left DataFrame."}),(0,s.jsxs)("dd",{className:"parameter",children:["right_on : ",(0,s.jsx)("em",{children:"label, list, or array-like"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Column or index names to join on the in the right DataFrame."}),(0,s.jsxs)("dd",{className:"parameter",children:["left_index : ",(0,s.jsx)("em",{children:"boolean, default False"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Use index from left DataFrame as join key(s)."}),(0,s.jsxs)("dd",{className:"parameter",children:["right_index : ",(0,s.jsx)("em",{children:"boolean, default False"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Use index from right DataFrame as join key(s)."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"df_merged - A new DataFrame with the two DataFrames merged on the specified input combinations."}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"DataFrame"}),(0,s.jsx)("dt",{className:"term",children:"Note:"}),(0,s.jsx)("dd",{children:(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{children:"The number of columns merged on the left and right DataFrames must be the same."}),(0,s.jsxs)("li",{children:[(0,s.jsx)("em",{children:"left_on"})," and ",(0,s.jsx)("em",{children:"left_index"})," cannot happen at the same time. Same as ",(0,s.jsx)("em",{children:"right_on"})," and ",(0,s.jsx)("em",{children:"right_index"}),"."]})]})})]})]}),"\n",(0,s.jsx)(a.hr,{}),"\n",(0,s.jsx)(a.pre,{children:(0,s.jsx)(a.code,{className:"language-python",children:"pets_info = bpd.DataFrame().assign(\n Pet_ID=['dog_001', 'cat_001', 'cat_002', 'dog_002', 'dog_003', 'ham_001'],\n Breed=['Labrador', 'Sphinx', 'Siamese', 'Chihuahua', 'Labrador', 'Roborovski'],\n Owner=['Jason', 'Lauren', 'Cassidy', 'Bobby', 'Dhruv', 'Cassidy']\n)\npets_info\n"})}),"\n",(0,s.jsx)(t.A,{data:'{"columns":["Pet_ID","Breed","Owner"],"index":[0,1,2,3,4,5],"data":[["dog_001","Labrador","Jason"],["cat_001","Sphinx","Lauren"],["cat_002","Siamese","Cassidy"],["dog_002","Chihuahua","Bobby"],["dog_003","Labrador","Dhruv"],["ham_001","Roborovski","Cassidy"]]}'}),"\n",(0,s.jsx)(a.pre,{children:(0,s.jsx)(a.code,{className:"language-python",children:"pets.merge(pets_info, left_on='ID', right_on='Pet_ID')\n"})}),"\n",(0,s.jsx)(t.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment","Pet_ID","Breed","Owner"],"index":[0,1,2,3,4,5],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners.","dog_001","Labrador","Jason"],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!","cat_001","Sphinx","Lauren"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****","cat_002","Siamese","Cassidy"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail.","dog_002","Chihuahua","Bobby"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are.","dog_003","Labrador","Dhruv"],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!","ham_001","Roborovski","Cassidy"]]}'}),"\n",(0,s.jsx)(a.pre,{children:(0,s.jsx)(a.code,{className:"language-python",children:"pets_info = pets_info.set_index('Pet_ID')\npets.merge(pets_info, left_on='ID', right_index=True)\n"})}),"\n",(0,s.jsx)(t.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment","Breed","Owner"],"index":[0,1,2,3,4,5],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners.","Labrador","Jason"],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!","Sphinx","Lauren"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****","Siamese","Cassidy"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail.","Chihuahua","Bobby"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are.","Labrador","Dhruv"],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!","Roborovski","Cassidy"]]}'}),"\n",(0,s.jsx)(a.pre,{children:(0,s.jsx)(a.code,{className:"language-python",children:"pets_info2 = pets_info.assign(ID = pets_info.index)\npets.merge(pets_info2, on='ID')\n"})}),"\n",(0,s.jsx)(t.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment","Breed","Owner"],"index":[0,1,2,3,4,5],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners.","Labrador","Jason"],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!","Sphinx","Lauren"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****","Siamese","Cassidy"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail.","Chihuahua","Bobby"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are.","Labrador","Dhruv"],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!","Roborovski","Cassidy"]]}'})]})}function h(e={}){const{wrapper:a}={...(0,r.R)(),...e.components};return a?(0,s.jsx)(a,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},8597:(e,a,n)=>{n.d(a,{A:()=>r});n(6540);var s=n(4848);const r=e=>{let{data:a}=e,n=[],r=[],t="",i=[];if(a){const e=JSON.parse(a);n=e.columns||[],r=e.data||[],t=e.indexName||"Index",i=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:t}),n.map(((e,a)=>(0,s.jsx)("th",{children:e},a)))]})}),(0,s.jsx)("tbody",{children:r.map(((e,a)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:i[a]}),e.map(((e,a)=>{return(0,s.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},a);var n}))]},a)))})]})})}},8205:(e,a,n)=>{n.d(a,{A:()=>r});n(6540);var s=n(4848);const r=e=>{let{data:a}=e,n=[],r=[],t="",i="";if(a)try{const e=JSON.parse(a);t=e.name||"",i=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const d=r.map((e=>JSON.stringify(e)));return(0,s.jsxs)("div",{className:"series-container",children:[(0,s.jsx)("ul",{className:"series-list",children:d.map(((e,a)=>(0,s.jsxs)("li",{className:"series-item",children:[(0,s.jsx)("span",{className:"series-index",children:n[a]}),(0,s.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},a)))}),(0,s.jsxs)("div",{className:"series-footer",children:["Name: ",t,", dtype: ",i]})]})}},8453:(e,a,n)=>{n.d(a,{R:()=>i,x:()=>d});var s=n(6540);const r={},t=s.createContext(r);function i(e){const a=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function d(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(t.Provider,{value:a},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ccc49370.6bd4d0ac.js b/assets/js/ccc49370.ede845d6.js similarity index 59% rename from assets/js/ccc49370.6bd4d0ac.js rename to assets/js/ccc49370.ede845d6.js index 7d73d556..39cfb07d 100644 --- a/assets/js/ccc49370.6bd4d0ac.js +++ b/assets/js/ccc49370.ede845d6.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3249],{3858:(e,t,n)=>{n.r(t),n.d(t,{default:()=>j});n(6540);var i=n(4164),a=n(5500),o=n(7559),r=n(7131),s=n(6535),l=n(4651),c=n(1312),d=n(9022),u=n(4848);function m(e){const{nextItem:t,prevItem:n}=e;return(0,u.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,c.T)({id:"theme.blog.post.paginator.navAriaLabel",message:"Blog post page navigation",description:"The ARIA label for the blog posts pagination"}),children:[n&&(0,u.jsx)(d.A,{...n,subLabel:(0,u.jsx)(c.A,{id:"theme.blog.post.paginator.newerPost",description:"The blog post button label to navigate to the newer/previous post",children:"Newer Post"})}),t&&(0,u.jsx)(d.A,{...t,subLabel:(0,u.jsx)(c.A,{id:"theme.blog.post.paginator.olderPost",description:"The blog post button label to navigate to the older/next post",children:"Older Post"}),isNext:!0})]})}function g(){const{assets:e,metadata:t}=(0,r.e)(),{title:n,description:i,date:o,tags:s,authors:l,frontMatter:c}=t,{keywords:d}=c,m=e.image??c.image;return(0,u.jsxs)(a.be,{title:n,description:i,keywords:d,image:m,children:[(0,u.jsx)("meta",{property:"og:type",content:"article"}),(0,u.jsx)("meta",{property:"article:published_time",content:o}),l.some((e=>e.url))&&(0,u.jsx)("meta",{property:"article:author",content:l.map((e=>e.url)).filter(Boolean).join(",")}),s.length>0&&(0,u.jsx)("meta",{property:"article:tag",content:s.map((e=>e.label)).join(",")})]})}var h=n(5260),f=n(6676);function p(){const e=(0,f.J)();return(0,u.jsx)(h.A,{children:(0,u.jsx)("script",{type:"application/ld+json",children:JSON.stringify(e)})})}var v=n(7763),x=n(996);function b(e){let{sidebar:t,children:n}=e;const{metadata:i,toc:a}=(0,r.e)(),{nextItem:o,prevItem:c,frontMatter:d,unlisted:g}=i,{hide_table_of_contents:h,toc_min_heading_level:f,toc_max_heading_level:p}=d;return(0,u.jsxs)(s.A,{sidebar:t,toc:!h&&a.length>0?(0,u.jsx)(v.A,{toc:a,minHeadingLevel:f,maxHeadingLevel:p}):void 0,children:[g&&(0,u.jsx)(x.A,{}),(0,u.jsx)(l.A,{children:n}),(o||c)&&(0,u.jsx)(m,{nextItem:o,prevItem:c})]})}function j(e){const t=e.content;return(0,u.jsx)(r.i,{content:e.content,isBlogPostPage:!0,children:(0,u.jsxs)(a.e3,{className:(0,i.A)(o.G.wrapper.blogPages,o.G.page.blogPostPage),children:[(0,u.jsx)(g,{}),(0,u.jsx)(p,{}),(0,u.jsx)(b,{sidebar:e.sidebar,children:(0,u.jsx)(t,{})})]})})}},5195:(e,t,n)=>{n.d(t,{A:()=>f});var i=n(6540),a=n(6342);function o(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const i=n.slice(2,e.level);e.parentIndex=Math.max(...i),n[e.level]=t}));const i=[];return t.forEach((e=>{const{parentIndex:n,...a}=e;n>=0?t[n].children.push(a):i.push(a)})),i}function r(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:i}=e;return t.flatMap((e=>{const t=r({toc:e.children,minHeadingLevel:n,maxHeadingLevel:i});return function(e){return e.level>=n&&e.level<=i}(e)?[{...e,children:t}]:t}))}function s(e){const t=e.getBoundingClientRect();return t.top===t.bottom?s(e.parentNode):t}function l(e,t){let{anchorTopOffset:n}=t;const i=e.find((e=>s(e).top>=n));if(i){return function(e){return e.top>0&&e.bottom<window.innerHeight/2}(s(i))?i:e[e.indexOf(i)-1]??null}return e[e.length-1]??null}function c(){const e=(0,i.useRef)(0),{navbar:{hideOnScroll:t}}=(0,a.p)();return(0,i.useEffect)((()=>{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function d(e){const t=(0,i.useRef)(void 0),n=c();(0,i.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:i,linkActiveClassName:a,minHeadingLevel:o,maxHeadingLevel:r}=e;function s(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(i),s=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const i=[];for(let a=t;a<=n;a+=1)i.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(i.join()))}({minHeadingLevel:o,maxHeadingLevel:r}),c=l(s,{anchorTopOffset:n.current}),d=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(a),e.classList.add(a),t.current=e):e.classList.remove(a)}(e,e===d)}))}return document.addEventListener("scroll",s),document.addEventListener("resize",s),s(),()=>{document.removeEventListener("scroll",s),document.removeEventListener("resize",s)}}),[e,n])}var u=n(8774),m=n(4848);function g(e){let{toc:t,className:n,linkClassName:i,isChild:a}=e;return t.length?(0,m.jsx)("ul",{className:a?void 0:n,children:t.map((e=>(0,m.jsxs)("li",{children:[(0,m.jsx)(u.A,{to:`#${e.id}`,className:i??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,m.jsx)(g,{isChild:!0,toc:e.children,className:n,linkClassName:i})]},e.id)))}):null}const h=i.memo(g);function f(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:s="table-of-contents__link",linkActiveClassName:l,minHeadingLevel:c,maxHeadingLevel:u,...g}=e;const f=(0,a.p)(),p=c??f.tableOfContents.minHeadingLevel,v=u??f.tableOfContents.maxHeadingLevel,x=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:a}=e;return(0,i.useMemo)((()=>r({toc:o(t),minHeadingLevel:n,maxHeadingLevel:a})),[t,n,a])}({toc:t,minHeadingLevel:p,maxHeadingLevel:v});return d((0,i.useMemo)((()=>{if(s&&l)return{linkClassName:s,linkActiveClassName:l,minHeadingLevel:p,maxHeadingLevel:v}}),[s,l,p,v])),(0,m.jsx)(h,{toc:x,className:n,linkClassName:s,...g})}},7763:(e,t,n)=>{n.d(t,{A:()=>c});n(6540);var i=n(4164),a=n(5195);const o={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var r=n(4848);const s="table-of-contents__link toc-highlight",l="table-of-contents__link--active";function c(e){let{className:t,...n}=e;return(0,r.jsx)("div",{className:(0,i.A)(o.tableOfContents,"thin-scrollbar",t),children:(0,r.jsx)(a.A,{...n,linkClassName:s,linkActiveClassName:l})})}},996:(e,t,n)=>{n.d(t,{A:()=>g});n(6540);var i=n(4164),a=n(1312),o=n(5260),r=n(4848);function s(){return(0,r.jsx)(a.A,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function l(){return(0,r.jsx)(a.A,{id:"theme.unlistedContent.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function c(){return(0,r.jsx)(o.A,{children:(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=n(7559),u=n(7293);function m(e){let{className:t}=e;return(0,r.jsx)(u.A,{type:"caution",title:(0,r.jsx)(s,{}),className:(0,i.A)(t,d.G.common.unlistedBanner),children:(0,r.jsx)(l,{})})}function g(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c,{}),(0,r.jsx)(m,{...e})]})}},6676:(e,t,n)=>{n.d(t,{k:()=>d,J:()=>u});var i=n(6025),a=n(4586),o=n(6803);var r=n(7131);const s=e=>new Date(e).toISOString();function l(e){const t=e.map(m);return{author:1===t.length?t[0]:t}}function c(e,t,n){return e?{image:g({imageUrl:t(e,{absolute:!0}),caption:`title image for the blog post: ${n}`})}:{}}function d(e){const{siteConfig:t}=(0,a.A)(),{withBaseUrl:n}=(0,i.h)(),{metadata:{blogDescription:o,blogTitle:r,permalink:d}}=e,u=`${t.url}${d}`;return{"@context":"https://schema.org","@type":"Blog","@id":u,mainEntityOfPage:u,headline:r,description:o,blogPost:e.items.map((e=>function(e,t,n){const{assets:i,frontMatter:a,metadata:o}=e,{date:r,title:d,description:u,lastUpdatedAt:m}=o,g=i.image??a.image,h=a.keywords??[],f=`${t.url}${o.permalink}`,p=m?s(m):void 0;return{"@type":"BlogPosting","@id":f,mainEntityOfPage:f,url:f,headline:d,name:d,description:u,datePublished:r,...p?{dateModified:p}:{},...l(o.authors),...c(g,n,d),...h?{keywords:h}:{}}}(e.content,t,n)))}}function u(){const e=function(){const e=(0,o.A)(),t=e?.data?.blogMetadata;if(!t)throw new Error("useBlogMetadata() can't be called on the current route because the blog metadata could not be found in route context");return t}(),{assets:t,metadata:n}=(0,r.e)(),{siteConfig:d}=(0,a.A)(),{withBaseUrl:u}=(0,i.h)(),{date:m,title:g,description:h,frontMatter:f,lastUpdatedAt:p}=n,v=t.image??f.image,x=f.keywords??[],b=p?s(p):void 0,j=`${d.url}${n.permalink}`;return{"@context":"https://schema.org","@type":"BlogPosting","@id":j,mainEntityOfPage:j,url:j,headline:g,name:g,description:h,datePublished:m,...b?{dateModified:b}:{},...l(n.authors),...c(v,u,g),...x?{keywords:x}:{},isPartOf:{"@type":"Blog","@id":`${d.url}${e.blogBasePath}`,name:e.blogTitle}}}function m(e){return{"@type":"Person",...e.name?{name:e.name}:{},...e.title?{description:e.title}:{},...e.url?{url:e.url}:{},...e.email?{email:e.email}:{},...e.imageURL?{image:e.imageURL}:{}}}function g(e){let{imageUrl:t,caption:n}=e;return{"@type":"ImageObject","@id":t,url:t,contentUrl:t,caption:n}}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3249],{3858:(e,t,n)=>{n.r(t),n.d(t,{default:()=>j});n(6540);var i=n(4164),a=n(5500),o=n(7559),r=n(7131),s=n(6535),l=n(4651),c=n(1312),d=n(9022),u=n(4848);function m(e){const{nextItem:t,prevItem:n}=e;return(0,u.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,c.T)({id:"theme.blog.post.paginator.navAriaLabel",message:"Blog post page navigation",description:"The ARIA label for the blog posts pagination"}),children:[n&&(0,u.jsx)(d.A,{...n,subLabel:(0,u.jsx)(c.A,{id:"theme.blog.post.paginator.newerPost",description:"The blog post button label to navigate to the newer/previous post",children:"Newer Post"})}),t&&(0,u.jsx)(d.A,{...t,subLabel:(0,u.jsx)(c.A,{id:"theme.blog.post.paginator.olderPost",description:"The blog post button label to navigate to the older/next post",children:"Older Post"}),isNext:!0})]})}function g(){const{assets:e,metadata:t}=(0,r.e)(),{title:n,description:i,date:o,tags:s,authors:l,frontMatter:c}=t,{keywords:d}=c,m=e.image??c.image;return(0,u.jsxs)(a.be,{title:n,description:i,keywords:d,image:m,children:[(0,u.jsx)("meta",{property:"og:type",content:"article"}),(0,u.jsx)("meta",{property:"article:published_time",content:o}),l.some((e=>e.url))&&(0,u.jsx)("meta",{property:"article:author",content:l.map((e=>e.url)).filter(Boolean).join(",")}),s.length>0&&(0,u.jsx)("meta",{property:"article:tag",content:s.map((e=>e.label)).join(",")})]})}var h=n(5260),f=n(6676);function p(){const e=(0,f.J)();return(0,u.jsx)(h.A,{children:(0,u.jsx)("script",{type:"application/ld+json",children:JSON.stringify(e)})})}var v=n(7763),x=n(996);function b(e){let{sidebar:t,children:n}=e;const{metadata:i,toc:a}=(0,r.e)(),{nextItem:o,prevItem:c,frontMatter:d,unlisted:g}=i,{hide_table_of_contents:h,toc_min_heading_level:f,toc_max_heading_level:p}=d;return(0,u.jsxs)(s.A,{sidebar:t,toc:!h&&a.length>0?(0,u.jsx)(v.A,{toc:a,minHeadingLevel:f,maxHeadingLevel:p}):void 0,children:[g&&(0,u.jsx)(x.A,{}),(0,u.jsx)(l.A,{children:n}),(o||c)&&(0,u.jsx)(m,{nextItem:o,prevItem:c})]})}function j(e){const t=e.content;return(0,u.jsx)(r.i,{content:e.content,isBlogPostPage:!0,children:(0,u.jsxs)(a.e3,{className:(0,i.A)(o.G.wrapper.blogPages,o.G.page.blogPostPage),children:[(0,u.jsx)(g,{}),(0,u.jsx)(p,{}),(0,u.jsx)(b,{sidebar:e.sidebar,children:(0,u.jsx)(t,{})})]})})}},7763:(e,t,n)=>{n.d(t,{A:()=>c});n(6540);var i=n(4164),a=n(5195);const o={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var r=n(4848);const s="table-of-contents__link toc-highlight",l="table-of-contents__link--active";function c(e){let{className:t,...n}=e;return(0,r.jsx)("div",{className:(0,i.A)(o.tableOfContents,"thin-scrollbar",t),children:(0,r.jsx)(a.A,{...n,linkClassName:s,linkActiveClassName:l})})}},5195:(e,t,n)=>{n.d(t,{A:()=>f});var i=n(6540),a=n(6342);function o(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const i=n.slice(2,e.level);e.parentIndex=Math.max(...i),n[e.level]=t}));const i=[];return t.forEach((e=>{const{parentIndex:n,...a}=e;n>=0?t[n].children.push(a):i.push(a)})),i}function r(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:i}=e;return t.flatMap((e=>{const t=r({toc:e.children,minHeadingLevel:n,maxHeadingLevel:i});return function(e){return e.level>=n&&e.level<=i}(e)?[{...e,children:t}]:t}))}function s(e){const t=e.getBoundingClientRect();return t.top===t.bottom?s(e.parentNode):t}function l(e,t){let{anchorTopOffset:n}=t;const i=e.find((e=>s(e).top>=n));if(i){return function(e){return e.top>0&&e.bottom<window.innerHeight/2}(s(i))?i:e[e.indexOf(i)-1]??null}return e[e.length-1]??null}function c(){const e=(0,i.useRef)(0),{navbar:{hideOnScroll:t}}=(0,a.p)();return(0,i.useEffect)((()=>{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function d(e){const t=(0,i.useRef)(void 0),n=c();(0,i.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:i,linkActiveClassName:a,minHeadingLevel:o,maxHeadingLevel:r}=e;function s(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(i),s=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const i=[];for(let a=t;a<=n;a+=1)i.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(i.join()))}({minHeadingLevel:o,maxHeadingLevel:r}),c=l(s,{anchorTopOffset:n.current}),d=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(a),e.classList.add(a),t.current=e):e.classList.remove(a)}(e,e===d)}))}return document.addEventListener("scroll",s),document.addEventListener("resize",s),s(),()=>{document.removeEventListener("scroll",s),document.removeEventListener("resize",s)}}),[e,n])}var u=n(8774),m=n(4848);function g(e){let{toc:t,className:n,linkClassName:i,isChild:a}=e;return t.length?(0,m.jsx)("ul",{className:a?void 0:n,children:t.map((e=>(0,m.jsxs)("li",{children:[(0,m.jsx)(u.A,{to:`#${e.id}`,className:i??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,m.jsx)(g,{isChild:!0,toc:e.children,className:n,linkClassName:i})]},e.id)))}):null}const h=i.memo(g);function f(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:s="table-of-contents__link",linkActiveClassName:l,minHeadingLevel:c,maxHeadingLevel:u,...g}=e;const f=(0,a.p)(),p=c??f.tableOfContents.minHeadingLevel,v=u??f.tableOfContents.maxHeadingLevel,x=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:a}=e;return(0,i.useMemo)((()=>r({toc:o(t),minHeadingLevel:n,maxHeadingLevel:a})),[t,n,a])}({toc:t,minHeadingLevel:p,maxHeadingLevel:v});return d((0,i.useMemo)((()=>{if(s&&l)return{linkClassName:s,linkActiveClassName:l,minHeadingLevel:p,maxHeadingLevel:v}}),[s,l,p,v])),(0,m.jsx)(h,{toc:x,className:n,linkClassName:s,...g})}},996:(e,t,n)=>{n.d(t,{A:()=>g});n(6540);var i=n(4164),a=n(1312),o=n(5260),r=n(4848);function s(){return(0,r.jsx)(a.A,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function l(){return(0,r.jsx)(a.A,{id:"theme.unlistedContent.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function c(){return(0,r.jsx)(o.A,{children:(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=n(7559),u=n(7293);function m(e){let{className:t}=e;return(0,r.jsx)(u.A,{type:"caution",title:(0,r.jsx)(s,{}),className:(0,i.A)(t,d.G.common.unlistedBanner),children:(0,r.jsx)(l,{})})}function g(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c,{}),(0,r.jsx)(m,{...e})]})}},6676:(e,t,n)=>{n.d(t,{k:()=>d,J:()=>u});var i=n(6025),a=n(4586),o=n(6803);var r=n(7131);const s=e=>new Date(e).toISOString();function l(e){const t=e.map(m);return{author:1===t.length?t[0]:t}}function c(e,t,n){return e?{image:g({imageUrl:t(e,{absolute:!0}),caption:`title image for the blog post: ${n}`})}:{}}function d(e){const{siteConfig:t}=(0,a.A)(),{withBaseUrl:n}=(0,i.h)(),{metadata:{blogDescription:o,blogTitle:r,permalink:d}}=e,u=`${t.url}${d}`;return{"@context":"https://schema.org","@type":"Blog","@id":u,mainEntityOfPage:u,headline:r,description:o,blogPost:e.items.map((e=>function(e,t,n){const{assets:i,frontMatter:a,metadata:o}=e,{date:r,title:d,description:u,lastUpdatedAt:m}=o,g=i.image??a.image,h=a.keywords??[],f=`${t.url}${o.permalink}`,p=m?s(m):void 0;return{"@type":"BlogPosting","@id":f,mainEntityOfPage:f,url:f,headline:d,name:d,description:u,datePublished:r,...p?{dateModified:p}:{},...l(o.authors),...c(g,n,d),...h?{keywords:h}:{}}}(e.content,t,n)))}}function u(){const e=function(){const e=(0,o.A)(),t=e?.data?.blogMetadata;if(!t)throw new Error("useBlogMetadata() can't be called on the current route because the blog metadata could not be found in route context");return t}(),{assets:t,metadata:n}=(0,r.e)(),{siteConfig:d}=(0,a.A)(),{withBaseUrl:u}=(0,i.h)(),{date:m,title:g,description:h,frontMatter:f,lastUpdatedAt:p}=n,v=t.image??f.image,x=f.keywords??[],b=p?s(p):void 0,j=`${d.url}${n.permalink}`;return{"@context":"https://schema.org","@type":"BlogPosting","@id":j,mainEntityOfPage:j,url:j,headline:g,name:g,description:h,datePublished:m,...b?{dateModified:b}:{},...l(n.authors),...c(v,u,g),...x?{keywords:x}:{},isPartOf:{"@type":"Blog","@id":`${d.url}${e.blogBasePath}`,name:e.blogTitle}}}function m(e){return{"@type":"Person",...e.name?{name:e.name}:{},...e.title?{description:e.title}:{},...e.url?{url:e.url}:{},...e.email?{email:e.email}:{},...e.imageURL?{image:e.imageURL}:{}}}function g(e){let{imageUrl:t,caption:n}=e;return{"@type":"ImageObject","@id":t,url:t,contentUrl:t,caption:n}}}}]); \ No newline at end of file diff --git a/assets/js/cdae2dcc.872a7974.js b/assets/js/cdae2dcc.872a7974.js new file mode 100644 index 00000000..83144063 --- /dev/null +++ b/assets/js/cdae2dcc.872a7974.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7680],{295:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>o,contentTitle:()=>i,default:()=>m,frontMatter:()=>d,metadata:()=>c,toc:()=>l});var a=n(4848),s=n(8453),t=(n(8597),n(8205));const d={sidebar_position:1},i=void 0,c={id:"documentation/arrays-and-numpy/arr[]",title:"arr[]",description:"arr[index]",source:"@site/docs/documentation/arrays-and-numpy/arr[].md",sourceDirName:"documentation/arrays-and-numpy",slug:"/documentation/arrays-and-numpy/arr[]",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/arr[]",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/arrays-and-numpy/arr[].md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"Arrays and NumPy",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/"},next:{title:"np.append()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.append()"}},o={},l=[];function p(e){const r={code:"code",hr:"hr",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"arr[index]"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Retrieve the element at position index in the array arr. The first element is arr[0]."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["index : ",(0,a.jsx)("em",{children:"integer"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Position of desired element to retrieve in array."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"element - data in the specified index of the array"}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"integer, float, string, list, etc."})]})]}),"\n",(0,a.jsx)(r.hr,{}),"\n",(0,a.jsx)(r.pre,{children:(0,a.jsx)(r.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,a.jsx)(t.A,{data:'{"name":"Weight","dtype":"float64","index":["dog_001","cat_001","cat_002","dog_002","dog_003","ham_001","ham_002"],"data":[40.0,15.0,20.0,80.0,25.0,1.0,0.25]}'}),"\n",(0,a.jsx)(r.pre,{children:(0,a.jsx)(r.code,{className:"language-python",children:"weight_arr = np.array(weight_ser)\nweight_arr\n"})}),"\n",(0,a.jsx)(r.p,{children:"array([40. , 15. , 20. , 80. , 25. , 1. , 0.25])"}),"\n",(0,a.jsx)(r.pre,{children:(0,a.jsx)(r.code,{className:"language-python",children:"age_ser = pets.get('Age')\nage_ser\n"})}),"\n",(0,a.jsx)(t.A,{data:'{"name":"Age","dtype":"float64","index":[0,1,2,3,4,5,6,7],"data":[5.0,0.2,9.0,2.0,0.5,3.0,0.2,0.0]}'}),"\n",(0,a.jsx)(r.pre,{children:(0,a.jsx)(r.code,{className:"language-python",children:"age_arr = np.array(pets.get('Age'))\nage_arr\n"})}),"\n",(0,a.jsx)(r.p,{children:"array([5. , 0.2, 9. , 2. , 0.5, 3. , 0.2, 0. ])"})]})}function m(e={}){const{wrapper:r}={...(0,s.R)(),...e.components};return r?(0,a.jsx)(r,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},8597:(e,r,n)=>{n.d(r,{A:()=>s});n(6540);var a=n(4848);const s=e=>{let{data:r}=e,n=[],s=[],t="",d=[];if(r){const e=JSON.parse(r);n=e.columns||[],s=e.data||[],t=e.indexName||"Index",d=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:t}),n.map(((e,r)=>(0,a.jsx)("th",{children:e},r)))]})}),(0,a.jsx)("tbody",{children:s.map(((e,r)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:d[r]}),e.map(((e,r)=>{return(0,a.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},r);var n}))]},r)))})]})})}},8205:(e,r,n)=>{n.d(r,{A:()=>s});n(6540);var a=n(4848);const s=e=>{let{data:r}=e,n=[],s=[],t="",d="";if(r)try{const e=JSON.parse(r);t=e.name||"",d=e.dtype||"Unknown type",n=e.index||[],s=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const i=s.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:i.map(((e,r)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:n[r]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},r)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",t,", dtype: ",d]})]})}},8453:(e,r,n)=>{n.d(r,{R:()=>d,x:()=>i});var a=n(6540);const s={},t=a.createContext(s);function d(e){const r=a.useContext(t);return a.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function i(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:d(e.components),a.createElement(t.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/cdae2dcc.ba468bd4.js b/assets/js/cdae2dcc.ba468bd4.js deleted file mode 100644 index c1c6a925..00000000 --- a/assets/js/cdae2dcc.ba468bd4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7680],{295:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>o,contentTitle:()=>i,default:()=>m,frontMatter:()=>d,metadata:()=>c,toc:()=>l});var a=n(4848),s=n(8453),t=(n(8597),n(8205));const d={sidebar_position:1},i=void 0,c={id:"documentation/arrays-and-numpy/arr[]",title:"arr[]",description:"arr[index]",source:"@site/docs/documentation/arrays-and-numpy/arr[].md",sourceDirName:"documentation/arrays-and-numpy",slug:"/documentation/arrays-and-numpy/arr[]",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/arr[]",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/arrays-and-numpy/arr[].md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"Arrays and NumPy",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/"},next:{title:"np.append()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.append()"}},o={},l=[];function p(e){const r={code:"code",hr:"hr",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"arr[index]"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Retrieve the element at position index in the array arr. The first element is arr[0]."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["index : ",(0,a.jsx)("em",{children:"integer"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Position of desired element to retrieve in array."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"element - data in the specified index of the array"}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"integer, float, string, list, etc."})]})]}),"\n",(0,a.jsx)(r.hr,{}),"\n",(0,a.jsx)(r.pre,{children:(0,a.jsx)(r.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,a.jsx)(t.A,{data:'{"name":"Weight","dtype":"float64","index":["dog_001","cat_001","cat_002","dog_002","dog_003","ham_001","ham_002"],"data":[40.0,15.0,20.0,80.0,25.0,1.0,0.25]}'}),"\n",(0,a.jsx)(r.pre,{children:(0,a.jsx)(r.code,{className:"language-python",children:"weight_arr = np.array(weight_ser)\r\nweight_arr\n"})}),"\n",(0,a.jsx)(r.p,{children:"array([40. , 15. , 20. , 80. , 25. , 1. , 0.25])"}),"\n",(0,a.jsx)(r.pre,{children:(0,a.jsx)(r.code,{className:"language-python",children:"age_ser = pets.get('Age')\r\nage_ser\n"})}),"\n",(0,a.jsx)(t.A,{data:'{"name":"Age","dtype":"float64","index":[0,1,2,3,4,5,6,7],"data":[5.0,0.2,9.0,2.0,0.5,3.0,0.2,0.0]}'}),"\n",(0,a.jsx)(r.pre,{children:(0,a.jsx)(r.code,{className:"language-python",children:"age_arr = np.array(pets.get('Age'))\r\nage_arr\n"})}),"\n",(0,a.jsx)(r.p,{children:"array([5. , 0.2, 9. , 2. , 0.5, 3. , 0.2, 0. ])"})]})}function m(e={}){const{wrapper:r}={...(0,s.R)(),...e.components};return r?(0,a.jsx)(r,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},8597:(e,r,n)=>{n.d(r,{A:()=>s});n(6540);var a=n(4848);const s=e=>{let{data:r}=e,n=[],s=[],t="",d=[];if(r){const e=JSON.parse(r);n=e.columns||[],s=e.data||[],t=e.indexName||"Index",d=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:t}),n.map(((e,r)=>(0,a.jsx)("th",{children:e},r)))]})}),(0,a.jsx)("tbody",{children:s.map(((e,r)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:d[r]}),e.map(((e,r)=>{return(0,a.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},r);var n}))]},r)))})]})})}},8205:(e,r,n)=>{n.d(r,{A:()=>s});n(6540);var a=n(4848);const s=e=>{let{data:r}=e,n=[],s=[],t="",d="";if(r)try{const e=JSON.parse(r);t=e.name||"",d=e.dtype||"Unknown type",n=e.index||[],s=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const i=s.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:i.map(((e,r)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:n[r]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},r)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",t,", dtype: ",d]})]})}},8453:(e,r,n)=>{n.d(r,{R:()=>d,x:()=>i});var a=n(6540);const s={},t=a.createContext(s);function d(e){const r=a.useContext(t);return a.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function i(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:d(e.components),a.createElement(t.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d01a85b0.71d737ed.js b/assets/js/d01a85b0.297915d4.js similarity index 53% rename from assets/js/d01a85b0.71d737ed.js rename to assets/js/d01a85b0.297915d4.js index 87543356..94dd0911 100644 --- a/assets/js/d01a85b0.71d737ed.js +++ b/assets/js/d01a85b0.297915d4.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[9826],{1989:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>p,frontMatter:()=>i,metadata:()=>a,toc:()=>l});var r=n(4848),s=n(8453);n(8597),n(5158);const i={sidebar_position:2,sidebar_label:"Bootstrapping vs. the CLT",title:"Bootstrapping vs. the CLT",tags:["bootstrapping","the central limit theorem"]},o=void 0,a={id:"statistical-inference/concept check/bootstrapping_vs_the_CLT",title:"Bootstrapping vs. the CLT",description:"Difference",source:"@site/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT.md",sourceDirName:"statistical-inference/concept check",slug:"/statistical-inference/concept check/bootstrapping_vs_the_CLT",permalink:"/bpd-reference/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT.md",tags:[{label:"bootstrapping",permalink:"/bpd-reference/docs/tags/bootstrapping"},{label:"the central limit theorem",permalink:"/bpd-reference/docs/tags/the-central-limit-theorem"}],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,sidebar_label:"Bootstrapping vs. the CLT",title:"Bootstrapping vs. the CLT",tags:["bootstrapping","the central limit theorem"]},sidebar:"statsSidebar",previous:{title:"Hypothesis Test vs. Permutation Test",permalink:"/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation"}},c={},l=[{value:"Difference",id:"difference",level:2}];function d(e){const t={h2:"h2",li:"li",p:"p",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h2,{id:"difference",children:"Difference"}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Bootstrapping"})}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.strong,{children:"Goal:"})," to estimate the distribution of a ",(0,r.jsx)(t.strong,{children:"sample statistic"})," (e.g. the sample mean)."]}),"\n",(0,r.jsxs)(t.li,{children:["Given just a ",(0,r.jsx)(t.strong,{children:"single sample"})]}),"\n"]}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"The Central Limit Theorem"})}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.strong,{children:"Goal:"})," to describe the distribution of the ",(0,r.jsx)(t.strong,{children:"sample mean (or sum)"})]}),"\n",(0,r.jsxs)(t.li,{children:["It ",(0,r.jsx)(t.strong,{children:"depends on"})," information about the ",(0,r.jsx)(t.strong,{children:"population"})," (i.e. the population mean and population SD). However, since the ",(0,r.jsx)(t.strong,{children:"sample mean and SD"})," are likely to be close to the population mean and SD, we can use them as ",(0,r.jsx)(t.strong,{children:"approximations"})," in the CLT!"]}),"\n"]}),"\n",(0,r.jsxs)(t.p,{children:["As a result, we can approximate the distribution of the sample mean, given just a single sample, without ever having to bootstrap!\r\nIn other words, the CLT is a ",(0,r.jsx)(t.strong,{children:"shortcut"})," to bootstrapping!"]})]})}function p(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},8597:(e,t,n)=>{n.d(t,{A:()=>s});n(6540);var r=n(4848);const s=e=>{let{data:t}=e,n=[],s=[],i="",o=[];if(t){const e=JSON.parse(t);n=e.columns||[],s=e.data||[],i=e.indexName||"Index",o=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:i}),n.map(((e,t)=>(0,r.jsx)("th",{children:e},t)))]})}),(0,r.jsx)("tbody",{children:s.map(((e,t)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:o[t]}),e.map(((e,t)=>{return(0,r.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},t);var n}))]},t)))})]})})}},5158:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(6540),s=n(4848);const i=function(e){let{src:t,sourceLink:n,aspectRatio:i=16/9}=e;const[o,a]=(0,r.useState)(0),[c,l]=(0,r.useState)(0),d=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const e=()=>{if(d.current){const e=d.current.offsetWidth;l(e/i)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[i]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:d,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,s.jsx)("iframe",{src:t,style:{width:"100%",height:`${c}px`,border:"0",allowFullScreen:!0}},o)}),(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,s.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,s.jsx)("button",{onClick:()=>{a((e=>e+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#45a049",onMouseOut:e=>e.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},8453:(e,t,n)=>{n.d(t,{R:()=>o,x:()=>a});var r=n(6540);const s={},i=r.createContext(s);function o(e){const t=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),r.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[9826],{1989:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>p,frontMatter:()=>i,metadata:()=>a,toc:()=>l});var r=n(4848),s=n(8453);n(8597),n(5158);const i={sidebar_position:2,sidebar_label:"Bootstrapping vs. the CLT",title:"Bootstrapping vs. the CLT",tags:["bootstrapping","the central limit theorem"]},o=void 0,a={id:"statistical-inference/concept check/bootstrapping_vs_the_CLT",title:"Bootstrapping vs. the CLT",description:"Difference",source:"@site/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT.md",sourceDirName:"statistical-inference/concept check",slug:"/statistical-inference/concept check/bootstrapping_vs_the_CLT",permalink:"/bpd-reference/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT.md",tags:[{label:"bootstrapping",permalink:"/bpd-reference/docs/tags/bootstrapping"},{label:"the central limit theorem",permalink:"/bpd-reference/docs/tags/the-central-limit-theorem"}],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,sidebar_label:"Bootstrapping vs. the CLT",title:"Bootstrapping vs. the CLT",tags:["bootstrapping","the central limit theorem"]},sidebar:"statsSidebar",previous:{title:"Hypothesis Test vs. Permutation Test",permalink:"/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation"}},c={},l=[{value:"Difference",id:"difference",level:2}];function d(e){const t={h2:"h2",li:"li",p:"p",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h2,{id:"difference",children:"Difference"}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Bootstrapping"})}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.strong,{children:"Goal:"})," to estimate the distribution of a ",(0,r.jsx)(t.strong,{children:"sample statistic"})," (e.g. the sample mean)."]}),"\n",(0,r.jsxs)(t.li,{children:["Given just a ",(0,r.jsx)(t.strong,{children:"single sample"})]}),"\n"]}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"The Central Limit Theorem"})}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.strong,{children:"Goal:"})," to describe the distribution of the ",(0,r.jsx)(t.strong,{children:"sample mean (or sum)"})]}),"\n",(0,r.jsxs)(t.li,{children:["It ",(0,r.jsx)(t.strong,{children:"depends on"})," information about the ",(0,r.jsx)(t.strong,{children:"population"})," (i.e. the population mean and population SD). However, since the ",(0,r.jsx)(t.strong,{children:"sample mean and SD"})," are likely to be close to the population mean and SD, we can use them as ",(0,r.jsx)(t.strong,{children:"approximations"})," in the CLT!"]}),"\n"]}),"\n",(0,r.jsxs)(t.p,{children:["As a result, we can approximate the distribution of the sample mean, given just a single sample, without ever having to bootstrap!\nIn other words, the CLT is a ",(0,r.jsx)(t.strong,{children:"shortcut"})," to bootstrapping!"]})]})}function p(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},8597:(e,t,n)=>{n.d(t,{A:()=>s});n(6540);var r=n(4848);const s=e=>{let{data:t}=e,n=[],s=[],i="",o=[];if(t){const e=JSON.parse(t);n=e.columns||[],s=e.data||[],i=e.indexName||"Index",o=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:i}),n.map(((e,t)=>(0,r.jsx)("th",{children:e},t)))]})}),(0,r.jsx)("tbody",{children:s.map(((e,t)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:o[t]}),e.map(((e,t)=>{return(0,r.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},t);var n}))]},t)))})]})})}},5158:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(6540),s=n(4848);const i=function(e){let{src:t,sourceLink:n,aspectRatio:i=16/9}=e;const[o,a]=(0,r.useState)(0),[c,l]=(0,r.useState)(0),d=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const e=()=>{if(d.current){const e=d.current.offsetWidth;l(e/i)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[i]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:d,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,s.jsx)("iframe",{src:t,style:{width:"100%",height:`${c}px`,border:"0",allowFullScreen:!0}},o)}),(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,s.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,s.jsx)("button",{onClick:()=>{a((e=>e+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#45a049",onMouseOut:e=>e.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},8453:(e,t,n)=>{n.d(t,{R:()=>o,x:()=>a});var r=n(6540);const s={},i=r.createContext(s);function o(e){const t=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),r.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d3196d0d.987cf125.js b/assets/js/d3196d0d.987cf125.js new file mode 100644 index 00000000..11bdc717 --- /dev/null +++ b/assets/js/d3196d0d.987cf125.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8104],{3685:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>m,frontMatter:()=>d,metadata:()=>i,toc:()=>l});var a=s(4848),t=s(8453),r=s(8597);s(8205);const d={sidebar_position:7},o=void 0,i={id:"documentation/building-organizing/df.sort_values()",title:"df.sort_values()",description:"df.sortvalues(by=columnname, ascending=True)",source:"@site/docs/documentation/building-organizing/df.sort_values().md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/df.sort_values()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.sort_values()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/df.sort_values().md",tags:[],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7},sidebar:"docsSidebar",previous:{title:"df.reset_index()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.reset_index()"},next:{title:"df.merge()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.merge()"}},c={},l=[];function u(e){const n={code:"code",hr:"hr",pre:"pre",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df.sort_values(by=column_name, ascending=True)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsxs)("p",{children:[(0,a.jsxs)("strong",{children:["Sorts the entire DataFrame in ascending order by the values in the column. ",(0,a.jsx)(n.code,{children:"ascending"})," can be omitted, as it's default value is ",(0,a.jsx)(n.code,{children:"True"})]}),"."]}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["column_name : ",(0,a.jsx)("em",{children:"string"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Column name to sort by."}),(0,a.jsxs)("dd",{className:"parameter",children:["ascending : ",(0,a.jsx)("em",{children:"boolean, default 'True'"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Sort ascending vs. descending."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"df_sorted - A new DataFrame with the specified column sorted in ascending/descending."}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets = pets.sort_values(by='Weight', ascending=True)\npets\n"})}),"\n",(0,a.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[6,5,1,7,2,4,0,3],"data":[["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."]]}'}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets = pets.sort_values(by='Age', ascending=False)\npets\n"})}),"\n",(0,a.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[2,0,5,3,4,1,6,7],"data":[["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function m(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(u,{...e})}):u(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],r="",d=[];if(n){const e=JSON.parse(n);s=e.columns||[],t=e.data||[],r=e.indexName||"Index",d=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:r}),s.map(((e,n)=>(0,a.jsx)("th",{children:e},n)))]})}),(0,a.jsx)("tbody",{children:t.map(((e,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:d[n]}),e.map(((e,n)=>{return(0,a.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],r="",d="";if(n)try{const e=JSON.parse(n);r=e.name||"",d=e.dtype||"Unknown type",s=e.index||[],t=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const o=t.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:o.map(((e,n)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:s[n]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",d]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>d,x:()=>o});var a=s(6540);const t={},r=a.createContext(t);function d(e){const n=a.useContext(r);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:d(e.components),a.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d3196d0d.c8273d0e.js b/assets/js/d3196d0d.c8273d0e.js deleted file mode 100644 index 9da5624d..00000000 --- a/assets/js/d3196d0d.c8273d0e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8104],{3685:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>m,frontMatter:()=>d,metadata:()=>i,toc:()=>l});var a=s(4848),t=s(8453),r=s(8597);s(8205);const d={sidebar_position:7},o=void 0,i={id:"documentation/building-organizing/df.sort_values()",title:"df.sort_values()",description:"df.sortvalues(by=columnname, ascending=True)",source:"@site/docs/documentation/building-organizing/df.sort_values().md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/df.sort_values()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.sort_values()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/df.sort_values().md",tags:[],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7},sidebar:"docsSidebar",previous:{title:"df.reset_index()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.reset_index()"},next:{title:"df.merge()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.merge()"}},c={},l=[];function u(e){const n={code:"code",hr:"hr",pre:"pre",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df.sort_values(by=column_name, ascending=True)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsxs)("p",{children:[(0,a.jsxs)("strong",{children:["Sorts the entire DataFrame in ascending order by the values in the column. ",(0,a.jsx)(n.code,{children:"ascending"})," can be omitted, as it's default value is ",(0,a.jsx)(n.code,{children:"True"})]}),"."]}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["column_name : ",(0,a.jsx)("em",{children:"string"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Column name to sort by."}),(0,a.jsxs)("dd",{className:"parameter",children:["ascending : ",(0,a.jsx)("em",{children:"boolean, default 'True'"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Sort ascending vs. descending."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"df_sorted - A new DataFrame with the specified column sorted in ascending/descending."}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets = pets.sort_values(by='Weight', ascending=True)\r\npets\n"})}),"\n",(0,a.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[6,5,1,7,2,4,0,3],"data":[["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."]]}'}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets = pets.sort_values(by='Age', ascending=False)\r\npets\n"})}),"\n",(0,a.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[2,0,5,3,4,1,6,7],"data":[["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function m(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(u,{...e})}):u(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],r="",d=[];if(n){const e=JSON.parse(n);s=e.columns||[],t=e.data||[],r=e.indexName||"Index",d=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:r}),s.map(((e,n)=>(0,a.jsx)("th",{children:e},n)))]})}),(0,a.jsx)("tbody",{children:t.map(((e,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:d[n]}),e.map(((e,n)=>{return(0,a.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],r="",d="";if(n)try{const e=JSON.parse(n);r=e.name||"",d=e.dtype||"Unknown type",s=e.index||[],t=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const o=t.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:o.map(((e,n)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:s[n]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",d]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>d,x:()=>o});var a=s(6540);const t={},r=a.createContext(t);function d(e){const n=a.useContext(r);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:d(e.components),a.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d4f68316.7ff7b207.js b/assets/js/d4f68316.3b3c7956.js similarity index 53% rename from assets/js/d4f68316.7ff7b207.js rename to assets/js/d4f68316.3b3c7956.js index fa1033e5..5f17a692 100644 --- a/assets/js/d4f68316.7ff7b207.js +++ b/assets/js/d4f68316.3b3c7956.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4833],{4520:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>i,default:()=>d,frontMatter:()=>r,metadata:()=>c,toc:()=>l});var s=n(4848),o=n(8453);n(8597),n(5158);const r={sidebar_position:1,sidebar_label:"Hypothesis Test vs. Permutation Test",title:"Hypothesis Test vs. Permutation Test",tags:["hypothesis test","permutation test"]},i=void 0,c={id:"statistical-inference/concept check/hypothesis_vs_permutation",title:"Hypothesis Test vs. Permutation Test",description:"Difference",source:"@site/docs/statistical-inference/concept check/hypothesis_vs_permutation.md",sourceDirName:"statistical-inference/concept check",slug:"/statistical-inference/concept check/hypothesis_vs_permutation",permalink:"/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/concept check/hypothesis_vs_permutation.md",tags:[{label:"hypothesis test",permalink:"/bpd-reference/docs/tags/hypothesis-test"},{label:"permutation test",permalink:"/bpd-reference/docs/tags/permutation-test"}],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,sidebar_label:"Hypothesis Test vs. Permutation Test",title:"Hypothesis Test vs. Permutation Test",tags:["hypothesis test","permutation test"]},sidebar:"statsSidebar",previous:{title:"The Central Limit Theorem",permalink:"/bpd-reference/docs/statistical-inference/central_limit_theorem"},next:{title:"Bootstrapping vs. the CLT",permalink:"/bpd-reference/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT"}},a={},l=[{value:"Difference",id:"difference",level:2},{value:"Concept Check \ud83d\udc40",id:"concept-check-",level:2}];function h(e){const t={admonition:"admonition",h2:"h2",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components},{Details:n}=t;return n||function(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h2,{id:"difference",children:"Difference"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.strong,{children:"(Standard) Hypothesis Test"})}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:["A ",(0,s.jsx)(t.strong,{children:"population distribution"}),"."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"One"})," observed ",(0,s.jsx)(t.strong,{children:"sample"}),"."]}),"\n",(0,s.jsx)(t.li,{children:"Answers questions in the form: Does this sample look like it was drawn from the population?"}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.strong,{children:"Permutation Test"})}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"No"})," information about any ",(0,s.jsx)(t.strong,{children:"population distributions"}),"."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Two"})," observed ",(0,s.jsx)(t.strong,{children:"samples"}),"."]}),"\n",(0,s.jsx)(t.li,{children:"Answers questions in the form: Do these two samples look like they were drawn from the same population?"}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"concept-check-",children:"Concept Check \ud83d\udc40"}),"\n",(0,s.jsx)(t.p,{children:"Which test do you choose in each of the following scenarios (Hypothesis Test or Permutation Test)?"}),"\n",(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsx)(t.li,{children:"In DSC 10, we ask all students whether they liked labs or homework more. Compare the proportion of students who preferred labs to the proportion who preferred homeworks."}),"\n",(0,s.jsx)(t.li,{children:"Compare the proportion of students from Sixth College who have taken DSC 10 and the proportion of students from Muir College who have taken DSC 10."}),"\n"]}),"\n",(0,s.jsxs)(n,{children:[(0,s.jsx)("summary",{children:"Answer"}),(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsx)(t.li,{children:"Hypothesis Test."}),"\n",(0,s.jsx)(t.li,{children:"Permutation Test."}),"\n"]}),(0,s.jsxs)(t.admonition,{type:"tip",children:[(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"Method 1:"}),"\r\nThink about whether you need one column or two columns of data to perform the task."]}),(0,s.jsx)(t.p,{children:"If you only need one column of data (e.g. head/tail), then it is a hypothesis test. If you need two columns (one with labels and one with values), then it is a permutation test."}),(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"Method 2:"}),"\r\nIf you can find the proportion of group B by only knowing the proportion of group A, then it is a hypothesis test. For instance, in the first scenario, since we know that DSC 10 students like either labs or homework, we can calculate the proportion of students who preferred labs by subtracting the proportion of students who preferred homework from the whole proportion (100%)."]}),(0,s.jsx)(t.p,{children:"However, for the second scenario, we cannot infer one proportion from another. Thus, it is a permutation test."})]})]})]})}function d(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8597:(e,t,n)=>{n.d(t,{A:()=>o});n(6540);var s=n(4848);const o=e=>{let{data:t}=e,n=[],o=[],r="",i=[];if(t){const e=JSON.parse(t);n=e.columns||[],o=e.data||[],r=e.indexName||"Index",i=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:r}),n.map(((e,t)=>(0,s.jsx)("th",{children:e},t)))]})}),(0,s.jsx)("tbody",{children:o.map(((e,t)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:i[t]}),e.map(((e,t)=>{return(0,s.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},t);var n}))]},t)))})]})})}},5158:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(6540),o=n(4848);const r=function(e){let{src:t,sourceLink:n,aspectRatio:r=16/9}=e;const[i,c]=(0,s.useState)(0),[a,l]=(0,s.useState)(0),h=(0,s.useRef)(null);return(0,s.useEffect)((()=>{const e=()=>{if(h.current){const e=h.current.offsetWidth;l(e/r)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[r]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:h,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,o.jsx)("iframe",{src:t,style:{width:"100%",height:`${a}px`,border:"0",allowFullScreen:!0}},i)}),(0,o.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,o.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,o.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,o.jsx)("button",{onClick:()=>{c((e=>e+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#45a049",onMouseOut:e=>e.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},8453:(e,t,n)=>{n.d(t,{R:()=>i,x:()=>c});var s=n(6540);const o={},r=s.createContext(o);function i(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4833],{4520:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>i,default:()=>d,frontMatter:()=>r,metadata:()=>c,toc:()=>l});var s=n(4848),o=n(8453);n(8597),n(5158);const r={sidebar_position:1,sidebar_label:"Hypothesis Test vs. Permutation Test",title:"Hypothesis Test vs. Permutation Test",tags:["hypothesis test","permutation test"]},i=void 0,c={id:"statistical-inference/concept check/hypothesis_vs_permutation",title:"Hypothesis Test vs. Permutation Test",description:"Difference",source:"@site/docs/statistical-inference/concept check/hypothesis_vs_permutation.md",sourceDirName:"statistical-inference/concept check",slug:"/statistical-inference/concept check/hypothesis_vs_permutation",permalink:"/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/concept check/hypothesis_vs_permutation.md",tags:[{label:"hypothesis test",permalink:"/bpd-reference/docs/tags/hypothesis-test"},{label:"permutation test",permalink:"/bpd-reference/docs/tags/permutation-test"}],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,sidebar_label:"Hypothesis Test vs. Permutation Test",title:"Hypothesis Test vs. Permutation Test",tags:["hypothesis test","permutation test"]},sidebar:"statsSidebar",previous:{title:"The Central Limit Theorem",permalink:"/bpd-reference/docs/statistical-inference/central_limit_theorem"},next:{title:"Bootstrapping vs. the CLT",permalink:"/bpd-reference/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT"}},a={},l=[{value:"Difference",id:"difference",level:2},{value:"Concept Check \ud83d\udc40",id:"concept-check-",level:2}];function h(e){const t={admonition:"admonition",h2:"h2",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components},{Details:n}=t;return n||function(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h2,{id:"difference",children:"Difference"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.strong,{children:"(Standard) Hypothesis Test"})}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:["A ",(0,s.jsx)(t.strong,{children:"population distribution"}),"."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"One"})," observed ",(0,s.jsx)(t.strong,{children:"sample"}),"."]}),"\n",(0,s.jsx)(t.li,{children:"Answers questions in the form: Does this sample look like it was drawn from the population?"}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.strong,{children:"Permutation Test"})}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"No"})," information about any ",(0,s.jsx)(t.strong,{children:"population distributions"}),"."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Two"})," observed ",(0,s.jsx)(t.strong,{children:"samples"}),"."]}),"\n",(0,s.jsx)(t.li,{children:"Answers questions in the form: Do these two samples look like they were drawn from the same population?"}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"concept-check-",children:"Concept Check \ud83d\udc40"}),"\n",(0,s.jsx)(t.p,{children:"Which test do you choose in each of the following scenarios (Hypothesis Test or Permutation Test)?"}),"\n",(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsx)(t.li,{children:"In DSC 10, we ask all students whether they liked labs or homework more. Compare the proportion of students who preferred labs to the proportion who preferred homeworks."}),"\n",(0,s.jsx)(t.li,{children:"Compare the proportion of students from Sixth College who have taken DSC 10 and the proportion of students from Muir College who have taken DSC 10."}),"\n"]}),"\n",(0,s.jsxs)(n,{children:[(0,s.jsx)("summary",{children:"Answer"}),(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsx)(t.li,{children:"Hypothesis Test."}),"\n",(0,s.jsx)(t.li,{children:"Permutation Test."}),"\n"]}),(0,s.jsxs)(t.admonition,{type:"tip",children:[(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"Method 1:"}),"\nThink about whether you need one column or two columns of data to perform the task."]}),(0,s.jsx)(t.p,{children:"If you only need one column of data (e.g. head/tail), then it is a hypothesis test. If you need two columns (one with labels and one with values), then it is a permutation test."}),(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"Method 2:"}),"\nIf you can find the proportion of group B by only knowing the proportion of group A, then it is a hypothesis test. For instance, in the first scenario, since we know that DSC 10 students like either labs or homework, we can calculate the proportion of students who preferred labs by subtracting the proportion of students who preferred homework from the whole proportion (100%)."]}),(0,s.jsx)(t.p,{children:"However, for the second scenario, we cannot infer one proportion from another. Thus, it is a permutation test."})]})]})]})}function d(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8597:(e,t,n)=>{n.d(t,{A:()=>o});n(6540);var s=n(4848);const o=e=>{let{data:t}=e,n=[],o=[],r="",i=[];if(t){const e=JSON.parse(t);n=e.columns||[],o=e.data||[],r=e.indexName||"Index",i=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:r}),n.map(((e,t)=>(0,s.jsx)("th",{children:e},t)))]})}),(0,s.jsx)("tbody",{children:o.map(((e,t)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:i[t]}),e.map(((e,t)=>{return(0,s.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},t);var n}))]},t)))})]})})}},5158:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(6540),o=n(4848);const r=function(e){let{src:t,sourceLink:n,aspectRatio:r=16/9}=e;const[i,c]=(0,s.useState)(0),[a,l]=(0,s.useState)(0),h=(0,s.useRef)(null);return(0,s.useEffect)((()=>{const e=()=>{if(h.current){const e=h.current.offsetWidth;l(e/r)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[r]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:h,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,o.jsx)("iframe",{src:t,style:{width:"100%",height:`${a}px`,border:"0",allowFullScreen:!0}},i)}),(0,o.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,o.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,o.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,o.jsx)("button",{onClick:()=>{c((e=>e+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#45a049",onMouseOut:e=>e.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},8453:(e,t,n)=>{n.d(t,{R:()=>i,x:()=>c});var s=n(6540);const o={},r=s.createContext(o);function i(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d9ae1e76.9da90fe2.js b/assets/js/d9ae1e76.9da90fe2.js new file mode 100644 index 00000000..d92099f9 --- /dev/null +++ b/assets/js/d9ae1e76.9da90fe2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3113],{921:e=>{e.exports=JSON.parse('{"archive":{"blogPosts":[{"id":"welcome","metadata":{"permalink":"/bpd-reference/blog/welcome","source":"@site/blog/2021-08-26-welcome/index.md","title":"Welcome","description":"Docusaurus blogging features are powered by the blog plugin.","date":"2021-08-26T00:00:00.000Z","tags":[{"label":"facebook","permalink":"/bpd-reference/blog/tags/facebook"},{"label":"hello","permalink":"/bpd-reference/blog/tags/hello"},{"label":"docusaurus","permalink":"/bpd-reference/blog/tags/docusaurus"}],"readingTime":0.405,"hasTruncateMarker":false,"authors":[{"name":"S\xe9bastien Lorber","title":"Docusaurus maintainer","url":"https://sebastienlorber.com","imageURL":"https://github.com/slorber.png","key":"slorber"},{"name":"Yangshun Tay","title":"Front End Engineer @ Facebook","url":"https://github.com/yangshun","imageURL":"https://github.com/yangshun.png","key":"yangshun"}],"frontMatter":{"slug":"welcome","title":"Welcome","authors":["slorber","yangshun"],"tags":["facebook","hello","docusaurus"]},"unlisted":false,"nextItem":{"title":"MDX Blog Post","permalink":"/bpd-reference/blog/mdx-blog-post"}},"content":"[Docusaurus blogging features](https://docusaurus.io/docs/blog) are powered by the [blog plugin](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog).\\n\\nSimply add Markdown files (or folders) to the `blog` directory.\\n\\nRegular blog authors can be added to `authors.yml`.\\n\\nThe blog post date can be extracted from filenames, such as:\\n\\n- `2019-05-30-welcome.md`\\n- `2019-05-30-welcome/index.md`\\n\\nA blog post folder can be convenient to co-locate blog post images:\\n\\n![Docusaurus Plushie](./docusaurus-plushie-banner.jpeg)\\n\\nThe blog supports tags as well!\\n\\n**And if you don\'t want a blog**: just delete this directory, and use `blog: false` in your Docusaurus config."},{"id":"mdx-blog-post","metadata":{"permalink":"/bpd-reference/blog/mdx-blog-post","source":"@site/blog/2021-08-01-mdx-blog-post.mdx","title":"MDX Blog Post","description":"Blog posts support Docusaurus Markdown features, such as MDX.","date":"2021-08-01T00:00:00.000Z","tags":[{"label":"docusaurus","permalink":"/bpd-reference/blog/tags/docusaurus"}],"readingTime":0.175,"hasTruncateMarker":false,"authors":[{"name":"S\xe9bastien Lorber","title":"Docusaurus maintainer","url":"https://sebastienlorber.com","imageURL":"https://github.com/slorber.png","key":"slorber"}],"frontMatter":{"slug":"mdx-blog-post","title":"MDX Blog Post","authors":["slorber"],"tags":["docusaurus"]},"unlisted":false,"prevItem":{"title":"Welcome","permalink":"/bpd-reference/blog/welcome"},"nextItem":{"title":"Long Blog Post","permalink":"/bpd-reference/blog/long-blog-post"}},"content":"Blog posts support [Docusaurus Markdown features](https://docusaurus.io/docs/markdown-features), such as [MDX](https://mdxjs.com/).\\n\\n:::tip\\n\\nUse the power of React to create interactive blog posts.\\n\\n```js\\n<button onClick={() => alert(\'button clicked!\')}>Click me!</button>\\n```\\n\\n<button onClick={() => alert(\'button clicked!\')}>Click me!</button>\\n\\n:::"},{"id":"long-blog-post","metadata":{"permalink":"/bpd-reference/blog/long-blog-post","source":"@site/blog/2019-05-29-long-blog-post.md","title":"Long Blog Post","description":"This is the summary of a very long blog post,","date":"2019-05-29T00:00:00.000Z","tags":[{"label":"hello","permalink":"/bpd-reference/blog/tags/hello"},{"label":"docusaurus","permalink":"/bpd-reference/blog/tags/docusaurus"}],"readingTime":2.05,"hasTruncateMarker":true,"authors":[{"name":"Endilie Yacop Sucipto","title":"Maintainer of Docusaurus","url":"https://github.com/endiliey","imageURL":"https://github.com/endiliey.png","key":"endi"}],"frontMatter":{"slug":"long-blog-post","title":"Long Blog Post","authors":"endi","tags":["hello","docusaurus"]},"unlisted":false,"prevItem":{"title":"MDX Blog Post","permalink":"/bpd-reference/blog/mdx-blog-post"},"nextItem":{"title":"First Blog Post","permalink":"/bpd-reference/blog/first-blog-post"}},"content":"This is the summary of a very long blog post,\\n\\nUse a `\x3c!--` `truncate` `--\x3e` comment to limit blog post size in the list view.\\n\\n\x3c!--truncate--\x3e\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\n\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet"},{"id":"first-blog-post","metadata":{"permalink":"/bpd-reference/blog/first-blog-post","source":"@site/blog/2019-05-28-first-blog-post.md","title":"First Blog Post","description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet","date":"2019-05-28T00:00:00.000Z","tags":[{"label":"hola","permalink":"/bpd-reference/blog/tags/hola"},{"label":"docusaurus","permalink":"/bpd-reference/blog/tags/docusaurus"}],"readingTime":0.12,"hasTruncateMarker":false,"authors":[{"name":"Gao Wei","title":"Docusaurus Core Team","url":"https://github.com/wgao19","image_url":"https://github.com/wgao19.png","imageURL":"https://github.com/wgao19.png"}],"frontMatter":{"slug":"first-blog-post","title":"First Blog Post","authors":{"name":"Gao Wei","title":"Docusaurus Core Team","url":"https://github.com/wgao19","image_url":"https://github.com/wgao19.png","imageURL":"https://github.com/wgao19.png"},"tags":["hola","docusaurus"]},"unlisted":false,"prevItem":{"title":"Long Blog Post","permalink":"/bpd-reference/blog/long-blog-post"}},"content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet"}]}}')}}]); \ No newline at end of file diff --git a/assets/js/d9ae1e76.e7ed22dc.js b/assets/js/d9ae1e76.e7ed22dc.js deleted file mode 100644 index f067a5b0..00000000 --- a/assets/js/d9ae1e76.e7ed22dc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3113],{921:e=>{e.exports=JSON.parse('{"archive":{"blogPosts":[{"id":"welcome","metadata":{"permalink":"/bpd-reference/blog/welcome","source":"@site/blog/2021-08-26-welcome/index.md","title":"Welcome","description":"Docusaurus blogging features are powered by the blog plugin.","date":"2021-08-26T00:00:00.000Z","tags":[{"label":"facebook","permalink":"/bpd-reference/blog/tags/facebook"},{"label":"hello","permalink":"/bpd-reference/blog/tags/hello"},{"label":"docusaurus","permalink":"/bpd-reference/blog/tags/docusaurus"}],"readingTime":0.405,"hasTruncateMarker":false,"authors":[{"name":"S\xe9bastien Lorber","title":"Docusaurus maintainer","url":"https://sebastienlorber.com","imageURL":"https://github.com/slorber.png","key":"slorber"},{"name":"Yangshun Tay","title":"Front End Engineer @ Facebook","url":"https://github.com/yangshun","imageURL":"https://github.com/yangshun.png","key":"yangshun"}],"frontMatter":{"slug":"welcome","title":"Welcome","authors":["slorber","yangshun"],"tags":["facebook","hello","docusaurus"]},"unlisted":false,"nextItem":{"title":"MDX Blog Post","permalink":"/bpd-reference/blog/mdx-blog-post"}},"content":"[Docusaurus blogging features](https://docusaurus.io/docs/blog) are powered by the [blog plugin](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog).\\r\\n\\r\\nSimply add Markdown files (or folders) to the `blog` directory.\\r\\n\\r\\nRegular blog authors can be added to `authors.yml`.\\r\\n\\r\\nThe blog post date can be extracted from filenames, such as:\\r\\n\\r\\n- `2019-05-30-welcome.md`\\r\\n- `2019-05-30-welcome/index.md`\\r\\n\\r\\nA blog post folder can be convenient to co-locate blog post images:\\r\\n\\r\\n![Docusaurus Plushie](./docusaurus-plushie-banner.jpeg)\\r\\n\\r\\nThe blog supports tags as well!\\r\\n\\r\\n**And if you don\'t want a blog**: just delete this directory, and use `blog: false` in your Docusaurus config."},{"id":"mdx-blog-post","metadata":{"permalink":"/bpd-reference/blog/mdx-blog-post","source":"@site/blog/2021-08-01-mdx-blog-post.mdx","title":"MDX Blog Post","description":"Blog posts support Docusaurus Markdown features, such as MDX.","date":"2021-08-01T00:00:00.000Z","tags":[{"label":"docusaurus","permalink":"/bpd-reference/blog/tags/docusaurus"}],"readingTime":0.175,"hasTruncateMarker":false,"authors":[{"name":"S\xe9bastien Lorber","title":"Docusaurus maintainer","url":"https://sebastienlorber.com","imageURL":"https://github.com/slorber.png","key":"slorber"}],"frontMatter":{"slug":"mdx-blog-post","title":"MDX Blog Post","authors":["slorber"],"tags":["docusaurus"]},"unlisted":false,"prevItem":{"title":"Welcome","permalink":"/bpd-reference/blog/welcome"},"nextItem":{"title":"Long Blog Post","permalink":"/bpd-reference/blog/long-blog-post"}},"content":"Blog posts support [Docusaurus Markdown features](https://docusaurus.io/docs/markdown-features), such as [MDX](https://mdxjs.com/).\\r\\n\\r\\n:::tip\\r\\n\\r\\nUse the power of React to create interactive blog posts.\\r\\n\\r\\n```js\\r\\n<button onClick={() => alert(\'button clicked!\')}>Click me!</button>\\r\\n```\\r\\n\\r\\n<button onClick={() => alert(\'button clicked!\')}>Click me!</button>\\r\\n\\r\\n:::"},{"id":"long-blog-post","metadata":{"permalink":"/bpd-reference/blog/long-blog-post","source":"@site/blog/2019-05-29-long-blog-post.md","title":"Long Blog Post","description":"This is the summary of a very long blog post,","date":"2019-05-29T00:00:00.000Z","tags":[{"label":"hello","permalink":"/bpd-reference/blog/tags/hello"},{"label":"docusaurus","permalink":"/bpd-reference/blog/tags/docusaurus"}],"readingTime":2.05,"hasTruncateMarker":true,"authors":[{"name":"Endilie Yacop Sucipto","title":"Maintainer of Docusaurus","url":"https://github.com/endiliey","imageURL":"https://github.com/endiliey.png","key":"endi"}],"frontMatter":{"slug":"long-blog-post","title":"Long Blog Post","authors":"endi","tags":["hello","docusaurus"]},"unlisted":false,"prevItem":{"title":"MDX Blog Post","permalink":"/bpd-reference/blog/mdx-blog-post"},"nextItem":{"title":"First Blog Post","permalink":"/bpd-reference/blog/first-blog-post"}},"content":"This is the summary of a very long blog post,\\r\\n\\r\\nUse a `\x3c!--` `truncate` `--\x3e` comment to limit blog post size in the list view.\\r\\n\\r\\n\x3c!--truncate--\x3e\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet\\r\\n\\r\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet"},{"id":"first-blog-post","metadata":{"permalink":"/bpd-reference/blog/first-blog-post","source":"@site/blog/2019-05-28-first-blog-post.md","title":"First Blog Post","description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet","date":"2019-05-28T00:00:00.000Z","tags":[{"label":"hola","permalink":"/bpd-reference/blog/tags/hola"},{"label":"docusaurus","permalink":"/bpd-reference/blog/tags/docusaurus"}],"readingTime":0.12,"hasTruncateMarker":false,"authors":[{"name":"Gao Wei","title":"Docusaurus Core Team","url":"https://github.com/wgao19","image_url":"https://github.com/wgao19.png","imageURL":"https://github.com/wgao19.png"}],"frontMatter":{"slug":"first-blog-post","title":"First Blog Post","authors":{"name":"Gao Wei","title":"Docusaurus Core Team","url":"https://github.com/wgao19","image_url":"https://github.com/wgao19.png","imageURL":"https://github.com/wgao19.png"},"tags":["hola","docusaurus"]},"unlisted":false,"prevItem":{"title":"Long Blog Post","permalink":"/bpd-reference/blog/long-blog-post"}},"content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet"}]}}')}}]); \ No newline at end of file diff --git a/assets/js/d9f32620.932c5f37.js b/assets/js/d9f32620.7d0f45aa.js similarity index 96% rename from assets/js/d9f32620.932c5f37.js rename to assets/js/d9f32620.7d0f45aa.js index 5ab77a53..2733eb68 100644 --- a/assets/js/d9f32620.932c5f37.js +++ b/assets/js/d9f32620.7d0f45aa.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5557],{7447:(e,o,n)=>{n.r(o),n.d(o,{assets:()=>c,contentTitle:()=>l,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>u});var s=n(4848),t=n(8453);const r={slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},l=void 0,a={permalink:"/bpd-reference/blog/welcome",source:"@site/blog/2021-08-26-welcome/index.md",title:"Welcome",description:"Docusaurus blogging features are powered by the blog plugin.",date:"2021-08-26T00:00:00.000Z",tags:[{label:"facebook",permalink:"/bpd-reference/blog/tags/facebook"},{label:"hello",permalink:"/bpd-reference/blog/tags/hello"},{label:"docusaurus",permalink:"/bpd-reference/blog/tags/docusaurus"}],readingTime:.405,hasTruncateMarker:!1,authors:[{name:"S\xe9bastien Lorber",title:"Docusaurus maintainer",url:"https://sebastienlorber.com",imageURL:"https://github.com/slorber.png",key:"slorber"},{name:"Yangshun Tay",title:"Front End Engineer @ Facebook",url:"https://github.com/yangshun",imageURL:"https://github.com/yangshun.png",key:"yangshun"}],frontMatter:{slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},unlisted:!1,nextItem:{title:"MDX Blog Post",permalink:"/bpd-reference/blog/mdx-blog-post"}},c={authorsImageUrls:[void 0,void 0]},u=[];function i(e){const o={a:"a",code:"code",img:"img",li:"li",p:"p",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/blog",children:"Docusaurus blogging features"})," are powered by the ",(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog",children:"blog plugin"}),"."]}),"\n",(0,s.jsxs)(o.p,{children:["Simply add Markdown files (or folders) to the ",(0,s.jsx)(o.code,{children:"blog"})," directory."]}),"\n",(0,s.jsxs)(o.p,{children:["Regular blog authors can be added to ",(0,s.jsx)(o.code,{children:"authors.yml"}),"."]}),"\n",(0,s.jsx)(o.p,{children:"The blog post date can be extracted from filenames, such as:"}),"\n",(0,s.jsxs)(o.ul,{children:["\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome.md"})}),"\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome/index.md"})}),"\n"]}),"\n",(0,s.jsx)(o.p,{children:"A blog post folder can be convenient to co-locate blog post images:"}),"\n",(0,s.jsx)(o.p,{children:(0,s.jsx)(o.img,{alt:"Docusaurus Plushie",src:n(5693).A+"",width:"1500",height:"500"})}),"\n",(0,s.jsx)(o.p,{children:"The blog supports tags as well!"}),"\n",(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.strong,{children:"And if you don't want a blog"}),": just delete this directory, and use ",(0,s.jsx)(o.code,{children:"blog: false"})," in your Docusaurus config."]})]})}function d(e={}){const{wrapper:o}={...(0,t.R)(),...e.components};return o?(0,s.jsx)(o,{...e,children:(0,s.jsx)(i,{...e})}):i(e)}},5693:(e,o,n)=>{n.d(o,{A:()=>s});const s=n.p+"assets/images/docusaurus-plushie-banner-a60f7593abca1e3eef26a9afa244e4fb.jpeg"},8453:(e,o,n)=>{n.d(o,{R:()=>l,x:()=>a});var s=n(6540);const t={},r=s.createContext(t);function l(e){const o=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function a(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(r.Provider,{value:o},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5557],{7447:(e,o,n)=>{n.r(o),n.d(o,{assets:()=>c,contentTitle:()=>l,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>u});var s=n(4848),t=n(8453);const r={slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},l=void 0,a={permalink:"/bpd-reference/blog/welcome",source:"@site/blog/2021-08-26-welcome/index.md",title:"Welcome",description:"Docusaurus blogging features are powered by the blog plugin.",date:"2021-08-26T00:00:00.000Z",tags:[{label:"facebook",permalink:"/bpd-reference/blog/tags/facebook"},{label:"hello",permalink:"/bpd-reference/blog/tags/hello"},{label:"docusaurus",permalink:"/bpd-reference/blog/tags/docusaurus"}],readingTime:.405,hasTruncateMarker:!1,authors:[{name:"S\xe9bastien Lorber",title:"Docusaurus maintainer",url:"https://sebastienlorber.com",imageURL:"https://github.com/slorber.png",key:"slorber"},{name:"Yangshun Tay",title:"Front End Engineer @ Facebook",url:"https://github.com/yangshun",imageURL:"https://github.com/yangshun.png",key:"yangshun"}],frontMatter:{slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},unlisted:!1,nextItem:{title:"MDX Blog Post",permalink:"/bpd-reference/blog/mdx-blog-post"}},c={authorsImageUrls:[void 0,void 0]},u=[];function i(e){const o={a:"a",code:"code",img:"img",li:"li",p:"p",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/blog",children:"Docusaurus blogging features"})," are powered by the ",(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog",children:"blog plugin"}),"."]}),"\n",(0,s.jsxs)(o.p,{children:["Simply add Markdown files (or folders) to the ",(0,s.jsx)(o.code,{children:"blog"})," directory."]}),"\n",(0,s.jsxs)(o.p,{children:["Regular blog authors can be added to ",(0,s.jsx)(o.code,{children:"authors.yml"}),"."]}),"\n",(0,s.jsx)(o.p,{children:"The blog post date can be extracted from filenames, such as:"}),"\n",(0,s.jsxs)(o.ul,{children:["\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome.md"})}),"\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome/index.md"})}),"\n"]}),"\n",(0,s.jsx)(o.p,{children:"A blog post folder can be convenient to co-locate blog post images:"}),"\n",(0,s.jsx)(o.p,{children:(0,s.jsx)(o.img,{alt:"Docusaurus Plushie",src:n(5237).A+"",width:"1500",height:"500"})}),"\n",(0,s.jsx)(o.p,{children:"The blog supports tags as well!"}),"\n",(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.strong,{children:"And if you don't want a blog"}),": just delete this directory, and use ",(0,s.jsx)(o.code,{children:"blog: false"})," in your Docusaurus config."]})]})}function d(e={}){const{wrapper:o}={...(0,t.R)(),...e.components};return o?(0,s.jsx)(o,{...e,children:(0,s.jsx)(i,{...e})}):i(e)}},5237:(e,o,n)=>{n.d(o,{A:()=>s});const s=n.p+"assets/images/docusaurus-plushie-banner-a60f7593abca1e3eef26a9afa244e4fb.jpeg"},8453:(e,o,n)=>{n.d(o,{R:()=>l,x:()=>a});var s=n(6540);const t={},r=s.createContext(t);function l(e){const o=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function a(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(r.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/dcbe5aac.70a12792.js b/assets/js/dcbe5aac.70a12792.js new file mode 100644 index 00000000..c9d69e66 --- /dev/null +++ b/assets/js/dcbe5aac.70a12792.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7214],{4433:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>a,metadata:()=>c,toc:()=>l});var t=n(4848),r=n(8453),i=(n(8597),n(8205));const a={sidebar_position:3},o=void 0,c={id:"documentation/series-methods/ser.min()",title:"ser.min()",description:"ser.min()",source:"@site/docs/documentation/series-methods/ser.min().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.min()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.min()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.min().md",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3},sidebar:"docsSidebar",previous:{title:"ser.max()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.max()"},next:{title:"ser.sum()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.sum()"}},d={},l=[];function m(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.min()"}),"\n",(0,t.jsx)("div",{className:"base",children:(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Returns the minimum of the values in the Series."})})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,t.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser.min()\n"})}),"\n",(0,t.jsx)(s.p,{children:"0.25"})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],i="",a=[];if(s){const e=JSON.parse(s);n=e.columns||[],r=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:i}),n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:a[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],i="",a="";if(s)try{const e=JSON.parse(s);i=e.name||"",a=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>o});var t=n(6540);const r={},i=t.createContext(r);function a(e){const s=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),t.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/dcbe5aac.ce3fa403.js b/assets/js/dcbe5aac.ce3fa403.js deleted file mode 100644 index 448bc504..00000000 --- a/assets/js/dcbe5aac.ce3fa403.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7214],{4433:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>a,metadata:()=>c,toc:()=>l});var t=n(4848),r=n(8453),i=(n(8597),n(8205));const a={sidebar_position:3},o=void 0,c={id:"documentation/series-methods/ser.min()",title:"ser.min()",description:"ser.min()",source:"@site/docs/documentation/series-methods/ser.min().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.min()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.min()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.min().md",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3},sidebar:"docsSidebar",previous:{title:"ser.max()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.max()"},next:{title:"ser.sum()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.sum()"}},d={},l=[];function m(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.min()"}),"\n",(0,t.jsx)("div",{className:"base",children:(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Returns the minimum of the values in the Series."})})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,t.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"weight_ser.min()\n"})}),"\n",(0,t.jsx)(s.p,{children:"0.25"})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],i="",a=[];if(s){const e=JSON.parse(s);n=e.columns||[],r=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:i}),n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:a[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},s);var n}))]},s)))})]})})}},8205:(e,s,n)=>{n.d(s,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:s}=e,n=[],r=[],i="",a="";if(s)try{const e=JSON.parse(s);i=e.name||"",a=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=r.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>o});var t=n(6540);const r={},i=t.createContext(r);function a(e){const s=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),t.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/dd3b6db1.befa0697.js b/assets/js/dd3b6db1.3bb3e7b5.js similarity index 97% rename from assets/js/dd3b6db1.befa0697.js rename to assets/js/dd3b6db1.3bb3e7b5.js index 3334113b..da6948d1 100644 --- a/assets/js/dd3b6db1.befa0697.js +++ b/assets/js/dd3b6db1.3bb3e7b5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2105],{1654:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>i,default:()=>p,frontMatter:()=>a,metadata:()=>o,toc:()=>c});var s=n(4848),r=n(8453);n(8597),n(8205);const a={sidebar_position:4},i=void 0,o={id:"documentation/plotting/Line Plot",title:"Line Plot",description:"df.plot(kind='line', x = datacol, y=datacol)",source:"@site/docs/documentation/plotting/Line Plot.md",sourceDirName:"documentation/plotting",slug:"/documentation/plotting/Line Plot",permalink:"/bpd-reference/docs/documentation/plotting/Line Plot",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/plotting/Line Plot.md",tags:[],version:"current",sidebarPosition:4,frontMatter:{sidebar_position:4},sidebar:"docsSidebar",previous:{title:"Bar Plot",permalink:"/bpd-reference/docs/documentation/plotting/Bar Plot"},next:{title:"for-loops",permalink:"/bpd-reference/docs/documentation/for-loops/"}},d={},c=[];function l(e){const t={a:"a",code:"code",hr:"hr",img:"img",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"df.plot(kind='line', x = data_col, y=data_col)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:"Create a line plot using a DataFrame."})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["kind : ",(0,s.jsx)("em",{children:"string"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"To create a scatter plot, use kind='line'"}),(0,s.jsxs)("dd",{className:"parameter",children:["x : ",(0,s.jsx)("em",{children:"label"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Column for horizontal coordinates of each point."}),(0,s.jsxs)("dd",{className:"parameter",children:["y : ",(0,s.jsx)("em",{children:"label"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Column for vertical coordinates of each point.."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsxs)("dd",{children:["plot - Matplotlib plot created using ",(0,s.jsx)(t.a,{href:"https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.html",children:"parameters"}),"."]}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"Matplotlib plot"})]})]}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:"pets.sort_values(by='Age').plot(kind='line', x='Age', y='Weight')\n"})}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{alt:"Line plot example 1",src:n(5220).A+"",width:"543",height:"432"})})]})}function p(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8597:(e,t,n)=>{n.d(t,{A:()=>r});n(6540);var s=n(4848);const r=e=>{let{data:t}=e,n=[],r=[],a="",i=[];if(t){const e=JSON.parse(t);n=e.columns||[],r=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:a}),n.map(((e,t)=>(0,s.jsx)("th",{children:e},t)))]})}),(0,s.jsx)("tbody",{children:r.map(((e,t)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:i[t]}),e.map(((e,t)=>{return(0,s.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},t);var n}))]},t)))})]})})}},8205:(e,t,n)=>{n.d(t,{A:()=>r});n(6540);var s=n(4848);const r=e=>{let{data:t}=e,n=[],r=[],a="",i="";if(t)try{const e=JSON.parse(t);a=e.name||"",i=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=r.map((e=>JSON.stringify(e)));return(0,s.jsxs)("div",{className:"series-container",children:[(0,s.jsx)("ul",{className:"series-list",children:o.map(((e,t)=>(0,s.jsxs)("li",{className:"series-item",children:[(0,s.jsx)("span",{className:"series-index",children:n[t]}),(0,s.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},t)))}),(0,s.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},5220:(e,t,n)=>{n.d(t,{A:()=>s});const s=n.p+"assets/images/lineex1-bd977f88db38952c1460afeb3dd0635d.png"},8453:(e,t,n)=>{n.d(t,{R:()=>i,x:()=>o});var s=n(6540);const r={},a=s.createContext(r);function i(e){const t=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2105],{1654:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>i,default:()=>p,frontMatter:()=>a,metadata:()=>o,toc:()=>c});var s=n(4848),r=n(8453);n(8597),n(8205);const a={sidebar_position:4},i=void 0,o={id:"documentation/plotting/Line Plot",title:"Line Plot",description:"df.plot(kind='line', x = datacol, y=datacol)",source:"@site/docs/documentation/plotting/Line Plot.md",sourceDirName:"documentation/plotting",slug:"/documentation/plotting/Line Plot",permalink:"/bpd-reference/docs/documentation/plotting/Line Plot",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/plotting/Line Plot.md",tags:[],version:"current",sidebarPosition:4,frontMatter:{sidebar_position:4},sidebar:"docsSidebar",previous:{title:"Bar Plot",permalink:"/bpd-reference/docs/documentation/plotting/Bar Plot"},next:{title:"for-loops",permalink:"/bpd-reference/docs/documentation/for-loops/"}},d={},c=[];function l(e){const t={a:"a",code:"code",hr:"hr",img:"img",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"df.plot(kind='line', x = data_col, y=data_col)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:"Create a line plot using a DataFrame."})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["kind : ",(0,s.jsx)("em",{children:"string"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"To create a scatter plot, use kind='line'"}),(0,s.jsxs)("dd",{className:"parameter",children:["x : ",(0,s.jsx)("em",{children:"label"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Column for horizontal coordinates of each point."}),(0,s.jsxs)("dd",{className:"parameter",children:["y : ",(0,s.jsx)("em",{children:"label"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Column for vertical coordinates of each point.."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsxs)("dd",{children:["plot - Matplotlib plot created using ",(0,s.jsx)(t.a,{href:"https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.html",children:"parameters"}),"."]}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"Matplotlib plot"})]})]}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:"pets.sort_values(by='Age').plot(kind='line', x='Age', y='Weight')\n"})}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{alt:"Line plot example 1",src:n(8940).A+"",width:"543",height:"432"})})]})}function p(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8597:(e,t,n)=>{n.d(t,{A:()=>r});n(6540);var s=n(4848);const r=e=>{let{data:t}=e,n=[],r=[],a="",i=[];if(t){const e=JSON.parse(t);n=e.columns||[],r=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:a}),n.map(((e,t)=>(0,s.jsx)("th",{children:e},t)))]})}),(0,s.jsx)("tbody",{children:r.map(((e,t)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:i[t]}),e.map(((e,t)=>{return(0,s.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},t);var n}))]},t)))})]})})}},8205:(e,t,n)=>{n.d(t,{A:()=>r});n(6540);var s=n(4848);const r=e=>{let{data:t}=e,n=[],r=[],a="",i="";if(t)try{const e=JSON.parse(t);a=e.name||"",i=e.dtype||"Unknown type",n=e.index||[],r=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=r.map((e=>JSON.stringify(e)));return(0,s.jsxs)("div",{className:"series-container",children:[(0,s.jsx)("ul",{className:"series-list",children:o.map(((e,t)=>(0,s.jsxs)("li",{className:"series-item",children:[(0,s.jsx)("span",{className:"series-index",children:n[t]}),(0,s.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},t)))}),(0,s.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},8940:(e,t,n)=>{n.d(t,{A:()=>s});const s=n.p+"assets/images/lineex1-bd977f88db38952c1460afeb3dd0635d.png"},8453:(e,t,n)=>{n.d(t,{R:()=>i,x:()=>o});var s=n(6540);const r={},a=s.createContext(r);function i(e){const t=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/dfefbedb.df2ccdca.js b/assets/js/dfefbedb.df2ccdca.js deleted file mode 100644 index 13afaa38..00000000 --- a/assets/js/dfefbedb.df2ccdca.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2917],{2760:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>d,toc:()=>l});var n=t(4848),r=t(8453),a=t(8597);t(8205);const i={sidebar_position:8},o=void 0,d={id:"documentation/for-loops/for-loops",title:"for-loops",description:"for \\ in \\:",source:"@site/docs/documentation/for-loops/for-loops.md",sourceDirName:"documentation/for-loops",slug:"/documentation/for-loops/",permalink:"/bpd-reference/docs/documentation/for-loops/",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/for-loops/for-loops.md",tags:[],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8},sidebar:"docsSidebar",previous:{title:"Line Plot",permalink:"/bpd-reference/docs/documentation/plotting/Line Plot"},next:{title:"if-statements",permalink:"/bpd-reference/docs/category/if-statements"}},c={},l=[];function p(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.p,{children:[(0,n.jsxs)("code",{children:["for <loop variable> in <sequence>: ",(0,n.jsx)("br",{})," "]}),"\r\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,n.jsx)("code",{children:" <loop body> "})]}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Performs the loop body for every element of the sequence."})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Components:"}),(0,n.jsxs)("dd",{className:"parameter",children:["loop variable : ",(0,n.jsx)("em",{children:"variable"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"Variable that will take on the value of every element in the\r\nsequence at some point in the loop. Any valid variable is acceptable."}),(0,n.jsxs)("dd",{className:"parameter",children:["sequence : ",(0,n.jsx)("em",{children:"iterable object"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"e.g. Arrays, Lists, Strings"}),(0,n.jsxs)("dd",{className:"parameter",children:["loop body : ",(0,n.jsx)("em",{})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"Code to be executed for every element in sequence. "}),(0,n.jsx)("dt",{className:"term",children:"Results:"}),(0,n.jsx)("dd",{children:"Output of loop body"})]})]}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"pets\n"})}),"\n",(0,n.jsx)(a.A,{data:'{"columns":["ID","Species","Age","Weight"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog",5.0,40.0],["cat_001","cat",0.2,1.5],["cat_002","cat",9.0,15.0],["dog_002","dog",2.0,80.0],["dog_003","dog",0.5,25.0],["ham_001","hamster",3.0,1.0],["ham_002","hamster",0.2,0.25],["cat_003","cat",0.0,10.0]]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"for i in np.arange(pets.shape[0]):\r\n chosen_pet = pets.iloc[i]\r\n pet_id = chosen_pet.get('ID')\r\n species = chosen_pet.get('Species')\r\n age = chosen_pet.get('Age')\r\n weight = chosen_pet.get('Weight')\r\n print(\"This is a \" + species + \" with pet id \" + str(pet_id) +', age ' + str(age) +', and weight '+str(weight))\n"})}),"\n",(0,n.jsxs)(s.p,{children:["This is a dog with pet id dog_001, age 5.0, and weight 40.0 ",(0,n.jsx)("br",{}),"\r\nThis is a cat with pet id cat_001, age 0.2, and weight 1.5 ",(0,n.jsx)("br",{}),"\r\nThis is a cat with pet id cat_002, age 9.0, and weight 15.0 ",(0,n.jsx)("br",{}),"\r\nThis is a dog with pet id dog_002, age 2.0, and weight 80.0 ",(0,n.jsx)("br",{}),"\r\nThis is a dog with pet id dog_003, age 0.5, and weight 25.0 ",(0,n.jsx)("br",{}),"\r\nThis is a hamster with pet id ham_001, age 3.0, and weight 1.0 ",(0,n.jsx)("br",{}),"\r\nThis is a hamster with pet id ham_002, age 0.2, and weight 0.25 ",(0,n.jsx)("br",{}),"\r\nThis is a cat with pet id cat_003, age 0.0, and weight 10.0"]})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],a="",i=[];if(s){const e=JSON.parse(s);t=e.columns||[],r=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:a}),t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:r.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:i[s]}),e.map(((e,s)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],a="",i="";if(s)try{const e=JSON.parse(s);a=e.name||"",i=e.dtype||"Unknown type",t=e.index||[],r=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=r.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:t[s]}),(0,n.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>i,x:()=>o});var n=t(6540);const r={},a=n.createContext(r);function i(e){const s=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),n.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/dfefbedb.f0f27122.js b/assets/js/dfefbedb.f0f27122.js new file mode 100644 index 00000000..984c968e --- /dev/null +++ b/assets/js/dfefbedb.f0f27122.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2917],{2760:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>d,toc:()=>l});var n=t(4848),a=t(8453),r=t(8597);t(8205);const i={sidebar_position:8},o=void 0,d={id:"documentation/for-loops/for-loops",title:"for-loops",description:"for \\ in \\:",source:"@site/docs/documentation/for-loops/for-loops.md",sourceDirName:"documentation/for-loops",slug:"/documentation/for-loops/",permalink:"/bpd-reference/docs/documentation/for-loops/",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/for-loops/for-loops.md",tags:[],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8},sidebar:"docsSidebar",previous:{title:"Line Plot",permalink:"/bpd-reference/docs/documentation/plotting/Line Plot"},next:{title:"if-statements",permalink:"/bpd-reference/docs/category/if-statements"}},c={},l=[];function p(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.p,{children:[(0,n.jsxs)("code",{children:["for <loop variable> in <sequence>: ",(0,n.jsx)("br",{})," "]}),"\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,n.jsx)("code",{children:" <loop body> "})]}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Performs the loop body for every element of the sequence."})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Components:"}),(0,n.jsxs)("dd",{className:"parameter",children:["loop variable : ",(0,n.jsx)("em",{children:"variable"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"Variable that will take on the value of every element in the\nsequence at some point in the loop. Any valid variable is acceptable."}),(0,n.jsxs)("dd",{className:"parameter",children:["sequence : ",(0,n.jsx)("em",{children:"iterable object"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"e.g. Arrays, Lists, Strings"}),(0,n.jsxs)("dd",{className:"parameter",children:["loop body : ",(0,n.jsx)("em",{})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"Code to be executed for every element in sequence. "}),(0,n.jsx)("dt",{className:"term",children:"Results:"}),(0,n.jsx)("dd",{children:"Output of loop body"})]})]}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"pets\n"})}),"\n",(0,n.jsx)(r.A,{data:'{"columns":["ID","Species","Age","Weight"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog",5.0,40.0],["cat_001","cat",0.2,1.5],["cat_002","cat",9.0,15.0],["dog_002","dog",2.0,80.0],["dog_003","dog",0.5,25.0],["ham_001","hamster",3.0,1.0],["ham_002","hamster",0.2,0.25],["cat_003","cat",0.0,10.0]]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"for i in np.arange(pets.shape[0]):\n chosen_pet = pets.iloc[i]\n pet_id = chosen_pet.get('ID')\n species = chosen_pet.get('Species')\n age = chosen_pet.get('Age')\n weight = chosen_pet.get('Weight')\n print(\"This is a \" + species + \" with pet id \" + str(pet_id) +', age ' + str(age) +', and weight '+str(weight))\n"})}),"\n",(0,n.jsxs)(s.p,{children:["This is a dog with pet id dog_001, age 5.0, and weight 40.0 ",(0,n.jsx)("br",{}),"\nThis is a cat with pet id cat_001, age 0.2, and weight 1.5 ",(0,n.jsx)("br",{}),"\nThis is a cat with pet id cat_002, age 9.0, and weight 15.0 ",(0,n.jsx)("br",{}),"\nThis is a dog with pet id dog_002, age 2.0, and weight 80.0 ",(0,n.jsx)("br",{}),"\nThis is a dog with pet id dog_003, age 0.5, and weight 25.0 ",(0,n.jsx)("br",{}),"\nThis is a hamster with pet id ham_001, age 3.0, and weight 1.0 ",(0,n.jsx)("br",{}),"\nThis is a hamster with pet id ham_002, age 0.2, and weight 0.25 ",(0,n.jsx)("br",{}),"\nThis is a cat with pet id cat_003, age 0.0, and weight 10.0"]})]})}function h(e={}){const{wrapper:s}={...(0,a.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>a});t(6540);var n=t(4848);const a=e=>{let{data:s}=e,t=[],a=[],r="",i=[];if(s){const e=JSON.parse(s);t=e.columns||[],a=e.data||[],r=e.indexName||"Index",i=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:r}),t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:a.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:i[s]}),e.map(((e,s)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>a});t(6540);var n=t(4848);const a=e=>{let{data:s}=e,t=[],a=[],r="",i="";if(s)try{const e=JSON.parse(s);r=e.name||"",i=e.dtype||"Unknown type",t=e.index||[],a=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=a.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:t[s]}),(0,n.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",i]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>i,x:()=>o});var n=t(6540);const a={},r=n.createContext(a);function i(e){const s=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),n.createElement(r.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/eaaf288f.4ffa00eb.js b/assets/js/eaaf288f.4ffa00eb.js deleted file mode 100644 index 529e51be..00000000 --- a/assets/js/eaaf288f.4ffa00eb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[9600],{4653:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>t,contentTitle:()=>r,default:()=>m,frontMatter:()=>a,metadata:()=>c,toc:()=>o});var s=i(4848),d=i(8453);const a={title:"Building and Organizing DataFrames"},r=void 0,c={id:"documentation/building-organizing/index",title:"Building and Organizing DataFrames",description:"Each function/method creates a new DataFrame. Remember to save it!",source:"@site/docs/documentation/building-organizing/index.md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/",permalink:"/bpd-reference/docs/documentation/building-organizing/",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/index.md",tags:[],version:"current",frontMatter:{title:"Building and Organizing DataFrames"},sidebar:"docsSidebar",previous:{title:"Intro",permalink:"/bpd-reference/docs/documentation/intro"},next:{title:"bpd.DataFrame()",permalink:"/bpd-reference/docs/documentation/building-organizing/bpd.DataFrame()"}},t={},o=[{value:"Manipulating",id:"manipulating",level:2},{value:"Indexing",id:"indexing",level:2},{value:"Organizing",id:"organizing",level:2},{value:"Merging",id:"merging",level:2}];function l(e){const n={a:"a",h2:"h2",p:"p",...(0,d.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"main-description",children:"Each function/method creates a new DataFrame. Remember to save it!"}),"\n",(0,s.jsx)(n.h2,{id:"manipulating",children:"Manipulating"}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"bpd.DataFrame()",children:(0,s.jsx)("code",{children:"bpd.DataFrame"})}),"()"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Creates an empty DataFrame."})})]}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"bpd.read_csv()",children:(0,s.jsx)("code",{children:"bpd.read_csv"})}),"(filepath)"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Read a comma-separated values (csv) file into DataFrame."})})]}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"df.assign()",children:(0,s.jsx)("code",{children:"df.assign"})}),"(name_of_column=column_data)"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Adds a new column to the DataFrame."})})]}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"df.drop()",children:(0,s.jsx)("code",{children:"df.drop"})}),"(columns=column_name or [col_1_name, ..., col_k_name])"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Drops a single column, or every column in a list of column names."})})]}),"\n",(0,s.jsx)(n.h2,{id:"indexing",children:"Indexing"}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"df.set_index()",children:(0,s.jsx)("code",{children:"df.set_index"})}),"(column_name)"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Moves a column to the index."})})]}),"\n",(0,s.jsx)(n.h2,{id:"organizing",children:"Organizing"}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"df.reset_index()",children:(0,s.jsx)("code",{children:"df.reset_index"})}),"(drop=False)"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Moves a column to the index."})})]}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"df.sort_values()",children:(0,s.jsx)("code",{children:"df.sort_values"})}),"(by=column_name, ascending=True)"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Sorts the entire DataFrame in ascending order by the values in the column."})})]}),"\n",(0,s.jsx)(n.h2,{id:"merging",children:"Merging"}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"df.merge()",children:(0,s.jsx)("code",{children:"df.merge"})}),"(right, how='inner', on=column, left_on=left_column, right_on=right_column, left_index=False, right_index=False)"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Merges two DataFrames by specified columns or indexes, using the specified type of merge."})})]})]})}function m(e={}){const{wrapper:n}={...(0,d.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>c});var s=i(6540);const d={},a=s.createContext(d);function r(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:r(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/eaaf288f.80006e89.js b/assets/js/eaaf288f.80006e89.js new file mode 100644 index 00000000..86985c86 --- /dev/null +++ b/assets/js/eaaf288f.80006e89.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[9600],{4653:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>t,contentTitle:()=>r,default:()=>m,frontMatter:()=>a,metadata:()=>c,toc:()=>o});var s=i(4848),d=i(8453);const a={title:"Building and Organizing DataFrames"},r=void 0,c={id:"documentation/building-organizing/index",title:"Building and Organizing DataFrames",description:"Each function/method creates a new DataFrame. Remember to save it!",source:"@site/docs/documentation/building-organizing/index.md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/",permalink:"/bpd-reference/docs/documentation/building-organizing/",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/index.md",tags:[],version:"current",frontMatter:{title:"Building and Organizing DataFrames"},sidebar:"docsSidebar",previous:{title:"Intro",permalink:"/bpd-reference/docs/documentation/intro"},next:{title:"bpd.DataFrame()",permalink:"/bpd-reference/docs/documentation/building-organizing/bpd.DataFrame()"}},t={},o=[{value:"Manipulating",id:"manipulating",level:2},{value:"Indexing",id:"indexing",level:2},{value:"Organizing",id:"organizing",level:2},{value:"Merging",id:"merging",level:2}];function l(e){const n={a:"a",h2:"h2",p:"p",...(0,d.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"main-description",children:"Each function/method creates a new DataFrame. Remember to save it!"}),"\n",(0,s.jsx)(n.h2,{id:"manipulating",children:"Manipulating"}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"bpd.DataFrame()",children:(0,s.jsx)("code",{children:"bpd.DataFrame"})}),"()"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Creates an empty DataFrame."})})]}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"bpd.read_csv()",children:(0,s.jsx)("code",{children:"bpd.read_csv"})}),"(filepath)"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Reads a CSV (comma-separated values) file into a DataFrame."})})]}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"df.assign()",children:(0,s.jsx)("code",{children:"df.assign"})}),"(name_of_column=column_data)"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Adds a new column to the DataFrame."})})]}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"df.drop()",children:(0,s.jsx)("code",{children:"df.drop"})}),"(columns=column_name or [col_1_name, ..., col_k_name])"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Drops a single column, or every column in a list of column names, from the DataFrame."})})]}),"\n",(0,s.jsx)(n.h2,{id:"indexing",children:"Indexing"}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"df.set_index()",children:(0,s.jsx)("code",{children:"df.set_index"})}),"(column_name)"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Moves a column to the DataFrame's index."})})]}),"\n",(0,s.jsx)(n.h2,{id:"organizing",children:"Organizing"}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"df.reset_index()",children:(0,s.jsx)("code",{children:"df.reset_index"})}),"(drop=False)"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Moves the index to a new column and uses the default index instead."})})]}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"df.sort_values()",children:(0,s.jsx)("code",{children:"df.sort_values"})}),"(by=column_name, ascending=True)"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Sorts the entire DataFrame in ascending order by the values in the column."})})]}),"\n",(0,s.jsx)(n.h2,{id:"merging",children:"Merging"}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsxs)("div",{className:"method-container",children:[(0,s.jsx)("div",{className:"method",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"df.merge()",children:(0,s.jsx)("code",{children:"df.merge"})}),"(right, how='inner', on=column, left_on=left_column, right_on=right_column, left_index=False, right_index=False)"]})}),(0,s.jsx)("div",{className:"description",children:(0,s.jsx)("p",{children:"Merges two DataFrames by specified columns or indexes, using the specified type of merge."})})]})]})}function m(e={}){const{wrapper:n}={...(0,d.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>c});var s=i(6540);const d={},a=s.createContext(d);function r(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:r(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f03ae67e.29f38469.js b/assets/js/f03ae67e.29f38469.js deleted file mode 100644 index 7bb1a60b..00000000 --- a/assets/js/f03ae67e.29f38469.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[972],{3007:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>h,contentTitle:()=>a,default:()=>p,frontMatter:()=>r,metadata:()=>l,toc:()=>c});var n=s(4848),i=s(8453),o=s(8597);s(5158);const r={sidebar_position:7,sidebar_label:"Hypothesis Test",title:"Hypothesis Test",tags:["querying","functions","for-loop","histogram"]},a=void 0,l={id:"statistical-inference/hypothesis_test",title:"Hypothesis Test",description:"Concept",source:"@site/docs/statistical-inference/hypothesis_test.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/hypothesis_test",permalink:"/bpd-reference/docs/statistical-inference/hypothesis_test",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/hypothesis_test.md",tags:[{label:"querying",permalink:"/bpd-reference/docs/tags/querying"},{label:"functions",permalink:"/bpd-reference/docs/tags/functions"},{label:"for-loop",permalink:"/bpd-reference/docs/tags/for-loop"},{label:"histogram",permalink:"/bpd-reference/docs/tags/histogram"}],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7,sidebar_label:"Hypothesis Test",title:"Hypothesis Test",tags:["querying","functions","for-loop","histogram"]},sidebar:"statsSidebar",previous:{title:"P-value",permalink:"/bpd-reference/docs/statistical-inference/p_value"},next:{title:"Spread of a Distribution",permalink:"/bpd-reference/docs/statistical-inference/spread_of_a_distribution"}},h={},c=[{value:"Concept",id:"concept",level:2},{value:"Code Example 1 (Difference)",id:"code-example-1-difference",level:2},{value:"1. State the question/hypothesis",id:"1-state-the-questionhypothesis",level:3},{value:"2. Calculate the overall proportion",id:"2-calculate-the-overall-proportion",level:3},{value:"3. Create a function to calculate test statistic",id:"3-create-a-function-to-calculate-test-statistic",level:3},{value:"4. Compute the observed statistic",id:"4-compute-the-observed-statistic",level:3},{value:"5. Simulate the hypothesis test under the null hypothesis",id:"5-simulate-the-hypothesis-test-under-the-null-hypothesis",level:3},{value:"6. Conclusion",id:"6-conclusion",level:3},{value:"7. Extra",id:"7-extra",level:3},{value:"Code Example 2 (TVD)",id:"code-example-2-tvd",level:2},{value:"1. State the question/hypothesis",id:"1-state-the-questionhypothesis-1",level:3},{value:"2. Create a function to calculate test statistic (TVD)",id:"2-create-a-function-to-calculate-test-statistic-tvd",level:3},{value:"3. Compute the observed statistic",id:"3-compute-the-observed-statistic",level:3},{value:"4. Simulate the hypothesis test under the null hypothesis",id:"4-simulate-the-hypothesis-test-under-the-null-hypothesis",level:3},{value:"5. Conclusion",id:"5-conclusion",level:3},{value:"6. Extra",id:"6-extra",level:3}];function d(e){const t={admonition:"admonition",annotation:"annotation",code:"code",em:"em",h2:"h2",h3:"h3",hr:"hr",img:"img",li:"li",math:"math",mo:"mo",mrow:"mrow",ol:"ol",p:"p",pre:"pre",semantics:"semantics",span:"span",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h2,{id:"concept",children:"Concept"}),"\n",(0,n.jsx)(t.admonition,{title:"Note \ud83c\udf1f",type:"note",children:(0,n.jsxs)(t.p,{children:["This page refers to the ",(0,n.jsx)(t.strong,{children:"standard"})," hypothesis test."]})}),"\n",(0,n.jsx)(t.admonition,{title:"Key Idea",type:"tip",children:(0,n.jsx)(t.p,{children:"We use a hypothesis test to test whether a sample was drawn from a population."})}),"\n",(0,n.jsxs)(t.admonition,{title:"Terminology",type:"info",children:[(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.strong,{children:"Hypothesis Test"}),": A process that test whether a sample was drawn from a population, given a population distribution and a sample."]}),(0,n.jsx)(t.p,{children:"To conduct a hypothesis test:"}),(0,n.jsxs)(t.ol,{children:["\n",(0,n.jsx)(t.li,{children:"Simulate the experiment many times under the assumption that the null hypothesis is true."}),"\n",(0,n.jsx)(t.li,{children:"Compute a test statistic on each of the simulated samples, as well as on the observed sample."}),"\n",(0,n.jsx)(t.li,{children:"Look at the resulting empirical distribution of test statistics and see where the observed test statistic falls. If it seems like an atypical value (too large or too small), we reject the null hypothesis; otherwise, we fail to reject the null."}),"\n"]})]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h2,{id:"code-example-1-difference",children:"Code Example 1 (Difference)"}),"\n",(0,n.jsx)(t.h3,{id:"1-state-the-questionhypothesis",children:"1. State the question/hypothesis"}),"\n",(0,n.jsxs)(t.admonition,{title:"Hypotheses",type:"info",children:[(0,n.jsx)(t.p,{children:"We will test the following pair of hypotheses at the standard p = 0.05 significance level."}),(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Null Hypothesis:"}),' The proportion of "white" dogs among dogs is ',(0,n.jsx)(t.strong,{children:"equal"}),' to the proportion of "white" pets in the overall population.']}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Alternative Hypothesis:"}),' The distribution of "white" dogs among dogs is ',(0,n.jsx)(t.strong,{children:"greater than"}),' the proportion of "white" pets in the overall population.']}),"\n"]})]}),"\n",(0,n.jsxs)(t.p,{children:['Since the alternative hypothesis is of the form "A is ',(0,n.jsx)(t.strong,{children:(0,n.jsx)(t.em,{children:"greater than"})}),' B," the ',(0,n.jsx)(t.strong,{children:"test statistic"})," should measure ",(0,n.jsx)(t.strong,{children:"signed difference"})," rather than absolute difference."]}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsxs)(t.span,{className:"katex",children:[(0,n.jsx)(t.span,{className:"katex-mathml",children:(0,n.jsx)(t.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(t.semantics,{children:[(0,n.jsx)(t.mrow,{children:(0,n.jsx)(t.mo,{children:"\u2234"})}),(0,n.jsx)(t.annotation,{encoding:"application/x-tex",children:"\\therefore"})]})})}),(0,n.jsx)(t.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(t.span,{className:"base",children:[(0,n.jsx)(t.span,{className:"strut",style:{height:"0.6922em"}}),(0,n.jsx)(t.span,{className:"mrel amsrm",children:"\u2234"})]})})]})," We use ",(0,n.jsx)(t.strong,{children:"the difference in proportions"})," of white dogs among dogs and white pets in the overall poplulation as the test statistic."]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"2-calculate-the-overall-proportion",children:"2. Calculate the overall proportion"}),"\n",(0,n.jsx)(t.p,{children:"We first compute the proportion of white pets in the overall population, which will be used for calculating the test statistic."}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"#Method 1: Obtain a series of boolean values (1s and 0s), and calculate the mean\r\noverall_prop = (full_pets.get('Color')=='white').mean()\r\n\r\n#Method 2: Query the DataFrame and obtain the proportion by using .shape[0]\r\n#overall_prop = full_pets[full_pets.get('Color')=='white'].shape[0]/full_pets.shape[0]\r\n\r\noverall_prop\n"})}),"\n",(0,n.jsx)(t.p,{children:"0.2631578947368421"}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"3-create-a-function-to-calculate-test-statistic",children:"3. Create a function to calculate test statistic"}),"\n",(0,n.jsx)(t.p,{children:"Create a function to calculate the test statistic during every trial of our hypothesis test."}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:'def difference_in_proportions(dogs_prop, overall_prop):\r\n """\r\n Calculate the difference in proportions of white dogs among dogs and white pets in the overall population.\r\n ---\r\n Input:\r\n dogs_prop: the proportion of white dogs among all dogs.\r\n overall_prop: the proportion of white pets in the overall population.\r\n ---\r\n Output:\r\n The difference in proportions of white dogs among dogs and white pets in the overall population.\r\n """\r\n return dogs_prop - overall_prop\n'})}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.em,{children:"Note: Although we can simply do this in the for-loop shown in the next step, we can practice good coding habits by separating our code into readable bits!"})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"4-compute-the-observed-statistic",children:"4. Compute the observed statistic"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"# Query the DataFrame to only include dogs\r\ndogs_df = full_pets[full_pets.get('Species') == 'dog']\r\n# Compute the observed proportion of white dogs among all dogs\r\nobs_dogs_prop = (dogs_df.get('Color') == 'white').mean()\r\n# Calculate the observed statistic\r\nobserved_stat = difference_in_proportions(obs_dogs_prop, overall_prop)\r\nobserved_stat\n"})}),"\n",(0,n.jsx)(t.p,{children:"0.18128654970760233"}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"5-simulate-the-hypothesis-test-under-the-null-hypothesis",children:"5. Simulate the hypothesis test under the null hypothesis"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:'n = 500 # Number of simulations.\r\ntest_statistics = np.array([]) # Array to keep track of the test statistic for each iteration.\r\n\r\n# Calculte the smaple size (number of dogs)\r\nsample_size = dogs_df.shape[0]\r\n\r\n# Under the null hypothesis, proportion of "white" dogs among dogs is equal to the proportion of white pets among the overall population\r\nmodel_proportions = np.array([obs_dogs_prop, 1-obs_dogs_prop]) \r\n\r\nfor i in np.arange(n): # Run the simulation `n` number of times\r\n \r\n # 1. Simulate the dogs distribution\r\n # Calculate the the proportion of white dogs among all dogs.\r\n simulation_proportion = np.random.multinomial(sample_size, model_proportions)[0] / sample_size\r\n \r\n # 2. Compute the test statistic\r\n test_stat = difference_in_proportions(simulation_proportion, overall_prop)\r\n\r\n # 3. Save the result\r\n test_statistics = np.append(test_statistics, test_stat)\n'})}),"\n",(0,n.jsxs)(t.p,{children:["This code will run the hypothesis test 500 times, but a different reasonable number can be used instead. It is ",(0,n.jsx)(t.strong,{children:"crucial"})," to keep track of the test statistic each time our for-loop runs so that the number of simulated values can be stored."]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"6-conclusion",children:"6. Conclusion"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:'p_value = np.count_nonzero(test_statistics >= observed_stat) / n\r\n\r\nprint("The observed value of the test statistic is:", observed_stat)\r\nprint("The p-value is:", p_value)\n'})}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.strong,{children:"The observed value of the test statistic is:"})," 0.18128654970760233 ",(0,n.jsx)("br",{}),"\r\n",(0,n.jsx)(t.strong,{children:"The p-value is:"})," 0.616"]}),"\n",(0,n.jsx)(t.p,{children:"Using a significance level of 0.05:"}),"\n",(0,n.jsx)(t.admonition,{title:"Conclusion",type:"info",children:(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:"Under the null hypothesis, there is a sufficiently large probability of seeing a difference greater than the observed value. The data are consistent with the null hypothesis."}),"\n",(0,n.jsxs)(t.li,{children:["Since our p-value is greater than 0.05, we ",(0,n.jsx)(t.strong,{children:"fail to reject"})," the null hypothesis."]}),"\n"]})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"7-extra",children:"7. Extra"}),"\n",(0,n.jsx)(t.p,{children:"Let's see how our observed statistic compares to the overall simulated values!"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"# Create the histogram.\r\nbpd.DataFrame().assign(test_statistics=test_statistics).plot(kind='hist', bins= 10, density=True, ec='w')\r\n# Don't worry about these lines - you won't need to know it for this course!\r\nplt.axvline(x=observed_stat, c='black', linewidth=4);\r\nyticks = plt.gca().get_yticks()\r\nplt.yticks(yticks, np.round(yticks * 0.1, 2))\r\nplt.show()\n"})}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.img,{alt:"Distribution",src:s(1647).A+"",width:"640",height:"480"})}),"\n",(0,n.jsxs)(t.p,{children:["From this graph, we can see that more than half of the data are to the ",(0,n.jsx)(t.strong,{children:"right"})," of the black vertical line (our observed statistic), meaning we have a relatively high p-value!"]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h2,{id:"code-example-2-tvd",children:"Code Example 2 (TVD)"}),"\n",(0,n.jsx)(t.h3,{id:"1-state-the-questionhypothesis-1",children:"1. State the question/hypothesis"}),"\n",(0,n.jsx)(t.p,{children:"We found that the color distribution of dogs seems different from that of all pets."}),"\n",(0,n.jsx)(o.A,{data:'{"columns":["Pets_Dist","Dogs_Dist"],"index":["black","golden","white"],"data":[[0.53,0.44],[0.21,0.12],[0.26,0.44]]}'}),"\n",(0,n.jsx)(t.p,{children:"To see whether this difference is due to random chance, we will test the following pair of hypotheses at the standard p = 0.05 significance level."}),"\n",(0,n.jsx)(t.admonition,{title:"Hypotheses",type:"info",children:(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Null Hypothesis:"})," The color distribution of dogs is the ",(0,n.jsx)(t.strong,{children:"same as"})," the color distribution of pets."]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Alternative Hypothesis:"})," The color distribution of dogs is ",(0,n.jsx)(t.strong,{children:"different from"})," the color distribution of pets."]}),"\n"]})}),"\n",(0,n.jsxs)(t.p,{children:["Since we are comparing two ",(0,n.jsx)(t.strong,{children:"categorical"})," distributions, we use Total Variation Distance (TVD) between the two distributions as our ",(0,n.jsx)(t.strong,{children:"test statistic"}),"."]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"2-create-a-function-to-calculate-test-statistic-tvd",children:"2. Create a function to calculate test statistic (TVD)"}),"\n",(0,n.jsx)(t.p,{children:"Create a function to calculate the test statistic during every trial of our hypothesis test."}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"def total_variation_distance(dist1, dist2):\r\n '''Computes the TVD between two categorical distributions, \r\n assuming the categories appear in the same order.'''\r\n return np.abs((dist1 - dist2)).sum() / 2\n"})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"3-compute-the-observed-statistic",children:"3. Compute the observed statistic"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"pets_color_dist = np.array([0.53, 0.21, 0.26])\r\ndogs_color_dist = np.array([0.44, 0.12, 0.44])\r\nobserved_tvd = total_variation_distance(dogs_color_dist, pets_color_dist)\r\nobserved_tvd\n"})}),"\n",(0,n.jsx)(t.p,{children:"0.18"}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"4-simulate-the-hypothesis-test-under-the-null-hypothesis",children:"4. Simulate the hypothesis test under the null hypothesis"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"n = 5000 # Number of simulations.\r\ntvds = np.array([]) # Array to keep track of the test statistic for each iteration.\r\n\r\n# Get sample df (dogs df)\r\ndog_df = full_pets[full_pets.get('Species') == 'dog'] \r\n\r\n# Calculte the smaple size (number of dogs)\r\nsample_size = dog_df.shape[0]\r\n\r\nfor i in np.arange(n): # Run the simulation `n` number of times\r\n \r\n # 1. Simulate the color distribution of dogs.\r\n # Under the null hypothesis, color distribution of dogs should be equal to the color distribution of pets among the overall population\r\n sample_distribution = np.random.multinomial(sample_size, pets_color_dist) / sample_size\r\n\r\n # 2. Compute the test statistic (TVD)\r\n new_tvd = total_variation_distance(sample_distribution, pets_color_dist)\r\n\r\n # 3. Save the result\r\n tvds = np.append(tvds, new_tvd)\n"})}),"\n",(0,n.jsxs)(t.p,{children:["This code will run the hypothesis test 5000 times, but a different reasonable number can be used instead. It is ",(0,n.jsx)(t.strong,{children:"crucial"})," to keep track of the test statistic each time our for-loop runs so that the number of simulated values can be stored."]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"5-conclusion",children:"5. Conclusion"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:'p_value = np.count_nonzero(tvds >= observed_tvd) / n\r\n\r\nprint("The observed value of the test statistic is:", observed_tvd)\r\nprint("The p-value is:", p_value)\n'})}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.strong,{children:"The observed value of the test statistic is:"})," 0.18",(0,n.jsx)("br",{}),"\r\n",(0,n.jsx)(t.strong,{children:"The p-value is:"})," 0.4972"]}),"\n",(0,n.jsx)(t.p,{children:"Using a significance level of 0.05:"}),"\n",(0,n.jsx)(t.admonition,{title:"Conclusion",type:"info",children:(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:"Under the null hypothesis, there is a sufficiently large probability of seeing a difference greater than the observed value. The data are consistent with the null hypothesis."}),"\n",(0,n.jsxs)(t.li,{children:["Since our p-value is greater than 0.05, we ",(0,n.jsx)(t.strong,{children:"fail to reject"})," the null hypothesis."]}),"\n"]})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"6-extra",children:"6. Extra"}),"\n",(0,n.jsx)(t.p,{children:"Let's see how our observed statistic compares to the overall simulated values!"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"# Create the histogram.\r\nbpd.DataFrame().assign(tvds=tvds).plot(kind='hist', density=True, bins=20, ec='w', figsize=(10, 5), title='Empirical Distribution of TVD Between Pets Colors and Dogs Colors')\r\n# Don't worry about these lines - you won't need to know it for this course!\r\nplt.axvline(observed_tvd, color='black', linewidth=4, label='Observed Statistic')\r\nplt.legend();\n"})}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.img,{alt:"Distribution",src:s(2477).A+"",width:"1000",height:"500"})}),"\n",(0,n.jsxs)(t.p,{children:["From this graph, we can see that almost half of the data are to the ",(0,n.jsx)(t.strong,{children:"right"})," of the black vertical line (our observed statistic), meaning we have a relatively high p-value!"]})]})}function p(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},8597:(e,t,s)=>{s.d(t,{A:()=>i});s(6540);var n=s(4848);const i=e=>{let{data:t}=e,s=[],i=[],o="",r=[];if(t){const e=JSON.parse(t);s=e.columns||[],i=e.data||[],o=e.indexName||"Index",r=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:o}),s.map(((e,t)=>(0,n.jsx)("th",{children:e},t)))]})}),(0,n.jsx)("tbody",{children:i.map(((e,t)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:r[t]}),e.map(((e,t)=>{return(0,n.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},t);var s}))]},t)))})]})})}},5158:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(6540),i=s(4848);const o=function(e){let{src:t,sourceLink:s,aspectRatio:o=16/9}=e;const[r,a]=(0,n.useState)(0),[l,h]=(0,n.useState)(0),c=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const e=()=>{if(c.current){const e=c.current.offsetWidth;h(e/o)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[o]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:c,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,i.jsx)("iframe",{src:t,style:{width:"100%",height:`${l}px`,border:"0",allowFullScreen:!0}},r)}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,i.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,i.jsx)("button",{onClick:()=>{a((e=>e+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#45a049",onMouseOut:e=>e.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},1647:(e,t,s)=>{s.d(t,{A:()=>n});const n=s.p+"assets/images/hypothesis-test-200177f66e9f7f0e360b809bc6c6f3c8.png"},2477:(e,t,s)=>{s.d(t,{A:()=>n});const n=s.p+"assets/images/hypothesis-test2-7615aa5325b73c6c19541b78e2619a30.png"},8453:(e,t,s)=>{s.d(t,{R:()=>r,x:()=>a});var n=s(6540);const i={},o=n.createContext(i);function r(e){const t=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),n.createElement(o.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f03ae67e.60f98101.js b/assets/js/f03ae67e.60f98101.js new file mode 100644 index 00000000..24747293 --- /dev/null +++ b/assets/js/f03ae67e.60f98101.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[972],{3007:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>h,contentTitle:()=>a,default:()=>p,frontMatter:()=>r,metadata:()=>l,toc:()=>c});var n=s(4848),i=s(8453),o=s(8597);s(5158);const r={sidebar_position:7,sidebar_label:"Hypothesis Test",title:"Hypothesis Test",tags:["querying","functions","for-loop","histogram"]},a=void 0,l={id:"statistical-inference/hypothesis_test",title:"Hypothesis Test",description:"Concept",source:"@site/docs/statistical-inference/hypothesis_test.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/hypothesis_test",permalink:"/bpd-reference/docs/statistical-inference/hypothesis_test",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/hypothesis_test.md",tags:[{label:"querying",permalink:"/bpd-reference/docs/tags/querying"},{label:"functions",permalink:"/bpd-reference/docs/tags/functions"},{label:"for-loop",permalink:"/bpd-reference/docs/tags/for-loop"},{label:"histogram",permalink:"/bpd-reference/docs/tags/histogram"}],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7,sidebar_label:"Hypothesis Test",title:"Hypothesis Test",tags:["querying","functions","for-loop","histogram"]},sidebar:"statsSidebar",previous:{title:"P-value",permalink:"/bpd-reference/docs/statistical-inference/p_value"},next:{title:"Spread of a Distribution",permalink:"/bpd-reference/docs/statistical-inference/spread_of_a_distribution"}},h={},c=[{value:"Concept",id:"concept",level:2},{value:"Code Example 1 (Difference)",id:"code-example-1-difference",level:2},{value:"1. State the question/hypothesis",id:"1-state-the-questionhypothesis",level:3},{value:"2. Calculate the overall proportion",id:"2-calculate-the-overall-proportion",level:3},{value:"3. Create a function to calculate test statistic",id:"3-create-a-function-to-calculate-test-statistic",level:3},{value:"4. Compute the observed statistic",id:"4-compute-the-observed-statistic",level:3},{value:"5. Simulate the hypothesis test under the null hypothesis",id:"5-simulate-the-hypothesis-test-under-the-null-hypothesis",level:3},{value:"6. Conclusion",id:"6-conclusion",level:3},{value:"7. Extra",id:"7-extra",level:3},{value:"Code Example 2 (TVD)",id:"code-example-2-tvd",level:2},{value:"1. State the question/hypothesis",id:"1-state-the-questionhypothesis-1",level:3},{value:"2. Create a function to calculate test statistic (TVD)",id:"2-create-a-function-to-calculate-test-statistic-tvd",level:3},{value:"3. Compute the observed statistic",id:"3-compute-the-observed-statistic",level:3},{value:"4. Simulate the hypothesis test under the null hypothesis",id:"4-simulate-the-hypothesis-test-under-the-null-hypothesis",level:3},{value:"5. Conclusion",id:"5-conclusion",level:3},{value:"6. Extra",id:"6-extra",level:3}];function d(e){const t={admonition:"admonition",annotation:"annotation",code:"code",em:"em",h2:"h2",h3:"h3",hr:"hr",img:"img",li:"li",math:"math",mo:"mo",mrow:"mrow",ol:"ol",p:"p",pre:"pre",semantics:"semantics",span:"span",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h2,{id:"concept",children:"Concept"}),"\n",(0,n.jsx)(t.admonition,{title:"Note \ud83c\udf1f",type:"note",children:(0,n.jsxs)(t.p,{children:["This page refers to the ",(0,n.jsx)(t.strong,{children:"standard"})," hypothesis test."]})}),"\n",(0,n.jsx)(t.admonition,{title:"Key Idea",type:"tip",children:(0,n.jsx)(t.p,{children:"We use a hypothesis test to test whether a sample was drawn from a population."})}),"\n",(0,n.jsxs)(t.admonition,{title:"Terminology",type:"info",children:[(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.strong,{children:"Hypothesis Test"}),": A process that test whether a sample was drawn from a population, given a population distribution and a sample."]}),(0,n.jsx)(t.p,{children:"To conduct a hypothesis test:"}),(0,n.jsxs)(t.ol,{children:["\n",(0,n.jsx)(t.li,{children:"Simulate the experiment many times under the assumption that the null hypothesis is true."}),"\n",(0,n.jsx)(t.li,{children:"Compute a test statistic on each of the simulated samples, as well as on the observed sample."}),"\n",(0,n.jsx)(t.li,{children:"Look at the resulting empirical distribution of test statistics and see where the observed test statistic falls. If it seems like an atypical value (too large or too small), we reject the null hypothesis; otherwise, we fail to reject the null."}),"\n"]})]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h2,{id:"code-example-1-difference",children:"Code Example 1 (Difference)"}),"\n",(0,n.jsx)(t.h3,{id:"1-state-the-questionhypothesis",children:"1. State the question/hypothesis"}),"\n",(0,n.jsxs)(t.admonition,{title:"Hypotheses",type:"info",children:[(0,n.jsx)(t.p,{children:"We will test the following pair of hypotheses at the standard p = 0.05 significance level."}),(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Null Hypothesis:"}),' The proportion of "white" dogs among dogs is ',(0,n.jsx)(t.strong,{children:"equal"}),' to the proportion of "white" pets in the overall population.']}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Alternative Hypothesis:"}),' The distribution of "white" dogs among dogs is ',(0,n.jsx)(t.strong,{children:"greater than"}),' the proportion of "white" pets in the overall population.']}),"\n"]})]}),"\n",(0,n.jsxs)(t.p,{children:['Since the alternative hypothesis is of the form "A is ',(0,n.jsx)(t.strong,{children:(0,n.jsx)(t.em,{children:"greater than"})}),' B," the ',(0,n.jsx)(t.strong,{children:"test statistic"})," should measure ",(0,n.jsx)(t.strong,{children:"signed difference"})," rather than absolute difference."]}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsxs)(t.span,{className:"katex",children:[(0,n.jsx)(t.span,{className:"katex-mathml",children:(0,n.jsx)(t.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(t.semantics,{children:[(0,n.jsx)(t.mrow,{children:(0,n.jsx)(t.mo,{children:"\u2234"})}),(0,n.jsx)(t.annotation,{encoding:"application/x-tex",children:"\\therefore"})]})})}),(0,n.jsx)(t.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(t.span,{className:"base",children:[(0,n.jsx)(t.span,{className:"strut",style:{height:"0.6922em"}}),(0,n.jsx)(t.span,{className:"mrel amsrm",children:"\u2234"})]})})]})," We use ",(0,n.jsx)(t.strong,{children:"the difference in proportions"})," of white dogs among dogs and white pets in the overall poplulation as the test statistic."]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"2-calculate-the-overall-proportion",children:"2. Calculate the overall proportion"}),"\n",(0,n.jsx)(t.p,{children:"We first compute the proportion of white pets in the overall population, which will be used for calculating the test statistic."}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"#Method 1: Obtain a series of boolean values (1s and 0s), and calculate the mean\noverall_prop = (full_pets.get('Color')=='white').mean()\n\n#Method 2: Query the DataFrame and obtain the proportion by using .shape[0]\n#overall_prop = full_pets[full_pets.get('Color')=='white'].shape[0]/full_pets.shape[0]\n\noverall_prop\n"})}),"\n",(0,n.jsx)(t.p,{children:"0.2631578947368421"}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"3-create-a-function-to-calculate-test-statistic",children:"3. Create a function to calculate test statistic"}),"\n",(0,n.jsx)(t.p,{children:"Create a function to calculate the test statistic during every trial of our hypothesis test."}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:'def difference_in_proportions(dogs_prop, overall_prop):\n """\n Calculate the difference in proportions of white dogs among dogs and white pets in the overall population.\n ---\n Input:\n dogs_prop: the proportion of white dogs among all dogs.\n overall_prop: the proportion of white pets in the overall population.\n ---\n Output:\n The difference in proportions of white dogs among dogs and white pets in the overall population.\n """\n return dogs_prop - overall_prop\n'})}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.em,{children:"Note: Although we can simply do this in the for-loop shown in the next step, we can practice good coding habits by separating our code into readable bits!"})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"4-compute-the-observed-statistic",children:"4. Compute the observed statistic"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"# Query the DataFrame to only include dogs\ndogs_df = full_pets[full_pets.get('Species') == 'dog']\n# Compute the observed proportion of white dogs among all dogs\nobs_dogs_prop = (dogs_df.get('Color') == 'white').mean()\n# Calculate the observed statistic\nobserved_stat = difference_in_proportions(obs_dogs_prop, overall_prop)\nobserved_stat\n"})}),"\n",(0,n.jsx)(t.p,{children:"0.18128654970760233"}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"5-simulate-the-hypothesis-test-under-the-null-hypothesis",children:"5. Simulate the hypothesis test under the null hypothesis"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:'n = 500 # Number of simulations.\ntest_statistics = np.array([]) # Array to keep track of the test statistic for each iteration.\n\n# Calculte the smaple size (number of dogs)\nsample_size = dogs_df.shape[0]\n\n# Under the null hypothesis, proportion of "white" dogs among dogs is equal to the proportion of white pets among the overall population\nmodel_proportions = np.array([obs_dogs_prop, 1-obs_dogs_prop]) \n\nfor i in np.arange(n): # Run the simulation `n` number of times\n \n # 1. Simulate the dogs distribution\n # Calculate the the proportion of white dogs among all dogs.\n simulation_proportion = np.random.multinomial(sample_size, model_proportions)[0] / sample_size\n \n # 2. Compute the test statistic\n test_stat = difference_in_proportions(simulation_proportion, overall_prop)\n\n # 3. Save the result\n test_statistics = np.append(test_statistics, test_stat)\n'})}),"\n",(0,n.jsxs)(t.p,{children:["This code will run the hypothesis test 500 times, but a different reasonable number can be used instead. It is ",(0,n.jsx)(t.strong,{children:"crucial"})," to keep track of the test statistic each time our for-loop runs so that the number of simulated values can be stored."]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"6-conclusion",children:"6. Conclusion"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:'p_value = np.count_nonzero(test_statistics >= observed_stat) / n\n\nprint("The observed value of the test statistic is:", observed_stat)\nprint("The p-value is:", p_value)\n'})}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.strong,{children:"The observed value of the test statistic is:"})," 0.18128654970760233 ",(0,n.jsx)("br",{}),"\n",(0,n.jsx)(t.strong,{children:"The p-value is:"})," 0.616"]}),"\n",(0,n.jsx)(t.p,{children:"Using a significance level of 0.05:"}),"\n",(0,n.jsx)(t.admonition,{title:"Conclusion",type:"info",children:(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:"Under the null hypothesis, there is a sufficiently large probability of seeing a difference greater than the observed value. The data are consistent with the null hypothesis."}),"\n",(0,n.jsxs)(t.li,{children:["Since our p-value is greater than 0.05, we ",(0,n.jsx)(t.strong,{children:"fail to reject"})," the null hypothesis."]}),"\n"]})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"7-extra",children:"7. Extra"}),"\n",(0,n.jsx)(t.p,{children:"Let's see how our observed statistic compares to the overall simulated values!"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"# Create the histogram.\nbpd.DataFrame().assign(test_statistics=test_statistics).plot(kind='hist', bins= 10, density=True, ec='w')\n# Don't worry about these lines - you won't need to know it for this course!\nplt.axvline(x=observed_stat, c='black', linewidth=4);\nyticks = plt.gca().get_yticks()\nplt.yticks(yticks, np.round(yticks * 0.1, 2))\nplt.show()\n"})}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.img,{alt:"Distribution",src:s(4183).A+"",width:"640",height:"480"})}),"\n",(0,n.jsxs)(t.p,{children:["From this graph, we can see that more than half of the data are to the ",(0,n.jsx)(t.strong,{children:"right"})," of the black vertical line (our observed statistic), meaning we have a relatively high p-value!"]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h2,{id:"code-example-2-tvd",children:"Code Example 2 (TVD)"}),"\n",(0,n.jsx)(t.h3,{id:"1-state-the-questionhypothesis-1",children:"1. State the question/hypothesis"}),"\n",(0,n.jsx)(t.p,{children:"We found that the color distribution of dogs seems different from that of all pets."}),"\n",(0,n.jsx)(o.A,{data:'{"columns":["Pets_Dist","Dogs_Dist"],"index":["black","golden","white"],"data":[[0.53,0.44],[0.21,0.12],[0.26,0.44]]}'}),"\n",(0,n.jsx)(t.p,{children:"To see whether this difference is due to random chance, we will test the following pair of hypotheses at the standard p = 0.05 significance level."}),"\n",(0,n.jsx)(t.admonition,{title:"Hypotheses",type:"info",children:(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Null Hypothesis:"})," The color distribution of dogs is the ",(0,n.jsx)(t.strong,{children:"same as"})," the color distribution of pets."]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Alternative Hypothesis:"})," The color distribution of dogs is ",(0,n.jsx)(t.strong,{children:"different from"})," the color distribution of pets."]}),"\n"]})}),"\n",(0,n.jsxs)(t.p,{children:["Since we are comparing two ",(0,n.jsx)(t.strong,{children:"categorical"})," distributions, we use Total Variation Distance (TVD) between the two distributions as our ",(0,n.jsx)(t.strong,{children:"test statistic"}),"."]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"2-create-a-function-to-calculate-test-statistic-tvd",children:"2. Create a function to calculate test statistic (TVD)"}),"\n",(0,n.jsx)(t.p,{children:"Create a function to calculate the test statistic during every trial of our hypothesis test."}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"def total_variation_distance(dist1, dist2):\n '''Computes the TVD between two categorical distributions, \n assuming the categories appear in the same order.'''\n return np.abs((dist1 - dist2)).sum() / 2\n"})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"3-compute-the-observed-statistic",children:"3. Compute the observed statistic"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"pets_color_dist = np.array([0.53, 0.21, 0.26])\ndogs_color_dist = np.array([0.44, 0.12, 0.44])\nobserved_tvd = total_variation_distance(dogs_color_dist, pets_color_dist)\nobserved_tvd\n"})}),"\n",(0,n.jsx)(t.p,{children:"0.18"}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"4-simulate-the-hypothesis-test-under-the-null-hypothesis",children:"4. Simulate the hypothesis test under the null hypothesis"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"n = 5000 # Number of simulations.\ntvds = np.array([]) # Array to keep track of the test statistic for each iteration.\n\n# Get sample df (dogs df)\ndog_df = full_pets[full_pets.get('Species') == 'dog'] \n\n# Calculte the smaple size (number of dogs)\nsample_size = dog_df.shape[0]\n\nfor i in np.arange(n): # Run the simulation `n` number of times\n \n # 1. Simulate the color distribution of dogs.\n # Under the null hypothesis, color distribution of dogs should be equal to the color distribution of pets among the overall population\n sample_distribution = np.random.multinomial(sample_size, pets_color_dist) / sample_size\n\n # 2. Compute the test statistic (TVD)\n new_tvd = total_variation_distance(sample_distribution, pets_color_dist)\n\n # 3. Save the result\n tvds = np.append(tvds, new_tvd)\n"})}),"\n",(0,n.jsxs)(t.p,{children:["This code will run the hypothesis test 5000 times, but a different reasonable number can be used instead. It is ",(0,n.jsx)(t.strong,{children:"crucial"})," to keep track of the test statistic each time our for-loop runs so that the number of simulated values can be stored."]}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"5-conclusion",children:"5. Conclusion"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:'p_value = np.count_nonzero(tvds >= observed_tvd) / n\n\nprint("The observed value of the test statistic is:", observed_tvd)\nprint("The p-value is:", p_value)\n'})}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.strong,{children:"The observed value of the test statistic is:"})," 0.18",(0,n.jsx)("br",{}),"\n",(0,n.jsx)(t.strong,{children:"The p-value is:"})," 0.4972"]}),"\n",(0,n.jsx)(t.p,{children:"Using a significance level of 0.05:"}),"\n",(0,n.jsx)(t.admonition,{title:"Conclusion",type:"info",children:(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:"Under the null hypothesis, there is a sufficiently large probability of seeing a difference greater than the observed value. The data are consistent with the null hypothesis."}),"\n",(0,n.jsxs)(t.li,{children:["Since our p-value is greater than 0.05, we ",(0,n.jsx)(t.strong,{children:"fail to reject"})," the null hypothesis."]}),"\n"]})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"6-extra",children:"6. Extra"}),"\n",(0,n.jsx)(t.p,{children:"Let's see how our observed statistic compares to the overall simulated values!"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-python",children:"# Create the histogram.\nbpd.DataFrame().assign(tvds=tvds).plot(kind='hist', density=True, bins=20, ec='w', figsize=(10, 5), title='Empirical Distribution of TVD Between Pets Colors and Dogs Colors')\n# Don't worry about these lines - you won't need to know it for this course!\nplt.axvline(observed_tvd, color='black', linewidth=4, label='Observed Statistic')\nplt.legend();\n"})}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.img,{alt:"Distribution",src:s(789).A+"",width:"1000",height:"500"})}),"\n",(0,n.jsxs)(t.p,{children:["From this graph, we can see that almost half of the data are to the ",(0,n.jsx)(t.strong,{children:"right"})," of the black vertical line (our observed statistic), meaning we have a relatively high p-value!"]})]})}function p(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},8597:(e,t,s)=>{s.d(t,{A:()=>i});s(6540);var n=s(4848);const i=e=>{let{data:t}=e,s=[],i=[],o="",r=[];if(t){const e=JSON.parse(t);s=e.columns||[],i=e.data||[],o=e.indexName||"Index",r=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:o}),s.map(((e,t)=>(0,n.jsx)("th",{children:e},t)))]})}),(0,n.jsx)("tbody",{children:i.map(((e,t)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:r[t]}),e.map(((e,t)=>{return(0,n.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},t);var s}))]},t)))})]})})}},5158:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(6540),i=s(4848);const o=function(e){let{src:t,sourceLink:s,aspectRatio:o=16/9}=e;const[r,a]=(0,n.useState)(0),[l,h]=(0,n.useState)(0),c=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const e=()=>{if(c.current){const e=c.current.offsetWidth;h(e/o)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[o]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:c,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,i.jsx)("iframe",{src:t,style:{width:"100%",height:`${l}px`,border:"0",allowFullScreen:!0}},r)}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,i.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,i.jsx)("button",{onClick:()=>{a((e=>e+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#45a049",onMouseOut:e=>e.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},4183:(e,t,s)=>{s.d(t,{A:()=>n});const n=s.p+"assets/images/hypothesis-test-200177f66e9f7f0e360b809bc6c6f3c8.png"},789:(e,t,s)=>{s.d(t,{A:()=>n});const n=s.p+"assets/images/hypothesis-test2-7615aa5325b73c6c19541b78e2619a30.png"},8453:(e,t,s)=>{s.d(t,{R:()=>r,x:()=>a});var n=s(6540);const i={},o=n.createContext(i);function r(e){const t=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),n.createElement(o.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f095f4cd.32321c37.js b/assets/js/f095f4cd.32321c37.js deleted file mode 100644 index 3c7b8afc..00000000 --- a/assets/js/f095f4cd.32321c37.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[28],{8406:(e,A,t)=>{t.r(A),t.d(A,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>l,toc:()=>c});var n=t(4848),a=t(8453),r=t(8597),s=t(5158);const i={sidebar_position:8,sidebar_label:"Boostrapping and Confidence Intervals",title:"Bootstrapping and Confidence Intervals",tags:["for-loop","histogram"]},o=void 0,l={id:"statistical-inference/bootstrapping",title:"Bootstrapping and Confidence Intervals",description:"Concept",source:"@site/docs/statistical-inference/bootstrapping.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/bootstrapping",permalink:"/bpd-reference/docs/statistical-inference/bootstrapping",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/bootstrapping.md",tags:[{label:"for-loop",permalink:"/bpd-reference/docs/tags/for-loop"},{label:"histogram",permalink:"/bpd-reference/docs/tags/histogram"}],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8,sidebar_label:"Boostrapping and Confidence Intervals",title:"Bootstrapping and Confidence Intervals",tags:["for-loop","histogram"]},sidebar:"statsSidebar",previous:{title:"Spread of a Distribution",permalink:"/bpd-reference/docs/statistical-inference/spread_of_a_distribution"},next:{title:"Permutation Test",permalink:"/bpd-reference/docs/statistical-inference/permutation_test"}},d={},c=[{value:"Concept",id:"concept",level:2},{value:"Code Example",id:"code-example",level:2},{value:"1. Take a random sample of size 12 from the <code>full_pets</code> DataFrame.",id:"1-take-a-random-sample-of-size-12-from-the-full_pets-dataframe",level:3},{value:"2. Find the observed parameter",id:"2-find-the-observed-parameter",level:3},{value:"3. Bootstrap the sample 10,000 times with replacement",id:"3-bootstrap-the-sample-10000-times-with-replacement",level:3},{value:"4. Create a 95% confidence interval",id:"4-create-a-95-confidence-interval",level:3},{value:"5. Conclusion",id:"5-conclusion",level:3},{value:"6. Extra",id:"6-extra",level:3}];function p(e){const A={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",hr:"hr",img:"img",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(A.h2,{id:"concept",children:"Concept"}),"\n",(0,n.jsx)(A.admonition,{title:"Key Idea",type:"tip",children:(0,n.jsx)(A.p,{children:"We use a bootstrapping to estimate the distribution of the sample statistic to see how different our it could have been. We use confidence intervals to define a range that captures most of the bootstrapped distribution of the sample statistic."})}),"\n",(0,n.jsxs)(A.admonition,{title:"Terminology",type:"info",children:[(0,n.jsxs)(A.p,{children:[(0,n.jsx)(A.strong,{children:"Bootstrapping"}),": Bootstrapping is a type of hypothesis test that involves resampling from a single sample to estimate the\r\ndistribution of the sample statistic. It answers the question of how different the sample statistic could have been if given a different sample. To conduct bootstrapping:"]}),(0,n.jsxs)(A.ol,{children:["\n",(0,n.jsx)(A.li,{children:"Resample from the original sample with replacement."}),"\n",(0,n.jsx)(A.li,{children:"Calculate the sample statistic on the bootstrapped resample."}),"\n",(0,n.jsx)(A.li,{children:"Save the results into an array."}),"\n",(0,n.jsx)(A.li,{children:"Repeat steps 1 through 3 to generate an empirical distribution of the test statistic."}),"\n",(0,n.jsx)(A.li,{children:"Calculate the confidence interval and see if the observed statistic lies in it. If the observed statistic is not\r\nin our confidence interval, we have evidence to reject the null."}),"\n"]}),(0,n.jsxs)(A.p,{children:[(0,n.jsx)(A.strong,{children:"Confidence Intervals:"})," A confidence interval is a range that captures most of the distribution of the bootstrapped sample statistic in\r\nthe hopes of also containing the true population parameter within it. If\r\nwe were to construct a 95% confidence interval, we aren't saying that there is a 95% chance that the true population parameter lies in the\r\ninterval as the interval either contains it or it doesn't. Instead, we are saying that approximately 95% of the time, the intervals you\r\ncreate will contain the true population parameter. For example, if we generated 100 confidence intervals, about 95 of them will have the\r\ntrue population parameter."]})]}),"\n",(0,n.jsx)(A.admonition,{type:"note",children:(0,n.jsx)(A.p,{children:"When resampling, the size of the resample should be the same as the original sample with replacement."})}),"\n",(0,n.jsx)(A.p,{children:"The diagram below provides an overview of conducting bootstrapping, although it references a different dataset."}),"\n",(0,n.jsx)(s.A,{src:"https://docs.google.com/presentation/d/e/2PACX-1vS_iYHJYXSVMMZ-YQVFwMEFR6EFN3FDSAvaMyUm-YJfLQgRMTHm3vI-wWJJ5999eFJq70nWp2hyItZg/embed?start=true&loop=false&delayms=3000&rm=minimal",sourceLink:"https://docs.google.com/presentation/d/1oYakqMdI7z61BthvgWUJvbT21bKTXg01KmAibglepBI/edit?usp=sharing"}),"\n",(0,n.jsxs)(A.p,{children:["The diagram below provides an overview of creating confidence intervals, although it references a different situation. For additional helpful visual guides, please visit the ",(0,n.jsx)(A.a,{href:"https://dsc10.com/diagrams/",children:"Diagrams"})," site."]}),"\n",(0,n.jsx)(s.A,{src:"https://docs.google.com/presentation/d/e/2PACX-1vTaPZsueXI6fey_5cj2Y1TevkR1joBvpwaWVsZNvgBlnJSrw1EiBLHJywkFH_QNLU5Tdr6JZgDrhFxG/embed?start=true&loop=false&delayms=3000&rm=minimal",sourceLink:"https://docs.google.com/presentation/d/1l5GVyl60FrornEaZnGL6REV4gjEydRncNVi6k1hHUsA/edit?usp=sharing"}),"\n",(0,n.jsx)(A.hr,{}),"\n",(0,n.jsx)(A.h2,{id:"code-example",children:"Code Example"}),"\n",(0,n.jsxs)(A.h3,{id:"1-take-a-random-sample-of-size-12-from-the-full_pets-dataframe",children:["1. Take a random sample of size 12 from the ",(0,n.jsx)(A.code,{children:"full_pets"})," DataFrame."]}),"\n",(0,n.jsxs)(A.p,{children:["Let's say we didn't have access to all of the information in the ",(0,n.jsx)(A.code,{children:"full_pets"})," DataFrame and were only able to collect a sample of 12 pets."]}),"\n",(0,n.jsx)(A.pre,{children:(0,n.jsx)(A.code,{className:"language-python",children:"# Magic to ensure that we get the same results every time this code is run. \r\nnp.random.seed(42)\r\n\r\n# sample\r\npets_sample = full_pets.sample(12, replace=False)\r\npets_sample\n"})}),"\n",(0,n.jsx)(r.A,{data:'{"columns":["Unnamed: 0","ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[18,14,4,13,10,7,6,3,2,15,17,8],"data":[[18,"cat_006","cat","black",3.0,0.5,true,"No, thank you!"],[14,"dog_007","dog","white",50.0,6.1,false,"No, thank you!"],[4,"dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],[13,"ham_003","hamster","black",0.5,0.1,false,"No, thank you!"],[10,"dog_006","dog","golden",35.0,4.0,false,"No, thank you!"],[7,"cat_003","cat","black",10.0,0.0,true,"No, thank you!"],[6,"ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],[3,"dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],[2,"cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],[15,"ham_004","hamster","golden",0.25,0.2,false,"No, thank you!"],[17,"dog_009","dog","white",30.0,4.8,false,"No, thank you!"],[8,"dog_004","dog","black",45.0,6.7,false,"No, thank you!"]]}'}),"\n",(0,n.jsx)(A.hr,{}),"\n",(0,n.jsx)(A.h3,{id:"2-find-the-observed-parameter",children:"2. Find the observed parameter"}),"\n",(0,n.jsx)(A.p,{children:"In this case, we are interested in finding the median weight of the entire population."}),"\n",(0,n.jsx)(A.pre,{children:(0,n.jsx)(A.code,{className:"language-python",children:"pets_sample = full_pets.sample(12, replace=False)\r\nprint('Median of pets_sample weight:', pets_sample.get('Weight').median())\n"})}),"\n",(0,n.jsx)(A.p,{children:"Median of pets_sample weight: 20.0"}),"\n",(0,n.jsx)(A.hr,{}),"\n",(0,n.jsx)(A.h3,{id:"3-bootstrap-the-sample-10000-times-with-replacement",children:"3. Bootstrap the sample 10,000 times with replacement"}),"\n",(0,n.jsx)(A.p,{children:"Since we were only able to collect one random sample from the full population, we can't be sure if this singular guess predicts the\r\ntrue population parameter well. We can't go out and collect\r\nanother random sample, so we will resample from the original sample with replacement to simulate what could've been."}),"\n",(0,n.jsx)(A.pre,{children:(0,n.jsx)(A.code,{className:"language-python",children:"boot_medians = np.array([])\r\nfor i in np.arange(10000):\r\n # 1. resample the data\r\n resample = pets_sample.sample(pets_sample.shape[0], replace=True)\r\n\r\n # 2. calculate the median of the resample\r\n boot_median = resample.get('Weight').median()\r\n\r\n # 3. append the median to the array\r\n boot_medians = np.append(boot_medians, boot_median)\n"})}),"\n",(0,n.jsx)(A.p,{children:"This code will create 10,000 bootstrapped samples and calculate the median for each of them, but a different\r\nreasonable number can be used instead. Since these samples are all random, the information in each sample and\r\nmedian will be different from one another."}),"\n",(0,n.jsx)(A.hr,{}),"\n",(0,n.jsx)(A.h3,{id:"4-create-a-95-confidence-interval",children:"4. Create a 95% confidence interval"}),"\n",(0,n.jsx)(A.p,{children:"Instead of using a single number to estimate the true population parameter, we create a range of where we think it is."}),"\n",(0,n.jsx)(A.pre,{children:(0,n.jsx)(A.code,{className:"language-python",children:"# Get the 95% confidence interval\r\nleft = np.percentile(boot_medians, 2.5) # 2.5th percentile\r\nright = np.percentile(boot_medians, 97.5) # 97.5th percentile\n"})}),"\n",(0,n.jsx)(A.p,{children:"Remember that the 95% confidence interval does not mean we have a 95% chance of containing the true population parameter. It means\r\nthat about 95% of all intervals we create will contain the true population parameter."}),"\n",(0,n.jsx)(A.hr,{}),"\n",(0,n.jsx)(A.h3,{id:"5-conclusion",children:"5. Conclusion"}),"\n",(0,n.jsx)(A.pre,{children:(0,n.jsx)(A.code,{className:"language-python",children:"left, right\n"})}),"\n",(0,n.jsx)(A.p,{children:"(1.75, 40.0)"}),"\n",(0,n.jsx)(A.admonition,{title:"Conclusion",type:"info",children:(0,n.jsxs)(A.ul,{children:["\n",(0,n.jsx)(A.li,{children:"From this interval, we are 95% confident that the true population median lies somewhere between 1.75 and 40."}),"\n",(0,n.jsx)(A.li,{children:"We have no way of knowing where exactly in this interval does the true population median falls or even if it is contained at all."}),"\n",(0,n.jsx)(A.li,{children:"What we do know is that if we were to repeat the process and generate multiple confidence intervals, roughly 95% of them will\r\ncontain the true population median."}),"\n"]})}),"\n",(0,n.jsx)(A.hr,{}),"\n",(0,n.jsx)(A.h3,{id:"6-extra",children:"6. Extra"}),"\n",(0,n.jsx)(A.p,{children:"Let's look at the distribution of the bootstrapped medians!"}),"\n",(0,n.jsx)(A.pre,{children:(0,n.jsx)(A.code,{className:"language-python",children:"# Create the histogram.\r\n# Plot the histogram of boot_medians\r\nplt.hist(boot_medians, bins=20, density=True, ec = 'w')\r\n\r\nplt.show()\n"})}),"\n",(0,n.jsx)(A.p,{children:(0,n.jsx)(A.img,{alt:"Distribution",src:t(2922).A+"",width:"556",height:"413"})}),"\n",(0,n.jsxs)(A.p,{children:["A 95% confidence level means that ",(0,n.jsx)(A.strong,{children:"approximately 95% of the time, the intervals you create through this process will contain the true population parameter"}),"."]})]})}function h(e={}){const{wrapper:A}={...(0,a.R)(),...e.components};return A?(0,n.jsx)(A,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},8597:(e,A,t)=>{t.d(A,{A:()=>a});t(6540);var n=t(4848);const a=e=>{let{data:A}=e,t=[],a=[],r="",s=[];if(A){const e=JSON.parse(A);t=e.columns||[],a=e.data||[],r=e.indexName||"Index",s=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:r}),t.map(((e,A)=>(0,n.jsx)("th",{children:e},A)))]})}),(0,n.jsx)("tbody",{children:a.map(((e,A)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:s[A]}),e.map(((e,A)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},A);var t}))]},A)))})]})})}},5158:(e,A,t)=>{t.d(A,{A:()=>r});var n=t(6540),a=t(4848);const r=function(e){let{src:A,sourceLink:t,aspectRatio:r=16/9}=e;const[s,i]=(0,n.useState)(0),[o,l]=(0,n.useState)(0),d=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const e=()=>{if(d.current){const e=d.current.offsetWidth;l(e/r)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[r]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:d,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,a.jsx)("iframe",{src:A,style:{width:"100%",height:`${o}px`,border:"0",allowFullScreen:!0}},s)}),(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,a.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,a.jsx)("button",{onClick:()=>{i((e=>e+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#45a049",onMouseOut:e=>e.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},2922:(e,A,t)=>{t.d(A,{A:()=>n});const n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAGdCAYAAAAxCSikAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy88F64QAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAgqElEQVR4nO3df0zU9+HH8dfBwWFEaKsIZUUL2lY6a+uOroON6tYWgl3Xdi7DpmubKiaMdvJjbVK0i51th2sJQafItLjOtRH/ULclX7ZKu0qt0kzxSA01TUmpMIFdcBmITUHh8/2j8bYbh3r0jnsfPh/JJxmfe9+773vP1efu87nDZlmWJQAAAINFhHoBAAAAl0OwAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADCePdQLCJTR0VF1d3drxowZstlsoV4OAAC4ApZl6ezZs0pOTlZExPjvo0yZYOnu7lZKSkqolwEAACagq6tLN9xww7iPT5lgmTFjhqQvX3BcXFyIVwMAAK7EwMCAUlJSPH+Pj2fKBMvFy0BxcXEECwAAYeZyt3Nw0y0AADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsACGGhm1wnJuAAgGe6gXAMC3yAibiutdancPBnTe+bNjtWnF4oDOCQDBRrAABmt3D6qteyDUywCAkOOSEAAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAw3oSCpaamRqmpqYqJiZHT6dShQ4cuOb6pqUlOp1MxMTFKS0tTbW3tuGPr6+tls9n00EMPTWRpAABgCvI7WPbs2aOSkhKtW7dOLpdL2dnZysvLU2dnp8/xHR0dWrZsmbKzs+VyubR27VqtWbNGe/fuHTP21KlTeuaZZ5Sdne3/KwEAAFOW38FSVVWlVatWqaCgQOnp6aqurlZKSoq2bdvmc3xtba3mzJmj6upqpaenq6CgQCtXrlRlZaXXuJGRET366KP65S9/qbS0tIm9GgAAMCX5FSzDw8NqaWlRTk6O1/mcnBwdOXLE53Oam5vHjM/NzdWxY8d0/vx5z7kNGzYoISFBq1atuqK1DA0NaWBgwOsAAABTk1/B0tfXp5GRESUmJnqdT0xMVG9vr8/n9Pb2+hx/4cIF9fX1SZIOHz6suro67dix44rXUlFRofj4eM+RkpLiz0sBAABhZEI33dpsNq+fLcsac+5y4y+eP3v2rH7yk59ox44dmjVr1hWvoby8XP39/Z6jq6vLj1cAAADCid2fwbNmzVJkZOSYd1PcbveYd1EuSkpK8jnebrdr5syZamtr02effaYHHnjA8/jo6OiXi7Pb9fHHH2vevHlj5nU4HHI4HP4sHwAAhCm/3mGJjo6W0+lUY2Oj1/nGxkZlZWX5fE5mZuaY8QcOHFBGRoaioqK0YMECnThxQq2trZ7jBz/4gb773e+qtbWVSz0AAMC/d1gkqaysTI899pgyMjKUmZmp7du3q7OzU4WFhZK+vFRz+vRp7dq1S5JUWFioLVu2qKysTKtXr1Zzc7Pq6uq0e/duSVJMTIwWLlzo9c+45pprJGnMeWCiRkYtRUaMf9nS1LkBAF/yO1jy8/N15swZbdiwQT09PVq4cKEaGho0d+5cSVJPT4/Xd7KkpqaqoaFBpaWl2rp1q5KTk7V582YtX748cK8CuIzICJuK611qdw8GdN75s2O1acXigM4JABjLZl28AzbMDQwMKD4+Xv39/YqLiwv1cmCg+zcfUlt3YD/+/vXkOP3fmuB90WE4rhkA/HGlf3/zu4Tgt5HR4DRusOYFAIQ/vy8JAcG4vMKlFQDApRAsmJB292DAL1UAADAeLgkBAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAACZmTUCsu5AZjPHuoFAJg6IiNsKq53qd09GNB558+O1aYViwM6J4DwQrAACKh296DaugdCvQwAUwyXhABc1biMBYQH3mEBcFXjMhYQHggWAFc9LmMB5uOSEAAAMB7BAgAAjEewwAgJsQ5uUAQAjIt7WGCEuGn2oN38uPSWBD2buyCgcwIAJhfBAqME4+bHeQnTAzofAGDycUkIAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYAACA8QgWAABgPIIFgPESYh0aGbVCvQwAIcRvawZgvLhpdkVG2FRc71K7ezBg8y69JUHP5i4I2HwAgodgARA22t2DauseCNh88xKmB2wuAMHFJSEAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYAACA8QgWAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxptQsNTU1Cg1NVUxMTFyOp06dOjQJcc3NTXJ6XQqJiZGaWlpqq2t9Xp83759ysjI0DXXXKPp06frjjvu0B/+8IeJLA0AAExBfgfLnj17VFJSonXr1snlcik7O1t5eXnq7Oz0Ob6jo0PLli1Tdna2XC6X1q5dqzVr1mjv3r2eMdddd53WrVun5uZmffjhh3ryySf15JNP6q233pr4KwMAAFOG38FSVVWlVatWqaCgQOnp6aqurlZKSoq2bdvmc3xtba3mzJmj6upqpaenq6CgQCtXrlRlZaVnzNKlS/Xwww8rPT1d8+bNU3FxsRYtWqT3339/4q8MAABMGX4Fy/DwsFpaWpSTk+N1PicnR0eOHPH5nObm5jHjc3NzdezYMZ0/f37MeMuy9M477+jjjz/W3XffPe5ahoaGNDAw4HUAAICpya9g6evr08jIiBITE73OJyYmqre31+dzent7fY6/cOGC+vr6POf6+/sVGxur6Oho3X///frNb36j++67b9y1VFRUKD4+3nOkpKT481IAAEAYmdBNtzabzetny7LGnLvc+P89P2PGDLW2turo0aN6+eWXVVZWpoMHD447Z3l5ufr7+z1HV1fXBF4JAAAIB3Z/Bs+aNUuRkZFj3k1xu91j3kW5KCkpyed4u92umTNnes5FRERo/vz5kqQ77rhDJ0+eVEVFhZYuXepzXofDIYfD4c/yAQBAmPLrHZbo6Gg5nU41NjZ6nW9sbFRWVpbP52RmZo4Zf+DAAWVkZCgqKmrcf5ZlWRoaGvJneQAAYIry6x0WSSorK9Njjz2mjIwMZWZmavv27ers7FRhYaGkLy/VnD59Wrt27ZIkFRYWasuWLSorK9Pq1avV3Nysuro67d692zNnRUWFMjIyNG/ePA0PD6uhoUG7du0a95NHAADg6uJ3sOTn5+vMmTPasGGDenp6tHDhQjU0NGju3LmSpJ6eHq/vZElNTVVDQ4NKS0u1detWJScna/PmzVq+fLlnzLlz51RUVKR//OMfmjZtmhYsWKA33nhD+fn5AXiJAAAg3PkdLJJUVFSkoqIin4+9/vrrY84tWbJEx48fH3e+l156SS+99NJElgIAAK4C/C4hAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYAACA8QgWAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYAACA8QgWAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYAACA8QgWAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYpqiRUSvUSwAAIGDsoV4AgiMywqbiepfa3YMBnXfpLQl6NndBQOcEAOByCJYprN09qLbugYDOOS9hekDnAwDgSnBJCAAAGI9gAQAAxiNYAACA8QgWAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAYAgSIh1aGTUCsrcwZoXMJk91AsAgKkobppdkRE2Fde71O4eDNi882fHatOKxQGbDwgXE3qHpaamRqmpqYqJiZHT6dShQ4cuOb6pqUlOp1MxMTFKS0tTbW2t1+M7duxQdna2rr32Wl177bW699579fe//30iSwMAo7S7B9XWPRCwI5DxA4QTv4Nlz549Kikp0bp16+RyuZSdna28vDx1dnb6HN/R0aFly5YpOztbLpdLa9eu1Zo1a7R3717PmIMHD+qRRx7Ru+++q+bmZs2ZM0c5OTk6ffr0xF8ZAACYMvwOlqqqKq1atUoFBQVKT09XdXW1UlJStG3bNp/ja2trNWfOHFVXVys9PV0FBQVauXKlKisrPWPefPNNFRUV6Y477tCCBQu0Y8cOjY6O6p133pn4KwMAAFOGX8EyPDyslpYW5eTkeJ3PycnRkSNHfD6nubl5zPjc3FwdO3ZM58+f9/mczz//XOfPn9d111037lqGhoY0MDDgdQAAgKnJr2Dp6+vTyMiIEhMTvc4nJiaqt7fX53N6e3t9jr9w4YL6+vp8Pue5557T1772Nd17773jrqWiokLx8fGeIyUlxZ+XAgAAwsiEbrq12WxeP1uWNebc5cb7Oi9Jr7zyinbv3q19+/YpJiZm3DnLy8vV39/vObq6uvx5CQAAIIz49bHmWbNmKTIycsy7KW63e8y7KBclJSX5HG+32zVz5kyv85WVlfrVr36lt99+W4sWLbrkWhwOhxwOhz/LBwAAYcqvd1iio6PldDrV2Njodb6xsVFZWVk+n5OZmTlm/IEDB5SRkaGoqCjPuVdffVUvvvii/vrXvyojI8OfZQEAgCnO70tCZWVleu2117Rz506dPHlSpaWl6uzsVGFhoaQvL9U8/vjjnvGFhYU6deqUysrKdPLkSe3cuVN1dXV65plnPGNeeeUVPf/889q5c6duvPFG9fb2qre3V4ODfN8AAACYwDfd5ufn68yZM9qwYYN6enq0cOFCNTQ0aO7cuZKknp4er+9kSU1NVUNDg0pLS7V161YlJydr8+bNWr58uWdMTU2NhoeH9aMf/cjrn7V+/Xq98MILE3xpAABgqpjQV/MXFRWpqKjI52Ovv/76mHNLlizR8ePHx53vs88+m8gyAADAVYJffggAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAX0FCrEMjo1aolwEAU5491AsAwlncNLsiI2wqrnep3T0YsHmX3pKgZ3MXBGw+AAh3BAsQAO3uQbV1DwRsvnkJ0wM2FwBMBVwSAgAAxiNYAACA8QgW4CrDjcIAwhH3sABXGW4UBhCOCBbgKsWNwgDCCZeEAACA8QgWAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8guUKBPNLtvgCLwAALo/vYbkCwfiSLUmaPztWm1YsDuicAABMRQTLFQr0l2wBAIArxyWhEOJ3ugAAcGV4hyWE+J0uAPx18f/oREbYgjJ/MOcGvgqCxQD8ThcAVypY/0dH4r46mI1gAYAwxH11uNpwDwsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjTShYampqlJqaqpiYGDmdTh06dOiS45uamuR0OhUTE6O0tDTV1tZ6Pd7W1qbly5frxhtvlM1mU3V19USWBQAApii/g2XPnj0qKSnRunXr5HK5lJ2drby8PHV2dvoc39HRoWXLlik7O1sul0tr167VmjVrtHfvXs+Yzz//XGlpadq4caOSkpIm/moAAMCU5HewVFVVadWqVSooKFB6erqqq6uVkpKibdu2+RxfW1urOXPmqLq6Wunp6SooKNDKlStVWVnpGXPnnXfq1Vdf1YoVK+RwOCb+agAAwJTkV7AMDw+rpaVFOTk5XudzcnJ05MgRn89pbm4eMz43N1fHjh3T+fPn/VzufwwNDWlgYMDrAAAAU5NfwdLX16eRkRElJiZ6nU9MTFRvb6/P5/T29vocf+HCBfX19fm53P+oqKhQfHy850hJSZnwXAAAwGwTuunWZrN5/WxZ1phzlxvv67w/ysvL1d/f7zm6uromPBcAADCb3Z/Bs2bNUmRk5Jh3U9xu95h3US5KSkryOd5ut2vmzJl+Lvc/HA4H97sAAHCV8OsdlujoaDmdTjU2Nnqdb2xsVFZWls/nZGZmjhl/4MABZWRkKCoqys/lAgCAq5Hfl4TKysr02muvaefOnTp58qRKS0vV2dmpwsJCSV9eqnn88cc94wsLC3Xq1CmVlZXp5MmT2rlzp+rq6vTMM894xgwPD6u1tVWtra0aHh7W6dOn1draqvb29gC8RAAAEO78uiQkSfn5+Tpz5ow2bNignp4eLVy4UA0NDZo7d64kqaenx+s7WVJTU9XQ0KDS0lJt3bpVycnJ2rx5s5YvX+4Z093drcWLF3t+rqysVGVlpZYsWaKDBw9+hZcHAACmAr+DRZKKiopUVFTk87HXX399zLklS5bo+PHj48534403em7EBQAA+F/8LiEAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYAACA8QgWAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAEHQjo1ZYzg1z2EO9AADA1BcZYVNxvUvt7sGAzjt/dqw2rVgc0DlhJoIFADAp2t2DauseCPUyEKa4JAQAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAElSQqxDI6NWqJcB+GQP9QIAAGaIm2ZXZIRNxfUutbsHAzbv0lsS9GzugoDNh6sTwQIA8NLuHlRb90DA5puXMD1gc+HqxSUhAABgPIIFAIBxBOueHu4V8h+XhAAAGEcw7umZPztWm1YsDth8VwuCBQCASwj0PT2YGC4JAQAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAADCJEmIdGhm1gjZ/MOcOJXuoFwAAwNUkbppdkRE2Fde71O4eDOjc82fHatOKxQGd0xQECwAgbF18tyIywhbqpfit3T2otu6BUC8jbBAsAICwFcx3K5bekqBncxcEdE5M3ITuYampqVFqaqpiYmLkdDp16NChS45vamqS0+lUTEyM0tLSVFtbO2bM3r17deutt8rhcOjWW2/V/v37J7I0AMBV6OK7FYE8uv71eahflt+CeX9MqO+N8fsdlj179qikpEQ1NTX69re/rd/+9rfKy8vTRx99pDlz5owZ39HRoWXLlmn16tV64403dPjwYRUVFSkhIUHLly+XJDU3Nys/P18vvviiHn74Ye3fv18//vGP9f777+uuu+766q8SAICrQLDecTLh3hi/g6WqqkqrVq1SQUGBJKm6ulpvvfWWtm3bpoqKijHja2trNWfOHFVXV0uS0tPTdezYMVVWVnqCpbq6Wvfdd5/Ky8slSeXl5WpqalJ1dbV279490dcGAMBVaSreH+NXsAwPD6ulpUXPPfec1/mcnBwdOXLE53Oam5uVk5PjdS43N1d1dXU6f/68oqKi1NzcrNLS0jFjLkaOL0NDQxoaGvL83N/fL0kaGAjOf0EpsdL56yIDOmeCY1QDAwMBnztY8wZz7nBcczDnZs2TMzdrnpy5w3HNwZw7HNecEhu8v18vzmtZl7nkZPnh9OnTliTr8OHDXudffvll6+abb/b5nJtuusl6+eWXvc4dPnzYkmR1d3dblmVZUVFR1ptvvuk15s0337Sio6PHXcv69estSRwcHBwcHBxT4Ojq6rpkg0zoU0I2m/fHxyzLGnPucuP/97y/c5aXl6usrMzz8+joqP71r39p5syZl3zelRoYGFBKSoq6uroUFxf3lefD+NjrycE+Tx72evKw15MjmPtsWZbOnj2r5OTkS47zK1hmzZqlyMhI9fb2ep13u91KTEz0+ZykpCSf4+12u2bOnHnJMePNKUkOh0MOh8Pr3DXXXHOlL+WKxcXF8T+CScJeTw72efKw15OHvZ4cwdrn+Pj4y47x62PN0dHRcjqdamxs9Drf2NiorKwsn8/JzMwcM/7AgQPKyMhQVFTUJceMNycAALi6+H1JqKysTI899pgyMjKUmZmp7du3q7OzU4WFhZK+vFRz+vRp7dq1S5JUWFioLVu2qKysTKtXr1Zzc7Pq6uq8Pv1TXFysu+++W7/+9a/14IMP6k9/+pPefvttvf/++wF6mQAAIJz5HSz5+fk6c+aMNmzYoJ6eHi1cuFANDQ2aO3euJKmnp0ednZ2e8ampqWpoaFBpaam2bt2q5ORkbd682fORZknKyspSfX29nn/+ef3iF7/QvHnztGfPnpB+B4vD4dD69evHXHZC4LHXk4N9njzs9eRhryeHCftss6zLfY4IAAAgtCb01fwAAACTiWABAADGI1gAAIDxCBYAAGA8gsWHmpoapaamKiYmRk6nU4cOHQr1ksLee++9pwceeEDJycmy2Wz64x//6PW4ZVl64YUXlJycrGnTpmnp0qVqa2sLzWLDWEVFhe68807NmDFDs2fP1kMPPaSPP/7Yawx7HRjbtm3TokWLPF+klZmZqb/85S+ex9nn4KioqJDNZlNJSYnnHHsdGC+88IJsNpvXkZSU5Hk81PtMsPyPPXv2qKSkROvWrZPL5VJ2drby8vK8PqoN/507d0633367tmzZ4vPxV155RVVVVdqyZYuOHj2qpKQk3XfffTp79uwkrzS8NTU16amnntIHH3ygxsZGXbhwQTk5OTp37pxnDHsdGDfccIM2btyoY8eO6dixY/re976nBx980PMvcPY58I4ePart27dr0aJFXufZ68D5+te/rp6eHs9x4sQJz2Mh3+dL/qahq9A3v/lNq7Cw0OvcggULrOeeey5EK5p6JFn79+/3/Dw6OmolJSVZGzdu9Jz74osvrPj4eKu2tjYEK5w63G63JclqamqyLIu9DrZrr73Weu2119jnIDh79qx10003WY2NjdaSJUus4uJiy7L4Mx1I69evt26//Xafj5mwz7zD8l+Gh4fV0tKinJwcr/M5OTk6cuRIiFY19XV0dKi3t9dr3x0Oh5YsWcK+f0X9/f2SpOuuu04Sex0sIyMjqq+v17lz55SZmck+B8FTTz2l+++/X/fee6/XefY6sD755BMlJycrNTVVK1as0KeffirJjH2e0G9rnqr6+vo0MjIy5pcuJiYmjvnljAici3vra99PnToViiVNCZZlqaysTN/5zne0cOFCSex1oJ04cUKZmZn64osvFBsbq/379+vWW2/1/AucfQ6M+vp6HT9+XEePHh3zGH+mA+euu+7Srl27dPPNN+uf//ynXnrpJWVlZamtrc2IfSZYfLDZbF4/W5Y15hwCj30PrKeffloffvihz9/JxV4Hxi233KLW1lb9+9//1t69e/XEE0+oqanJ8zj7/NV1dXWpuLhYBw4cUExMzLjj2OuvLi8vz/Ofb7vtNmVmZmrevHn6/e9/r29961uSQrvPXBL6L7NmzVJkZOSYd1PcbveYqkTgXLwLnX0PnJ/97Gf685//rHfffVc33HCD5zx7HVjR0dGaP3++MjIyVFFRodtvv12bNm1inwOopaVFbrdbTqdTdrtddrtdTU1N2rx5s+x2u2c/2evAmz59um677TZ98sknRvyZJlj+S3R0tJxOpxobG73ONzY2KisrK0SrmvpSU1OVlJTkte/Dw8Nqampi3/1kWZaefvpp7du3T3/729+Umprq9Th7HVyWZWloaIh9DqB77rlHJ06cUGtrq+fIyMjQo48+qtbWVqWlpbHXQTI0NKSTJ0/q+uuvN+PP9KTc2htG6uvrraioKKuurs766KOPrJKSEmv69OnWZ599FuqlhbWzZ89aLpfLcrlcliSrqqrKcrlc1qlTpyzLsqyNGzda8fHx1r59+6wTJ05YjzzyiHX99ddbAwMDIV55ePnpT39qxcfHWwcPHrR6eno8x+eff+4Zw14HRnl5ufXee+9ZHR0d1ocffmitXbvWioiIsA4cOGBZFvscTP/9KSHLYq8D5ec//7l18OBB69NPP7U++OAD6/vf/741Y8YMz99/od5ngsWHrVu3WnPnzrWio6Otb3zjG56PhGLi3n33XUvSmOOJJ56wLOvLj8ytX7/eSkpKshwOh3X33XdbJ06cCO2iw5CvPZZk/e53v/OMYa8DY+XKlZ5/TyQkJFj33HOPJ1Ysi30Opv8NFvY6MPLz863rr7/eioqKspKTk60f/vCHVltbm+fxUO+zzbIsa3LeywEAAJgY7mEBAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYAACA8QgWAABgPIIFAAAY7/8BZJNJj2p0yyEAAAAASUVORK5CYII="},8453:(e,A,t)=>{t.d(A,{R:()=>s,x:()=>i});var n=t(6540);const a={},r=n.createContext(a);function s(e){const A=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(A):{...A,...e}}),[A,e])}function i(e){let A;return A=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),n.createElement(r.Provider,{value:A},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f095f4cd.460bde7f.js b/assets/js/f095f4cd.460bde7f.js new file mode 100644 index 00000000..e87c9415 --- /dev/null +++ b/assets/js/f095f4cd.460bde7f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[28],{8406:(e,A,t)=>{t.r(A),t.d(A,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>l,toc:()=>c});var n=t(4848),a=t(8453),s=t(8597),r=t(5158);const i={sidebar_position:8,sidebar_label:"Boostrapping and Confidence Intervals",title:"Bootstrapping and Confidence Intervals",tags:["for-loop","histogram"]},o=void 0,l={id:"statistical-inference/bootstrapping",title:"Bootstrapping and Confidence Intervals",description:"Concept",source:"@site/docs/statistical-inference/bootstrapping.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/bootstrapping",permalink:"/bpd-reference/docs/statistical-inference/bootstrapping",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/bootstrapping.md",tags:[{label:"for-loop",permalink:"/bpd-reference/docs/tags/for-loop"},{label:"histogram",permalink:"/bpd-reference/docs/tags/histogram"}],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8,sidebar_label:"Boostrapping and Confidence Intervals",title:"Bootstrapping and Confidence Intervals",tags:["for-loop","histogram"]},sidebar:"statsSidebar",previous:{title:"Spread of a Distribution",permalink:"/bpd-reference/docs/statistical-inference/spread_of_a_distribution"},next:{title:"Permutation Test",permalink:"/bpd-reference/docs/statistical-inference/permutation_test"}},d={},c=[{value:"Concept",id:"concept",level:2},{value:"Code Example",id:"code-example",level:2},{value:"1. Take a random sample of size 12 from the <code>full_pets</code> DataFrame.",id:"1-take-a-random-sample-of-size-12-from-the-full_pets-dataframe",level:3},{value:"2. Find the observed parameter",id:"2-find-the-observed-parameter",level:3},{value:"3. Bootstrap the sample 10,000 times with replacement",id:"3-bootstrap-the-sample-10000-times-with-replacement",level:3},{value:"4. Create a 95% confidence interval",id:"4-create-a-95-confidence-interval",level:3},{value:"5. Conclusion",id:"5-conclusion",level:3},{value:"6. Extra",id:"6-extra",level:3}];function p(e){const A={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",hr:"hr",img:"img",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(A.h2,{id:"concept",children:"Concept"}),"\n",(0,n.jsx)(A.admonition,{title:"Key Idea",type:"tip",children:(0,n.jsx)(A.p,{children:"We use a bootstrapping to estimate the distribution of the sample statistic to see how different our it could have been. We use confidence intervals to define a range that captures most of the bootstrapped distribution of the sample statistic."})}),"\n",(0,n.jsxs)(A.admonition,{title:"Terminology",type:"info",children:[(0,n.jsxs)(A.p,{children:[(0,n.jsx)(A.strong,{children:"Bootstrapping"}),": Bootstrapping is a type of hypothesis test that involves resampling from a single sample to estimate the\ndistribution of the sample statistic. It answers the question of how different the sample statistic could have been if given a different sample. To conduct bootstrapping:"]}),(0,n.jsxs)(A.ol,{children:["\n",(0,n.jsx)(A.li,{children:"Resample from the original sample with replacement."}),"\n",(0,n.jsx)(A.li,{children:"Calculate the sample statistic on the bootstrapped resample."}),"\n",(0,n.jsx)(A.li,{children:"Save the results into an array."}),"\n",(0,n.jsx)(A.li,{children:"Repeat steps 1 through 3 to generate an empirical distribution of the test statistic."}),"\n",(0,n.jsx)(A.li,{children:"Calculate the confidence interval and see if the observed statistic lies in it. If the observed statistic is not\nin our confidence interval, we have evidence to reject the null."}),"\n"]}),(0,n.jsxs)(A.p,{children:[(0,n.jsx)(A.strong,{children:"Confidence Intervals:"})," A confidence interval is a range that captures most of the distribution of the bootstrapped sample statistic in\nthe hopes of also containing the true population parameter within it. If\nwe were to construct a 95% confidence interval, we aren't saying that there is a 95% chance that the true population parameter lies in the\ninterval as the interval either contains it or it doesn't. Instead, we are saying that approximately 95% of the time, the intervals you\ncreate will contain the true population parameter. For example, if we generated 100 confidence intervals, about 95 of them will have the\ntrue population parameter."]})]}),"\n",(0,n.jsx)(A.admonition,{type:"note",children:(0,n.jsx)(A.p,{children:"When resampling, the size of the resample should be the same as the original sample with replacement."})}),"\n",(0,n.jsx)(A.p,{children:"The diagram below provides an overview of conducting bootstrapping, although it references a different dataset."}),"\n",(0,n.jsx)(r.A,{src:"https://docs.google.com/presentation/d/e/2PACX-1vS_iYHJYXSVMMZ-YQVFwMEFR6EFN3FDSAvaMyUm-YJfLQgRMTHm3vI-wWJJ5999eFJq70nWp2hyItZg/embed?start=true&loop=false&delayms=3000&rm=minimal",sourceLink:"https://docs.google.com/presentation/d/1oYakqMdI7z61BthvgWUJvbT21bKTXg01KmAibglepBI/edit?usp=sharing"}),"\n",(0,n.jsxs)(A.p,{children:["The diagram below provides an overview of creating confidence intervals, although it references a different situation. For additional helpful visual guides, please visit the ",(0,n.jsx)(A.a,{href:"https://dsc10.com/diagrams/",children:"Diagrams"})," site."]}),"\n",(0,n.jsx)(r.A,{src:"https://docs.google.com/presentation/d/e/2PACX-1vTaPZsueXI6fey_5cj2Y1TevkR1joBvpwaWVsZNvgBlnJSrw1EiBLHJywkFH_QNLU5Tdr6JZgDrhFxG/embed?start=true&loop=false&delayms=3000&rm=minimal",sourceLink:"https://docs.google.com/presentation/d/1l5GVyl60FrornEaZnGL6REV4gjEydRncNVi6k1hHUsA/edit?usp=sharing"}),"\n",(0,n.jsx)(A.hr,{}),"\n",(0,n.jsx)(A.h2,{id:"code-example",children:"Code Example"}),"\n",(0,n.jsxs)(A.h3,{id:"1-take-a-random-sample-of-size-12-from-the-full_pets-dataframe",children:["1. Take a random sample of size 12 from the ",(0,n.jsx)(A.code,{children:"full_pets"})," DataFrame."]}),"\n",(0,n.jsxs)(A.p,{children:["Let's say we didn't have access to all of the information in the ",(0,n.jsx)(A.code,{children:"full_pets"})," DataFrame and were only able to collect a sample of 12 pets."]}),"\n",(0,n.jsx)(A.pre,{children:(0,n.jsx)(A.code,{className:"language-python",children:"# Magic to ensure that we get the same results every time this code is run. \nnp.random.seed(42)\n\n# sample\npets_sample = full_pets.sample(12, replace=False)\npets_sample\n"})}),"\n",(0,n.jsx)(s.A,{data:'{"columns":["Unnamed: 0","ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[18,14,4,13,10,7,6,3,2,15,17,8],"data":[[18,"cat_006","cat","black",3.0,0.5,true,"No, thank you!"],[14,"dog_007","dog","white",50.0,6.1,false,"No, thank you!"],[4,"dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],[13,"ham_003","hamster","black",0.5,0.1,false,"No, thank you!"],[10,"dog_006","dog","golden",35.0,4.0,false,"No, thank you!"],[7,"cat_003","cat","black",10.0,0.0,true,"No, thank you!"],[6,"ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],[3,"dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],[2,"cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],[15,"ham_004","hamster","golden",0.25,0.2,false,"No, thank you!"],[17,"dog_009","dog","white",30.0,4.8,false,"No, thank you!"],[8,"dog_004","dog","black",45.0,6.7,false,"No, thank you!"]]}'}),"\n",(0,n.jsx)(A.hr,{}),"\n",(0,n.jsx)(A.h3,{id:"2-find-the-observed-parameter",children:"2. Find the observed parameter"}),"\n",(0,n.jsx)(A.p,{children:"In this case, we are interested in finding the median weight of the entire population."}),"\n",(0,n.jsx)(A.pre,{children:(0,n.jsx)(A.code,{className:"language-python",children:"pets_sample = full_pets.sample(12, replace=False)\nprint('Median of pets_sample weight:', pets_sample.get('Weight').median())\n"})}),"\n",(0,n.jsx)(A.p,{children:"Median of pets_sample weight: 20.0"}),"\n",(0,n.jsx)(A.hr,{}),"\n",(0,n.jsx)(A.h3,{id:"3-bootstrap-the-sample-10000-times-with-replacement",children:"3. Bootstrap the sample 10,000 times with replacement"}),"\n",(0,n.jsx)(A.p,{children:"Since we were only able to collect one random sample from the full population, we can't be sure if this singular guess predicts the\ntrue population parameter well. We can't go out and collect\nanother random sample, so we will resample from the original sample with replacement to simulate what could've been."}),"\n",(0,n.jsx)(A.pre,{children:(0,n.jsx)(A.code,{className:"language-python",children:"boot_medians = np.array([])\nfor i in np.arange(10000):\n # 1. resample the data\n resample = pets_sample.sample(pets_sample.shape[0], replace=True)\n\n # 2. calculate the median of the resample\n boot_median = resample.get('Weight').median()\n\n # 3. append the median to the array\n boot_medians = np.append(boot_medians, boot_median)\n"})}),"\n",(0,n.jsx)(A.p,{children:"This code will create 10,000 bootstrapped samples and calculate the median for each of them, but a different\nreasonable number can be used instead. Since these samples are all random, the information in each sample and\nmedian will be different from one another."}),"\n",(0,n.jsx)(A.hr,{}),"\n",(0,n.jsx)(A.h3,{id:"4-create-a-95-confidence-interval",children:"4. Create a 95% confidence interval"}),"\n",(0,n.jsx)(A.p,{children:"Instead of using a single number to estimate the true population parameter, we create a range of where we think it is."}),"\n",(0,n.jsx)(A.pre,{children:(0,n.jsx)(A.code,{className:"language-python",children:"# Get the 95% confidence interval\nleft = np.percentile(boot_medians, 2.5) # 2.5th percentile\nright = np.percentile(boot_medians, 97.5) # 97.5th percentile\n"})}),"\n",(0,n.jsx)(A.p,{children:"Remember that the 95% confidence interval does not mean we have a 95% chance of containing the true population parameter. It means\nthat about 95% of all intervals we create will contain the true population parameter."}),"\n",(0,n.jsx)(A.hr,{}),"\n",(0,n.jsx)(A.h3,{id:"5-conclusion",children:"5. Conclusion"}),"\n",(0,n.jsx)(A.pre,{children:(0,n.jsx)(A.code,{className:"language-python",children:"left, right\n"})}),"\n",(0,n.jsx)(A.p,{children:"(1.75, 40.0)"}),"\n",(0,n.jsx)(A.admonition,{title:"Conclusion",type:"info",children:(0,n.jsxs)(A.ul,{children:["\n",(0,n.jsx)(A.li,{children:"From this interval, we are 95% confident that the true population median lies somewhere between 1.75 and 40."}),"\n",(0,n.jsx)(A.li,{children:"We have no way of knowing where exactly in this interval does the true population median falls or even if it is contained at all."}),"\n",(0,n.jsx)(A.li,{children:"What we do know is that if we were to repeat the process and generate multiple confidence intervals, roughly 95% of them will\ncontain the true population median."}),"\n"]})}),"\n",(0,n.jsx)(A.hr,{}),"\n",(0,n.jsx)(A.h3,{id:"6-extra",children:"6. Extra"}),"\n",(0,n.jsx)(A.p,{children:"Let's look at the distribution of the bootstrapped medians!"}),"\n",(0,n.jsx)(A.pre,{children:(0,n.jsx)(A.code,{className:"language-python",children:"# Create the histogram.\n# Plot the histogram of boot_medians\nplt.hist(boot_medians, bins=20, density=True, ec = 'w')\n\nplt.show()\n"})}),"\n",(0,n.jsx)(A.p,{children:(0,n.jsx)(A.img,{alt:"Distribution",src:t(3698).A+"",width:"556",height:"413"})}),"\n",(0,n.jsxs)(A.p,{children:["A 95% confidence level means that ",(0,n.jsx)(A.strong,{children:"approximately 95% of the time, the intervals you create through this process will contain the true population parameter"}),"."]})]})}function h(e={}){const{wrapper:A}={...(0,a.R)(),...e.components};return A?(0,n.jsx)(A,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},8597:(e,A,t)=>{t.d(A,{A:()=>a});t(6540);var n=t(4848);const a=e=>{let{data:A}=e,t=[],a=[],s="",r=[];if(A){const e=JSON.parse(A);t=e.columns||[],a=e.data||[],s=e.indexName||"Index",r=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:s}),t.map(((e,A)=>(0,n.jsx)("th",{children:e},A)))]})}),(0,n.jsx)("tbody",{children:a.map(((e,A)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:r[A]}),e.map(((e,A)=>{return(0,n.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},A);var t}))]},A)))})]})})}},5158:(e,A,t)=>{t.d(A,{A:()=>s});var n=t(6540),a=t(4848);const s=function(e){let{src:A,sourceLink:t,aspectRatio:s=16/9}=e;const[r,i]=(0,n.useState)(0),[o,l]=(0,n.useState)(0),d=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const e=()=>{if(d.current){const e=d.current.offsetWidth;l(e/s)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[s]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:d,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,a.jsx)("iframe",{src:A,style:{width:"100%",height:`${o}px`,border:"0",allowFullScreen:!0}},r)}),(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,a.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,a.jsx)("button",{onClick:()=>{i((e=>e+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#45a049",onMouseOut:e=>e.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},3698:(e,A,t)=>{t.d(A,{A:()=>n});const n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAGdCAYAAAAxCSikAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy88F64QAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAgqElEQVR4nO3df0zU9+HH8dfBwWFEaKsIZUUL2lY6a+uOroON6tYWgl3Xdi7DpmubKiaMdvJjbVK0i51th2sJQafItLjOtRH/ULclX7ZKu0qt0kzxSA01TUmpMIFdcBmITUHh8/2j8bYbh3r0jnsfPh/JJxmfe9+773vP1efu87nDZlmWJQAAAINFhHoBAAAAl0OwAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADCePdQLCJTR0VF1d3drxowZstlsoV4OAAC4ApZl6ezZs0pOTlZExPjvo0yZYOnu7lZKSkqolwEAACagq6tLN9xww7iPT5lgmTFjhqQvX3BcXFyIVwMAAK7EwMCAUlJSPH+Pj2fKBMvFy0BxcXEECwAAYeZyt3Nw0y0AADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsACGGhm1wnJuAAgGe6gXAMC3yAibiutdancPBnTe+bNjtWnF4oDOCQDBRrAABmt3D6qteyDUywCAkOOSEAAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAw3oSCpaamRqmpqYqJiZHT6dShQ4cuOb6pqUlOp1MxMTFKS0tTbW3tuGPr6+tls9n00EMPTWRpAABgCvI7WPbs2aOSkhKtW7dOLpdL2dnZysvLU2dnp8/xHR0dWrZsmbKzs+VyubR27VqtWbNGe/fuHTP21KlTeuaZZ5Sdne3/KwEAAFOW38FSVVWlVatWqaCgQOnp6aqurlZKSoq2bdvmc3xtba3mzJmj6upqpaenq6CgQCtXrlRlZaXXuJGRET366KP65S9/qbS0tIm9GgAAMCX5FSzDw8NqaWlRTk6O1/mcnBwdOXLE53Oam5vHjM/NzdWxY8d0/vx5z7kNGzYoISFBq1atuqK1DA0NaWBgwOsAAABTk1/B0tfXp5GRESUmJnqdT0xMVG9vr8/n9Pb2+hx/4cIF9fX1SZIOHz6suro67dix44rXUlFRofj4eM+RkpLiz0sBAABhZEI33dpsNq+fLcsac+5y4y+eP3v2rH7yk59ox44dmjVr1hWvoby8XP39/Z6jq6vLj1cAAADCid2fwbNmzVJkZOSYd1PcbveYd1EuSkpK8jnebrdr5syZamtr02effaYHHnjA8/jo6OiXi7Pb9fHHH2vevHlj5nU4HHI4HP4sHwAAhCm/3mGJjo6W0+lUY2Oj1/nGxkZlZWX5fE5mZuaY8QcOHFBGRoaioqK0YMECnThxQq2trZ7jBz/4gb773e+qtbWVSz0AAMC/d1gkqaysTI899pgyMjKUmZmp7du3q7OzU4WFhZK+vFRz+vRp7dq1S5JUWFioLVu2qKysTKtXr1Zzc7Pq6uq0e/duSVJMTIwWLlzo9c+45pprJGnMeWCiRkYtRUaMf9nS1LkBAF/yO1jy8/N15swZbdiwQT09PVq4cKEaGho0d+5cSVJPT4/Xd7KkpqaqoaFBpaWl2rp1q5KTk7V582YtX748cK8CuIzICJuK611qdw8GdN75s2O1acXigM4JABjLZl28AzbMDQwMKD4+Xv39/YqLiwv1cmCg+zcfUlt3YD/+/vXkOP3fmuB90WE4rhkA/HGlf3/zu4Tgt5HR4DRusOYFAIQ/vy8JAcG4vMKlFQDApRAsmJB292DAL1UAADAeLgkBAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAACZmTUCsu5AZjPHuoFAJg6IiNsKq53qd09GNB558+O1aYViwM6J4DwQrAACKh296DaugdCvQwAUwyXhABc1biMBYQH3mEBcFXjMhYQHggWAFc9LmMB5uOSEAAAMB7BAgAAjEewwAgJsQ5uUAQAjIt7WGCEuGn2oN38uPSWBD2buyCgcwIAJhfBAqME4+bHeQnTAzofAGDycUkIAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYAACA8QgWAABgPIIFgPESYh0aGbVCvQwAIcRvawZgvLhpdkVG2FRc71K7ezBg8y69JUHP5i4I2HwAgodgARA22t2DauseCNh88xKmB2wuAMHFJSEAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYAACA8QgWAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxptQsNTU1Cg1NVUxMTFyOp06dOjQJcc3NTXJ6XQqJiZGaWlpqq2t9Xp83759ysjI0DXXXKPp06frjjvu0B/+8IeJLA0AAExBfgfLnj17VFJSonXr1snlcik7O1t5eXnq7Oz0Ob6jo0PLli1Tdna2XC6X1q5dqzVr1mjv3r2eMdddd53WrVun5uZmffjhh3ryySf15JNP6q233pr4KwMAAFOG38FSVVWlVatWqaCgQOnp6aqurlZKSoq2bdvmc3xtba3mzJmj6upqpaenq6CgQCtXrlRlZaVnzNKlS/Xwww8rPT1d8+bNU3FxsRYtWqT3339/4q8MAABMGX4Fy/DwsFpaWpSTk+N1PicnR0eOHPH5nObm5jHjc3NzdezYMZ0/f37MeMuy9M477+jjjz/W3XffPe5ahoaGNDAw4HUAAICpya9g6evr08jIiBITE73OJyYmqre31+dzent7fY6/cOGC+vr6POf6+/sVGxur6Oho3X///frNb36j++67b9y1VFRUKD4+3nOkpKT481IAAEAYmdBNtzabzetny7LGnLvc+P89P2PGDLW2turo0aN6+eWXVVZWpoMHD447Z3l5ufr7+z1HV1fXBF4JAAAIB3Z/Bs+aNUuRkZFj3k1xu91j3kW5KCkpyed4u92umTNnes5FRERo/vz5kqQ77rhDJ0+eVEVFhZYuXepzXofDIYfD4c/yAQBAmPLrHZbo6Gg5nU41NjZ6nW9sbFRWVpbP52RmZo4Zf+DAAWVkZCgqKmrcf5ZlWRoaGvJneQAAYIry6x0WSSorK9Njjz2mjIwMZWZmavv27ers7FRhYaGkLy/VnD59Wrt27ZIkFRYWasuWLSorK9Pq1avV3Nysuro67d692zNnRUWFMjIyNG/ePA0PD6uhoUG7du0a95NHAADg6uJ3sOTn5+vMmTPasGGDenp6tHDhQjU0NGju3LmSpJ6eHq/vZElNTVVDQ4NKS0u1detWJScna/PmzVq+fLlnzLlz51RUVKR//OMfmjZtmhYsWKA33nhD+fn5AXiJAAAg3PkdLJJUVFSkoqIin4+9/vrrY84tWbJEx48fH3e+l156SS+99NJElgIAAK4C/C4hAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYAACA8QgWAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYAACA8QgWAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYAACA8QgWAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYpqiRUSvUSwAAIGDsoV4AgiMywqbiepfa3YMBnXfpLQl6NndBQOcEAOByCJYprN09qLbugYDOOS9hekDnAwDgSnBJCAAAGI9gAQAAxiNYAACA8QgWAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAYAgSIh1aGTUCsrcwZoXMJk91AsAgKkobppdkRE2Fde71O4eDNi882fHatOKxQGbDwgXE3qHpaamRqmpqYqJiZHT6dShQ4cuOb6pqUlOp1MxMTFKS0tTbW2t1+M7duxQdna2rr32Wl177bW699579fe//30iSwMAo7S7B9XWPRCwI5DxA4QTv4Nlz549Kikp0bp16+RyuZSdna28vDx1dnb6HN/R0aFly5YpOztbLpdLa9eu1Zo1a7R3717PmIMHD+qRRx7Ru+++q+bmZs2ZM0c5OTk6ffr0xF8ZAACYMvwOlqqqKq1atUoFBQVKT09XdXW1UlJStG3bNp/ja2trNWfOHFVXVys9PV0FBQVauXKlKisrPWPefPNNFRUV6Y477tCCBQu0Y8cOjY6O6p133pn4KwMAAFOGX8EyPDyslpYW5eTkeJ3PycnRkSNHfD6nubl5zPjc3FwdO3ZM58+f9/mczz//XOfPn9d111037lqGhoY0MDDgdQAAgKnJr2Dp6+vTyMiIEhMTvc4nJiaqt7fX53N6e3t9jr9w4YL6+vp8Pue5557T1772Nd17773jrqWiokLx8fGeIyUlxZ+XAgAAwsiEbrq12WxeP1uWNebc5cb7Oi9Jr7zyinbv3q19+/YpJiZm3DnLy8vV39/vObq6uvx5CQAAIIz49bHmWbNmKTIycsy7KW63e8y7KBclJSX5HG+32zVz5kyv85WVlfrVr36lt99+W4sWLbrkWhwOhxwOhz/LBwAAYcqvd1iio6PldDrV2Njodb6xsVFZWVk+n5OZmTlm/IEDB5SRkaGoqCjPuVdffVUvvvii/vrXvyojI8OfZQEAgCnO70tCZWVleu2117Rz506dPHlSpaWl6uzsVGFhoaQvL9U8/vjjnvGFhYU6deqUysrKdPLkSe3cuVN1dXV65plnPGNeeeUVPf/889q5c6duvPFG9fb2qre3V4ODfN8AAACYwDfd5ufn68yZM9qwYYN6enq0cOFCNTQ0aO7cuZKknp4er+9kSU1NVUNDg0pLS7V161YlJydr8+bNWr58uWdMTU2NhoeH9aMf/cjrn7V+/Xq98MILE3xpAABgqpjQV/MXFRWpqKjI52Ovv/76mHNLlizR8ePHx53vs88+m8gyAADAVYJffggAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAX0FCrEMjo1aolwEAU5491AsAwlncNLsiI2wqrnep3T0YsHmX3pKgZ3MXBGw+AAh3BAsQAO3uQbV1DwRsvnkJ0wM2FwBMBVwSAgAAxiNYAACA8QgW4CrDjcIAwhH3sABXGW4UBhCOCBbgKsWNwgDCCZeEAACA8QgWAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8guUKBPNLtvgCLwAALo/vYbkCwfiSLUmaPztWm1YsDuicAABMRQTLFQr0l2wBAIArxyWhEOJ3ugAAcGV4hyWE+J0uAPx18f/oREbYgjJ/MOcGvgqCxQD8ThcAVypY/0dH4r46mI1gAYAwxH11uNpwDwsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjTShYampqlJqaqpiYGDmdTh06dOiS45uamuR0OhUTE6O0tDTV1tZ6Pd7W1qbly5frxhtvlM1mU3V19USWBQAApii/g2XPnj0qKSnRunXr5HK5lJ2drby8PHV2dvoc39HRoWXLlik7O1sul0tr167VmjVrtHfvXs+Yzz//XGlpadq4caOSkpIm/moAAMCU5HewVFVVadWqVSooKFB6erqqq6uVkpKibdu2+RxfW1urOXPmqLq6Wunp6SooKNDKlStVWVnpGXPnnXfq1Vdf1YoVK+RwOCb+agAAwJTkV7AMDw+rpaVFOTk5XudzcnJ05MgRn89pbm4eMz43N1fHjh3T+fPn/VzufwwNDWlgYMDrAAAAU5NfwdLX16eRkRElJiZ6nU9MTFRvb6/P5/T29vocf+HCBfX19fm53P+oqKhQfHy850hJSZnwXAAAwGwTuunWZrN5/WxZ1phzlxvv67w/ysvL1d/f7zm6uromPBcAADCb3Z/Bs2bNUmRk5Jh3U9xu95h3US5KSkryOd5ut2vmzJl+Lvc/HA4H97sAAHCV8OsdlujoaDmdTjU2Nnqdb2xsVFZWls/nZGZmjhl/4MABZWRkKCoqys/lAgCAq5Hfl4TKysr02muvaefOnTp58qRKS0vV2dmpwsJCSV9eqnn88cc94wsLC3Xq1CmVlZXp5MmT2rlzp+rq6vTMM894xgwPD6u1tVWtra0aHh7W6dOn1draqvb29gC8RAAAEO78uiQkSfn5+Tpz5ow2bNignp4eLVy4UA0NDZo7d64kqaenx+s7WVJTU9XQ0KDS0lJt3bpVycnJ2rx5s5YvX+4Z093drcWLF3t+rqysVGVlpZYsWaKDBw9+hZcHAACmAr+DRZKKiopUVFTk87HXX399zLklS5bo+PHj48534403em7EBQAA+F/8LiEAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYAACA8QgWAABgPIIFAAAYj2ABAADGI1gAAIDxCBYAAGA8ggUAEHQjo1ZYzg1z2EO9AADA1BcZYVNxvUvt7sGAzjt/dqw2rVgc0DlhJoIFADAp2t2DauseCPUyEKa4JAQAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAElSQqxDI6NWqJcB+GQP9QIAAGaIm2ZXZIRNxfUutbsHAzbv0lsS9GzugoDNh6sTwQIA8NLuHlRb90DA5puXMD1gc+HqxSUhAABgPIIFAIBxBOueHu4V8h+XhAAAGEcw7umZPztWm1YsDth8VwuCBQCASwj0PT2YGC4JAQAA4xEsAADAeAQLAAAwHsECAACMR7AAAADjESwAAMB4BAsAADAewQIAAIxHsAAAAOMRLAAAwHgECwAAMB7BAgAAjEewAAAA4xEsAADAeAQLAAAwHsECAACMR7AAADCJEmIdGhm1gjZ/MOcOJXuoFwAAwNUkbppdkRE2Fde71O4eDOjc82fHatOKxQGd0xQECwAgbF18tyIywhbqpfit3T2otu6BUC8jbBAsAICwFcx3K5bekqBncxcEdE5M3ITuYampqVFqaqpiYmLkdDp16NChS45vamqS0+lUTEyM0tLSVFtbO2bM3r17deutt8rhcOjWW2/V/v37J7I0AMBV6OK7FYE8uv71eahflt+CeX9MqO+N8fsdlj179qikpEQ1NTX69re/rd/+9rfKy8vTRx99pDlz5owZ39HRoWXLlmn16tV64403dPjwYRUVFSkhIUHLly+XJDU3Nys/P18vvviiHn74Ye3fv18//vGP9f777+uuu+766q8SAICrQLDecTLh3hi/g6WqqkqrVq1SQUGBJKm6ulpvvfWWtm3bpoqKijHja2trNWfOHFVXV0uS0tPTdezYMVVWVnqCpbq6Wvfdd5/Ky8slSeXl5WpqalJ1dbV279490dcGAMBVaSreH+NXsAwPD6ulpUXPPfec1/mcnBwdOXLE53Oam5uVk5PjdS43N1d1dXU6f/68oqKi1NzcrNLS0jFjLkaOL0NDQxoaGvL83N/fL0kaGAjOf0EpsdL56yIDOmeCY1QDAwMBnztY8wZz7nBcczDnZs2TMzdrnpy5w3HNwZw7HNecEhu8v18vzmtZl7nkZPnh9OnTliTr8OHDXudffvll6+abb/b5nJtuusl6+eWXvc4dPnzYkmR1d3dblmVZUVFR1ptvvuk15s0337Sio6PHXcv69estSRwcHBwcHBxT4Ojq6rpkg0zoU0I2m/fHxyzLGnPucuP/97y/c5aXl6usrMzz8+joqP71r39p5syZl3zelRoYGFBKSoq6uroUFxf3lefD+NjrycE+Tx72evKw15MjmPtsWZbOnj2r5OTkS47zK1hmzZqlyMhI9fb2ep13u91KTEz0+ZykpCSf4+12u2bOnHnJMePNKUkOh0MOh8Pr3DXXXHOlL+WKxcXF8T+CScJeTw72efKw15OHvZ4cwdrn+Pj4y47x62PN0dHRcjqdamxs9Drf2NiorKwsn8/JzMwcM/7AgQPKyMhQVFTUJceMNycAALi6+H1JqKysTI899pgyMjKUmZmp7du3q7OzU4WFhZK+vFRz+vRp7dq1S5JUWFioLVu2qKysTKtXr1Zzc7Pq6uq8Pv1TXFysu+++W7/+9a/14IMP6k9/+pPefvttvf/++wF6mQAAIJz5HSz5+fk6c+aMNmzYoJ6eHi1cuFANDQ2aO3euJKmnp0ednZ2e8ampqWpoaFBpaam2bt2q5ORkbd682fORZknKyspSfX29nn/+ef3iF7/QvHnztGfPnpB+B4vD4dD69evHXHZC4LHXk4N9njzs9eRhryeHCftss6zLfY4IAAAgtCb01fwAAACTiWABAADGI1gAAIDxCBYAAGA8gsWHmpoapaamKiYmRk6nU4cOHQr1ksLee++9pwceeEDJycmy2Wz64x//6PW4ZVl64YUXlJycrGnTpmnp0qVqa2sLzWLDWEVFhe68807NmDFDs2fP1kMPPaSPP/7Yawx7HRjbtm3TokWLPF+klZmZqb/85S+ex9nn4KioqJDNZlNJSYnnHHsdGC+88IJsNpvXkZSU5Hk81PtMsPyPPXv2qKSkROvWrZPL5VJ2drby8vK8PqoN/507d0633367tmzZ4vPxV155RVVVVdqyZYuOHj2qpKQk3XfffTp79uwkrzS8NTU16amnntIHH3ygxsZGXbhwQTk5OTp37pxnDHsdGDfccIM2btyoY8eO6dixY/re976nBx980PMvcPY58I4ePart27dr0aJFXufZ68D5+te/rp6eHs9x4sQJz2Mh3+dL/qahq9A3v/lNq7Cw0OvcggULrOeeey5EK5p6JFn79+/3/Dw6OmolJSVZGzdu9Jz74osvrPj4eKu2tjYEK5w63G63JclqamqyLIu9DrZrr73Weu2119jnIDh79qx10003WY2NjdaSJUus4uJiy7L4Mx1I69evt26//Xafj5mwz7zD8l+Gh4fV0tKinJwcr/M5OTk6cuRIiFY19XV0dKi3t9dr3x0Oh5YsWcK+f0X9/f2SpOuuu04Sex0sIyMjqq+v17lz55SZmck+B8FTTz2l+++/X/fee6/XefY6sD755BMlJycrNTVVK1as0KeffirJjH2e0G9rnqr6+vo0MjIy5pcuJiYmjvnljAici3vra99PnToViiVNCZZlqaysTN/5zne0cOFCSex1oJ04cUKZmZn64osvFBsbq/379+vWW2/1/AucfQ6M+vp6HT9+XEePHh3zGH+mA+euu+7Srl27dPPNN+uf//ynXnrpJWVlZamtrc2IfSZYfLDZbF4/W5Y15hwCj30PrKeffloffvihz9/JxV4Hxi233KLW1lb9+9//1t69e/XEE0+oqanJ8zj7/NV1dXWpuLhYBw4cUExMzLjj2OuvLi8vz/Ofb7vtNmVmZmrevHn6/e9/r29961uSQrvPXBL6L7NmzVJkZOSYd1PcbveYqkTgXLwLnX0PnJ/97Gf685//rHfffVc33HCD5zx7HVjR0dGaP3++MjIyVFFRodtvv12bNm1inwOopaVFbrdbTqdTdrtddrtdTU1N2rx5s+x2u2c/2evAmz59um677TZ98sknRvyZJlj+S3R0tJxOpxobG73ONzY2KisrK0SrmvpSU1OVlJTkte/Dw8Nqampi3/1kWZaefvpp7du3T3/729+Umprq9Th7HVyWZWloaIh9DqB77rlHJ06cUGtrq+fIyMjQo48+qtbWVqWlpbHXQTI0NKSTJ0/q+uuvN+PP9KTc2htG6uvrraioKKuurs766KOPrJKSEmv69OnWZ599FuqlhbWzZ89aLpfLcrlcliSrqqrKcrlc1qlTpyzLsqyNGzda8fHx1r59+6wTJ05YjzzyiHX99ddbAwMDIV55ePnpT39qxcfHWwcPHrR6eno8x+eff+4Zw14HRnl5ufXee+9ZHR0d1ocffmitXbvWioiIsA4cOGBZFvscTP/9KSHLYq8D5ec//7l18OBB69NPP7U++OAD6/vf/741Y8YMz99/od5ngsWHrVu3WnPnzrWio6Otb3zjG56PhGLi3n33XUvSmOOJJ56wLOvLj8ytX7/eSkpKshwOh3X33XdbJ06cCO2iw5CvPZZk/e53v/OMYa8DY+XKlZ5/TyQkJFj33HOPJ1Ysi30Opv8NFvY6MPLz863rr7/eioqKspKTk60f/vCHVltbm+fxUO+zzbIsa3LeywEAAJgY7mEBAADGI1gAAIDxCBYAAGA8ggUAABiPYAEAAMYjWAAAgPEIFgAAYDyCBQAAGI9gAQAAxiNYAACA8QgWAABgPIIFAAAY7/8BZJNJj2p0yyEAAAAASUVORK5CYII="},8453:(e,A,t)=>{t.d(A,{R:()=>r,x:()=>i});var n=t(6540);const a={},s=n.createContext(a);function r(e){const A=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(A):{...A,...e}}),[A,e])}function i(e){let A;return A=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:r(e.components),n.createElement(s.Provider,{value:A},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f0994678.04e51180.js b/assets/js/f0994678.04e51180.js new file mode 100644 index 00000000..a181a920 --- /dev/null +++ b/assets/js/f0994678.04e51180.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2808],{1478:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>o,contentTitle:()=>i,default:()=>m,frontMatter:()=>a,metadata:()=>c,toc:()=>d});var s=r(4848),n=r(8453);r(8597),r(8205);const a={sidebar_position:2},i=void 0,c={id:"documentation/data format conversion/list()",title:"list()",description:"list(arr)",source:"@site/docs/documentation/data format conversion/list().md",sourceDirName:"documentation/data format conversion",slug:"/documentation/data format conversion/list()",permalink:"/bpd-reference/docs/documentation/data format conversion/list()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/data format conversion/list().md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"docsSidebar",previous:{title:"np.array()",permalink:"/bpd-reference/docs/documentation/data format conversion/np.array()"},next:{title:"Querying",permalink:"/bpd-reference/docs/category/querying"}},o={},d=[];function l(e){const t={code:"code",hr:"hr",p:"p",pre:"pre",...(0,n.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"list(arr)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:"Casts an array into a list."})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["arr : ",(0,s.jsx)("em",{children:"array"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Array that you want to cast into a list."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"new_list - A new list that contains every element from the array, in list form."}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"List"})]})]}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:'pets_arr = np.array(["dog", "cat", "hamster", "cat", "cat", "dog", "dog", "hamster", "hamster"])\npet_arr\n'})}),"\n",(0,s.jsx)(t.p,{children:'array(["dog", "cat", "hamster", "cat", "cat", "dog", "dog", "hamster", "hamster"])'}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:"pet_list = list(pet_arr)\npet_list\n"})}),"\n",(0,s.jsx)(t.p,{children:'["dog", "cat", "hamster", "cat", "cat", "dog", "dog", "hamster", "hamster"]'})]})}function m(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8597:(e,t,r)=>{r.d(t,{A:()=>n});r(6540);var s=r(4848);const n=e=>{let{data:t}=e,r=[],n=[],a="",i=[];if(t){const e=JSON.parse(t);r=e.columns||[],n=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:a}),r.map(((e,t)=>(0,s.jsx)("th",{children:e},t)))]})}),(0,s.jsx)("tbody",{children:n.map(((e,t)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:i[t]}),e.map(((e,t)=>{return(0,s.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},t);var r}))]},t)))})]})})}},8205:(e,t,r)=>{r.d(t,{A:()=>n});r(6540);var s=r(4848);const n=e=>{let{data:t}=e,r=[],n=[],a="",i="";if(t)try{const e=JSON.parse(t);a=e.name||"",i=e.dtype||"Unknown type",r=e.index||[],n=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const c=n.map((e=>JSON.stringify(e)));return(0,s.jsxs)("div",{className:"series-container",children:[(0,s.jsx)("ul",{className:"series-list",children:c.map(((e,t)=>(0,s.jsxs)("li",{className:"series-item",children:[(0,s.jsx)("span",{className:"series-index",children:r[t]}),(0,s.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},t)))}),(0,s.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},8453:(e,t,r)=>{r.d(t,{R:()=>i,x:()=>c});var s=r(6540);const n={},a=s.createContext(n);function i(e){const t=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),s.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f0994678.6ec7c52a.js b/assets/js/f0994678.6ec7c52a.js deleted file mode 100644 index 334a6c08..00000000 --- a/assets/js/f0994678.6ec7c52a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2808],{1478:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>o,contentTitle:()=>i,default:()=>m,frontMatter:()=>a,metadata:()=>c,toc:()=>d});var s=r(4848),n=r(8453);r(8597),r(8205);const a={sidebar_position:2},i=void 0,c={id:"documentation/data format conversion/list()",title:"list()",description:"list(arr)",source:"@site/docs/documentation/data format conversion/list().md",sourceDirName:"documentation/data format conversion",slug:"/documentation/data format conversion/list()",permalink:"/bpd-reference/docs/documentation/data format conversion/list()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/data format conversion/list().md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"docsSidebar",previous:{title:"np.array()",permalink:"/bpd-reference/docs/documentation/data format conversion/np.array()"},next:{title:"Querying",permalink:"/bpd-reference/docs/category/querying"}},o={},d=[];function l(e){const t={code:"code",hr:"hr",p:"p",pre:"pre",...(0,n.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"list(arr)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:"Casts an array into a list."})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["arr : ",(0,s.jsx)("em",{children:"array"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Array that you want to cast into a list."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"new_list - A new list that contains every element from the array, in list form."}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"List"})]})]}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:'pets_arr = np.array(["dog", "cat", "hamster", "cat", "cat", "dog", "dog", "hamster", "hamster"])\r\npet_arr\n'})}),"\n",(0,s.jsx)(t.p,{children:'array(["dog", "cat", "hamster", "cat", "cat", "dog", "dog", "hamster", "hamster"])'}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:"pet_list = list(pet_arr)\r\npet_list\n"})}),"\n",(0,s.jsx)(t.p,{children:'["dog", "cat", "hamster", "cat", "cat", "dog", "dog", "hamster", "hamster"]'})]})}function m(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8597:(e,t,r)=>{r.d(t,{A:()=>n});r(6540);var s=r(4848);const n=e=>{let{data:t}=e,r=[],n=[],a="",i=[];if(t){const e=JSON.parse(t);r=e.columns||[],n=e.data||[],a=e.indexName||"Index",i=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:a}),r.map(((e,t)=>(0,s.jsx)("th",{children:e},t)))]})}),(0,s.jsx)("tbody",{children:n.map(((e,t)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:i[t]}),e.map(((e,t)=>{return(0,s.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},t);var r}))]},t)))})]})})}},8205:(e,t,r)=>{r.d(t,{A:()=>n});r(6540);var s=r(4848);const n=e=>{let{data:t}=e,r=[],n=[],a="",i="";if(t)try{const e=JSON.parse(t);a=e.name||"",i=e.dtype||"Unknown type",r=e.index||[],n=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const c=n.map((e=>JSON.stringify(e)));return(0,s.jsxs)("div",{className:"series-container",children:[(0,s.jsx)("ul",{className:"series-list",children:c.map(((e,t)=>(0,s.jsxs)("li",{className:"series-item",children:[(0,s.jsx)("span",{className:"series-index",children:r[t]}),(0,s.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},t)))}),(0,s.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",i]})]})}},8453:(e,t,r)=>{r.d(t,{R:()=>i,x:()=>c});var s=r(6540);const n={},a=s.createContext(n);function i(e){const t=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),s.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f0fd5c00.00af519e.js b/assets/js/f0fd5c00.00af519e.js new file mode 100644 index 00000000..fe007c63 --- /dev/null +++ b/assets/js/f0fd5c00.00af519e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2087],{476:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>t,metadata:()=>o,toc:()=>i});var s=r(4848),a=r(8453);r(8597),r(8205);const t={sidebar_position:1},c=void 0,o={id:"documentation/arrays-and-numpy/np.count_nonzero()",title:"np.count_nonzero()",description:"np.count_nonzero(arr)",source:"@site/docs/documentation/arrays-and-numpy/np.count_nonzero().md",sourceDirName:"documentation/arrays-and-numpy",slug:"/documentation/arrays-and-numpy/np.count_nonzero()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.count_nonzero()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/arrays-and-numpy/np.count_nonzero().md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"np.arange()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.arange()"},next:{title:"np.percentile()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()"}},d={},i=[];function l(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"np.count_nonzero(arr)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:"The number of non-zero entries in arr. True counts as 1, False counts as 0."})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["arr : ",(0,s.jsx)("em",{children:"array"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"The array to count non-zero entries in."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"count - The number of non-zero entries in the array."}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"integer"})]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"is_cat_arr = np.array(pets.get('Is_Cat'))\nis_cat_arr\n"})}),"\n",(0,s.jsx)(n.p,{children:"array([False, True, True, False, False, False, False, True])"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"np.count_nonzero(is_cat_arr)\n"})}),"\n",(0,s.jsx)(n.p,{children:"3"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"age_arr = np.array(pets.get('Age'))\nage_arr\n"})}),"\n",(0,s.jsx)(n.p,{children:"array([5. , 0.2, 9. , 2. , 0.5, 3. , 0.2, 0. ])"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"np.count_nonzero(age_arr)\n"})}),"\n",(0,s.jsx)(n.p,{children:"7"})]})}function p(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8597:(e,n,r)=>{r.d(n,{A:()=>a});r(6540);var s=r(4848);const a=e=>{let{data:n}=e,r=[],a=[],t="",c=[];if(n){const e=JSON.parse(n);r=e.columns||[],a=e.data||[],t=e.indexName||"Index",c=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:t}),r.map(((e,n)=>(0,s.jsx)("th",{children:e},n)))]})}),(0,s.jsx)("tbody",{children:a.map(((e,n)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:c[n]}),e.map(((e,n)=>{return(0,s.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},n);var r}))]},n)))})]})})}},8205:(e,n,r)=>{r.d(n,{A:()=>a});r(6540);var s=r(4848);const a=e=>{let{data:n}=e,r=[],a=[],t="",c="";if(n)try{const e=JSON.parse(n);t=e.name||"",c=e.dtype||"Unknown type",r=e.index||[],a=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=a.map((e=>JSON.stringify(e)));return(0,s.jsxs)("div",{className:"series-container",children:[(0,s.jsx)("ul",{className:"series-list",children:o.map(((e,n)=>(0,s.jsxs)("li",{className:"series-item",children:[(0,s.jsx)("span",{className:"series-index",children:r[n]}),(0,s.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,s.jsxs)("div",{className:"series-footer",children:["Name: ",t,", dtype: ",c]})]})}},8453:(e,n,r)=>{r.d(n,{R:()=>c,x:()=>o});var s=r(6540);const a={},t=s.createContext(a);function c(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:c(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f0fd5c00.9ad17ee0.js b/assets/js/f0fd5c00.9ad17ee0.js deleted file mode 100644 index e3706858..00000000 --- a/assets/js/f0fd5c00.9ad17ee0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2087],{476:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>t,metadata:()=>o,toc:()=>i});var s=r(4848),a=r(8453);r(8597),r(8205);const t={sidebar_position:1},c=void 0,o={id:"documentation/arrays-and-numpy/np.count_nonzero()",title:"np.count_nonzero()",description:"np.count_nonzero(arr)",source:"@site/docs/documentation/arrays-and-numpy/np.count_nonzero().md",sourceDirName:"documentation/arrays-and-numpy",slug:"/documentation/arrays-and-numpy/np.count_nonzero()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.count_nonzero()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/arrays-and-numpy/np.count_nonzero().md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"np.arange()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.arange()"},next:{title:"np.percentile()",permalink:"/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()"}},d={},i=[];function l(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"np.count_nonzero(arr)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:"The number of non-zero entries in arr. True counts as 1, False counts as 0."})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["arr : ",(0,s.jsx)("em",{children:"array"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"The array to count non-zero entries in."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"count - The number of non-zero entries in the array."}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"integer"})]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"is_cat_arr = np.array(pets.get('Is_Cat'))\r\nis_cat_arr\n"})}),"\n",(0,s.jsx)(n.p,{children:"array([False, True, True, False, False, False, False, True])"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"np.count_nonzero(is_cat_arr)\n"})}),"\n",(0,s.jsx)(n.p,{children:"3"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"age_arr = np.array(pets.get('Age'))\r\nage_arr\n"})}),"\n",(0,s.jsx)(n.p,{children:"array([5. , 0.2, 9. , 2. , 0.5, 3. , 0.2, 0. ])"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"np.count_nonzero(age_arr)\n"})}),"\n",(0,s.jsx)(n.p,{children:"7"})]})}function p(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8597:(e,n,r)=>{r.d(n,{A:()=>a});r(6540);var s=r(4848);const a=e=>{let{data:n}=e,r=[],a=[],t="",c=[];if(n){const e=JSON.parse(n);r=e.columns||[],a=e.data||[],t=e.indexName||"Index",c=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:t}),r.map(((e,n)=>(0,s.jsx)("th",{children:e},n)))]})}),(0,s.jsx)("tbody",{children:a.map(((e,n)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:c[n]}),e.map(((e,n)=>{return(0,s.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},n);var r}))]},n)))})]})})}},8205:(e,n,r)=>{r.d(n,{A:()=>a});r(6540);var s=r(4848);const a=e=>{let{data:n}=e,r=[],a=[],t="",c="";if(n)try{const e=JSON.parse(n);t=e.name||"",c=e.dtype||"Unknown type",r=e.index||[],a=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=a.map((e=>JSON.stringify(e)));return(0,s.jsxs)("div",{className:"series-container",children:[(0,s.jsx)("ul",{className:"series-list",children:o.map(((e,n)=>(0,s.jsxs)("li",{className:"series-item",children:[(0,s.jsx)("span",{className:"series-index",children:r[n]}),(0,s.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,s.jsxs)("div",{className:"series-footer",children:["Name: ",t,", dtype: ",c]})]})}},8453:(e,n,r)=>{r.d(n,{R:()=>c,x:()=>o});var s=r(6540);const a={},t=s.createContext(a);function c(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:c(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f2b0891e.80e35342.js b/assets/js/f2b0891e.80e35342.js deleted file mode 100644 index 2d946036..00000000 --- a/assets/js/f2b0891e.80e35342.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[614],{9358:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>d,metadata:()=>i,toc:()=>l});var t=a(4848),s=a(8453),r=a(8597);a(8205);const d={sidebar_position:6},o=void 0,i={id:"documentation/building-organizing/df.reset_index()",title:"df.reset_index()",description:"df.reset_index(drop=False)",source:"@site/docs/documentation/building-organizing/df.reset_index().md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/df.reset_index()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.reset_index()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/df.reset_index().md",tags:[],version:"current",sidebarPosition:6,frontMatter:{sidebar_position:6},sidebar:"docsSidebar",previous:{title:"df.set_index()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.set_index()"},next:{title:"df.sort_values()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.sort_values()"}},c={},l=[];function h(e){const n={code:"code",hr:"hr",pre:"pre",strong:"strong",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"df.reset_index(drop=False)"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Moves the index to a column."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Input:"}),(0,t.jsxs)("dd",{className:"parameter",children:["drop : ",(0,t.jsx)("em",{children:"boolean, default False"})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"If False, adds index as a column to the DataFrame. If True, doesn't add index into the DataFrame."}),(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"df_without_idx - A new DataFrame with or without the column set as the index"}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets = pets.set_index('ID')\r\npets\n"})}),"\n",(0,t.jsx)(r.A,{data:'{"columns":["Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":["dog_001","cat_001","cat_002","dog_002","dog_003","ham_001","ham_002","cat_003"],"data":[["dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["hamster","black",1.0,3.0,false,"No, thank you!"],["hamster","golden",0.25,0.2,false,"No, thank you!"],["cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets.reset_index()\n"})}),"\n",(0,t.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,t.jsxs)("p",{children:[(0,t.jsx)("br",{})," ",(0,t.jsxs)(n.strong,{children:["Note that when ",(0,t.jsx)(n.code,{children:"drop=True"}),", the previous index will be dropped instead of becoming a new column in the DataFrame."]})," "]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets.reset_index(drop=True)\n"})}),"\n",(0,t.jsx)(r.A,{data:'{"columns":["Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["hamster","black",1.0,3.0,false,"No, thank you!"],["hamster","golden",0.25,0.2,false,"No, thank you!"],["cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function u(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},8597:(e,n,a)=>{a.d(n,{A:()=>s});a(6540);var t=a(4848);const s=e=>{let{data:n}=e,a=[],s=[],r="",d=[];if(n){const e=JSON.parse(n);a=e.columns||[],s=e.data||[],r=e.indexName||"Index",d=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:r}),a.map(((e,n)=>(0,t.jsx)("th",{children:e},n)))]})}),(0,t.jsx)("tbody",{children:s.map(((e,n)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:d[n]}),e.map(((e,n)=>{return(0,t.jsx)("td",{children:(a=e,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},n);var a}))]},n)))})]})})}},8205:(e,n,a)=>{a.d(n,{A:()=>s});a(6540);var t=a(4848);const s=e=>{let{data:n}=e,a=[],s=[],r="",d="";if(n)try{const e=JSON.parse(n);r=e.name||"",d=e.dtype||"Unknown type",a=e.index||[],s=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const o=s.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:o.map(((e,n)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:a[n]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",d]})]})}},8453:(e,n,a)=>{a.d(n,{R:()=>d,x:()=>o});var t=a(6540);const s={},r=t.createContext(s);function d(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:d(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f2b0891e.d7eac5db.js b/assets/js/f2b0891e.d7eac5db.js new file mode 100644 index 00000000..2e9be93e --- /dev/null +++ b/assets/js/f2b0891e.d7eac5db.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[614],{9358:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>d,metadata:()=>i,toc:()=>l});var t=a(4848),s=a(8453),r=a(8597);a(8205);const d={sidebar_position:6},o=void 0,i={id:"documentation/building-organizing/df.reset_index()",title:"df.reset_index()",description:"df.reset_index(drop=False)",source:"@site/docs/documentation/building-organizing/df.reset_index().md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/df.reset_index()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.reset_index()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/df.reset_index().md",tags:[],version:"current",sidebarPosition:6,frontMatter:{sidebar_position:6},sidebar:"docsSidebar",previous:{title:"df.set_index()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.set_index()"},next:{title:"df.sort_values()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.sort_values()"}},c={},l=[];function h(e){const n={code:"code",hr:"hr",pre:"pre",strong:"strong",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"df.reset_index(drop=False)"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Moves the index to a column."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Input:"}),(0,t.jsxs)("dd",{className:"parameter",children:["drop : ",(0,t.jsx)("em",{children:"boolean, default False"})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"If False, adds index as a column to the DataFrame. If True, doesn't add index into the DataFrame."}),(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"df_without_idx - A new DataFrame with or without the column set as the index"}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets = pets.set_index('ID')\npets\n"})}),"\n",(0,t.jsx)(r.A,{data:'{"columns":["Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":["dog_001","cat_001","cat_002","dog_002","dog_003","ham_001","ham_002","cat_003"],"data":[["dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["hamster","black",1.0,3.0,false,"No, thank you!"],["hamster","golden",0.25,0.2,false,"No, thank you!"],["cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets.reset_index()\n"})}),"\n",(0,t.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,t.jsxs)("p",{children:[(0,t.jsx)("br",{})," ",(0,t.jsxs)(n.strong,{children:["Note that when ",(0,t.jsx)(n.code,{children:"drop=True"}),", the previous index will be dropped instead of becoming a new column in the DataFrame."]})," "]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets.reset_index(drop=True)\n"})}),"\n",(0,t.jsx)(r.A,{data:'{"columns":["Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["hamster","black",1.0,3.0,false,"No, thank you!"],["hamster","golden",0.25,0.2,false,"No, thank you!"],["cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function u(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},8597:(e,n,a)=>{a.d(n,{A:()=>s});a(6540);var t=a(4848);const s=e=>{let{data:n}=e,a=[],s=[],r="",d=[];if(n){const e=JSON.parse(n);a=e.columns||[],s=e.data||[],r=e.indexName||"Index",d=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:r}),a.map(((e,n)=>(0,t.jsx)("th",{children:e},n)))]})}),(0,t.jsx)("tbody",{children:s.map(((e,n)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:d[n]}),e.map(((e,n)=>{return(0,t.jsx)("td",{children:(a=e,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},n);var a}))]},n)))})]})})}},8205:(e,n,a)=>{a.d(n,{A:()=>s});a(6540);var t=a(4848);const s=e=>{let{data:n}=e,a=[],s=[],r="",d="";if(n)try{const e=JSON.parse(n);r=e.name||"",d=e.dtype||"Unknown type",a=e.index||[],s=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const o=s.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:o.map(((e,n)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:a[n]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",d]})]})}},8453:(e,n,a)=>{a.d(n,{R:()=>d,x:()=>o});var t=a(6540);const s={},r=t.createContext(s);function d(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:d(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f39390d7.533b54c4.js b/assets/js/f39390d7.533b54c4.js deleted file mode 100644 index 30bd0c66..00000000 --- a/assets/js/f39390d7.533b54c4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3362],{3541:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>d,default:()=>h,frontMatter:()=>i,metadata:()=>o,toc:()=>l});var a=n(4848),s=n(8453),r=n(8597);n(8205);const i={sidebar_position:2},d=void 0,o={id:"documentation/building-organizing/bpd.read_csv()",title:"bpd.read_csv()",description:"bpd.read_csv(filepath)",source:"@site/docs/documentation/building-organizing/bpd.read_csv().md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/bpd.read_csv()",permalink:"/bpd-reference/docs/documentation/building-organizing/bpd.read_csv()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/bpd.read_csv().md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"docsSidebar",previous:{title:"bpd.DataFrame()",permalink:"/bpd-reference/docs/documentation/building-organizing/bpd.DataFrame()"},next:{title:"df.assign()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.assign()"}},c={},l=[];function p(e){const t={code:"code",hr:"hr",pre:"pre",...(0,s.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"bpd.read_csv(filepath)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Reads a CSV (comma-separated values) file into a DataFrame."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["filepath : ",(0,a.jsx)("em",{children:"string, path object, file-like object."})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"This should give a path to the CSV relative to the location of the notebook, or a URL that points to a CSV file. This must be a string, so don't forget to use quotes."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"df - DataFrame with the contents of the CSV file."}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-python",children:"pets = bpd.read_csv('pets.csv')\r\npets\n"})}),"\n",(0,a.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},8597:(e,t,n)=>{n.d(t,{A:()=>s});n(6540);var a=n(4848);const s=e=>{let{data:t}=e,n=[],s=[],r="",i=[];if(t){const e=JSON.parse(t);n=e.columns||[],s=e.data||[],r=e.indexName||"Index",i=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:r}),n.map(((e,t)=>(0,a.jsx)("th",{children:e},t)))]})}),(0,a.jsx)("tbody",{children:s.map(((e,t)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:i[t]}),e.map(((e,t)=>{return(0,a.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},t);var n}))]},t)))})]})})}},8205:(e,t,n)=>{n.d(t,{A:()=>s});n(6540);var a=n(4848);const s=e=>{let{data:t}=e,n=[],s=[],r="",i="";if(t)try{const e=JSON.parse(t);r=e.name||"",i=e.dtype||"Unknown type",n=e.index||[],s=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const d=s.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:d.map(((e,t)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:n[t]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},t)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",i]})]})}},8453:(e,t,n)=>{n.d(t,{R:()=>i,x:()=>d});var a=n(6540);const s={},r=a.createContext(s);function i(e){const t=a.useContext(r);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),a.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f39390d7.bf79684f.js b/assets/js/f39390d7.bf79684f.js new file mode 100644 index 00000000..38b4b202 --- /dev/null +++ b/assets/js/f39390d7.bf79684f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3362],{3541:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>d,default:()=>h,frontMatter:()=>i,metadata:()=>o,toc:()=>l});var a=n(4848),s=n(8453),r=n(8597);n(8205);const i={sidebar_position:2},d=void 0,o={id:"documentation/building-organizing/bpd.read_csv()",title:"bpd.read_csv()",description:"bpd.read_csv(filepath)",source:"@site/docs/documentation/building-organizing/bpd.read_csv().md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/bpd.read_csv()",permalink:"/bpd-reference/docs/documentation/building-organizing/bpd.read_csv()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/bpd.read_csv().md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"docsSidebar",previous:{title:"bpd.DataFrame()",permalink:"/bpd-reference/docs/documentation/building-organizing/bpd.DataFrame()"},next:{title:"df.assign()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.assign()"}},c={},l=[];function p(e){const t={code:"code",hr:"hr",pre:"pre",...(0,s.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"bpd.read_csv(filepath)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Reads a CSV (comma-separated values) file into a DataFrame."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["filepath : ",(0,a.jsx)("em",{children:"string, path object, file-like object."})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"This should give a path to the CSV relative to the location of the notebook, or a URL that points to a CSV file. This must be a string, so don't forget to use quotes."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"df - DataFrame with the contents of the CSV file."}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-python",children:"pets = bpd.read_csv('pets.csv')\npets\n"})}),"\n",(0,a.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},8597:(e,t,n)=>{n.d(t,{A:()=>s});n(6540);var a=n(4848);const s=e=>{let{data:t}=e,n=[],s=[],r="",i=[];if(t){const e=JSON.parse(t);n=e.columns||[],s=e.data||[],r=e.indexName||"Index",i=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:r}),n.map(((e,t)=>(0,a.jsx)("th",{children:e},t)))]})}),(0,a.jsx)("tbody",{children:s.map(((e,t)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:i[t]}),e.map(((e,t)=>{return(0,a.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},t);var n}))]},t)))})]})})}},8205:(e,t,n)=>{n.d(t,{A:()=>s});n(6540);var a=n(4848);const s=e=>{let{data:t}=e,n=[],s=[],r="",i="";if(t)try{const e=JSON.parse(t);r=e.name||"",i=e.dtype||"Unknown type",n=e.index||[],s=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const d=s.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:d.map(((e,t)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:n[t]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},t)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",i]})]})}},8453:(e,t,n)=>{n.d(t,{R:()=>i,x:()=>d});var a=n(6540);const s={},r=a.createContext(s);function i(e){const t=a.useContext(r);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),a.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f3b65525.792c19b9.js b/assets/js/f3b65525.792c19b9.js new file mode 100644 index 00000000..8963cec6 --- /dev/null +++ b/assets/js/f3b65525.792c19b9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3343],{419:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>d,toc:()=>l});var a=s(4848),t=s(8453),i=s(8597);s(8205);const r={sidebar_position:3},o=void 0,d={id:"documentation/building-organizing/df.assign()",title:"df.assign()",description:"df.assign(nameofcolumn=column_data)",source:"@site/docs/documentation/building-organizing/df.assign().md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/df.assign()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.assign()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/df.assign().md",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3},sidebar:"docsSidebar",previous:{title:"bpd.read_csv()",permalink:"/bpd-reference/docs/documentation/building-organizing/bpd.read_csv()"},next:{title:"df.drop()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.drop()"}},c={},l=[];function m(e){const n={code:"code",hr:"hr",pre:"pre",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df.assign(name_of_column=column_data)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsxs)("strong",{children:["Adds/replaces a column. ",(0,a.jsx)(n.code,{children:"name_of_column"})," should not have quotes or spaces."]})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["name_of_column : ",(0,a.jsx)("em",{children:"string"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Name of column to assign list to."}),(0,a.jsxs)("dd",{className:"parameter",children:["column_data : ",(0,a.jsx)("em",{children:"list"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Data the column names contains."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"df_with_cols - A new DataFrame with the columns in addition to all the existing columns."}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets = pets.assign(New_column_1=['this', 'is', 'a', 'new', 'column', 'I', 'assigned'], \n New_column_2=['this', 'is', 'another', 'new', 'column', 'I', 'assigned'])\npets\n"})}),"\n",(0,a.jsx)(i.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment","New_column_1","New_column_2"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners.","this","this"],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!","is","is"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****","a","another"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail.","new","new"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are.","column","column"],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!","I","I"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!","assigned","assigned"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!",".","."]]}'})]})}function u(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(m,{...e})}):m(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],i="",r=[];if(n){const e=JSON.parse(n);s=e.columns||[],t=e.data||[],i=e.indexName||"Index",r=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:i}),s.map(((e,n)=>(0,a.jsx)("th",{children:e},n)))]})}),(0,a.jsx)("tbody",{children:t.map(((e,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:r[n]}),e.map(((e,n)=>{return(0,a.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],i="",r="";if(n)try{const e=JSON.parse(n);i=e.name||"",r=e.dtype||"Unknown type",s=e.index||[],t=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=t.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:o.map(((e,n)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:s[n]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",r]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>r,x:()=>o});var a=s(6540);const t={},i=a.createContext(t);function r(e){const n=a.useContext(i);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),a.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f3b65525.9d6a97b5.js b/assets/js/f3b65525.9d6a97b5.js deleted file mode 100644 index d92c9f59..00000000 --- a/assets/js/f3b65525.9d6a97b5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3343],{419:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>i,metadata:()=>d,toc:()=>l});var a=s(4848),t=s(8453),r=s(8597);s(8205);const i={sidebar_position:3},o=void 0,d={id:"documentation/building-organizing/df.assign()",title:"df.assign()",description:"df.assign(nameofcolumn=column_data)",source:"@site/docs/documentation/building-organizing/df.assign().md",sourceDirName:"documentation/building-organizing",slug:"/documentation/building-organizing/df.assign()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.assign()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/building-organizing/df.assign().md",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3},sidebar:"docsSidebar",previous:{title:"bpd.read_csv()",permalink:"/bpd-reference/docs/documentation/building-organizing/bpd.read_csv()"},next:{title:"df.drop()",permalink:"/bpd-reference/docs/documentation/building-organizing/df.drop()"}},c={},l=[];function m(e){const n={code:"code",hr:"hr",pre:"pre",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df.assign(name_of_column=column_data)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsxs)("strong",{children:["Adds/replaces a column. ",(0,a.jsx)(n.code,{children:"name_of_column"})," should not have quotes or spaces."]})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["name_of_column : ",(0,a.jsx)("em",{children:"string"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Name of column to assign list to."}),(0,a.jsxs)("dd",{className:"parameter",children:["column_data : ",(0,a.jsx)("em",{children:"list"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Data the column names contains."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"df_with_cols - A new DataFrame with the columns in addition to all the existing columns."}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets = pets.assign(New_column_1=['this', 'is', 'a', 'new', 'column', 'I', 'assigned'], \r\n New_column_2=['this', 'is', 'another', 'new', 'column', 'I', 'assigned'])\r\npets\n"})}),"\n",(0,a.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment","New_column_1","New_column_2"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners.","this","this"],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!","is","is"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****","a","another"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail.","new","new"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are.","column","column"],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!","I","I"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!","assigned","assigned"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!",".","."]]}'})]})}function u(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(m,{...e})}):m(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],r="",i=[];if(n){const e=JSON.parse(n);s=e.columns||[],t=e.data||[],r=e.indexName||"Index",i=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:r}),s.map(((e,n)=>(0,a.jsx)("th",{children:e},n)))]})}),(0,a.jsx)("tbody",{children:t.map(((e,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:i[n]}),e.map(((e,n)=>{return(0,a.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],r="",i="";if(n)try{const e=JSON.parse(n);r=e.name||"",i=e.dtype||"Unknown type",s=e.index||[],t=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const o=t.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:o.map(((e,n)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:s[n]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",i]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>i,x:()=>o});var a=s(6540);const t={},r=a.createContext(t);function i(e){const n=a.useContext(r);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),a.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f4c1c84a.6d6b448a.js b/assets/js/f4c1c84a.0250807e.js similarity index 54% rename from assets/js/f4c1c84a.6d6b448a.js rename to assets/js/f4c1c84a.0250807e.js index 2efbfc3a..e6950c68 100644 --- a/assets/js/f4c1c84a.6d6b448a.js +++ b/assets/js/f4c1c84a.0250807e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7233],{4144:(e,r,a)=>{a.r(r),a.d(r,{assets:()=>t,contentTitle:()=>i,default:()=>p,frontMatter:()=>c,metadata:()=>l,toc:()=>d});var n=a(4848),s=a(8453);a(8597),a(8205);const c={sidebar_position:2,sidebar_label:"Random Choice",title:"Random Choice"},i=void 0,l={id:"statistical-inference/random sampling/np.random.choice()",title:"Random Choice",description:"np.random.choice(arr, size, replace=True, p=[p0, p1, ...])",source:"@site/docs/statistical-inference/random sampling/np.random.choice().md",sourceDirName:"statistical-inference/random sampling",slug:"/statistical-inference/random sampling/np.random.choice()",permalink:"/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/random sampling/np.random.choice().md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,sidebar_label:"Random Choice",title:"Random Choice"},sidebar:"statsSidebar",previous:{title:"Sampling",permalink:"/bpd-reference/docs/statistical-inference/random sampling/sampling"},next:{title:"Random Multinomial",permalink:"/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()"}},t={},d=[];function o(e){const r={code:"code",em:"em",hr:"hr",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"np.random.choice(arr, size, replace=True, p=[p_0, p_1, ...])"}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Generates a random sample from a given array or list."})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Input:"}),(0,n.jsxs)("dd",{className:"parameter",children:["arr: ",(0,n.jsx)("em",{children:"array, list, or integer"})]}),(0,n.jsxs)("dd",{className:"parameter-description",children:["If array or list, ",(0,n.jsx)(r.code,{children:"np.random.choice"})," will sample from those elements. If integer (e.g. 5), ",(0,n.jsx)(r.code,{children:"np.random.choice"})," will sample from ",(0,n.jsx)(r.code,{children:"np.arange(5)"})," (aka ",(0,n.jsx)(r.code,{children:"array([0, 1, 2, 3, 4])"}),")."]}),(0,n.jsxs)("dd",{className:"parameter",children:["size : ",(0,n.jsx)("em",{children:"integer, default 1"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"Number of random samples to draw."}),(0,n.jsxs)("dd",{className:"parameter",children:["replace : ",(0,n.jsx)("em",{children:"boolean, default True"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If True, element can be selected multiple times. If False, each element can only be selected once."}),(0,n.jsxs)("dd",{className:"parameter",children:["p : ",(0,n.jsx)("em",{children:"array or list, default uniform distribution"})]}),(0,n.jsxs)("dd",{className:"parameter-description",children:["Probabilities corresponding with each element in ",(0,n.jsx)(r.code,{children:"arr"}),"."]}),(0,n.jsx)("dt",{className:"term",children:"Returns:"}),(0,n.jsx)("dd",{children:"Generated random samples."}),(0,n.jsx)("dt",{className:"term",children:"Return Type:"}),(0,n.jsx)("dd",{children:"Integer or Array"}),(0,n.jsx)("dt",{className:"term",children:"Note:"}),(0,n.jsx)("dd",{children:(0,n.jsx)("ul",{children:(0,n.jsxs)("li",{children:["If ",(0,n.jsx)(r.code,{children:"replace = False"}),", ",(0,n.jsx)(r.code,{children:"size"})," must be ",(0,n.jsx)(r.em,{children:"smaller"})," than the length of the array or list. Otherwise, the function will raise a ",(0,n.jsx)(r.code,{children:"ValueError: Cannot take a larger sample than population when 'replace=False'"}),"."]})})})]})]}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-python",children:"example_array = np.array([1, 2, 3, 4, 5])\r\nexample_array\n"})}),"\n",(0,n.jsx)(r.p,{children:"array([1, 2, 3, 4, 5])"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-python",children:"np.random.choice(example_array)\n"})}),"\n",(0,n.jsx)(r.p,{children:"1"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-python",children:"np.random.choice(example_array, 3, replace=True)\n"})}),"\n",(0,n.jsx)(r.p,{children:"array([5, 2, 3])"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-python",children:"np.random.choice(example_array, 3, replace=True, p=[0.05, 0.05, 0.05, 0.05, 0.8])\n"})}),"\n",(0,n.jsx)(r.p,{children:"array([4, 5, 5])"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-python",children:"np.random.choice(example_array, 3, replace=True, p=[0, 0, 0, 0, 1])\n"})}),"\n",(0,n.jsx)(r.p,{children:"array([5, 5, 5])"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-python",children:"np.random.choice([1, 2], 3, replace=True, p=[0.8, 0.2])\n"})}),"\n",(0,n.jsx)(r.p,{children:"array([2, 1, 2])"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-python",children:"np.random.choice([1, 2], 3, replace=False, p=[0.8, 0.2])\n"})}),"\n",(0,n.jsx)(r.p,{children:"ValueError: Cannot take a larger sample than population when 'replace=False'"})]})}function p(e={}){const{wrapper:r}={...(0,s.R)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(o,{...e})}):o(e)}},8597:(e,r,a)=>{a.d(r,{A:()=>s});a(6540);var n=a(4848);const s=e=>{let{data:r}=e,a=[],s=[],c="",i=[];if(r){const e=JSON.parse(r);a=e.columns||[],s=e.data||[],c=e.indexName||"Index",i=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:c}),a.map(((e,r)=>(0,n.jsx)("th",{children:e},r)))]})}),(0,n.jsx)("tbody",{children:s.map(((e,r)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:i[r]}),e.map(((e,r)=>{return(0,n.jsx)("td",{children:(a=e,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},r);var a}))]},r)))})]})})}},8205:(e,r,a)=>{a.d(r,{A:()=>s});a(6540);var n=a(4848);const s=e=>{let{data:r}=e,a=[],s=[],c="",i="";if(r)try{const e=JSON.parse(r);c=e.name||"",i=e.dtype||"Unknown type",a=e.index||[],s=e.data||[]}catch(t){console.error("Error parsing data prop in SeriesComponent:",t)}const l=s.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:l.map(((e,r)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:a[r]}),(0,n.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},r)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",c,", dtype: ",i]})]})}},8453:(e,r,a)=>{a.d(r,{R:()=>i,x:()=>l});var n=a(6540);const s={},c=n.createContext(s);function i(e){const r=n.useContext(c);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function l(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),n.createElement(c.Provider,{value:r},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7233],{4144:(e,r,a)=>{a.r(r),a.d(r,{assets:()=>t,contentTitle:()=>i,default:()=>p,frontMatter:()=>c,metadata:()=>l,toc:()=>d});var n=a(4848),s=a(8453);a(8597),a(8205);const c={sidebar_position:2,sidebar_label:"Random Choice",title:"Random Choice"},i=void 0,l={id:"statistical-inference/random sampling/np.random.choice()",title:"Random Choice",description:"np.random.choice(arr, size, replace=True, p=[p0, p1, ...])",source:"@site/docs/statistical-inference/random sampling/np.random.choice().md",sourceDirName:"statistical-inference/random sampling",slug:"/statistical-inference/random sampling/np.random.choice()",permalink:"/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/random sampling/np.random.choice().md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,sidebar_label:"Random Choice",title:"Random Choice"},sidebar:"statsSidebar",previous:{title:"Sampling",permalink:"/bpd-reference/docs/statistical-inference/random sampling/sampling"},next:{title:"Random Multinomial",permalink:"/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()"}},t={},d=[];function o(e){const r={code:"code",em:"em",hr:"hr",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"np.random.choice(arr, size, replace=True, p=[p_0, p_1, ...])"}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Generates a random sample from a given array or list."})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Input:"}),(0,n.jsxs)("dd",{className:"parameter",children:["arr: ",(0,n.jsx)("em",{children:"array, list, or integer"})]}),(0,n.jsxs)("dd",{className:"parameter-description",children:["If array or list, ",(0,n.jsx)(r.code,{children:"np.random.choice"})," will sample from those elements. If integer (e.g. 5), ",(0,n.jsx)(r.code,{children:"np.random.choice"})," will sample from ",(0,n.jsx)(r.code,{children:"np.arange(5)"})," (aka ",(0,n.jsx)(r.code,{children:"array([0, 1, 2, 3, 4])"}),")."]}),(0,n.jsxs)("dd",{className:"parameter",children:["size : ",(0,n.jsx)("em",{children:"integer, default 1"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"Number of random samples to draw."}),(0,n.jsxs)("dd",{className:"parameter",children:["replace : ",(0,n.jsx)("em",{children:"boolean, default True"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If True, element can be selected multiple times. If False, each element can only be selected once."}),(0,n.jsxs)("dd",{className:"parameter",children:["p : ",(0,n.jsx)("em",{children:"array or list, default uniform distribution"})]}),(0,n.jsxs)("dd",{className:"parameter-description",children:["Probabilities corresponding with each element in ",(0,n.jsx)(r.code,{children:"arr"}),"."]}),(0,n.jsx)("dt",{className:"term",children:"Returns:"}),(0,n.jsx)("dd",{children:"Generated random samples."}),(0,n.jsx)("dt",{className:"term",children:"Return Type:"}),(0,n.jsx)("dd",{children:"Integer or Array"}),(0,n.jsx)("dt",{className:"term",children:"Note:"}),(0,n.jsx)("dd",{children:(0,n.jsx)("ul",{children:(0,n.jsxs)("li",{children:["If ",(0,n.jsx)(r.code,{children:"replace = False"}),", ",(0,n.jsx)(r.code,{children:"size"})," must be ",(0,n.jsx)(r.em,{children:"smaller"})," than the length of the array or list. Otherwise, the function will raise a ",(0,n.jsx)(r.code,{children:"ValueError: Cannot take a larger sample than population when 'replace=False'"}),"."]})})})]})]}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-python",children:"example_array = np.array([1, 2, 3, 4, 5])\nexample_array\n"})}),"\n",(0,n.jsx)(r.p,{children:"array([1, 2, 3, 4, 5])"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-python",children:"np.random.choice(example_array)\n"})}),"\n",(0,n.jsx)(r.p,{children:"1"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-python",children:"np.random.choice(example_array, 3, replace=True)\n"})}),"\n",(0,n.jsx)(r.p,{children:"array([5, 2, 3])"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-python",children:"np.random.choice(example_array, 3, replace=True, p=[0.05, 0.05, 0.05, 0.05, 0.8])\n"})}),"\n",(0,n.jsx)(r.p,{children:"array([4, 5, 5])"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-python",children:"np.random.choice(example_array, 3, replace=True, p=[0, 0, 0, 0, 1])\n"})}),"\n",(0,n.jsx)(r.p,{children:"array([5, 5, 5])"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-python",children:"np.random.choice([1, 2], 3, replace=True, p=[0.8, 0.2])\n"})}),"\n",(0,n.jsx)(r.p,{children:"array([2, 1, 2])"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-python",children:"np.random.choice([1, 2], 3, replace=False, p=[0.8, 0.2])\n"})}),"\n",(0,n.jsx)(r.p,{children:"ValueError: Cannot take a larger sample than population when 'replace=False'"})]})}function p(e={}){const{wrapper:r}={...(0,s.R)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(o,{...e})}):o(e)}},8597:(e,r,a)=>{a.d(r,{A:()=>s});a(6540);var n=a(4848);const s=e=>{let{data:r}=e,a=[],s=[],c="",i=[];if(r){const e=JSON.parse(r);a=e.columns||[],s=e.data||[],c=e.indexName||"Index",i=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:c}),a.map(((e,r)=>(0,n.jsx)("th",{children:e},r)))]})}),(0,n.jsx)("tbody",{children:s.map(((e,r)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:i[r]}),e.map(((e,r)=>{return(0,n.jsx)("td",{children:(a=e,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},r);var a}))]},r)))})]})})}},8205:(e,r,a)=>{a.d(r,{A:()=>s});a(6540);var n=a(4848);const s=e=>{let{data:r}=e,a=[],s=[],c="",i="";if(r)try{const e=JSON.parse(r);c=e.name||"",i=e.dtype||"Unknown type",a=e.index||[],s=e.data||[]}catch(t){console.error("Error parsing data prop in SeriesComponent:",t)}const l=s.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:l.map(((e,r)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:a[r]}),(0,n.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},r)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",c,", dtype: ",i]})]})}},8453:(e,r,a)=>{a.d(r,{R:()=>i,x:()=>l});var n=a(6540);const s={},c=n.createContext(s);function i(e){const r=n.useContext(c);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function l(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),n.createElement(c.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f8d80a2f.afca9aa7.js b/assets/js/f8d80a2f.afca9aa7.js new file mode 100644 index 00000000..da7c06f2 --- /dev/null +++ b/assets/js/f8d80a2f.afca9aa7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4540],{7526:(s,e,a)=>{a.r(e),a.d(e,{assets:()=>c,contentTitle:()=>l,default:()=>d,frontMatter:()=>t,metadata:()=>r,toc:()=>h});var n=a(4848),i=a(8453);a(8597),a(5158);const t={sidebar_position:7,sidebar_label:"Spread of a Distribution",title:"Spread of a Distribution",tags:["standard deviation","chebyshev\u2019s inequality"]},l=void 0,r={id:"statistical-inference/spread_of_a_distribution",title:"Spread of a Distribution",description:"Concept",source:"@site/docs/statistical-inference/spread_of_a_distribution.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/spread_of_a_distribution",permalink:"/bpd-reference/docs/statistical-inference/spread_of_a_distribution",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/spread_of_a_distribution.md",tags:[{label:"standard deviation",permalink:"/bpd-reference/docs/tags/standard-deviation"},{label:"chebyshev\u2019s inequality",permalink:"/bpd-reference/docs/tags/chebyshevs-inequality"}],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7,sidebar_label:"Spread of a Distribution",title:"Spread of a Distribution",tags:["standard deviation","chebyshev\u2019s inequality"]},sidebar:"statsSidebar",previous:{title:"Hypothesis Test",permalink:"/bpd-reference/docs/statistical-inference/hypothesis_test"},next:{title:"Boostrapping and Confidence Intervals",permalink:"/bpd-reference/docs/statistical-inference/bootstrapping"}},c={},h=[{value:"Concept",id:"concept",level:2},{value:"Formulas",id:"formulas",level:2},{value:"Standard Deviation",id:"standard-deviation",level:3},{value:"Chebyshev\u2019s Inequality",id:"chebyshevs-inequality",level:3},{value:"Chebyshev\u2019s Inequality visualized on a normal distribution",id:"chebyshevs-inequality-visualized-on-a-normal-distribution",level:4},{value:"Chebyshev\u2019s Inequality visualized on a non-normal distribution",id:"chebyshevs-inequality-visualized-on-a-non-normal-distribution",level:4}];function m(s){const e={admonition:"admonition",annotation:"annotation",code:"code",h2:"h2",h3:"h3",h4:"h4",img:"img",li:"li",math:"math",mfrac:"mfrac",mi:"mi",mn:"mn",mo:"mo",mrow:"mrow",msqrt:"msqrt",msub:"msub",msup:"msup",p:"p",path:"path",pre:"pre",semantics:"semantics",span:"span",strong:"strong",svg:"svg",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...s.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h2,{id:"concept",children:"Concept"}),"\n",(0,n.jsx)(e.admonition,{title:"Key Idea",type:"tip",children:(0,n.jsx)(e.p,{children:"The Chebyshev's Inequality implies that no matter what the distribution looks like, a significant portion of the data will lie within a certain number of standard deviations from the mean. These percentages provide a way to understand the spread and variability of data even when the exact distribution is unknown."})}),"\n",(0,n.jsxs)(e.admonition,{title:"Terminology",type:"info",children:[(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Standard Deviation(std)"}),": a measure of the amount of deviation in a set of values."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Variance is the average squared deviation from the mean."}),"\n",(0,n.jsx)(e.li,{children:"Standard Deviation is the square root of the variance."}),"\n"]}),(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Chebyshev\u2019s Inequality"}),": Chebyshev\u2019s Inequality states that in any dataset, at least ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mn,{children:"1"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsxs)(e.mfrac,{children:[(0,n.jsx)(e.mn,{children:"1"}),(0,n.jsxs)(e.msup,{children:[(0,n.jsx)(e.mi,{children:"z"}),(0,n.jsx)(e.mn,{children:"2"})]})]})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"1 - \\frac{1}{z^2}"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,n.jsx)(e.span,{className:"mord",children:"1"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1.1901em",verticalAlign:"-0.345em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"0.8451em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.655em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",style:{marginRight:"0.04398em"},children:"z"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsx)(e.span,{className:"vlist-t",children:(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.7463em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.786em",marginRight:"0.0714em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.5em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size3 size1 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:"2"})})]})})})})})]})})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.394em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:"1"})})})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.345em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]})]})]})]})," of the\ndata falls within ",(0,n.jsx)(e.strong,{children:"z"})," SDs of the mean."]})]}),"\n",(0,n.jsx)(e.h2,{id:"formulas",children:"Formulas"}),"\n",(0,n.jsx)(e.h3,{id:"standard-deviation",children:"Standard Deviation"}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"S"}),(0,n.jsx)(e.mi,{children:"D"}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.msqrt,{children:(0,n.jsxs)(e.mfrac,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mn,{children:"1"})]}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mi,{children:"m"}),(0,n.jsx)(e.mi,{children:"e"}),(0,n.jsx)(e.mi,{children:"a"}),(0,n.jsx)(e.mi,{children:"n"}),(0,n.jsxs)(e.msup,{children:[(0,n.jsx)(e.mo,{stretchy:"false",children:")"}),(0,n.jsx)(e.mn,{children:"2"})]}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mo,{children:"\u22ef"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mi,{children:"n"})]}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mi,{children:"m"}),(0,n.jsx)(e.mi,{children:"e"}),(0,n.jsx)(e.mi,{children:"a"}),(0,n.jsx)(e.mi,{children:"n"}),(0,n.jsxs)(e.msup,{children:[(0,n.jsx)(e.mo,{stretchy:"false",children:")"}),(0,n.jsx)(e.mn,{children:"2"})]})]}),(0,n.jsx)(e.mi,{children:"n"})]})})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"SD = \\sqrt{\\frac{(x_1 - mean)^2 + \\cdots + (x_n - mean)^2}{n}}"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.05764em"},children:"S"}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"D"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1.84em",verticalAlign:"-0.5225em"}}),(0,n.jsx)(e.span,{className:"mord sqrt",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.3175em"},children:[(0,n.jsxs)(e.span,{className:"svg-align",style:{top:"-3.8em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.8em"}}),(0,n.jsx)(e.span,{className:"mord",style:{paddingLeft:"1em"},children:(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.01em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.655em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"n"})})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.485em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3173em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.5em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size3 size1 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:"1"})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.143em"},children:(0,n.jsx)(e.span,{})})})]})})]}),(0,n.jsx)(e.span,{className:"mbin mtight",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"m"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"e"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"an"}),(0,n.jsxs)(e.span,{className:"mclose mtight",children:[(0,n.jsx)(e.span,{className:"mclose mtight",children:")"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsx)(e.span,{className:"vlist-t",children:(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.7463em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.786em",marginRight:"0.0714em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.5em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size3 size1 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:"2"})})]})})})})})]}),(0,n.jsx)(e.span,{className:"mbin mtight",children:"+"}),(0,n.jsx)(e.span,{className:"minner mtight",children:"\u22ef"}),(0,n.jsx)(e.span,{className:"mbin mtight",children:"+"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.1645em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.5em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size3 size1 mtight",children:(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"n"})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.143em"},children:(0,n.jsx)(e.span,{})})})]})})]}),(0,n.jsx)(e.span,{className:"mbin mtight",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"m"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"e"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"an"}),(0,n.jsxs)(e.span,{className:"mclose mtight",children:[(0,n.jsx)(e.span,{className:"mclose mtight",children:")"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsx)(e.span,{className:"vlist-t",children:(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.7463em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.786em",marginRight:"0.0714em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.5em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size3 size1 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:"2"})})]})})})})})]})]})})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.345em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.2775em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.8em"}}),(0,n.jsx)(e.span,{className:"hide-tail",style:{minWidth:"1.02em",height:"1.88em"},children:(0,n.jsx)(e.svg,{xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.88em",viewBox:"0 0 400000 1944",preserveAspectRatio:"xMinYMin slice",children:(0,n.jsx)(e.path,{d:"M983 90\nl0 -0\nc4,-6.7,10,-10,18,-10 H400000v40\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM1001 80h400000v40h-400000z"})})})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.5225em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})]})}),"\n",(0,n.jsx)(e.admonition,{title:"variables",type:"note",children:(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mi,{children:"i"})]})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x_{i}"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3117em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"})})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})})]})})," = value (in original units) from column x."]}),"\n"]})}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"# use np to calcualte standard deviation: \nweights = full_pets.get('Weight')\nstandard_deviation = np.std(weights, ddof=0)\n\n# how to implement the standard deviation formula\nmean = weights.mean()\nnumerator = 0\nfor value in weights.values:\n numerator += (value - mean) ** 2\nvariance = numerator / (full_pets.shape[0])\nstandard_deviation2 = variance ** 0.5 \nstandard_deviation2\n"})}),"\n",(0,n.jsx)(e.h3,{id:"chebyshevs-inequality",children:"Chebyshev\u2019s Inequality"}),"\n",(0,n.jsxs)(e.table,{children:[(0,n.jsx)(e.thead,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.th,{children:"Range"}),(0,n.jsx)(e.th,{children:"All Distributions"}),(0,n.jsx)(e.th,{children:"Normal Distribution"})]})}),(0,n.jsxs)(e.tbody,{children:[(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:"mean \xb1 1 SD"}),(0,n.jsx)(e.td,{children:"at least 0%"}),(0,n.jsx)(e.td,{children:"about 68%"})]}),(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:"mean \xb1 2 SD"}),(0,n.jsx)(e.td,{children:"at least 75%"}),(0,n.jsx)(e.td,{children:"about 95%"})]}),(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:"mean \xb1 3 SD"}),(0,n.jsx)(e.td,{children:"at least 88%"}),(0,n.jsx)(e.td,{children:"about 99.73%"})]})]})]}),"\n",(0,n.jsx)(e.admonition,{title:"variables",type:"note",children:(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"The Chebshev's Inequality: Applies to all distributions, providing a lower bound on the proportion of data within\nk standard deviations from the mean."}),"\n",(0,n.jsxs)(e.li,{children:["The true proportion of values within \ud835\udc67 SDs of the mean may be larger than ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mn,{children:"1"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsxs)(e.mfrac,{children:[(0,n.jsx)(e.mn,{children:"1"}),(0,n.jsxs)(e.msup,{children:[(0,n.jsx)(e.mi,{children:"z"}),(0,n.jsx)(e.mn,{children:"2"})]})]})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"1 - \\frac{1}{z^2}"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,n.jsx)(e.span,{className:"mord",children:"1"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1.1901em",verticalAlign:"-0.345em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"0.8451em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.655em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",style:{marginRight:"0.04398em"},children:"z"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsx)(e.span,{className:"vlist-t",children:(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.7463em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.786em",marginRight:"0.0714em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.5em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size3 size1 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:"2"})})]})})})})})]})})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.394em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:"1"})})})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.345em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]})]})]})]}),", depending on the distribution."]}),"\n",(0,n.jsx)(e.li,{children:"Normal Distribution: Provides specific and tighter estimates because it assumes a particular symmetrical and bell-shaped distribution. These estimates are higher than the lower bounds provided by Chebyshev's Inequality because they take advantage of the normal distribution's properties."}),"\n"]})}),"\n",(0,n.jsx)(e.h4,{id:"chebyshevs-inequality-visualized-on-a-normal-distribution",children:"Chebyshev\u2019s Inequality visualized on a normal distribution"}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.img,{alt:"Curve",src:a(3537).A+"",width:"618",height:"391"})}),"\n",(0,n.jsxs)(e.admonition,{type:"note",children:[(0,n.jsx)(e.p,{children:"The graph above illustrates the distribution of weights sampled from a normal distribution with a mean of 70 and a standard deviation of 10. The dashed lines represent one, two, and three standard deviations from the mean, providing insight into the spread of data around the central tendency."}),(0,n.jsx)(e.p,{children:"Annotations on the plot indicate the actual proportion of data within each standard deviation range: around 68.6% of data are within 1 std, 95.6% of data are within 2stds, 99.7% of data are within 3 stds.\nThis aligns with the expected percentages for a normal distribution."})]}),"\n",(0,n.jsx)(e.h4,{id:"chebyshevs-inequality-visualized-on-a-non-normal-distribution",children:"Chebyshev\u2019s Inequality visualized on a non-normal distribution"}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.img,{alt:"Curve",src:a(1948).A+"",width:"645",height:"391"})}),"\n",(0,n.jsxs)(e.admonition,{type:"note",children:[(0,n.jsx)(e.p,{children:"The graph above illustrates the distribution of weight values intentionally chosen to be non-normally distributed. Annotations on the plot indicate the actual proportion of data within each standard deviation range: roughly 57.3% of data fall within 1 standard deviation, while all data points fall within 2 and 3 standard deviations."}),(0,n.jsx)(e.p,{children:"Despite the deviation from normality, Chebyshev's Inequality still applies, providing a conservative estimate of the proportion of data within a certain number of standard deviations from the mean."})]})]})}function d(s={}){const{wrapper:e}={...(0,i.R)(),...s.components};return e?(0,n.jsx)(e,{...s,children:(0,n.jsx)(m,{...s})}):m(s)}},8597:(s,e,a)=>{a.d(e,{A:()=>i});a(6540);var n=a(4848);const i=s=>{let{data:e}=s,a=[],i=[],t="",l=[];if(e){const s=JSON.parse(e);a=s.columns||[],i=s.data||[],t=s.indexName||"Index",l=s.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:t}),a.map(((s,e)=>(0,n.jsx)("th",{children:s},e)))]})}),(0,n.jsx)("tbody",{children:i.map(((s,e)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:l[e]}),s.map(((s,e)=>{return(0,n.jsx)("td",{children:(a=s,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},e);var a}))]},e)))})]})})}},5158:(s,e,a)=>{a.d(e,{A:()=>t});var n=a(6540),i=a(4848);const t=function(s){let{src:e,sourceLink:a,aspectRatio:t=16/9}=s;const[l,r]=(0,n.useState)(0),[c,h]=(0,n.useState)(0),m=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const s=()=>{if(m.current){const s=m.current.offsetWidth;h(s/t)}};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)}),[t]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:m,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,i.jsx)("iframe",{src:e,style:{width:"100%",height:`${c}px`,border:"0",allowFullScreen:!0}},l)}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,i.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,i.jsx)("button",{onClick:()=>{r((s=>s+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:s=>s.currentTarget.style.backgroundColor="#45a049",onMouseOut:s=>s.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},3537:(s,e,a)=>{a.d(e,{A:()=>n});const n=a.p+"assets/images/chebyshev-normal-e98e59bd42025035eb9415f58f32433f.png"},1948:(s,e,a)=>{a.d(e,{A:()=>n});const n=a.p+"assets/images/chebyshev-notnormal-4f883f3e8c4870e74383cc82894add0b.png"},8453:(s,e,a)=>{a.d(e,{R:()=>l,x:()=>r});var n=a(6540);const i={},t=n.createContext(i);function l(s){const e=n.useContext(t);return n.useMemo((function(){return"function"==typeof s?s(e):{...e,...s}}),[e,s])}function r(s){let e;return e=s.disableParentContext?"function"==typeof s.components?s.components(i):s.components||i:l(s.components),n.createElement(t.Provider,{value:e},s.children)}}}]); \ No newline at end of file diff --git a/assets/js/f8d80a2f.d56b6f04.js b/assets/js/f8d80a2f.d56b6f04.js deleted file mode 100644 index f99b681e..00000000 --- a/assets/js/f8d80a2f.d56b6f04.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4540],{7526:(s,e,a)=>{a.r(e),a.d(e,{assets:()=>c,contentTitle:()=>l,default:()=>d,frontMatter:()=>t,metadata:()=>r,toc:()=>h});var n=a(4848),i=a(8453);a(8597),a(5158);const t={sidebar_position:7,sidebar_label:"Spread of a Distribution",title:"Spread of a Distribution",tags:["standard deviation","chebyshev\u2019s inequality"]},l=void 0,r={id:"statistical-inference/spread_of_a_distribution",title:"Spread of a Distribution",description:"Concept",source:"@site/docs/statistical-inference/spread_of_a_distribution.md",sourceDirName:"statistical-inference",slug:"/statistical-inference/spread_of_a_distribution",permalink:"/bpd-reference/docs/statistical-inference/spread_of_a_distribution",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/statistical-inference/spread_of_a_distribution.md",tags:[{label:"standard deviation",permalink:"/bpd-reference/docs/tags/standard-deviation"},{label:"chebyshev\u2019s inequality",permalink:"/bpd-reference/docs/tags/chebyshevs-inequality"}],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7,sidebar_label:"Spread of a Distribution",title:"Spread of a Distribution",tags:["standard deviation","chebyshev\u2019s inequality"]},sidebar:"statsSidebar",previous:{title:"Hypothesis Test",permalink:"/bpd-reference/docs/statistical-inference/hypothesis_test"},next:{title:"Boostrapping and Confidence Intervals",permalink:"/bpd-reference/docs/statistical-inference/bootstrapping"}},c={},h=[{value:"Concept",id:"concept",level:2},{value:"Formulas",id:"formulas",level:2},{value:"Standard Deviation",id:"standard-deviation",level:3},{value:"Chebyshev\u2019s Inequality",id:"chebyshevs-inequality",level:3},{value:"Chebyshev\u2019s Inequality visualized on a normal distribution",id:"chebyshevs-inequality-visualized-on-a-normal-distribution",level:4},{value:"Chebyshev\u2019s Inequality visualized on a non-normal distribution",id:"chebyshevs-inequality-visualized-on-a-non-normal-distribution",level:4}];function m(s){const e={admonition:"admonition",annotation:"annotation",code:"code",h2:"h2",h3:"h3",h4:"h4",img:"img",li:"li",math:"math",mfrac:"mfrac",mi:"mi",mn:"mn",mo:"mo",mrow:"mrow",msqrt:"msqrt",msub:"msub",msup:"msup",p:"p",path:"path",pre:"pre",semantics:"semantics",span:"span",strong:"strong",svg:"svg",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...s.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h2,{id:"concept",children:"Concept"}),"\n",(0,n.jsx)(e.admonition,{title:"Key Idea",type:"tip",children:(0,n.jsx)(e.p,{children:"The Chebyshev's Inequality implies that no matter what the distribution looks like, a significant portion of the data will lie within a certain number of standard deviations from the mean. These percentages provide a way to understand the spread and variability of data even when the exact distribution is unknown."})}),"\n",(0,n.jsxs)(e.admonition,{title:"Terminology",type:"info",children:[(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Standard Deviation(std)"}),": a measure of the amount of deviation in a set of values."]}),(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Variance is the average squared deviation from the mean."}),"\n",(0,n.jsx)(e.li,{children:"Standard Deviation is the square root of the variance."}),"\n"]}),(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"Chebyshev\u2019s Inequality"}),": Chebyshev\u2019s Inequality states that in any dataset, at least ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mn,{children:"1"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsxs)(e.mfrac,{children:[(0,n.jsx)(e.mn,{children:"1"}),(0,n.jsxs)(e.msup,{children:[(0,n.jsx)(e.mi,{children:"z"}),(0,n.jsx)(e.mn,{children:"2"})]})]})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"1 - \\frac{1}{z^2}"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,n.jsx)(e.span,{className:"mord",children:"1"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1.1901em",verticalAlign:"-0.345em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"0.8451em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.655em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",style:{marginRight:"0.04398em"},children:"z"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsx)(e.span,{className:"vlist-t",children:(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.7463em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.786em",marginRight:"0.0714em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.5em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size3 size1 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:"2"})})]})})})})})]})})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.394em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:"1"})})})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.345em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]})]})]})]})," of the\r\ndata falls within ",(0,n.jsx)(e.strong,{children:"z"})," SDs of the mean."]})]}),"\n",(0,n.jsx)(e.h2,{id:"formulas",children:"Formulas"}),"\n",(0,n.jsx)(e.h3,{id:"standard-deviation",children:"Standard Deviation"}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mi,{children:"S"}),(0,n.jsx)(e.mi,{children:"D"}),(0,n.jsx)(e.mo,{children:"="}),(0,n.jsx)(e.msqrt,{children:(0,n.jsxs)(e.mfrac,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mn,{children:"1"})]}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mi,{children:"m"}),(0,n.jsx)(e.mi,{children:"e"}),(0,n.jsx)(e.mi,{children:"a"}),(0,n.jsx)(e.mi,{children:"n"}),(0,n.jsxs)(e.msup,{children:[(0,n.jsx)(e.mo,{stretchy:"false",children:")"}),(0,n.jsx)(e.mn,{children:"2"})]}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mo,{children:"\u22ef"}),(0,n.jsx)(e.mo,{children:"+"}),(0,n.jsx)(e.mo,{stretchy:"false",children:"("}),(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mi,{children:"n"})]}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsx)(e.mi,{children:"m"}),(0,n.jsx)(e.mi,{children:"e"}),(0,n.jsx)(e.mi,{children:"a"}),(0,n.jsx)(e.mi,{children:"n"}),(0,n.jsxs)(e.msup,{children:[(0,n.jsx)(e.mo,{stretchy:"false",children:")"}),(0,n.jsx)(e.mn,{children:"2"})]})]}),(0,n.jsx)(e.mi,{children:"n"})]})})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"SD = \\sqrt{\\frac{(x_1 - mean)^2 + \\cdots + (x_n - mean)^2}{n}}"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.6833em"}}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.05764em"},children:"S"}),(0,n.jsx)(e.span,{className:"mord mathnormal",style:{marginRight:"0.02778em"},children:"D"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.jsx)(e.span,{className:"mrel",children:"="}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2778em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1.84em",verticalAlign:"-0.5225em"}}),(0,n.jsx)(e.span,{className:"mord sqrt",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.3175em"},children:[(0,n.jsxs)(e.span,{className:"svg-align",style:{top:"-3.8em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.8em"}}),(0,n.jsx)(e.span,{className:"mord",style:{paddingLeft:"1em"},children:(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"1.01em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.655em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"n"})})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.485em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3173em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.5em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size3 size1 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:"1"})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.143em"},children:(0,n.jsx)(e.span,{})})})]})})]}),(0,n.jsx)(e.span,{className:"mbin mtight",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"m"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"e"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"an"}),(0,n.jsxs)(e.span,{className:"mclose mtight",children:[(0,n.jsx)(e.span,{className:"mclose mtight",children:")"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsx)(e.span,{className:"vlist-t",children:(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.7463em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.786em",marginRight:"0.0714em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.5em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size3 size1 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:"2"})})]})})})})})]}),(0,n.jsx)(e.span,{className:"mbin mtight",children:"+"}),(0,n.jsx)(e.span,{className:"minner mtight",children:"\u22ef"}),(0,n.jsx)(e.span,{className:"mbin mtight",children:"+"}),(0,n.jsx)(e.span,{className:"mopen mtight",children:"("}),(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.1645em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.5em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size3 size1 mtight",children:(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"n"})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.143em"},children:(0,n.jsx)(e.span,{})})})]})})]}),(0,n.jsx)(e.span,{className:"mbin mtight",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"m"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"e"}),(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"an"}),(0,n.jsxs)(e.span,{className:"mclose mtight",children:[(0,n.jsx)(e.span,{className:"mclose mtight",children:")"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsx)(e.span,{className:"vlist-t",children:(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.7463em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.786em",marginRight:"0.0714em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.5em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size3 size1 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:"2"})})]})})})})})]})]})})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.345em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.2775em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3.8em"}}),(0,n.jsx)(e.span,{className:"hide-tail",style:{minWidth:"1.02em",height:"1.88em"},children:(0,n.jsx)(e.svg,{xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.88em",viewBox:"0 0 400000 1944",preserveAspectRatio:"xMinYMin slice",children:(0,n.jsx)(e.path,{d:"M983 90\nl0 -0\nc4,-6.7,10,-10,18,-10 H400000v40\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM1001 80h400000v40h-400000z"})})})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.5225em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})]})}),"\n",(0,n.jsx)(e.admonition,{title:"variables",type:"note",children:(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsx)(e.mrow,{children:(0,n.jsxs)(e.msub,{children:[(0,n.jsx)(e.mi,{children:"x"}),(0,n.jsx)(e.mi,{children:"i"})]})}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"x_{i}"})]})})}),(0,n.jsx)(e.span,{className:"katex-html","aria-hidden":"true",children:(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mord mathnormal",children:"x"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.3117em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.7em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mathnormal mtight",children:"i"})})})]})}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.15em"},children:(0,n.jsx)(e.span,{})})})]})})]})]})})]})})," = value (in original units) from column x."]}),"\n"]})}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-python",children:"# use np to calcualte standard deviation: \r\nweights = full_pets.get('Weight')\r\nstandard_deviation = np.std(weights, ddof=0)\r\n\r\n# how to implement the standard deviation formula\r\nmean = weights.mean()\r\nnumerator = 0\r\nfor value in weights.values:\r\n numerator += (value - mean) ** 2\r\nvariance = numerator / (full_pets.shape[0])\r\nstandard_deviation2 = variance ** 0.5 \r\nstandard_deviation2\n"})}),"\n",(0,n.jsx)(e.h3,{id:"chebyshevs-inequality",children:"Chebyshev\u2019s Inequality"}),"\n",(0,n.jsxs)(e.table,{children:[(0,n.jsx)(e.thead,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.th,{children:"Range"}),(0,n.jsx)(e.th,{children:"All Distributions"}),(0,n.jsx)(e.th,{children:"Normal Distribution"})]})}),(0,n.jsxs)(e.tbody,{children:[(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:"mean \xb1 1 SD"}),(0,n.jsx)(e.td,{children:"at least 0%"}),(0,n.jsx)(e.td,{children:"about 68%"})]}),(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:"mean \xb1 2 SD"}),(0,n.jsx)(e.td,{children:"at least 75%"}),(0,n.jsx)(e.td,{children:"about 95%"})]}),(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:"mean \xb1 3 SD"}),(0,n.jsx)(e.td,{children:"at least 88%"}),(0,n.jsx)(e.td,{children:"about 99.73%"})]})]})]}),"\n",(0,n.jsx)(e.admonition,{title:"variables",type:"note",children:(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"The Chebshev's Inequality: Applies to all distributions, providing a lower bound on the proportion of data within\r\nk standard deviations from the mean."}),"\n",(0,n.jsxs)(e.li,{children:["The true proportion of values within \ud835\udc67 SDs of the mean may be larger than ",(0,n.jsxs)(e.span,{className:"katex",children:[(0,n.jsx)(e.span,{className:"katex-mathml",children:(0,n.jsx)(e.math,{xmlns:"http://www.w3.org/1998/Math/MathML",children:(0,n.jsxs)(e.semantics,{children:[(0,n.jsxs)(e.mrow,{children:[(0,n.jsx)(e.mn,{children:"1"}),(0,n.jsx)(e.mo,{children:"\u2212"}),(0,n.jsxs)(e.mfrac,{children:[(0,n.jsx)(e.mn,{children:"1"}),(0,n.jsxs)(e.msup,{children:[(0,n.jsx)(e.mi,{children:"z"}),(0,n.jsx)(e.mn,{children:"2"})]})]})]}),(0,n.jsx)(e.annotation,{encoding:"application/x-tex",children:"1 - \\frac{1}{z^2}"})]})})}),(0,n.jsxs)(e.span,{className:"katex-html","aria-hidden":"true",children:[(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,n.jsx)(e.span,{className:"mord",children:"1"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.jsx)(e.span,{className:"mbin",children:"\u2212"}),(0,n.jsx)(e.span,{className:"mspace",style:{marginRight:"0.2222em"}})]}),(0,n.jsxs)(e.span,{className:"base",children:[(0,n.jsx)(e.span,{className:"strut",style:{height:"1.1901em",verticalAlign:"-0.345em"}}),(0,n.jsxs)(e.span,{className:"mord",children:[(0,n.jsx)(e.span,{className:"mopen nulldelimiter"}),(0,n.jsx)(e.span,{className:"mfrac",children:(0,n.jsxs)(e.span,{className:"vlist-t vlist-t2",children:[(0,n.jsxs)(e.span,{className:"vlist-r",children:[(0,n.jsxs)(e.span,{className:"vlist",style:{height:"0.8451em"},children:[(0,n.jsxs)(e.span,{style:{top:"-2.655em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsxs)(e.span,{className:"mord mtight",children:[(0,n.jsx)(e.span,{className:"mord mathnormal mtight",style:{marginRight:"0.04398em"},children:"z"}),(0,n.jsx)(e.span,{className:"msupsub",children:(0,n.jsx)(e.span,{className:"vlist-t",children:(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.7463em"},children:(0,n.jsxs)(e.span,{style:{top:"-2.786em",marginRight:"0.0714em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"2.5em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size3 size1 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:"2"})})]})})})})})]})})})]}),(0,n.jsxs)(e.span,{style:{top:"-3.23em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"frac-line",style:{borderBottomWidth:"0.04em"}})]}),(0,n.jsxs)(e.span,{style:{top:"-3.394em"},children:[(0,n.jsx)(e.span,{className:"pstrut",style:{height:"3em"}}),(0,n.jsx)(e.span,{className:"sizing reset-size6 size3 mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:(0,n.jsx)(e.span,{className:"mord mtight",children:"1"})})})]})]}),(0,n.jsx)(e.span,{className:"vlist-s",children:"\u200b"})]}),(0,n.jsx)(e.span,{className:"vlist-r",children:(0,n.jsx)(e.span,{className:"vlist",style:{height:"0.345em"},children:(0,n.jsx)(e.span,{})})})]})}),(0,n.jsx)(e.span,{className:"mclose nulldelimiter"})]})]})]})]}),", depending on the distribution."]}),"\n",(0,n.jsx)(e.li,{children:"Normal Distribution: Provides specific and tighter estimates because it assumes a particular symmetrical and bell-shaped distribution. These estimates are higher than the lower bounds provided by Chebyshev's Inequality because they take advantage of the normal distribution's properties."}),"\n"]})}),"\n",(0,n.jsx)(e.h4,{id:"chebyshevs-inequality-visualized-on-a-normal-distribution",children:"Chebyshev\u2019s Inequality visualized on a normal distribution"}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.img,{alt:"Curve",src:a(9721).A+"",width:"618",height:"391"})}),"\n",(0,n.jsxs)(e.admonition,{type:"note",children:[(0,n.jsx)(e.p,{children:"The graph above illustrates the distribution of weights sampled from a normal distribution with a mean of 70 and a standard deviation of 10. The dashed lines represent one, two, and three standard deviations from the mean, providing insight into the spread of data around the central tendency."}),(0,n.jsx)(e.p,{children:"Annotations on the plot indicate the actual proportion of data within each standard deviation range: around 68.6% of data are within 1 std, 95.6% of data are within 2stds, 99.7% of data are within 3 stds.\r\nThis aligns with the expected percentages for a normal distribution."})]}),"\n",(0,n.jsx)(e.h4,{id:"chebyshevs-inequality-visualized-on-a-non-normal-distribution",children:"Chebyshev\u2019s Inequality visualized on a non-normal distribution"}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.img,{alt:"Curve",src:a(1524).A+"",width:"645",height:"391"})}),"\n",(0,n.jsxs)(e.admonition,{type:"note",children:[(0,n.jsx)(e.p,{children:"The graph above illustrates the distribution of weight values intentionally chosen to be non-normally distributed. Annotations on the plot indicate the actual proportion of data within each standard deviation range: roughly 57.3% of data fall within 1 standard deviation, while all data points fall within 2 and 3 standard deviations."}),(0,n.jsx)(e.p,{children:"Despite the deviation from normality, Chebyshev's Inequality still applies, providing a conservative estimate of the proportion of data within a certain number of standard deviations from the mean."})]})]})}function d(s={}){const{wrapper:e}={...(0,i.R)(),...s.components};return e?(0,n.jsx)(e,{...s,children:(0,n.jsx)(m,{...s})}):m(s)}},8597:(s,e,a)=>{a.d(e,{A:()=>i});a(6540);var n=a(4848);const i=s=>{let{data:e}=s,a=[],i=[],t="",l=[];if(e){const s=JSON.parse(e);a=s.columns||[],i=s.data||[],t=s.indexName||"Index",l=s.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:t}),a.map(((s,e)=>(0,n.jsx)("th",{children:s},e)))]})}),(0,n.jsx)("tbody",{children:i.map(((s,e)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:l[e]}),s.map(((s,e)=>{return(0,n.jsx)("td",{children:(a=s,"boolean"==typeof a?a.toString().charAt(0).toUpperCase()+a.toString().slice(1):a)},e);var a}))]},e)))})]})})}},5158:(s,e,a)=>{a.d(e,{A:()=>t});var n=a(6540),i=a(4848);const t=function(s){let{src:e,sourceLink:a,aspectRatio:t=16/9}=s;const[l,r]=(0,n.useState)(0),[c,h]=(0,n.useState)(0),m=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const s=()=>{if(m.current){const s=m.current.offsetWidth;h(s/t)}};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)}),[t]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:m,style:{width:"100%",position:"relative",maxWidth:"100%",backgroundColor:"white"},children:(0,i.jsx)("iframe",{src:e,style:{width:"100%",height:`${c}px`,border:"0",allowFullScreen:!0}},l)}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,i.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,i.jsx)("button",{onClick:()=>{r((s=>s+1))},style:{backgroundColor:"#4CAF50",color:"white",padding:"10px 20px",border:"none",borderRadius:"5px",cursor:"pointer",outline:"none",fontSize:"16px",fontWeight:"bold",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",transition:"background-color 0.3s"},onMouseOver:s=>s.currentTarget.style.backgroundColor="#45a049",onMouseOut:s=>s.currentTarget.style.backgroundColor="#4CAF50",children:"Restart Diagram"})})]})}},9721:(s,e,a)=>{a.d(e,{A:()=>n});const n=a.p+"assets/images/chebyshev-normal-e98e59bd42025035eb9415f58f32433f.png"},1524:(s,e,a)=>{a.d(e,{A:()=>n});const n=a.p+"assets/images/chebyshev-notnormal-4f883f3e8c4870e74383cc82894add0b.png"},8453:(s,e,a)=>{a.d(e,{R:()=>l,x:()=>r});var n=a(6540);const i={},t=n.createContext(i);function l(s){const e=n.useContext(t);return n.useMemo((function(){return"function"==typeof s?s(e):{...e,...s}}),[e,s])}function r(s){let e;return e=s.disableParentContext?"function"==typeof s.components?s.components(i):s.components||i:l(s.components),n.createElement(t.Provider,{value:e},s.children)}}}]); \ No newline at end of file diff --git a/assets/js/f9684ee2.ef0816da.js b/assets/js/f9684ee2.94223911.js similarity index 54% rename from assets/js/f9684ee2.ef0816da.js rename to assets/js/f9684ee2.94223911.js index cdb6ee5c..04ecac13 100644 --- a/assets/js/f9684ee2.ef0816da.js +++ b/assets/js/f9684ee2.94223911.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3342],{9965:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>o,contentTitle:()=>c,default:()=>p,frontMatter:()=>d,metadata:()=>i,toc:()=>l});var a=s(4848),t=s(8453),r=s(8597);s(8205);const d={sidebar_position:5},c=void 0,i={id:"documentation/accessing-data/df.index",title:"df.index",description:"df.index",source:"@site/docs/documentation/accessing-data/df.index.md",sourceDirName:"documentation/accessing-data",slug:"/documentation/accessing-data/df.index",permalink:"/bpd-reference/docs/documentation/accessing-data/df.index",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/accessing-data/df.index.md",tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5},sidebar:"docsSidebar",previous:{title:"ser.iloc[]",permalink:"/bpd-reference/docs/documentation/accessing-data/ser.iloc[]"},next:{title:"df.columns",permalink:"/bpd-reference/docs/documentation/accessing-data/df.columns"}},o={},l=[];function h(e){const n={a:"a",code:"code",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df.index"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Returns the indices (row labels) of the DataFrame."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Note:"}),(0,a.jsx)("dd",{children:(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"The index of a DataFrame is a series of labels that identify each row. The labels can be integers, strings, or any other hashable type."}),(0,a.jsx)("li",{children:"Positions start at 0. Negative positions start from the end of the DataFrame."}),(0,a.jsxs)("li",{children:["The return type is bpd.Index. Use ",(0,a.jsx)(n.code,{children:"np.array()"})," to convert it to a numpy array."]})]})})]})]}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets\n"})}),"\n",(0,a.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets.index[0]\n"})}),"\n",(0,a.jsx)(n.p,{children:"0"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets.index[-3]\n"})}),"\n",(0,a.jsx)(n.p,{children:"5"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets_idx = pets.set_index('ID').index\r\npets_idx\n"})}),"\n",(0,a.jsx)(n.p,{children:"Index(['dog_001', 'cat_001', 'cat_002', 'dog_002', 'dog_003', 'ham_001',\r\n'ham_002', 'cat_003'],\r\ndtype='object', name='ID')"}),"\n",(0,a.jsxs)("p",{children:[(0,a.jsx)("br",{})," ",(0,a.jsxs)(n.strong,{children:["Convert index to a numpy array. Learn more about this in the ",(0,a.jsx)(n.a,{href:"https://dsc-courses.github.io/bpd-reference/docs/documentation/data%20format%20conversion/np.array()",children:"Data Format Conversion"})," section."]})," "]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"idx_arr = np.array(pets_idx)\r\nidx_arr\n"})}),"\n",(0,a.jsx)(n.p,{children:"array(['dog_001', 'cat_001', 'cat_002', 'dog_002', 'dog_003', 'ham_001',\r\n'ham_002', 'cat_003'], dtype=object)"})]})}function p(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],r="",d=[];if(n){const e=JSON.parse(n);s=e.columns||[],t=e.data||[],r=e.indexName||"Index",d=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:r}),s.map(((e,n)=>(0,a.jsx)("th",{children:e},n)))]})}),(0,a.jsx)("tbody",{children:t.map(((e,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:d[n]}),e.map(((e,n)=>{return(0,a.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],r="",d="";if(n)try{const e=JSON.parse(n);r=e.name||"",d=e.dtype||"Unknown type",s=e.index||[],t=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const c=t.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:c.map(((e,n)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:s[n]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",d]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>d,x:()=>c});var a=s(6540);const t={},r=a.createContext(t);function d(e){const n=a.useContext(r);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:d(e.components),a.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3342],{9965:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>o,contentTitle:()=>c,default:()=>p,frontMatter:()=>d,metadata:()=>i,toc:()=>l});var a=s(4848),t=s(8453),r=s(8597);s(8205);const d={sidebar_position:5},c=void 0,i={id:"documentation/accessing-data/df.index",title:"df.index",description:"df.index",source:"@site/docs/documentation/accessing-data/df.index.md",sourceDirName:"documentation/accessing-data",slug:"/documentation/accessing-data/df.index",permalink:"/bpd-reference/docs/documentation/accessing-data/df.index",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/accessing-data/df.index.md",tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5},sidebar:"docsSidebar",previous:{title:"ser.iloc[]",permalink:"/bpd-reference/docs/documentation/accessing-data/ser.iloc[]"},next:{title:"df.columns",permalink:"/bpd-reference/docs/documentation/accessing-data/df.columns"}},o={},l=[];function h(e){const n={a:"a",code:"code",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df.index"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Returns the indices (row labels) of the DataFrame."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Note:"}),(0,a.jsx)("dd",{children:(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"The index of a DataFrame is a series of labels that identify each row. The labels can be integers, strings, or any other hashable type."}),(0,a.jsx)("li",{children:"Positions start at 0. Negative positions start from the end of the DataFrame."}),(0,a.jsxs)("li",{children:["The return type is bpd.Index. Use ",(0,a.jsx)(n.code,{children:"np.array()"})," to convert it to a numpy array."]})]})})]})]}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets\n"})}),"\n",(0,a.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets.index[0]\n"})}),"\n",(0,a.jsx)(n.p,{children:"0"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets.index[-3]\n"})}),"\n",(0,a.jsx)(n.p,{children:"5"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets_idx = pets.set_index('ID').index\npets_idx\n"})}),"\n",(0,a.jsx)(n.p,{children:"Index(['dog_001', 'cat_001', 'cat_002', 'dog_002', 'dog_003', 'ham_001',\n'ham_002', 'cat_003'],\ndtype='object', name='ID')"}),"\n",(0,a.jsxs)("p",{children:[(0,a.jsx)("br",{})," ",(0,a.jsxs)(n.strong,{children:["Convert index to a numpy array. Learn more about this in the ",(0,a.jsx)(n.a,{href:"https://dsc-courses.github.io/bpd-reference/docs/documentation/data%20format%20conversion/np.array()",children:"Data Format Conversion"})," section."]})," "]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"idx_arr = np.array(pets_idx)\nidx_arr\n"})}),"\n",(0,a.jsx)(n.p,{children:"array(['dog_001', 'cat_001', 'cat_002', 'dog_002', 'dog_003', 'ham_001',\n'ham_002', 'cat_003'], dtype=object)"})]})}function p(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},8597:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],r="",d=[];if(n){const e=JSON.parse(n);s=e.columns||[],t=e.data||[],r=e.indexName||"Index",d=e.index||[]}return(0,a.jsx)("div",{className:"dataframe-container",children:(0,a.jsxs)("table",{className:"dataframe-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:r}),s.map(((e,n)=>(0,a.jsx)("th",{children:e},n)))]})}),(0,a.jsx)("tbody",{children:t.map(((e,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"index-value",children:d[n]}),e.map(((e,n)=>{return(0,a.jsx)("td",{children:(s=e,"boolean"==typeof s?s.toString().charAt(0).toUpperCase()+s.toString().slice(1):s)},n);var s}))]},n)))})]})})}},8205:(e,n,s)=>{s.d(n,{A:()=>t});s(6540);var a=s(4848);const t=e=>{let{data:n}=e,s=[],t=[],r="",d="";if(n)try{const e=JSON.parse(n);r=e.name||"",d=e.dtype||"Unknown type",s=e.index||[],t=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const c=t.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:c.map(((e,n)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:s[n]}),(0,a.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",r,", dtype: ",d]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>d,x:()=>c});var a=s(6540);const t={},r=a.createContext(t);function d(e){const n=a.useContext(r);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:d(e.components),a.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/fe41946a.15b16019.js b/assets/js/fe41946a.15b16019.js deleted file mode 100644 index 79bcbde8..00000000 --- a/assets/js/fe41946a.15b16019.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7489],{8603:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>o,contentTitle:()=>c,default:()=>h,frontMatter:()=>d,metadata:()=>i,toc:()=>l});var t=n(4848),a=n(8453),s=(n(8597),n(8205));const d={sidebar_position:1},c=void 0,i={id:"documentation/data format conversion/np.array()",title:"np.array()",description:"np.array(input)",source:"@site/docs/documentation/data format conversion/np.array().md",sourceDirName:"documentation/data format conversion",slug:"/documentation/data format conversion/np.array()",permalink:"/bpd-reference/docs/documentation/data format conversion/np.array()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/data format conversion/np.array().md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"Data Format Conversion",permalink:"/bpd-reference/docs/documentation/data format conversion/"},next:{title:"list()",permalink:"/bpd-reference/docs/documentation/data format conversion/list()"}},o={},l=[];function p(e){const r={code:"code",hr:"hr",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"np.array(input)"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Casts an iterable (bpd.Series, bpd.Index, and list) into a NumPy array."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Input:"}),(0,t.jsxs)("dd",{className:"parameter",children:["input : ",(0,t.jsx)("em",{children:"ser, df.index, df.columns, list"})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"Name of series/.columns/list to cast to an array."}),(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"An array with the same elements as the input. "}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"Array"})]})]}),"\n",(0,t.jsx)(r.hr,{}),"\n",(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Series to Array"})}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,t.jsx)(s.A,{data:'{"name":"Weight", "dtype": "float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-python",children:"weight_arr = np.array(weight_ser)\r\nweight_arr\n"})}),"\n",(0,t.jsx)(r.p,{children:"array([40. , 15. , 20. , 80. , 25. , 1. , 0.25])"}),"\n",(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"bpd.Index to Array"})}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-python",children:"pets_idx = pets.set_index('ID').index\r\npets_idx\n"})}),"\n",(0,t.jsx)(r.p,{children:"Index(['dog_001', 'cat_001', 'cat_002', 'dog_002', 'dog_003', 'ham_001', 'ham_002', 'cat_003'], dtype='object', name='ID')"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-python",children:"#df.index to array\r\npets_idx_arr = np.array(pets.set_index('ID').index)\r\npets_idx_arr\n"})}),"\n",(0,t.jsx)(r.p,{children:"array(['dog_001', 'cat_001', 'cat_002', 'dog_002', 'dog_003', 'ham_001', 'ham_002', 'cat_003'], dtype=object)"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-python",children:"pets_cols = pets.columns\r\npet_cols\n"})}),"\n",(0,t.jsx)(r.p,{children:"Index(['ID', 'Species', 'Color', 'Weight', 'Age', 'Is_Cat', 'Owner_Comment'], dtype='object')"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-python",children:"#df.columns to array\r\npets_cols_arr = np.array(pets.columns)\r\npet_cols_arr\n"})}),"\n",(0,t.jsx)(r.p,{children:"array(['ID', 'Species', 'Color', 'Weight', 'Age', 'Is_Cat',\r\n'Owner_Comment'], dtype=object)"}),"\n",(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"List to Array"})}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-python",children:'pets_list = ["dog", "cat", "hamster", "cat", "cat", "dog", "dog", "hamster", "hamster"]\r\npet_list\n'})}),"\n",(0,t.jsx)(r.p,{children:'["dog", "cat", "hamster", "cat", "cat", "dog", "dog", "hamster", "hamster"]'}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-python",children:"pets_list_arr = np.array(pets_list)\r\npet_list_arr\n"})}),"\n",(0,t.jsx)(r.p,{children:'array(["dog", "cat", "hamster", "cat", "cat", "dog", "dog", "hamster", "hamster"], dtype=object)'})]})}function h(e={}){const{wrapper:r}={...(0,a.R)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}},8597:(e,r,n)=>{n.d(r,{A:()=>a});n(6540);var t=n(4848);const a=e=>{let{data:r}=e,n=[],a=[],s="",d=[];if(r){const e=JSON.parse(r);n=e.columns||[],a=e.data||[],s=e.indexName||"Index",d=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:s}),n.map(((e,r)=>(0,t.jsx)("th",{children:e},r)))]})}),(0,t.jsx)("tbody",{children:a.map(((e,r)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:d[r]}),e.map(((e,r)=>{return(0,t.jsx)("td",{children:(n=e,"boolean"==typeof n?n.toString().charAt(0).toUpperCase()+n.toString().slice(1):n)},r);var n}))]},r)))})]})})}},8205:(e,r,n)=>{n.d(r,{A:()=>a});n(6540);var t=n(4848);const a=e=>{let{data:r}=e,n=[],a=[],s="",d="";if(r)try{const e=JSON.parse(r);s=e.name||"",d=e.dtype||"Unknown type",n=e.index||[],a=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const c=a.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:c.map(((e,r)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:n[r]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},r)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",s,", dtype: ",d]})]})}},8453:(e,r,n)=>{n.d(r,{R:()=>d,x:()=>c});var t=n(6540);const a={},s=t.createContext(a);function d(e){const r=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function c(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:d(e.components),t.createElement(s.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/fe41946a.a8daece4.js b/assets/js/fe41946a.a8daece4.js new file mode 100644 index 00000000..03b58fe9 --- /dev/null +++ b/assets/js/fe41946a.a8daece4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7489],{8603:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>o,contentTitle:()=>c,default:()=>h,frontMatter:()=>d,metadata:()=>i,toc:()=>l});var t=r(4848),a=r(8453),s=(r(8597),r(8205));const d={sidebar_position:1},c=void 0,i={id:"documentation/data format conversion/np.array()",title:"np.array()",description:"np.array(input)",source:"@site/docs/documentation/data format conversion/np.array().md",sourceDirName:"documentation/data format conversion",slug:"/documentation/data format conversion/np.array()",permalink:"/bpd-reference/docs/documentation/data format conversion/np.array()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/data format conversion/np.array().md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"docsSidebar",previous:{title:"Data Format Conversion",permalink:"/bpd-reference/docs/documentation/data format conversion/"},next:{title:"list()",permalink:"/bpd-reference/docs/documentation/data format conversion/list()"}},o={},l=[];function p(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"np.array(input)"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Casts an iterable (bpd.Series, bpd.Index, and list) into a NumPy array."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Input:"}),(0,t.jsxs)("dd",{className:"parameter",children:["input : ",(0,t.jsx)("em",{children:"ser, df.index, df.columns, list"})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"Name of series/.columns/list to cast to an array."}),(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"An array with the same elements as the input. "}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"Array"})]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Series to Array"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,t.jsx)(s.A,{data:'{"name":"Weight", "dtype": "float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"weight_arr = np.array(weight_ser)\nweight_arr\n"})}),"\n",(0,t.jsx)(n.p,{children:"array([40. , 15. , 20. , 80. , 25. , 1. , 0.25])"}),"\n",(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"bpd.Index to Array"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets_idx = pets.set_index('ID').index\npets_idx\n"})}),"\n",(0,t.jsx)(n.p,{children:"Index(['dog_001', 'cat_001', 'cat_002', 'dog_002', 'dog_003', 'ham_001', 'ham_002', 'cat_003'], dtype='object', name='ID')"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"#df.index to array\npets_idx_arr = np.array(pets.set_index('ID').index)\npets_idx_arr\n"})}),"\n",(0,t.jsx)(n.p,{children:"array(['dog_001', 'cat_001', 'cat_002', 'dog_002', 'dog_003', 'ham_001', 'ham_002', 'cat_003'], dtype=object)"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets_cols = pets.columns\npet_cols\n"})}),"\n",(0,t.jsx)(n.p,{children:"Index(['ID', 'Species', 'Color', 'Weight', 'Age', 'Is_Cat', 'Owner_Comment'], dtype='object')"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"#df.columns to array\npets_cols_arr = np.array(pets.columns)\npet_cols_arr\n"})}),"\n",(0,t.jsx)(n.p,{children:"array(['ID', 'Species', 'Color', 'Weight', 'Age', 'Is_Cat',\n'Owner_Comment'], dtype=object)"}),"\n",(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"List to Array"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:'pets_list = ["dog", "cat", "hamster", "cat", "cat", "dog", "dog", "hamster", "hamster"]\npet_list\n'})}),"\n",(0,t.jsx)(n.p,{children:'["dog", "cat", "hamster", "cat", "cat", "dog", "dog", "hamster", "hamster"]'}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-python",children:"pets_list_arr = np.array(pets_list)\npet_list_arr\n"})}),"\n",(0,t.jsx)(n.p,{children:'array(["dog", "cat", "hamster", "cat", "cat", "dog", "dog", "hamster", "hamster"], dtype=object)'})]})}function h(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}},8597:(e,n,r)=>{r.d(n,{A:()=>a});r(6540);var t=r(4848);const a=e=>{let{data:n}=e,r=[],a=[],s="",d=[];if(n){const e=JSON.parse(n);r=e.columns||[],a=e.data||[],s=e.indexName||"Index",d=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:s}),r.map(((e,n)=>(0,t.jsx)("th",{children:e},n)))]})}),(0,t.jsx)("tbody",{children:a.map(((e,n)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:d[n]}),e.map(((e,n)=>{return(0,t.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},n);var r}))]},n)))})]})})}},8205:(e,n,r)=>{r.d(n,{A:()=>a});r(6540);var t=r(4848);const a=e=>{let{data:n}=e,r=[],a=[],s="",d="";if(n)try{const e=JSON.parse(n);s=e.name||"",d=e.dtype||"Unknown type",r=e.index||[],a=e.data||[]}catch(i){console.error("Error parsing data prop in SeriesComponent:",i)}const c=a.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:c.map(((e,n)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:r[n]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},n)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",s,", dtype: ",d]})]})}},8453:(e,n,r)=>{r.d(n,{R:()=>d,x:()=>c});var t=r(6540);const a={},s=t.createContext(a);function d(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:d(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ffbcff43.08e5113e.js b/assets/js/ffbcff43.08e5113e.js deleted file mode 100644 index 13578ab5..00000000 --- a/assets/js/ffbcff43.08e5113e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6077],{6120:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>i,contentTitle:()=>d,default:()=>h,frontMatter:()=>o,metadata:()=>c,toc:()=>l});var t=r(4848),n=r(8453),a=(r(8597),r(8205));const o={sidebar_position:14},d=void 0,c={id:"documentation/series-methods/ser.str.replace()",title:"ser.str.replace()",description:"ser.str.replace(old, new)",source:"@site/docs/documentation/series-methods/ser.str.replace().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.replace()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.replace()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.replace().md",tags:[],version:"current",sidebarPosition:14,frontMatter:{sidebar_position:14},sidebar:"docsSidebar",previous:{title:"ser.str.title()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.title()"},next:{title:"ser.str.len()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.len()"}},i={},l=[];function m(e){const s={code:"code",hr:"hr",pre:"pre",strong:"strong",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"ser.str.replace(old, new)"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsxs)("strong",{children:["Substitutes all ",(0,t.jsx)(s.code,{children:"old"})," strings with the ",(0,t.jsx)(s.code,{children:"new"})," string for every element of the Series."]})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Input:"}),(0,t.jsxs)("dd",{className:"parameter",children:["old : ",(0,t.jsx)("em",{children:"string"})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"String to replace."}),(0,t.jsxs)("dd",{className:"parameter",children:["new : ",(0,t.jsx)("em",{children:"string"})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"Replacement string."}),(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"Returns a Series with the substring old replaced by the new for count number of times."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"Series"})]})]}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\r\ncomment_ser\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser.str.replace('dog', 'cat')\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad cats, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your cat thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,t.jsxs)("p",{children:[(0,t.jsx)("br",{})," ",(0,t.jsx)(s.strong,{children:"Replaced multiple strings."})," "]}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"comment_ser.str.replace('dog', 'cat').str.replace('birthday', '\ud83c\udf70')\n"})}),"\n",(0,t.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad cats, only bad owners.","My best \\ud83c\\udf70 present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your cat thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'})]})}function h(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},8597:(e,s,r)=>{r.d(s,{A:()=>n});r(6540);var t=r(4848);const n=e=>{let{data:s}=e,r=[],n=[],a="",o=[];if(s){const e=JSON.parse(s);r=e.columns||[],n=e.data||[],a=e.indexName||"Index",o=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:a}),r.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:n.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:o[s]}),e.map(((e,s)=>{return(0,t.jsx)("td",{children:(r=e,"boolean"==typeof r?r.toString().charAt(0).toUpperCase()+r.toString().slice(1):r)},s);var r}))]},s)))})]})})}},8205:(e,s,r)=>{r.d(s,{A:()=>n});r(6540);var t=r(4848);const n=e=>{let{data:s}=e,r=[],n=[],a="",o="";if(s)try{const e=JSON.parse(s);a=e.name||"",o=e.dtype||"Unknown type",r=e.index||[],n=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const d=n.map((e=>JSON.stringify(e)));return(0,t.jsxs)("div",{className:"series-container",children:[(0,t.jsx)("ul",{className:"series-list",children:d.map(((e,s)=>(0,t.jsxs)("li",{className:"series-item",children:[(0,t.jsx)("span",{className:"series-index",children:r[s]}),(0,t.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,t.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",o]})]})}},8453:(e,s,r)=>{r.d(s,{R:()=>o,x:()=>d});var t=r(6540);const n={},a=t.createContext(n);function o(e){const s=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:o(e.components),t.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ffbcff43.e95668eb.js b/assets/js/ffbcff43.e95668eb.js new file mode 100644 index 00000000..cc1336bc --- /dev/null +++ b/assets/js/ffbcff43.e95668eb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[6077],{6120:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>i,contentTitle:()=>d,default:()=>h,frontMatter:()=>o,metadata:()=>c,toc:()=>l});var r=t(4848),n=t(8453),a=(t(8597),t(8205));const o={sidebar_position:14},d=void 0,c={id:"documentation/series-methods/ser.str.replace()",title:"ser.str.replace()",description:"ser.str.replace(old, new)",source:"@site/docs/documentation/series-methods/ser.str.replace().md",sourceDirName:"documentation/series-methods",slug:"/documentation/series-methods/ser.str.replace()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.replace()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/documentation/series-methods/ser.str.replace().md",tags:[],version:"current",sidebarPosition:14,frontMatter:{sidebar_position:14},sidebar:"docsSidebar",previous:{title:"ser.str.title()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.title()"},next:{title:"ser.str.len()",permalink:"/bpd-reference/docs/documentation/series-methods/ser.str.len()"}},i={},l=[];function m(e){const s={code:"code",hr:"hr",pre:"pre",strong:"strong",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.str.replace(old, new)"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsx)("p",{children:(0,r.jsxs)("strong",{children:["Substitutes all ",(0,r.jsx)(s.code,{children:"old"})," strings with the ",(0,r.jsx)(s.code,{children:"new"})," string for every element of the Series."]})}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Input:"}),(0,r.jsxs)("dd",{className:"parameter",children:["old : ",(0,r.jsx)("em",{children:"string"})]}),(0,r.jsx)("dd",{className:"parameter-description",children:"String to replace."}),(0,r.jsxs)("dd",{className:"parameter",children:["new : ",(0,r.jsx)("em",{children:"string"})]}),(0,r.jsx)("dd",{className:"parameter-description",children:"Replacement string."}),(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"Returns a Series with the substring old replaced by the new for count number of times."}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"Series"})]})]}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\ncomment_ser\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser.str.replace('dog', 'cat')\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad cats, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your cat thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,r.jsxs)("p",{children:[(0,r.jsx)("br",{})," ",(0,r.jsx)(s.strong,{children:"Replaced multiple strings."})," "]}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser.str.replace('dog', 'cat').str.replace('birthday', '\ud83c\udf70')\n"})}),"\n",(0,r.jsx)(a.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad cats, only bad owners.","My best \\ud83c\\udf70 present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your cat thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'})]})}function h(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>n});t(6540);var r=t(4848);const n=e=>{let{data:s}=e,t=[],n=[],a="",o=[];if(s){const e=JSON.parse(s);t=e.columns||[],n=e.data||[],a=e.indexName||"Index",o=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:a}),t.map(((e,s)=>(0,r.jsx)("th",{children:e},s)))]})}),(0,r.jsx)("tbody",{children:n.map(((e,s)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:o[s]}),e.map(((e,s)=>{return(0,r.jsx)("td",{children:(t=e,"boolean"==typeof t?t.toString().charAt(0).toUpperCase()+t.toString().slice(1):t)},s);var t}))]},s)))})]})})}},8205:(e,s,t)=>{t.d(s,{A:()=>n});t(6540);var r=t(4848);const n=e=>{let{data:s}=e,t=[],n=[],a="",o="";if(s)try{const e=JSON.parse(s);a=e.name||"",o=e.dtype||"Unknown type",t=e.index||[],n=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const d=n.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:d.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:t[s]}),(0,r.jsx)("span",{className:"series-value",children:"true"===e||"false"===e?e.charAt(0).toUpperCase()+e.slice(1):e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",a,", dtype: ",o]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>o,x:()=>d});var r=t(6540);const n={},a=r.createContext(n);function o(e){const s=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:o(e.components),r.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/main.4026bce0.js b/assets/js/main.4026bce0.js new file mode 100644 index 00000000..f950b354 --- /dev/null +++ b/assets/js/main.4026bce0.js @@ -0,0 +1,2 @@ +/*! For license information please see main.4026bce0.js.LICENSE.txt */ +(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8792],{9188:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var r=n(6540);function o(){return r.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20","aria-hidden":"true"},r.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}},8328:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});n(6540);var r=n(3259),o=n.n(r),a=n(4054);const i={"01a85c17":[()=>Promise.all([n.e(1869),n.e(8209)]).then(n.bind(n,9140)),"@theme/BlogTagsListPage",9140],"03f8d3d3":[()=>Promise.all([n.e(1869),n.e(7326)]).then(n.bind(n,6890)),"@site/docs/documentation/series-methods/ser.count().md",6890],"0708938a":[()=>Promise.all([n.e(1869),n.e(8857)]).then(n.bind(n,5614)),"@site/docs/documentation/accessing-data/df.get().md",5614],"0784c833":[()=>n.e(3887).then(n.t.bind(n,1883,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-normal-distributions-797.json",1883],"099c0b96":[()=>Promise.all([n.e(1869),n.e(3717)]).then(n.bind(n,8284)),"@site/docs/statistical-inference/parameters-and-statistics.md",8284],"0c6397b1":[()=>Promise.all([n.e(1869),n.e(2646)]).then(n.bind(n,7739)),"@site/docs/documentation/building-organizing/bpd.DataFrame().md",7739],"10297ef4":[()=>Promise.all([n.e(1869),n.e(5125)]).then(n.bind(n,4699)),"@site/docs/documentation/plotting/index.md",4699],"10f7d562":[()=>Promise.all([n.e(1869),n.e(2720)]).then(n.bind(n,1923)),"@site/docs/documentation/Grouping/aggregation/min().md",1923],"14acb028":[()=>Promise.all([n.e(1869),n.e(5296)]).then(n.bind(n,4128)),"@site/docs/documentation/Grouping/aggregation/sum().md",4128],"14eb3368":[()=>Promise.all([n.e(1869),n.e(6969)]).then(n.bind(n,4136)),"@theme/DocCategoryGeneratedIndexPage",4136],"1774e1e3":[()=>Promise.all([n.e(1869),n.e(9448)]).then(n.bind(n,2850)),"@site/docs/statistical-inference/random sampling/df.sample().md",2850],17896441:[()=>Promise.all([n.e(1869),n.e(2667),n.e(8401)]).then(n.bind(n,6011)),"@theme/DocItem",6011],"187e374f":[()=>Promise.all([n.e(1869),n.e(6264)]).then(n.bind(n,340)),"@site/docs/statistical-inference/random sampling/np.random.multinomial().md",340],"1a4e3797":[()=>Promise.all([n.e(1869),n.e(2138)]).then(n.bind(n,4604)),"@theme/SearchPage",4604],"1f391b9e":[()=>Promise.all([n.e(1869),n.e(2667),n.e(6061)]).then(n.bind(n,7973)),"@theme/MDXPage",7973],"1f418535":[()=>n.e(3250).then(n.t.bind(n,723,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-c7e.json",723],"1fc0ff79":[()=>Promise.all([n.e(1869),n.e(3279)]).then(n.bind(n,1046)),"@site/docs/documentation/if-statements/Logical Operators.md",1046],"202baea0":[()=>Promise.all([n.e(1869),n.e(3508)]).then(n.bind(n,3191)),"@site/docs/documentation/accessing-data/ser.loc[].md",3191],"2141c98b":[()=>Promise.all([n.e(1869),n.e(6363)]).then(n.bind(n,3618)),"@site/docs/documentation/series-methods/ser.str.strip().md",3618],26533384:[()=>Promise.all([n.e(1869),n.e(7661)]).then(n.bind(n,5825)),"@site/docs/documentation/series-methods/ser.str.lower().md",5825],"29759c23":[()=>n.e(8449).then(n.t.bind(n,1158,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-functions-90a.json",1158],"2be9118b":[()=>Promise.all([n.e(1869),n.e(3237)]).then(n.bind(n,5404)),"@site/docs/documentation/series-methods/ser.str.split().md",5404],"2efbf384":[()=>Promise.all([n.e(1869),n.e(7069)]).then(n.bind(n,6621)),"@site/docs/documentation/arrays-and-numpy/np.round().md",6621],"36994c47":[()=>n.e(9858).then(n.t.bind(n,5516,19)),"@generated/docusaurus-plugin-content-blog/default/__plugin.json",5516],"36d89dbe":[()=>Promise.all([n.e(1869),n.e(2456)]).then(n.bind(n,6221)),"@site/docs/statistical-inference/random sampling/np.random.permutation().md",6221],"37002ad4":[()=>Promise.all([n.e(1869),n.e(3870)]).then(n.bind(n,7147)),"@site/docs/documentation/Grouping/groupby.md",7147],"3720c009":[()=>Promise.all([n.e(1869),n.e(4787)]).then(n.bind(n,2194)),"@theme/DocTagsListPage",2194],"3eb51302":[()=>Promise.all([n.e(1869),n.e(9938)]).then(n.bind(n,664)),"@site/docs/documentation/Grouping/aggregation/mean().md",664],"3f791b14":[()=>Promise.all([n.e(1869),n.e(6090)]).then(n.bind(n,9016)),"@site/docs/documentation/if-statements/if-elif-else.md",9016],"46ccc97a":[()=>Promise.all([n.e(1869),n.e(5579)]).then(n.bind(n,6314)),"@site/docs/documentation/series-methods/ser.mean().md",6314],"499d47b2":[()=>Promise.all([n.e(1869),n.e(2302)]).then(n.bind(n,3331)),"@site/docs/documentation/plotting/Bar Plot.md",3331],"541bd1cc":[()=>n.e(7354).then(n.t.bind(n,9076,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-histogram-51a.json",9076],59362658:[()=>n.e(9325).then(n.bind(n,1180)),"@site/blog/2021-08-01-mdx-blog-post.mdx",1180],"5ad2bf6e":[()=>n.e(8328).then(n.t.bind(n,6804,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-the-standard-normal-distribution-cec.json",6804],"5d6a2894":[()=>Promise.all([n.e(1869),n.e(5622)]).then(n.bind(n,1168)),"@site/docs/documentation/arrays-and-numpy/np.percentile().md",1168],"5ddb68ca":[()=>Promise.all([n.e(1869),n.e(6280)]).then(n.bind(n,5408)),"@site/docs/documentation/series-methods/ser.str.upper().md",5408],"5e95c892":[()=>n.e(9647).then(n.bind(n,7121)),"@theme/DocsRoot",7121],"5e9f5e1a":[()=>Promise.resolve().then(n.bind(n,4784)),"@generated/docusaurus.config",4784],"60c4aef6":[()=>Promise.all([n.e(1869),n.e(6142)]).then(n.bind(n,3071)),"@site/docs/statistical-inference/obs_and_test_stats.md",3071],61546123:[()=>Promise.all([n.e(1869),n.e(6137)]).then(n.bind(n,3627)),"@site/docs/statistical-inference/standard_units.md",3627],62552850:[()=>Promise.all([n.e(1869),n.e(1316)]).then(n.bind(n,8638)),"@site/docs/statistical-inference/random sampling/sampling.md",8638],"62efbc4a":[()=>Promise.all([n.e(1869),n.e(4594)]).then(n.bind(n,7442)),"@site/docs/documentation/series-methods/ser.str.title().md",7442],"655190df":[()=>Promise.all([n.e(1869),n.e(4567)]).then(n.bind(n,5364)),"@site/docs/documentation/series-methods/ser.max().md",5364],"65beeb93":[()=>Promise.all([n.e(1869),n.e(2334)]).then(n.bind(n,7190)),"@site/docs/documentation/plotting/Scatter Plot.md",7190],"6875c492":[()=>Promise.all([n.e(1869),n.e(2667),n.e(3242),n.e(4813)]).then(n.bind(n,3069)),"@theme/BlogTagsPostsPage",3069],"6a26c916":[()=>Promise.all([n.e(1869),n.e(4469)]).then(n.bind(n,352)),"@site/docs/documentation/Functions/Writing Functions.md",352],"6b67e948":[()=>Promise.all([n.e(1869),n.e(4932)]).then(n.bind(n,4266)),"@site/docs/documentation/series-methods/index.md",4266],"6e05dac9":[()=>Promise.all([n.e(1869),n.e(2284)]).then(n.bind(n,6802)),"@site/docs/documentation/accessing-data/df.columns.md",6802],"6e2ca103":[()=>Promise.all([n.e(1869),n.e(5980)]).then(n.bind(n,3433)),"@site/docs/documentation/plotting/Histogram.md",3433],"6e7a31fd":[()=>Promise.all([n.e(1869),n.e(3782)]).then(n.bind(n,7494)),"@site/docs/documentation/accessing-data/ser.iloc[].md",7494],"73664a40":[()=>n.e(1972).then(n.bind(n,9581)),"@site/blog/2019-05-29-long-blog-post.md",9581],"739bf370":[()=>Promise.all([n.e(1869),n.e(4812)]).then(n.bind(n,8145)),"@site/docs/documentation/intro.md",8145],"7661071f":[()=>n.e(8737).then(n.bind(n,4137)),"@site/blog/2021-08-26-welcome/index.md?truncated=true",4137],"79080f49":[()=>n.e(2540).then(n.t.bind(n,3730,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-for-loop-fcd.json",3730],"80770d40":[()=>Promise.all([n.e(1869),n.e(8065)]).then(n.bind(n,1376)),"@site/docs/documentation/accessing-data/df.shape.md",1376],"807a8ce9":[()=>n.e(514).then(n.t.bind(n,3364,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-the-central-limit-theorem-a22.json",3364],"80c4c602":[()=>n.e(8743).then(n.t.bind(n,1853,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-standard-deviation-933.json",1853],"81322b72":[()=>Promise.all([n.e(1869),n.e(94)]).then(n.bind(n,7352)),"@site/docs/documentation/series-methods/ser.unique().md",7352],"814f3328":[()=>n.e(7472).then(n.t.bind(n,5513,19)),"~blog/default/blog-post-list-prop-default.json",5513],"82ff9878":[()=>Promise.all([n.e(1869),n.e(675)]).then(n.bind(n,4458)),"@site/docs/documentation/series-methods/ser.str.capitalize().md",4458],"83aa63f8":[()=>n.e(4049).then(n.t.bind(n,9866,19)),"@generated/docusaurus-plugin-content-blog/default/p/bpd-reference-blog-784.json",9866],"83b8ee67":[()=>n.e(1417).then(n.t.bind(n,5392,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-category-querying-224.json",5392],"8717b14a":[()=>n.e(3694).then(n.bind(n,1615)),"@site/blog/2019-05-29-long-blog-post.md?truncated=true",1615],"8b4ce11c":[()=>n.e(5848).then(n.t.bind(n,779,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-querying-f82.json",779],"8c496670":[()=>Promise.all([n.e(1869),n.e(9572)]).then(n.bind(n,9108)),"@site/docs/documentation/querying/df[].md",9108],"8d40581b":[()=>Promise.all([n.e(1869),n.e(5745)]).then(n.bind(n,6900)),"@site/docs/documentation/Functions/Applying Functions.md",6900],"8d72dfa8":[()=>n.e(1429).then(n.t.bind(n,9468,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-category-if-statements-1c2.json",9468],"8ded1294":[()=>Promise.all([n.e(1869),n.e(4266)]).then(n.bind(n,2644)),"@site/docs/documentation/arrays-and-numpy/index.md",2644],"907d0c45":[()=>Promise.all([n.e(1869),n.e(4551)]).then(n.bind(n,468)),"@site/docs/documentation/Grouping/aggregation/count().md",468],"920988e2":[()=>Promise.all([n.e(1869),n.e(6690)]).then(n.bind(n,1399)),"@site/docs/documentation/arrays-and-numpy/np.append().md",1399],"925b3f96":[()=>n.e(8609).then(n.bind(n,5026)),"@site/blog/2019-05-28-first-blog-post.md?truncated=true",5026],"97247bb2":[()=>Promise.all([n.e(1869),n.e(4534)]).then(n.bind(n,4562)),"@site/docs/statistical-inference/central_limit_theorem.md",4562],"9746c0ef":[()=>Promise.all([n.e(1869),n.e(4638)]).then(n.bind(n,9849)),"@site/docs/documentation/series-methods/ser.str.contains().md",9849],"9a1a2feb":[()=>n.e(7338).then(n.t.bind(n,3649,19)),"@generated/docusaurus-plugin-content-blog/default/p/bpd-reference-blog-tags-docusaurus-529.json",3649],"9a265863":[()=>Promise.all([n.e(1869),n.e(1779)]).then(n.bind(n,2878)),"@site/docs/statistical-inference/standard_normal_distribution.md",2878],"9ac7dbcc":[()=>Promise.all([n.e(1869),n.e(719)]).then(n.bind(n,7574)),"@site/docs/documentation/series-methods/ser.sum().md",7574],"9e1896f0":[()=>Promise.all([n.e(1869),n.e(2441)]).then(n.bind(n,1841)),"@site/docs/documentation/building-organizing/df.set_index().md",1841],"9e4087bc":[()=>n.e(2711).then(n.bind(n,9331)),"@theme/BlogArchivePage",9331],"9f1843d8":[()=>Promise.all([n.e(1869),n.e(9894)]).then(n.bind(n,6171)),"@site/docs/statistical-inference/permutation_test.md",6171],a278cdf6:[()=>Promise.all([n.e(1869),n.e(1746)]).then(n.bind(n,8242)),"@site/docs/statistical-inference/intro.md",8242],a4805c9a:[()=>Promise.all([n.e(1869),n.e(7174)]).then(n.bind(n,1617)),"@site/docs/documentation/accessing-data/df.take().md",1617],a5d86b03:[()=>n.e(7330).then(n.t.bind(n,5451,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-correlation-c3b.json",5451],a6aa9e1f:[()=>Promise.all([n.e(1869),n.e(2667),n.e(3242),n.e(7643)]).then(n.bind(n,5124)),"@theme/BlogListPage",5124],a7456010:[()=>n.e(1235).then(n.t.bind(n,8552,19)),"@generated/docusaurus-plugin-content-pages/default/__plugin.json",8552],a7bd4aaa:[()=>n.e(7098).then(n.bind(n,4532)),"@theme/DocVersionRoot",4532],a94703ab:[()=>Promise.all([n.e(1869),n.e(9048)]).then(n.bind(n,2559)),"@theme/DocRoot",2559],a98da3ba:[()=>n.e(3110).then(n.t.bind(n,5331,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-confidence-intervals-d92.json",5331],aba21aa0:[()=>n.e(5742).then(n.t.bind(n,9474,19)),"@generated/docusaurus-plugin-content-docs/default/__plugin.json",9474],abde3fc7:[()=>n.e(3490).then(n.t.bind(n,3001,19)),"@generated/docusaurus-plugin-content-blog/default/p/bpd-reference-blog-tags-f4a.json",3001],ac5712c7:[()=>n.e(8852).then(n.t.bind(n,6097,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-hypothesis-test-5ce.json",6097],acb40918:[()=>Promise.all([n.e(1869),n.e(2491)]).then(n.bind(n,1721)),"@site/docs/documentation/series-methods/ser.median().md",1721],acecf23e:[()=>n.e(1903).then(n.t.bind(n,1912,19)),"~blog/default/blogMetadata-default.json",1912],b0c30e46:[()=>Promise.all([n.e(1869),n.e(1944)]).then(n.bind(n,3509)),"@site/docs/documentation/if-statements/in \u2044 not in.md",3509],b2bdf99d:[()=>n.e(8189).then(n.t.bind(n,9714,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-bootstrapping-ab2.json",9714],b69909d7:[()=>Promise.all([n.e(1869),n.e(1979)]).then(n.bind(n,1509)),"@site/docs/documentation/Grouping/aggregation/max().md",1509],b78139e1:[()=>Promise.all([n.e(1869),n.e(4929)]).then(n.bind(n,351)),"@site/docs/documentation/series-methods/ser.str.len().md",351],b7ff327f:[()=>Promise.all([n.e(1869),n.e(6730)]).then(n.bind(n,8039)),"@site/docs/documentation/building-organizing/df.drop().md",8039],be5f280b:[()=>n.e(3233).then(n.t.bind(n,3859,19)),"@generated/docusaurus-plugin-content-blog/default/p/bpd-reference-blog-tags-hola-835.json",3859],c141421f:[()=>n.e(957).then(n.t.bind(n,936,19)),"@generated/docusaurus-theme-search-algolia/default/__plugin.json",936],c4f5d8e4:[()=>Promise.all([n.e(1869),n.e(2634)]).then(n.bind(n,6467)),"@site/src/pages/index.js",6467],c94468d5:[()=>Promise.all([n.e(1869),n.e(3484)]).then(n.bind(n,7486)),"@site/docs/documentation/building-organizing/df.merge().md",7486],ca8a4f49:[()=>n.e(2621).then(n.t.bind(n,6787,19)),"@generated/docusaurus-plugin-content-blog/default/p/bpd-reference-blog-tags-hello-217.json",6787],ccc49370:[()=>Promise.all([n.e(1869),n.e(2667),n.e(3242),n.e(3249)]).then(n.bind(n,3858)),"@theme/BlogPostPage",3858],cd67c8da:[()=>n.e(2563).then(n.t.bind(n,1751,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-chebyshevs-inequality-1e2.json",1751],cdae2dcc:[()=>Promise.all([n.e(1869),n.e(7680)]).then(n.bind(n,295)),"@site/docs/documentation/arrays-and-numpy/arr[].md",295],ce5ff83d:[()=>n.e(8593).then(n.t.bind(n,1636,19)),"@generated/docusaurus-plugin-content-blog/default/p/bpd-reference-blog-tags-facebook-1df.json",1636],ce9b9f25:[()=>n.e(9488).then(n.t.bind(n,9013,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-standard-units-818.json",9013],d01a85b0:[()=>Promise.all([n.e(1869),n.e(9826)]).then(n.bind(n,1989)),"@site/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT.md",1989],d16c2311:[()=>n.e(9108).then(n.t.bind(n,8908,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-permutation-test-222.json",8908],d28047a2:[()=>Promise.all([n.e(1869),n.e(5119)]).then(n.bind(n,2502)),"@site/docs/statistical-inference/p_value.md",2502],d3196d0d:[()=>Promise.all([n.e(1869),n.e(8104)]).then(n.bind(n,3685)),"@site/docs/documentation/building-organizing/df.sort_values().md",3685],d3ef55ca:[()=>Promise.all([n.e(1869),n.e(3555)]).then(n.bind(n,5953)),"@site/docs/documentation/data format conversion/index.md",5953],d4f68316:[()=>Promise.all([n.e(1869),n.e(4833)]).then(n.bind(n,4520)),"@site/docs/statistical-inference/concept check/hypothesis_vs_permutation.md",4520],d9ae1e76:[()=>n.e(3113).then(n.t.bind(n,921,19)),"@generated/docusaurus-plugin-content-blog/default/p/bpd-reference-blog-archive-701.json",921],d9f32620:[()=>n.e(5557).then(n.bind(n,7447)),"@site/blog/2021-08-26-welcome/index.md",7447],dcbe5aac:[()=>Promise.all([n.e(1869),n.e(7214)]).then(n.bind(n,4433)),"@site/docs/documentation/series-methods/ser.min().md",4433],dd3b6db1:[()=>Promise.all([n.e(1869),n.e(2105)]).then(n.bind(n,1654)),"@site/docs/documentation/plotting/Line Plot.md",1654],de98ccb0:[()=>Promise.all([n.e(1869),n.e(8241)]).then(n.bind(n,4439)),"@site/docs/documentation/arrays-and-numpy/np.arange().md",4439],df203c0f:[()=>Promise.all([n.e(1869),n.e(4279)]).then(n.bind(n,5921)),"@theme/DocTagDocListPage",5921],dfefbedb:[()=>Promise.all([n.e(1869),n.e(2917)]).then(n.bind(n,2760)),"@site/docs/documentation/for-loops/for-loops.md",2760],e06ba05c:[()=>Promise.all([n.e(1869),n.e(5007)]).then(n.bind(n,4157)),"@site/docs/documentation/accessing-data/index.md",4157],e273c56f:[()=>n.e(9328).then(n.bind(n,4014)),"@site/blog/2019-05-28-first-blog-post.md",4014],e6a51af0:[()=>n.e(7380).then(n.t.bind(n,174,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-regression-d7a.json",174],eaaf288f:[()=>Promise.all([n.e(1869),n.e(9600)]).then(n.bind(n,4653)),"@site/docs/documentation/building-organizing/index.md",4653],f03ae67e:[()=>Promise.all([n.e(1869),n.e(972)]).then(n.bind(n,3007)),"@site/docs/statistical-inference/hypothesis_test.md",3007],f095f4cd:[()=>Promise.all([n.e(1869),n.e(28)]).then(n.bind(n,8406)),"@site/docs/statistical-inference/bootstrapping.md",8406],f0994678:[()=>Promise.all([n.e(1869),n.e(2808)]).then(n.bind(n,1478)),"@site/docs/documentation/data format conversion/list().md",1478],f0fd5c00:[()=>Promise.all([n.e(1869),n.e(2087)]).then(n.bind(n,476)),"@site/docs/documentation/arrays-and-numpy/np.count_nonzero().md",476],f2b0891e:[()=>Promise.all([n.e(1869),n.e(614)]).then(n.bind(n,9358)),"@site/docs/documentation/building-organizing/df.reset_index().md",9358],f39390d7:[()=>Promise.all([n.e(1869),n.e(3362)]).then(n.bind(n,3541)),"@site/docs/documentation/building-organizing/bpd.read_csv().md",3541],f3976560:[()=>n.e(7795).then(n.bind(n,8769)),"@site/src/pages/index.md",8769],f3b65525:[()=>Promise.all([n.e(1869),n.e(3343)]).then(n.bind(n,419)),"@site/docs/documentation/building-organizing/df.assign().md",419],f4434bba:[()=>Promise.all([n.e(1869),n.e(6747)]).then(n.bind(n,287)),"@site/docs/documentation/Grouping/aggregation/median().md",287],f4c1c84a:[()=>Promise.all([n.e(1869),n.e(7233)]).then(n.bind(n,4144)),"@site/docs/statistical-inference/random sampling/np.random.choice().md",4144],f4f34a3a:[()=>n.e(3637).then(n.bind(n,5512)),"@site/blog/2021-08-01-mdx-blog-post.mdx?truncated=true",5512],f8d80a2f:[()=>Promise.all([n.e(1869),n.e(4540)]).then(n.bind(n,7526)),"@site/docs/statistical-inference/spread_of_a_distribution.md",7526],f9684ee2:[()=>Promise.all([n.e(1869),n.e(3342)]).then(n.bind(n,9965)),"@site/docs/documentation/accessing-data/df.index.md",9965],fb17983f:[()=>Promise.all([n.e(1869),n.e(9595)]).then(n.bind(n,2693)),"@site/docs/statistical-inference/null_and_alt.md",2693],fe41946a:[()=>Promise.all([n.e(1869),n.e(7489)]).then(n.bind(n,8603)),"@site/docs/documentation/data format conversion/np.array().md",8603],ffbcff43:[()=>Promise.all([n.e(1869),n.e(6077)]).then(n.bind(n,6120)),"@site/docs/documentation/series-methods/ser.str.replace().md",6120],ffd9fdf4:[()=>n.e(9930).then(n.t.bind(n,7260,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-c1b.json",7260]};var s=n(4848);function l(e){let{error:t,retry:n,pastDelay:r}=e;return t?(0,s.jsxs)("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"},children:[(0,s.jsx)("p",{children:String(t)}),(0,s.jsx)("div",{children:(0,s.jsx)("button",{type:"button",onClick:n,children:"Retry"})})]}):r?(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,s.jsx)("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb",children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsx)("circle",{cx:"22",cy:"22",r:"8",children:(0,s.jsx)("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})}):null}var c=n(6921),u=n(3102);function d(e,t){if("*"===e)return o()({loading:l,loader:()=>n.e(2237).then(n.bind(n,2237)),modules:["@theme/NotFound"],webpack:()=>[2237],render(e,t){const n=e.default;return(0,s.jsx)(u.W,{value:{plugin:{name:"native",id:"default"}},children:(0,s.jsx)(n,{...t})})}});const r=a[`${e}-${t}`],d={},p=[],f=[],m=(0,c.A)(r);return Object.entries(m).forEach((e=>{let[t,n]=e;const r=i[n];r&&(d[t]=r[0],p.push(r[1]),f.push(r[2]))})),o().Map({loading:l,loader:d,modules:p,webpack:()=>f,render(t,n){const o=JSON.parse(JSON.stringify(r));Object.entries(t).forEach((t=>{let[n,r]=t;const a=r.default;if(!a)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof a&&"function"!=typeof a||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{a[e]=r[e]}));let i=o;const s=n.split(".");s.slice(0,-1).forEach((e=>{i=i[e]})),i[s[s.length-1]]=a}));const a=o.__comp;delete o.__comp;const i=o.__context;delete o.__context;const l=o.__props;return delete o.__props,(0,s.jsx)(u.W,{value:i,children:(0,s.jsx)(a,{...o,...l,...n})})}})}const p=[{path:"/bpd-reference/blog",component:d("/bpd-reference/blog","70d"),exact:!0},{path:"/bpd-reference/blog/archive",component:d("/bpd-reference/blog/archive","2ac"),exact:!0},{path:"/bpd-reference/blog/first-blog-post",component:d("/bpd-reference/blog/first-blog-post","99b"),exact:!0},{path:"/bpd-reference/blog/long-blog-post",component:d("/bpd-reference/blog/long-blog-post","521"),exact:!0},{path:"/bpd-reference/blog/mdx-blog-post",component:d("/bpd-reference/blog/mdx-blog-post","7ea"),exact:!0},{path:"/bpd-reference/blog/tags",component:d("/bpd-reference/blog/tags","2ec"),exact:!0},{path:"/bpd-reference/blog/tags/docusaurus",component:d("/bpd-reference/blog/tags/docusaurus","961"),exact:!0},{path:"/bpd-reference/blog/tags/facebook",component:d("/bpd-reference/blog/tags/facebook","93a"),exact:!0},{path:"/bpd-reference/blog/tags/hello",component:d("/bpd-reference/blog/tags/hello","f98"),exact:!0},{path:"/bpd-reference/blog/tags/hola",component:d("/bpd-reference/blog/tags/hola","16f"),exact:!0},{path:"/bpd-reference/blog/welcome",component:d("/bpd-reference/blog/welcome","3c3"),exact:!0},{path:"/bpd-reference/search",component:d("/bpd-reference/search","ec9"),exact:!0},{path:"/bpd-reference/docs",component:d("/bpd-reference/docs","017"),routes:[{path:"/bpd-reference/docs",component:d("/bpd-reference/docs","171"),routes:[{path:"/bpd-reference/docs/tags",component:d("/bpd-reference/docs/tags","eb7"),exact:!0},{path:"/bpd-reference/docs/tags/bootstrapping",component:d("/bpd-reference/docs/tags/bootstrapping","729"),exact:!0},{path:"/bpd-reference/docs/tags/chebyshevs-inequality",component:d("/bpd-reference/docs/tags/chebyshevs-inequality","107"),exact:!0},{path:"/bpd-reference/docs/tags/confidence-intervals",component:d("/bpd-reference/docs/tags/confidence-intervals","2bc"),exact:!0},{path:"/bpd-reference/docs/tags/correlation",component:d("/bpd-reference/docs/tags/correlation","af5"),exact:!0},{path:"/bpd-reference/docs/tags/for-loop",component:d("/bpd-reference/docs/tags/for-loop","122"),exact:!0},{path:"/bpd-reference/docs/tags/functions",component:d("/bpd-reference/docs/tags/functions","364"),exact:!0},{path:"/bpd-reference/docs/tags/histogram",component:d("/bpd-reference/docs/tags/histogram","75f"),exact:!0},{path:"/bpd-reference/docs/tags/hypothesis-test",component:d("/bpd-reference/docs/tags/hypothesis-test","a61"),exact:!0},{path:"/bpd-reference/docs/tags/normal-distributions",component:d("/bpd-reference/docs/tags/normal-distributions","225"),exact:!0},{path:"/bpd-reference/docs/tags/permutation-test",component:d("/bpd-reference/docs/tags/permutation-test","f4c"),exact:!0},{path:"/bpd-reference/docs/tags/querying",component:d("/bpd-reference/docs/tags/querying","f82"),exact:!0},{path:"/bpd-reference/docs/tags/regression",component:d("/bpd-reference/docs/tags/regression","bf9"),exact:!0},{path:"/bpd-reference/docs/tags/standard-deviation",component:d("/bpd-reference/docs/tags/standard-deviation","9dd"),exact:!0},{path:"/bpd-reference/docs/tags/standard-units",component:d("/bpd-reference/docs/tags/standard-units","63b"),exact:!0},{path:"/bpd-reference/docs/tags/the-central-limit-theorem",component:d("/bpd-reference/docs/tags/the-central-limit-theorem","df0"),exact:!0},{path:"/bpd-reference/docs/tags/the-standard-normal-distribution",component:d("/bpd-reference/docs/tags/the-standard-normal-distribution","d13"),exact:!0},{path:"/bpd-reference/docs",component:d("/bpd-reference/docs","503"),routes:[{path:"/bpd-reference/docs/category/if-statements",component:d("/bpd-reference/docs/category/if-statements","84b"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/category/querying",component:d("/bpd-reference/docs/category/querying","ff8"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/",component:d("/bpd-reference/docs/documentation/accessing-data/","764"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/df.columns",component:d("/bpd-reference/docs/documentation/accessing-data/df.columns","336"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/df.get()",component:d("/bpd-reference/docs/documentation/accessing-data/df.get()","8a5"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/df.index",component:d("/bpd-reference/docs/documentation/accessing-data/df.index","92f"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/df.shape",component:d("/bpd-reference/docs/documentation/accessing-data/df.shape","16f"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/df.take()",component:d("/bpd-reference/docs/documentation/accessing-data/df.take()","c4a"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/ser.iloc[]",component:d("/bpd-reference/docs/documentation/accessing-data/ser.iloc[]","22f"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/ser.loc[]",component:d("/bpd-reference/docs/documentation/accessing-data/ser.loc[]","810"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/arrays-and-numpy/",component:d("/bpd-reference/docs/documentation/arrays-and-numpy/","3d6"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/arrays-and-numpy/arr[]",component:d("/bpd-reference/docs/documentation/arrays-and-numpy/arr[]","82e"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/arrays-and-numpy/np.append()",component:d("/bpd-reference/docs/documentation/arrays-and-numpy/np.append()","851"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/arrays-and-numpy/np.arange()",component:d("/bpd-reference/docs/documentation/arrays-and-numpy/np.arange()","376"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/arrays-and-numpy/np.count_nonzero()",component:d("/bpd-reference/docs/documentation/arrays-and-numpy/np.count_nonzero()","0f6"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()",component:d("/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()","68b"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/arrays-and-numpy/np.round()",component:d("/bpd-reference/docs/documentation/arrays-and-numpy/np.round()","b0e"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/",component:d("/bpd-reference/docs/documentation/building-organizing/","aa2"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/bpd.DataFrame()",component:d("/bpd-reference/docs/documentation/building-organizing/bpd.DataFrame()","184"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/bpd.read_csv()",component:d("/bpd-reference/docs/documentation/building-organizing/bpd.read_csv()","68e"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/df.assign()",component:d("/bpd-reference/docs/documentation/building-organizing/df.assign()","2bf"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/df.drop()",component:d("/bpd-reference/docs/documentation/building-organizing/df.drop()","bfc"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/df.merge()",component:d("/bpd-reference/docs/documentation/building-organizing/df.merge()","ea1"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/df.reset_index()",component:d("/bpd-reference/docs/documentation/building-organizing/df.reset_index()","ffd"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/df.set_index()",component:d("/bpd-reference/docs/documentation/building-organizing/df.set_index()","956"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/df.sort_values()",component:d("/bpd-reference/docs/documentation/building-organizing/df.sort_values()","c18"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/data format conversion/",component:d("/bpd-reference/docs/documentation/data format conversion/","d89"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/data format conversion/list()",component:d("/bpd-reference/docs/documentation/data format conversion/list()","e04"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/data format conversion/np.array()",component:d("/bpd-reference/docs/documentation/data format conversion/np.array()","85a"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/for-loops/",component:d("/bpd-reference/docs/documentation/for-loops/","57d"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Functions/Applying Functions",component:d("/bpd-reference/docs/documentation/Functions/Applying Functions","054"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Functions/Writing Functions",component:d("/bpd-reference/docs/documentation/Functions/Writing Functions","a88"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Grouping/aggregation/count()",component:d("/bpd-reference/docs/documentation/Grouping/aggregation/count()","c02"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Grouping/aggregation/max()",component:d("/bpd-reference/docs/documentation/Grouping/aggregation/max()","32f"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Grouping/aggregation/mean()",component:d("/bpd-reference/docs/documentation/Grouping/aggregation/mean()","278"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Grouping/aggregation/median()",component:d("/bpd-reference/docs/documentation/Grouping/aggregation/median()","4fe"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Grouping/aggregation/min()",component:d("/bpd-reference/docs/documentation/Grouping/aggregation/min()","7ad"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Grouping/aggregation/sum()",component:d("/bpd-reference/docs/documentation/Grouping/aggregation/sum()","c41"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Grouping/groupby",component:d("/bpd-reference/docs/documentation/Grouping/groupby","716"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/if-statements/if-elif-else",component:d("/bpd-reference/docs/documentation/if-statements/if-elif-else","c17"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/if-statements/in \u2044 not in",component:d("/bpd-reference/docs/documentation/if-statements/in \u2044 not in","b7e"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/if-statements/Logical Operators",component:d("/bpd-reference/docs/documentation/if-statements/Logical Operators","690"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/intro",component:d("/bpd-reference/docs/documentation/intro","c28"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/plotting/",component:d("/bpd-reference/docs/documentation/plotting/","f0f"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/plotting/Bar Plot",component:d("/bpd-reference/docs/documentation/plotting/Bar Plot","0f6"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/plotting/Histogram",component:d("/bpd-reference/docs/documentation/plotting/Histogram","e59"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/plotting/Line Plot",component:d("/bpd-reference/docs/documentation/plotting/Line Plot","18b"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/plotting/Scatter Plot",component:d("/bpd-reference/docs/documentation/plotting/Scatter Plot","a24"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/querying/df[]",component:d("/bpd-reference/docs/documentation/querying/df[]","2c6"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/",component:d("/bpd-reference/docs/documentation/series-methods/","e90"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.count()",component:d("/bpd-reference/docs/documentation/series-methods/ser.count()","a99"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.max()",component:d("/bpd-reference/docs/documentation/series-methods/ser.max()","d33"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.mean()",component:d("/bpd-reference/docs/documentation/series-methods/ser.mean()","ead"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.median()",component:d("/bpd-reference/docs/documentation/series-methods/ser.median()","2fc"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.min()",component:d("/bpd-reference/docs/documentation/series-methods/ser.min()","64b"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()","6e1"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.contains()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.contains()","5d2"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.len()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.len()","bf0"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.lower()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.lower()","85b"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.replace()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.replace()","b28"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.split()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.split()","5f1"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.strip()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.strip()","80a"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.title()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.title()","c65"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.upper()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.upper()","1ee"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.sum()",component:d("/bpd-reference/docs/documentation/series-methods/ser.sum()","786"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.unique()",component:d("/bpd-reference/docs/documentation/series-methods/ser.unique()","877"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/statistical-inference/bootstrapping",component:d("/bpd-reference/docs/statistical-inference/bootstrapping","81d"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/central_limit_theorem",component:d("/bpd-reference/docs/statistical-inference/central_limit_theorem","899"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT",component:d("/bpd-reference/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT","141"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation",component:d("/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation","0bc"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/hypothesis_test",component:d("/bpd-reference/docs/statistical-inference/hypothesis_test","db9"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/intro",component:d("/bpd-reference/docs/statistical-inference/intro","85c"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/null_and_alt",component:d("/bpd-reference/docs/statistical-inference/null_and_alt","14d"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/obs_and_test_stats",component:d("/bpd-reference/docs/statistical-inference/obs_and_test_stats","de6"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/p_value",component:d("/bpd-reference/docs/statistical-inference/p_value","96f"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/parameters-and-statistics",component:d("/bpd-reference/docs/statistical-inference/parameters-and-statistics","90f"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/permutation_test",component:d("/bpd-reference/docs/statistical-inference/permutation_test","39d"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/random sampling/df.sample()",component:d("/bpd-reference/docs/statistical-inference/random sampling/df.sample()","c54"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()",component:d("/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()","f00"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()",component:d("/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()","6e8"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/random sampling/np.random.permutation()",component:d("/bpd-reference/docs/statistical-inference/random sampling/np.random.permutation()","a4e"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/random sampling/sampling",component:d("/bpd-reference/docs/statistical-inference/random sampling/sampling","f3e"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/spread_of_a_distribution",component:d("/bpd-reference/docs/statistical-inference/spread_of_a_distribution","750"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/standard_normal_distribution",component:d("/bpd-reference/docs/statistical-inference/standard_normal_distribution","c60"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/standard_units",component:d("/bpd-reference/docs/statistical-inference/standard_units","7f5"),exact:!0,sidebar:"statsSidebar"}]}]}]},{path:"/bpd-reference/",component:d("/bpd-reference/","eff"),exact:!0},{path:"/bpd-reference/",component:d("/bpd-reference/","173"),exact:!0},{path:"*",component:d("*")}]},6125:(e,t,n)=>{"use strict";n.d(t,{o:()=>a,x:()=>i});var r=n(6540),o=n(4848);const a=r.createContext(!1);function i(e){let{children:t}=e;const[n,i]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{i(!0)}),[]),(0,o.jsx)(a.Provider,{value:n,children:t})}},8536:(e,t,n)=>{"use strict";var r=n(6540),o=n(5338),a=n(4625),i=n(545),s=n(8193);const l=[n(296),n(119),n(6134),n(6294),n(1043)];var c=n(8328),u=n(6347),d=n(2831),p=n(4848);function f(e){let{children:t}=e;return(0,p.jsx)(p.Fragment,{children:t})}var m=n(5260),g=n(4586),h=n(6025),b=n(6342),y=n(5500),v=n(2131),w=n(4090),k=n(2967),x=n(440),S=n(1463);function _(){const{i18n:{currentLocale:e,defaultLocale:t,localeConfigs:n}}=(0,g.A)(),r=(0,v.o)(),o=n[e].htmlLang,a=e=>e.replace("-","_");return(0,p.jsxs)(m.A,{children:[Object.entries(n).map((e=>{let[t,{htmlLang:n}]=e;return(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:n},t)})),(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:"x-default"}),(0,p.jsx)("meta",{property:"og:locale",content:a(o)}),Object.values(n).filter((e=>o!==e.htmlLang)).map((e=>(0,p.jsx)("meta",{property:"og:locale:alternate",content:a(e.htmlLang)},`meta-og-${e.htmlLang}`)))]})}function E(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,g.A)(),r=function(){const{siteConfig:{url:e,baseUrl:t,trailingSlash:n}}=(0,g.A)(),{pathname:r}=(0,u.zy)();return e+(0,x.applyTrailingSlash)((0,h.A)(r),{trailingSlash:n,baseUrl:t})}(),o=t?`${n}${t}`:r;return(0,p.jsxs)(m.A,{children:[(0,p.jsx)("meta",{property:"og:url",content:o}),(0,p.jsx)("link",{rel:"canonical",href:o})]})}function C(){const{i18n:{currentLocale:e}}=(0,g.A)(),{metadata:t,image:n}=(0,b.p)();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(m.A,{children:[(0,p.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,p.jsx)("body",{className:w.w})]}),n&&(0,p.jsx)(y.be,{image:n}),(0,p.jsx)(E,{}),(0,p.jsx)(_,{}),(0,p.jsx)(S.A,{tag:k.Cy,locale:e}),(0,p.jsx)(m.A,{children:t.map(((e,t)=>(0,p.jsx)("meta",{...e},t)))})]})}const T=new Map;var A=n(6125),P=n(6988),j=n(205);function L(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=l.map((t=>{const r=t.default?.[e]??t[e];return r?.(...n)}));return()=>o.forEach((e=>e?.()))}const R=function(e){let{children:t,location:n,previousLocation:r}=e;return(0,j.A)((()=>{r!==n&&(!function(e){let{location:t,previousLocation:n}=e;if(!n)return;const r=t.pathname===n.pathname,o=t.hash===n.hash,a=t.search===n.search;if(r&&o&&!a)return;const{hash:i}=t;if(i){const e=decodeURIComponent(i.substring(1)),t=document.getElementById(e);t?.scrollIntoView()}else window.scrollTo(0,0)}({location:n,previousLocation:r}),L("onRouteDidUpdate",{previousLocation:r,location:n}))}),[r,n]),t};function N(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,d.u)(c.A,e))).flat();return Promise.all(t.map((e=>e.route.component.preload?.())))}class O extends r.Component{previousLocation;routeUpdateCleanupCb;constructor(e){super(e),this.previousLocation=null,this.routeUpdateCleanupCb=s.A.canUseDOM?L("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=L("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),N(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return(0,p.jsx)(R,{previousLocation:this.previousLocation,location:t,children:(0,p.jsx)(u.qh,{location:t,render:()=>e})})}}const D=O,M="__docusaurus-base-url-issue-banner-container",I="__docusaurus-base-url-issue-banner",F="__docusaurus-base-url-issue-banner-suggestion-container";function z(e){return`\ndocument.addEventListener('DOMContentLoaded', function maybeInsertBanner() {\n var shouldInsert = typeof window['docusaurus'] === 'undefined';\n shouldInsert && insertBanner();\n});\n\nfunction insertBanner() {\n var bannerContainer = document.createElement('div');\n bannerContainer.id = '${M}';\n var bannerHtml = ${JSON.stringify(function(e){return`\n<div id="${I}" style="border: thick solid red; background-color: rgb(255, 230, 179); margin: 20px; padding: 20px; font-size: 20px;">\n <p style="font-weight: bold; font-size: 30px;">Your Docusaurus site did not load properly.</p>\n <p>A very common reason is a wrong site <a href="https://docusaurus.io/docs/docusaurus.config.js/#baseUrl" style="font-weight: bold;">baseUrl configuration</a>.</p>\n <p>Current configured baseUrl = <span style="font-weight: bold; color: red;">${e}</span> ${"/"===e?" (default value)":""}</p>\n <p>We suggest trying baseUrl = <span id="${F}" style="font-weight: bold; color: green;"></span></p>\n</div>\n`}(e)).replace(/</g,"\\<")};\n bannerContainer.innerHTML = bannerHtml;\n document.body.prepend(bannerContainer);\n var suggestionContainer = document.getElementById('${F}');\n var actualHomePagePath = window.location.pathname;\n var suggestedBaseUrl = actualHomePagePath.substr(-1) === '/'\n ? actualHomePagePath\n : actualHomePagePath + '/';\n suggestionContainer.innerHTML = suggestedBaseUrl;\n}\n`}function B(){const{siteConfig:{baseUrl:e}}=(0,g.A)();return(0,p.jsx)(p.Fragment,{children:!s.A.canUseDOM&&(0,p.jsx)(m.A,{children:(0,p.jsx)("script",{children:z(e)})})})}function $(){const{siteConfig:{baseUrl:e,baseUrlIssueBanner:t}}=(0,g.A)(),{pathname:n}=(0,u.zy)();return t&&n===e?(0,p.jsx)(B,{}):null}function U(){const{siteConfig:{favicon:e,title:t,noIndex:n},i18n:{currentLocale:r,localeConfigs:o}}=(0,g.A)(),a=(0,h.A)(e),{htmlLang:i,direction:s}=o[r];return(0,p.jsxs)(m.A,{children:[(0,p.jsx)("html",{lang:i,dir:s}),(0,p.jsx)("title",{children:t}),(0,p.jsx)("meta",{property:"og:title",content:t}),(0,p.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),n&&(0,p.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),e&&(0,p.jsx)("link",{rel:"icon",href:a})]})}var q=n(7489),G=n(2303);function H(){const e=(0,G.A)();return(0,p.jsx)(m.A,{children:(0,p.jsx)("html",{"data-has-hydrated":e})})}const V=(0,d.v)(c.A);function W(){const e=function(e){if(T.has(e.pathname))return{...e,pathname:T.get(e.pathname)};if((0,d.u)(c.A,e.pathname).some((e=>{let{route:t}=e;return!0===t.exact})))return T.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return T.set(e.pathname,t),{...e,pathname:t}}((0,u.zy)());return(0,p.jsx)(D,{location:e,children:V})}function K(){return(0,p.jsx)(q.A,{children:(0,p.jsx)(P.l,{children:(0,p.jsxs)(A.x,{children:[(0,p.jsxs)(f,{children:[(0,p.jsx)(U,{}),(0,p.jsx)(C,{}),(0,p.jsx)($,{}),(0,p.jsx)(W,{})]}),(0,p.jsx)(H,{})]})})})}var Q=n(4054);const Y=function(e){try{return document.createElement("link").relList.supports(e)}catch{return!1}}("prefetch")?function(e){return new Promise(((t,n)=>{if("undefined"==typeof document)return void n();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=()=>n();const o=document.getElementsByTagName("head")[0]??document.getElementsByName("script")[0]?.parentNode;o?.appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var Z=n(6921);const X=new Set,J=new Set,ee=()=>navigator.connection?.effectiveType.includes("2g")||navigator.connection?.saveData,te={prefetch:e=>{if(!(e=>!ee()&&!J.has(e)&&!X.has(e))(e))return!1;X.add(e);const t=(0,d.u)(c.A,e).flatMap((e=>{return t=e.route.path,Object.entries(Q).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,Z.A)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?Y(t).catch((()=>{})):Promise.resolve()})))},preload:e=>!!(e=>!ee()&&!J.has(e))(e)&&(J.add(e),N(e))},ne=Object.freeze(te),re=Boolean(!0);if(s.A.canUseDOM){window.docusaurus=ne;const e=document.getElementById("__docusaurus"),t=(0,p.jsx)(i.vd,{children:(0,p.jsx)(a.Kd,{children:(0,p.jsx)(K,{})})}),n=(e,t)=>{console.error("Docusaurus React Root onRecoverableError:",e,t)},s=()=>{if(window.docusaurusRoot)window.docusaurusRoot.render(t);else if(re)window.docusaurusRoot=o.hydrateRoot(e,t,{onRecoverableError:n});else{const r=o.createRoot(e,{onRecoverableError:n});r.render(t),window.docusaurusRoot=r}};N(window.location.pathname).then((()=>{(0,r.startTransition)(s)}))}},6988:(e,t,n)=>{"use strict";n.d(t,{o:()=>d,l:()=>p});var r=n(6540),o=n(4784);const a=JSON.parse('{"docusaurus-plugin-content-docs":{"default":{"path":"/bpd-reference/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/bpd-reference/docs","mainDocId":"documentation/intro","docs":[{"id":"documentation/accessing-data/df.columns","path":"/bpd-reference/docs/documentation/accessing-data/df.columns","sidebar":"docsSidebar"},{"id":"documentation/accessing-data/df.get()","path":"/bpd-reference/docs/documentation/accessing-data/df.get()","sidebar":"docsSidebar"},{"id":"documentation/accessing-data/df.index","path":"/bpd-reference/docs/documentation/accessing-data/df.index","sidebar":"docsSidebar"},{"id":"documentation/accessing-data/df.shape","path":"/bpd-reference/docs/documentation/accessing-data/df.shape","sidebar":"docsSidebar"},{"id":"documentation/accessing-data/df.take()","path":"/bpd-reference/docs/documentation/accessing-data/df.take()","sidebar":"docsSidebar"},{"id":"documentation/accessing-data/index","path":"/bpd-reference/docs/documentation/accessing-data/","sidebar":"docsSidebar"},{"id":"documentation/accessing-data/ser.iloc[]","path":"/bpd-reference/docs/documentation/accessing-data/ser.iloc[]","sidebar":"docsSidebar"},{"id":"documentation/accessing-data/ser.loc[]","path":"/bpd-reference/docs/documentation/accessing-data/ser.loc[]","sidebar":"docsSidebar"},{"id":"documentation/arrays-and-numpy/arr[]","path":"/bpd-reference/docs/documentation/arrays-and-numpy/arr[]","sidebar":"docsSidebar"},{"id":"documentation/arrays-and-numpy/index","path":"/bpd-reference/docs/documentation/arrays-and-numpy/","sidebar":"docsSidebar"},{"id":"documentation/arrays-and-numpy/np.append()","path":"/bpd-reference/docs/documentation/arrays-and-numpy/np.append()","sidebar":"docsSidebar"},{"id":"documentation/arrays-and-numpy/np.arange()","path":"/bpd-reference/docs/documentation/arrays-and-numpy/np.arange()","sidebar":"docsSidebar"},{"id":"documentation/arrays-and-numpy/np.count_nonzero()","path":"/bpd-reference/docs/documentation/arrays-and-numpy/np.count_nonzero()","sidebar":"docsSidebar"},{"id":"documentation/arrays-and-numpy/np.percentile()","path":"/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()","sidebar":"docsSidebar"},{"id":"documentation/arrays-and-numpy/np.round()","path":"/bpd-reference/docs/documentation/arrays-and-numpy/np.round()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/bpd.DataFrame()","path":"/bpd-reference/docs/documentation/building-organizing/bpd.DataFrame()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/bpd.read_csv()","path":"/bpd-reference/docs/documentation/building-organizing/bpd.read_csv()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/df.assign()","path":"/bpd-reference/docs/documentation/building-organizing/df.assign()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/df.drop()","path":"/bpd-reference/docs/documentation/building-organizing/df.drop()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/df.merge()","path":"/bpd-reference/docs/documentation/building-organizing/df.merge()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/df.reset_index()","path":"/bpd-reference/docs/documentation/building-organizing/df.reset_index()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/df.set_index()","path":"/bpd-reference/docs/documentation/building-organizing/df.set_index()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/df.sort_values()","path":"/bpd-reference/docs/documentation/building-organizing/df.sort_values()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/index","path":"/bpd-reference/docs/documentation/building-organizing/","sidebar":"docsSidebar"},{"id":"documentation/data format conversion/index","path":"/bpd-reference/docs/documentation/data format conversion/","sidebar":"docsSidebar"},{"id":"documentation/data format conversion/list()","path":"/bpd-reference/docs/documentation/data format conversion/list()","sidebar":"docsSidebar"},{"id":"documentation/data format conversion/np.array()","path":"/bpd-reference/docs/documentation/data format conversion/np.array()","sidebar":"docsSidebar"},{"id":"documentation/for-loops/for-loops","path":"/bpd-reference/docs/documentation/for-loops/","sidebar":"docsSidebar"},{"id":"documentation/Functions/Applying Functions","path":"/bpd-reference/docs/documentation/Functions/Applying Functions","sidebar":"docsSidebar"},{"id":"documentation/Functions/Writing Functions","path":"/bpd-reference/docs/documentation/Functions/Writing Functions","sidebar":"docsSidebar"},{"id":"documentation/Grouping/aggregation/count()","path":"/bpd-reference/docs/documentation/Grouping/aggregation/count()","sidebar":"docsSidebar"},{"id":"documentation/Grouping/aggregation/max()","path":"/bpd-reference/docs/documentation/Grouping/aggregation/max()","sidebar":"docsSidebar"},{"id":"documentation/Grouping/aggregation/mean()","path":"/bpd-reference/docs/documentation/Grouping/aggregation/mean()","sidebar":"docsSidebar"},{"id":"documentation/Grouping/aggregation/median()","path":"/bpd-reference/docs/documentation/Grouping/aggregation/median()","sidebar":"docsSidebar"},{"id":"documentation/Grouping/aggregation/min()","path":"/bpd-reference/docs/documentation/Grouping/aggregation/min()","sidebar":"docsSidebar"},{"id":"documentation/Grouping/aggregation/sum()","path":"/bpd-reference/docs/documentation/Grouping/aggregation/sum()","sidebar":"docsSidebar"},{"id":"documentation/Grouping/groupby","path":"/bpd-reference/docs/documentation/Grouping/groupby","sidebar":"docsSidebar"},{"id":"documentation/if-statements/if-elif-else","path":"/bpd-reference/docs/documentation/if-statements/if-elif-else","sidebar":"docsSidebar"},{"id":"documentation/if-statements/in \u2044 not in","path":"/bpd-reference/docs/documentation/if-statements/in \u2044 not in","sidebar":"docsSidebar"},{"id":"documentation/if-statements/Logical Operators","path":"/bpd-reference/docs/documentation/if-statements/Logical Operators","sidebar":"docsSidebar"},{"id":"documentation/intro","path":"/bpd-reference/docs/documentation/intro","sidebar":"docsSidebar"},{"id":"documentation/plotting/Bar Plot","path":"/bpd-reference/docs/documentation/plotting/Bar Plot","sidebar":"docsSidebar"},{"id":"documentation/plotting/Histogram","path":"/bpd-reference/docs/documentation/plotting/Histogram","sidebar":"docsSidebar"},{"id":"documentation/plotting/index","path":"/bpd-reference/docs/documentation/plotting/","sidebar":"docsSidebar"},{"id":"documentation/plotting/Line Plot","path":"/bpd-reference/docs/documentation/plotting/Line Plot","sidebar":"docsSidebar"},{"id":"documentation/plotting/Scatter Plot","path":"/bpd-reference/docs/documentation/plotting/Scatter Plot","sidebar":"docsSidebar"},{"id":"documentation/querying/df[]","path":"/bpd-reference/docs/documentation/querying/df[]","sidebar":"docsSidebar"},{"id":"documentation/series-methods/index","path":"/bpd-reference/docs/documentation/series-methods/","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.count()","path":"/bpd-reference/docs/documentation/series-methods/ser.count()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.max()","path":"/bpd-reference/docs/documentation/series-methods/ser.max()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.mean()","path":"/bpd-reference/docs/documentation/series-methods/ser.mean()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.median()","path":"/bpd-reference/docs/documentation/series-methods/ser.median()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.min()","path":"/bpd-reference/docs/documentation/series-methods/ser.min()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.capitalize()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.contains()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.contains()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.len()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.len()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.lower()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.lower()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.replace()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.replace()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.split()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.split()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.strip()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.strip()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.title()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.title()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.upper()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.upper()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.sum()","path":"/bpd-reference/docs/documentation/series-methods/ser.sum()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.unique()","path":"/bpd-reference/docs/documentation/series-methods/ser.unique()","sidebar":"docsSidebar"},{"id":"statistical-inference/bootstrapping","path":"/bpd-reference/docs/statistical-inference/bootstrapping","sidebar":"statsSidebar"},{"id":"statistical-inference/central_limit_theorem","path":"/bpd-reference/docs/statistical-inference/central_limit_theorem","sidebar":"statsSidebar"},{"id":"statistical-inference/concept check/bootstrapping_vs_the_CLT","path":"/bpd-reference/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT","sidebar":"statsSidebar"},{"id":"statistical-inference/concept check/hypothesis_vs_permutation","path":"/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation","sidebar":"statsSidebar"},{"id":"statistical-inference/hypothesis_test","path":"/bpd-reference/docs/statistical-inference/hypothesis_test","sidebar":"statsSidebar"},{"id":"statistical-inference/intro","path":"/bpd-reference/docs/statistical-inference/intro","sidebar":"statsSidebar"},{"id":"statistical-inference/null_and_alt","path":"/bpd-reference/docs/statistical-inference/null_and_alt","sidebar":"statsSidebar"},{"id":"statistical-inference/obs_and_test_stats","path":"/bpd-reference/docs/statistical-inference/obs_and_test_stats","sidebar":"statsSidebar"},{"id":"statistical-inference/p_value","path":"/bpd-reference/docs/statistical-inference/p_value","sidebar":"statsSidebar"},{"id":"statistical-inference/parameters-and-statistics","path":"/bpd-reference/docs/statistical-inference/parameters-and-statistics","sidebar":"statsSidebar"},{"id":"statistical-inference/permutation_test","path":"/bpd-reference/docs/statistical-inference/permutation_test","sidebar":"statsSidebar"},{"id":"statistical-inference/random sampling/df.sample()","path":"/bpd-reference/docs/statistical-inference/random sampling/df.sample()","sidebar":"statsSidebar"},{"id":"statistical-inference/random sampling/np.random.choice()","path":"/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()","sidebar":"statsSidebar"},{"id":"statistical-inference/random sampling/np.random.multinomial()","path":"/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()","sidebar":"statsSidebar"},{"id":"statistical-inference/random sampling/np.random.permutation()","path":"/bpd-reference/docs/statistical-inference/random sampling/np.random.permutation()","sidebar":"statsSidebar"},{"id":"statistical-inference/random sampling/sampling","path":"/bpd-reference/docs/statistical-inference/random sampling/sampling","sidebar":"statsSidebar"},{"id":"statistical-inference/spread_of_a_distribution","path":"/bpd-reference/docs/statistical-inference/spread_of_a_distribution","sidebar":"statsSidebar"},{"id":"statistical-inference/standard_normal_distribution","path":"/bpd-reference/docs/statistical-inference/standard_normal_distribution","sidebar":"statsSidebar"},{"id":"statistical-inference/standard_units","path":"/bpd-reference/docs/statistical-inference/standard_units","sidebar":"statsSidebar"},{"id":"/category/if-statements","path":"/bpd-reference/docs/category/if-statements","sidebar":"docsSidebar"},{"id":"/category/querying","path":"/bpd-reference/docs/category/querying","sidebar":"docsSidebar"}],"draftIds":[],"sidebars":{"docsSidebar":{"link":{"path":"/bpd-reference/docs/documentation/intro","label":"Intro"}},"statsSidebar":{"link":{"path":"/bpd-reference/docs/statistical-inference/intro","label":"Intro"}}}}],"breadcrumbs":true}},"docusaurus-plugin-google-gtag":{"default":{"trackingID":["G-KNXVEML00C"],"anonymizeIP":true,"id":"default"}}}'),i=JSON.parse('{"defaultLocale":"en","locales":["en"],"path":"i18n","currentLocale":"en","localeConfigs":{"en":{"label":"English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"}}}');var s=n(2654);const l=JSON.parse('{"docusaurusVersion":"3.3.2","siteVersion":"0.0.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"3.3.2"},"docusaurus-plugin-content-blog":{"type":"package","name":"@docusaurus/plugin-content-blog","version":"3.3.2"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"3.3.2"},"docusaurus-plugin-google-gtag":{"type":"package","name":"@docusaurus/plugin-google-gtag","version":"3.3.2"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"3.3.2"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"3.3.2"},"docusaurus-theme-search-algolia":{"type":"package","name":"@docusaurus/theme-search-algolia","version":"3.3.2"},"docusaurus-theme-live-codeblock":{"type":"package","name":"@docusaurus/theme-live-codeblock","version":"3.3.2"}}}');var c=n(4848);const u={siteConfig:o.default,siteMetadata:l,globalData:a,i18n:i,codeTranslations:s},d=r.createContext(u);function p(e){let{children:t}=e;return(0,c.jsx)(d.Provider,{value:u,children:t})}},7489:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(6540),o=n(8193),a=n(5260),i=n(440),s=n(4561),l=n(3102),c=n(4848);function u(e){let{error:t,tryAgain:n}=e;return(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"},children:[(0,c.jsx)("h1",{style:{fontSize:"3rem"},children:"This page crashed"}),(0,c.jsx)("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"},children:"Try again"}),(0,c.jsx)(d,{error:t})]})}function d(e){let{error:t}=e;const n=(0,i.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,c.jsx)("p",{style:{whiteSpace:"pre-wrap"},children:n})}function p(e){let{children:t}=e;return(0,c.jsx)(l.W,{value:{plugin:{name:"docusaurus-core-error-boundary",id:"default"}},children:t})}function f(e){let{error:t,tryAgain:n}=e;return(0,c.jsx)(p,{children:(0,c.jsxs)(g,{fallback:()=>(0,c.jsx)(u,{error:t,tryAgain:n}),children:[(0,c.jsx)(a.A,{children:(0,c.jsx)("title",{children:"Page Error"})}),(0,c.jsx)(s.A,{children:(0,c.jsx)(u,{error:t,tryAgain:n})})]})})}const m=e=>(0,c.jsx)(f,{...e});class g extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){o.A.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??m)(e)}return e??null}}},8193:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,o={canUseDOM:r,canUseEventListeners:r&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:r&&"IntersectionObserver"in window,canUseViewport:r&&"screen"in window}},5260:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(6540);var r=n(545),o=n(4848);function a(e){return(0,o.jsx)(r.mg,{...e})}},8774:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(6540),o=n(4625),a=n(440),i=n(4586),s=n(6654),l=n(8193),c=n(3427),u=n(6025),d=n(4848);function p(e,t){let{isNavLink:n,to:p,href:f,activeClassName:m,isActive:g,"data-noBrokenLinkCheck":h,autoAddBaseUrl:b=!0,...y}=e;const{siteConfig:{trailingSlash:v,baseUrl:w}}=(0,i.A)(),{withBaseUrl:k}=(0,u.h)(),x=(0,c.A)(),S=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(()=>S.current));const _=p||f;const E=(0,s.A)(_),C=_?.replace("pathname://","");let T=void 0!==C?(A=C,b&&(e=>e.startsWith("/"))(A)?k(A):A):void 0;var A;T&&E&&(T=(0,a.applyTrailingSlash)(T,{trailingSlash:v,baseUrl:w}));const P=(0,r.useRef)(!1),j=n?o.k2:o.N_,L=l.A.canUseIntersectionObserver,R=(0,r.useRef)(),N=()=>{P.current||null==T||(window.docusaurus.preload(T),P.current=!0)};(0,r.useEffect)((()=>(!L&&E&&null!=T&&window.docusaurus.prefetch(T),()=>{L&&R.current&&R.current.disconnect()})),[R,T,L,E]);const O=T?.startsWith("#")??!1,D=!y.target||"_self"===y.target,M=!T||!E||!D||O;return h||!O&&M||x.collectLink(T),y.id&&x.collectAnchor(y.id),M?(0,d.jsx)("a",{ref:S,href:T,..._&&!E&&{target:"_blank",rel:"noopener noreferrer"},...y}):(0,d.jsx)(j,{...y,onMouseEnter:N,onTouchStart:N,innerRef:e=>{S.current=e,L&&e&&E&&(R.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(R.current.unobserve(e),R.current.disconnect(),null!=T&&window.docusaurus.prefetch(T))}))})),R.current.observe(e))},to:T,...n&&{isActive:g,activeClassName:m}})}const f=r.forwardRef(p)},1312:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,T:()=>l});var r=n(6540),o=n(4848);function a(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=t?.[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var i=n(2654);function s(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return i[t??n]??n??t}function l(e,t){let{message:n,id:r}=e;return a(s({message:n,id:r}),t)}function c(e){let{children:t,id:n,values:r}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal <Translate> children",t),new Error("The Docusaurus <Translate> component only accept simple string values");const i=s({message:t,id:n});return(0,o.jsx)(o.Fragment,{children:a(i,r)})}},7065:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const r="default"},6654:(e,t,n)=>{"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function o(e){return void 0!==e&&!r(e)}n.d(t,{A:()=>o,z:()=>r})},6025:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,h:()=>i});var r=n(6540),o=n(4586),a=n(6654);function i(){const{siteConfig:{baseUrl:e,url:t}}=(0,o.A)(),n=(0,r.useCallback)(((n,r)=>function(e,t,n,r){let{forcePrependBaseUrl:o=!1,absolute:i=!1}=void 0===r?{}:r;if(!n||n.startsWith("#")||(0,a.z)(n))return n;if(o)return t+n.replace(/^\//,"");if(n===t.replace(/\/$/,""))return t;const s=n.startsWith(t)?n:t+n.replace(/^\//,"");return i?e+s:s}(t,e,n,r)),[t,e]);return{withBaseUrl:n}}function s(e,t){void 0===t&&(t={});const{withBaseUrl:n}=i();return n(e,t)}},3427:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6540);n(4848);const o=r.createContext({collectAnchor:()=>{},collectLink:()=>{}}),a=()=>(0,r.useContext)(o);function i(){return a()}},4586:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6540),o=n(6988);function a(){return(0,r.useContext)(o.o)}},2303:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6540),o=n(6125);function a(){return(0,r.useContext)(o.o)}},205:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);const o=n(8193).A.canUseDOM?r.useLayoutEffect:r.useEffect},6803:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6540),o=n(3102);function a(){const e=r.useContext(o.o);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}},6921:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;function o(e){const t={};return function e(n,o){Object.entries(n).forEach((n=>{let[a,i]=n;const s=o?`${o}.${a}`:a;r(i)?e(i,s):t[s]=i}))}(e),t}},3102:(e,t,n)=>{"use strict";n.d(t,{W:()=>i,o:()=>a});var r=n(6540),o=n(4848);const a=r.createContext(null);function i(e){let{children:t,value:n}=e;const i=r.useContext(a),s=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...n?.data};return{plugin:t.plugin,data:r}}({parent:i,value:n})),[i,n]);return(0,o.jsx)(a.Provider,{value:s,children:t})}},4070:(e,t,n)=>{"use strict";n.d(t,{zK:()=>b,vT:()=>f,gk:()=>m,Gy:()=>d,HW:()=>y,ht:()=>p,r7:()=>h,jh:()=>g});var r=n(6347),o=n(4586),a=n(7065);function i(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,o.A)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}const s=e=>e.versions.find((e=>e.isLast));function l(e,t){const n=s(e);return[...e.versions.filter((e=>e!==n)),n].find((e=>!!(0,r.B6)(t,{path:e.path,exact:!1,strict:!1})))}function c(e,t){const n=l(e,t),o=n?.docs.find((e=>!!(0,r.B6)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:o,alternateDocVersions:o?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(o.id):{}}}const u={},d=()=>i("docusaurus-plugin-content-docs")??u,p=e=>{try{return function(e,t,n){void 0===t&&(t=a.W),void 0===n&&(n={});const r=i(e),o=r?.[t];if(!o&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return o}("docusaurus-plugin-content-docs",e,{failfast:!0})}catch(t){throw new Error("You are using a feature of the Docusaurus docs plugin, but this plugin does not seem to be enabled"+("Default"===e?"":` (pluginId=${e}`),{cause:t})}};function f(e){void 0===e&&(e={});const t=d(),{pathname:n}=(0,r.zy)();return function(e,t,n){void 0===n&&(n={});const o=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.B6)(t,{path:n.path,exact:!1,strict:!1})})),a=o?{pluginId:o[0],pluginData:o[1]}:void 0;if(!a&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return a}(t,n,e)}function m(e){void 0===e&&(e={});const t=f(e),{pathname:n}=(0,r.zy)();if(!t)return;return{activePlugin:t,activeVersion:l(t.pluginData,n)}}function g(e){return p(e).versions}function h(e){const t=p(e);return s(t)}function b(e){const t=p(e),{pathname:n}=(0,r.zy)();return c(t,n)}function y(e){const t=p(e),{pathname:n}=(0,r.zy)();return function(e,t){const n=s(e);return{latestDocSuggestion:c(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},296:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={onRouteDidUpdate(e){let{location:t,previousLocation:n}=e;!n||t.pathname===n.pathname&&t.search===n.search&&t.hash===n.hash||setTimeout((()=>{window.gtag("set","page_path",t.pathname+t.search+t.hash),window.gtag("event","page_view")}))}}},6294:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(5947),o=n.n(r);o().configure({showSpinner:!1});const a={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{o().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){o().done()}}},6134:(e,t,n)=>{"use strict";n.r(t);var r=n(1765),o=n(4784);!function(e){const{themeConfig:{prism:t}}=o.default,{additionalLanguages:r}=t;globalThis.Prism=e,r.forEach((e=>{"php"===e&&n(9700),n(8692)(`./prism-${e}`)})),delete globalThis.Prism}(r.My)},1107:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});n(6540);var r=n(4164),o=n(1312),a=n(6342),i=n(8774),s=n(3427);const l={anchorWithStickyNavbar:"anchorWithStickyNavbar_LWe7",anchorWithHideOnScrollNavbar:"anchorWithHideOnScrollNavbar_WYt5"};var c=n(4848);function u(e){let{as:t,id:n,...u}=e;const d=(0,s.A)(),{navbar:{hideOnScroll:p}}=(0,a.p)();if("h1"===t||!n)return(0,c.jsx)(t,{...u,id:void 0});d.collectAnchor(n);const f=(0,o.T)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}",description:"Title for link to heading"},{heading:"string"==typeof u.children?u.children:n});return(0,c.jsxs)(t,{...u,className:(0,r.A)("anchor",p?l.anchorWithHideOnScrollNavbar:l.anchorWithStickyNavbar,u.className),id:n,children:[u.children,(0,c.jsx)(i.A,{className:"hash-link",to:`#${n}`,"aria-label":f,title:f,children:"\u200b"})]})}},3186:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(6540);const r={iconExternalLink:"iconExternalLink_nPIU"};var o=n(4848);function a(e){let{width:t=13.5,height:n=13.5}=e;return(0,o.jsx)("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:r.iconExternalLink,children:(0,o.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})}},4561:(e,t,n)=>{"use strict";n.d(t,{A:()=>Pt});var r=n(6540),o=n(4164),a=n(7489),i=n(5500),s=n(6347),l=n(1312),c=n(5062),u=n(4848);const d="__docusaurus_skipToContent_fallback";function p(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function f(){const e=(0,r.useRef)(null),{action:t}=(0,s.W6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.getElementById(d);t&&p(t)}),[]);return(0,c.$)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&p(e.current)})),{containerRef:e,onClick:n}}const m=(0,l.T)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function g(e){const t=e.children??m,{containerRef:n,onClick:r}=f();return(0,u.jsx)("div",{ref:n,role:"region","aria-label":m,children:(0,u.jsx)("a",{...e,href:`#${d}`,onClick:r,children:t})})}var h=n(7559),b=n(4090);const y={skipToContent:"skipToContent_fXgn"};function v(){return(0,u.jsx)(g,{className:y.skipToContent})}var w=n(6342),k=n(5041);function x(e){let{width:t=21,height:n=21,color:r="currentColor",strokeWidth:o=1.2,className:a,...i}=e;return(0,u.jsx)("svg",{viewBox:"0 0 15 15",width:t,height:n,...i,children:(0,u.jsx)("g",{stroke:r,strokeWidth:o,children:(0,u.jsx)("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})})})}const S={closeButton:"closeButton_CVFx"};function _(e){return(0,u.jsx)("button",{type:"button","aria-label":(0,l.T)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"}),...e,className:(0,o.A)("clean-btn close",S.closeButton,e.className),children:(0,u.jsx)(x,{width:14,height:14,strokeWidth:3.1})})}const E={content:"content_knG7"};function C(e){const{announcementBar:t}=(0,w.p)(),{content:n}=t;return(0,u.jsx)("div",{...e,className:(0,o.A)(E.content,e.className),dangerouslySetInnerHTML:{__html:n}})}const T={announcementBar:"announcementBar_mb4j",announcementBarPlaceholder:"announcementBarPlaceholder_vyr4",announcementBarClose:"announcementBarClose_gvF7",announcementBarContent:"announcementBarContent_xLdY"};function A(){const{announcementBar:e}=(0,w.p)(),{isActive:t,close:n}=(0,k.Mj)();if(!t)return null;const{backgroundColor:r,textColor:o,isCloseable:a}=e;return(0,u.jsxs)("div",{className:T.announcementBar,style:{backgroundColor:r,color:o},role:"banner",children:[a&&(0,u.jsx)("div",{className:T.announcementBarPlaceholder}),(0,u.jsx)(C,{className:T.announcementBarContent}),a&&(0,u.jsx)(_,{onClick:n,className:T.announcementBarClose})]})}var P=n(2069),j=n(3104);var L=n(9532),R=n(5600);const N=r.createContext(null);function O(e){let{children:t}=e;const n=function(){const e=(0,P.M)(),t=(0,R.YL)(),[n,o]=(0,r.useState)(!1),a=null!==t.component,i=(0,L.ZC)(a);return(0,r.useEffect)((()=>{a&&!i&&o(!0)}),[a,i]),(0,r.useEffect)((()=>{a?e.shown||o(!0):o(!1)}),[e.shown,a]),(0,r.useMemo)((()=>[n,o]),[n])}();return(0,u.jsx)(N.Provider,{value:n,children:t})}function D(e){if(e.component){const t=e.component;return(0,u.jsx)(t,{...e.props})}}function M(){const e=(0,r.useContext)(N);if(!e)throw new L.dV("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,o=(0,r.useCallback)((()=>n(!1)),[n]),a=(0,R.YL)();return(0,r.useMemo)((()=>({shown:t,hide:o,content:D(a)})),[o,a,t])}function I(e){let{header:t,primaryMenu:n,secondaryMenu:r}=e;const{shown:a}=M();return(0,u.jsxs)("div",{className:"navbar-sidebar",children:[t,(0,u.jsxs)("div",{className:(0,o.A)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":a}),children:[(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:n}),(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:r})]})]})}var F=n(5293),z=n(2303);function B(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})})}function $(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})})}const U={toggle:"toggle_vylO",toggleButton:"toggleButton_gllP",darkToggleIcon:"darkToggleIcon_wfgR",lightToggleIcon:"lightToggleIcon_pyhR",toggleButtonDisabled:"toggleButtonDisabled_aARS"};function q(e){let{className:t,buttonClassName:n,value:r,onChange:a}=e;const i=(0,z.A)(),s=(0,l.T)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===r?(0,l.T)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,l.T)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return(0,u.jsx)("div",{className:(0,o.A)(U.toggle,t),children:(0,u.jsxs)("button",{className:(0,o.A)("clean-btn",U.toggleButton,!i&&U.toggleButtonDisabled,n),type:"button",onClick:()=>a("dark"===r?"light":"dark"),disabled:!i,title:s,"aria-label":s,"aria-live":"polite",children:[(0,u.jsx)(B,{className:(0,o.A)(U.toggleIcon,U.lightToggleIcon)}),(0,u.jsx)($,{className:(0,o.A)(U.toggleIcon,U.darkToggleIcon)})]})})}const G=r.memo(q),H={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_X3D1"};function V(e){let{className:t}=e;const n=(0,w.p)().navbar.style,r=(0,w.p)().colorMode.disableSwitch,{colorMode:o,setColorMode:a}=(0,F.G)();return r?null:(0,u.jsx)(G,{className:t,buttonClassName:"dark"===n?H.darkNavbarColorModeToggle:void 0,value:o,onChange:a})}var W=n(3465);function K(){return(0,u.jsx)(W.A,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function Q(){const e=(0,P.M)();return(0,u.jsx)("button",{type:"button","aria-label":(0,l.T)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle(),children:(0,u.jsx)(x,{color:"var(--ifm-color-emphasis-600)"})})}function Y(){return(0,u.jsxs)("div",{className:"navbar-sidebar__brand",children:[(0,u.jsx)(K,{}),(0,u.jsx)(V,{className:"margin-right--md"}),(0,u.jsx)(Q,{})]})}var Z=n(8774),X=n(6025),J=n(6654),ee=n(1252),te=n(3186);function ne(e){let{activeBasePath:t,activeBaseRegex:n,to:r,href:o,label:a,html:i,isDropdownLink:s,prependBaseUrlToHref:l,...c}=e;const d=(0,X.A)(r),p=(0,X.A)(t),f=(0,X.A)(o,{forcePrependBaseUrl:!0}),m=a&&o&&!(0,J.A)(o),g=i?{dangerouslySetInnerHTML:{__html:i}}:{children:(0,u.jsxs)(u.Fragment,{children:[a,m&&(0,u.jsx)(te.A,{...s&&{width:12,height:12}})]})};return o?(0,u.jsx)(Z.A,{href:l?f:o,...c,...g}):(0,u.jsx)(Z.A,{to:d,isNavLink:!0,...(t||n)&&{isActive:(e,t)=>n?(0,ee.G)(n,t.pathname):t.pathname.startsWith(p)},...c,...g})}function re(e){let{className:t,isDropdownItem:n=!1,...r}=e;const a=(0,u.jsx)(ne,{className:(0,o.A)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n,...r});return n?(0,u.jsx)("li",{children:a}):a}function oe(e){let{className:t,isDropdownItem:n,...r}=e;return(0,u.jsx)("li",{className:"menu__list-item",children:(0,u.jsx)(ne,{className:(0,o.A)("menu__link",t),...r})})}function ae(e){let{mobile:t=!1,position:n,...r}=e;const o=t?oe:re;return(0,u.jsx)(o,{...r,activeClassName:r.activeClassName??(t?"menu__link--active":"navbar__link--active")})}var ie=n(1422),se=n(9169),le=n(4586);const ce={dropdownNavbarItemMobile:"dropdownNavbarItemMobile_S0Fm"};function ue(e,t){return e.some((e=>function(e,t){return!!(0,se.ys)(e.to,t)||!!(0,ee.G)(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function de(e){let{items:t,position:n,className:a,onClick:i,...s}=e;const l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[l]),(0,u.jsxs)("div",{ref:l,className:(0,o.A)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":c}),children:[(0,u.jsx)(ne,{"aria-haspopup":"true","aria-expanded":c,role:"button",href:s.to?void 0:"#",className:(0,o.A)("navbar__link",a),...s,onClick:s.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d(!c))},children:s.children??s.label}),(0,u.jsx)("ul",{className:"dropdown__menu",children:t.map(((e,t)=>(0,r.createElement)(He,{isDropdownItem:!0,activeClassName:"dropdown__link--active",...e,key:t})))})]})}function pe(e){let{items:t,className:n,position:a,onClick:i,...l}=e;const c=function(){const{siteConfig:{baseUrl:e}}=(0,le.A)(),{pathname:t}=(0,s.zy)();return t.replace(e,"/")}(),d=ue(t,c),{collapsed:p,toggleCollapsed:f,setCollapsed:m}=(0,ie.u)({initialState:()=>!d});return(0,r.useEffect)((()=>{d&&m(!d)}),[c,d,m]),(0,u.jsxs)("li",{className:(0,o.A)("menu__list-item",{"menu__list-item--collapsed":p}),children:[(0,u.jsx)(ne,{role:"button",className:(0,o.A)(ce.dropdownNavbarItemMobile,"menu__link menu__link--sublist menu__link--sublist-caret",n),...l,onClick:e=>{e.preventDefault(),f()},children:l.children??l.label}),(0,u.jsx)(ie.N,{lazy:!0,as:"ul",className:"menu__list",collapsed:p,children:t.map(((e,t)=>(0,r.createElement)(He,{mobile:!0,isDropdownItem:!0,onClick:i,activeClassName:"menu__link--active",...e,key:t})))})]})}function fe(e){let{mobile:t=!1,...n}=e;const r=t?pe:de;return(0,u.jsx)(r,{...n})}var me=n(2131);function ge(e){let{width:t=20,height:n=20,...r}=e;return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0,...r,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"})})}const he="iconLanguage_nlXk";var be=n(961);function ye(){return r.createElement("svg",{width:"15",height:"15",className:"DocSearch-Control-Key-Icon"},r.createElement("path",{d:"M4.505 4.496h2M5.505 5.496v5M8.216 4.496l.055 5.993M10 7.5c.333.333.5.667.5 1v2M12.326 4.5v5.996M8.384 4.496c1.674 0 2.116 0 2.116 1.5s-.442 1.5-2.116 1.5M3.205 9.303c-.09.448-.277 1.21-1.241 1.203C1 10.5.5 9.513.5 8V7c0-1.57.5-2.5 1.464-2.494.964.006 1.134.598 1.24 1.342M12.553 10.5h1.953",strokeWidth:"1.2",stroke:"currentColor",fill:"none",strokeLinecap:"square"}))}var ve=n(9188),we=["translations"];function ke(){return ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(this,arguments)}function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Se(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ee="Ctrl";var Ce=r.forwardRef((function(e,t){var n=e.translations,o=void 0===n?{}:n,a=_e(e,we),i=o.buttonText,s=void 0===i?"Search":i,l=o.buttonAriaLabel,c=void 0===l?"Search":l,u=xe((0,r.useState)(null),2),d=u[0],p=u[1];return(0,r.useEffect)((function(){"undefined"!=typeof navigator&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?p("\u2318"):p(Ee))}),[]),r.createElement("button",ke({type:"button",className:"DocSearch DocSearch-Button","aria-label":c},a,{ref:t}),r.createElement("span",{className:"DocSearch-Button-Container"},r.createElement(ve.W,null),r.createElement("span",{className:"DocSearch-Button-Placeholder"},s)),r.createElement("span",{className:"DocSearch-Button-Keys"},null!==d&&r.createElement(r.Fragment,null,r.createElement(Te,{reactsToKey:d===Ee?Ee:"Meta"},d===Ee?r.createElement(ye,null):d),r.createElement(Te,{reactsToKey:"k"},"K"))))}));function Te(e){var t=e.reactsToKey,n=e.children,o=xe((0,r.useState)(!1),2),a=o[0],i=o[1];return(0,r.useEffect)((function(){if(t)return window.addEventListener("keydown",e),window.addEventListener("keyup",n),function(){window.removeEventListener("keydown",e),window.removeEventListener("keyup",n)};function e(e){e.key===t&&i(!0)}function n(e){e.key!==t&&"Meta"!==e.key||i(!1)}}),[t]),r.createElement("kbd",{className:a?"DocSearch-Button-Key DocSearch-Button-Key--pressed":"DocSearch-Button-Key"},n)}var Ae=n(5260),Pe=n(4255),je=n(1062),Le=n(2967);const Re={button:{buttonText:(0,l.T)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"}),buttonAriaLabel:(0,l.T)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"})},modal:{searchBox:{resetButtonTitle:(0,l.T)({id:"theme.SearchModal.searchBox.resetButtonTitle",message:"Clear the query",description:"The label and ARIA label for search box reset button"}),resetButtonAriaLabel:(0,l.T)({id:"theme.SearchModal.searchBox.resetButtonTitle",message:"Clear the query",description:"The label and ARIA label for search box reset button"}),cancelButtonText:(0,l.T)({id:"theme.SearchModal.searchBox.cancelButtonText",message:"Cancel",description:"The label and ARIA label for search box cancel button"}),cancelButtonAriaLabel:(0,l.T)({id:"theme.SearchModal.searchBox.cancelButtonText",message:"Cancel",description:"The label and ARIA label for search box cancel button"})},startScreen:{recentSearchesTitle:(0,l.T)({id:"theme.SearchModal.startScreen.recentSearchesTitle",message:"Recent",description:"The title for recent searches"}),noRecentSearchesText:(0,l.T)({id:"theme.SearchModal.startScreen.noRecentSearchesText",message:"No recent searches",description:"The text when no recent searches"}),saveRecentSearchButtonTitle:(0,l.T)({id:"theme.SearchModal.startScreen.saveRecentSearchButtonTitle",message:"Save this search",description:"The label for save recent search button"}),removeRecentSearchButtonTitle:(0,l.T)({id:"theme.SearchModal.startScreen.removeRecentSearchButtonTitle",message:"Remove this search from history",description:"The label for remove recent search button"}),favoriteSearchesTitle:(0,l.T)({id:"theme.SearchModal.startScreen.favoriteSearchesTitle",message:"Favorite",description:"The title for favorite searches"}),removeFavoriteSearchButtonTitle:(0,l.T)({id:"theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle",message:"Remove this search from favorites",description:"The label for remove favorite search button"})},errorScreen:{titleText:(0,l.T)({id:"theme.SearchModal.errorScreen.titleText",message:"Unable to fetch results",description:"The title for error screen of search modal"}),helpText:(0,l.T)({id:"theme.SearchModal.errorScreen.helpText",message:"You might want to check your network connection.",description:"The help text for error screen of search modal"})},footer:{selectText:(0,l.T)({id:"theme.SearchModal.footer.selectText",message:"to select",description:"The explanatory text of the action for the enter key"}),selectKeyAriaLabel:(0,l.T)({id:"theme.SearchModal.footer.selectKeyAriaLabel",message:"Enter key",description:"The ARIA label for the Enter key button that makes the selection"}),navigateText:(0,l.T)({id:"theme.SearchModal.footer.navigateText",message:"to navigate",description:"The explanatory text of the action for the Arrow up and Arrow down key"}),navigateUpKeyAriaLabel:(0,l.T)({id:"theme.SearchModal.footer.navigateUpKeyAriaLabel",message:"Arrow up",description:"The ARIA label for the Arrow up key button that makes the navigation"}),navigateDownKeyAriaLabel:(0,l.T)({id:"theme.SearchModal.footer.navigateDownKeyAriaLabel",message:"Arrow down",description:"The ARIA label for the Arrow down key button that makes the navigation"}),closeText:(0,l.T)({id:"theme.SearchModal.footer.closeText",message:"to close",description:"The explanatory text of the action for Escape key"}),closeKeyAriaLabel:(0,l.T)({id:"theme.SearchModal.footer.closeKeyAriaLabel",message:"Escape key",description:"The ARIA label for the Escape key button that close the modal"}),searchByText:(0,l.T)({id:"theme.SearchModal.footer.searchByText",message:"Search by",description:"The text explain that the search is making by Algolia"})},noResultsScreen:{noResultsText:(0,l.T)({id:"theme.SearchModal.noResultsScreen.noResultsText",message:"No results for",description:"The text explains that there are no results for the following search"}),suggestedQueryText:(0,l.T)({id:"theme.SearchModal.noResultsScreen.suggestedQueryText",message:"Try searching for",description:"The text for the suggested query when no results are found for the following search"}),reportMissingResultsText:(0,l.T)({id:"theme.SearchModal.noResultsScreen.reportMissingResultsText",message:"Believe this query should return results?",description:"The text for the question where the user thinks there are missing results"}),reportMissingResultsLinkText:(0,l.T)({id:"theme.SearchModal.noResultsScreen.reportMissingResultsLinkText",message:"Let us know.",description:"The text for the link to report missing results"})}},placeholder:(0,l.T)({id:"theme.SearchModal.placeholder",message:"Search docs",description:"The placeholder of the input of the DocSearch pop-up modal"})};let Ne=null;function Oe(e){let{hit:t,children:n}=e;return(0,u.jsx)(Z.A,{to:t.url,children:n})}function De(e){let{state:t,onClose:n}=e;const r=(0,Pe.w)();return(0,u.jsx)(Z.A,{to:r(t.query),onClick:n,children:(0,u.jsx)(l.A,{id:"theme.SearchBar.seeAll",values:{count:t.context.nbHits},children:"See all {count} results"})})}function Me(e){let{contextualSearch:t,externalUrlRegex:o,...a}=e;const{siteMetadata:i}=(0,le.A)(),l=(0,je.C)(),c=function(){const{locale:e,tags:t}=(0,Le.af)();return[`language:${e}`,t.map((e=>`docusaurus_tag:${e}`))]}(),d=a.searchParameters?.facetFilters??[],p=t?function(e,t){const n=e=>"string"==typeof e?[e]:e;return[...n(e),...n(t)]}(c,d):d,f={...a.searchParameters,facetFilters:p},m=(0,s.W6)(),g=(0,r.useRef)(null),h=(0,r.useRef)(null),[b,y]=(0,r.useState)(!1),[v,w]=(0,r.useState)(void 0),k=(0,r.useCallback)((()=>Ne?Promise.resolve():Promise.all([n.e(9462).then(n.bind(n,9462)),Promise.all([n.e(1869),n.e(8913)]).then(n.bind(n,8913)),Promise.all([n.e(1869),n.e(416)]).then(n.bind(n,416))]).then((e=>{let[{DocSearchModal:t}]=e;Ne=t}))),[]),x=(0,r.useCallback)((()=>{k().then((()=>{g.current=document.createElement("div"),document.body.insertBefore(g.current,document.body.firstChild),y(!0)}))}),[k,y]),S=(0,r.useCallback)((()=>{y(!1),g.current?.remove(),h.current?.focus()}),[y]),_=(0,r.useCallback)((e=>{k().then((()=>{y(!0),w(e.key)}))}),[k,y,w]),E=(0,r.useRef)({navigate(e){let{itemUrl:t}=e;(0,ee.G)(o,t)?window.location.href=t:m.push(t)}}).current,C=(0,r.useRef)((e=>a.transformItems?a.transformItems(e):e.map((e=>({...e,url:l(e.url)}))))).current,T=(0,r.useMemo)((()=>e=>(0,u.jsx)(De,{...e,onClose:S})),[S]),A=(0,r.useCallback)((e=>(e.addAlgoliaAgent("docusaurus",i.docusaurusVersion),e)),[i.docusaurusVersion]);return function(e){var t=e.isOpen,n=e.onOpen,o=e.onClose,a=e.onInput,i=e.searchButtonRef;r.useEffect((function(){function e(e){var r;(27===e.keyCode&&t||"k"===(null===(r=e.key)||void 0===r?void 0:r.toLowerCase())&&(e.metaKey||e.ctrlKey)||!function(e){var t=e.target,n=t.tagName;return t.isContentEditable||"INPUT"===n||"SELECT"===n||"TEXTAREA"===n}(e)&&"/"===e.key&&!t)&&(e.preventDefault(),t?o():document.body.classList.contains("DocSearch--active")||document.body.classList.contains("DocSearch--active")||n()),i&&i.current===document.activeElement&&a&&/[a-zA-Z0-9]/.test(String.fromCharCode(e.keyCode))&&a(e)}return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t,n,o,a,i])}({isOpen:b,onOpen:x,onClose:S,onInput:_,searchButtonRef:h}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Ae.A,{children:(0,u.jsx)("link",{rel:"preconnect",href:`https://${a.appId}-dsn.algolia.net`,crossOrigin:"anonymous"})}),(0,u.jsx)(Ce,{onTouchStart:k,onFocus:k,onMouseOver:k,onClick:x,ref:h,translations:Re.button}),b&&Ne&&g.current&&(0,be.createPortal)((0,u.jsx)(Ne,{onClose:S,initialScrollY:window.scrollY,initialQuery:v,navigator:E,transformItems:C,hitComponent:Oe,transformSearchClient:A,...a.searchPagePath&&{resultsFooterComponent:T},...a,searchParameters:f,placeholder:Re.placeholder,translations:Re.modal}),g.current)]})}function Ie(){const{siteConfig:e}=(0,le.A)();return(0,u.jsx)(Me,{...e.themeConfig.algolia})}const Fe={navbarSearchContainer:"navbarSearchContainer_Bca1"};function ze(e){let{children:t,className:n}=e;return(0,u.jsx)("div",{className:(0,o.A)(n,Fe.navbarSearchContainer),children:t})}var Be=n(4070),$e=n(1754);var Ue=n(5597);const qe=e=>e.docs.find((t=>t.id===e.mainDocId));const Ge={default:ae,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:r,queryString:o="",...a}=e;const{i18n:{currentLocale:i,locales:c,localeConfigs:d}}=(0,le.A)(),p=(0,me.o)(),{search:f,hash:m}=(0,s.zy)(),g=[...n,...c.map((e=>{const n=`${`pathname://${p.createUrl({locale:e,fullyQualified:!1})}`}${f}${m}${o}`;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===i?t?"menu__link--active":"dropdown__link--active":""}})),...r],h=t?(0,l.T)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[i].label;return(0,u.jsx)(fe,{...a,mobile:t,label:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ge,{className:he}),h]}),items:g})},search:function(e){let{mobile:t,className:n}=e;return t?null:(0,u.jsx)(ze,{className:n,children:(0,u.jsx)(Ie,{})})},dropdown:fe,html:function(e){let{value:t,className:n,mobile:r=!1,isDropdownItem:a=!1}=e;const i=a?"li":"div";return(0,u.jsx)(i,{className:(0,o.A)({navbar__item:!r&&!a,"menu__list-item":r},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:r,...o}=e;const{activeDoc:a}=(0,Be.zK)(r),i=(0,$e.QB)(t,r),s=a?.path===i?.path;return null===i||i.unlisted&&!s?null:(0,u.jsx)(ae,{exact:!0,...o,isActive:()=>s||!!a?.sidebar&&a.sidebar===i.sidebar,label:n??i.id,to:i.path})},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:r,...o}=e;const{activeDoc:a}=(0,Be.zK)(r),i=(0,$e.fW)(t,r).link;if(!i)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return(0,u.jsx)(ae,{exact:!0,...o,isActive:()=>a?.sidebar===t,label:n??i.label,to:i.path})},docsVersion:function(e){let{label:t,to:n,docsPluginId:r,...o}=e;const a=(0,$e.Vd)(r)[0],i=t??a.label,s=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(a).path;return(0,u.jsx)(ae,{...o,label:i,to:s})},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:r,dropdownItemsBefore:o,dropdownItemsAfter:a,...i}=e;const{search:c,hash:d}=(0,s.zy)(),p=(0,Be.zK)(n),f=(0,Be.jh)(n),{savePreferredVersionName:m}=(0,Ue.g1)(n),g=[...o,...f.map((e=>{const t=p.alternateDocVersions[e.name]??qe(e);return{label:e.label,to:`${t.path}${c}${d}`,isActive:()=>e===p.activeVersion,onClick:()=>m(e.name)}})),...a],h=(0,$e.Vd)(n)[0],b=t&&g.length>1?(0,l.T)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):h.label,y=t&&g.length>1?void 0:qe(h).path;return g.length<=1?(0,u.jsx)(ae,{...i,mobile:t,label:b,to:y,isActive:r?()=>!1:void 0}):(0,u.jsx)(fe,{...i,mobile:t,label:b,to:y,items:g,isActive:r?()=>!1:void 0})}};function He(e){let{type:t,...n}=e;const r=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),o=Ge[r];if(!o)throw new Error(`No NavbarItem component found for type "${t}".`);return(0,u.jsx)(o,{...n})}function Ve(){const e=(0,P.M)(),t=(0,w.p)().navbar.items;return(0,u.jsx)("ul",{className:"menu__list",children:t.map(((t,n)=>(0,r.createElement)(He,{mobile:!0,...t,onClick:()=>e.toggle(),key:n})))})}function We(e){return(0,u.jsx)("button",{...e,type:"button",className:"clean-btn navbar-sidebar__back",children:(0,u.jsx)(l.A,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)",children:"\u2190 Back to main menu"})})}function Ke(){const e=0===(0,w.p)().navbar.items.length,t=M();return(0,u.jsxs)(u.Fragment,{children:[!e&&(0,u.jsx)(We,{onClick:()=>t.hide()}),t.content]})}function Qe(){const e=(0,P.M)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?(0,u.jsx)(I,{header:(0,u.jsx)(Y,{}),primaryMenu:(0,u.jsx)(Ve,{}),secondaryMenu:(0,u.jsx)(Ke,{})}):null}const Ye={navbarHideable:"navbarHideable_m1mJ",navbarHidden:"navbarHidden_jGov"};function Ze(e){return(0,u.jsx)("div",{role:"presentation",...e,className:(0,o.A)("navbar-sidebar__backdrop",e.className)})}function Xe(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:a}}=(0,w.p)(),i=(0,P.M)(),{navbarRef:s,isNavbarVisible:d}=function(e){const[t,n]=(0,r.useState)(e),o=(0,r.useRef)(!1),a=(0,r.useRef)(0),i=(0,r.useCallback)((e=>{null!==e&&(a.current=e.getBoundingClientRect().height)}),[]);return(0,j.Mq)(((t,r)=>{let{scrollY:i}=t;if(!e)return;if(i<a.current)return void n(!0);if(o.current)return void(o.current=!1);const s=r?.scrollY,l=document.documentElement.scrollHeight-a.current,c=window.innerHeight;s&&i>=s?n(!1):i+c<l&&n(!0)})),(0,c.$)((t=>{if(!e)return;const r=t.location.hash;if(r?document.getElementById(r.substring(1)):void 0)return o.current=!0,void n(!1);n(!0)})),{navbarRef:i,isNavbarVisible:t}}(n);return(0,u.jsxs)("nav",{ref:s,"aria-label":(0,l.T)({id:"theme.NavBar.navAriaLabel",message:"Main",description:"The ARIA label for the main navigation"}),className:(0,o.A)("navbar","navbar--fixed-top",n&&[Ye.navbarHideable,!d&&Ye.navbarHidden],{"navbar--dark":"dark"===a,"navbar--primary":"primary"===a,"navbar-sidebar--show":i.shown}),children:[t,(0,u.jsx)(Ze,{onClick:i.toggle}),(0,u.jsx)(Qe,{})]})}var Je=n(2181);const et="right";function tt(e){let{width:t=30,height:n=30,className:r,...o}=e;return(0,u.jsx)("svg",{className:r,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true",...o,children:(0,u.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"})})}function nt(){const{toggle:e,shown:t}=(0,P.M)();return(0,u.jsx)("button",{onClick:e,"aria-label":(0,l.T)({id:"theme.docs.sidebar.toggleSidebarButtonAriaLabel",message:"Toggle navigation bar",description:"The ARIA label for hamburger menu button of mobile navigation"}),"aria-expanded":t,className:"navbar__toggle clean-btn",type:"button",children:(0,u.jsx)(tt,{})})}const rt={colorModeToggle:"colorModeToggle_DEke"};function ot(e){let{items:t}=e;return(0,u.jsx)(u.Fragment,{children:t.map(((e,t)=>(0,u.jsx)(Je.k2,{onError:t=>new Error(`A theme navbar item failed to render.\nPlease double-check the following navbar item (themeConfig.navbar.items) of your Docusaurus config:\n${JSON.stringify(e,null,2)}`,{cause:t}),children:(0,u.jsx)(He,{...e})},t)))})}function at(e){let{left:t,right:n}=e;return(0,u.jsxs)("div",{className:"navbar__inner",children:[(0,u.jsx)("div",{className:"navbar__items",children:t}),(0,u.jsx)("div",{className:"navbar__items navbar__items--right",children:n})]})}function it(){const e=(0,P.M)(),t=(0,w.p)().navbar.items,[n,r]=function(e){function t(e){return"left"===(e.position??et)}return[e.filter(t),e.filter((e=>!t(e)))]}(t),o=t.find((e=>"search"===e.type));return(0,u.jsx)(at,{left:(0,u.jsxs)(u.Fragment,{children:[!e.disabled&&(0,u.jsx)(nt,{}),(0,u.jsx)(K,{}),(0,u.jsx)(ot,{items:n})]}),right:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ot,{items:r}),(0,u.jsx)(V,{className:rt.colorModeToggle}),!o&&(0,u.jsx)(ze,{children:(0,u.jsx)(Ie,{})})]})})}function st(){return(0,u.jsx)(Xe,{children:(0,u.jsx)(it,{})})}function lt(e){let{item:t}=e;const{to:n,href:r,label:o,prependBaseUrlToHref:a,...i}=t,s=(0,X.A)(n),l=(0,X.A)(r,{forcePrependBaseUrl:!0});return(0,u.jsxs)(Z.A,{className:"footer__link-item",...r?{href:a?l:r}:{to:s},...i,children:[o,r&&!(0,J.A)(r)&&(0,u.jsx)(te.A,{})]})}function ct(e){let{item:t}=e;return t.html?(0,u.jsx)("li",{className:"footer__item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)("li",{className:"footer__item",children:(0,u.jsx)(lt,{item:t})},t.href??t.to)}function ut(e){let{column:t}=e;return(0,u.jsxs)("div",{className:"col footer__col",children:[(0,u.jsx)("div",{className:"footer__title",children:t.title}),(0,u.jsx)("ul",{className:"footer__items clean-list",children:t.items.map(((e,t)=>(0,u.jsx)(ct,{item:e},t)))})]})}function dt(e){let{columns:t}=e;return(0,u.jsx)("div",{className:"row footer__links",children:t.map(((e,t)=>(0,u.jsx)(ut,{column:e},t)))})}function pt(){return(0,u.jsx)("span",{className:"footer__link-separator",children:"\xb7"})}function ft(e){let{item:t}=e;return t.html?(0,u.jsx)("span",{className:"footer__link-item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)(lt,{item:t})}function mt(e){let{links:t}=e;return(0,u.jsx)("div",{className:"footer__links text--center",children:(0,u.jsx)("div",{className:"footer__links",children:t.map(((e,n)=>(0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(ft,{item:e}),t.length!==n+1&&(0,u.jsx)(pt,{})]},n)))})})}function gt(e){let{links:t}=e;return function(e){return"title"in e[0]}(t)?(0,u.jsx)(dt,{columns:t}):(0,u.jsx)(mt,{links:t})}var ht=n(1122);const bt={footerLogoLink:"footerLogoLink_BH7S"};function yt(e){let{logo:t}=e;const{withBaseUrl:n}=(0,X.h)(),r={light:n(t.src),dark:n(t.srcDark??t.src)};return(0,u.jsx)(ht.A,{className:(0,o.A)("footer__logo",t.className),alt:t.alt,sources:r,width:t.width,height:t.height,style:t.style})}function vt(e){let{logo:t}=e;return t.href?(0,u.jsx)(Z.A,{href:t.href,className:bt.footerLogoLink,target:t.target,children:(0,u.jsx)(yt,{logo:t})}):(0,u.jsx)(yt,{logo:t})}function wt(e){let{copyright:t}=e;return(0,u.jsx)("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:t}})}function kt(e){let{style:t,links:n,logo:r,copyright:a}=e;return(0,u.jsx)("footer",{className:(0,o.A)("footer",{"footer--dark":"dark"===t}),children:(0,u.jsxs)("div",{className:"container container-fluid",children:[n,(r||a)&&(0,u.jsxs)("div",{className:"footer__bottom text--center",children:[r&&(0,u.jsx)("div",{className:"margin-bottom--sm",children:r}),a]})]})})}function xt(){const{footer:e}=(0,w.p)();if(!e)return null;const{copyright:t,links:n,logo:r,style:o}=e;return(0,u.jsx)(kt,{style:o,links:n&&n.length>0&&(0,u.jsx)(gt,{links:n}),logo:r&&(0,u.jsx)(vt,{logo:r}),copyright:t&&(0,u.jsx)(wt,{copyright:t})})}const St=r.memo(xt),_t=(0,L.fM)([F.a,k.oq,j.Tv,Ue.VQ,i.Jx,function(e){let{children:t}=e;return(0,u.jsx)(R.y_,{children:(0,u.jsx)(P.e,{children:(0,u.jsx)(O,{children:t})})})}]);function Et(e){let{children:t}=e;return(0,u.jsx)(_t,{children:t})}var Ct=n(1107);function Tt(e){let{error:t,tryAgain:n}=e;return(0,u.jsx)("main",{className:"container margin-vert--xl",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,u.jsx)(Ct.A,{as:"h1",className:"hero__title",children:(0,u.jsx)(l.A,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed",children:"This page crashed."})}),(0,u.jsx)("div",{className:"margin-vert--lg",children:(0,u.jsx)(Je.a2,{onClick:n,className:"button button--primary shadow--lw"})}),(0,u.jsx)("hr",{}),(0,u.jsx)("div",{className:"margin-vert--md",children:(0,u.jsx)(Je.bq,{error:t})})]})})})}const At={mainWrapper:"mainWrapper_z2l0"};function Pt(e){const{children:t,noFooter:n,wrapperClassName:r,title:s,description:l}=e;return(0,b.J)(),(0,u.jsxs)(Et,{children:[(0,u.jsx)(i.be,{title:s,description:l}),(0,u.jsx)(v,{}),(0,u.jsx)(A,{}),(0,u.jsx)(st,{}),(0,u.jsx)("div",{id:d,className:(0,o.A)(h.G.wrapper.main,At.mainWrapper,r),children:(0,u.jsx)(a.A,{fallback:e=>(0,u.jsx)(Tt,{...e}),children:t})}),!n&&(0,u.jsx)(St,{})]})}},3465:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});n(6540);var r=n(8774),o=n(6025),a=n(4586),i=n(6342),s=n(1122),l=n(4848);function c(e){let{logo:t,alt:n,imageClassName:r}=e;const a={light:(0,o.A)(t.src),dark:(0,o.A)(t.srcDark||t.src)},i=(0,l.jsx)(s.A,{className:t.className,sources:a,height:t.height,width:t.width,alt:n,style:t.style});return r?(0,l.jsx)("div",{className:r,children:i}):i}function u(e){const{siteConfig:{title:t}}=(0,a.A)(),{navbar:{title:n,logo:s}}=(0,i.p)(),{imageClassName:u,titleClassName:d,...p}=e,f=(0,o.A)(s?.href||"/"),m=n?"":t,g=s?.alt??m;return(0,l.jsxs)(r.A,{to:f,...p,...s?.target&&{target:s.target},children:[s&&(0,l.jsx)(c,{logo:s,alt:g,imageClassName:u}),null!=n&&(0,l.jsx)("b",{className:d,children:n})]})}},1463:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(6540);var r=n(5260),o=n(4848);function a(e){let{locale:t,version:n,tag:a}=e;const i=t;return(0,o.jsxs)(r.A,{children:[t&&(0,o.jsx)("meta",{name:"docusaurus_locale",content:t}),n&&(0,o.jsx)("meta",{name:"docusaurus_version",content:n}),a&&(0,o.jsx)("meta",{name:"docusaurus_tag",content:a}),i&&(0,o.jsx)("meta",{name:"docsearch:language",content:i}),n&&(0,o.jsx)("meta",{name:"docsearch:version",content:n}),a&&(0,o.jsx)("meta",{name:"docsearch:docusaurus_tag",content:a})]})}},1122:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(6540),o=n(4164),a=n(2303),i=n(5293);const s={themedComponent:"themedComponent_mlkZ","themedComponent--light":"themedComponent--light_NVdE","themedComponent--dark":"themedComponent--dark_xIcU"};var l=n(4848);function c(e){let{className:t,children:n}=e;const c=(0,a.A)(),{colorMode:u}=(0,i.G)();return(0,l.jsx)(l.Fragment,{children:(c?"dark"===u?["dark"]:["light"]:["light","dark"]).map((e=>{const a=n({theme:e,className:(0,o.A)(t,s.themedComponent,s[`themedComponent--${e}`])});return(0,l.jsx)(r.Fragment,{children:a},e)}))})}function u(e){const{sources:t,className:n,alt:r,...o}=e;return(0,l.jsx)(c,{className:n,children:e=>{let{theme:n,className:a}=e;return(0,l.jsx)("img",{src:t[n],alt:r,className:a,...o})}})}},1422:(e,t,n)=>{"use strict";n.d(t,{N:()=>b,u:()=>c});var r=n(6540),o=n(8193),a=n(205),i=n(3109),s=n(4848);const l="ease-in-out";function c(e){let{initialState:t}=e;const[n,o]=(0,r.useState)(t??!1),a=(0,r.useCallback)((()=>{o((e=>!e))}),[]);return{collapsed:n,setCollapsed:o,toggleCollapsed:a}}const u={display:"none",overflow:"hidden",height:"0px"},d={display:"block",overflow:"visible",height:"auto"};function p(e,t){const n=t?u:d;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function f(e){let{collapsibleRef:t,collapsed:n,animation:o}=e;const a=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const e=t.current;function r(){const t=e.scrollHeight,n=o?.duration??function(e){if((0,i.O)())return 1;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${o?.easing??l}`,height:`${t}px`}}function s(){const t=r();e.style.transition=t.transition,e.style.height=t.height}if(!a.current)return p(e,n),void(a.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(s(),requestAnimationFrame((()=>{e.style.height=u.height,e.style.overflow=u.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{s()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,o])}function m(e){if(!o.A.canUseDOM)return e?u:d}function g(e){let{as:t="div",collapsed:n,children:o,animation:a,onCollapseTransitionEnd:i,className:l,disableSSRStyle:c}=e;const u=(0,r.useRef)(null);return f({collapsibleRef:u,collapsed:n,animation:a}),(0,s.jsx)(t,{ref:u,style:c?void 0:m(n),onTransitionEnd:e=>{"height"===e.propertyName&&(p(u.current,n),i?.(n))},className:l,children:o})}function h(e){let{collapsed:t,...n}=e;const[o,i]=(0,r.useState)(!t),[l,c]=(0,r.useState)(t);return(0,a.A)((()=>{t||i(!0)}),[t]),(0,a.A)((()=>{o&&c(t)}),[o,t]),o?(0,s.jsx)(g,{...n,collapsed:l}):null}function b(e){let{lazy:t,...n}=e;const r=t?h:g;return(0,s.jsx)(r,{...n})}},5041:(e,t,n)=>{"use strict";n.d(t,{Mj:()=>g,oq:()=>m});var r=n(6540),o=n(2303),a=n(9466),i=n(9532),s=n(6342),l=n(4848);const c=(0,a.Wf)("docusaurus.announcement.dismiss"),u=(0,a.Wf)("docusaurus.announcement.id"),d=()=>"true"===c.get(),p=e=>c.set(String(e)),f=r.createContext(null);function m(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,s.p)(),t=(0,o.A)(),[n,a]=(0,r.useState)((()=>!!t&&d()));(0,r.useEffect)((()=>{a(d())}),[]);const i=(0,r.useCallback)((()=>{p(!0),a(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&p(!1),!r&&d()||a(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:i})),[e,n,i])}();return(0,l.jsx)(f.Provider,{value:n,children:t})}function g(){const e=(0,r.useContext)(f);if(!e)throw new i.dV("AnnouncementBarProvider");return e}},5293:(e,t,n)=>{"use strict";n.d(t,{G:()=>b,a:()=>h});var r=n(6540),o=n(8193),a=n(9532),i=n(9466),s=n(6342),l=n(4848);const c=r.createContext(void 0),u="theme",d=(0,i.Wf)(u),p={light:"light",dark:"dark"},f=e=>e===p.dark?p.dark:p.light,m=e=>o.A.canUseDOM?f(document.documentElement.getAttribute("data-theme")):f(e),g=e=>{d.set(f(e))};function h(e){let{children:t}=e;const n=function(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,s.p)(),[o,a]=(0,r.useState)(m(e));(0,r.useEffect)((()=>{t&&d.del()}),[t]);const i=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:o=!0}=r;t?(a(t),o&&g(t)):(a(n?window.matchMedia("(prefers-color-scheme: dark)").matches?p.dark:p.light:e),d.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",f(o))}),[o]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=d.get();null!==t&&i(f(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,i]);const l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||l.current?l.current=window.matchMedia("print").matches:i(null)};return e.addListener(r),()=>e.removeListener(r)}),[i,t,n]),(0,r.useMemo)((()=>({colorMode:o,setColorMode:i,get isDarkTheme(){return o===p.dark},setLightTheme(){i(p.light)},setDarkTheme(){i(p.dark)}})),[o,i])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function b(){const e=(0,r.useContext)(c);if(null==e)throw new a.dV("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},5597:(e,t,n)=>{"use strict";n.d(t,{VQ:()=>b,XK:()=>w,g1:()=>v});var r=n(6540),o=n(4070),a=n(7065),i=n(6342),s=n(1754),l=n(9532),c=n(9466),u=n(4848);const d=e=>`docs-preferred-version-${e}`,p={save:(e,t,n)=>{(0,c.Wf)(d(e),{persistence:t}).set(n)},read:(e,t)=>(0,c.Wf)(d(e),{persistence:t}).get(),clear:(e,t)=>{(0,c.Wf)(d(e),{persistence:t}).del()}},f=e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}])));const m=r.createContext(null);function g(){const e=(0,o.Gy)(),t=(0,i.p)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[a,s]=(0,r.useState)((()=>f(n)));(0,r.useEffect)((()=>{s(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function o(e){const t=p.read(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(p.clear(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,o(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[a,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){p.save(e,t,n),s((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function h(e){let{children:t}=e;const n=g();return(0,u.jsx)(m.Provider,{value:n,children:t})}function b(e){let{children:t}=e;return s.C5?(0,u.jsx)(h,{children:t}):(0,u.jsx)(u.Fragment,{children:t})}function y(){const e=(0,r.useContext)(m);if(!e)throw new l.dV("DocsPreferredVersionContextProvider");return e}function v(e){void 0===e&&(e=a.W);const t=(0,o.ht)(e),[n,i]=y(),{preferredVersionName:s}=n[e];return{preferredVersion:t.versions.find((e=>e.name===s))??null,savePreferredVersionName:(0,r.useCallback)((t=>{i.savePreferredVersion(e,t)}),[i,e])}}function w(){const e=(0,o.Gy)(),[t]=y();function n(n){const r=e[n],{preferredVersionName:o}=t[n];return r.versions.find((e=>e.name===o))??null}const r=Object.keys(e);return Object.fromEntries(r.map((e=>[e,n(e)])))}},6588:(e,t,n)=>{"use strict";n.d(t,{V:()=>l,t:()=>c});var r=n(6540),o=n(9532),a=n(4848);const i=Symbol("EmptyContext"),s=r.createContext(i);function l(e){let{children:t,name:n,items:o}=e;const i=(0,r.useMemo)((()=>n&&o?{name:n,items:o}:null),[n,o]);return(0,a.jsx)(s.Provider,{value:i,children:t})}function c(){const e=(0,r.useContext)(s);if(e===i)throw new o.dV("DocsSidebarProvider");return e}},2252:(e,t,n)=>{"use strict";n.d(t,{n:()=>s,r:()=>l});var r=n(6540),o=n(9532),a=n(4848);const i=r.createContext(null);function s(e){let{children:t,version:n}=e;return(0,a.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(null===e)throw new o.dV("DocsVersionProvider");return e}},2069:(e,t,n)=>{"use strict";n.d(t,{M:()=>f,e:()=>p});var r=n(6540),o=n(5600),a=n(4581),i=n(7485),s=n(6342),l=n(9532),c=n(4848);const u=r.createContext(void 0);function d(){const e=function(){const e=(0,o.YL)(),{items:t}=(0,s.p)().navbar;return 0===t.length&&!e.component}(),t=(0,a.l)(),n=!e&&"mobile"===t,[l,c]=(0,r.useState)(!1);(0,i.$Z)((()=>{if(l)return c(!1),!1}));const u=(0,r.useCallback)((()=>{c((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&c(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:u,shown:l})),[e,n,u,l])}function p(e){let{children:t}=e;const n=d();return(0,c.jsx)(u.Provider,{value:n,children:t})}function f(){const e=r.useContext(u);if(void 0===e)throw new l.dV("NavbarMobileSidebarProvider");return e}},5600:(e,t,n)=>{"use strict";n.d(t,{GX:()=>c,YL:()=>l,y_:()=>s});var r=n(6540),o=n(9532),a=n(4848);const i=r.createContext(null);function s(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return(0,a.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(!e)throw new o.dV("NavbarSecondaryMenuContentProvider");return e[0]}function c(e){let{component:t,props:n}=e;const a=(0,r.useContext)(i);if(!a)throw new o.dV("NavbarSecondaryMenuContentProvider");const[,s]=a,l=(0,o.Be)(n);return(0,r.useEffect)((()=>{s({component:t,props:l})}),[s,t,l]),(0,r.useEffect)((()=>()=>s({component:null,props:null})),[s]),null}},4090:(e,t,n)=>{"use strict";n.d(t,{w:()=>o,J:()=>a});var r=n(6540);const o="navigation-with-keyboard";function a(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(o),"mousedown"===e.type&&document.body.classList.remove(o)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(o),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},4255:(e,t,n)=>{"use strict";n.d(t,{b:()=>s,w:()=>l});var r=n(6540),o=n(4586),a=n(7485);const i="q";function s(){return(0,a.l)(i)}function l(){const{siteConfig:{baseUrl:e,themeConfig:t}}=(0,o.A)(),{algolia:{searchPagePath:n}}=t;return(0,r.useCallback)((t=>`${e}${n}?${i}=${encodeURIComponent(t)}`),[e,n])}},4581:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var r=n(6540),o=n(8193);const a={desktop:"desktop",mobile:"mobile",ssr:"ssr"},i=996;function s(e){let{desktopBreakpoint:t=i}=void 0===e?{}:e;const[n,s]=(0,r.useState)((()=>"ssr"));return(0,r.useEffect)((()=>{function e(){s(function(e){if(!o.A.canUseDOM)throw new Error("getWindowSize() should only be called after React hydration");return window.innerWidth>e?a.desktop:a.mobile}(t))}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t]),n}},7559:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",unlistedBanner:"theme-unlisted-banner",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{blogFooterTagsRow:"theme-blog-footer-tags-row",blogFooterEditMetaRow:"theme-blog-footer-edit-meta-row"},pages:{pageFooterEditMetaRow:"theme-pages-footer-edit-meta-row"}}},3109:(e,t,n)=>{"use strict";function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}n.d(t,{O:()=>r})},1754:(e,t,n)=>{"use strict";n.d(t,{d1:()=>T,Nr:()=>m,w8:()=>y,C5:()=>p,$S:()=>g,cC:()=>f,B5:()=>C,Vd:()=>S,QB:()=>E,fW:()=>_,OF:()=>x,Y:()=>w});var r=n(6540),o=n(6347),a=n(2831),i=n(4070),s=n(5597),l=n(2252),c=n(6588);function u(e){return Array.from(new Set(e))}var d=n(9169);const p=!!i.Gy;function f(e){const t=(0,l.r)();if(!e)return;const n=t.docs[e];if(!n)throw new Error(`no version doc found by id=${e}`);return n}function m(e){return"link"!==e.type||e.unlisted?"category"===e.type?function(e){if(e.href&&!e.linkUnlisted)return e.href;for(const t of e.items){const e=m(t);if(e)return e}}(e):void 0:e.href}function g(){const{pathname:e}=(0,o.zy)(),t=(0,c.t)();if(!t)throw new Error("Unexpected: cant find current sidebar in context");const n=k({sidebarItems:t.items,pathname:e,onlyCategories:!0}).slice(-1)[0];if(!n)throw new Error(`${e} is not associated with a category. useCurrentSidebarCategory() should only be used on category index pages.`);return n}const h=(e,t)=>void 0!==e&&(0,d.ys)(e,t),b=(e,t)=>e.some((e=>y(e,t)));function y(e,t){return"link"===e.type?h(e.href,t):"category"===e.type&&(h(e.href,t)||b(e.items,t))}function v(e,t){switch(e.type){case"category":return y(e,t)||e.items.some((e=>v(e,t)));case"link":return!e.unlisted||y(e,t);default:return!0}}function w(e,t){return(0,r.useMemo)((()=>e.filter((e=>v(e,t)))),[e,t])}function k(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const o=[];return function e(t){for(const a of t)if("category"===a.type&&((0,d.ys)(a.href,n)||e(a.items))||"link"===a.type&&(0,d.ys)(a.href,n)){return r&&"category"!==a.type||o.unshift(a),!0}return!1}(t),o}function x(){const e=(0,c.t)(),{pathname:t}=(0,o.zy)(),n=(0,i.vT)()?.pluginData.breadcrumbs;return!1!==n&&e?k({sidebarItems:e.items,pathname:t}):null}function S(e){const{activeVersion:t}=(0,i.zK)(e),{preferredVersion:n}=(0,s.g1)(e),o=(0,i.r7)(e);return(0,r.useMemo)((()=>u([t,n,o].filter(Boolean))),[t,n,o])}function _(e,t){const n=S(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable sidebar ids are:\n- ${t.map((e=>e[0])).join("\n- ")}`);return r[1]}),[e,n])}function E(e,t){const n=S(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`Couldn't find any doc with id "${e}" in version${n.length>1?"s":""} "${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${u(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function C(e){let{route:t}=e;const n=(0,o.zy)(),r=(0,l.r)(),i=t.routes,s=i.find((e=>(0,o.B6)(n.pathname,e)));if(!s)return null;const c=s.sidebar,u=c?r.docsSidebars[c]:void 0;return{docElement:(0,a.v)(i),sidebarName:c,sidebarItems:u}}function T(e){return e.filter((e=>!("category"===e.type||"link"===e.type)||!!m(e)))}},2181:(e,t,n)=>{"use strict";n.d(t,{bq:()=>u,MN:()=>c,a2:()=>l,k2:()=>d});var r=n(6540),o=n(1312),a=n(440);const i={errorBoundaryError:"errorBoundaryError_a6uf",errorBoundaryFallback:"errorBoundaryFallback_VBag"};var s=n(4848);function l(e){return(0,s.jsx)("button",{type:"button",...e,children:(0,s.jsx)(o.A,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again rendering when the React error boundary captures an error",children:"Try again"})})}function c(e){let{error:t,tryAgain:n}=e;return(0,s.jsxs)("div",{className:i.errorBoundaryFallback,children:[(0,s.jsx)("p",{children:t.message}),(0,s.jsx)(l,{onClick:n})]})}function u(e){let{error:t}=e;const n=(0,a.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,s.jsx)("p",{className:i.errorBoundaryError,children:n})}class d extends r.Component{componentDidCatch(e,t){throw this.props.onError(e,t)}render(){return this.props.children}}},481:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(4586);function o(e){const{siteConfig:t}=(0,r.A)(),{title:n,titleDelimiter:o}=t;return e?.trim().length?`${e.trim()} ${o} ${n}`:n}},7485:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>i,l:()=>l});var r=n(6540),o=n(6347),a=n(9532);function i(e){!function(e){const t=(0,o.W6)(),n=(0,a._q)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}function s(e){const t=(0,o.W6)();return(0,r.useSyncExternalStore)(t.listen,(()=>e(t)),(()=>e(t)))}function l(e){const t=function(e){return s((t=>null===e?null:new URLSearchParams(t.location.search).get(e)))}(e)??"",n=function(e){const t=(0,o.W6)();return(0,r.useCallback)(((n,r)=>{const o=new URLSearchParams(t.location.search);n?o.set(e,n):o.delete(e),(r?.push?t.push:t.replace)({search:o.toString()})}),[e,t])}(e);return[t,n]}},5500:(e,t,n)=>{"use strict";n.d(t,{Jx:()=>f,be:()=>u,e3:()=>p});var r=n(6540),o=n(4164),a=n(5260),i=n(6803),s=n(6025),l=n(481),c=n(4848);function u(e){let{title:t,description:n,keywords:r,image:o,children:i}=e;const u=(0,l.s)(t),{withBaseUrl:d}=(0,s.h)(),p=o?d(o,{absolute:!0}):void 0;return(0,c.jsxs)(a.A,{children:[t&&(0,c.jsx)("title",{children:u}),t&&(0,c.jsx)("meta",{property:"og:title",content:u}),n&&(0,c.jsx)("meta",{name:"description",content:n}),n&&(0,c.jsx)("meta",{property:"og:description",content:n}),r&&(0,c.jsx)("meta",{name:"keywords",content:Array.isArray(r)?r.join(","):r}),p&&(0,c.jsx)("meta",{property:"og:image",content:p}),p&&(0,c.jsx)("meta",{name:"twitter:image",content:p}),i]})}const d=r.createContext(void 0);function p(e){let{className:t,children:n}=e;const i=r.useContext(d),s=(0,o.A)(i,t);return(0,c.jsxs)(d.Provider,{value:s,children:[(0,c.jsx)(a.A,{children:(0,c.jsx)("html",{className:s})}),n]})}function f(e){let{children:t}=e;const n=(0,i.A)(),r=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const a=`plugin-id-${n.plugin.id}`;return(0,c.jsx)(p,{className:(0,o.A)(r,a),children:t})}},9532:(e,t,n)=>{"use strict";n.d(t,{Be:()=>c,ZC:()=>s,_q:()=>i,dV:()=>l,fM:()=>u});var r=n(6540),o=n(205),a=n(4848);function i(e){const t=(0,r.useRef)(e);return(0,o.A)((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function s(e){const t=(0,r.useRef)();return(0,o.A)((()=>{t.current=e})),t.current}class l extends Error{constructor(e,t){super(),this.name="ReactContextError",this.message=`Hook ${this.stack?.split("\n")[1]?.match(/at (?:\w+\.)?(?<name>\w+)/)?.groups.name??""} is called outside the <${e}>. ${t??""}`}}function c(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return(0,a.jsx)(a.Fragment,{children:e.reduceRight(((e,t)=>(0,a.jsx)(t,{children:e})),n)})}}},1252:(e,t,n)=>{"use strict";function r(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}n.d(t,{G:()=>r})},9169:(e,t,n)=>{"use strict";n.d(t,{Dt:()=>s,ys:()=>i});var r=n(6540),o=n(8328),a=n(4586);function i(e,t){const n=e=>(!e||e.endsWith("/")?e:`${e}/`)?.toLowerCase();return n(e)===n(t)}function s(){const{baseUrl:e}=(0,a.A)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function o(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(o).flatMap((e=>e.routes??[])))}(n)}({routes:o.A,baseUrl:e})),[e])}},3104:(e,t,n)=>{"use strict";n.d(t,{Mq:()=>p,Tv:()=>c,gk:()=>f});var r=n(6540),o=n(8193),a=n(2303),i=(n(205),n(9532)),s=n(4848);const l=r.createContext(void 0);function c(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return(0,s.jsx)(l.Provider,{value:n,children:t})}function u(){const e=(0,r.useContext)(l);if(null==e)throw new i.dV("ScrollControllerProvider");return e}const d=()=>o.A.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function p(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=u(),o=(0,r.useRef)(d()),a=(0,i._q)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=d();a(e,o.current),o.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[a,n,...t])}function f(){const e=(0,r.useRef)(null),t=(0,a.A)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const o=document.documentElement.scrollTop;(n&&o>e||!n&&o<e)&&(t=requestAnimationFrame(r),window.scrollTo(0,Math.floor(.85*(o-e))+e))}(),()=>t&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>e.current?.()}}},2967:(e,t,n)=>{"use strict";n.d(t,{Cy:()=>i,af:()=>l,tU:()=>s});var r=n(4070),o=n(4586),a=n(5597);const i="default";function s(e,t){return`docs-${e}-${t}`}function l(){const{i18n:e}=(0,o.A)(),t=(0,r.Gy)(),n=(0,r.gk)(),l=(0,a.XK)();const c=[i,...Object.keys(t).map((function(e){const r=n?.activePlugin.pluginId===e?n.activeVersion:void 0,o=l[e],a=t[e].versions.find((e=>e.isLast));return s(e,(r??o??a).name)}))];return{locale:e.currentLocale,tags:c}}},9466:(e,t,n)=>{"use strict";n.d(t,{Wf:()=>l});n(6540);const r="localStorage";function o(e){let{key:t,oldValue:n,newValue:r,storage:o}=e;if(n===r)return;const a=document.createEvent("StorageEvent");a.initStorageEvent("storage",!1,!1,t,n,r,window.location.href,o),window.dispatchEvent(a)}function a(e){if(void 0===e&&(e=r),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,i||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),i=!0),null}var t}let i=!1;const s={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};function l(e,t){if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t,listen:t}}(e);const n=a(t?.persistence);return null===n?s:{get:()=>{try{return n.getItem(e)}catch(t){return console.error(`Docusaurus storage error, can't get key=${e}`,t),null}},set:t=>{try{const r=n.getItem(e);n.setItem(e,t),o({key:e,oldValue:r,newValue:t,storage:n})}catch(r){console.error(`Docusaurus storage error, can't set ${e}=${t}`,r)}},del:()=>{try{const t=n.getItem(e);n.removeItem(e),o({key:e,oldValue:t,newValue:null,storage:n})}catch(t){console.error(`Docusaurus storage error, can't delete key=${e}`,t)}},listen:t=>{try{const r=r=>{r.storageArea===n&&r.key===e&&t(r)};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)}catch(r){return console.error(`Docusaurus storage error, can't listen for changes of key=${e}`,r),()=>{}}}}}},2131:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(4586),o=n(6347),a=n(440);function i(){const{siteConfig:{baseUrl:e,url:t,trailingSlash:n},i18n:{defaultLocale:i,currentLocale:s}}=(0,r.A)(),{pathname:l}=(0,o.zy)(),c=(0,a.applyTrailingSlash)(l,{trailingSlash:n,baseUrl:e}),u=s===i?e:e.replace(`/${s}/`,"/"),d=c.replace(e,"");return{createUrl:function(e){let{locale:n,fullyQualified:r}=e;return`${r?t:""}${function(e){return e===i?`${u}`:`${u}${e}/`}(n)}${d}`}}}},5062:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});var r=n(6540),o=n(6347),a=n(9532);function i(e){const t=(0,o.zy)(),n=(0,a.ZC)(t),i=(0,a._q)(e);(0,r.useEffect)((()=>{n&&t!==n&&i({location:t,previousLocation:n})}),[i,t,n])}},6342:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var r=n(4586);function o(){return(0,r.A)().siteConfig.themeConfig}},8126:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(4586);function o(){const{siteConfig:{themeConfig:e}}=(0,r.A)();return e}},1062:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var r=n(6540),o=n(1252),a=n(6025),i=n(8126);function s(){const{withBaseUrl:e}=(0,a.h)(),{algolia:{externalUrlRegex:t,replaceSearchResultPathname:n}}=(0,i.c)();return(0,r.useCallback)((r=>{const a=new URL(r);if((0,o.G)(t,a.href))return r;const i=`${a.pathname+a.hash}`;return e(function(e,t){return t?e.replaceAll(new RegExp(t.from,"g"),t.to):e}(i,n))}),[e,t,n])}},2983:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeTrailingSlash=t.addLeadingSlash=t.addTrailingSlash=void 0;const r=n(2566);function o(e){return e.endsWith("/")?e:`${e}/`}function a(e){return(0,r.removeSuffix)(e,"/")}t.addTrailingSlash=o,t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[i]=e.split(/[#?]/),s="/"===i||i===r?i:(l=i,n?o(l):a(l));var l;return e.replace(i,s)},t.addLeadingSlash=function(e){return(0,r.addPrefix)(e,"/")},t.removeTrailingSlash=a},253:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=void 0,t.getErrorCausalChain=function e(t){return t.cause?[t,...e(t.cause)]:[t]}},440:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=t.removePrefix=t.addSuffix=t.removeSuffix=t.addPrefix=t.removeTrailingSlash=t.addLeadingSlash=t.addTrailingSlash=t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="__blog-post-container";var o=n(2983);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(o).default}}),Object.defineProperty(t,"addTrailingSlash",{enumerable:!0,get:function(){return o.addTrailingSlash}}),Object.defineProperty(t,"addLeadingSlash",{enumerable:!0,get:function(){return o.addLeadingSlash}}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return o.removeTrailingSlash}});var a=n(2566);Object.defineProperty(t,"addPrefix",{enumerable:!0,get:function(){return a.addPrefix}}),Object.defineProperty(t,"removeSuffix",{enumerable:!0,get:function(){return a.removeSuffix}}),Object.defineProperty(t,"addSuffix",{enumerable:!0,get:function(){return a.addSuffix}}),Object.defineProperty(t,"removePrefix",{enumerable:!0,get:function(){return a.removePrefix}});var i=n(253);Object.defineProperty(t,"getErrorCausalChain",{enumerable:!0,get:function(){return i.getErrorCausalChain}})},2566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removePrefix=t.addSuffix=t.removeSuffix=t.addPrefix=void 0,t.addPrefix=function(e,t){return e.startsWith(t)?e:`${t}${e}`},t.removeSuffix=function(e,t){return""===t?e:e.endsWith(t)?e.slice(0,-t.length):e},t.addSuffix=function(e,t){return e.endsWith(t)?e:`${e}${t}`},t.removePrefix=function(e,t){return e.startsWith(t)?e.slice(t.length):e}},1513:(e,t,n)=>{"use strict";n.d(t,{zR:()=>w,TM:()=>C,yJ:()=>f,sC:()=>A,AO:()=>p});var r=n(8168);function o(e){return"/"===e.charAt(0)}function a(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const i=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],s=e&&o(e),l=t&&o(t),c=s||l;if(e&&o(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=i.length;p>=0;p--){var f=i[p];"."===f?a(i,p):".."===f?(a(i,p),d++):d&&(a(i,p),d--)}if(!c)for(;d--;d)i.unshift("..");!c||""===i[0]||i[0]&&o(i[0])||i.unshift("");var m=i.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};var s=n(1561);function l(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function u(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function f(e,t,n,o){var a;"string"==typeof e?(a=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),a.state=t):(void 0===(a=(0,r.A)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(a.key=n),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=i(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a}function m(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var g=!("undefined"==typeof window||!window.document||!window.document.createElement);function h(e,t){t(window.confirm(e))}var b="popstate",y="hashchange";function v(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),g||(0,s.A)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,c=i.forceRefresh,w=void 0!==c&&c,k=i.getUserConfirmation,x=void 0===k?h:k,S=i.keyLength,_=void 0===S?6:S,E=e.basename?d(l(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;return E&&(a=u(a,E)),f(a,r,n)}function T(){return Math.random().toString(36).substr(2,_)}var A=m();function P(e){(0,r.A)($,e),$.length=n.length,A.notifyListeners($.location,$.action)}function j(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||N(C(e.state))}function L(){N(C(v()))}var R=!1;function N(e){if(R)R=!1,P();else{A.confirmTransitionTo(e,"POP",x,(function(t){t?P({action:"POP",location:e}):function(e){var t=$.location,n=D.indexOf(t.key);-1===n&&(n=0);var r=D.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(R=!0,I(o))}(e)}))}}var O=C(v()),D=[O.key];function M(e){return E+p(e)}function I(e){n.go(e)}var F=0;function z(e){1===(F+=e)&&1===e?(window.addEventListener(b,j),a&&window.addEventListener(y,L)):0===F&&(window.removeEventListener(b,j),a&&window.removeEventListener(y,L))}var B=!1;var $={length:n.length,action:"POP",location:O,createHref:M,push:function(e,t){var r="PUSH",a=f(e,t,T(),$.location);A.confirmTransitionTo(a,r,x,(function(e){if(e){var t=M(a),i=a.key,s=a.state;if(o)if(n.pushState({key:i,state:s},null,t),w)window.location.href=t;else{var l=D.indexOf($.location.key),c=D.slice(0,l+1);c.push(a.key),D=c,P({action:r,location:a})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",a=f(e,t,T(),$.location);A.confirmTransitionTo(a,r,x,(function(e){if(e){var t=M(a),i=a.key,s=a.state;if(o)if(n.replaceState({key:i,state:s},null,t),w)window.location.replace(t);else{var l=D.indexOf($.location.key);-1!==l&&(D[l]=a.key),P({action:r,location:a})}else window.location.replace(t)}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&(e=!1);var t=A.setPrompt(e);return B||(z(1),B=!0),function(){return B&&(B=!1,z(-1)),t()}},listen:function(e){var t=A.appendListener(e);return z(1),function(){z(-1),t()}}};return $}var k="hashchange",x={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+c(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c,decodePath:l},slash:{encodePath:l,decodePath:l}};function S(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function _(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function E(e){window.location.replace(S(window.location.href)+"#"+e)}function C(e){void 0===e&&(e={}),g||(0,s.A)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,a=void 0===o?h:o,i=n.hashType,c=void 0===i?"slash":i,b=e.basename?d(l(e.basename)):"",y=x[c],v=y.encodePath,w=y.decodePath;function C(){var e=w(_());return b&&(e=u(e,b)),f(e)}var T=m();function A(e){(0,r.A)(B,e),B.length=t.length,T.notifyListeners(B.location,B.action)}var P=!1,j=null;function L(){var e,t,n=_(),r=v(n);if(n!==r)E(r);else{var o=C(),i=B.location;if(!P&&(t=o,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(j===p(o))return;j=null,function(e){if(P)P=!1,A();else{var t="POP";T.confirmTransitionTo(e,t,a,(function(n){n?A({action:t,location:e}):function(e){var t=B.location,n=D.lastIndexOf(p(t));-1===n&&(n=0);var r=D.lastIndexOf(p(e));-1===r&&(r=0);var o=n-r;o&&(P=!0,M(o))}(e)}))}}(o)}}var R=_(),N=v(R);R!==N&&E(N);var O=C(),D=[p(O)];function M(e){t.go(e)}var I=0;function F(e){1===(I+=e)&&1===e?window.addEventListener(k,L):0===I&&window.removeEventListener(k,L)}var z=!1;var B={length:t.length,action:"POP",location:O,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=S(window.location.href)),n+"#"+v(b+p(e))},push:function(e,t){var n="PUSH",r=f(e,void 0,void 0,B.location);T.confirmTransitionTo(r,n,a,(function(e){if(e){var t=p(r),o=v(b+t);if(_()!==o){j=t,function(e){window.location.hash=e}(o);var a=D.lastIndexOf(p(B.location)),i=D.slice(0,a+1);i.push(t),D=i,A({action:n,location:r})}else A()}}))},replace:function(e,t){var n="REPLACE",r=f(e,void 0,void 0,B.location);T.confirmTransitionTo(r,n,a,(function(e){if(e){var t=p(r),o=v(b+t);_()!==o&&(j=t,E(o));var a=D.indexOf(p(B.location));-1!==a&&(D[a]=t),A({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return z||(F(1),z=!0),function(){return z&&(z=!1,F(-1)),t()}},listen:function(e){var t=T.appendListener(e);return F(1),function(){F(-1),t()}}};return B}function T(e,t,n){return Math.min(Math.max(e,t),n)}function A(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,a=void 0===o?["/"]:o,i=t.initialIndex,s=void 0===i?0:i,l=t.keyLength,c=void 0===l?6:l,u=m();function d(e){(0,r.A)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function g(){return Math.random().toString(36).substr(2,c)}var h=T(s,0,a.length-1),b=a.map((function(e){return f(e,void 0,"string"==typeof e?g():e.key||g())})),y=p;function v(e){var t=T(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:b.length,action:"POP",location:b[h],index:h,entries:b,createHref:y,push:function(e,t){var r="PUSH",o=f(e,t,g(),w.location);u.confirmTransitionTo(o,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=f(e,t,g(),w.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,d({action:r,location:o}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},4146:(e,t,n)=>{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=f(n);o&&o!==m&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),g=l(n),h=0;h<i.length;++h){var b=i[h];if(!(a[b]||r&&r[b]||g&&g[b]||s&&s[b])){var y=p(n,b);try{c(t,b,y)}catch(v){}}}}return t}},311:e=>{"use strict";e.exports=function(e,t,n,r,o,a,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},4634:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},119:(e,t,n)=>{"use strict";n.r(t)},1043:(e,t,n)=>{"use strict";n.r(t)},5947:function(e,t,n){var r,o;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,t,n){return e<t?t:e>n?n:e}function a(e){return 100*(-1+e)}function i(e,t,n){var o;return(o="translate3d"===r.positionUsing?{transform:"translate3d("+a(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+a(e)+"%,0)"}:{"margin-left":a(e)+"%"}).transition="all "+t+"ms "+n,o}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=o(e,r.minimum,1),n.status=1===e?null:e;var a=n.render(!t),c=a.querySelector(r.barSelector),u=r.speed,d=r.easing;return a.offsetWidth,s((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(c,i(e,u,d)),1===e?(l(a,{transition:"none",opacity:1}),a.offsetWidth,setTimeout((function(){l(a,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var o,i=t.querySelector(r.barSelector),s=e?"-100":a(n.status||0),c=document.querySelector(r.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(o=t.querySelector(r.spinnerSelector))&&f(o),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+a)in n)return r;return t}function o(e){return e=n(e),t[e]||(t[e]=r(e))}function a(e,t,n){t=o(t),e.style[t]=n}return function(e,t){var n,r,o=arguments;if(2==o.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&a(e,n,r);else a(e,o[1],o[2])}}();function c(e,t){return("string"==typeof e?e:p(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=p(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=p(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function p(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(o="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=o)},5302:(e,t,n)=>{var r=n(4634);e.exports=f,e.exports.parse=a,e.exports.compile=function(e,t){return s(a(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,r=[],a=0,i=0,s="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],p=n[1],f=n.index;if(s+=e.slice(i,f),i=f+d.length,p)s+=p[1];else{var m=e[i],g=n[2],h=n[3],b=n[4],y=n[5],v=n[6],w=n[7];s&&(r.push(s),s="");var k=null!=g&&null!=m&&m!==g,x="+"===v||"*"===v,S="?"===v||"*"===v,_=n[2]||u,E=b||y;r.push({name:h||a++,prefix:g||"",delimiter:_,optional:S,repeat:x,partial:k,asterisk:!!w,pattern:E?c(E):w?".*":"[^"+l(_)+"]+?"})}}return i<e.length&&(s+=e.substr(i)),s&&r.push(s),r}function i(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var a="",s=t||{},l=(o||{}).pretty?i:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=s[u.name];if(null==p){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=l(p[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");a+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');a+=u.prefix+d}}else a+=u}return a}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,a=!1!==n.end,i="",s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)i+=l(c);else{var p=l(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+p+f+")*"),i+=f=c.optional?c.partial?p+"("+f+")?":"(?:"+p+"("+f+"))?":p+"("+f+")"}}var m=l(n.delimiter||"/"),g=i.slice(-m.length)===m;return o||(i=(g?i.slice(0,-m.length):i)+"(?:"+m+"(?=$))?"),i+=a?"$":o&&g?"":"(?="+m+"|$)",u(new RegExp("^"+i,d(n)),t)}function f(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(f(e[o],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(a(e,n),t,n)}(e,t,n)}},6969:e=>{e.exports&&(e.exports={core:{meta:{path:"components/prism-core.js",option:"mandatory"},core:"Core"},themes:{meta:{path:"themes/{id}.css",link:"index.html?theme={id}",exclusive:!0},prism:{title:"Default",option:"default"},"prism-dark":"Dark","prism-funky":"Funky","prism-okaidia":{title:"Okaidia",owner:"ocodia"},"prism-twilight":{title:"Twilight",owner:"remybach"},"prism-coy":{title:"Coy",owner:"tshedor"},"prism-solarizedlight":{title:"Solarized Light",owner:"hectormatos2011 "},"prism-tomorrow":{title:"Tomorrow Night",owner:"Rosey"}},languages:{meta:{path:"components/prism-{id}",noCSS:!0,examplesPath:"examples/prism-{id}",addCheckAll:!0},markup:{title:"Markup",alias:["html","xml","svg","mathml","ssml","atom","rss"],aliasTitles:{html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",ssml:"SSML",atom:"Atom",rss:"RSS"},option:"default"},css:{title:"CSS",option:"default",modify:"markup"},clike:{title:"C-like",option:"default"},javascript:{title:"JavaScript",require:"clike",modify:"markup",optional:"regex",alias:"js",option:"default"},abap:{title:"ABAP",owner:"dellagustin"},abnf:{title:"ABNF",owner:"RunDevelopment"},actionscript:{title:"ActionScript",require:"javascript",modify:"markup",owner:"Golmote"},ada:{title:"Ada",owner:"Lucretia"},agda:{title:"Agda",owner:"xy-ren"},al:{title:"AL",owner:"RunDevelopment"},antlr4:{title:"ANTLR4",alias:"g4",owner:"RunDevelopment"},apacheconf:{title:"Apache Configuration",owner:"GuiTeK"},apex:{title:"Apex",require:["clike","sql"],owner:"RunDevelopment"},apl:{title:"APL",owner:"ngn"},applescript:{title:"AppleScript",owner:"Golmote"},aql:{title:"AQL",owner:"RunDevelopment"},arduino:{title:"Arduino",require:"cpp",alias:"ino",owner:"dkern"},arff:{title:"ARFF",owner:"Golmote"},armasm:{title:"ARM Assembly",alias:"arm-asm",owner:"RunDevelopment"},arturo:{title:"Arturo",alias:"art",optional:["bash","css","javascript","markup","markdown","sql"],owner:"drkameleon"},asciidoc:{alias:"adoc",title:"AsciiDoc",owner:"Golmote"},aspnet:{title:"ASP.NET (C#)",require:["markup","csharp"],owner:"nauzilus"},asm6502:{title:"6502 Assembly",owner:"kzurawel"},asmatmel:{title:"Atmel AVR Assembly",owner:"cerkit"},autohotkey:{title:"AutoHotkey",owner:"aviaryan"},autoit:{title:"AutoIt",owner:"Golmote"},avisynth:{title:"AviSynth",alias:"avs",owner:"Zinfidel"},"avro-idl":{title:"Avro IDL",alias:"avdl",owner:"RunDevelopment"},awk:{title:"AWK",alias:"gawk",aliasTitles:{gawk:"GAWK"},owner:"RunDevelopment"},bash:{title:"Bash",alias:["sh","shell"],aliasTitles:{sh:"Shell",shell:"Shell"},owner:"zeitgeist87"},basic:{title:"BASIC",owner:"Golmote"},batch:{title:"Batch",owner:"Golmote"},bbcode:{title:"BBcode",alias:"shortcode",aliasTitles:{shortcode:"Shortcode"},owner:"RunDevelopment"},bbj:{title:"BBj",owner:"hyyan"},bicep:{title:"Bicep",owner:"johnnyreilly"},birb:{title:"Birb",require:"clike",owner:"Calamity210"},bison:{title:"Bison",require:"c",owner:"Golmote"},bnf:{title:"BNF",alias:"rbnf",aliasTitles:{rbnf:"RBNF"},owner:"RunDevelopment"},bqn:{title:"BQN",owner:"yewscion"},brainfuck:{title:"Brainfuck",owner:"Golmote"},brightscript:{title:"BrightScript",owner:"RunDevelopment"},bro:{title:"Bro",owner:"wayward710"},bsl:{title:"BSL (1C:Enterprise)",alias:"oscript",aliasTitles:{oscript:"OneScript"},owner:"Diversus23"},c:{title:"C",require:"clike",owner:"zeitgeist87"},csharp:{title:"C#",require:"clike",alias:["cs","dotnet"],owner:"mvalipour"},cpp:{title:"C++",require:"c",owner:"zeitgeist87"},cfscript:{title:"CFScript",require:"clike",alias:"cfc",owner:"mjclemente"},chaiscript:{title:"ChaiScript",require:["clike","cpp"],owner:"RunDevelopment"},cil:{title:"CIL",owner:"sbrl"},cilkc:{title:"Cilk/C",require:"c",alias:"cilk-c",owner:"OpenCilk"},cilkcpp:{title:"Cilk/C++",require:"cpp",alias:["cilk-cpp","cilk"],owner:"OpenCilk"},clojure:{title:"Clojure",owner:"troglotit"},cmake:{title:"CMake",owner:"mjrogozinski"},cobol:{title:"COBOL",owner:"RunDevelopment"},coffeescript:{title:"CoffeeScript",require:"javascript",alias:"coffee",owner:"R-osey"},concurnas:{title:"Concurnas",alias:"conc",owner:"jasontatton"},csp:{title:"Content-Security-Policy",owner:"ScottHelme"},cooklang:{title:"Cooklang",owner:"ahue"},coq:{title:"Coq",owner:"RunDevelopment"},crystal:{title:"Crystal",require:"ruby",owner:"MakeNowJust"},"css-extras":{title:"CSS Extras",require:"css",modify:"css",owner:"milesj"},csv:{title:"CSV",owner:"RunDevelopment"},cue:{title:"CUE",owner:"RunDevelopment"},cypher:{title:"Cypher",owner:"RunDevelopment"},d:{title:"D",require:"clike",owner:"Golmote"},dart:{title:"Dart",require:"clike",owner:"Golmote"},dataweave:{title:"DataWeave",owner:"machaval"},dax:{title:"DAX",owner:"peterbud"},dhall:{title:"Dhall",owner:"RunDevelopment"},diff:{title:"Diff",owner:"uranusjr"},django:{title:"Django/Jinja2",require:"markup-templating",alias:"jinja2",owner:"romanvm"},"dns-zone-file":{title:"DNS zone file",owner:"RunDevelopment",alias:"dns-zone"},docker:{title:"Docker",alias:"dockerfile",owner:"JustinBeckwith"},dot:{title:"DOT (Graphviz)",alias:"gv",optional:"markup",owner:"RunDevelopment"},ebnf:{title:"EBNF",owner:"RunDevelopment"},editorconfig:{title:"EditorConfig",owner:"osipxd"},eiffel:{title:"Eiffel",owner:"Conaclos"},ejs:{title:"EJS",require:["javascript","markup-templating"],owner:"RunDevelopment",alias:"eta",aliasTitles:{eta:"Eta"}},elixir:{title:"Elixir",owner:"Golmote"},elm:{title:"Elm",owner:"zwilias"},etlua:{title:"Embedded Lua templating",require:["lua","markup-templating"],owner:"RunDevelopment"},erb:{title:"ERB",require:["ruby","markup-templating"],owner:"Golmote"},erlang:{title:"Erlang",owner:"Golmote"},"excel-formula":{title:"Excel Formula",alias:["xlsx","xls"],owner:"RunDevelopment"},fsharp:{title:"F#",require:"clike",owner:"simonreynolds7"},factor:{title:"Factor",owner:"catb0t"},false:{title:"False",owner:"edukisto"},"firestore-security-rules":{title:"Firestore security rules",require:"clike",owner:"RunDevelopment"},flow:{title:"Flow",require:"javascript",owner:"Golmote"},fortran:{title:"Fortran",owner:"Golmote"},ftl:{title:"FreeMarker Template Language",require:"markup-templating",owner:"RunDevelopment"},gml:{title:"GameMaker Language",alias:"gamemakerlanguage",require:"clike",owner:"LiarOnce"},gap:{title:"GAP (CAS)",owner:"RunDevelopment"},gcode:{title:"G-code",owner:"RunDevelopment"},gdscript:{title:"GDScript",owner:"RunDevelopment"},gedcom:{title:"GEDCOM",owner:"Golmote"},gettext:{title:"gettext",alias:"po",owner:"RunDevelopment"},gherkin:{title:"Gherkin",owner:"hason"},git:{title:"Git",owner:"lgiraudel"},glsl:{title:"GLSL",require:"c",owner:"Golmote"},gn:{title:"GN",alias:"gni",owner:"RunDevelopment"},"linker-script":{title:"GNU Linker Script",alias:"ld",owner:"RunDevelopment"},go:{title:"Go",require:"clike",owner:"arnehormann"},"go-module":{title:"Go module",alias:"go-mod",owner:"RunDevelopment"},gradle:{title:"Gradle",require:"clike",owner:"zeabdelkhalek-badido18"},graphql:{title:"GraphQL",optional:"markdown",owner:"Golmote"},groovy:{title:"Groovy",require:"clike",owner:"robfletcher"},haml:{title:"Haml",require:"ruby",optional:["css","css-extras","coffeescript","erb","javascript","less","markdown","scss","textile"],owner:"Golmote"},handlebars:{title:"Handlebars",require:"markup-templating",alias:["hbs","mustache"],aliasTitles:{mustache:"Mustache"},owner:"Golmote"},haskell:{title:"Haskell",alias:"hs",owner:"bholst"},haxe:{title:"Haxe",require:"clike",optional:"regex",owner:"Golmote"},hcl:{title:"HCL",owner:"outsideris"},hlsl:{title:"HLSL",require:"c",owner:"RunDevelopment"},hoon:{title:"Hoon",owner:"matildepark"},http:{title:"HTTP",optional:["csp","css","hpkp","hsts","javascript","json","markup","uri"],owner:"danielgtaylor"},hpkp:{title:"HTTP Public-Key-Pins",owner:"ScottHelme"},hsts:{title:"HTTP Strict-Transport-Security",owner:"ScottHelme"},ichigojam:{title:"IchigoJam",owner:"BlueCocoa"},icon:{title:"Icon",owner:"Golmote"},"icu-message-format":{title:"ICU Message Format",owner:"RunDevelopment"},idris:{title:"Idris",alias:"idr",owner:"KeenS",require:"haskell"},ignore:{title:".ignore",owner:"osipxd",alias:["gitignore","hgignore","npmignore"],aliasTitles:{gitignore:".gitignore",hgignore:".hgignore",npmignore:".npmignore"}},inform7:{title:"Inform 7",owner:"Golmote"},ini:{title:"Ini",owner:"aviaryan"},io:{title:"Io",owner:"AlesTsurko"},j:{title:"J",owner:"Golmote"},java:{title:"Java",require:"clike",owner:"sherblot"},javadoc:{title:"JavaDoc",require:["markup","java","javadoclike"],modify:"java",optional:"scala",owner:"RunDevelopment"},javadoclike:{title:"JavaDoc-like",modify:["java","javascript","php"],owner:"RunDevelopment"},javastacktrace:{title:"Java stack trace",owner:"RunDevelopment"},jexl:{title:"Jexl",owner:"czosel"},jolie:{title:"Jolie",require:"clike",owner:"thesave"},jq:{title:"JQ",owner:"RunDevelopment"},jsdoc:{title:"JSDoc",require:["javascript","javadoclike","typescript"],modify:"javascript",optional:["actionscript","coffeescript"],owner:"RunDevelopment"},"js-extras":{title:"JS Extras",require:"javascript",modify:"javascript",optional:["actionscript","coffeescript","flow","n4js","typescript"],owner:"RunDevelopment"},json:{title:"JSON",alias:"webmanifest",aliasTitles:{webmanifest:"Web App Manifest"},owner:"CupOfTea696"},json5:{title:"JSON5",require:"json",owner:"RunDevelopment"},jsonp:{title:"JSONP",require:"json",owner:"RunDevelopment"},jsstacktrace:{title:"JS stack trace",owner:"sbrl"},"js-templates":{title:"JS Templates",require:"javascript",modify:"javascript",optional:["css","css-extras","graphql","markdown","markup","sql"],owner:"RunDevelopment"},julia:{title:"Julia",owner:"cdagnino"},keepalived:{title:"Keepalived Configure",owner:"dev-itsheng"},keyman:{title:"Keyman",owner:"mcdurdin"},kotlin:{title:"Kotlin",alias:["kt","kts"],aliasTitles:{kts:"Kotlin Script"},require:"clike",owner:"Golmote"},kumir:{title:"KuMir (\u041a\u0443\u041c\u0438\u0440)",alias:"kum",owner:"edukisto"},kusto:{title:"Kusto",owner:"RunDevelopment"},latex:{title:"LaTeX",alias:["tex","context"],aliasTitles:{tex:"TeX",context:"ConTeXt"},owner:"japborst"},latte:{title:"Latte",require:["clike","markup-templating","php"],owner:"nette"},less:{title:"Less",require:"css",optional:"css-extras",owner:"Golmote"},lilypond:{title:"LilyPond",require:"scheme",alias:"ly",owner:"RunDevelopment"},liquid:{title:"Liquid",require:"markup-templating",owner:"cinhtau"},lisp:{title:"Lisp",alias:["emacs","elisp","emacs-lisp"],owner:"JuanCaicedo"},livescript:{title:"LiveScript",owner:"Golmote"},llvm:{title:"LLVM IR",owner:"porglezomp"},log:{title:"Log file",optional:"javastacktrace",owner:"RunDevelopment"},lolcode:{title:"LOLCODE",owner:"Golmote"},lua:{title:"Lua",owner:"Golmote"},magma:{title:"Magma (CAS)",owner:"RunDevelopment"},makefile:{title:"Makefile",owner:"Golmote"},markdown:{title:"Markdown",require:"markup",optional:"yaml",alias:"md",owner:"Golmote"},"markup-templating":{title:"Markup templating",require:"markup",owner:"Golmote"},mata:{title:"Mata",owner:"RunDevelopment"},matlab:{title:"MATLAB",owner:"Golmote"},maxscript:{title:"MAXScript",owner:"RunDevelopment"},mel:{title:"MEL",owner:"Golmote"},mermaid:{title:"Mermaid",owner:"RunDevelopment"},metafont:{title:"METAFONT",owner:"LaeriExNihilo"},mizar:{title:"Mizar",owner:"Golmote"},mongodb:{title:"MongoDB",owner:"airs0urce",require:"javascript"},monkey:{title:"Monkey",owner:"Golmote"},moonscript:{title:"MoonScript",alias:"moon",owner:"RunDevelopment"},n1ql:{title:"N1QL",owner:"TMWilds"},n4js:{title:"N4JS",require:"javascript",optional:"jsdoc",alias:"n4jsd",owner:"bsmith-n4"},"nand2tetris-hdl":{title:"Nand To Tetris HDL",owner:"stephanmax"},naniscript:{title:"Naninovel Script",owner:"Elringus",alias:"nani"},nasm:{title:"NASM",owner:"rbmj"},neon:{title:"NEON",owner:"nette"},nevod:{title:"Nevod",owner:"nezaboodka"},nginx:{title:"nginx",owner:"volado"},nim:{title:"Nim",owner:"Golmote"},nix:{title:"Nix",owner:"Golmote"},nsis:{title:"NSIS",owner:"idleberg"},objectivec:{title:"Objective-C",require:"c",alias:"objc",owner:"uranusjr"},ocaml:{title:"OCaml",owner:"Golmote"},odin:{title:"Odin",owner:"edukisto"},opencl:{title:"OpenCL",require:"c",modify:["c","cpp"],owner:"Milania1"},openqasm:{title:"OpenQasm",alias:"qasm",owner:"RunDevelopment"},oz:{title:"Oz",owner:"Golmote"},parigp:{title:"PARI/GP",owner:"Golmote"},parser:{title:"Parser",require:"markup",owner:"Golmote"},pascal:{title:"Pascal",alias:"objectpascal",aliasTitles:{objectpascal:"Object Pascal"},owner:"Golmote"},pascaligo:{title:"Pascaligo",owner:"DefinitelyNotAGoat"},psl:{title:"PATROL Scripting Language",owner:"bertysentry"},pcaxis:{title:"PC-Axis",alias:"px",owner:"RunDevelopment"},peoplecode:{title:"PeopleCode",alias:"pcode",owner:"RunDevelopment"},perl:{title:"Perl",owner:"Golmote"},php:{title:"PHP",require:"markup-templating",owner:"milesj"},phpdoc:{title:"PHPDoc",require:["php","javadoclike"],modify:"php",owner:"RunDevelopment"},"php-extras":{title:"PHP Extras",require:"php",modify:"php",owner:"milesj"},"plant-uml":{title:"PlantUML",alias:"plantuml",owner:"RunDevelopment"},plsql:{title:"PL/SQL",require:"sql",owner:"Golmote"},powerquery:{title:"PowerQuery",alias:["pq","mscript"],owner:"peterbud"},powershell:{title:"PowerShell",owner:"nauzilus"},processing:{title:"Processing",require:"clike",owner:"Golmote"},prolog:{title:"Prolog",owner:"Golmote"},promql:{title:"PromQL",owner:"arendjr"},properties:{title:".properties",owner:"Golmote"},protobuf:{title:"Protocol Buffers",require:"clike",owner:"just-boris"},pug:{title:"Pug",require:["markup","javascript"],optional:["coffeescript","ejs","handlebars","less","livescript","markdown","scss","stylus","twig"],owner:"Golmote"},puppet:{title:"Puppet",owner:"Golmote"},pure:{title:"Pure",optional:["c","cpp","fortran"],owner:"Golmote"},purebasic:{title:"PureBasic",require:"clike",alias:"pbfasm",owner:"HeX0R101"},purescript:{title:"PureScript",require:"haskell",alias:"purs",owner:"sriharshachilakapati"},python:{title:"Python",alias:"py",owner:"multipetros"},qsharp:{title:"Q#",require:"clike",alias:"qs",owner:"fedonman"},q:{title:"Q (kdb+ database)",owner:"Golmote"},qml:{title:"QML",require:"javascript",owner:"RunDevelopment"},qore:{title:"Qore",require:"clike",owner:"temnroegg"},r:{title:"R",owner:"Golmote"},racket:{title:"Racket",require:"scheme",alias:"rkt",owner:"RunDevelopment"},cshtml:{title:"Razor C#",alias:"razor",require:["markup","csharp"],optional:["css","css-extras","javascript","js-extras"],owner:"RunDevelopment"},jsx:{title:"React JSX",require:["markup","javascript"],optional:["jsdoc","js-extras","js-templates"],owner:"vkbansal"},tsx:{title:"React TSX",require:["jsx","typescript"]},reason:{title:"Reason",require:"clike",owner:"Golmote"},regex:{title:"Regex",owner:"RunDevelopment"},rego:{title:"Rego",owner:"JordanSh"},renpy:{title:"Ren'py",alias:"rpy",owner:"HyuchiaDiego"},rescript:{title:"ReScript",alias:"res",owner:"vmarcosp"},rest:{title:"reST (reStructuredText)",owner:"Golmote"},rip:{title:"Rip",owner:"ravinggenius"},roboconf:{title:"Roboconf",owner:"Golmote"},robotframework:{title:"Robot Framework",alias:"robot",owner:"RunDevelopment"},ruby:{title:"Ruby",require:"clike",alias:"rb",owner:"samflores"},rust:{title:"Rust",owner:"Golmote"},sas:{title:"SAS",optional:["groovy","lua","sql"],owner:"Golmote"},sass:{title:"Sass (Sass)",require:"css",optional:"css-extras",owner:"Golmote"},scss:{title:"Sass (SCSS)",require:"css",optional:"css-extras",owner:"MoOx"},scala:{title:"Scala",require:"java",owner:"jozic"},scheme:{title:"Scheme",owner:"bacchus123"},"shell-session":{title:"Shell session",require:"bash",alias:["sh-session","shellsession"],owner:"RunDevelopment"},smali:{title:"Smali",owner:"RunDevelopment"},smalltalk:{title:"Smalltalk",owner:"Golmote"},smarty:{title:"Smarty",require:"markup-templating",optional:"php",owner:"Golmote"},sml:{title:"SML",alias:"smlnj",aliasTitles:{smlnj:"SML/NJ"},owner:"RunDevelopment"},solidity:{title:"Solidity (Ethereum)",alias:"sol",require:"clike",owner:"glachaud"},"solution-file":{title:"Solution file",alias:"sln",owner:"RunDevelopment"},soy:{title:"Soy (Closure Template)",require:"markup-templating",owner:"Golmote"},sparql:{title:"SPARQL",require:"turtle",owner:"Triply-Dev",alias:"rq"},"splunk-spl":{title:"Splunk SPL",owner:"RunDevelopment"},sqf:{title:"SQF: Status Quo Function (Arma 3)",require:"clike",owner:"RunDevelopment"},sql:{title:"SQL",owner:"multipetros"},squirrel:{title:"Squirrel",require:"clike",owner:"RunDevelopment"},stan:{title:"Stan",owner:"RunDevelopment"},stata:{title:"Stata Ado",require:["mata","java","python"],owner:"RunDevelopment"},iecst:{title:"Structured Text (IEC 61131-3)",owner:"serhioromano"},stylus:{title:"Stylus",owner:"vkbansal"},supercollider:{title:"SuperCollider",alias:"sclang",owner:"RunDevelopment"},swift:{title:"Swift",owner:"chrischares"},systemd:{title:"Systemd configuration file",owner:"RunDevelopment"},"t4-templating":{title:"T4 templating",owner:"RunDevelopment"},"t4-cs":{title:"T4 Text Templates (C#)",require:["t4-templating","csharp"],alias:"t4",owner:"RunDevelopment"},"t4-vb":{title:"T4 Text Templates (VB)",require:["t4-templating","vbnet"],owner:"RunDevelopment"},tap:{title:"TAP",owner:"isaacs",require:"yaml"},tcl:{title:"Tcl",owner:"PeterChaplin"},tt2:{title:"Template Toolkit 2",require:["clike","markup-templating"],owner:"gflohr"},textile:{title:"Textile",require:"markup",optional:"css",owner:"Golmote"},toml:{title:"TOML",owner:"RunDevelopment"},tremor:{title:"Tremor",alias:["trickle","troy"],owner:"darach",aliasTitles:{trickle:"trickle",troy:"troy"}},turtle:{title:"Turtle",alias:"trig",aliasTitles:{trig:"TriG"},owner:"jakubklimek"},twig:{title:"Twig",require:"markup-templating",owner:"brandonkelly"},typescript:{title:"TypeScript",require:"javascript",optional:"js-templates",alias:"ts",owner:"vkbansal"},typoscript:{title:"TypoScript",alias:"tsconfig",aliasTitles:{tsconfig:"TSConfig"},owner:"dkern"},unrealscript:{title:"UnrealScript",alias:["uscript","uc"],owner:"RunDevelopment"},uorazor:{title:"UO Razor Script",owner:"jaseowns"},uri:{title:"URI",alias:"url",aliasTitles:{url:"URL"},owner:"RunDevelopment"},v:{title:"V",require:"clike",owner:"taggon"},vala:{title:"Vala",require:"clike",optional:"regex",owner:"TemplarVolk"},vbnet:{title:"VB.Net",require:"basic",owner:"Bigsby"},velocity:{title:"Velocity",require:"markup",owner:"Golmote"},verilog:{title:"Verilog",owner:"a-rey"},vhdl:{title:"VHDL",owner:"a-rey"},vim:{title:"vim",owner:"westonganger"},"visual-basic":{title:"Visual Basic",alias:["vb","vba"],aliasTitles:{vba:"VBA"},owner:"Golmote"},warpscript:{title:"WarpScript",owner:"RunDevelopment"},wasm:{title:"WebAssembly",owner:"Golmote"},"web-idl":{title:"Web IDL",alias:"webidl",owner:"RunDevelopment"},wgsl:{title:"WGSL",owner:"Dr4gonthree"},wiki:{title:"Wiki markup",require:"markup",owner:"Golmote"},wolfram:{title:"Wolfram language",alias:["mathematica","nb","wl"],aliasTitles:{mathematica:"Mathematica",nb:"Mathematica Notebook"},owner:"msollami"},wren:{title:"Wren",owner:"clsource"},xeora:{title:"Xeora",require:"markup",alias:"xeoracube",aliasTitles:{xeoracube:"XeoraCube"},owner:"freakmaxi"},"xml-doc":{title:"XML doc (.net)",require:"markup",modify:["csharp","fsharp","vbnet"],owner:"RunDevelopment"},xojo:{title:"Xojo (REALbasic)",owner:"Golmote"},xquery:{title:"XQuery",require:"markup",owner:"Golmote"},yaml:{title:"YAML",alias:"yml",owner:"hason"},yang:{title:"YANG",owner:"RunDevelopment"},zig:{title:"Zig",owner:"RunDevelopment"}},plugins:{meta:{path:"plugins/{id}/prism-{id}",link:"plugins/{id}/"},"line-highlight":{title:"Line Highlight",description:"Highlights specific lines and/or line ranges."},"line-numbers":{title:"Line Numbers",description:"Line number at the beginning of code lines.",owner:"kuba-kubula"},"show-invisibles":{title:"Show Invisibles",description:"Show hidden characters such as tabs and line breaks.",optional:["autolinker","data-uri-highlight"]},autolinker:{title:"Autolinker",description:"Converts URLs and emails in code to clickable links. Parses Markdown links in comments."},wpd:{title:"WebPlatform Docs",description:'Makes tokens link to <a href="https://webplatform.github.io/docs/">WebPlatform.org documentation</a>. The links open in a new tab.'},"custom-class":{title:"Custom Class",description:"This plugin allows you to prefix Prism's default classes (<code>.comment</code> can become <code>.namespace--comment</code>) or replace them with your defined ones (like <code>.editor__comment</code>). You can even add new classes.",owner:"dvkndn",noCSS:!0},"file-highlight":{title:"File Highlight",description:"Fetch external files and highlight them with Prism. Used on the Prism website itself.",noCSS:!0},"show-language":{title:"Show Language",description:"Display the highlighted language in code blocks (inline code does not show the label).",owner:"nauzilus",noCSS:!0,require:"toolbar"},"jsonp-highlight":{title:"JSONP Highlight",description:"Fetch content with JSONP and highlight some interesting content (e.g. GitHub/Gists or Bitbucket API).",noCSS:!0,owner:"nauzilus"},"highlight-keywords":{title:"Highlight Keywords",description:"Adds special CSS classes for each keyword for fine-grained highlighting.",owner:"vkbansal",noCSS:!0},"remove-initial-line-feed":{title:"Remove initial line feed",description:"Removes the initial line feed in code blocks.",owner:"Golmote",noCSS:!0},"inline-color":{title:"Inline color",description:"Adds a small inline preview for colors in style sheets.",require:"css-extras",owner:"RunDevelopment"},previewers:{title:"Previewers",description:"Previewers for angles, colors, gradients, easing and time.",require:"css-extras",owner:"Golmote"},autoloader:{title:"Autoloader",description:"Automatically loads the needed languages to highlight the code blocks.",owner:"Golmote",noCSS:!0},"keep-markup":{title:"Keep Markup",description:"Prevents custom markup from being dropped out during highlighting.",owner:"Golmote",optional:"normalize-whitespace",noCSS:!0},"command-line":{title:"Command Line",description:"Display a command line with a prompt and, optionally, the output/response from the commands.",owner:"chriswells0"},"unescaped-markup":{title:"Unescaped Markup",description:"Write markup without having to escape anything."},"normalize-whitespace":{title:"Normalize Whitespace",description:"Supports multiple operations to normalize whitespace in code blocks.",owner:"zeitgeist87",optional:"unescaped-markup",noCSS:!0},"data-uri-highlight":{title:"Data-URI Highlight",description:"Highlights data-URI contents.",owner:"Golmote",noCSS:!0},toolbar:{title:"Toolbar",description:"Attach a toolbar for plugins to easily register buttons on the top of a code block.",owner:"mAAdhaTTah"},"copy-to-clipboard":{title:"Copy to Clipboard Button",description:"Add a button that copies the code block to the clipboard when clicked.",owner:"mAAdhaTTah",require:"toolbar",noCSS:!0},"download-button":{title:"Download Button",description:"A button in the toolbar of a code block adding a convenient way to download a code file.",owner:"Golmote",require:"toolbar",noCSS:!0},"match-braces":{title:"Match braces",description:"Highlights matching braces.",owner:"RunDevelopment"},"diff-highlight":{title:"Diff Highlight",description:"Highlights the code inside diff blocks.",owner:"RunDevelopment",require:"diff"},"filter-highlight-all":{title:"Filter highlightAll",description:"Filters the elements the <code>highlightAll</code> and <code>highlightAllUnder</code> methods actually highlight.",owner:"RunDevelopment",noCSS:!0},treeview:{title:"Treeview",description:"A language with special styles to highlight file system tree structures.",owner:"Golmote"}}})},8722:(e,t,n)=>{const r=n(6969),o=n(8380),a=new Set;function i(e){void 0===e?e=Object.keys(r.languages).filter((e=>"meta"!=e)):Array.isArray(e)||(e=[e]);const t=[...a,...Object.keys(Prism.languages)];o(r,e,t).load((e=>{if(!(e in r.languages))return void(i.silent||console.warn("Language does not exist: "+e));const t="./prism-"+e;delete n.c[n(3157).resolve(t)],delete Prism.languages[e],n(3157)(t),a.add(e)}))}i.silent=!1,e.exports=i},9700:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,a){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof a&&!a(e))return e;for(var o,s=i.length;-1!==n.code.indexOf(o=t(r,s));)++s;return i[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,a=Object.keys(n.tokenStack);!function i(s){for(var l=0;l<s.length&&!(o>=a.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=a[o],d=n.tokenStack[u],p="string"==typeof c?c:c.content,f=t(r,u),m=p.indexOf(f);if(m>-1){++o;var g=p.substring(0,m),h=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),b=p.substring(m+f.length),y=[];g&&y.push.apply(y,i([g])),y.push(h),b&&y.push.apply(y,i([b])),"string"==typeof c?s.splice.apply(s,[l,1].concat(y)):c.content=y}}else c.content&&i(c.content)}return s}(n.tokens)}}}})}(Prism)},8692:(e,t,n)=>{var r={"./":8722};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=8692},3157:(e,t,n)=>{var r={"./":8722};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=3157},8380:e=>{"use strict";var t=function(){var e=function(){};function t(e,t){Array.isArray(e)?e.forEach(t):null!=e&&t(e,0)}function n(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n]]=!0;return t}function r(e){var n={},r=[];function o(r,a){if(!(r in n)){a.push(r);var i=a.indexOf(r);if(i<a.length-1)throw new Error("Circular dependency: "+a.slice(i).join(" -> "));var s={},l=e[r];if(l){function c(t){if(!(t in e))throw new Error(r+" depends on an unknown component "+t);if(!(t in s))for(var i in o(t,a),s[t]=!0,n[t])s[i]=!0}t(l.require,c),t(l.optional,c),t(l.modify,c)}n[r]=s,a.pop()}}return function(e){var t=n[e];return t||(o(e,r),t=n[e]),t}}function o(e){for(var t in e)return!0;return!1}return function(a,i,s){var l=function(e){var t={};for(var n in e){var r=e[n];for(var o in r)if("meta"!=o){var a=r[o];t[o]="string"==typeof a?{title:a}:a}}return t}(a),c=function(e){var n;return function(r){if(r in e)return r;if(!n)for(var o in n={},e){var a=e[o];t(a&&a.alias,(function(t){if(t in n)throw new Error(t+" cannot be alias for both "+o+" and "+n[t]);if(t in e)throw new Error(t+" cannot be alias of "+o+" because it is a component.");n[t]=o}))}return n[r]||r}}(l);i=i.map(c),s=(s||[]).map(c);var u=n(i),d=n(s);i.forEach((function e(n){var r=l[n];t(r&&r.require,(function(t){t in d||(u[t]=!0,e(t))}))}));for(var p,f=r(l),m=u;o(m);){for(var g in p={},m){var h=l[g];t(h&&h.modify,(function(e){e in d&&(p[e]=!0)}))}for(var b in d)if(!(b in u))for(var y in f(b))if(y in u){p[b]=!0;break}for(var v in m=p)u[v]=!0}var w={getIds:function(){var e=[];return w.load((function(t){e.push(t)})),e},load:function(t,n){return function(t,n,r,o){var a=o?o.series:void 0,i=o?o.parallel:e,s={},l={};function c(e){if(e in s)return s[e];l[e]=!0;var o,u=[];for(var d in t(e))d in n&&u.push(d);if(0===u.length)o=r(e);else{var p=i(u.map((function(e){var t=c(e);return delete l[e],t})));a?o=a(p,(function(){return r(e)})):r(e)}return s[e]=o}for(var u in n)c(u);var d=[];for(var p in l)d.push(s[p]);return i(d)}(f,u,t,n)}};return w}}();e.exports=t},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2551:(e,t,n)=>{"use strict";var r=n(6540),o=n(9982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 i=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[: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]*$/,f={},m={};function g(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){h[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];h[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){h[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){h[e]=new g(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){h[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){h[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){h[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){h[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){h[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=h.hasOwnProperty(t)?h[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(m,e)||!d.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(b,y);h[t]=new g(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(b,y);h[t]=new g(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(b,y);h[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){h[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),h.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){h[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),T=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var O=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var M,I=Object.assign;function F(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var z=!1;function B(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var o=c.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function $(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function U(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case E:return"Profiler";case _:return"StrictMode";case P:return"Suspense";case j:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return U(e(t))}catch(n){}}return null}function q(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=(e=t.render).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 U(t);case 8:return t===_?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function G(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){Z(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ae(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={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},me=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function he(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var be=I({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 ye(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 we=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,_e=null;function Ee(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Ce(e){Se?_e?_e.push(e):_e=[e]:Se=e}function Te(){if(Se){var e=Se,t=_e;if(_e=Se=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Ae(e,t){return e(t)}function Pe(){}var je=!1;function Le(e,t,n){if(je)return e(t,n);je=!0;try{return Ae(e,t,n)}finally{je=!1,(null!==Se||null!==_e)&&(Pe(),Te())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ne=!1;if(u)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch(ue){Ne=!1}function De(e,t,n,r,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Me=!1,Ie=null,Fe=!1,ze=null,Be={onError:function(e){Me=!0,Ie=e}};function $e(e,t,n,r,o,a,i,s,l){Me=!1,Ie=null,De.apply(Be,arguments)}function Ue(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ge(e){if(Ue(e)!==e)throw Error(a(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ge(o),e;if(i===r)return Ge(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var We=o.unstable_scheduleCallback,Ke=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Ze=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~o;0!==s?r=dt(s):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ft(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;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var kt,xt,St,_t,Et,Ct=!1,Tt=[],At=null,Pt=null,jt=null,Lt=new Map,Rt=new Map,Nt=[],Ot="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 Dt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":jt=null;break;case"pointerover":case"pointerout":Lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Mt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function It(e){var t=vo(e.target);if(null!==t){var n=Ue(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=qe(n)))return e.blockedOn=t,void Et(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function zt(e,t,n){Ft(e)&&n.delete(t)}function Bt(){Ct=!1,null!==At&&Ft(At)&&(At=null),null!==Pt&&Ft(Pt)&&(Pt=null),null!==jt&&Ft(jt)&&(jt=null),Lt.forEach(zt),Rt.forEach(zt)}function $t(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function Ut(e){function t(t){return $t(t,e)}if(0<Tt.length){$t(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&$t(At,e),null!==Pt&&$t(Pt,e),null!==jt&&$t(jt,e),Lt.forEach(t),Rt.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)It(n),null===n.blockedOn&&Nt.shift()}var qt=w.ReactCurrentBatchConfig,Gt=!0;function Ht(e,t,n,r){var o=vt,a=qt.transition;qt.transition=null;try{vt=1,Wt(e,t,n,r)}finally{vt=o,qt.transition=a}}function Vt(e,t,n,r){var o=vt,a=qt.transition;qt.transition=null;try{vt=4,Wt(e,t,n,r)}finally{vt=o,qt.transition=a}}function Wt(e,t,n,r){if(Gt){var o=Qt(e,t,n,r);if(null===o)Gr(e,t,r,Kt,n),Dt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return At=Mt(At,e,t,n,r,o),!0;case"dragenter":return Pt=Mt(Pt,e,t,n,r,o),!0;case"mouseover":return jt=Mt(jt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Lt.set(a,Mt(Lt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Rt.set(a,Mt(Rt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Ot.indexOf(e)){for(;null!==o;){var a=wo(o);if(null!==a&&kt(a),null===(a=Qt(e,t,n,r))&&Gr(e,t,r,Kt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Gr(e,t,r,null,n)}}var Kt=null;function Qt(e,t,n,r){if(Kt=null,null!==(e=vo(e=ke(r))))if(null===(t=Ue(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Yt(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(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=I({},cn,{view:0,detail:0}),pn=on(dn),fn=I({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),mn=on(fn),gn=on(I({},fn,{dataTransfer:0})),hn=on(I({},dn,{relatedTarget:0})),bn=on(I({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=I({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=on(yn),wn=on(I({},cn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={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"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function En(){return _n}var Cn=I({},dn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(Cn),An=on(I({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=on(I({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),jn=on(I({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=I({},fn,{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}),Rn=on(Ln),Nn=[9,13,27,32],On=u&&"CompositionEvent"in window,Dn=null;u&&"documentMode"in document&&(Dn=document.documentMode);var Mn=u&&"TextEvent"in window&&!Dn,In=u&&(!On||Dn&&8<Dn&&11>=Dn),Fn=String.fromCharCode(32),zn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var qn={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 Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Hn(e,t,n,r){Ce(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Wn=null;function Kn(e){Fr(e,0)}function Qn(e){if(W(ko(e)))return e}function Yn(e,t){if("change"===e)return t}var Zn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Xn=Jn}else Xn=!1;Zn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Wn=Vn=null)}function nr(e){if("value"===e.propertyName&&Qn(Wn)){var t=[];Hn(t,Wn,e,ke(e)),Le(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Wn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Wn)}function ar(e,t){if("click"===e)return Qn(t)}function ir(e,t){if("input"===e||"change"===e)return Qn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){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=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ur(n,a);var i=ur(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,hr=null,br=null,yr=null,vr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==hr||hr!==K(r)||("selectionStart"in(r=hr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Vr(br,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},Sr={},_r={};function Er(e){if(Sr[e])return Sr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Sr[e]=n[t];return e}u&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Cr=Er("animationend"),Tr=Er("animationiteration"),Ar=Er("animationstart"),Pr=Er("transitionend"),jr=new Map,Lr="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 Rr(e,t){jr.set(e,t),l(t,[e])}for(var Nr=0;Nr<Lr.length;Nr++){var Or=Lr[Nr];Rr(Or.toLowerCase(),"on"+(Or[0].toUpperCase()+Or.slice(1)))}Rr(Cr,"onAnimationEnd"),Rr(Tr,"onAnimationIteration"),Rr(Ar,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Pr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="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(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Ir(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,c){if($e.apply(this,arguments),Me){if(!Me)throw Error(a(198));var u=Ie;Me=!1,Ie=null,Fe||(Fe=!0,ze=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;Ir(o,s,c),a=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;Ir(o,s,c),a=l}}}if(Fe)throw e=ze,Fe=!1,ze=null,e}function zr(e,t){var n=t[ho];void 0===n&&(n=t[ho]=new Set);var r=e+"__bubble";n.has(r)||(qr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),qr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[$r]){e[$r]=!0,i.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Br("selectionchange",!1,t))}}function qr(e,t,n,r){switch(Yt(t)){case 1:var o=Ht;break;case 4:o=Vt;break;default:o=Wt}n=o.bind(null,t,n,e),o=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Gr(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=vo(s)))return;if(5===(l=i.tag)||6===l){r=a=i;continue e}s=s.parentNode}}r=r.return}Le((function(){var r=a,o=ke(n),i=[];e:{var s=jr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":c="focus",l=hn;break;case"focusout":c="blur",l=hn;break;case"beforeblur":case"afterblur":l=hn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Cr:case Tr:case Ar:l=bn;break;case Pr:l=jn;break;case"scroll":l=pn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,m=r;null!==m;){var g=(f=m).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==p&&(null!=(g=Re(m,p))&&u.push(Hr(m,g,f)))),d)break;m=m.return}0<u.length&&(s=new l(s,c,null,n,o),i.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!vo(c)&&!c[go])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?vo(c):null)&&(c!==(d=Ue(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=mn,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=An,g="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==l?s:ko(l),f=null==c?s:ko(c),(s=new u(g,m+"leave",l,n,o)).target=d,s.relatedTarget=f,g=null,vo(o)===r&&((u=new u(p,m+"enter",c,n,o)).target=f,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(p=c,m=0,f=u=l;f;f=Wr(f))m++;for(f=0,g=p;g;g=Wr(g))f++;for(;0<m-f;)u=Wr(u),m--;for(;0<f-m;)p=Wr(p),f--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=Wr(u),p=Wr(p)}u=null}else u=null;null!==l&&Kr(i,s,l,u,!1),null!==c&&null!==d&&Kr(i,d,c,u,!0)}if("select"===(l=(s=r?ko(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var h=Yn;else if(Gn(s))if(Zn)h=ir;else{h=or;var b=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(h=ar);switch(h&&(h=h(e,r))?Hn(i,h,n,o):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&ee(s,"number",s.value)),b=r?ko(r):window,e){case"focusin":(Gn(b)||"true"===b.contentEditable)&&(hr=b,br=r,yr=null);break;case"focusout":yr=br=hr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,wr(i,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(i,n,o)}var y;if(On)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Un?Bn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(In&&"ko"!==n.locale&&(Un||"onCompositionStart"!==v?"onCompositionEnd"===v&&Un&&(y=en()):(Xt="value"in(Zt=o)?Zt.value:Zt.textContent,Un=!0)),0<(b=Vr(r,v)).length&&(v=new wn(v,e,null,n,o),i.push({event:v,listeners:b}),y?v.data=y:null!==(y=$n(n))&&(v.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(zn=!0,Fn);case"textInput":return(e=t.data)===Fn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!On&&Bn(e,t)?(e=en(),Jt=Xt=Zt=null,Un=!1,e):null;switch(e){case"paste":default: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 In&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}Fr(i,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Re(e,n))&&r.unshift(Hr(e,a,o)),null!=(a=Re(e,t))&&r.push(Hr(e,a,o))),e=e.return}return r}function Wr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Re(n,a))&&i.unshift(Hr(n,l,s)):o||null!=(l=Re(n,a))&&i.push(Hr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Qr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Zr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Yr,"")}function Xr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(a(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ut(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ut(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,mo="__reactProps$"+po,go="__reactContainer$"+po,ho="__reactEvents$"+po,bo="__reactListeners$"+po,yo="__reactHandles$"+po;function vo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[fo]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ko(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function xo(e){return e[mo]||null}var So=[],_o=-1;function Eo(e){return{current:e}}function Co(e){0>_o||(e.current=So[_o],So[_o]=null,_o--)}function To(e,t){_o++,So[_o]=e.current,e.current=t}var Ao={},Po=Eo(Ao),jo=Eo(!1),Lo=Ao;function Ro(e,t){var n=e.type.contextTypes;if(!n)return Ao;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function No(e){return null!=(e=e.childContextTypes)}function Oo(){Co(jo),Co(Po)}function Do(e,t,n){if(Po.current!==Ao)throw Error(a(168));To(Po,t),To(jo,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,q(e)||"Unknown",o));return I({},n,r)}function Io(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ao,Lo=Po.current,To(Po,e),To(jo,jo.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Mo(e,t,Lo),r.__reactInternalMemoizedMergedChildContext=e,Co(jo),Co(Po),To(Po,e)):Co(jo),To(jo,n)}var zo=null,Bo=!1,$o=!1;function Uo(e){null===zo?zo=[e]:zo.push(e)}function qo(){if(!$o&&null!==zo){$o=!0;var e=0,t=vt;try{var n=zo;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zo=null,Bo=!1}catch(o){throw null!==zo&&(zo=zo.slice(e+1)),We(Je,qo),o}finally{vt=t,$o=!1}}return null}var Go=[],Ho=0,Vo=null,Wo=0,Ko=[],Qo=0,Yo=null,Zo=1,Xo="";function Jo(e,t){Go[Ho++]=Wo,Go[Ho++]=Vo,Vo=e,Wo=t}function ea(e,t,n){Ko[Qo++]=Zo,Ko[Qo++]=Xo,Ko[Qo++]=Yo,Yo=e;var r=Zo;e=Xo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Zo=1<<32-it(t)+o|n<<o|r,Xo=a+e}else Zo=1<<a|n<<o|r,Xo=e}function ta(e){null!==e.return&&(Jo(e,1),ea(e,1,0))}function na(e){for(;e===Vo;)Vo=Go[--Ho],Go[Ho]=null,Wo=Go[--Ho],Go[Ho]=null;for(;e===Yo;)Yo=Ko[--Qo],Ko[Qo]=null,Xo=Ko[--Qo],Ko[Qo]=null,Zo=Ko[--Qo],Ko[Qo]=null}var ra=null,oa=null,aa=!1,ia=null;function sa(e,t){var n=Rc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function la(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Zo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Rc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ca(e){return!(!(1&e.mode)||128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var n=t;if(!la(e,t)){if(ca(e))throw Error(a(418));t=co(n.nextSibling);var r=ra;t&&la(e,t)?sa(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function pa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw fa(),Error(a(418));for(;t;)sa(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?co(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=oa;e;)e=co(e.nextSibling)}function ma(){oa=ra=null,aa=!1}function ga(e){null===ia?ia=[e]:ia.push(e)}var ha=w.ReactCurrentBatchConfig;function ba(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ya=Eo(null),va=null,wa=null,ka=null;function xa(){ka=wa=va=null}function Sa(e){var t=ya.current;Co(ya),e._currentValue=t}function _a(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ea(e,t){va=e,ka=wa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Ca(e){var t=e._currentValue;if(ka!==e)if(e={context:e,memoizedValue:t,next:null},null===wa){if(null===va)throw Error(a(308));wa=e,va.dependencies={lanes:0,firstContext:e}}else wa=wa.next=e;return t}var Ta=null;function Aa(e){null===Ta?Ta=[e]:Ta.push(e)}function Pa(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Aa(t)):(n.next=o.next,o.next=n),t.interleaved=n,ja(e,r)}function ja(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var La=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Na(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 Oa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Da(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Pl){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ja(e,n)}return null===(o=r.interleaved)?(t.next=t,Aa(r)):(t.next=o.next,o.next=t),r.interleaved=t,ja(e,n)}function Ma(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ia(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fa(e,t,n,r){var o=e.updateQueue;La=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,u=c=l=null,s=a;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(p=t,f=n,g.tag){case 1:if("function"==typeof(m=g.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(f,d,p):m))break e;d=I({},d,p);break e;case 2:La=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,i|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Il|=i,e.lanes=i,e.memoizedState=d}}function za(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Ba=(new r.Component).refs;function $a(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ua={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=Oa(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Da(e,a,o))&&(rc(t,e,o,r),Ma(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=Oa(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Da(e,a,o))&&(rc(t,e,o,r),Ma(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),o=Oa(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Da(e,o,r))&&(rc(t,e,r,n),Ma(t,e,r))}};function qa(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,a))}function Ga(e,t,n){var r=!1,o=Ao,a=t.contextType;return"object"==typeof a&&null!==a?a=Ca(a):(o=No(t)?Lo:Po.current,a=(r=null!=(r=t.contextTypes))?Ro(e,o):Ao),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ua,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ha(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ua.enqueueReplaceState(t,t.state,null)}function Va(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ba,Ra(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Ca(a):(a=No(t)?Lo:Po.current,o.context=Ro(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&($a(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ua.enqueueReplaceState(o,o.state,null),Fa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Wa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===Ba&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ka(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qa(e){return(0,e._init)(e._payload)}function Ya(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Oc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===R&&Qa(a)===t.type)?((r=o(t,n.props)).ref=Wa(e,t,n),r.return=e,r):((r=Dc(n.type,n.key,n.props,null,e.mode,r)).ref=Wa(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Mc(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Fc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Dc(t.type,t.key,t.props,null,e.mode,n)).ref=Wa(e,null,t),n.return=e,n;case x:return(t=zc(t,e.mode,n)).return=e,t;case R:return p(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Mc(t,e.mode,n,null)).return=e,t;Ka(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===o?c(e,t,n,r):null;case x:return n.key===o?u(e,t,n,r):null;case R:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||D(n))return null!==o?null:d(e,t,n,r,null);Ka(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return m(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||D(r))return d(t,e=e.get(n)||null,r,o,null);Ka(t,r)}return null}function g(o,a,s,l){for(var c=null,u=null,d=a,g=a=0,h=null;null!==d&&g<s.length;g++){d.index>g?(h=d,d=null):h=d.sibling;var b=f(o,d,s[g],l);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(o,d),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b,d=h}if(g===s.length)return n(o,d),aa&&Jo(o,g),c;if(null===d){for(;g<s.length;g++)null!==(d=p(o,s[g],l))&&(a=i(d,a,g),null===u?c=d:u.sibling=d,u=d);return aa&&Jo(o,g),c}for(d=r(o,d);g<s.length;g++)null!==(h=m(d,o,g,s[g],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?g:h.key),a=i(h,a,g),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach((function(e){return t(o,e)})),aa&&Jo(o,g),c}function h(o,s,l,c){var u=D(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,g=s,h=s=0,b=null,y=l.next();null!==g&&!y.done;h++,y=l.next()){g.index>h?(b=g,g=null):b=g.sibling;var v=f(o,g,y.value,c);if(null===v){null===g&&(g=b);break}e&&g&&null===v.alternate&&t(o,g),s=i(v,s,h),null===d?u=v:d.sibling=v,d=v,g=b}if(y.done)return n(o,g),aa&&Jo(o,h),u;if(null===g){for(;!y.done;h++,y=l.next())null!==(y=p(o,y.value,c))&&(s=i(y,s,h),null===d?u=y:d.sibling=y,d=y);return aa&&Jo(o,h),u}for(g=r(o,g);!y.done;h++,y=l.next())null!==(y=m(g,o,h,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?h:y.key),s=i(y,s,h),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(o,e)})),aa&&Jo(o,h),u}return function e(r,a,i,l){if("object"==typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case k:e:{for(var c=i.key,u=a;null!==u;){if(u.key===c){if((c=i.type)===S){if(7===u.tag){n(r,u.sibling),(a=o(u,i.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===R&&Qa(c)===u.type){n(r,u.sibling),(a=o(u,i.props)).ref=Wa(r,u,i),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===S?((a=Mc(i.props.children,r.mode,l,i.key)).return=r,r=a):((l=Dc(i.type,i.key,i.props,null,r.mode,l)).ref=Wa(r,a,i),l.return=r,r=l)}return s(r);case x:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=zc(i,r.mode,l)).return=r,r=a}return s(r);case R:return e(r,a,(u=i._init)(i._payload),l)}if(te(i))return g(r,a,i,l);if(D(i))return h(r,a,i,l);Ka(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Fc(i,r.mode,l)).return=r,r=a),s(r)):n(r,a)}}var Za=Ya(!0),Xa=Ya(!1),Ja={},ei=Eo(Ja),ti=Eo(Ja),ni=Eo(Ja);function ri(e){if(e===Ja)throw Error(a(174));return e}function oi(e,t){switch(To(ni,t),To(ti,e),To(ei,Ja),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Co(ei),To(ei,t)}function ai(){Co(ei),Co(ti),Co(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=le(t,e.type);t!==n&&(To(ti,e),To(ei,n))}function si(e){ti.current===e&&(Co(ei),Co(ti))}var li=Eo(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var pi=w.ReactCurrentDispatcher,fi=w.ReactCurrentBatchConfig,mi=0,gi=null,hi=null,bi=null,yi=!1,vi=!1,wi=0,ki=0;function xi(){throw Error(a(321))}function Si(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function _i(e,t,n,r,o,i){if(mi=i,gi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?ss:ls,e=n(r,o),vi){i=0;do{if(vi=!1,wi=0,25<=i)throw Error(a(301));i+=1,bi=hi=null,t.updateQueue=null,pi.current=cs,e=n(r,o)}while(vi)}if(pi.current=is,t=null!==hi&&null!==hi.next,mi=0,bi=hi=gi=null,yi=!1,t)throw Error(a(300));return e}function Ei(){var e=0!==wi;return wi=0,e}function Ci(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===bi?gi.memoizedState=bi=e:bi=bi.next=e,bi}function Ti(){if(null===hi){var e=gi.alternate;e=null!==e?e.memoizedState:null}else e=hi.next;var t=null===bi?gi.memoizedState:bi.next;if(null!==t)bi=t,hi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(hi=e).memoizedState,baseState:hi.baseState,baseQueue:hi.baseQueue,queue:hi.queue,next:null},null===bi?gi.memoizedState=bi=e:bi=bi.next=e}return bi}function Ai(e,t){return"function"==typeof t?t(e):t}function Pi(e){var t=Ti(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=hi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=s=null,c=null,u=i;do{var d=u.lane;if((mi&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,gi.lanes|=d,Il|=d}u=u.next}while(null!==u&&u!==i);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(ws=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,gi.lanes|=i,Il|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ji(e){var t=Ti(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);sr(i,t.memoizedState)||(ws=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Li(){}function Ri(e,t){var n=gi,r=Ti(),o=t(),i=!sr(r.memoizedState,o);if(i&&(r.memoizedState=o,ws=!0),r=r.queue,Gi(Di.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==bi&&1&bi.memoizedState.tag){if(n.flags|=2048,zi(9,Oi.bind(null,n,r,o,t),void 0,null),null===jl)throw Error(a(349));30&mi||Ni(n,t,o)}return o}function Ni(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oi(e,t,n,r){t.value=n,t.getSnapshot=r,Mi(t)&&Ii(e)}function Di(e,t,n){return n((function(){Mi(t)&&Ii(e)}))}function Mi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ii(e){var t=ja(e,1);null!==t&&rc(t,e,1,-1)}function Fi(e){var t=Ci();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,gi,e),[t.memoizedState,e]}function zi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bi(){return Ti().memoizedState}function $i(e,t,n,r){var o=Ci();gi.flags|=e,o.memoizedState=zi(1|t,n,void 0,void 0===r?null:r)}function Ui(e,t,n,r){var o=Ti();r=void 0===r?null:r;var a=void 0;if(null!==hi){var i=hi.memoizedState;if(a=i.destroy,null!==r&&Si(r,i.deps))return void(o.memoizedState=zi(t,n,a,r))}gi.flags|=e,o.memoizedState=zi(1|t,n,a,r)}function qi(e,t){return $i(8390656,8,e,t)}function Gi(e,t){return Ui(2048,8,e,t)}function Hi(e,t){return Ui(4,2,e,t)}function Vi(e,t){return Ui(4,4,e,t)}function Wi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ki(e,t,n){return n=null!=n?n.concat([e]):null,Ui(4,4,Wi.bind(null,t,e),n)}function Qi(){}function Yi(e,t){var n=Ti();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zi(e,t){var n=Ti();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xi(e,t,n){return 21&mi?(sr(n,t)||(n=gt(),gi.lanes|=n,Il|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n)}function Ji(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=fi.transition;fi.transition={};try{e(!1),t()}finally{vt=n,fi.transition=r}}function es(){return Ti().memoizedState}function ts(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))os(t,n);else if(null!==(n=Pa(e,t,n,r))){rc(n,e,r,tc()),as(n,t,r)}}function ns(e,t,n){var r=nc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))os(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,i)){var l=t.interleaved;return null===l?(o.next=o,Aa(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Pa(e,t,o,r))&&(rc(n,e,r,o=tc()),as(n,t,r))}}function rs(e){var t=e.alternate;return e===gi||null!==t&&t===gi}function os(e,t){vi=yi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function as(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var is={readContext:Ca,useCallback:xi,useContext:xi,useEffect:xi,useImperativeHandle:xi,useInsertionEffect:xi,useLayoutEffect:xi,useMemo:xi,useReducer:xi,useRef:xi,useState:xi,useDebugValue:xi,useDeferredValue:xi,useTransition:xi,useMutableSource:xi,useSyncExternalStore:xi,useId:xi,unstable_isNewReconciler:!1},ss={readContext:Ca,useCallback:function(e,t){return Ci().memoizedState=[e,void 0===t?null:t],e},useContext:Ca,useEffect:qi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,$i(4194308,4,Wi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){return $i(4,2,e,t)},useMemo:function(e,t){var n=Ci();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ci();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,gi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ci().memoizedState=e},useState:Fi,useDebugValue:Qi,useDeferredValue:function(e){return Ci().memoizedState=e},useTransition:function(){var e=Fi(!1),t=e[0];return e=Ji.bind(null,e[1]),Ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=gi,o=Ci();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===jl)throw Error(a(349));30&mi||Ni(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,qi(Di.bind(null,r,i,e),[e]),r.flags|=2048,zi(9,Oi.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ci(),t=jl.identifierPrefix;if(aa){var n=Xo;t=":"+t+"R"+(n=(Zo&~(1<<32-it(Zo)-1)).toString(32)+n),0<(n=wi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ki++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Ca,useCallback:Yi,useContext:Ca,useEffect:Gi,useImperativeHandle:Ki,useInsertionEffect:Hi,useLayoutEffect:Vi,useMemo:Zi,useReducer:Pi,useRef:Bi,useState:function(){return Pi(Ai)},useDebugValue:Qi,useDeferredValue:function(e){return Xi(Ti(),hi.memoizedState,e)},useTransition:function(){return[Pi(Ai)[0],Ti().memoizedState]},useMutableSource:Li,useSyncExternalStore:Ri,useId:es,unstable_isNewReconciler:!1},cs={readContext:Ca,useCallback:Yi,useContext:Ca,useEffect:Gi,useImperativeHandle:Ki,useInsertionEffect:Hi,useLayoutEffect:Vi,useMemo:Zi,useReducer:ji,useRef:Bi,useState:function(){return ji(Ai)},useDebugValue:Qi,useDeferredValue:function(e){var t=Ti();return null===hi?t.memoizedState=e:Xi(t,hi.memoizedState,e)},useTransition:function(){return[ji(Ai)[0],Ti().memoizedState]},useMutableSource:Li,useSyncExternalStore:Ri,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var o=n}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ps(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function ms(e,t,n){(n=Oa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Vl=r),ps(0,t)},n}function gs(e,t,n){(n=Oa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ps(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){ps(0,t),"function"!=typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function hs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function bs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Oa(-1,1)).tag=2,Da(n,t,1))),n.lanes|=1),e)}var vs=w.ReactCurrentOwner,ws=!1;function ks(e,t,n,r){t.child=null===e?Xa(t,null,n,r):Za(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var a=t.ref;return Ea(t,o),r=_i(e,t,n,r,a,o),n=Ei(),null===e||ws?(aa&&n&&ta(t),t.flags|=1,ks(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ss(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Nc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,_s(e,t,a,r,o))}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Oc(a,r)).ref=t.ref,e.return=t,t.child=e}function _s(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(lr(a,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=a,!(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);131072&e.flags&&(ws=!0)}}return Ts(e,t,n,r,o)}function Es(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Ol,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,To(Ol,Nl),Nl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ol,Nl),Nl|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,To(Ol,Nl),Nl|=r;return ks(e,t,o,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,o){var a=No(n)?Lo:Po.current;return a=Ro(t,a),Ea(t,o),n=_i(e,t,n,r,a,o),r=Ei(),null===e||ws?(aa&&r&&ta(t),t.flags|=1,ks(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function As(e,t,n,r,o){if(No(n)){var a=!0;Io(t)}else a=!1;if(Ea(t,o),null===t.stateNode)Gs(e,t),Ga(t,n,r),Va(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=Ca(c):c=Ro(t,c=No(n)?Lo:Po.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==c)&&Ha(t,i,r,c),La=!1;var p=t.memoizedState;i.state=p,Fa(t,r,i,o),l=t.memoizedState,s!==r||p!==l||jo.current||La?("function"==typeof u&&($a(t,n,u,r),l=t.memoizedState),(s=La||qa(t,n,s,r,p,l,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Na(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ba(t.type,s),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ca(l):l=Ro(t,l=No(n)?Lo:Po.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||p!==l)&&Ha(t,i,r,l),La=!1,p=t.memoizedState,i.state=p,Fa(t,r,i,o);var m=t.memoizedState;s!==d||p!==m||jo.current||La?("function"==typeof f&&($a(t,n,f,r),m=t.memoizedState),(c=La||qa(t,n,c,r,p,m,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ps(e,t,n,r,a,o)}function Ps(e,t,n,r,o,a){Cs(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&Fo(t,n,!1),Hs(e,t,a);r=t.stateNode,vs.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Za(t,e.child,null,a),t.child=Za(t,null,s,a)):ks(e,t,s,a),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function js(e){var t=e.stateNode;t.pendingContext?Do(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Do(0,t.context,!1),oi(e,t.containerInfo)}function Ls(e,t,n,r,o){return ma(),ga(o),t.flags|=256,ks(e,t,n,r),t.child}var Rs,Ns,Os,Ds,Ms={dehydrated:null,treeContext:null,retryLane:0};function Is(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fs(e,t,n){var r,o=t.pendingProps,i=li.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),To(li,1&i),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Ic(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Mc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Is(n),t.memoizedState=Ms,e):zs(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=ds(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ic({mode:"visible",children:r.children},o,0,null),(i=Mc(i,o,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Za(t,e.child,null,s),t.child.memoizedState=Is(s),t.memoizedState=Ms,i);if(!(1&t.mode))return Bs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=ds(i=Error(a(419)),r,void 0))}if(l=!!(s&e.childLanes),ws||l){if(null!==(r=jl)){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|s)?0:o)&&o!==i.retryLane&&(i.retryLane=o,ja(e,o),rc(r,e,o,-1))}return hc(),Bs(e,t,s,r=ds(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ac.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=co(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Ko[Qo++]=Zo,Ko[Qo++]=Xo,Ko[Qo++]=Yo,Zo=e.id,Xo=e.overflow,Yo=t),t=zs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(s){s=o.fallback,l=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 1&l||t.child===i?(o=Oc(i,c)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null),null!==r?s=Oc(r,s):(s=Mc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Is(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,o}return e=(s=e.child).sibling,o=Oc(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function zs(e,t){return(t=Ic({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&ga(r),Za(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $s(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_a(e.return,t,n)}function Us(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function qs(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(ks(e,t,r.children,n),2&(r=li.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$s(e,n,t);else if(19===e.tag)$s(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(li,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ci(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Us(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ci(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Us(t,!0,n,null,a);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Gs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Il|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Oc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Oc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return No(t.type)&&Oo(),Ws(t),null;case 3:return r=t.stateNode,ai(),Co(jo),Co(Po),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ia&&(sc(ia),ia=null))),Ns(e,t),Ws(t),null;case 5:si(t);var o=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Os(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Ws(t),null}if(e=ri(ei.current),pa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[fo]=t,r[mo]=i,e=!!(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(o=0;o<Dr.length;o++)zr(Dr[o],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":Y(r,i),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},zr("invalid",r);break;case"textarea":oe(r,i),zr("invalid",r)}for(var l in ye(n,i),o=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&zr("scroll",r)}switch(n){case"input":V(r),J(r,i,!0);break;case"textarea":V(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fo]=t,e[mo]=r,Rs(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":zr("cancel",e),zr("close",e),o=r;break;case"iframe":case"object":case"embed":zr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Dr.length;o++)zr(Dr[o],e);o=r;break;case"source":zr("error",e),o=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),o=r;break;case"details":zr("toggle",e),o=r;break;case"input":Y(e,r),o=Q(e,r),zr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=I({},r,{value:void 0}),zr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),zr("invalid",e)}for(i in ye(n,o),c=o)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?he(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&zr("scroll",e):null!=u&&v(e,i,u,l))}switch(n){case"input":V(e),J(e,r,!1);break;case"textarea":V(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Ds(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=ri(ni.current),ri(ei.current),pa(t)){if(r=t.stateNode,n=t.memoizedProps,r[fo]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Xr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fo]=t,t.stateNode=r}return Ws(t),null;case 13:if(Co(li),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&1&t.mode&&!(128&t.flags))fa(),ma(),t.flags|=98560,i=!1;else if(i=pa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[fo]=t}else ma(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),i=!1}else null!==ia&&(sc(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&li.current?0===Dl&&(Dl=3):hc())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return ai(),Ns(e,t),null===e&&Ur(t.stateNode.containerInfo),Ws(t),null;case 10:return Sa(t.type._context),Ws(t),null;case 19:if(Co(li),null===(i=t.memoizedState))return Ws(t),null;if(r=!!(128&t.flags),null===(l=i.rendering))if(r)Vs(i,!1);else{if(0!==Dl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ci(e))){for(t.flags|=128,Vs(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return To(li,1&li.current|2),t.child}e=e.sibling}null!==i.tail&&Ze()>ql&&(t.flags|=128,r=!0,Vs(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ci(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!aa)return Ws(t),null}else 2*Ze()-i.renderingStartTime>ql&&1073741824!==n&&(t.flags|=128,r=!0,Vs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ze(),t.sibling=null,n=li.current,To(li,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return pc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Nl)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Qs(e,t){switch(na(t),t.tag){case 1:return No(t.type)&&Oo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),Co(jo),Co(Po),di(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(Co(li),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ma()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Co(li),null;case 4:return ai(),null;case 10:return Sa(t.type._context),null;case 22:case 23:return pc(),null;default:return null}}Rs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ns=function(){},Os=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ri(ei.current);var a,i=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),i=[];break;case"select":o=I({},o,{value:void 0}),r=I({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&zr("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Ds=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Zs=!1,Xs="function"==typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Ec(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){Ec(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&tl(t,n,a)}o=o.next}while(o!==r)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[mo],delete t[ho],delete t[bo],delete t[yo])),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 sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,pl=!1;function fl(e,t,n){for(n=n.child;null!==n;)ml(e,t,n),n=n.sibling}function ml(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Zs||el(n,t);case 6:var r=dl,o=pl;dl=null,fl(e,t,n),pl=o,null!==(dl=r)&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ut(e)):lo(dl,n.stateNode));break;case 4:r=dl,o=pl,dl=n.stateNode.containerInfo,pl=!0,fl(e,t,n),dl=r,pl=o;break;case 0:case 11:case 14:case 15:if(!Zs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&tl(n,t,i),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Zs&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ec(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Zs=(r=Zs)||null!==n.memoizedState,fl(e,t,n),Zs=r):fl(e,t,n);break;default:fl(e,t,n)}}function gl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Pc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,pl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===dl)throw Error(a(160));ml(i,s,o),dl=null,pl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Ec(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bl(t,e),t=t.sibling}function bl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hl(t,e),yl(e),4&r){try{rl(3,e,e.return),ol(3,e)}catch(h){Ec(e,e.return,h)}try{rl(5,e,e.return)}catch(h){Ec(e,e.return,h)}}break;case 1:hl(t,e),yl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(hl(t,e),yl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(h){Ec(e,e.return,h)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&Z(o,i),ve(l,s);var u=ve(l,i);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?he(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):v(o,d,p,u)}switch(l){case"input":X(o,i);break;case"textarea":ae(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?ne(o,!!i.multiple,m,!1):f!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[mo]=i}catch(h){Ec(e,e.return,h)}}break;case 6:if(hl(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(h){Ec(e,e.return,h)}}break;case 3:if(hl(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(h){Ec(e,e.return,h)}break;case 4:default:hl(t,e),yl(e);break;case 13:hl(t,e),yl(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Ul=Ze())),4&r&&gl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Zs=(u=Zs)||d,hl(t,e),Zs=u):hl(t,e),yl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(p=Js=d;null!==Js;){switch(m=(f=Js).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:el(f,f.return);var g=f.stateNode;if("function"==typeof g.componentWillUnmount){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(h){Ec(r,n,h)}}break;case 5:el(f,f.return);break;case 22:if(null!==f.memoizedState){xl(p);continue}}null!==m?(m.return=f,Js=m):xl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",s))}catch(h){Ec(e,e.return,h)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(h){Ec(e,e.return,h)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:hl(t,e),yl(e),4&r&&gl(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),ul(e,ll(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;cl(e,ll(e),i);break;default:throw Error(a(161))}}catch(s){Ec(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Js=e,wl(e,t,n)}function wl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var o=Js,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Ys;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Zs;s=Ys;var c=Zs;if(Ys=i,(Zs=l)&&!c)for(Js=o;null!==Js;)l=(i=Js).child,22===i.tag&&null!==i.memoizedState?Sl(o):null!==l?(l.return=i,Js=l):Sl(o);for(;null!==a;)Js=a,wl(a,t,n),a=a.sibling;Js=o,Ys=s,Zs=c}kl(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Js=a):kl(e)}}function kl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Zs||ol(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Zs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ba(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&za(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}za(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ut(p)}}}break;default:throw Error(a(163))}Zs||512&t.flags&&al(t)}catch(f){Ec(t,t.return,f)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(l){Ec(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Ec(t,o,l)}}var a=t.return;try{al(t)}catch(l){Ec(t,a,l)}break;case 5:var i=t.return;try{al(t)}catch(l){Ec(t,i,l)}}}catch(l){Ec(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var _l,El=Math.ceil,Cl=w.ReactCurrentDispatcher,Tl=w.ReactCurrentOwner,Al=w.ReactCurrentBatchConfig,Pl=0,jl=null,Ll=null,Rl=0,Nl=0,Ol=Eo(0),Dl=0,Ml=null,Il=0,Fl=0,zl=0,Bl=null,$l=null,Ul=0,ql=1/0,Gl=null,Hl=!1,Vl=null,Wl=null,Kl=!1,Ql=null,Yl=0,Zl=0,Xl=null,Jl=-1,ec=0;function tc(){return 6&Pl?Ze():-1!==Jl?Jl:Jl=Ze()}function nc(e){return 1&e.mode?2&Pl&&0!==Rl?Rl&-Rl:null!==ha.transition?(0===ec&&(ec=gt()),ec):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function rc(e,t,n,r){if(50<Zl)throw Zl=0,Xl=null,Error(a(185));bt(e,n,r),2&Pl&&e===jl||(e===jl&&(!(2&Pl)&&(Fl|=n),4===Dl&&lc(e,Rl)),oc(e,r),1===n&&0===Pl&&!(1&t.mode)&&(ql=Ze()+500,Bo&&qo()))}function oc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),s=1<<i,l=o[i];-1===l?s&n&&!(s&r)||(o[i]=ft(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=pt(e,e===jl?Rl:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Bo=!0,Uo(e)}(cc.bind(null,e)):Uo(cc.bind(null,e)),io((function(){!(6&Pl)&&qo()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=jc(n,ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ac(e,t){if(Jl=-1,ec=0,6&Pl)throw Error(a(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pt(e,e===jl?Rl:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=bc(e,r);else{t=r;var o=Pl;Pl|=2;var i=gc();for(jl===e&&Rl===t||(Gl=null,ql=Ze()+500,fc(e,t));;)try{vc();break}catch(l){mc(e,l)}xa(),Cl.current=i,Pl=o,null!==Ll?t=0:(jl=null,Rl=0,t=Dl)}if(0!==t){if(2===t&&(0!==(o=mt(e))&&(r=o,t=ic(e,o))),1===t)throw n=Ml,fc(e,0),lc(e,r),oc(e,Ze()),n;if(6===t)lc(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!sr(a(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=bc(e,r),2===t&&(i=mt(e),0!==i&&(r=i,t=ic(e,i))),1!==t)))throw n=Ml,fc(e,0),lc(e,r),oc(e,Ze()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:xc(e,$l,Gl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=Ul+500-Ze())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xc.bind(null,e,$l,Gl),t);break}xc(e,$l,Gl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-it(r);i=1<<s,(s=t[s])>o&&(o=s),r&=~i}if(r=o,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,$l,Gl),r);break}xc(e,$l,Gl);break;default:throw Error(a(329))}}}return oc(e,Ze()),e.callbackNode===n?ac.bind(null,e):null}function ic(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=bc(e,t))&&(t=$l,$l=n,null!==t&&sc(t)),e}function sc(e){null===$l?$l=e:$l.push.apply($l,e)}function lc(e,t){for(t&=~zl,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(6&Pl)throw Error(a(327));Sc();var t=pt(e,0);if(!(1&t))return oc(e,Ze()),null;var n=bc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Ml,fc(e,0),lc(e,t),oc(e,Ze()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,$l,Gl),oc(e,Ze()),null}function uc(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(ql=Ze()+500,Bo&&qo())}}function dc(e){null!==Ql&&0===Ql.tag&&!(6&Pl)&&Sc();var t=Pl;Pl|=1;var n=Al.transition,r=vt;try{if(Al.transition=null,vt=1,e)return e()}finally{vt=r,Al.transition=n,!(6&(Pl=t))&&qo()}}function pc(){Nl=Ol.current,Co(Ol)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ll)for(n=Ll.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Oo();break;case 3:ai(),Co(jo),Co(Po),di();break;case 5:si(r);break;case 4:ai();break;case 13:case 19:Co(li);break;case 10:Sa(r.type._context);break;case 22:case 23:pc()}n=n.return}if(jl=e,Ll=e=Oc(e.current,null),Rl=Nl=t,Dl=0,Ml=null,zl=Fl=Il=0,$l=Bl=null,null!==Ta){for(t=0;t<Ta.length;t++)if(null!==(r=(n=Ta[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Ta=null}return e}function mc(e,t){for(;;){var n=Ll;try{if(xa(),pi.current=is,yi){for(var r=gi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}yi=!1}if(mi=0,bi=hi=gi=null,vi=!1,wi=0,Tl.current=null,null===n||null===n.return){Dl=1,Ml=t,Ll=null;break}e:{var i=e,s=n.return,l=n,c=t;if(t=Rl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=bs(s);if(null!==m){m.flags&=-257,ys(m,s,l,0,t),1&m.mode&&hs(i,u,t),c=u;var g=(t=m).updateQueue;if(null===g){var h=new Set;h.add(c),t.updateQueue=h}else g.add(c);break e}if(!(1&t)){hs(i,u,t),hc();break e}c=Error(a(426))}else if(aa&&1&l.mode){var b=bs(s);if(null!==b){!(65536&b.flags)&&(b.flags|=256),ys(b,s,l,0,t),ga(us(c,l));break e}}i=c=us(c,l),4!==Dl&&(Dl=2),null===Bl?Bl=[i]:Bl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ia(i,ms(0,c,t));break e;case 1:l=c;var y=i.type,v=i.stateNode;if(!(128&i.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Wl&&Wl.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,Ia(i,gs(i,l,t));break e}}i=i.return}while(null!==i)}kc(n)}catch(w){t=w,Ll===n&&null!==n&&(Ll=n=n.return);continue}break}}function gc(){var e=Cl.current;return Cl.current=is,null===e?is:e}function hc(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===jl||!(268435455&Il)&&!(268435455&Fl)||lc(jl,Rl)}function bc(e,t){var n=Pl;Pl|=2;var r=gc();for(jl===e&&Rl===t||(Gl=null,fc(e,t));;)try{yc();break}catch(o){mc(e,o)}if(xa(),Pl=n,Cl.current=r,null!==Ll)throw Error(a(261));return jl=null,Rl=0,Dl}function yc(){for(;null!==Ll;)wc(Ll)}function vc(){for(;null!==Ll&&!Qe();)wc(Ll)}function wc(e){var t=_l(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?kc(e):Ll=t,Tl.current=null}function kc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Qs(n,t)))return n.flags&=32767,void(Ll=n);if(null===e)return Dl=6,void(Ll=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ks(n,t,Nl)))return void(Ll=n);if(null!==(t=t.sibling))return void(Ll=t);Ll=t=e}while(null!==t);0===Dl&&(Dl=5)}function xc(e,t,n){var r=vt,o=Al.transition;try{Al.transition=null,vt=1,function(e,t,n,r){do{Sc()}while(null!==Ql);if(6&Pl)throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===jl&&(Ll=jl=null,Rl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Kl||(Kl=!0,jc(tt,(function(){return Sc(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=Al.transition,Al.transition=null;var s=vt;vt=1;var l=Pl;Pl|=4,Tl.current=null,function(e,t){if(eo=Gt,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(k){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var m;p!==n||0!==o&&3!==p.nodeType||(l=s+o),p!==i||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(m=p.firstChild);)f=p,p=m;for(;;){if(p===e)break t;if(f===n&&++u===o&&(l=s),f===i&&++d===r&&(c=s),null!==(m=p.nextSibling))break;f=(p=f).parentNode}p=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Gt=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var g=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var h=g.memoizedProps,b=g.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?h:ba(t.type,h),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(k){Ec(t,t.return,k)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}g=nl,nl=!1}(e,n),bl(n,e),mr(to),Gt=!!eo,to=eo=null,e.current=n,vl(n,e,o),Ye(),Pl=l,vt=s,Al.transition=i}else e.current=n;if(Kl&&(Kl=!1,Ql=e,Yl=o),i=e.pendingLanes,0===i&&(Wl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(t){}}(n.stateNode),oc(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=Vl,Vl=null,e;!!(1&Yl)&&0!==e.tag&&Sc(),i=e.pendingLanes,1&i?e===Xl?Zl++:(Zl=0,Xl=e):Zl=0,qo()}(e,t,n,r)}finally{Al.transition=o,vt=r}return null}function Sc(){if(null!==Ql){var e=wt(Yl),t=Al.transition,n=vt;try{if(Al.transition=null,vt=16>e?16:e,null===Ql)var r=!1;else{if(e=Ql,Ql=null,Yl=0,6&Pl)throw Error(a(331));var o=Pl;for(Pl|=4,Js=e.current;null!==Js;){var i=Js,s=i.child;if(16&Js.flags){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,i)}var p=d.child;if(null!==p)p.return=d,Js=p;else for(;null!==Js;){var f=(d=Js).sibling,m=d.return;if(il(d),d===u){Js=null;break}if(null!==f){f.return=m,Js=f;break}Js=m}}}var g=i.alternate;if(null!==g){var h=g.child;if(null!==h){g.child=null;do{var b=h.sibling;h.sibling=null,h=b}while(null!==h)}}Js=i}}if(2064&i.subtreeFlags&&null!==s)s.return=i,Js=s;else e:for(;null!==Js;){if(2048&(i=Js).flags)switch(i.tag){case 0:case 11:case 15:rl(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Js=y;break e}Js=i.return}}var v=e.current;for(Js=v;null!==Js;){var w=(s=Js).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Js=w;else e:for(s=v;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(x){Ec(l,l.return,x)}if(l===s){Js=null;break e}var k=l.sibling;if(null!==k){k.return=l.return,Js=k;break e}Js=l.return}}if(Pl=o,qo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(x){}r=!0}return r}finally{vt=n,Al.transition=t}}return!1}function _c(e,t,n){e=Da(e,t=ms(0,t=us(n,t),1),1),t=tc(),null!==e&&(bt(e,1,t),oc(e,t))}function Ec(e,t,n){if(3===e.tag)_c(e,e,n);else for(;null!==t;){if(3===t.tag){_c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=Da(t,e=gs(t,e=us(n,e),1),1),e=tc(),null!==t&&(bt(t,1,e),oc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,jl===e&&(Rl&n)===n&&(4===Dl||3===Dl&&(130023424&Rl)===Rl&&500>Ze()-Ul?fc(e,0):zl|=n),oc(e,t)}function Tc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=tc();null!==(e=ja(e,t))&&(bt(e,t,n),oc(e,n))}function Ac(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Pc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Tc(e,n)}function jc(e,t){return We(e,t)}function Lc(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rc(e,t,n,r){return new Lc(e,t,n,r)}function Nc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Oc(e,t){var n=e.alternate;return null===n?((n=Rc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Nc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Mc(n.children,o,i,t);case _:s=8,o|=8;break;case E:return(e=Rc(12,n,t,2|o)).elementType=E,e.lanes=i,e;case P:return(e=Rc(13,n,t,o)).elementType=P,e.lanes=i,e;case j:return(e=Rc(19,n,t,o)).elementType=j,e.lanes=i,e;case N:return Ic(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case T:s=9;break e;case A:s=11;break e;case L:s=14;break e;case R:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Rc(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Mc(e,t,n,r){return(e=Rc(7,e,r,t)).lanes=n,e}function Ic(e,t,n,r){return(e=Rc(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function Fc(e,t,n){return(e=Rc(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Rc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,o){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=ht(0),this.expirationTimes=ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function $c(e,t,n,r,o,a,i,s,l){return e=new Bc(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Rc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ra(a),e}function Uc(e){if(!e)return Ao;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(No(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(No(n))return Mo(e,n,t)}return t}function qc(e,t,n,r,o,a,i,s,l){return(e=$c(n,r,!0,e,0,a,0,s,l)).context=Uc(null),n=e.current,(a=Oa(r=tc(),o=nc(n))).callback=null!=t?t:null,Da(n,a,o),e.current.lanes=o,bt(e,o,r),oc(e,r),e}function Gc(e,t,n,r){var o=t.current,a=tc(),i=nc(o);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Oa(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Da(o,t,i))&&(rc(e,o,i,a),Ma(e,o,i)),i}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}_l=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||jo.current)ws=!0;else{if(!(e.lanes&n||128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:js(t),ma();break;case 5:ii(t);break;case 1:No(t.type)&&Io(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(ya,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(li,1&li.current),t.flags|=128,null):n&t.child.childLanes?Fs(e,t,n):(To(li,1&li.current),null!==(e=Hs(e,t,n))?e.sibling:null);To(li,1&li.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return qs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(li,li.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Hs(e,t,n)}(e,t,n);ws=!!(131072&e.flags)}else ws=!1,aa&&1048576&t.flags&&ea(t,Wo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gs(e,t),e=t.pendingProps;var o=Ro(t,Po.current);Ea(t,n),o=_i(null,t,r,e,o,n);var i=Ei();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,No(r)?(i=!0,Io(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ra(t),o.updater=Ua,t.stateNode=o,o._reactInternals=t,Va(t,r,e,n),t=Ps(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),ks(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Nc(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===L)return 14}return 2}(r),e=ba(r,e),o){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,ba(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ts(e,t,r,o=t.elementType===r?o:ba(r,o),n);case 1:return r=t.type,o=t.pendingProps,As(e,t,r,o=t.elementType===r?o:ba(r,o),n);case 3:e:{if(js(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,Na(e,t),Fa(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ls(e,t,r,n,o=us(Error(a(423)),t));break e}if(r!==o){t=Ls(e,t,r,n,o=us(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=Xa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ma(),r===o){t=Hs(e,t,n);break e}ks(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&ua(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==i&&no(r,i)&&(t.flags|=32),Cs(e,t),ks(e,t,s,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Fs(e,t,n);case 4:return oi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Za(t,null,r,n):ks(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:ba(r,o),n);case 7:return ks(e,t,t.pendingProps,n),t.child;case 8:case 12:return ks(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,To(ya,r._currentValue),r._currentValue=s,null!==i)if(sr(i.value,s)){if(i.children===o.children&&!jo.current){t=Hs(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=Oa(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),_a(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),_a(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ks(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ea(t,n),r=r(o=Ca(o)),t.flags|=1,ks(e,t,r,n),t.child;case 14:return o=ba(r=t.type,t.pendingProps),Ss(e,t,r,o=ba(r.type,o),n);case 15:return _s(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ba(r,o),Gs(e,t),t.tag=1,No(r)?(e=!0,Io(t)):e=!1,Ea(t,n),Ga(t,r,o),Va(t,r,o,n),Ps(null,t,r,!0,e,n);case 19:return qs(e,t,n);case 22:return Es(e,t,n)}throw Error(a(156,t.tag))};var Kc="function"==typeof reportError?reportError:function(e){console.error(e)};function Qc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function eu(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=Hc(i);s.call(e)}}Gc(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Hc(i);a.call(e)}}var i=qc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=i,e[go]=i.current,Ur(8===e.nodeType?e.parentNode:e),dc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=$c(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[go]=l.current,Ur(8===e.nodeType?e.parentNode:e),dc((function(){Gc(t,l,n,r)})),l}(n,t,e,o,r);return Hc(i)}Yc.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Gc(e,t,null,null)},Yc.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Gc(null,e,null,null)})),t[go]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&It(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),oc(t,Ze()),!(6&Pl)&&(ql=Ze()+500,qo()))}break;case 13:dc((function(){var t=ja(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Wc(e,1)}},xt=function(e){if(13===e.tag){var t=ja(e,134217728);if(null!==t)rc(t,e,134217728,tc());Wc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=ja(e,t);if(null!==n)rc(n,e,t,tc());Wc(e,t)}},_t=function(){return vt},Et=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},xe=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(a(90));W(r),X(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=uc,Pe=dc;var tu={usingClientEntryPoint:!1,Events:[wo,ko,xo,Ce,Te,uc]},nu={findFiberByHostInstance:vo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{ot=ou.inject(ru),at=ou}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Zc(e))throw Error(a(299));var n=!1,r="",o=Kc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=$c(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Ur(8===e.nodeType?e.parentNode:e),new Qc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(a(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Zc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",s=Kc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=qc(t,null,e,1,null!=n?n:null,o,0,i,s),e[go]=t.current,Ur(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Yc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(a(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(a(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},5338:(e,t,n)=>{"use strict";var r=n(961);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2551)},115:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(!a(e[l],i[l]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!a(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(e[l]!==i[l])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof i.toString)return e.toString()===i.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(i,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!a(e[c[l]],i[c[l]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},545:(e,t,n)=>{"use strict";n.d(t,{mg:()=>J,vd:()=>H});var r=n(6540),o=n(5556),a=n.n(o),i=n(115),s=n.n(i),l=n(311),c=n.n(l),u=n(2833),d=n.n(u);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var h={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},b={rel:["amphtml","canonical","alternate"]},y={type:["application/ld+json"]},v={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},w=Object.keys(h).map((function(e){return h[e]})),k={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},x=Object.keys(k).reduce((function(e,t){return e[k[t]]=t,e}),{}),S=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},_=function(e){var t=S(e,h.TITLE),n=S(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=S(e,"defaultTitle");return t||r||void 0},E=function(e){return S(e,"onChangeClientState")||function(){}},C=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return p({},e,t)}),{})},T=function(e,t){return t.filter((function(e){return void 0!==e[h.BASE]})).map((function(e){return e[h.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o+=1){var a=r[o].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},A=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n,a=Object.keys(e),i=0;i<a.length;i+=1){var s=a[i],l=s.toLowerCase();-1===t.indexOf(l)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][c]&&(o[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var a=Object.keys(o),i=0;i<a.length;i+=1){var s=a[i],l=p({},r[s],o[s]);r[s]=l}return e}),[]).reverse()},P=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},j=function(e){return Array.isArray(e)?e.join(""):e},L=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},R=function(e,t){var n;return p({},e,((n={})[t]=void 0,n))},N=[h.NOSCRIPT,h.SCRIPT,h.STYLE],O=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},D=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},M=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[k[n]||n]=e[n],t}),t)},I=function(e,t){return t.map((function(t,n){var o,a=((o={key:n})["data-rh"]=!0,o);return Object.keys(t).forEach((function(e){var n=k[e]||e;"innerHTML"===n||"cssText"===n?a.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:a[n]=t[e]})),r.createElement(e,a)}))},F=function(e,t,n){switch(e){case h.TITLE:return{toComponent:function(){return n=t.titleAttributes,(o={key:e=t.title})["data-rh"]=!0,a=M(n,o),[r.createElement(h.TITLE,a,e)];var e,n,o,a},toString:function(){return function(e,t,n,r){var o=D(n),a=j(t);return o?"<"+e+' data-rh="true" '+o+">"+O(a,r)+"</"+e+">":"<"+e+' data-rh="true">'+O(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return M(t)},toString:function(){return D(t)}};default:return{toComponent:function(){return I(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+O(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===N.indexOf(e);return t+"<"+e+' data-rh="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},z=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.noscriptTags,i=e.styleTags,s=e.title,l=void 0===s?"":s,c=e.titleAttributes,u=e.linkTags,d=e.metaTags,p=e.scriptTags,f={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var m=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,o=L(e.metaTags,v),a=L(t,b),i=L(n,y);return{priorityMethods:{toComponent:function(){return[].concat(I(h.META,o.priority),I(h.LINK,a.priority),I(h.SCRIPT,i.priority))},toString:function(){return F(h.META,o.priority,r)+" "+F(h.LINK,a.priority,r)+" "+F(h.SCRIPT,i.priority,r)}},metaTags:o.default,linkTags:a.default,scriptTags:i.default}}(e);f=m.priorityMethods,u=m.linkTags,d=m.metaTags,p=m.scriptTags}return{priority:f,base:F(h.BASE,t,r),bodyAttributes:F("bodyAttributes",n,r),htmlAttributes:F("htmlAttributes",o,r),link:F(h.LINK,u,r),meta:F(h.META,d,r),noscript:F(h.NOSCRIPT,a,r),script:F(h.SCRIPT,p,r),style:F(h.STYLE,i,r),title:F(h.TITLE,{title:l,titleAttributes:c},r)}},B=[],$=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?B:n.instances},add:function(e){(n.canUseDOM?B:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?B:n.instances).indexOf(e);(n.canUseDOM?B:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=z({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},U=r.createContext({}),q=a().shape({setHelmet:a().func,helmetInstances:a().shape({get:a().func,add:a().func,remove:a().func})}),G="undefined"!=typeof document,H=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new $(r.props.context,t.canUseDOM),r}return f(t,e),t.prototype.render=function(){return r.createElement(U.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);H.canUseDOM=G,H.propTypes={context:a().shape({helmet:a().shape()}),children:a().node.isRequired},H.defaultProps={context:{}},H.displayName="HelmetProvider";var V=function(e,t){var n,r=document.head||document.querySelector(h.HEAD),o=r.querySelectorAll(e+"[data-rh]"),a=[].slice.call(o),i=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&("innerHTML"===o?r.innerHTML=t.innerHTML:"cssText"===o?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(o,void 0===t[o]?"":t[o]));r.setAttribute("data-rh","true"),a.some((function(e,t){return n=t,r.isEqualNode(e)}))?a.splice(n,1):i.push(r)})),a.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:a,newTags:i}},W=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),s=0;s<i.length;s+=1){var l=i[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===o.indexOf(l)&&o.push(l);var u=a.indexOf(l);-1!==u&&a.splice(u,1)}for(var d=a.length-1;d>=0;d-=1)n.removeAttribute(a[d]);o.length===a.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==i.join(",")&&n.setAttribute("data-rh",i.join(","))}},K=function(e,t){var n=e.baseTag,r=e.htmlAttributes,o=e.linkTags,a=e.metaTags,i=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,d=e.titleAttributes;W(h.BODY,e.bodyAttributes),W(h.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=j(e)),W(h.TITLE,t)}(u,d);var p={baseTag:V(h.BASE,n),linkTags:V(h.LINK,o),metaTags:V(h.META,a),noscriptTags:V(h.NOSCRIPT,i),scriptTags:V(h.SCRIPT,l),styleTags:V(h.STYLE,c)},f={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(f[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),s(e,f,m)},Q=null,Y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!d()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,o=null,a=(e=n.helmetInstances.get().map((function(e){var t=p({},e.props);return delete t.context,t})),{baseTag:T(["href"],e),bodyAttributes:C("bodyAttributes",e),defer:S(e,"defer"),encode:S(e,"encodeSpecialCharacters"),htmlAttributes:C("htmlAttributes",e),linkTags:A(h.LINK,["rel","href"],e),metaTags:A(h.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:A(h.NOSCRIPT,["innerHTML"],e),onChangeClientState:E(e),scriptTags:A(h.SCRIPT,["src","innerHTML"],e),styleTags:A(h.STYLE,["cssText"],e),title:_(e),titleAttributes:C("titleAttributes",e),prioritizeSeoTags:P(e,"prioritizeSeoTags")});H.canUseDOM?(t=a,Q&&cancelAnimationFrame(Q),t.defer?Q=requestAnimationFrame((function(){K(t,(function(){Q=null}))})):(K(t),Q=null)):z&&(o=z(a)),r(o)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(r.Component);Y.propTypes={context:q.isRequired},Y.displayName="HelmetDispatcher";var Z=["children"],X=["children"],J=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!s()(R(this.props,"helmetData"),R(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case h.SCRIPT:case h.NOSCRIPT:return{innerHTML:t};case h.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return p({},r,((t={})[n.type]=[].concat(r[n.type]||[],[p({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case h.TITLE:return p({},o,((t={})[r.type]=i,t.titleAttributes=p({},a),t));case h.BODY:return p({},o,{bodyAttributes:p({},a)});case h.HTML:return p({},o,{htmlAttributes:p({},a)});default:return p({},o,((n={})[r.type]=p({},a),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=p({},t);return Object.keys(e).forEach((function(t){var r;n=p({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return c()(w.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+w.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),c()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,o={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,a=r.children,i=g(r,Z),s=Object.keys(i).reduce((function(e,t){return e[x[t]||t]=i[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,a),l){case h.FRAGMENT:t=n.mapChildrenToProps(a,t);break;case h.LINK:case h.META:case h.NOSCRIPT:case h.SCRIPT:case h.STYLE:o=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:o,newChildProps:s,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:a})}}})),this.mapArrayTypeChildrenToProps(o,t)},n.render=function(){var e=this.props,t=e.children,n=g(e,X),o=p({},n),a=n.helmetData;return t&&(o=this.mapChildrenToProps(t,o)),!a||a instanceof $||(a=new $(a.context,a.instances)),a?r.createElement(Y,p({},o,{context:a.value,helmetData:void 0})):r.createElement(U.Consumer,null,(function(e){return r.createElement(Y,p({},o,{context:e}))}))},t}(r.Component);J.propTypes={base:a().object,bodyAttributes:a().object,children:a().oneOfType([a().arrayOf(a().node),a().node]),defaultTitle:a().string,defer:a().bool,encodeSpecialCharacters:a().bool,htmlAttributes:a().object,link:a().arrayOf(a().object),meta:a().arrayOf(a().object),noscript:a().arrayOf(a().object),onChangeClientState:a().func,script:a().arrayOf(a().object),style:a().arrayOf(a().object),title:a().string,titleAttributes:a().object,titleTemplate:a().string,prioritizeSeoTags:a().bool,helmetData:a().object},J.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},J.displayName="Helmet"},2799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case h:case g:case l:return e;default:return t}}case o:return t}}}function x(e){return k(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||k(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===h},t.isMemo=function(e){return k(e)===g},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===i},t.isSuspense=function(e){return k(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===v||e.$$typeof===w||e.$$typeof===b)},t.typeOf=k},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},3259:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var s=n(6540),l=[],c=[];var u=s.createContext(null);function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function p(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var o=d(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function f(e,t){return s.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function m(e,t){var d,p;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var m=i({loader:null,loading:null,delay:200,timeout:null,render:f,webpack:null,modules:null},t),g=null;function h(){return g||(g=e(m.loader)),g.promise}return l.push(h),"function"==typeof m.webpack&&c.push((function(){if((0,m.webpack)().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return h()})),p=d=function(t){function n(n){var r;return a(o(o(r=t.call(this,n)||this)),"retry",(function(){r.setState({error:null,loading:!0,timedOut:!1}),g=e(m.loader),r._loadModule()})),h(),r.state={error:g.error,pastDelay:!1,timedOut:!1,loading:g.loading,loaded:g.loaded},r}r(n,t),n.preload=function(){return h()};var i=n.prototype;return i.UNSAFE_componentWillMount=function(){this._loadModule()},i.componentDidMount=function(){this._mounted=!0},i._loadModule=function(){var e=this;if(this.context&&Array.isArray(m.modules)&&m.modules.forEach((function(t){e.context.report(t)})),g.loading){var t=function(t){e._mounted&&e.setState(t)};"number"==typeof m.delay&&(0===m.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){t({pastDelay:!0})}),m.delay)),"number"==typeof m.timeout&&(this._timeout=setTimeout((function(){t({timedOut:!0})}),m.timeout));var n=function(){t({error:g.error,loaded:g.loaded,loading:g.loading}),e._clearTimeouts()};g.promise.then((function(){return n(),null})).catch((function(e){return n(),null}))}},i.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},i._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},i.render=function(){return this.state.loading||this.state.error?s.createElement(m.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?m.render(this.state.loaded,this.props):null},n}(s.Component),a(d,"contextType",u),p}function g(e){return m(d,e)}g.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return m(p,e)};var h=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return s.createElement(u.Provider,{value:{report:this.props.report}},s.Children.only(this.props.children))},t}(s.Component);function b(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return b(e)}))}g.Capture=h,g.preloadAll=function(){return new Promise((function(e,t){b(l).then(e,t)}))},g.preloadReady=function(){return new Promise((function(e,t){b(c).then(e,e)}))},e.exports=g},2831:(e,t,n)=>{"use strict";n.d(t,{u:()=>i,v:()=>s});var r=n(6347),o=n(8168),a=n(6540);function i(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var o=e.path?(0,r.B6)(t,e):n.length?n[n.length-1].match:r.Ix.computeRootMatch(t);return o&&(n.push({route:e,match:o}),e.routes&&i(e.routes,t,n)),o})),n}function s(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?a.createElement(r.dO,n,e.map((function(e,n){return a.createElement(r.qh,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render((0,o.A)({},n,{},t,{route:e})):a.createElement(e.component,(0,o.A)({},n,t,{route:e}))}})}))):null}},4625:(e,t,n)=>{"use strict";n.d(t,{Kd:()=>u,N_:()=>h,k2:()=>v});var r=n(6347),o=n(2892),a=n(6540),i=n(1513),s=n(8168),l=n(8587),c=n(1561),u=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,i.zR)(t.props),t}return(0,o.A)(t,e),t.prototype.render=function(){return a.createElement(r.Ix,{history:this.history,children:this.props.children})},t}(a.Component);a.Component;var d=function(e,t){return"function"==typeof e?e(t):e},p=function(e,t){return"string"==typeof e?(0,i.yJ)(e,null,null,t):e},f=function(e){return e},m=a.forwardRef;void 0===m&&(m=f);var g=m((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=(0,l.A)(e,["innerRef","navigate","onClick"]),c=i.target,u=(0,s.A)({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==m&&t||n,a.createElement("a",u)}));var h=m((function(e,t){var n=e.component,o=void 0===n?g:n,u=e.replace,h=e.to,b=e.innerRef,y=(0,l.A)(e,["component","replace","to","innerRef"]);return a.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=e.history,r=p(d(h,e.location),e.location),l=r?n.createHref(r):"",g=(0,s.A)({},y,{href:l,navigate:function(){var t=d(h,e.location),r=(0,i.AO)(e.location)===(0,i.AO)(p(t));(u||r?n.replace:n.push)(t)}});return f!==m?g.ref=t||b:g.innerRef=b,a.createElement(o,g)}))})),b=function(e){return e},y=a.forwardRef;void 0===y&&(y=b);var v=y((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,i=e.activeClassName,u=void 0===i?"active":i,f=e.activeStyle,m=e.className,g=e.exact,v=e.isActive,w=e.location,k=e.sensitive,x=e.strict,S=e.style,_=e.to,E=e.innerRef,C=(0,l.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=w||e.location,i=p(d(_,n),n),l=i.pathname,T=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),A=T?(0,r.B6)(n.pathname,{path:T,exact:g,sensitive:k,strict:x}):null,P=!!(v?v(A,n):A),j="function"==typeof m?m(P):m,L="function"==typeof S?S(P):S;P&&(j=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(j,u),L=(0,s.A)({},L,f));var R=(0,s.A)({"aria-current":P&&o||null,className:j,style:L,to:i},C);return b!==y?R.ref=t||E:R.innerRef=E,a.createElement(h,R)}))}))},6347:(e,t,n)=>{"use strict";n.d(t,{B6:()=>S,Ix:()=>v,W6:()=>R,XZ:()=>y,dO:()=>j,qh:()=>_,zy:()=>N});var r=n(2892),o=n(6540),a=n(5556),i=n.n(a),s=n(1513),l=n(1561),c=n(8168),u=n(5302),d=n.n(u),p=(n(4363),n(8587)),f=(n(4146),1073741823),m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};var g=o.createContext||function(e,t){var n,a,s="__create-react-context-"+function(){var e="__global_unique_id__";return m[e]=(m[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n,r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(t=e.call.apply(e,[this].concat(a))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.A)(n,e);var o=n.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((a=r)===(i=o)?0!==a||1/a==1/i:a!=a&&i!=i)?n=0:(n="function"==typeof t?t(r,o):f,0!==(n|=0)&&this.emitter.set(e.value,n))}var a,i},o.render=function(){return this.props.children},n}(o.Component);l.childContextTypes=((n={})[s]=i().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){(0|e.observedBits)&n&&e.setState({value:e.getValue()})},e}(0,r.A)(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?f:t},o.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?f:e},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return c.contextTypes=((a={})[s]=i().object,a),{Provider:l,Consumer:c}},h=function(e){var t=g();return t.displayName=e,t},b=h("Router-History"),y=h("Router"),v=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.A)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.createElement(b.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.Component);o.Component;o.Component;var w={},k=1e4,x=0;function S(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,a=void 0!==o&&o,i=n.strict,s=void 0!==i&&i,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=w[n]||(w[n]={});if(r[e])return r[e];var o=[],a={regexp:d()(e,o,t),keys:o};return x<k&&(r[e]=a,x++),a}(n,{end:a,strict:s,sensitive:c}),o=r.regexp,i=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],p=l.slice(1),f=e===u;return a&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:i.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var _=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return o.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?S(n.pathname,e.props):t.match,a=(0,c.A)({},t,{location:n,match:r}),i=e.props,s=i.children,u=i.component,d=i.render;return Array.isArray(s)&&function(e){return 0===o.Children.count(e)}(s)&&(s=null),o.createElement(y.Provider,{value:a},a.match?s?"function"==typeof s?s(a):s:u?o.createElement(u,a):d?d(a):null:"function"==typeof s?s(a):null)}))},t}(o.Component);function E(e){return"/"===e.charAt(0)?e:"/"+e}function C(e,t){if(!e)return t;var n=E(e);return 0!==t.pathname.indexOf(n)?t:(0,c.A)({},t,{pathname:t.pathname.substr(n.length)})}function T(e){return"string"==typeof e?e:(0,s.AO)(e)}function A(e){return function(){(0,l.A)(!1)}}function P(){}o.Component;var j=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return o.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n,r,a=e.props.location||t.location;return o.Children.forEach(e.props.children,(function(e){if(null==r&&o.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?S(a.pathname,(0,c.A)({},e.props,{path:i})):t.match}})),r?o.cloneElement(n,{location:a,computedMatch:r}):null}))},t}(o.Component);var L=o.useContext;function R(){return L(b)}function N(){return L(y).location}},1020:(e,t,n)=>{"use strict";var r=n(6540),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},5287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,h={};function b(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var w=v.prototype=new y;w.constructor=v,g(w,b.prototype),w.isPureReactComponent=!0;var k=Array.isArray,x=Object.prototype.hasOwnProperty,S={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,a={},i=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)x.call(t,o)&&!_.hasOwnProperty(o)&&(a[o]=t[o]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===a[o]&&(a[o]=l[o]);return{$$typeof:n,type:e,key:i,ref:s,props:a,_owner:S.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,o,a,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return i=i(l=e),e=""===a?"."+A(l,0):a,k(i)?(o="",null!=e&&(o=e.replace(T,"$&/")+"/"),P(i,t,o,"",(function(e){return e}))):null!=i&&(C(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(T,"$&/")+"/")+e)),t.push(i)),1;if(l=0,a=""===a?".":a+":",k(e))for(var c=0;c<e.length;c++){var u=a+A(s=e[c],c);l+=P(s,t,o,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=P(s=s.value,t,o,u=a+A(s,c++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function j(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},N={transition:null},O={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:N,ReactCurrentOwner:S};t.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=i,t.PureComponent=v,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.call(t,c)&&!_.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.2.0"},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>a(l,n))c<o&&0>a(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,f=3,m=!1,g=!1,h=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function k(e){if(h=!1,w(e),!g)if(null!==r(c))g=!0,N(x);else{var t=r(u);null!==t&&O(k,t.startTime-e)}}function x(e,n){g=!1,h&&(h=!1,y(C),C=-1),m=!0;var a=f;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!P());){var i=p.callback;if("function"==typeof i){p.callback=null,f=p.priorityLevel;var s=i(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&o(c),w(n)}else o(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&O(k,d.startTime-n),l=!1}return l}finally{p=null,f=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,_=!1,E=null,C=-1,T=5,A=-1;function P(){return!(t.unstable_now()-A<T)}function j(){if(null!==E){var e=t.unstable_now();A=e;var n=!0;try{n=E(!0,e)}finally{n?S():(_=!1,E=null)}}else _=!1}if("function"==typeof v)S=function(){v(j)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,R=L.port2;L.port1.onmessage=j,S=function(){R.postMessage(null)}}else S=function(){b(j,0)};function N(e){E=e,_||(_=!0,S())}function O(e,n){C=b((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||m||(g=!0,N(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(h?(y(C),C=-1):h=!0,O(k,a-i))):(e.sortIndex=s,n(c,e),g||m||(g=!0,N(x))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)},2833:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<a.length;l++){var c=a[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},4784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={title:"bpd",tagline:"DSC 10 \u2764\ufe0f bpd",favicon:"img/favicon.ico",url:"https://dsc-courses.github.io",baseUrl:"/bpd-reference/",organizationName:"dsc-courses",projectName:"bpd-reference",onBrokenLinks:"throw",onBrokenMarkdownLinks:"warn",themes:["@docusaurus/theme-live-codeblock"],i18n:{defaultLocale:"en",locales:["en"],path:"i18n",localeConfigs:{}},presets:[["classic",{docs:{sidebarPath:"./sidebars.js",remarkPlugins:[null],rehypePlugins:[null],editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/"},theme:{customCss:"./src/css/custom.css"},gtag:{trackingID:"G-KNXVEML00C",anonymizeIP:!0}}]],stylesheets:[{href:"/bpd-reference/katex/katex.min.css",type:"text/css"}],themeConfig:{navbar:{title:"bpd",logo:{alt:"bpd Logo",src:"img/logo.svg",srcDark:"img/logo_dark.svg"},items:[{type:"docSidebar",sidebarId:"docsSidebar",position:"left",label:"Documentation"},{type:"docSidebar",sidebarId:"statsSidebar",position:"left",label:"Statistical Inference"},{href:"https://github.com/dsc-courses/bpd-reference",className:"header-github-link",position:"right","aria-label":"GitHub repository"}],hideOnScroll:!1},footer:{style:"dark",links:[{title:"Docs",items:[{label:"Documentation",to:"/docs/documentation/intro"}]},{title:"Course Links",items:[{label:"Course Site",href:"https://dsc10.com/"},{label:"Practice",href:"https://practice.dsc10.com/"},{label:"Edstem",href:"https://edstem.org/us/courses/57461/discussion/"},{label:"Gradescope",href:"https://www.gradescope.com/courses/757097"}]},{title:"More",items:[{label:"GitHub",href:"https://github.com/m1nce/bpd-reference?tab=readme-ov-file"}]}],copyright:"Copyright \xa9 2024 DSC 10 @ UCSD Built with Docusaurus."},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},additionalLanguages:[],magicComments:[{className:"theme-code-block-highlighted-line",line:"highlight-next-line",block:{start:"highlight-start",end:"highlight-end"}}]},algolia:{appId:"D5X89Z2PC8",apiKey:"9ce1f7604f9470a252bde8c5007df95c",indexName:"dsc-coursesio",contextualSearch:!0,searchParameters:{},searchPagePath:"search"},colorMode:{defaultMode:"light",disableSwitch:!1,respectPrefersColorScheme:!0},docs:{versionPersistence:"localStorage",sidebar:{hideable:!1,autoCollapseCategories:!1}},metadata:[],tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3},liveCodeBlock:{playgroundPosition:"bottom"}},baseUrlIssueBanner:!0,onBrokenAnchors:"warn",onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},plugins:[],scripts:[],headTags:[],clientModules:[],titleDelimiter:"|",noIndex:!1,markdown:{format:"mdx",mermaid:!1,mdx1Compat:{comments:!0,admonitions:!0,headingIds:!0},anchors:{maintainCase:!1}}}},8168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},2892:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>o})},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},4164:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},1765:(e,t,n)=>{"use strict";n.d(t,{My:()=>T,Zj:()=>A,f4:()=>te});var r,o,a,i,s,l,c,u=n(6540),d=n(4164),p=Object.create,f=Object.defineProperty,m=Object.defineProperties,g=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,v=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,x=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||(t={}))w.call(t,n)&&x(e,n,t[n]);if(y)for(var n of y(t))k.call(t,n)&&x(e,n,t[n]);return e},_=(e,t)=>m(e,h(t)),E=(e,t)=>{var n={};for(var r in e)w.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&y)for(var r of y(e))t.indexOf(r)<0&&k.call(e,r)&&(n[r]=e[r]);return n},C=(r={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,a;switch(n=n||{},r.util.type(t)){case"Object":if(a=r.util.objId(t),n[a])return n[a];for(var i in o={},n[a]=o,t)t.hasOwnProperty(i)&&(o[i]=e(t[i],n));return o;case"Array":return a=r.util.objId(t),n[a]?n[a]:(o=[],n[a]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var a=(o=o||r.languages)[e],i={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(s)||(i[s]=a[s])}var c=o[e];return o[e]=i,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,o,a){a=a||{};var i=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var l=t[s],c=r.util.type(l);"Object"!==c||a[i(l)]?"Array"!==c||a[i(l)]||(a[i(l)]=!0,e(l,n,s,a)):(a[i(l)]=!0,e(l,n,null,a))}}},plugins:{},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),o.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),i(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,a=0;o=n[a++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var a=o[1].length;o.index+=a,o[0]=o[0].slice(a)}return o}function i(e,t,n,s,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var m=0;m<f.length;++m){if(d&&d.cause==p+","+m)return;var g=f[m],h=g.inside,b=!!g.lookbehind,y=!!g.greedy,v=g.alias;if(y&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var k=g.pattern||g,x=s.next,S=u;x!==t.tail&&!(d&&S>=d.reach);S+=x.value.length,x=x.next){var _=x.value;if(t.length>e.length)return;if(!(_ instanceof o)){var E,C=1;if(y){if(!(E=a(k,S,e,b))||E.index>=e.length)break;var T=E.index,A=E.index+E[0].length,P=S;for(P+=x.value.length;T>=P;)P+=(x=x.next).value.length;if(S=P-=x.value.length,x.value instanceof o)continue;for(var j=x;j!==t.tail&&(P<A||"string"==typeof j.value);j=j.next)C++,P+=j.value.length;C--,_=e.slice(S,P),E.index-=S}else if(!(E=a(k,0,_,b)))continue;T=E.index;var L=E[0],R=_.slice(0,T),N=_.slice(T+L.length),O=S+_.length;d&&O>d.reach&&(d.reach=O);var D=x.prev;if(R&&(D=l(t,D,R),S+=R.length),c(t,D,C),x=l(t,D,new o(p,h?r.tokenize(L,h):L,v,L)),N&&l(t,x,N),C>1){var M={cause:p+","+m,reach:O};i(e,t,n,x.prev,S,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var a={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(a.classes,i):a.classes.push(i)),r.hooks.run("wrap",a);var s="";for(var l in a.attributes)s+=" "+l+'="'+(a.attributes[l]||"").replace(/"/g,""")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+s+">"+a.content+"</"+a.tag+">"},r}();t.exports=n,n.default=n}},function(){return o||(0,r[b(r)[0]])((o={exports:{}}).exports,o),o.exports}),T=((e,t,n)=>(n=null!=e?p(v(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of b(t))w.call(e,o)||o===n||f(e,o,{get:()=>t[o],enumerable:!(r=g(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:f(n,"default",{value:e,enumerable:!0}),e)))(C());T.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},T.languages.markup.tag.inside["attr-value"].inside.entity=T.languages.markup.entity,T.languages.markup.doctype.inside["internal-subset"].inside=T.languages.markup,T.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(T.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:T.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:T.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},T.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(T.languages.markup.tag,"addAttribute",{value:function(e,t){T.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:T.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),T.languages.html=T.languages.markup,T.languages.mathml=T.languages.markup,T.languages.svg=T.languages.markup,T.languages.xml=T.languages.extend("markup",{}),T.languages.ssml=T.languages.xml,T.languages.atom=T.languages.xml,T.languages.rss=T.languages.xml,a=T,i={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},l="(?:[^\\\\-]|"+(s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")",l=RegExp(l+"-"+l),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},a.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":i,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:s}},"special-escape":i,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":c}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},T.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},T.languages.javascript=T.languages.extend("clike",{"class-name":[T.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),T.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,T.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:T.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:T.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:T.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:T.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:T.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),T.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:T.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),T.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),T.languages.markup&&(T.languages.markup.tag.addInlined("script","javascript"),T.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),T.languages.js=T.languages.javascript,T.languages.actionscript=T.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),T.languages.actionscript["class-name"].alias="function",delete T.languages.actionscript.parameter,delete T.languages.actionscript["literal-property"],T.languages.markup&&T.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:T.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(T),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(a=e.languages[t]){var a,i=a[o];if((i=i||(a=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(i=a[o]={pattern:i}),Array.isArray(i))for(var s=0,l=i.length;s<l;s++)i[s]instanceof RegExp&&(i[s]={pattern:i[s]}),r(i[s]);else r(i)}}))}}),t.addSupport(["java","javascript","php"],t)}(T),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(T),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(T),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(a),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(T),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,a=t[n];"code"!==a.type?e(a.content):(o=a.content[1],a=a.content[3],o&&a&&"code-language"===o.type&&"code-block"===a.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),a.alias?"string"==typeof a.alias?a.alias=[a.alias,o]:a.alias.push(o):a.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var a=t.classes[r];if(a=/language-(.+)/.exec(a)){n=a[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(T),T.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:T.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},T.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var a=p(/^\($/,/^\)$/);if(-1===a)continue;for(;n<a;n++){var i=u(0);"variable"===i.type&&(f(i,"variable-input"),o.push(i.content))}n=a+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,f(u(0),"property-mutation"),0<o.length)){var s=p(/^\{$/,/^\}$/);if(-1!==s)for(var l=n;l<s;l++){var c=t[l];"variable"===c.type&&0<=o.indexOf(c.content)&&f(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var o=1,a=n;a<t.length;a++){var i=t[a],s=i.content;if("punctuation"===i.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0==--o)return a}return-1}function f(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),T.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],a=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,i){var l=e.tokenize(t,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),c=0,u={},d=(l=s(l.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+i.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,i),Object.keys(u));return c=0,function t(n){for(var a=0;a<n.length;a++){if(c>=d.length)return;var i,l,p,f,m,g,h,b=n[a];"string"==typeof b||"string"==typeof b.content?(i=d[c],-1!==(h=(g="string"==typeof b?b:b.content).indexOf(i))&&(++c,l=g.substring(0,h),m=u[i],p=void 0,(f={})["interpolation-punctuation"]=o,3===(f=e.tokenize(m,f)).length&&((p=[1,1]).push.apply(p,s(f[1],e.languages.javascript,"javascript")),f.splice.apply(f,p)),p=new e.Token("interpolation",f,r.alias,m),f=g.substring(h+i.length),m=[],l&&m.push(l),m.push(p),f&&(t(g=[f]),m.push.apply(m,g)),"string"==typeof b?(n.splice.apply(n,[a,1].concat(m)),a+=m.length-1):b.content=m)):(h=b.content,Array.isArray(h)?t(h):t([h]))}}(l),new e.Token(i,l,"language-"+i,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,o=n.length;r<o;r++){var a,i,s,c=n[r];"string"!=typeof c&&(a=c.content,Array.isArray(a)?"template-string"===c.type?(c=a[1],3===a.length&&"string"!=typeof c&&"embedded-code"===c.type&&(i=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,s=e.languages[c])&&(a[1]=l(i,s,c))):t(a):"string"!=typeof a&&t([a]))}}(t.tokens)}))}(T),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(T),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(T),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(T),T.languages.n4js=T.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),T.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),T.languages.n4jsd=T.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],a=e.languages.javascript[o];o=(a="RegExp"===e.util.type(a)?e.languages.javascript[o]={pattern:a}:a).inside||{};(a.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(T),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function i(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],a=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:s(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:a=!0),(a||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(a=s(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(a+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(a=s(t[r-1])+a,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",a,null,a)),o.content&&"string"!=typeof o.content&&i(o.content)}}o=a(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||i(e.tokens)}))}(T),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(T),T.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},T.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=T.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(T),T.languages.c=T.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),T.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),T.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},T.languages.c.string],char:T.languages.c.char,comment:T.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:T.languages.c}}}}),T.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete T.languages.c.boolean,T.languages.objectivec=T.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete T.languages.objectivec["class-name"],T.languages.objc=T.languages.objectivec,T.languages.reason=T.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),T.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete T.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(T),T.languages.go=T.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),T.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete T.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(T),T.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},T.languages.python["string-interpolation"].inside.interpolation.inside.rest=T.languages.python,T.languages.py=T.languages.python;var A={};((e,t)=>{for(var n in t)f(e,n,{get:t[n],enumerable:!0})})(A,{dracula:()=>P,duotoneDark:()=>j,duotoneLight:()=>L,github:()=>R,jettwaveDark:()=>H,jettwaveLight:()=>V,nightOwl:()=>N,nightOwlLight:()=>O,oceanicNext:()=>I,okaidia:()=>F,oneDark:()=>W,oneLight:()=>K,palenight:()=>z,shadesOfPurple:()=>B,synthwave84:()=>$,ultramin:()=>U,vsDark:()=>q,vsLight:()=>G});var P={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},j={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},L={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},R={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},N={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},O={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},D="#c5a5c5",M="#8dc891",I={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:D}},{types:["attr-value"],style:{color:M}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:M}},{types:["punctuation"],style:{color:M}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:D}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},F={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},z={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},B={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},$={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},U={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},q={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},G={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},H={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},V={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},W={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},K={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},Q=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=S(S({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=_(S({},n),{backgroundColor:void 0}),r},Y=/\r\n|\r|\n/,Z=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},X=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},J=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let a=0,i=0,s=[];const l=[s];for(;i>-1;){for(;(a=r[i]++)<o[i];){let e,c=t[i];const u=n[i][a];if("string"==typeof u?(c=i>0?c:["plain"],e=u):(c=X(c,u.type),u.alias&&(c=X(c,u.alias)),e=u.content),"string"!=typeof e){i++,t.push(c),n.push(e),r.push(0),o.push(e.length);continue}const d=e.split(Y),p=d.length;s.push({types:c,content:d[0]});for(let t=1;t<p;t++)Z(s),l.push(s=[]),s.push({types:c,content:d[t]})}i--,t.pop(),n.pop(),r.pop(),o.pop()}return Z(s),l},ee=({children:e,language:t,code:n,theme:r,prism:o})=>{const a=t.toLowerCase(),i=((e,t)=>{const[n,r]=(0,u.useState)(Q(t,e)),o=(0,u.useRef)(),a=(0,u.useRef)();return(0,u.useEffect)((()=>{t===o.current&&e===a.current||(o.current=t,a.current=e,r(Q(t,e)))}),[e,t]),n})(a,r),s=(e=>(0,u.useCallback)((t=>{var n=t,{className:r,style:o,line:a}=n,i=E(n,["className","style","line"]);const s=_(S({},i),{className:(0,d.A)("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof o&&(s.style=S(S({},s.style||{}),o)),s}),[e]))(i),l=(e=>{const t=(0,u.useCallback)((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return(0,u.useCallback)((e=>{var n=e,{token:r,className:o,style:a}=n,i=E(n,["token","className","style"]);const s=_(S({},i),{className:(0,d.A)("token",...r.types,o),children:r.content,style:t(r)});return null!=a&&(s.style=S(S({},s.style||{}),a)),s}),[t])})(i),c=(({prism:e,code:t,grammar:n,language:r})=>{const o=(0,u.useRef)(e);return(0,u.useMemo)((()=>{if(null==n)return J([t]);const e={code:t,grammar:n,language:r,tokens:[]};return o.current.hooks.run("before-tokenize",e),e.tokens=o.current.tokenize(t,n),o.current.hooks.run("after-tokenize",e),J(e.tokens)}),[t,n,r])})({prism:o,language:a,code:n,grammar:o.languages[a]});return e({tokens:c,className:`prism-code language-${a}`,style:null!=i?i.root:{},getLineProps:s,getTokenProps:l})},te=e=>(0,u.createElement)(ee,_(S({},e),{prism:e.prism||T,theme:e.theme||q,code:e.code,language:e.language}))},1561:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=!0,o="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t,a=n?"".concat(o,": ").concat(n):o;throw new Error(a)}}},2654:e=>{"use strict";e.exports={}},4054:e=>{"use strict";e.exports=JSON.parse('{"/bpd-reference/blog-70d":{"__comp":"a6aa9e1f","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"7661071f"},{"content":"f4f34a3a"},{"content":"8717b14a"},{"content":"925b3f96"}],"__props":"83aa63f8"},"/bpd-reference/blog/archive-2ac":{"__comp":"9e4087bc","__context":{"plugin":"36994c47"},"__props":"d9ae1e76"},"/bpd-reference/blog/first-blog-post-99b":{"__comp":"ccc49370","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"sidebar":"814f3328","content":"e273c56f"},"/bpd-reference/blog/long-blog-post-521":{"__comp":"ccc49370","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"sidebar":"814f3328","content":"73664a40"},"/bpd-reference/blog/mdx-blog-post-7ea":{"__comp":"ccc49370","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"sidebar":"814f3328","content":"59362658"},"/bpd-reference/blog/tags-2ec":{"__comp":"01a85c17","__context":{"plugin":"36994c47"},"sidebar":"814f3328","__props":"abde3fc7"},"/bpd-reference/blog/tags/docusaurus-961":{"__comp":"6875c492","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"7661071f"},{"content":"f4f34a3a"},{"content":"8717b14a"},{"content":"925b3f96"}],"__props":"9a1a2feb"},"/bpd-reference/blog/tags/facebook-93a":{"__comp":"6875c492","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"7661071f"}],"__props":"ce5ff83d"},"/bpd-reference/blog/tags/hello-f98":{"__comp":"6875c492","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"7661071f"},{"content":"8717b14a"}],"__props":"ca8a4f49"},"/bpd-reference/blog/tags/hola-16f":{"__comp":"6875c492","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"925b3f96"}],"__props":"be5f280b"},"/bpd-reference/blog/welcome-3c3":{"__comp":"ccc49370","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"sidebar":"814f3328","content":"d9f32620"},"/bpd-reference/search-ec9":{"__comp":"1a4e3797","__context":{"plugin":"c141421f"}},"/bpd-reference/docs-017":{"__comp":"5e95c892","__context":{"plugin":"aba21aa0"}},"/bpd-reference/docs-171":{"__comp":"a7bd4aaa","__props":"1f418535"},"/bpd-reference/docs/tags-eb7":{"__comp":"3720c009","__props":"ffd9fdf4"},"/bpd-reference/docs/tags/bootstrapping-729":{"__comp":"df203c0f","__props":"b2bdf99d"},"/bpd-reference/docs/tags/chebyshevs-inequality-107":{"__comp":"df203c0f","__props":"cd67c8da"},"/bpd-reference/docs/tags/confidence-intervals-2bc":{"__comp":"df203c0f","__props":"a98da3ba"},"/bpd-reference/docs/tags/correlation-af5":{"__comp":"df203c0f","__props":"a5d86b03"},"/bpd-reference/docs/tags/for-loop-122":{"__comp":"df203c0f","__props":"79080f49"},"/bpd-reference/docs/tags/functions-364":{"__comp":"df203c0f","__props":"29759c23"},"/bpd-reference/docs/tags/histogram-75f":{"__comp":"df203c0f","__props":"541bd1cc"},"/bpd-reference/docs/tags/hypothesis-test-a61":{"__comp":"df203c0f","__props":"ac5712c7"},"/bpd-reference/docs/tags/normal-distributions-225":{"__comp":"df203c0f","__props":"0784c833"},"/bpd-reference/docs/tags/permutation-test-f4c":{"__comp":"df203c0f","__props":"d16c2311"},"/bpd-reference/docs/tags/querying-f82":{"__comp":"df203c0f","__props":"8b4ce11c"},"/bpd-reference/docs/tags/regression-bf9":{"__comp":"df203c0f","__props":"e6a51af0"},"/bpd-reference/docs/tags/standard-deviation-9dd":{"__comp":"df203c0f","__props":"80c4c602"},"/bpd-reference/docs/tags/standard-units-63b":{"__comp":"df203c0f","__props":"ce9b9f25"},"/bpd-reference/docs/tags/the-central-limit-theorem-df0":{"__comp":"df203c0f","__props":"807a8ce9"},"/bpd-reference/docs/tags/the-standard-normal-distribution-d13":{"__comp":"df203c0f","__props":"5ad2bf6e"},"/bpd-reference/docs-503":{"__comp":"a94703ab"},"/bpd-reference/docs/category/if-statements-84b":{"__comp":"14eb3368","__props":"8d72dfa8"},"/bpd-reference/docs/category/querying-ff8":{"__comp":"14eb3368","__props":"83b8ee67"},"/bpd-reference/docs/documentation/accessing-data/-764":{"__comp":"17896441","content":"e06ba05c"},"/bpd-reference/docs/documentation/accessing-data/df.columns-336":{"__comp":"17896441","content":"6e05dac9"},"/bpd-reference/docs/documentation/accessing-data/df.get()-8a5":{"__comp":"17896441","content":"0708938a"},"/bpd-reference/docs/documentation/accessing-data/df.index-92f":{"__comp":"17896441","content":"f9684ee2"},"/bpd-reference/docs/documentation/accessing-data/df.shape-16f":{"__comp":"17896441","content":"80770d40"},"/bpd-reference/docs/documentation/accessing-data/df.take()-c4a":{"__comp":"17896441","content":"a4805c9a"},"/bpd-reference/docs/documentation/accessing-data/ser.iloc[]-22f":{"__comp":"17896441","content":"6e7a31fd"},"/bpd-reference/docs/documentation/accessing-data/ser.loc[]-810":{"__comp":"17896441","content":"202baea0"},"/bpd-reference/docs/documentation/arrays-and-numpy/-3d6":{"__comp":"17896441","content":"8ded1294"},"/bpd-reference/docs/documentation/arrays-and-numpy/arr[]-82e":{"__comp":"17896441","content":"cdae2dcc"},"/bpd-reference/docs/documentation/arrays-and-numpy/np.append()-851":{"__comp":"17896441","content":"920988e2"},"/bpd-reference/docs/documentation/arrays-and-numpy/np.arange()-376":{"__comp":"17896441","content":"de98ccb0"},"/bpd-reference/docs/documentation/arrays-and-numpy/np.count_nonzero()-0f6":{"__comp":"17896441","content":"f0fd5c00"},"/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()-68b":{"__comp":"17896441","content":"5d6a2894"},"/bpd-reference/docs/documentation/arrays-and-numpy/np.round()-b0e":{"__comp":"17896441","content":"2efbf384"},"/bpd-reference/docs/documentation/building-organizing/-aa2":{"__comp":"17896441","content":"eaaf288f"},"/bpd-reference/docs/documentation/building-organizing/bpd.DataFrame()-184":{"__comp":"17896441","content":"0c6397b1"},"/bpd-reference/docs/documentation/building-organizing/bpd.read_csv()-68e":{"__comp":"17896441","content":"f39390d7"},"/bpd-reference/docs/documentation/building-organizing/df.assign()-2bf":{"__comp":"17896441","content":"f3b65525"},"/bpd-reference/docs/documentation/building-organizing/df.drop()-bfc":{"__comp":"17896441","content":"b7ff327f"},"/bpd-reference/docs/documentation/building-organizing/df.merge()-ea1":{"__comp":"17896441","content":"c94468d5"},"/bpd-reference/docs/documentation/building-organizing/df.reset_index()-ffd":{"__comp":"17896441","content":"f2b0891e"},"/bpd-reference/docs/documentation/building-organizing/df.set_index()-956":{"__comp":"17896441","content":"9e1896f0"},"/bpd-reference/docs/documentation/building-organizing/df.sort_values()-c18":{"__comp":"17896441","content":"d3196d0d"},"/bpd-reference/docs/documentation/data format conversion/-d89":{"__comp":"17896441","content":"d3ef55ca"},"/bpd-reference/docs/documentation/data format conversion/list()-e04":{"__comp":"17896441","content":"f0994678"},"/bpd-reference/docs/documentation/data format conversion/np.array()-85a":{"__comp":"17896441","content":"fe41946a"},"/bpd-reference/docs/documentation/for-loops/-57d":{"__comp":"17896441","content":"dfefbedb"},"/bpd-reference/docs/documentation/Functions/Applying Functions-054":{"__comp":"17896441","content":"8d40581b"},"/bpd-reference/docs/documentation/Functions/Writing Functions-a88":{"__comp":"17896441","content":"6a26c916"},"/bpd-reference/docs/documentation/Grouping/aggregation/count()-c02":{"__comp":"17896441","content":"907d0c45"},"/bpd-reference/docs/documentation/Grouping/aggregation/max()-32f":{"__comp":"17896441","content":"b69909d7"},"/bpd-reference/docs/documentation/Grouping/aggregation/mean()-278":{"__comp":"17896441","content":"3eb51302"},"/bpd-reference/docs/documentation/Grouping/aggregation/median()-4fe":{"__comp":"17896441","content":"f4434bba"},"/bpd-reference/docs/documentation/Grouping/aggregation/min()-7ad":{"__comp":"17896441","content":"10f7d562"},"/bpd-reference/docs/documentation/Grouping/aggregation/sum()-c41":{"__comp":"17896441","content":"14acb028"},"/bpd-reference/docs/documentation/Grouping/groupby-716":{"__comp":"17896441","content":"37002ad4"},"/bpd-reference/docs/documentation/if-statements/if-elif-else-c17":{"__comp":"17896441","content":"3f791b14"},"/bpd-reference/docs/documentation/if-statements/in \u2044 not in-b7e":{"__comp":"17896441","content":"b0c30e46"},"/bpd-reference/docs/documentation/if-statements/Logical Operators-690":{"__comp":"17896441","content":"1fc0ff79"},"/bpd-reference/docs/documentation/intro-c28":{"__comp":"17896441","content":"739bf370"},"/bpd-reference/docs/documentation/plotting/-f0f":{"__comp":"17896441","content":"10297ef4"},"/bpd-reference/docs/documentation/plotting/Bar Plot-0f6":{"__comp":"17896441","content":"499d47b2"},"/bpd-reference/docs/documentation/plotting/Histogram-e59":{"__comp":"17896441","content":"6e2ca103"},"/bpd-reference/docs/documentation/plotting/Line Plot-18b":{"__comp":"17896441","content":"dd3b6db1"},"/bpd-reference/docs/documentation/plotting/Scatter Plot-a24":{"__comp":"17896441","content":"65beeb93"},"/bpd-reference/docs/documentation/querying/df[]-2c6":{"__comp":"17896441","content":"8c496670"},"/bpd-reference/docs/documentation/series-methods/-e90":{"__comp":"17896441","content":"6b67e948"},"/bpd-reference/docs/documentation/series-methods/ser.count()-a99":{"__comp":"17896441","content":"03f8d3d3"},"/bpd-reference/docs/documentation/series-methods/ser.max()-d33":{"__comp":"17896441","content":"655190df"},"/bpd-reference/docs/documentation/series-methods/ser.mean()-ead":{"__comp":"17896441","content":"46ccc97a"},"/bpd-reference/docs/documentation/series-methods/ser.median()-2fc":{"__comp":"17896441","content":"acb40918"},"/bpd-reference/docs/documentation/series-methods/ser.min()-64b":{"__comp":"17896441","content":"dcbe5aac"},"/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()-6e1":{"__comp":"17896441","content":"82ff9878"},"/bpd-reference/docs/documentation/series-methods/ser.str.contains()-5d2":{"__comp":"17896441","content":"9746c0ef"},"/bpd-reference/docs/documentation/series-methods/ser.str.len()-bf0":{"__comp":"17896441","content":"b78139e1"},"/bpd-reference/docs/documentation/series-methods/ser.str.lower()-85b":{"__comp":"17896441","content":"26533384"},"/bpd-reference/docs/documentation/series-methods/ser.str.replace()-b28":{"__comp":"17896441","content":"ffbcff43"},"/bpd-reference/docs/documentation/series-methods/ser.str.split()-5f1":{"__comp":"17896441","content":"2be9118b"},"/bpd-reference/docs/documentation/series-methods/ser.str.strip()-80a":{"__comp":"17896441","content":"2141c98b"},"/bpd-reference/docs/documentation/series-methods/ser.str.title()-c65":{"__comp":"17896441","content":"62efbc4a"},"/bpd-reference/docs/documentation/series-methods/ser.str.upper()-1ee":{"__comp":"17896441","content":"5ddb68ca"},"/bpd-reference/docs/documentation/series-methods/ser.sum()-786":{"__comp":"17896441","content":"9ac7dbcc"},"/bpd-reference/docs/documentation/series-methods/ser.unique()-877":{"__comp":"17896441","content":"81322b72"},"/bpd-reference/docs/statistical-inference/bootstrapping-81d":{"__comp":"17896441","content":"f095f4cd"},"/bpd-reference/docs/statistical-inference/central_limit_theorem-899":{"__comp":"17896441","content":"97247bb2"},"/bpd-reference/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT-141":{"__comp":"17896441","content":"d01a85b0"},"/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation-0bc":{"__comp":"17896441","content":"d4f68316"},"/bpd-reference/docs/statistical-inference/hypothesis_test-db9":{"__comp":"17896441","content":"f03ae67e"},"/bpd-reference/docs/statistical-inference/intro-85c":{"__comp":"17896441","content":"a278cdf6"},"/bpd-reference/docs/statistical-inference/null_and_alt-14d":{"__comp":"17896441","content":"fb17983f"},"/bpd-reference/docs/statistical-inference/obs_and_test_stats-de6":{"__comp":"17896441","content":"60c4aef6"},"/bpd-reference/docs/statistical-inference/p_value-96f":{"__comp":"17896441","content":"d28047a2"},"/bpd-reference/docs/statistical-inference/parameters-and-statistics-90f":{"__comp":"17896441","content":"099c0b96"},"/bpd-reference/docs/statistical-inference/permutation_test-39d":{"__comp":"17896441","content":"9f1843d8"},"/bpd-reference/docs/statistical-inference/random sampling/df.sample()-c54":{"__comp":"17896441","content":"1774e1e3"},"/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()-f00":{"__comp":"17896441","content":"f4c1c84a"},"/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()-6e8":{"__comp":"17896441","content":"187e374f"},"/bpd-reference/docs/statistical-inference/random sampling/np.random.permutation()-a4e":{"__comp":"17896441","content":"36d89dbe"},"/bpd-reference/docs/statistical-inference/random sampling/sampling-f3e":{"__comp":"17896441","content":"62552850"},"/bpd-reference/docs/statistical-inference/spread_of_a_distribution-750":{"__comp":"17896441","content":"f8d80a2f"},"/bpd-reference/docs/statistical-inference/standard_normal_distribution-c60":{"__comp":"17896441","content":"9a265863"},"/bpd-reference/docs/statistical-inference/standard_units-7f5":{"__comp":"17896441","content":"61546123"},"/bpd-reference/-eff":{"__comp":"c4f5d8e4","__context":{"plugin":"a7456010"},"config":"5e9f5e1a"},"/bpd-reference/-173":{"__comp":"1f391b9e","__context":{"plugin":"a7456010"},"content":"f3976560"}}')}},e=>{e.O(0,[1869],(()=>{return t=8536,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/assets/js/main.892874f6.js.LICENSE.txt b/assets/js/main.4026bce0.js.LICENSE.txt similarity index 100% rename from assets/js/main.892874f6.js.LICENSE.txt rename to assets/js/main.4026bce0.js.LICENSE.txt diff --git a/assets/js/main.892874f6.js b/assets/js/main.892874f6.js deleted file mode 100644 index 865658ce..00000000 --- a/assets/js/main.892874f6.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see main.892874f6.js.LICENSE.txt */ -(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8792],{9188:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var r=n(6540);function o(){return r.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20","aria-hidden":"true"},r.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}},8328:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});n(6540);var r=n(3259),o=n.n(r),a=n(4054);const i={"01a85c17":[()=>Promise.all([n.e(1869),n.e(8209)]).then(n.bind(n,9140)),"@theme/BlogTagsListPage",9140],"03f8d3d3":[()=>Promise.all([n.e(1869),n.e(7326)]).then(n.bind(n,6890)),"@site/docs/documentation/series-methods/ser.count().md",6890],"0708938a":[()=>Promise.all([n.e(1869),n.e(8857)]).then(n.bind(n,5614)),"@site/docs/documentation/accessing-data/df.get().md",5614],"0784c833":[()=>n.e(3887).then(n.t.bind(n,1883,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-normal-distributions-797.json",1883],"099c0b96":[()=>Promise.all([n.e(1869),n.e(3717)]).then(n.bind(n,8284)),"@site/docs/statistical-inference/parameters-and-statistics.md",8284],"0c6397b1":[()=>Promise.all([n.e(1869),n.e(2646)]).then(n.bind(n,7739)),"@site/docs/documentation/building-organizing/bpd.DataFrame().md",7739],"10297ef4":[()=>Promise.all([n.e(1869),n.e(5125)]).then(n.bind(n,4699)),"@site/docs/documentation/plotting/index.md",4699],"10f7d562":[()=>Promise.all([n.e(1869),n.e(2720)]).then(n.bind(n,1923)),"@site/docs/documentation/Grouping/aggregation/min().md",1923],"14acb028":[()=>Promise.all([n.e(1869),n.e(5296)]).then(n.bind(n,4128)),"@site/docs/documentation/Grouping/aggregation/sum().md",4128],"14eb3368":[()=>Promise.all([n.e(1869),n.e(6969)]).then(n.bind(n,4136)),"@theme/DocCategoryGeneratedIndexPage",4136],"1774e1e3":[()=>Promise.all([n.e(1869),n.e(9448)]).then(n.bind(n,2850)),"@site/docs/statistical-inference/random sampling/df.sample().md",2850],17896441:[()=>Promise.all([n.e(1869),n.e(724),n.e(8401)]).then(n.bind(n,6011)),"@theme/DocItem",6011],"187e374f":[()=>Promise.all([n.e(1869),n.e(6264)]).then(n.bind(n,340)),"@site/docs/statistical-inference/random sampling/np.random.multinomial().md",340],"1a4e3797":[()=>Promise.all([n.e(1869),n.e(2138)]).then(n.bind(n,4604)),"@theme/SearchPage",4604],"1f391b9e":[()=>Promise.all([n.e(1869),n.e(724),n.e(6061)]).then(n.bind(n,7973)),"@theme/MDXPage",7973],"1f418535":[()=>n.e(3250).then(n.t.bind(n,723,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-c7e.json",723],"1fc0ff79":[()=>Promise.all([n.e(1869),n.e(3279)]).then(n.bind(n,1046)),"@site/docs/documentation/if-statements/Logical Operators.md",1046],"202baea0":[()=>Promise.all([n.e(1869),n.e(3508)]).then(n.bind(n,3191)),"@site/docs/documentation/accessing-data/ser.loc[].md",3191],"2141c98b":[()=>Promise.all([n.e(1869),n.e(6363)]).then(n.bind(n,3618)),"@site/docs/documentation/series-methods/ser.str.strip().md",3618],26533384:[()=>Promise.all([n.e(1869),n.e(7661)]).then(n.bind(n,5825)),"@site/docs/documentation/series-methods/ser.str.lower().md",5825],"29759c23":[()=>n.e(8449).then(n.t.bind(n,1158,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-functions-90a.json",1158],"2be9118b":[()=>Promise.all([n.e(1869),n.e(3237)]).then(n.bind(n,5404)),"@site/docs/documentation/series-methods/ser.str.split().md",5404],"2efbf384":[()=>Promise.all([n.e(1869),n.e(7069)]).then(n.bind(n,6621)),"@site/docs/documentation/arrays-and-numpy/np.round().md",6621],"36994c47":[()=>n.e(9858).then(n.t.bind(n,5516,19)),"@generated/docusaurus-plugin-content-blog/default/__plugin.json",5516],"36d89dbe":[()=>Promise.all([n.e(1869),n.e(2456)]).then(n.bind(n,6221)),"@site/docs/statistical-inference/random sampling/np.random.permutation().md",6221],"37002ad4":[()=>Promise.all([n.e(1869),n.e(3870)]).then(n.bind(n,7147)),"@site/docs/documentation/Grouping/groupby.md",7147],"3720c009":[()=>Promise.all([n.e(1869),n.e(4787)]).then(n.bind(n,2194)),"@theme/DocTagsListPage",2194],"3eb51302":[()=>Promise.all([n.e(1869),n.e(9938)]).then(n.bind(n,664)),"@site/docs/documentation/Grouping/aggregation/mean().md",664],"3f791b14":[()=>Promise.all([n.e(1869),n.e(6090)]).then(n.bind(n,9016)),"@site/docs/documentation/if-statements/if-elif-else.md",9016],"46ccc97a":[()=>Promise.all([n.e(1869),n.e(5579)]).then(n.bind(n,6314)),"@site/docs/documentation/series-methods/ser.mean().md",6314],"499d47b2":[()=>Promise.all([n.e(1869),n.e(2302)]).then(n.bind(n,3331)),"@site/docs/documentation/plotting/Bar Plot.md",3331],"541bd1cc":[()=>n.e(7354).then(n.t.bind(n,9076,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-histogram-51a.json",9076],59362658:[()=>n.e(9325).then(n.bind(n,1180)),"@site/blog/2021-08-01-mdx-blog-post.mdx",1180],"5ad2bf6e":[()=>n.e(8328).then(n.t.bind(n,6804,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-the-standard-normal-distribution-cec.json",6804],"5d6a2894":[()=>Promise.all([n.e(1869),n.e(5622)]).then(n.bind(n,1168)),"@site/docs/documentation/arrays-and-numpy/np.percentile().md",1168],"5ddb68ca":[()=>Promise.all([n.e(1869),n.e(6280)]).then(n.bind(n,5408)),"@site/docs/documentation/series-methods/ser.str.upper().md",5408],"5e95c892":[()=>n.e(9647).then(n.bind(n,7121)),"@theme/DocsRoot",7121],"5e9f5e1a":[()=>Promise.resolve().then(n.bind(n,4784)),"@generated/docusaurus.config",4784],"60c4aef6":[()=>Promise.all([n.e(1869),n.e(6142)]).then(n.bind(n,3071)),"@site/docs/statistical-inference/obs_and_test_stats.md",3071],61546123:[()=>Promise.all([n.e(1869),n.e(6137)]).then(n.bind(n,3627)),"@site/docs/statistical-inference/standard_units.md",3627],62552850:[()=>Promise.all([n.e(1869),n.e(1316)]).then(n.bind(n,8638)),"@site/docs/statistical-inference/random sampling/sampling.md",8638],"62efbc4a":[()=>Promise.all([n.e(1869),n.e(4594)]).then(n.bind(n,7442)),"@site/docs/documentation/series-methods/ser.str.title().md",7442],"655190df":[()=>Promise.all([n.e(1869),n.e(4567)]).then(n.bind(n,5364)),"@site/docs/documentation/series-methods/ser.max().md",5364],"65beeb93":[()=>Promise.all([n.e(1869),n.e(2334)]).then(n.bind(n,7190)),"@site/docs/documentation/plotting/Scatter Plot.md",7190],"6875c492":[()=>Promise.all([n.e(1869),n.e(724),n.e(3242),n.e(4813)]).then(n.bind(n,3069)),"@theme/BlogTagsPostsPage",3069],"6a26c916":[()=>Promise.all([n.e(1869),n.e(4469)]).then(n.bind(n,352)),"@site/docs/documentation/Functions/Writing Functions.md",352],"6b67e948":[()=>Promise.all([n.e(1869),n.e(4932)]).then(n.bind(n,4266)),"@site/docs/documentation/series-methods/index.md",4266],"6e05dac9":[()=>Promise.all([n.e(1869),n.e(2284)]).then(n.bind(n,6802)),"@site/docs/documentation/accessing-data/df.columns.md",6802],"6e2ca103":[()=>Promise.all([n.e(1869),n.e(5980)]).then(n.bind(n,5814)),"@site/docs/documentation/plotting/Histogram.md",5814],"6e7a31fd":[()=>Promise.all([n.e(1869),n.e(3782)]).then(n.bind(n,7494)),"@site/docs/documentation/accessing-data/ser.iloc[].md",7494],"73664a40":[()=>n.e(1972).then(n.bind(n,9581)),"@site/blog/2019-05-29-long-blog-post.md",9581],"739bf370":[()=>Promise.all([n.e(1869),n.e(4812)]).then(n.bind(n,8145)),"@site/docs/documentation/intro.md",8145],"7661071f":[()=>n.e(8737).then(n.bind(n,4137)),"@site/blog/2021-08-26-welcome/index.md?truncated=true",4137],"79080f49":[()=>n.e(2540).then(n.t.bind(n,3730,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-for-loop-fcd.json",3730],"80770d40":[()=>Promise.all([n.e(1869),n.e(8065)]).then(n.bind(n,1376)),"@site/docs/documentation/accessing-data/df.shape.md",1376],"807a8ce9":[()=>n.e(514).then(n.t.bind(n,3364,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-the-central-limit-theorem-a22.json",3364],"80c4c602":[()=>n.e(8743).then(n.t.bind(n,1853,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-standard-deviation-933.json",1853],"81322b72":[()=>Promise.all([n.e(1869),n.e(94)]).then(n.bind(n,7352)),"@site/docs/documentation/series-methods/ser.unique().md",7352],"814f3328":[()=>n.e(7472).then(n.t.bind(n,5513,19)),"~blog/default/blog-post-list-prop-default.json",5513],"82ff9878":[()=>Promise.all([n.e(1869),n.e(675)]).then(n.bind(n,4458)),"@site/docs/documentation/series-methods/ser.str.capitalize().md",4458],"83aa63f8":[()=>n.e(4049).then(n.t.bind(n,9866,19)),"@generated/docusaurus-plugin-content-blog/default/p/bpd-reference-blog-784.json",9866],"83b8ee67":[()=>n.e(1417).then(n.t.bind(n,5392,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-category-querying-224.json",5392],"8717b14a":[()=>n.e(3694).then(n.bind(n,1615)),"@site/blog/2019-05-29-long-blog-post.md?truncated=true",1615],"8b4ce11c":[()=>n.e(5848).then(n.t.bind(n,779,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-querying-f82.json",779],"8c496670":[()=>Promise.all([n.e(1869),n.e(9572)]).then(n.bind(n,9108)),"@site/docs/documentation/querying/df[].md",9108],"8d40581b":[()=>Promise.all([n.e(1869),n.e(5745)]).then(n.bind(n,6900)),"@site/docs/documentation/Functions/Applying Functions.md",6900],"8d72dfa8":[()=>n.e(1429).then(n.t.bind(n,9468,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-category-if-statements-1c2.json",9468],"8ded1294":[()=>Promise.all([n.e(1869),n.e(4266)]).then(n.bind(n,2644)),"@site/docs/documentation/arrays-and-numpy/index.md",2644],"907d0c45":[()=>Promise.all([n.e(1869),n.e(4551)]).then(n.bind(n,468)),"@site/docs/documentation/Grouping/aggregation/count().md",468],"920988e2":[()=>Promise.all([n.e(1869),n.e(6690)]).then(n.bind(n,1399)),"@site/docs/documentation/arrays-and-numpy/np.append().md",1399],"925b3f96":[()=>n.e(8609).then(n.bind(n,5026)),"@site/blog/2019-05-28-first-blog-post.md?truncated=true",5026],"97247bb2":[()=>Promise.all([n.e(1869),n.e(4534)]).then(n.bind(n,4562)),"@site/docs/statistical-inference/central_limit_theorem.md",4562],"9746c0ef":[()=>Promise.all([n.e(1869),n.e(4638)]).then(n.bind(n,9849)),"@site/docs/documentation/series-methods/ser.str.contains().md",9849],"9a1a2feb":[()=>n.e(7338).then(n.t.bind(n,3649,19)),"@generated/docusaurus-plugin-content-blog/default/p/bpd-reference-blog-tags-docusaurus-529.json",3649],"9a265863":[()=>Promise.all([n.e(1869),n.e(1779)]).then(n.bind(n,2878)),"@site/docs/statistical-inference/standard_normal_distribution.md",2878],"9ac7dbcc":[()=>Promise.all([n.e(1869),n.e(719)]).then(n.bind(n,7574)),"@site/docs/documentation/series-methods/ser.sum().md",7574],"9e1896f0":[()=>Promise.all([n.e(1869),n.e(2441)]).then(n.bind(n,1841)),"@site/docs/documentation/building-organizing/df.set_index().md",1841],"9e4087bc":[()=>n.e(2711).then(n.bind(n,9331)),"@theme/BlogArchivePage",9331],"9f1843d8":[()=>Promise.all([n.e(1869),n.e(9894)]).then(n.bind(n,6171)),"@site/docs/statistical-inference/permutation_test.md",6171],a278cdf6:[()=>Promise.all([n.e(1869),n.e(1746)]).then(n.bind(n,8242)),"@site/docs/statistical-inference/intro.md",8242],a4805c9a:[()=>Promise.all([n.e(1869),n.e(7174)]).then(n.bind(n,1617)),"@site/docs/documentation/accessing-data/df.take().md",1617],a5d86b03:[()=>n.e(7330).then(n.t.bind(n,5451,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-correlation-c3b.json",5451],a6aa9e1f:[()=>Promise.all([n.e(1869),n.e(724),n.e(3242),n.e(7643)]).then(n.bind(n,5124)),"@theme/BlogListPage",5124],a7456010:[()=>n.e(1235).then(n.t.bind(n,8552,19)),"@generated/docusaurus-plugin-content-pages/default/__plugin.json",8552],a7bd4aaa:[()=>n.e(7098).then(n.bind(n,4532)),"@theme/DocVersionRoot",4532],a94703ab:[()=>Promise.all([n.e(1869),n.e(9048)]).then(n.bind(n,2559)),"@theme/DocRoot",2559],a98da3ba:[()=>n.e(3110).then(n.t.bind(n,5331,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-confidence-intervals-d92.json",5331],aba21aa0:[()=>n.e(5742).then(n.t.bind(n,9474,19)),"@generated/docusaurus-plugin-content-docs/default/__plugin.json",9474],abde3fc7:[()=>n.e(3490).then(n.t.bind(n,3001,19)),"@generated/docusaurus-plugin-content-blog/default/p/bpd-reference-blog-tags-f4a.json",3001],ac5712c7:[()=>n.e(8852).then(n.t.bind(n,6097,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-hypothesis-test-5ce.json",6097],acb40918:[()=>Promise.all([n.e(1869),n.e(2491)]).then(n.bind(n,1721)),"@site/docs/documentation/series-methods/ser.median().md",1721],acecf23e:[()=>n.e(1903).then(n.t.bind(n,1912,19)),"~blog/default/blogMetadata-default.json",1912],b0c30e46:[()=>Promise.all([n.e(1869),n.e(1944)]).then(n.bind(n,3509)),"@site/docs/documentation/if-statements/in \u2044 not in.md",3509],b2bdf99d:[()=>n.e(8189).then(n.t.bind(n,9714,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-bootstrapping-ab2.json",9714],b69909d7:[()=>Promise.all([n.e(1869),n.e(1979)]).then(n.bind(n,1509)),"@site/docs/documentation/Grouping/aggregation/max().md",1509],b78139e1:[()=>Promise.all([n.e(1869),n.e(4929)]).then(n.bind(n,351)),"@site/docs/documentation/series-methods/ser.str.len().md",351],b7ff327f:[()=>Promise.all([n.e(1869),n.e(6730)]).then(n.bind(n,8039)),"@site/docs/documentation/building-organizing/df.drop().md",8039],be5f280b:[()=>n.e(3233).then(n.t.bind(n,3859,19)),"@generated/docusaurus-plugin-content-blog/default/p/bpd-reference-blog-tags-hola-835.json",3859],c141421f:[()=>n.e(957).then(n.t.bind(n,936,19)),"@generated/docusaurus-theme-search-algolia/default/__plugin.json",936],c4f5d8e4:[()=>Promise.all([n.e(1869),n.e(2634)]).then(n.bind(n,6467)),"@site/src/pages/index.js",6467],c94468d5:[()=>Promise.all([n.e(1869),n.e(3484)]).then(n.bind(n,7486)),"@site/docs/documentation/building-organizing/df.merge().md",7486],ca8a4f49:[()=>n.e(2621).then(n.t.bind(n,6787,19)),"@generated/docusaurus-plugin-content-blog/default/p/bpd-reference-blog-tags-hello-217.json",6787],ccc49370:[()=>Promise.all([n.e(1869),n.e(724),n.e(3242),n.e(3249)]).then(n.bind(n,3858)),"@theme/BlogPostPage",3858],cd67c8da:[()=>n.e(2563).then(n.t.bind(n,1751,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-chebyshevs-inequality-1e2.json",1751],cdae2dcc:[()=>Promise.all([n.e(1869),n.e(7680)]).then(n.bind(n,295)),"@site/docs/documentation/arrays-and-numpy/arr[].md",295],ce5ff83d:[()=>n.e(8593).then(n.t.bind(n,1636,19)),"@generated/docusaurus-plugin-content-blog/default/p/bpd-reference-blog-tags-facebook-1df.json",1636],ce9b9f25:[()=>n.e(9488).then(n.t.bind(n,9013,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-standard-units-818.json",9013],d01a85b0:[()=>Promise.all([n.e(1869),n.e(9826)]).then(n.bind(n,1989)),"@site/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT.md",1989],d16c2311:[()=>n.e(9108).then(n.t.bind(n,8908,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-permutation-test-222.json",8908],d28047a2:[()=>Promise.all([n.e(1869),n.e(5119)]).then(n.bind(n,2502)),"@site/docs/statistical-inference/p_value.md",2502],d3196d0d:[()=>Promise.all([n.e(1869),n.e(8104)]).then(n.bind(n,3685)),"@site/docs/documentation/building-organizing/df.sort_values().md",3685],d3ef55ca:[()=>Promise.all([n.e(1869),n.e(3555)]).then(n.bind(n,5953)),"@site/docs/documentation/data format conversion/index.md",5953],d4f68316:[()=>Promise.all([n.e(1869),n.e(4833)]).then(n.bind(n,4520)),"@site/docs/statistical-inference/concept check/hypothesis_vs_permutation.md",4520],d9ae1e76:[()=>n.e(3113).then(n.t.bind(n,921,19)),"@generated/docusaurus-plugin-content-blog/default/p/bpd-reference-blog-archive-701.json",921],d9f32620:[()=>n.e(5557).then(n.bind(n,7447)),"@site/blog/2021-08-26-welcome/index.md",7447],dcbe5aac:[()=>Promise.all([n.e(1869),n.e(7214)]).then(n.bind(n,4433)),"@site/docs/documentation/series-methods/ser.min().md",4433],dd3b6db1:[()=>Promise.all([n.e(1869),n.e(2105)]).then(n.bind(n,1654)),"@site/docs/documentation/plotting/Line Plot.md",1654],de98ccb0:[()=>Promise.all([n.e(1869),n.e(8241)]).then(n.bind(n,4439)),"@site/docs/documentation/arrays-and-numpy/np.arange().md",4439],df203c0f:[()=>Promise.all([n.e(1869),n.e(4279)]).then(n.bind(n,5921)),"@theme/DocTagDocListPage",5921],dfefbedb:[()=>Promise.all([n.e(1869),n.e(2917)]).then(n.bind(n,2760)),"@site/docs/documentation/for-loops/for-loops.md",2760],e06ba05c:[()=>Promise.all([n.e(1869),n.e(5007)]).then(n.bind(n,4157)),"@site/docs/documentation/accessing-data/index.md",4157],e273c56f:[()=>n.e(9328).then(n.bind(n,4014)),"@site/blog/2019-05-28-first-blog-post.md",4014],e6a51af0:[()=>n.e(7380).then(n.t.bind(n,174,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-regression-d7a.json",174],eaaf288f:[()=>Promise.all([n.e(1869),n.e(9600)]).then(n.bind(n,4653)),"@site/docs/documentation/building-organizing/index.md",4653],f03ae67e:[()=>Promise.all([n.e(1869),n.e(972)]).then(n.bind(n,3007)),"@site/docs/statistical-inference/hypothesis_test.md",3007],f095f4cd:[()=>Promise.all([n.e(1869),n.e(28)]).then(n.bind(n,8406)),"@site/docs/statistical-inference/bootstrapping.md",8406],f0994678:[()=>Promise.all([n.e(1869),n.e(2808)]).then(n.bind(n,1478)),"@site/docs/documentation/data format conversion/list().md",1478],f0fd5c00:[()=>Promise.all([n.e(1869),n.e(2087)]).then(n.bind(n,476)),"@site/docs/documentation/arrays-and-numpy/np.count_nonzero().md",476],f2b0891e:[()=>Promise.all([n.e(1869),n.e(614)]).then(n.bind(n,9358)),"@site/docs/documentation/building-organizing/df.reset_index().md",9358],f39390d7:[()=>Promise.all([n.e(1869),n.e(3362)]).then(n.bind(n,3541)),"@site/docs/documentation/building-organizing/bpd.read_csv().md",3541],f3976560:[()=>n.e(7795).then(n.bind(n,8769)),"@site/src/pages/index.md",8769],f3b65525:[()=>Promise.all([n.e(1869),n.e(3343)]).then(n.bind(n,419)),"@site/docs/documentation/building-organizing/df.assign().md",419],f4434bba:[()=>Promise.all([n.e(1869),n.e(6747)]).then(n.bind(n,287)),"@site/docs/documentation/Grouping/aggregation/median().md",287],f4c1c84a:[()=>Promise.all([n.e(1869),n.e(7233)]).then(n.bind(n,4144)),"@site/docs/statistical-inference/random sampling/np.random.choice().md",4144],f4f34a3a:[()=>n.e(3637).then(n.bind(n,5512)),"@site/blog/2021-08-01-mdx-blog-post.mdx?truncated=true",5512],f8d80a2f:[()=>Promise.all([n.e(1869),n.e(4540)]).then(n.bind(n,7526)),"@site/docs/statistical-inference/spread_of_a_distribution.md",7526],f9684ee2:[()=>Promise.all([n.e(1869),n.e(3342)]).then(n.bind(n,9965)),"@site/docs/documentation/accessing-data/df.index.md",9965],fb17983f:[()=>Promise.all([n.e(1869),n.e(9595)]).then(n.bind(n,2693)),"@site/docs/statistical-inference/null_and_alt.md",2693],fe41946a:[()=>Promise.all([n.e(1869),n.e(7489)]).then(n.bind(n,8603)),"@site/docs/documentation/data format conversion/np.array().md",8603],ffbcff43:[()=>Promise.all([n.e(1869),n.e(6077)]).then(n.bind(n,6120)),"@site/docs/documentation/series-methods/ser.str.replace().md",6120],ffd9fdf4:[()=>n.e(9930).then(n.t.bind(n,7260,19)),"@generated/docusaurus-plugin-content-docs/default/p/bpd-reference-docs-tags-c1b.json",7260]};var s=n(4848);function l(e){let{error:t,retry:n,pastDelay:r}=e;return t?(0,s.jsxs)("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"},children:[(0,s.jsx)("p",{children:String(t)}),(0,s.jsx)("div",{children:(0,s.jsx)("button",{type:"button",onClick:n,children:"Retry"})})]}):r?(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,s.jsx)("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb",children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsx)("circle",{cx:"22",cy:"22",r:"8",children:(0,s.jsx)("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})}):null}var c=n(6921),u=n(3102);function d(e,t){if("*"===e)return o()({loading:l,loader:()=>n.e(2237).then(n.bind(n,2237)),modules:["@theme/NotFound"],webpack:()=>[2237],render(e,t){const n=e.default;return(0,s.jsx)(u.W,{value:{plugin:{name:"native",id:"default"}},children:(0,s.jsx)(n,{...t})})}});const r=a[`${e}-${t}`],d={},p=[],f=[],m=(0,c.A)(r);return Object.entries(m).forEach((e=>{let[t,n]=e;const r=i[n];r&&(d[t]=r[0],p.push(r[1]),f.push(r[2]))})),o().Map({loading:l,loader:d,modules:p,webpack:()=>f,render(t,n){const o=JSON.parse(JSON.stringify(r));Object.entries(t).forEach((t=>{let[n,r]=t;const a=r.default;if(!a)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof a&&"function"!=typeof a||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{a[e]=r[e]}));let i=o;const s=n.split(".");s.slice(0,-1).forEach((e=>{i=i[e]})),i[s[s.length-1]]=a}));const a=o.__comp;delete o.__comp;const i=o.__context;delete o.__context;const l=o.__props;return delete o.__props,(0,s.jsx)(u.W,{value:i,children:(0,s.jsx)(a,{...o,...l,...n})})}})}const p=[{path:"/bpd-reference/blog",component:d("/bpd-reference/blog","70d"),exact:!0},{path:"/bpd-reference/blog/archive",component:d("/bpd-reference/blog/archive","2ac"),exact:!0},{path:"/bpd-reference/blog/first-blog-post",component:d("/bpd-reference/blog/first-blog-post","99b"),exact:!0},{path:"/bpd-reference/blog/long-blog-post",component:d("/bpd-reference/blog/long-blog-post","521"),exact:!0},{path:"/bpd-reference/blog/mdx-blog-post",component:d("/bpd-reference/blog/mdx-blog-post","7ea"),exact:!0},{path:"/bpd-reference/blog/tags",component:d("/bpd-reference/blog/tags","2ec"),exact:!0},{path:"/bpd-reference/blog/tags/docusaurus",component:d("/bpd-reference/blog/tags/docusaurus","961"),exact:!0},{path:"/bpd-reference/blog/tags/facebook",component:d("/bpd-reference/blog/tags/facebook","93a"),exact:!0},{path:"/bpd-reference/blog/tags/hello",component:d("/bpd-reference/blog/tags/hello","f98"),exact:!0},{path:"/bpd-reference/blog/tags/hola",component:d("/bpd-reference/blog/tags/hola","16f"),exact:!0},{path:"/bpd-reference/blog/welcome",component:d("/bpd-reference/blog/welcome","3c3"),exact:!0},{path:"/bpd-reference/search",component:d("/bpd-reference/search","ec9"),exact:!0},{path:"/bpd-reference/docs",component:d("/bpd-reference/docs","017"),routes:[{path:"/bpd-reference/docs",component:d("/bpd-reference/docs","171"),routes:[{path:"/bpd-reference/docs/tags",component:d("/bpd-reference/docs/tags","eb7"),exact:!0},{path:"/bpd-reference/docs/tags/bootstrapping",component:d("/bpd-reference/docs/tags/bootstrapping","729"),exact:!0},{path:"/bpd-reference/docs/tags/chebyshevs-inequality",component:d("/bpd-reference/docs/tags/chebyshevs-inequality","107"),exact:!0},{path:"/bpd-reference/docs/tags/confidence-intervals",component:d("/bpd-reference/docs/tags/confidence-intervals","2bc"),exact:!0},{path:"/bpd-reference/docs/tags/correlation",component:d("/bpd-reference/docs/tags/correlation","af5"),exact:!0},{path:"/bpd-reference/docs/tags/for-loop",component:d("/bpd-reference/docs/tags/for-loop","122"),exact:!0},{path:"/bpd-reference/docs/tags/functions",component:d("/bpd-reference/docs/tags/functions","364"),exact:!0},{path:"/bpd-reference/docs/tags/histogram",component:d("/bpd-reference/docs/tags/histogram","75f"),exact:!0},{path:"/bpd-reference/docs/tags/hypothesis-test",component:d("/bpd-reference/docs/tags/hypothesis-test","a61"),exact:!0},{path:"/bpd-reference/docs/tags/normal-distributions",component:d("/bpd-reference/docs/tags/normal-distributions","225"),exact:!0},{path:"/bpd-reference/docs/tags/permutation-test",component:d("/bpd-reference/docs/tags/permutation-test","f4c"),exact:!0},{path:"/bpd-reference/docs/tags/querying",component:d("/bpd-reference/docs/tags/querying","f82"),exact:!0},{path:"/bpd-reference/docs/tags/regression",component:d("/bpd-reference/docs/tags/regression","bf9"),exact:!0},{path:"/bpd-reference/docs/tags/standard-deviation",component:d("/bpd-reference/docs/tags/standard-deviation","9dd"),exact:!0},{path:"/bpd-reference/docs/tags/standard-units",component:d("/bpd-reference/docs/tags/standard-units","63b"),exact:!0},{path:"/bpd-reference/docs/tags/the-central-limit-theorem",component:d("/bpd-reference/docs/tags/the-central-limit-theorem","df0"),exact:!0},{path:"/bpd-reference/docs/tags/the-standard-normal-distribution",component:d("/bpd-reference/docs/tags/the-standard-normal-distribution","d13"),exact:!0},{path:"/bpd-reference/docs",component:d("/bpd-reference/docs","503"),routes:[{path:"/bpd-reference/docs/category/if-statements",component:d("/bpd-reference/docs/category/if-statements","84b"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/category/querying",component:d("/bpd-reference/docs/category/querying","ff8"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/",component:d("/bpd-reference/docs/documentation/accessing-data/","764"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/df.columns",component:d("/bpd-reference/docs/documentation/accessing-data/df.columns","336"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/df.get()",component:d("/bpd-reference/docs/documentation/accessing-data/df.get()","8a5"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/df.index",component:d("/bpd-reference/docs/documentation/accessing-data/df.index","92f"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/df.shape",component:d("/bpd-reference/docs/documentation/accessing-data/df.shape","16f"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/df.take()",component:d("/bpd-reference/docs/documentation/accessing-data/df.take()","c4a"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/ser.iloc[]",component:d("/bpd-reference/docs/documentation/accessing-data/ser.iloc[]","22f"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/accessing-data/ser.loc[]",component:d("/bpd-reference/docs/documentation/accessing-data/ser.loc[]","810"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/arrays-and-numpy/",component:d("/bpd-reference/docs/documentation/arrays-and-numpy/","3d6"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/arrays-and-numpy/arr[]",component:d("/bpd-reference/docs/documentation/arrays-and-numpy/arr[]","82e"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/arrays-and-numpy/np.append()",component:d("/bpd-reference/docs/documentation/arrays-and-numpy/np.append()","851"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/arrays-and-numpy/np.arange()",component:d("/bpd-reference/docs/documentation/arrays-and-numpy/np.arange()","376"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/arrays-and-numpy/np.count_nonzero()",component:d("/bpd-reference/docs/documentation/arrays-and-numpy/np.count_nonzero()","0f6"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()",component:d("/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()","68b"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/arrays-and-numpy/np.round()",component:d("/bpd-reference/docs/documentation/arrays-and-numpy/np.round()","b0e"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/",component:d("/bpd-reference/docs/documentation/building-organizing/","aa2"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/bpd.DataFrame()",component:d("/bpd-reference/docs/documentation/building-organizing/bpd.DataFrame()","184"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/bpd.read_csv()",component:d("/bpd-reference/docs/documentation/building-organizing/bpd.read_csv()","68e"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/df.assign()",component:d("/bpd-reference/docs/documentation/building-organizing/df.assign()","2bf"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/df.drop()",component:d("/bpd-reference/docs/documentation/building-organizing/df.drop()","bfc"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/df.merge()",component:d("/bpd-reference/docs/documentation/building-organizing/df.merge()","ea1"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/df.reset_index()",component:d("/bpd-reference/docs/documentation/building-organizing/df.reset_index()","ffd"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/df.set_index()",component:d("/bpd-reference/docs/documentation/building-organizing/df.set_index()","956"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/building-organizing/df.sort_values()",component:d("/bpd-reference/docs/documentation/building-organizing/df.sort_values()","c18"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/data format conversion/",component:d("/bpd-reference/docs/documentation/data format conversion/","d89"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/data format conversion/list()",component:d("/bpd-reference/docs/documentation/data format conversion/list()","e04"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/data format conversion/np.array()",component:d("/bpd-reference/docs/documentation/data format conversion/np.array()","85a"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/for-loops/",component:d("/bpd-reference/docs/documentation/for-loops/","57d"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Functions/Applying Functions",component:d("/bpd-reference/docs/documentation/Functions/Applying Functions","054"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Functions/Writing Functions",component:d("/bpd-reference/docs/documentation/Functions/Writing Functions","a88"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Grouping/aggregation/count()",component:d("/bpd-reference/docs/documentation/Grouping/aggregation/count()","c02"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Grouping/aggregation/max()",component:d("/bpd-reference/docs/documentation/Grouping/aggregation/max()","32f"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Grouping/aggregation/mean()",component:d("/bpd-reference/docs/documentation/Grouping/aggregation/mean()","278"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Grouping/aggregation/median()",component:d("/bpd-reference/docs/documentation/Grouping/aggregation/median()","4fe"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Grouping/aggregation/min()",component:d("/bpd-reference/docs/documentation/Grouping/aggregation/min()","7ad"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Grouping/aggregation/sum()",component:d("/bpd-reference/docs/documentation/Grouping/aggregation/sum()","c41"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/Grouping/groupby",component:d("/bpd-reference/docs/documentation/Grouping/groupby","716"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/if-statements/if-elif-else",component:d("/bpd-reference/docs/documentation/if-statements/if-elif-else","c17"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/if-statements/in \u2044 not in",component:d("/bpd-reference/docs/documentation/if-statements/in \u2044 not in","b7e"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/if-statements/Logical Operators",component:d("/bpd-reference/docs/documentation/if-statements/Logical Operators","690"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/intro",component:d("/bpd-reference/docs/documentation/intro","c28"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/plotting/",component:d("/bpd-reference/docs/documentation/plotting/","f0f"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/plotting/Bar Plot",component:d("/bpd-reference/docs/documentation/plotting/Bar Plot","0f6"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/plotting/Histogram",component:d("/bpd-reference/docs/documentation/plotting/Histogram","e59"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/plotting/Line Plot",component:d("/bpd-reference/docs/documentation/plotting/Line Plot","18b"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/plotting/Scatter Plot",component:d("/bpd-reference/docs/documentation/plotting/Scatter Plot","a24"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/querying/df[]",component:d("/bpd-reference/docs/documentation/querying/df[]","2c6"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/",component:d("/bpd-reference/docs/documentation/series-methods/","e90"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.count()",component:d("/bpd-reference/docs/documentation/series-methods/ser.count()","a99"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.max()",component:d("/bpd-reference/docs/documentation/series-methods/ser.max()","d33"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.mean()",component:d("/bpd-reference/docs/documentation/series-methods/ser.mean()","ead"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.median()",component:d("/bpd-reference/docs/documentation/series-methods/ser.median()","2fc"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.min()",component:d("/bpd-reference/docs/documentation/series-methods/ser.min()","64b"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()","6e1"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.contains()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.contains()","5d2"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.len()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.len()","bf0"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.lower()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.lower()","85b"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.replace()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.replace()","b28"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.split()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.split()","5f1"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.strip()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.strip()","80a"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.title()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.title()","c65"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.str.upper()",component:d("/bpd-reference/docs/documentation/series-methods/ser.str.upper()","1ee"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.sum()",component:d("/bpd-reference/docs/documentation/series-methods/ser.sum()","786"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/documentation/series-methods/ser.unique()",component:d("/bpd-reference/docs/documentation/series-methods/ser.unique()","877"),exact:!0,sidebar:"docsSidebar"},{path:"/bpd-reference/docs/statistical-inference/bootstrapping",component:d("/bpd-reference/docs/statistical-inference/bootstrapping","81d"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/central_limit_theorem",component:d("/bpd-reference/docs/statistical-inference/central_limit_theorem","899"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT",component:d("/bpd-reference/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT","141"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation",component:d("/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation","0bc"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/hypothesis_test",component:d("/bpd-reference/docs/statistical-inference/hypothesis_test","db9"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/intro",component:d("/bpd-reference/docs/statistical-inference/intro","85c"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/null_and_alt",component:d("/bpd-reference/docs/statistical-inference/null_and_alt","14d"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/obs_and_test_stats",component:d("/bpd-reference/docs/statistical-inference/obs_and_test_stats","de6"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/p_value",component:d("/bpd-reference/docs/statistical-inference/p_value","96f"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/parameters-and-statistics",component:d("/bpd-reference/docs/statistical-inference/parameters-and-statistics","90f"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/permutation_test",component:d("/bpd-reference/docs/statistical-inference/permutation_test","39d"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/random sampling/df.sample()",component:d("/bpd-reference/docs/statistical-inference/random sampling/df.sample()","c54"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()",component:d("/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()","f00"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()",component:d("/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()","6e8"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/random sampling/np.random.permutation()",component:d("/bpd-reference/docs/statistical-inference/random sampling/np.random.permutation()","a4e"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/random sampling/sampling",component:d("/bpd-reference/docs/statistical-inference/random sampling/sampling","f3e"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/spread_of_a_distribution",component:d("/bpd-reference/docs/statistical-inference/spread_of_a_distribution","750"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/standard_normal_distribution",component:d("/bpd-reference/docs/statistical-inference/standard_normal_distribution","c60"),exact:!0,sidebar:"statsSidebar"},{path:"/bpd-reference/docs/statistical-inference/standard_units",component:d("/bpd-reference/docs/statistical-inference/standard_units","7f5"),exact:!0,sidebar:"statsSidebar"}]}]}]},{path:"/bpd-reference/",component:d("/bpd-reference/","eff"),exact:!0},{path:"/bpd-reference/",component:d("/bpd-reference/","173"),exact:!0},{path:"*",component:d("*")}]},6125:(e,t,n)=>{"use strict";n.d(t,{o:()=>a,x:()=>i});var r=n(6540),o=n(4848);const a=r.createContext(!1);function i(e){let{children:t}=e;const[n,i]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{i(!0)}),[]),(0,o.jsx)(a.Provider,{value:n,children:t})}},8536:(e,t,n)=>{"use strict";var r=n(6540),o=n(5338),a=n(4625),i=n(545),s=n(8193);const l=[n(119),n(6134),n(6294),n(1043)];var c=n(8328),u=n(6347),d=n(2831),p=n(4848);function f(e){let{children:t}=e;return(0,p.jsx)(p.Fragment,{children:t})}var m=n(5260),g=n(4586),h=n(6025),b=n(6342),y=n(5500),v=n(2131),w=n(4090),k=n(2967),x=n(440),S=n(1463);function _(){const{i18n:{currentLocale:e,defaultLocale:t,localeConfigs:n}}=(0,g.A)(),r=(0,v.o)(),o=n[e].htmlLang,a=e=>e.replace("-","_");return(0,p.jsxs)(m.A,{children:[Object.entries(n).map((e=>{let[t,{htmlLang:n}]=e;return(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:n},t)})),(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:"x-default"}),(0,p.jsx)("meta",{property:"og:locale",content:a(o)}),Object.values(n).filter((e=>o!==e.htmlLang)).map((e=>(0,p.jsx)("meta",{property:"og:locale:alternate",content:a(e.htmlLang)},`meta-og-${e.htmlLang}`)))]})}function E(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,g.A)(),r=function(){const{siteConfig:{url:e,baseUrl:t,trailingSlash:n}}=(0,g.A)(),{pathname:r}=(0,u.zy)();return e+(0,x.applyTrailingSlash)((0,h.A)(r),{trailingSlash:n,baseUrl:t})}(),o=t?`${n}${t}`:r;return(0,p.jsxs)(m.A,{children:[(0,p.jsx)("meta",{property:"og:url",content:o}),(0,p.jsx)("link",{rel:"canonical",href:o})]})}function C(){const{i18n:{currentLocale:e}}=(0,g.A)(),{metadata:t,image:n}=(0,b.p)();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(m.A,{children:[(0,p.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,p.jsx)("body",{className:w.w})]}),n&&(0,p.jsx)(y.be,{image:n}),(0,p.jsx)(E,{}),(0,p.jsx)(_,{}),(0,p.jsx)(S.A,{tag:k.Cy,locale:e}),(0,p.jsx)(m.A,{children:t.map(((e,t)=>(0,p.jsx)("meta",{...e},t)))})]})}const T=new Map;var A=n(6125),P=n(6988),j=n(205);function L(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=l.map((t=>{const r=t.default?.[e]??t[e];return r?.(...n)}));return()=>o.forEach((e=>e?.()))}const R=function(e){let{children:t,location:n,previousLocation:r}=e;return(0,j.A)((()=>{r!==n&&(!function(e){let{location:t,previousLocation:n}=e;if(!n)return;const r=t.pathname===n.pathname,o=t.hash===n.hash,a=t.search===n.search;if(r&&o&&!a)return;const{hash:i}=t;if(i){const e=decodeURIComponent(i.substring(1)),t=document.getElementById(e);t?.scrollIntoView()}else window.scrollTo(0,0)}({location:n,previousLocation:r}),L("onRouteDidUpdate",{previousLocation:r,location:n}))}),[r,n]),t};function N(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,d.u)(c.A,e))).flat();return Promise.all(t.map((e=>e.route.component.preload?.())))}class O extends r.Component{previousLocation;routeUpdateCleanupCb;constructor(e){super(e),this.previousLocation=null,this.routeUpdateCleanupCb=s.A.canUseDOM?L("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=L("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),N(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return(0,p.jsx)(R,{previousLocation:this.previousLocation,location:t,children:(0,p.jsx)(u.qh,{location:t,render:()=>e})})}}const D=O,M="__docusaurus-base-url-issue-banner-container",I="__docusaurus-base-url-issue-banner",F="__docusaurus-base-url-issue-banner-suggestion-container";function z(e){return`\ndocument.addEventListener('DOMContentLoaded', function maybeInsertBanner() {\n var shouldInsert = typeof window['docusaurus'] === 'undefined';\n shouldInsert && insertBanner();\n});\n\nfunction insertBanner() {\n var bannerContainer = document.createElement('div');\n bannerContainer.id = '${M}';\n var bannerHtml = ${JSON.stringify(function(e){return`\n<div id="${I}" style="border: thick solid red; background-color: rgb(255, 230, 179); margin: 20px; padding: 20px; font-size: 20px;">\n <p style="font-weight: bold; font-size: 30px;">Your Docusaurus site did not load properly.</p>\n <p>A very common reason is a wrong site <a href="https://docusaurus.io/docs/docusaurus.config.js/#baseUrl" style="font-weight: bold;">baseUrl configuration</a>.</p>\n <p>Current configured baseUrl = <span style="font-weight: bold; color: red;">${e}</span> ${"/"===e?" (default value)":""}</p>\n <p>We suggest trying baseUrl = <span id="${F}" style="font-weight: bold; color: green;"></span></p>\n</div>\n`}(e)).replace(/</g,"\\<")};\n bannerContainer.innerHTML = bannerHtml;\n document.body.prepend(bannerContainer);\n var suggestionContainer = document.getElementById('${F}');\n var actualHomePagePath = window.location.pathname;\n var suggestedBaseUrl = actualHomePagePath.substr(-1) === '/'\n ? actualHomePagePath\n : actualHomePagePath + '/';\n suggestionContainer.innerHTML = suggestedBaseUrl;\n}\n`}function B(){const{siteConfig:{baseUrl:e}}=(0,g.A)();return(0,p.jsx)(p.Fragment,{children:!s.A.canUseDOM&&(0,p.jsx)(m.A,{children:(0,p.jsx)("script",{children:z(e)})})})}function $(){const{siteConfig:{baseUrl:e,baseUrlIssueBanner:t}}=(0,g.A)(),{pathname:n}=(0,u.zy)();return t&&n===e?(0,p.jsx)(B,{}):null}function U(){const{siteConfig:{favicon:e,title:t,noIndex:n},i18n:{currentLocale:r,localeConfigs:o}}=(0,g.A)(),a=(0,h.A)(e),{htmlLang:i,direction:s}=o[r];return(0,p.jsxs)(m.A,{children:[(0,p.jsx)("html",{lang:i,dir:s}),(0,p.jsx)("title",{children:t}),(0,p.jsx)("meta",{property:"og:title",content:t}),(0,p.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),n&&(0,p.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),e&&(0,p.jsx)("link",{rel:"icon",href:a})]})}var q=n(7489),G=n(2303);function H(){const e=(0,G.A)();return(0,p.jsx)(m.A,{children:(0,p.jsx)("html",{"data-has-hydrated":e})})}const W=(0,d.v)(c.A);function V(){const e=function(e){if(T.has(e.pathname))return{...e,pathname:T.get(e.pathname)};if((0,d.u)(c.A,e.pathname).some((e=>{let{route:t}=e;return!0===t.exact})))return T.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return T.set(e.pathname,t),{...e,pathname:t}}((0,u.zy)());return(0,p.jsx)(D,{location:e,children:W})}function K(){return(0,p.jsx)(q.A,{children:(0,p.jsx)(P.l,{children:(0,p.jsxs)(A.x,{children:[(0,p.jsxs)(f,{children:[(0,p.jsx)(U,{}),(0,p.jsx)(C,{}),(0,p.jsx)($,{}),(0,p.jsx)(V,{})]}),(0,p.jsx)(H,{})]})})})}var Q=n(4054);const Y=function(e){try{return document.createElement("link").relList.supports(e)}catch{return!1}}("prefetch")?function(e){return new Promise(((t,n)=>{if("undefined"==typeof document)return void n();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=()=>n();const o=document.getElementsByTagName("head")[0]??document.getElementsByName("script")[0]?.parentNode;o?.appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var Z=n(6921);const X=new Set,J=new Set,ee=()=>navigator.connection?.effectiveType.includes("2g")||navigator.connection?.saveData,te={prefetch:e=>{if(!(e=>!ee()&&!J.has(e)&&!X.has(e))(e))return!1;X.add(e);const t=(0,d.u)(c.A,e).flatMap((e=>{return t=e.route.path,Object.entries(Q).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,Z.A)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?Y(t).catch((()=>{})):Promise.resolve()})))},preload:e=>!!(e=>!ee()&&!J.has(e))(e)&&(J.add(e),N(e))},ne=Object.freeze(te),re=Boolean(!0);if(s.A.canUseDOM){window.docusaurus=ne;const e=document.getElementById("__docusaurus"),t=(0,p.jsx)(i.vd,{children:(0,p.jsx)(a.Kd,{children:(0,p.jsx)(K,{})})}),n=(e,t)=>{console.error("Docusaurus React Root onRecoverableError:",e,t)},s=()=>{if(window.docusaurusRoot)window.docusaurusRoot.render(t);else if(re)window.docusaurusRoot=o.hydrateRoot(e,t,{onRecoverableError:n});else{const r=o.createRoot(e,{onRecoverableError:n});r.render(t),window.docusaurusRoot=r}};N(window.location.pathname).then((()=>{(0,r.startTransition)(s)}))}},6988:(e,t,n)=>{"use strict";n.d(t,{o:()=>d,l:()=>p});var r=n(6540),o=n(4784);const a=JSON.parse('{"docusaurus-plugin-content-docs":{"default":{"path":"/bpd-reference/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/bpd-reference/docs","mainDocId":"documentation/intro","docs":[{"id":"documentation/accessing-data/df.columns","path":"/bpd-reference/docs/documentation/accessing-data/df.columns","sidebar":"docsSidebar"},{"id":"documentation/accessing-data/df.get()","path":"/bpd-reference/docs/documentation/accessing-data/df.get()","sidebar":"docsSidebar"},{"id":"documentation/accessing-data/df.index","path":"/bpd-reference/docs/documentation/accessing-data/df.index","sidebar":"docsSidebar"},{"id":"documentation/accessing-data/df.shape","path":"/bpd-reference/docs/documentation/accessing-data/df.shape","sidebar":"docsSidebar"},{"id":"documentation/accessing-data/df.take()","path":"/bpd-reference/docs/documentation/accessing-data/df.take()","sidebar":"docsSidebar"},{"id":"documentation/accessing-data/index","path":"/bpd-reference/docs/documentation/accessing-data/","sidebar":"docsSidebar"},{"id":"documentation/accessing-data/ser.iloc[]","path":"/bpd-reference/docs/documentation/accessing-data/ser.iloc[]","sidebar":"docsSidebar"},{"id":"documentation/accessing-data/ser.loc[]","path":"/bpd-reference/docs/documentation/accessing-data/ser.loc[]","sidebar":"docsSidebar"},{"id":"documentation/arrays-and-numpy/arr[]","path":"/bpd-reference/docs/documentation/arrays-and-numpy/arr[]","sidebar":"docsSidebar"},{"id":"documentation/arrays-and-numpy/index","path":"/bpd-reference/docs/documentation/arrays-and-numpy/","sidebar":"docsSidebar"},{"id":"documentation/arrays-and-numpy/np.append()","path":"/bpd-reference/docs/documentation/arrays-and-numpy/np.append()","sidebar":"docsSidebar"},{"id":"documentation/arrays-and-numpy/np.arange()","path":"/bpd-reference/docs/documentation/arrays-and-numpy/np.arange()","sidebar":"docsSidebar"},{"id":"documentation/arrays-and-numpy/np.count_nonzero()","path":"/bpd-reference/docs/documentation/arrays-and-numpy/np.count_nonzero()","sidebar":"docsSidebar"},{"id":"documentation/arrays-and-numpy/np.percentile()","path":"/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()","sidebar":"docsSidebar"},{"id":"documentation/arrays-and-numpy/np.round()","path":"/bpd-reference/docs/documentation/arrays-and-numpy/np.round()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/bpd.DataFrame()","path":"/bpd-reference/docs/documentation/building-organizing/bpd.DataFrame()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/bpd.read_csv()","path":"/bpd-reference/docs/documentation/building-organizing/bpd.read_csv()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/df.assign()","path":"/bpd-reference/docs/documentation/building-organizing/df.assign()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/df.drop()","path":"/bpd-reference/docs/documentation/building-organizing/df.drop()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/df.merge()","path":"/bpd-reference/docs/documentation/building-organizing/df.merge()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/df.reset_index()","path":"/bpd-reference/docs/documentation/building-organizing/df.reset_index()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/df.set_index()","path":"/bpd-reference/docs/documentation/building-organizing/df.set_index()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/df.sort_values()","path":"/bpd-reference/docs/documentation/building-organizing/df.sort_values()","sidebar":"docsSidebar"},{"id":"documentation/building-organizing/index","path":"/bpd-reference/docs/documentation/building-organizing/","sidebar":"docsSidebar"},{"id":"documentation/data format conversion/index","path":"/bpd-reference/docs/documentation/data format conversion/","sidebar":"docsSidebar"},{"id":"documentation/data format conversion/list()","path":"/bpd-reference/docs/documentation/data format conversion/list()","sidebar":"docsSidebar"},{"id":"documentation/data format conversion/np.array()","path":"/bpd-reference/docs/documentation/data format conversion/np.array()","sidebar":"docsSidebar"},{"id":"documentation/for-loops/for-loops","path":"/bpd-reference/docs/documentation/for-loops/","sidebar":"docsSidebar"},{"id":"documentation/Functions/Applying Functions","path":"/bpd-reference/docs/documentation/Functions/Applying Functions","sidebar":"docsSidebar"},{"id":"documentation/Functions/Writing Functions","path":"/bpd-reference/docs/documentation/Functions/Writing Functions","sidebar":"docsSidebar"},{"id":"documentation/Grouping/aggregation/count()","path":"/bpd-reference/docs/documentation/Grouping/aggregation/count()","sidebar":"docsSidebar"},{"id":"documentation/Grouping/aggregation/max()","path":"/bpd-reference/docs/documentation/Grouping/aggregation/max()","sidebar":"docsSidebar"},{"id":"documentation/Grouping/aggregation/mean()","path":"/bpd-reference/docs/documentation/Grouping/aggregation/mean()","sidebar":"docsSidebar"},{"id":"documentation/Grouping/aggregation/median()","path":"/bpd-reference/docs/documentation/Grouping/aggregation/median()","sidebar":"docsSidebar"},{"id":"documentation/Grouping/aggregation/min()","path":"/bpd-reference/docs/documentation/Grouping/aggregation/min()","sidebar":"docsSidebar"},{"id":"documentation/Grouping/aggregation/sum()","path":"/bpd-reference/docs/documentation/Grouping/aggregation/sum()","sidebar":"docsSidebar"},{"id":"documentation/Grouping/groupby","path":"/bpd-reference/docs/documentation/Grouping/groupby","sidebar":"docsSidebar"},{"id":"documentation/if-statements/if-elif-else","path":"/bpd-reference/docs/documentation/if-statements/if-elif-else","sidebar":"docsSidebar"},{"id":"documentation/if-statements/in \u2044 not in","path":"/bpd-reference/docs/documentation/if-statements/in \u2044 not in","sidebar":"docsSidebar"},{"id":"documentation/if-statements/Logical Operators","path":"/bpd-reference/docs/documentation/if-statements/Logical Operators","sidebar":"docsSidebar"},{"id":"documentation/intro","path":"/bpd-reference/docs/documentation/intro","sidebar":"docsSidebar"},{"id":"documentation/plotting/Bar Plot","path":"/bpd-reference/docs/documentation/plotting/Bar Plot","sidebar":"docsSidebar"},{"id":"documentation/plotting/Histogram","path":"/bpd-reference/docs/documentation/plotting/Histogram","sidebar":"docsSidebar"},{"id":"documentation/plotting/index","path":"/bpd-reference/docs/documentation/plotting/","sidebar":"docsSidebar"},{"id":"documentation/plotting/Line Plot","path":"/bpd-reference/docs/documentation/plotting/Line Plot","sidebar":"docsSidebar"},{"id":"documentation/plotting/Scatter Plot","path":"/bpd-reference/docs/documentation/plotting/Scatter Plot","sidebar":"docsSidebar"},{"id":"documentation/querying/df[]","path":"/bpd-reference/docs/documentation/querying/df[]","sidebar":"docsSidebar"},{"id":"documentation/series-methods/index","path":"/bpd-reference/docs/documentation/series-methods/","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.count()","path":"/bpd-reference/docs/documentation/series-methods/ser.count()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.max()","path":"/bpd-reference/docs/documentation/series-methods/ser.max()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.mean()","path":"/bpd-reference/docs/documentation/series-methods/ser.mean()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.median()","path":"/bpd-reference/docs/documentation/series-methods/ser.median()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.min()","path":"/bpd-reference/docs/documentation/series-methods/ser.min()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.capitalize()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.contains()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.contains()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.len()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.len()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.lower()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.lower()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.replace()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.replace()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.split()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.split()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.strip()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.strip()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.title()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.title()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.str.upper()","path":"/bpd-reference/docs/documentation/series-methods/ser.str.upper()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.sum()","path":"/bpd-reference/docs/documentation/series-methods/ser.sum()","sidebar":"docsSidebar"},{"id":"documentation/series-methods/ser.unique()","path":"/bpd-reference/docs/documentation/series-methods/ser.unique()","sidebar":"docsSidebar"},{"id":"statistical-inference/bootstrapping","path":"/bpd-reference/docs/statistical-inference/bootstrapping","sidebar":"statsSidebar"},{"id":"statistical-inference/central_limit_theorem","path":"/bpd-reference/docs/statistical-inference/central_limit_theorem","sidebar":"statsSidebar"},{"id":"statistical-inference/concept check/bootstrapping_vs_the_CLT","path":"/bpd-reference/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT","sidebar":"statsSidebar"},{"id":"statistical-inference/concept check/hypothesis_vs_permutation","path":"/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation","sidebar":"statsSidebar"},{"id":"statistical-inference/hypothesis_test","path":"/bpd-reference/docs/statistical-inference/hypothesis_test","sidebar":"statsSidebar"},{"id":"statistical-inference/intro","path":"/bpd-reference/docs/statistical-inference/intro","sidebar":"statsSidebar"},{"id":"statistical-inference/null_and_alt","path":"/bpd-reference/docs/statistical-inference/null_and_alt","sidebar":"statsSidebar"},{"id":"statistical-inference/obs_and_test_stats","path":"/bpd-reference/docs/statistical-inference/obs_and_test_stats","sidebar":"statsSidebar"},{"id":"statistical-inference/p_value","path":"/bpd-reference/docs/statistical-inference/p_value","sidebar":"statsSidebar"},{"id":"statistical-inference/parameters-and-statistics","path":"/bpd-reference/docs/statistical-inference/parameters-and-statistics","sidebar":"statsSidebar"},{"id":"statistical-inference/permutation_test","path":"/bpd-reference/docs/statistical-inference/permutation_test","sidebar":"statsSidebar"},{"id":"statistical-inference/random sampling/df.sample()","path":"/bpd-reference/docs/statistical-inference/random sampling/df.sample()","sidebar":"statsSidebar"},{"id":"statistical-inference/random sampling/np.random.choice()","path":"/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()","sidebar":"statsSidebar"},{"id":"statistical-inference/random sampling/np.random.multinomial()","path":"/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()","sidebar":"statsSidebar"},{"id":"statistical-inference/random sampling/np.random.permutation()","path":"/bpd-reference/docs/statistical-inference/random sampling/np.random.permutation()","sidebar":"statsSidebar"},{"id":"statistical-inference/random sampling/sampling","path":"/bpd-reference/docs/statistical-inference/random sampling/sampling","sidebar":"statsSidebar"},{"id":"statistical-inference/spread_of_a_distribution","path":"/bpd-reference/docs/statistical-inference/spread_of_a_distribution","sidebar":"statsSidebar"},{"id":"statistical-inference/standard_normal_distribution","path":"/bpd-reference/docs/statistical-inference/standard_normal_distribution","sidebar":"statsSidebar"},{"id":"statistical-inference/standard_units","path":"/bpd-reference/docs/statistical-inference/standard_units","sidebar":"statsSidebar"},{"id":"/category/if-statements","path":"/bpd-reference/docs/category/if-statements","sidebar":"docsSidebar"},{"id":"/category/querying","path":"/bpd-reference/docs/category/querying","sidebar":"docsSidebar"}],"draftIds":[],"sidebars":{"docsSidebar":{"link":{"path":"/bpd-reference/docs/documentation/intro","label":"Intro"}},"statsSidebar":{"link":{"path":"/bpd-reference/docs/statistical-inference/intro","label":"Intro"}}}}],"breadcrumbs":true}}}'),i=JSON.parse('{"defaultLocale":"en","locales":["en"],"path":"i18n","currentLocale":"en","localeConfigs":{"en":{"label":"English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"}}}');var s=n(2654);const l=JSON.parse('{"docusaurusVersion":"3.3.2","siteVersion":"0.0.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"3.3.2"},"docusaurus-plugin-content-blog":{"type":"package","name":"@docusaurus/plugin-content-blog","version":"3.3.2"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"3.3.2"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"3.3.2"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"3.3.2"},"docusaurus-theme-search-algolia":{"type":"package","name":"@docusaurus/theme-search-algolia","version":"3.3.2"},"docusaurus-theme-live-codeblock":{"type":"package","name":"@docusaurus/theme-live-codeblock","version":"3.3.2"}}}');var c=n(4848);const u={siteConfig:o.default,siteMetadata:l,globalData:a,i18n:i,codeTranslations:s},d=r.createContext(u);function p(e){let{children:t}=e;return(0,c.jsx)(d.Provider,{value:u,children:t})}},7489:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(6540),o=n(8193),a=n(5260),i=n(440),s=n(4561),l=n(3102),c=n(4848);function u(e){let{error:t,tryAgain:n}=e;return(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"},children:[(0,c.jsx)("h1",{style:{fontSize:"3rem"},children:"This page crashed"}),(0,c.jsx)("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"},children:"Try again"}),(0,c.jsx)(d,{error:t})]})}function d(e){let{error:t}=e;const n=(0,i.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,c.jsx)("p",{style:{whiteSpace:"pre-wrap"},children:n})}function p(e){let{children:t}=e;return(0,c.jsx)(l.W,{value:{plugin:{name:"docusaurus-core-error-boundary",id:"default"}},children:t})}function f(e){let{error:t,tryAgain:n}=e;return(0,c.jsx)(p,{children:(0,c.jsxs)(g,{fallback:()=>(0,c.jsx)(u,{error:t,tryAgain:n}),children:[(0,c.jsx)(a.A,{children:(0,c.jsx)("title",{children:"Page Error"})}),(0,c.jsx)(s.A,{children:(0,c.jsx)(u,{error:t,tryAgain:n})})]})})}const m=e=>(0,c.jsx)(f,{...e});class g extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){o.A.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??m)(e)}return e??null}}},8193:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,o={canUseDOM:r,canUseEventListeners:r&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:r&&"IntersectionObserver"in window,canUseViewport:r&&"screen"in window}},5260:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(6540);var r=n(545),o=n(4848);function a(e){return(0,o.jsx)(r.mg,{...e})}},8774:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(6540),o=n(4625),a=n(440),i=n(4586),s=n(6654),l=n(8193),c=n(3427),u=n(6025),d=n(4848);function p(e,t){let{isNavLink:n,to:p,href:f,activeClassName:m,isActive:g,"data-noBrokenLinkCheck":h,autoAddBaseUrl:b=!0,...y}=e;const{siteConfig:{trailingSlash:v,baseUrl:w}}=(0,i.A)(),{withBaseUrl:k}=(0,u.h)(),x=(0,c.A)(),S=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(()=>S.current));const _=p||f;const E=(0,s.A)(_),C=_?.replace("pathname://","");let T=void 0!==C?(A=C,b&&(e=>e.startsWith("/"))(A)?k(A):A):void 0;var A;T&&E&&(T=(0,a.applyTrailingSlash)(T,{trailingSlash:v,baseUrl:w}));const P=(0,r.useRef)(!1),j=n?o.k2:o.N_,L=l.A.canUseIntersectionObserver,R=(0,r.useRef)(),N=()=>{P.current||null==T||(window.docusaurus.preload(T),P.current=!0)};(0,r.useEffect)((()=>(!L&&E&&null!=T&&window.docusaurus.prefetch(T),()=>{L&&R.current&&R.current.disconnect()})),[R,T,L,E]);const O=T?.startsWith("#")??!1,D=!y.target||"_self"===y.target,M=!T||!E||!D||O;return h||!O&&M||x.collectLink(T),y.id&&x.collectAnchor(y.id),M?(0,d.jsx)("a",{ref:S,href:T,..._&&!E&&{target:"_blank",rel:"noopener noreferrer"},...y}):(0,d.jsx)(j,{...y,onMouseEnter:N,onTouchStart:N,innerRef:e=>{S.current=e,L&&e&&E&&(R.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(R.current.unobserve(e),R.current.disconnect(),null!=T&&window.docusaurus.prefetch(T))}))})),R.current.observe(e))},to:T,...n&&{isActive:g,activeClassName:m}})}const f=r.forwardRef(p)},1312:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,T:()=>l});var r=n(6540),o=n(4848);function a(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=t?.[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var i=n(2654);function s(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return i[t??n]??n??t}function l(e,t){let{message:n,id:r}=e;return a(s({message:n,id:r}),t)}function c(e){let{children:t,id:n,values:r}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal <Translate> children",t),new Error("The Docusaurus <Translate> component only accept simple string values");const i=s({message:t,id:n});return(0,o.jsx)(o.Fragment,{children:a(i,r)})}},7065:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const r="default"},6654:(e,t,n)=>{"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function o(e){return void 0!==e&&!r(e)}n.d(t,{A:()=>o,z:()=>r})},6025:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,h:()=>i});var r=n(6540),o=n(4586),a=n(6654);function i(){const{siteConfig:{baseUrl:e,url:t}}=(0,o.A)(),n=(0,r.useCallback)(((n,r)=>function(e,t,n,r){let{forcePrependBaseUrl:o=!1,absolute:i=!1}=void 0===r?{}:r;if(!n||n.startsWith("#")||(0,a.z)(n))return n;if(o)return t+n.replace(/^\//,"");if(n===t.replace(/\/$/,""))return t;const s=n.startsWith(t)?n:t+n.replace(/^\//,"");return i?e+s:s}(t,e,n,r)),[t,e]);return{withBaseUrl:n}}function s(e,t){void 0===t&&(t={});const{withBaseUrl:n}=i();return n(e,t)}},3427:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6540);n(4848);const o=r.createContext({collectAnchor:()=>{},collectLink:()=>{}}),a=()=>(0,r.useContext)(o);function i(){return a()}},4586:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6540),o=n(6988);function a(){return(0,r.useContext)(o.o)}},2303:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6540),o=n(6125);function a(){return(0,r.useContext)(o.o)}},205:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);const o=n(8193).A.canUseDOM?r.useLayoutEffect:r.useEffect},6803:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6540),o=n(3102);function a(){const e=r.useContext(o.o);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}},6921:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;function o(e){const t={};return function e(n,o){Object.entries(n).forEach((n=>{let[a,i]=n;const s=o?`${o}.${a}`:a;r(i)?e(i,s):t[s]=i}))}(e),t}},3102:(e,t,n)=>{"use strict";n.d(t,{W:()=>i,o:()=>a});var r=n(6540),o=n(4848);const a=r.createContext(null);function i(e){let{children:t,value:n}=e;const i=r.useContext(a),s=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...n?.data};return{plugin:t.plugin,data:r}}({parent:i,value:n})),[i,n]);return(0,o.jsx)(a.Provider,{value:s,children:t})}},4070:(e,t,n)=>{"use strict";n.d(t,{zK:()=>b,vT:()=>f,gk:()=>m,Gy:()=>d,HW:()=>y,ht:()=>p,r7:()=>h,jh:()=>g});var r=n(6347),o=n(4586),a=n(7065);function i(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,o.A)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}const s=e=>e.versions.find((e=>e.isLast));function l(e,t){const n=s(e);return[...e.versions.filter((e=>e!==n)),n].find((e=>!!(0,r.B6)(t,{path:e.path,exact:!1,strict:!1})))}function c(e,t){const n=l(e,t),o=n?.docs.find((e=>!!(0,r.B6)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:o,alternateDocVersions:o?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(o.id):{}}}const u={},d=()=>i("docusaurus-plugin-content-docs")??u,p=e=>{try{return function(e,t,n){void 0===t&&(t=a.W),void 0===n&&(n={});const r=i(e),o=r?.[t];if(!o&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return o}("docusaurus-plugin-content-docs",e,{failfast:!0})}catch(t){throw new Error("You are using a feature of the Docusaurus docs plugin, but this plugin does not seem to be enabled"+("Default"===e?"":` (pluginId=${e}`),{cause:t})}};function f(e){void 0===e&&(e={});const t=d(),{pathname:n}=(0,r.zy)();return function(e,t,n){void 0===n&&(n={});const o=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.B6)(t,{path:n.path,exact:!1,strict:!1})})),a=o?{pluginId:o[0],pluginData:o[1]}:void 0;if(!a&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return a}(t,n,e)}function m(e){void 0===e&&(e={});const t=f(e),{pathname:n}=(0,r.zy)();if(!t)return;return{activePlugin:t,activeVersion:l(t.pluginData,n)}}function g(e){return p(e).versions}function h(e){const t=p(e);return s(t)}function b(e){const t=p(e),{pathname:n}=(0,r.zy)();return c(t,n)}function y(e){const t=p(e),{pathname:n}=(0,r.zy)();return function(e,t){const n=s(e);return{latestDocSuggestion:c(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},6294:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(5947),o=n.n(r);o().configure({showSpinner:!1});const a={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{o().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){o().done()}}},6134:(e,t,n)=>{"use strict";n.r(t);var r=n(1765),o=n(4784);!function(e){const{themeConfig:{prism:t}}=o.default,{additionalLanguages:r}=t;globalThis.Prism=e,r.forEach((e=>{"php"===e&&n(9700),n(8692)(`./prism-${e}`)})),delete globalThis.Prism}(r.My)},1107:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});n(6540);var r=n(4164),o=n(1312),a=n(6342),i=n(8774),s=n(3427);const l={anchorWithStickyNavbar:"anchorWithStickyNavbar_LWe7",anchorWithHideOnScrollNavbar:"anchorWithHideOnScrollNavbar_WYt5"};var c=n(4848);function u(e){let{as:t,id:n,...u}=e;const d=(0,s.A)(),{navbar:{hideOnScroll:p}}=(0,a.p)();if("h1"===t||!n)return(0,c.jsx)(t,{...u,id:void 0});d.collectAnchor(n);const f=(0,o.T)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}",description:"Title for link to heading"},{heading:"string"==typeof u.children?u.children:n});return(0,c.jsxs)(t,{...u,className:(0,r.A)("anchor",p?l.anchorWithHideOnScrollNavbar:l.anchorWithStickyNavbar,u.className),id:n,children:[u.children,(0,c.jsx)(i.A,{className:"hash-link",to:`#${n}`,"aria-label":f,title:f,children:"\u200b"})]})}},3186:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(6540);const r={iconExternalLink:"iconExternalLink_nPIU"};var o=n(4848);function a(e){let{width:t=13.5,height:n=13.5}=e;return(0,o.jsx)("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:r.iconExternalLink,children:(0,o.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})}},4561:(e,t,n)=>{"use strict";n.d(t,{A:()=>Pt});var r=n(6540),o=n(4164),a=n(7489),i=n(5500),s=n(6347),l=n(1312),c=n(5062),u=n(4848);const d="__docusaurus_skipToContent_fallback";function p(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function f(){const e=(0,r.useRef)(null),{action:t}=(0,s.W6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.getElementById(d);t&&p(t)}),[]);return(0,c.$)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&p(e.current)})),{containerRef:e,onClick:n}}const m=(0,l.T)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function g(e){const t=e.children??m,{containerRef:n,onClick:r}=f();return(0,u.jsx)("div",{ref:n,role:"region","aria-label":m,children:(0,u.jsx)("a",{...e,href:`#${d}`,onClick:r,children:t})})}var h=n(7559),b=n(4090);const y={skipToContent:"skipToContent_fXgn"};function v(){return(0,u.jsx)(g,{className:y.skipToContent})}var w=n(6342),k=n(5041);function x(e){let{width:t=21,height:n=21,color:r="currentColor",strokeWidth:o=1.2,className:a,...i}=e;return(0,u.jsx)("svg",{viewBox:"0 0 15 15",width:t,height:n,...i,children:(0,u.jsx)("g",{stroke:r,strokeWidth:o,children:(0,u.jsx)("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})})})}const S={closeButton:"closeButton_CVFx"};function _(e){return(0,u.jsx)("button",{type:"button","aria-label":(0,l.T)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"}),...e,className:(0,o.A)("clean-btn close",S.closeButton,e.className),children:(0,u.jsx)(x,{width:14,height:14,strokeWidth:3.1})})}const E={content:"content_knG7"};function C(e){const{announcementBar:t}=(0,w.p)(),{content:n}=t;return(0,u.jsx)("div",{...e,className:(0,o.A)(E.content,e.className),dangerouslySetInnerHTML:{__html:n}})}const T={announcementBar:"announcementBar_mb4j",announcementBarPlaceholder:"announcementBarPlaceholder_vyr4",announcementBarClose:"announcementBarClose_gvF7",announcementBarContent:"announcementBarContent_xLdY"};function A(){const{announcementBar:e}=(0,w.p)(),{isActive:t,close:n}=(0,k.Mj)();if(!t)return null;const{backgroundColor:r,textColor:o,isCloseable:a}=e;return(0,u.jsxs)("div",{className:T.announcementBar,style:{backgroundColor:r,color:o},role:"banner",children:[a&&(0,u.jsx)("div",{className:T.announcementBarPlaceholder}),(0,u.jsx)(C,{className:T.announcementBarContent}),a&&(0,u.jsx)(_,{onClick:n,className:T.announcementBarClose})]})}var P=n(2069),j=n(3104);var L=n(9532),R=n(5600);const N=r.createContext(null);function O(e){let{children:t}=e;const n=function(){const e=(0,P.M)(),t=(0,R.YL)(),[n,o]=(0,r.useState)(!1),a=null!==t.component,i=(0,L.ZC)(a);return(0,r.useEffect)((()=>{a&&!i&&o(!0)}),[a,i]),(0,r.useEffect)((()=>{a?e.shown||o(!0):o(!1)}),[e.shown,a]),(0,r.useMemo)((()=>[n,o]),[n])}();return(0,u.jsx)(N.Provider,{value:n,children:t})}function D(e){if(e.component){const t=e.component;return(0,u.jsx)(t,{...e.props})}}function M(){const e=(0,r.useContext)(N);if(!e)throw new L.dV("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,o=(0,r.useCallback)((()=>n(!1)),[n]),a=(0,R.YL)();return(0,r.useMemo)((()=>({shown:t,hide:o,content:D(a)})),[o,a,t])}function I(e){let{header:t,primaryMenu:n,secondaryMenu:r}=e;const{shown:a}=M();return(0,u.jsxs)("div",{className:"navbar-sidebar",children:[t,(0,u.jsxs)("div",{className:(0,o.A)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":a}),children:[(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:n}),(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:r})]})]})}var F=n(5293),z=n(2303);function B(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})})}function $(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})})}const U={toggle:"toggle_vylO",toggleButton:"toggleButton_gllP",darkToggleIcon:"darkToggleIcon_wfgR",lightToggleIcon:"lightToggleIcon_pyhR",toggleButtonDisabled:"toggleButtonDisabled_aARS"};function q(e){let{className:t,buttonClassName:n,value:r,onChange:a}=e;const i=(0,z.A)(),s=(0,l.T)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===r?(0,l.T)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,l.T)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return(0,u.jsx)("div",{className:(0,o.A)(U.toggle,t),children:(0,u.jsxs)("button",{className:(0,o.A)("clean-btn",U.toggleButton,!i&&U.toggleButtonDisabled,n),type:"button",onClick:()=>a("dark"===r?"light":"dark"),disabled:!i,title:s,"aria-label":s,"aria-live":"polite",children:[(0,u.jsx)(B,{className:(0,o.A)(U.toggleIcon,U.lightToggleIcon)}),(0,u.jsx)($,{className:(0,o.A)(U.toggleIcon,U.darkToggleIcon)})]})})}const G=r.memo(q),H={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_X3D1"};function W(e){let{className:t}=e;const n=(0,w.p)().navbar.style,r=(0,w.p)().colorMode.disableSwitch,{colorMode:o,setColorMode:a}=(0,F.G)();return r?null:(0,u.jsx)(G,{className:t,buttonClassName:"dark"===n?H.darkNavbarColorModeToggle:void 0,value:o,onChange:a})}var V=n(3465);function K(){return(0,u.jsx)(V.A,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function Q(){const e=(0,P.M)();return(0,u.jsx)("button",{type:"button","aria-label":(0,l.T)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle(),children:(0,u.jsx)(x,{color:"var(--ifm-color-emphasis-600)"})})}function Y(){return(0,u.jsxs)("div",{className:"navbar-sidebar__brand",children:[(0,u.jsx)(K,{}),(0,u.jsx)(W,{className:"margin-right--md"}),(0,u.jsx)(Q,{})]})}var Z=n(8774),X=n(6025),J=n(6654),ee=n(1252),te=n(3186);function ne(e){let{activeBasePath:t,activeBaseRegex:n,to:r,href:o,label:a,html:i,isDropdownLink:s,prependBaseUrlToHref:l,...c}=e;const d=(0,X.A)(r),p=(0,X.A)(t),f=(0,X.A)(o,{forcePrependBaseUrl:!0}),m=a&&o&&!(0,J.A)(o),g=i?{dangerouslySetInnerHTML:{__html:i}}:{children:(0,u.jsxs)(u.Fragment,{children:[a,m&&(0,u.jsx)(te.A,{...s&&{width:12,height:12}})]})};return o?(0,u.jsx)(Z.A,{href:l?f:o,...c,...g}):(0,u.jsx)(Z.A,{to:d,isNavLink:!0,...(t||n)&&{isActive:(e,t)=>n?(0,ee.G)(n,t.pathname):t.pathname.startsWith(p)},...c,...g})}function re(e){let{className:t,isDropdownItem:n=!1,...r}=e;const a=(0,u.jsx)(ne,{className:(0,o.A)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n,...r});return n?(0,u.jsx)("li",{children:a}):a}function oe(e){let{className:t,isDropdownItem:n,...r}=e;return(0,u.jsx)("li",{className:"menu__list-item",children:(0,u.jsx)(ne,{className:(0,o.A)("menu__link",t),...r})})}function ae(e){let{mobile:t=!1,position:n,...r}=e;const o=t?oe:re;return(0,u.jsx)(o,{...r,activeClassName:r.activeClassName??(t?"menu__link--active":"navbar__link--active")})}var ie=n(1422),se=n(9169),le=n(4586);const ce={dropdownNavbarItemMobile:"dropdownNavbarItemMobile_S0Fm"};function ue(e,t){return e.some((e=>function(e,t){return!!(0,se.ys)(e.to,t)||!!(0,ee.G)(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function de(e){let{items:t,position:n,className:a,onClick:i,...s}=e;const l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[l]),(0,u.jsxs)("div",{ref:l,className:(0,o.A)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":c}),children:[(0,u.jsx)(ne,{"aria-haspopup":"true","aria-expanded":c,role:"button",href:s.to?void 0:"#",className:(0,o.A)("navbar__link",a),...s,onClick:s.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d(!c))},children:s.children??s.label}),(0,u.jsx)("ul",{className:"dropdown__menu",children:t.map(((e,t)=>(0,r.createElement)(He,{isDropdownItem:!0,activeClassName:"dropdown__link--active",...e,key:t})))})]})}function pe(e){let{items:t,className:n,position:a,onClick:i,...l}=e;const c=function(){const{siteConfig:{baseUrl:e}}=(0,le.A)(),{pathname:t}=(0,s.zy)();return t.replace(e,"/")}(),d=ue(t,c),{collapsed:p,toggleCollapsed:f,setCollapsed:m}=(0,ie.u)({initialState:()=>!d});return(0,r.useEffect)((()=>{d&&m(!d)}),[c,d,m]),(0,u.jsxs)("li",{className:(0,o.A)("menu__list-item",{"menu__list-item--collapsed":p}),children:[(0,u.jsx)(ne,{role:"button",className:(0,o.A)(ce.dropdownNavbarItemMobile,"menu__link menu__link--sublist menu__link--sublist-caret",n),...l,onClick:e=>{e.preventDefault(),f()},children:l.children??l.label}),(0,u.jsx)(ie.N,{lazy:!0,as:"ul",className:"menu__list",collapsed:p,children:t.map(((e,t)=>(0,r.createElement)(He,{mobile:!0,isDropdownItem:!0,onClick:i,activeClassName:"menu__link--active",...e,key:t})))})]})}function fe(e){let{mobile:t=!1,...n}=e;const r=t?pe:de;return(0,u.jsx)(r,{...n})}var me=n(2131);function ge(e){let{width:t=20,height:n=20,...r}=e;return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0,...r,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"})})}const he="iconLanguage_nlXk";var be=n(961);function ye(){return r.createElement("svg",{width:"15",height:"15",className:"DocSearch-Control-Key-Icon"},r.createElement("path",{d:"M4.505 4.496h2M5.505 5.496v5M8.216 4.496l.055 5.993M10 7.5c.333.333.5.667.5 1v2M12.326 4.5v5.996M8.384 4.496c1.674 0 2.116 0 2.116 1.5s-.442 1.5-2.116 1.5M3.205 9.303c-.09.448-.277 1.21-1.241 1.203C1 10.5.5 9.513.5 8V7c0-1.57.5-2.5 1.464-2.494.964.006 1.134.598 1.24 1.342M12.553 10.5h1.953",strokeWidth:"1.2",stroke:"currentColor",fill:"none",strokeLinecap:"square"}))}var ve=n(9188),we=["translations"];function ke(){return ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(this,arguments)}function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Se(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ee="Ctrl";var Ce=r.forwardRef((function(e,t){var n=e.translations,o=void 0===n?{}:n,a=_e(e,we),i=o.buttonText,s=void 0===i?"Search":i,l=o.buttonAriaLabel,c=void 0===l?"Search":l,u=xe((0,r.useState)(null),2),d=u[0],p=u[1];return(0,r.useEffect)((function(){"undefined"!=typeof navigator&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?p("\u2318"):p(Ee))}),[]),r.createElement("button",ke({type:"button",className:"DocSearch DocSearch-Button","aria-label":c},a,{ref:t}),r.createElement("span",{className:"DocSearch-Button-Container"},r.createElement(ve.W,null),r.createElement("span",{className:"DocSearch-Button-Placeholder"},s)),r.createElement("span",{className:"DocSearch-Button-Keys"},null!==d&&r.createElement(r.Fragment,null,r.createElement(Te,{reactsToKey:d===Ee?Ee:"Meta"},d===Ee?r.createElement(ye,null):d),r.createElement(Te,{reactsToKey:"k"},"K"))))}));function Te(e){var t=e.reactsToKey,n=e.children,o=xe((0,r.useState)(!1),2),a=o[0],i=o[1];return(0,r.useEffect)((function(){if(t)return window.addEventListener("keydown",e),window.addEventListener("keyup",n),function(){window.removeEventListener("keydown",e),window.removeEventListener("keyup",n)};function e(e){e.key===t&&i(!0)}function n(e){e.key!==t&&"Meta"!==e.key||i(!1)}}),[t]),r.createElement("kbd",{className:a?"DocSearch-Button-Key DocSearch-Button-Key--pressed":"DocSearch-Button-Key"},n)}var Ae=n(5260),Pe=n(4255),je=n(1062),Le=n(2967);const Re={button:{buttonText:(0,l.T)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"}),buttonAriaLabel:(0,l.T)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"})},modal:{searchBox:{resetButtonTitle:(0,l.T)({id:"theme.SearchModal.searchBox.resetButtonTitle",message:"Clear the query",description:"The label and ARIA label for search box reset button"}),resetButtonAriaLabel:(0,l.T)({id:"theme.SearchModal.searchBox.resetButtonTitle",message:"Clear the query",description:"The label and ARIA label for search box reset button"}),cancelButtonText:(0,l.T)({id:"theme.SearchModal.searchBox.cancelButtonText",message:"Cancel",description:"The label and ARIA label for search box cancel button"}),cancelButtonAriaLabel:(0,l.T)({id:"theme.SearchModal.searchBox.cancelButtonText",message:"Cancel",description:"The label and ARIA label for search box cancel button"})},startScreen:{recentSearchesTitle:(0,l.T)({id:"theme.SearchModal.startScreen.recentSearchesTitle",message:"Recent",description:"The title for recent searches"}),noRecentSearchesText:(0,l.T)({id:"theme.SearchModal.startScreen.noRecentSearchesText",message:"No recent searches",description:"The text when no recent searches"}),saveRecentSearchButtonTitle:(0,l.T)({id:"theme.SearchModal.startScreen.saveRecentSearchButtonTitle",message:"Save this search",description:"The label for save recent search button"}),removeRecentSearchButtonTitle:(0,l.T)({id:"theme.SearchModal.startScreen.removeRecentSearchButtonTitle",message:"Remove this search from history",description:"The label for remove recent search button"}),favoriteSearchesTitle:(0,l.T)({id:"theme.SearchModal.startScreen.favoriteSearchesTitle",message:"Favorite",description:"The title for favorite searches"}),removeFavoriteSearchButtonTitle:(0,l.T)({id:"theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle",message:"Remove this search from favorites",description:"The label for remove favorite search button"})},errorScreen:{titleText:(0,l.T)({id:"theme.SearchModal.errorScreen.titleText",message:"Unable to fetch results",description:"The title for error screen of search modal"}),helpText:(0,l.T)({id:"theme.SearchModal.errorScreen.helpText",message:"You might want to check your network connection.",description:"The help text for error screen of search modal"})},footer:{selectText:(0,l.T)({id:"theme.SearchModal.footer.selectText",message:"to select",description:"The explanatory text of the action for the enter key"}),selectKeyAriaLabel:(0,l.T)({id:"theme.SearchModal.footer.selectKeyAriaLabel",message:"Enter key",description:"The ARIA label for the Enter key button that makes the selection"}),navigateText:(0,l.T)({id:"theme.SearchModal.footer.navigateText",message:"to navigate",description:"The explanatory text of the action for the Arrow up and Arrow down key"}),navigateUpKeyAriaLabel:(0,l.T)({id:"theme.SearchModal.footer.navigateUpKeyAriaLabel",message:"Arrow up",description:"The ARIA label for the Arrow up key button that makes the navigation"}),navigateDownKeyAriaLabel:(0,l.T)({id:"theme.SearchModal.footer.navigateDownKeyAriaLabel",message:"Arrow down",description:"The ARIA label for the Arrow down key button that makes the navigation"}),closeText:(0,l.T)({id:"theme.SearchModal.footer.closeText",message:"to close",description:"The explanatory text of the action for Escape key"}),closeKeyAriaLabel:(0,l.T)({id:"theme.SearchModal.footer.closeKeyAriaLabel",message:"Escape key",description:"The ARIA label for the Escape key button that close the modal"}),searchByText:(0,l.T)({id:"theme.SearchModal.footer.searchByText",message:"Search by",description:"The text explain that the search is making by Algolia"})},noResultsScreen:{noResultsText:(0,l.T)({id:"theme.SearchModal.noResultsScreen.noResultsText",message:"No results for",description:"The text explains that there are no results for the following search"}),suggestedQueryText:(0,l.T)({id:"theme.SearchModal.noResultsScreen.suggestedQueryText",message:"Try searching for",description:"The text for the suggested query when no results are found for the following search"}),reportMissingResultsText:(0,l.T)({id:"theme.SearchModal.noResultsScreen.reportMissingResultsText",message:"Believe this query should return results?",description:"The text for the question where the user thinks there are missing results"}),reportMissingResultsLinkText:(0,l.T)({id:"theme.SearchModal.noResultsScreen.reportMissingResultsLinkText",message:"Let us know.",description:"The text for the link to report missing results"})}},placeholder:(0,l.T)({id:"theme.SearchModal.placeholder",message:"Search docs",description:"The placeholder of the input of the DocSearch pop-up modal"})};let Ne=null;function Oe(e){let{hit:t,children:n}=e;return(0,u.jsx)(Z.A,{to:t.url,children:n})}function De(e){let{state:t,onClose:n}=e;const r=(0,Pe.w)();return(0,u.jsx)(Z.A,{to:r(t.query),onClick:n,children:(0,u.jsx)(l.A,{id:"theme.SearchBar.seeAll",values:{count:t.context.nbHits},children:"See all {count} results"})})}function Me(e){let{contextualSearch:t,externalUrlRegex:o,...a}=e;const{siteMetadata:i}=(0,le.A)(),l=(0,je.C)(),c=function(){const{locale:e,tags:t}=(0,Le.af)();return[`language:${e}`,t.map((e=>`docusaurus_tag:${e}`))]}(),d=a.searchParameters?.facetFilters??[],p=t?function(e,t){const n=e=>"string"==typeof e?[e]:e;return[...n(e),...n(t)]}(c,d):d,f={...a.searchParameters,facetFilters:p},m=(0,s.W6)(),g=(0,r.useRef)(null),h=(0,r.useRef)(null),[b,y]=(0,r.useState)(!1),[v,w]=(0,r.useState)(void 0),k=(0,r.useCallback)((()=>Ne?Promise.resolve():Promise.all([n.e(9462).then(n.bind(n,9462)),Promise.all([n.e(1869),n.e(8913)]).then(n.bind(n,8913)),Promise.all([n.e(1869),n.e(416)]).then(n.bind(n,416))]).then((e=>{let[{DocSearchModal:t}]=e;Ne=t}))),[]),x=(0,r.useCallback)((()=>{k().then((()=>{g.current=document.createElement("div"),document.body.insertBefore(g.current,document.body.firstChild),y(!0)}))}),[k,y]),S=(0,r.useCallback)((()=>{y(!1),g.current?.remove(),h.current?.focus()}),[y]),_=(0,r.useCallback)((e=>{k().then((()=>{y(!0),w(e.key)}))}),[k,y,w]),E=(0,r.useRef)({navigate(e){let{itemUrl:t}=e;(0,ee.G)(o,t)?window.location.href=t:m.push(t)}}).current,C=(0,r.useRef)((e=>a.transformItems?a.transformItems(e):e.map((e=>({...e,url:l(e.url)}))))).current,T=(0,r.useMemo)((()=>e=>(0,u.jsx)(De,{...e,onClose:S})),[S]),A=(0,r.useCallback)((e=>(e.addAlgoliaAgent("docusaurus",i.docusaurusVersion),e)),[i.docusaurusVersion]);return function(e){var t=e.isOpen,n=e.onOpen,o=e.onClose,a=e.onInput,i=e.searchButtonRef;r.useEffect((function(){function e(e){var r;(27===e.keyCode&&t||"k"===(null===(r=e.key)||void 0===r?void 0:r.toLowerCase())&&(e.metaKey||e.ctrlKey)||!function(e){var t=e.target,n=t.tagName;return t.isContentEditable||"INPUT"===n||"SELECT"===n||"TEXTAREA"===n}(e)&&"/"===e.key&&!t)&&(e.preventDefault(),t?o():document.body.classList.contains("DocSearch--active")||document.body.classList.contains("DocSearch--active")||n()),i&&i.current===document.activeElement&&a&&/[a-zA-Z0-9]/.test(String.fromCharCode(e.keyCode))&&a(e)}return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t,n,o,a,i])}({isOpen:b,onOpen:x,onClose:S,onInput:_,searchButtonRef:h}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Ae.A,{children:(0,u.jsx)("link",{rel:"preconnect",href:`https://${a.appId}-dsn.algolia.net`,crossOrigin:"anonymous"})}),(0,u.jsx)(Ce,{onTouchStart:k,onFocus:k,onMouseOver:k,onClick:x,ref:h,translations:Re.button}),b&&Ne&&g.current&&(0,be.createPortal)((0,u.jsx)(Ne,{onClose:S,initialScrollY:window.scrollY,initialQuery:v,navigator:E,transformItems:C,hitComponent:Oe,transformSearchClient:A,...a.searchPagePath&&{resultsFooterComponent:T},...a,searchParameters:f,placeholder:Re.placeholder,translations:Re.modal}),g.current)]})}function Ie(){const{siteConfig:e}=(0,le.A)();return(0,u.jsx)(Me,{...e.themeConfig.algolia})}const Fe={navbarSearchContainer:"navbarSearchContainer_Bca1"};function ze(e){let{children:t,className:n}=e;return(0,u.jsx)("div",{className:(0,o.A)(n,Fe.navbarSearchContainer),children:t})}var Be=n(4070),$e=n(1754);var Ue=n(5597);const qe=e=>e.docs.find((t=>t.id===e.mainDocId));const Ge={default:ae,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:r,queryString:o="",...a}=e;const{i18n:{currentLocale:i,locales:c,localeConfigs:d}}=(0,le.A)(),p=(0,me.o)(),{search:f,hash:m}=(0,s.zy)(),g=[...n,...c.map((e=>{const n=`${`pathname://${p.createUrl({locale:e,fullyQualified:!1})}`}${f}${m}${o}`;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===i?t?"menu__link--active":"dropdown__link--active":""}})),...r],h=t?(0,l.T)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[i].label;return(0,u.jsx)(fe,{...a,mobile:t,label:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ge,{className:he}),h]}),items:g})},search:function(e){let{mobile:t,className:n}=e;return t?null:(0,u.jsx)(ze,{className:n,children:(0,u.jsx)(Ie,{})})},dropdown:fe,html:function(e){let{value:t,className:n,mobile:r=!1,isDropdownItem:a=!1}=e;const i=a?"li":"div";return(0,u.jsx)(i,{className:(0,o.A)({navbar__item:!r&&!a,"menu__list-item":r},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:r,...o}=e;const{activeDoc:a}=(0,Be.zK)(r),i=(0,$e.QB)(t,r),s=a?.path===i?.path;return null===i||i.unlisted&&!s?null:(0,u.jsx)(ae,{exact:!0,...o,isActive:()=>s||!!a?.sidebar&&a.sidebar===i.sidebar,label:n??i.id,to:i.path})},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:r,...o}=e;const{activeDoc:a}=(0,Be.zK)(r),i=(0,$e.fW)(t,r).link;if(!i)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return(0,u.jsx)(ae,{exact:!0,...o,isActive:()=>a?.sidebar===t,label:n??i.label,to:i.path})},docsVersion:function(e){let{label:t,to:n,docsPluginId:r,...o}=e;const a=(0,$e.Vd)(r)[0],i=t??a.label,s=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(a).path;return(0,u.jsx)(ae,{...o,label:i,to:s})},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:r,dropdownItemsBefore:o,dropdownItemsAfter:a,...i}=e;const{search:c,hash:d}=(0,s.zy)(),p=(0,Be.zK)(n),f=(0,Be.jh)(n),{savePreferredVersionName:m}=(0,Ue.g1)(n),g=[...o,...f.map((e=>{const t=p.alternateDocVersions[e.name]??qe(e);return{label:e.label,to:`${t.path}${c}${d}`,isActive:()=>e===p.activeVersion,onClick:()=>m(e.name)}})),...a],h=(0,$e.Vd)(n)[0],b=t&&g.length>1?(0,l.T)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):h.label,y=t&&g.length>1?void 0:qe(h).path;return g.length<=1?(0,u.jsx)(ae,{...i,mobile:t,label:b,to:y,isActive:r?()=>!1:void 0}):(0,u.jsx)(fe,{...i,mobile:t,label:b,to:y,items:g,isActive:r?()=>!1:void 0})}};function He(e){let{type:t,...n}=e;const r=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),o=Ge[r];if(!o)throw new Error(`No NavbarItem component found for type "${t}".`);return(0,u.jsx)(o,{...n})}function We(){const e=(0,P.M)(),t=(0,w.p)().navbar.items;return(0,u.jsx)("ul",{className:"menu__list",children:t.map(((t,n)=>(0,r.createElement)(He,{mobile:!0,...t,onClick:()=>e.toggle(),key:n})))})}function Ve(e){return(0,u.jsx)("button",{...e,type:"button",className:"clean-btn navbar-sidebar__back",children:(0,u.jsx)(l.A,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)",children:"\u2190 Back to main menu"})})}function Ke(){const e=0===(0,w.p)().navbar.items.length,t=M();return(0,u.jsxs)(u.Fragment,{children:[!e&&(0,u.jsx)(Ve,{onClick:()=>t.hide()}),t.content]})}function Qe(){const e=(0,P.M)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?(0,u.jsx)(I,{header:(0,u.jsx)(Y,{}),primaryMenu:(0,u.jsx)(We,{}),secondaryMenu:(0,u.jsx)(Ke,{})}):null}const Ye={navbarHideable:"navbarHideable_m1mJ",navbarHidden:"navbarHidden_jGov"};function Ze(e){return(0,u.jsx)("div",{role:"presentation",...e,className:(0,o.A)("navbar-sidebar__backdrop",e.className)})}function Xe(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:a}}=(0,w.p)(),i=(0,P.M)(),{navbarRef:s,isNavbarVisible:d}=function(e){const[t,n]=(0,r.useState)(e),o=(0,r.useRef)(!1),a=(0,r.useRef)(0),i=(0,r.useCallback)((e=>{null!==e&&(a.current=e.getBoundingClientRect().height)}),[]);return(0,j.Mq)(((t,r)=>{let{scrollY:i}=t;if(!e)return;if(i<a.current)return void n(!0);if(o.current)return void(o.current=!1);const s=r?.scrollY,l=document.documentElement.scrollHeight-a.current,c=window.innerHeight;s&&i>=s?n(!1):i+c<l&&n(!0)})),(0,c.$)((t=>{if(!e)return;const r=t.location.hash;if(r?document.getElementById(r.substring(1)):void 0)return o.current=!0,void n(!1);n(!0)})),{navbarRef:i,isNavbarVisible:t}}(n);return(0,u.jsxs)("nav",{ref:s,"aria-label":(0,l.T)({id:"theme.NavBar.navAriaLabel",message:"Main",description:"The ARIA label for the main navigation"}),className:(0,o.A)("navbar","navbar--fixed-top",n&&[Ye.navbarHideable,!d&&Ye.navbarHidden],{"navbar--dark":"dark"===a,"navbar--primary":"primary"===a,"navbar-sidebar--show":i.shown}),children:[t,(0,u.jsx)(Ze,{onClick:i.toggle}),(0,u.jsx)(Qe,{})]})}var Je=n(2181);const et="right";function tt(e){let{width:t=30,height:n=30,className:r,...o}=e;return(0,u.jsx)("svg",{className:r,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true",...o,children:(0,u.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"})})}function nt(){const{toggle:e,shown:t}=(0,P.M)();return(0,u.jsx)("button",{onClick:e,"aria-label":(0,l.T)({id:"theme.docs.sidebar.toggleSidebarButtonAriaLabel",message:"Toggle navigation bar",description:"The ARIA label for hamburger menu button of mobile navigation"}),"aria-expanded":t,className:"navbar__toggle clean-btn",type:"button",children:(0,u.jsx)(tt,{})})}const rt={colorModeToggle:"colorModeToggle_DEke"};function ot(e){let{items:t}=e;return(0,u.jsx)(u.Fragment,{children:t.map(((e,t)=>(0,u.jsx)(Je.k2,{onError:t=>new Error(`A theme navbar item failed to render.\nPlease double-check the following navbar item (themeConfig.navbar.items) of your Docusaurus config:\n${JSON.stringify(e,null,2)}`,{cause:t}),children:(0,u.jsx)(He,{...e})},t)))})}function at(e){let{left:t,right:n}=e;return(0,u.jsxs)("div",{className:"navbar__inner",children:[(0,u.jsx)("div",{className:"navbar__items",children:t}),(0,u.jsx)("div",{className:"navbar__items navbar__items--right",children:n})]})}function it(){const e=(0,P.M)(),t=(0,w.p)().navbar.items,[n,r]=function(e){function t(e){return"left"===(e.position??et)}return[e.filter(t),e.filter((e=>!t(e)))]}(t),o=t.find((e=>"search"===e.type));return(0,u.jsx)(at,{left:(0,u.jsxs)(u.Fragment,{children:[!e.disabled&&(0,u.jsx)(nt,{}),(0,u.jsx)(K,{}),(0,u.jsx)(ot,{items:n})]}),right:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ot,{items:r}),(0,u.jsx)(W,{className:rt.colorModeToggle}),!o&&(0,u.jsx)(ze,{children:(0,u.jsx)(Ie,{})})]})})}function st(){return(0,u.jsx)(Xe,{children:(0,u.jsx)(it,{})})}function lt(e){let{item:t}=e;const{to:n,href:r,label:o,prependBaseUrlToHref:a,...i}=t,s=(0,X.A)(n),l=(0,X.A)(r,{forcePrependBaseUrl:!0});return(0,u.jsxs)(Z.A,{className:"footer__link-item",...r?{href:a?l:r}:{to:s},...i,children:[o,r&&!(0,J.A)(r)&&(0,u.jsx)(te.A,{})]})}function ct(e){let{item:t}=e;return t.html?(0,u.jsx)("li",{className:"footer__item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)("li",{className:"footer__item",children:(0,u.jsx)(lt,{item:t})},t.href??t.to)}function ut(e){let{column:t}=e;return(0,u.jsxs)("div",{className:"col footer__col",children:[(0,u.jsx)("div",{className:"footer__title",children:t.title}),(0,u.jsx)("ul",{className:"footer__items clean-list",children:t.items.map(((e,t)=>(0,u.jsx)(ct,{item:e},t)))})]})}function dt(e){let{columns:t}=e;return(0,u.jsx)("div",{className:"row footer__links",children:t.map(((e,t)=>(0,u.jsx)(ut,{column:e},t)))})}function pt(){return(0,u.jsx)("span",{className:"footer__link-separator",children:"\xb7"})}function ft(e){let{item:t}=e;return t.html?(0,u.jsx)("span",{className:"footer__link-item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)(lt,{item:t})}function mt(e){let{links:t}=e;return(0,u.jsx)("div",{className:"footer__links text--center",children:(0,u.jsx)("div",{className:"footer__links",children:t.map(((e,n)=>(0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(ft,{item:e}),t.length!==n+1&&(0,u.jsx)(pt,{})]},n)))})})}function gt(e){let{links:t}=e;return function(e){return"title"in e[0]}(t)?(0,u.jsx)(dt,{columns:t}):(0,u.jsx)(mt,{links:t})}var ht=n(1122);const bt={footerLogoLink:"footerLogoLink_BH7S"};function yt(e){let{logo:t}=e;const{withBaseUrl:n}=(0,X.h)(),r={light:n(t.src),dark:n(t.srcDark??t.src)};return(0,u.jsx)(ht.A,{className:(0,o.A)("footer__logo",t.className),alt:t.alt,sources:r,width:t.width,height:t.height,style:t.style})}function vt(e){let{logo:t}=e;return t.href?(0,u.jsx)(Z.A,{href:t.href,className:bt.footerLogoLink,target:t.target,children:(0,u.jsx)(yt,{logo:t})}):(0,u.jsx)(yt,{logo:t})}function wt(e){let{copyright:t}=e;return(0,u.jsx)("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:t}})}function kt(e){let{style:t,links:n,logo:r,copyright:a}=e;return(0,u.jsx)("footer",{className:(0,o.A)("footer",{"footer--dark":"dark"===t}),children:(0,u.jsxs)("div",{className:"container container-fluid",children:[n,(r||a)&&(0,u.jsxs)("div",{className:"footer__bottom text--center",children:[r&&(0,u.jsx)("div",{className:"margin-bottom--sm",children:r}),a]})]})})}function xt(){const{footer:e}=(0,w.p)();if(!e)return null;const{copyright:t,links:n,logo:r,style:o}=e;return(0,u.jsx)(kt,{style:o,links:n&&n.length>0&&(0,u.jsx)(gt,{links:n}),logo:r&&(0,u.jsx)(vt,{logo:r}),copyright:t&&(0,u.jsx)(wt,{copyright:t})})}const St=r.memo(xt),_t=(0,L.fM)([F.a,k.oq,j.Tv,Ue.VQ,i.Jx,function(e){let{children:t}=e;return(0,u.jsx)(R.y_,{children:(0,u.jsx)(P.e,{children:(0,u.jsx)(O,{children:t})})})}]);function Et(e){let{children:t}=e;return(0,u.jsx)(_t,{children:t})}var Ct=n(1107);function Tt(e){let{error:t,tryAgain:n}=e;return(0,u.jsx)("main",{className:"container margin-vert--xl",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,u.jsx)(Ct.A,{as:"h1",className:"hero__title",children:(0,u.jsx)(l.A,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed",children:"This page crashed."})}),(0,u.jsx)("div",{className:"margin-vert--lg",children:(0,u.jsx)(Je.a2,{onClick:n,className:"button button--primary shadow--lw"})}),(0,u.jsx)("hr",{}),(0,u.jsx)("div",{className:"margin-vert--md",children:(0,u.jsx)(Je.bq,{error:t})})]})})})}const At={mainWrapper:"mainWrapper_z2l0"};function Pt(e){const{children:t,noFooter:n,wrapperClassName:r,title:s,description:l}=e;return(0,b.J)(),(0,u.jsxs)(Et,{children:[(0,u.jsx)(i.be,{title:s,description:l}),(0,u.jsx)(v,{}),(0,u.jsx)(A,{}),(0,u.jsx)(st,{}),(0,u.jsx)("div",{id:d,className:(0,o.A)(h.G.wrapper.main,At.mainWrapper,r),children:(0,u.jsx)(a.A,{fallback:e=>(0,u.jsx)(Tt,{...e}),children:t})}),!n&&(0,u.jsx)(St,{})]})}},3465:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});n(6540);var r=n(8774),o=n(6025),a=n(4586),i=n(6342),s=n(1122),l=n(4848);function c(e){let{logo:t,alt:n,imageClassName:r}=e;const a={light:(0,o.A)(t.src),dark:(0,o.A)(t.srcDark||t.src)},i=(0,l.jsx)(s.A,{className:t.className,sources:a,height:t.height,width:t.width,alt:n,style:t.style});return r?(0,l.jsx)("div",{className:r,children:i}):i}function u(e){const{siteConfig:{title:t}}=(0,a.A)(),{navbar:{title:n,logo:s}}=(0,i.p)(),{imageClassName:u,titleClassName:d,...p}=e,f=(0,o.A)(s?.href||"/"),m=n?"":t,g=s?.alt??m;return(0,l.jsxs)(r.A,{to:f,...p,...s?.target&&{target:s.target},children:[s&&(0,l.jsx)(c,{logo:s,alt:g,imageClassName:u}),null!=n&&(0,l.jsx)("b",{className:d,children:n})]})}},1463:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(6540);var r=n(5260),o=n(4848);function a(e){let{locale:t,version:n,tag:a}=e;const i=t;return(0,o.jsxs)(r.A,{children:[t&&(0,o.jsx)("meta",{name:"docusaurus_locale",content:t}),n&&(0,o.jsx)("meta",{name:"docusaurus_version",content:n}),a&&(0,o.jsx)("meta",{name:"docusaurus_tag",content:a}),i&&(0,o.jsx)("meta",{name:"docsearch:language",content:i}),n&&(0,o.jsx)("meta",{name:"docsearch:version",content:n}),a&&(0,o.jsx)("meta",{name:"docsearch:docusaurus_tag",content:a})]})}},1122:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(6540),o=n(4164),a=n(2303),i=n(5293);const s={themedComponent:"themedComponent_mlkZ","themedComponent--light":"themedComponent--light_NVdE","themedComponent--dark":"themedComponent--dark_xIcU"};var l=n(4848);function c(e){let{className:t,children:n}=e;const c=(0,a.A)(),{colorMode:u}=(0,i.G)();return(0,l.jsx)(l.Fragment,{children:(c?"dark"===u?["dark"]:["light"]:["light","dark"]).map((e=>{const a=n({theme:e,className:(0,o.A)(t,s.themedComponent,s[`themedComponent--${e}`])});return(0,l.jsx)(r.Fragment,{children:a},e)}))})}function u(e){const{sources:t,className:n,alt:r,...o}=e;return(0,l.jsx)(c,{className:n,children:e=>{let{theme:n,className:a}=e;return(0,l.jsx)("img",{src:t[n],alt:r,className:a,...o})}})}},1422:(e,t,n)=>{"use strict";n.d(t,{N:()=>b,u:()=>c});var r=n(6540),o=n(8193),a=n(205),i=n(3109),s=n(4848);const l="ease-in-out";function c(e){let{initialState:t}=e;const[n,o]=(0,r.useState)(t??!1),a=(0,r.useCallback)((()=>{o((e=>!e))}),[]);return{collapsed:n,setCollapsed:o,toggleCollapsed:a}}const u={display:"none",overflow:"hidden",height:"0px"},d={display:"block",overflow:"visible",height:"auto"};function p(e,t){const n=t?u:d;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function f(e){let{collapsibleRef:t,collapsed:n,animation:o}=e;const a=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const e=t.current;function r(){const t=e.scrollHeight,n=o?.duration??function(e){if((0,i.O)())return 1;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${o?.easing??l}`,height:`${t}px`}}function s(){const t=r();e.style.transition=t.transition,e.style.height=t.height}if(!a.current)return p(e,n),void(a.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(s(),requestAnimationFrame((()=>{e.style.height=u.height,e.style.overflow=u.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{s()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,o])}function m(e){if(!o.A.canUseDOM)return e?u:d}function g(e){let{as:t="div",collapsed:n,children:o,animation:a,onCollapseTransitionEnd:i,className:l,disableSSRStyle:c}=e;const u=(0,r.useRef)(null);return f({collapsibleRef:u,collapsed:n,animation:a}),(0,s.jsx)(t,{ref:u,style:c?void 0:m(n),onTransitionEnd:e=>{"height"===e.propertyName&&(p(u.current,n),i?.(n))},className:l,children:o})}function h(e){let{collapsed:t,...n}=e;const[o,i]=(0,r.useState)(!t),[l,c]=(0,r.useState)(t);return(0,a.A)((()=>{t||i(!0)}),[t]),(0,a.A)((()=>{o&&c(t)}),[o,t]),o?(0,s.jsx)(g,{...n,collapsed:l}):null}function b(e){let{lazy:t,...n}=e;const r=t?h:g;return(0,s.jsx)(r,{...n})}},5041:(e,t,n)=>{"use strict";n.d(t,{Mj:()=>g,oq:()=>m});var r=n(6540),o=n(2303),a=n(9466),i=n(9532),s=n(6342),l=n(4848);const c=(0,a.Wf)("docusaurus.announcement.dismiss"),u=(0,a.Wf)("docusaurus.announcement.id"),d=()=>"true"===c.get(),p=e=>c.set(String(e)),f=r.createContext(null);function m(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,s.p)(),t=(0,o.A)(),[n,a]=(0,r.useState)((()=>!!t&&d()));(0,r.useEffect)((()=>{a(d())}),[]);const i=(0,r.useCallback)((()=>{p(!0),a(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&p(!1),!r&&d()||a(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:i})),[e,n,i])}();return(0,l.jsx)(f.Provider,{value:n,children:t})}function g(){const e=(0,r.useContext)(f);if(!e)throw new i.dV("AnnouncementBarProvider");return e}},5293:(e,t,n)=>{"use strict";n.d(t,{G:()=>b,a:()=>h});var r=n(6540),o=n(8193),a=n(9532),i=n(9466),s=n(6342),l=n(4848);const c=r.createContext(void 0),u="theme",d=(0,i.Wf)(u),p={light:"light",dark:"dark"},f=e=>e===p.dark?p.dark:p.light,m=e=>o.A.canUseDOM?f(document.documentElement.getAttribute("data-theme")):f(e),g=e=>{d.set(f(e))};function h(e){let{children:t}=e;const n=function(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,s.p)(),[o,a]=(0,r.useState)(m(e));(0,r.useEffect)((()=>{t&&d.del()}),[t]);const i=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:o=!0}=r;t?(a(t),o&&g(t)):(a(n?window.matchMedia("(prefers-color-scheme: dark)").matches?p.dark:p.light:e),d.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",f(o))}),[o]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=d.get();null!==t&&i(f(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,i]);const l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||l.current?l.current=window.matchMedia("print").matches:i(null)};return e.addListener(r),()=>e.removeListener(r)}),[i,t,n]),(0,r.useMemo)((()=>({colorMode:o,setColorMode:i,get isDarkTheme(){return o===p.dark},setLightTheme(){i(p.light)},setDarkTheme(){i(p.dark)}})),[o,i])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function b(){const e=(0,r.useContext)(c);if(null==e)throw new a.dV("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},5597:(e,t,n)=>{"use strict";n.d(t,{VQ:()=>b,XK:()=>w,g1:()=>v});var r=n(6540),o=n(4070),a=n(7065),i=n(6342),s=n(1754),l=n(9532),c=n(9466),u=n(4848);const d=e=>`docs-preferred-version-${e}`,p={save:(e,t,n)=>{(0,c.Wf)(d(e),{persistence:t}).set(n)},read:(e,t)=>(0,c.Wf)(d(e),{persistence:t}).get(),clear:(e,t)=>{(0,c.Wf)(d(e),{persistence:t}).del()}},f=e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}])));const m=r.createContext(null);function g(){const e=(0,o.Gy)(),t=(0,i.p)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[a,s]=(0,r.useState)((()=>f(n)));(0,r.useEffect)((()=>{s(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function o(e){const t=p.read(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(p.clear(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,o(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[a,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){p.save(e,t,n),s((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function h(e){let{children:t}=e;const n=g();return(0,u.jsx)(m.Provider,{value:n,children:t})}function b(e){let{children:t}=e;return s.C5?(0,u.jsx)(h,{children:t}):(0,u.jsx)(u.Fragment,{children:t})}function y(){const e=(0,r.useContext)(m);if(!e)throw new l.dV("DocsPreferredVersionContextProvider");return e}function v(e){void 0===e&&(e=a.W);const t=(0,o.ht)(e),[n,i]=y(),{preferredVersionName:s}=n[e];return{preferredVersion:t.versions.find((e=>e.name===s))??null,savePreferredVersionName:(0,r.useCallback)((t=>{i.savePreferredVersion(e,t)}),[i,e])}}function w(){const e=(0,o.Gy)(),[t]=y();function n(n){const r=e[n],{preferredVersionName:o}=t[n];return r.versions.find((e=>e.name===o))??null}const r=Object.keys(e);return Object.fromEntries(r.map((e=>[e,n(e)])))}},6588:(e,t,n)=>{"use strict";n.d(t,{V:()=>l,t:()=>c});var r=n(6540),o=n(9532),a=n(4848);const i=Symbol("EmptyContext"),s=r.createContext(i);function l(e){let{children:t,name:n,items:o}=e;const i=(0,r.useMemo)((()=>n&&o?{name:n,items:o}:null),[n,o]);return(0,a.jsx)(s.Provider,{value:i,children:t})}function c(){const e=(0,r.useContext)(s);if(e===i)throw new o.dV("DocsSidebarProvider");return e}},2252:(e,t,n)=>{"use strict";n.d(t,{n:()=>s,r:()=>l});var r=n(6540),o=n(9532),a=n(4848);const i=r.createContext(null);function s(e){let{children:t,version:n}=e;return(0,a.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(null===e)throw new o.dV("DocsVersionProvider");return e}},2069:(e,t,n)=>{"use strict";n.d(t,{M:()=>f,e:()=>p});var r=n(6540),o=n(5600),a=n(4581),i=n(7485),s=n(6342),l=n(9532),c=n(4848);const u=r.createContext(void 0);function d(){const e=function(){const e=(0,o.YL)(),{items:t}=(0,s.p)().navbar;return 0===t.length&&!e.component}(),t=(0,a.l)(),n=!e&&"mobile"===t,[l,c]=(0,r.useState)(!1);(0,i.$Z)((()=>{if(l)return c(!1),!1}));const u=(0,r.useCallback)((()=>{c((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&c(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:u,shown:l})),[e,n,u,l])}function p(e){let{children:t}=e;const n=d();return(0,c.jsx)(u.Provider,{value:n,children:t})}function f(){const e=r.useContext(u);if(void 0===e)throw new l.dV("NavbarMobileSidebarProvider");return e}},5600:(e,t,n)=>{"use strict";n.d(t,{GX:()=>c,YL:()=>l,y_:()=>s});var r=n(6540),o=n(9532),a=n(4848);const i=r.createContext(null);function s(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return(0,a.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(!e)throw new o.dV("NavbarSecondaryMenuContentProvider");return e[0]}function c(e){let{component:t,props:n}=e;const a=(0,r.useContext)(i);if(!a)throw new o.dV("NavbarSecondaryMenuContentProvider");const[,s]=a,l=(0,o.Be)(n);return(0,r.useEffect)((()=>{s({component:t,props:l})}),[s,t,l]),(0,r.useEffect)((()=>()=>s({component:null,props:null})),[s]),null}},4090:(e,t,n)=>{"use strict";n.d(t,{w:()=>o,J:()=>a});var r=n(6540);const o="navigation-with-keyboard";function a(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(o),"mousedown"===e.type&&document.body.classList.remove(o)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(o),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},4255:(e,t,n)=>{"use strict";n.d(t,{b:()=>s,w:()=>l});var r=n(6540),o=n(4586),a=n(7485);const i="q";function s(){return(0,a.l)(i)}function l(){const{siteConfig:{baseUrl:e,themeConfig:t}}=(0,o.A)(),{algolia:{searchPagePath:n}}=t;return(0,r.useCallback)((t=>`${e}${n}?${i}=${encodeURIComponent(t)}`),[e,n])}},4581:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var r=n(6540),o=n(8193);const a={desktop:"desktop",mobile:"mobile",ssr:"ssr"},i=996;function s(e){let{desktopBreakpoint:t=i}=void 0===e?{}:e;const[n,s]=(0,r.useState)((()=>"ssr"));return(0,r.useEffect)((()=>{function e(){s(function(e){if(!o.A.canUseDOM)throw new Error("getWindowSize() should only be called after React hydration");return window.innerWidth>e?a.desktop:a.mobile}(t))}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t]),n}},7559:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",unlistedBanner:"theme-unlisted-banner",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{blogFooterTagsRow:"theme-blog-footer-tags-row",blogFooterEditMetaRow:"theme-blog-footer-edit-meta-row"},pages:{pageFooterEditMetaRow:"theme-pages-footer-edit-meta-row"}}},3109:(e,t,n)=>{"use strict";function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}n.d(t,{O:()=>r})},1754:(e,t,n)=>{"use strict";n.d(t,{d1:()=>T,Nr:()=>m,w8:()=>y,C5:()=>p,$S:()=>g,cC:()=>f,B5:()=>C,Vd:()=>S,QB:()=>E,fW:()=>_,OF:()=>x,Y:()=>w});var r=n(6540),o=n(6347),a=n(2831),i=n(4070),s=n(5597),l=n(2252),c=n(6588);function u(e){return Array.from(new Set(e))}var d=n(9169);const p=!!i.Gy;function f(e){const t=(0,l.r)();if(!e)return;const n=t.docs[e];if(!n)throw new Error(`no version doc found by id=${e}`);return n}function m(e){return"link"!==e.type||e.unlisted?"category"===e.type?function(e){if(e.href&&!e.linkUnlisted)return e.href;for(const t of e.items){const e=m(t);if(e)return e}}(e):void 0:e.href}function g(){const{pathname:e}=(0,o.zy)(),t=(0,c.t)();if(!t)throw new Error("Unexpected: cant find current sidebar in context");const n=k({sidebarItems:t.items,pathname:e,onlyCategories:!0}).slice(-1)[0];if(!n)throw new Error(`${e} is not associated with a category. useCurrentSidebarCategory() should only be used on category index pages.`);return n}const h=(e,t)=>void 0!==e&&(0,d.ys)(e,t),b=(e,t)=>e.some((e=>y(e,t)));function y(e,t){return"link"===e.type?h(e.href,t):"category"===e.type&&(h(e.href,t)||b(e.items,t))}function v(e,t){switch(e.type){case"category":return y(e,t)||e.items.some((e=>v(e,t)));case"link":return!e.unlisted||y(e,t);default:return!0}}function w(e,t){return(0,r.useMemo)((()=>e.filter((e=>v(e,t)))),[e,t])}function k(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const o=[];return function e(t){for(const a of t)if("category"===a.type&&((0,d.ys)(a.href,n)||e(a.items))||"link"===a.type&&(0,d.ys)(a.href,n)){return r&&"category"!==a.type||o.unshift(a),!0}return!1}(t),o}function x(){const e=(0,c.t)(),{pathname:t}=(0,o.zy)(),n=(0,i.vT)()?.pluginData.breadcrumbs;return!1!==n&&e?k({sidebarItems:e.items,pathname:t}):null}function S(e){const{activeVersion:t}=(0,i.zK)(e),{preferredVersion:n}=(0,s.g1)(e),o=(0,i.r7)(e);return(0,r.useMemo)((()=>u([t,n,o].filter(Boolean))),[t,n,o])}function _(e,t){const n=S(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable sidebar ids are:\n- ${t.map((e=>e[0])).join("\n- ")}`);return r[1]}),[e,n])}function E(e,t){const n=S(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`Couldn't find any doc with id "${e}" in version${n.length>1?"s":""} "${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${u(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function C(e){let{route:t}=e;const n=(0,o.zy)(),r=(0,l.r)(),i=t.routes,s=i.find((e=>(0,o.B6)(n.pathname,e)));if(!s)return null;const c=s.sidebar,u=c?r.docsSidebars[c]:void 0;return{docElement:(0,a.v)(i),sidebarName:c,sidebarItems:u}}function T(e){return e.filter((e=>!("category"===e.type||"link"===e.type)||!!m(e)))}},2181:(e,t,n)=>{"use strict";n.d(t,{bq:()=>u,MN:()=>c,a2:()=>l,k2:()=>d});var r=n(6540),o=n(1312),a=n(440);const i={errorBoundaryError:"errorBoundaryError_a6uf",errorBoundaryFallback:"errorBoundaryFallback_VBag"};var s=n(4848);function l(e){return(0,s.jsx)("button",{type:"button",...e,children:(0,s.jsx)(o.A,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again rendering when the React error boundary captures an error",children:"Try again"})})}function c(e){let{error:t,tryAgain:n}=e;return(0,s.jsxs)("div",{className:i.errorBoundaryFallback,children:[(0,s.jsx)("p",{children:t.message}),(0,s.jsx)(l,{onClick:n})]})}function u(e){let{error:t}=e;const n=(0,a.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,s.jsx)("p",{className:i.errorBoundaryError,children:n})}class d extends r.Component{componentDidCatch(e,t){throw this.props.onError(e,t)}render(){return this.props.children}}},481:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(4586);function o(e){const{siteConfig:t}=(0,r.A)(),{title:n,titleDelimiter:o}=t;return e?.trim().length?`${e.trim()} ${o} ${n}`:n}},7485:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>i,l:()=>l});var r=n(6540),o=n(6347),a=n(9532);function i(e){!function(e){const t=(0,o.W6)(),n=(0,a._q)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}function s(e){const t=(0,o.W6)();return(0,r.useSyncExternalStore)(t.listen,(()=>e(t)),(()=>e(t)))}function l(e){const t=function(e){return s((t=>null===e?null:new URLSearchParams(t.location.search).get(e)))}(e)??"",n=function(e){const t=(0,o.W6)();return(0,r.useCallback)(((n,r)=>{const o=new URLSearchParams(t.location.search);n?o.set(e,n):o.delete(e),(r?.push?t.push:t.replace)({search:o.toString()})}),[e,t])}(e);return[t,n]}},5500:(e,t,n)=>{"use strict";n.d(t,{Jx:()=>f,be:()=>u,e3:()=>p});var r=n(6540),o=n(4164),a=n(5260),i=n(6803),s=n(6025),l=n(481),c=n(4848);function u(e){let{title:t,description:n,keywords:r,image:o,children:i}=e;const u=(0,l.s)(t),{withBaseUrl:d}=(0,s.h)(),p=o?d(o,{absolute:!0}):void 0;return(0,c.jsxs)(a.A,{children:[t&&(0,c.jsx)("title",{children:u}),t&&(0,c.jsx)("meta",{property:"og:title",content:u}),n&&(0,c.jsx)("meta",{name:"description",content:n}),n&&(0,c.jsx)("meta",{property:"og:description",content:n}),r&&(0,c.jsx)("meta",{name:"keywords",content:Array.isArray(r)?r.join(","):r}),p&&(0,c.jsx)("meta",{property:"og:image",content:p}),p&&(0,c.jsx)("meta",{name:"twitter:image",content:p}),i]})}const d=r.createContext(void 0);function p(e){let{className:t,children:n}=e;const i=r.useContext(d),s=(0,o.A)(i,t);return(0,c.jsxs)(d.Provider,{value:s,children:[(0,c.jsx)(a.A,{children:(0,c.jsx)("html",{className:s})}),n]})}function f(e){let{children:t}=e;const n=(0,i.A)(),r=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const a=`plugin-id-${n.plugin.id}`;return(0,c.jsx)(p,{className:(0,o.A)(r,a),children:t})}},9532:(e,t,n)=>{"use strict";n.d(t,{Be:()=>c,ZC:()=>s,_q:()=>i,dV:()=>l,fM:()=>u});var r=n(6540),o=n(205),a=n(4848);function i(e){const t=(0,r.useRef)(e);return(0,o.A)((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function s(e){const t=(0,r.useRef)();return(0,o.A)((()=>{t.current=e})),t.current}class l extends Error{constructor(e,t){super(),this.name="ReactContextError",this.message=`Hook ${this.stack?.split("\n")[1]?.match(/at (?:\w+\.)?(?<name>\w+)/)?.groups.name??""} is called outside the <${e}>. ${t??""}`}}function c(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return(0,a.jsx)(a.Fragment,{children:e.reduceRight(((e,t)=>(0,a.jsx)(t,{children:e})),n)})}}},1252:(e,t,n)=>{"use strict";function r(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}n.d(t,{G:()=>r})},9169:(e,t,n)=>{"use strict";n.d(t,{Dt:()=>s,ys:()=>i});var r=n(6540),o=n(8328),a=n(4586);function i(e,t){const n=e=>(!e||e.endsWith("/")?e:`${e}/`)?.toLowerCase();return n(e)===n(t)}function s(){const{baseUrl:e}=(0,a.A)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function o(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(o).flatMap((e=>e.routes??[])))}(n)}({routes:o.A,baseUrl:e})),[e])}},3104:(e,t,n)=>{"use strict";n.d(t,{Mq:()=>p,Tv:()=>c,gk:()=>f});var r=n(6540),o=n(8193),a=n(2303),i=(n(205),n(9532)),s=n(4848);const l=r.createContext(void 0);function c(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return(0,s.jsx)(l.Provider,{value:n,children:t})}function u(){const e=(0,r.useContext)(l);if(null==e)throw new i.dV("ScrollControllerProvider");return e}const d=()=>o.A.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function p(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=u(),o=(0,r.useRef)(d()),a=(0,i._q)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=d();a(e,o.current),o.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[a,n,...t])}function f(){const e=(0,r.useRef)(null),t=(0,a.A)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const o=document.documentElement.scrollTop;(n&&o>e||!n&&o<e)&&(t=requestAnimationFrame(r),window.scrollTo(0,Math.floor(.85*(o-e))+e))}(),()=>t&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>e.current?.()}}},2967:(e,t,n)=>{"use strict";n.d(t,{Cy:()=>i,af:()=>l,tU:()=>s});var r=n(4070),o=n(4586),a=n(5597);const i="default";function s(e,t){return`docs-${e}-${t}`}function l(){const{i18n:e}=(0,o.A)(),t=(0,r.Gy)(),n=(0,r.gk)(),l=(0,a.XK)();const c=[i,...Object.keys(t).map((function(e){const r=n?.activePlugin.pluginId===e?n.activeVersion:void 0,o=l[e],a=t[e].versions.find((e=>e.isLast));return s(e,(r??o??a).name)}))];return{locale:e.currentLocale,tags:c}}},9466:(e,t,n)=>{"use strict";n.d(t,{Wf:()=>l});n(6540);const r="localStorage";function o(e){let{key:t,oldValue:n,newValue:r,storage:o}=e;if(n===r)return;const a=document.createEvent("StorageEvent");a.initStorageEvent("storage",!1,!1,t,n,r,window.location.href,o),window.dispatchEvent(a)}function a(e){if(void 0===e&&(e=r),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,i||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),i=!0),null}var t}let i=!1;const s={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};function l(e,t){if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t,listen:t}}(e);const n=a(t?.persistence);return null===n?s:{get:()=>{try{return n.getItem(e)}catch(t){return console.error(`Docusaurus storage error, can't get key=${e}`,t),null}},set:t=>{try{const r=n.getItem(e);n.setItem(e,t),o({key:e,oldValue:r,newValue:t,storage:n})}catch(r){console.error(`Docusaurus storage error, can't set ${e}=${t}`,r)}},del:()=>{try{const t=n.getItem(e);n.removeItem(e),o({key:e,oldValue:t,newValue:null,storage:n})}catch(t){console.error(`Docusaurus storage error, can't delete key=${e}`,t)}},listen:t=>{try{const r=r=>{r.storageArea===n&&r.key===e&&t(r)};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)}catch(r){return console.error(`Docusaurus storage error, can't listen for changes of key=${e}`,r),()=>{}}}}}},2131:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(4586),o=n(6347),a=n(440);function i(){const{siteConfig:{baseUrl:e,url:t,trailingSlash:n},i18n:{defaultLocale:i,currentLocale:s}}=(0,r.A)(),{pathname:l}=(0,o.zy)(),c=(0,a.applyTrailingSlash)(l,{trailingSlash:n,baseUrl:e}),u=s===i?e:e.replace(`/${s}/`,"/"),d=c.replace(e,"");return{createUrl:function(e){let{locale:n,fullyQualified:r}=e;return`${r?t:""}${function(e){return e===i?`${u}`:`${u}${e}/`}(n)}${d}`}}}},5062:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});var r=n(6540),o=n(6347),a=n(9532);function i(e){const t=(0,o.zy)(),n=(0,a.ZC)(t),i=(0,a._q)(e);(0,r.useEffect)((()=>{n&&t!==n&&i({location:t,previousLocation:n})}),[i,t,n])}},6342:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var r=n(4586);function o(){return(0,r.A)().siteConfig.themeConfig}},8126:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(4586);function o(){const{siteConfig:{themeConfig:e}}=(0,r.A)();return e}},1062:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var r=n(6540),o=n(1252),a=n(6025),i=n(8126);function s(){const{withBaseUrl:e}=(0,a.h)(),{algolia:{externalUrlRegex:t,replaceSearchResultPathname:n}}=(0,i.c)();return(0,r.useCallback)((r=>{const a=new URL(r);if((0,o.G)(t,a.href))return r;const i=`${a.pathname+a.hash}`;return e(function(e,t){return t?e.replaceAll(new RegExp(t.from,"g"),t.to):e}(i,n))}),[e,t,n])}},2983:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeTrailingSlash=t.addLeadingSlash=t.addTrailingSlash=void 0;const r=n(2566);function o(e){return e.endsWith("/")?e:`${e}/`}function a(e){return(0,r.removeSuffix)(e,"/")}t.addTrailingSlash=o,t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[i]=e.split(/[#?]/),s="/"===i||i===r?i:(l=i,n?o(l):a(l));var l;return e.replace(i,s)},t.addLeadingSlash=function(e){return(0,r.addPrefix)(e,"/")},t.removeTrailingSlash=a},253:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=void 0,t.getErrorCausalChain=function e(t){return t.cause?[t,...e(t.cause)]:[t]}},440:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=t.removePrefix=t.addSuffix=t.removeSuffix=t.addPrefix=t.removeTrailingSlash=t.addLeadingSlash=t.addTrailingSlash=t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="__blog-post-container";var o=n(2983);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(o).default}}),Object.defineProperty(t,"addTrailingSlash",{enumerable:!0,get:function(){return o.addTrailingSlash}}),Object.defineProperty(t,"addLeadingSlash",{enumerable:!0,get:function(){return o.addLeadingSlash}}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return o.removeTrailingSlash}});var a=n(2566);Object.defineProperty(t,"addPrefix",{enumerable:!0,get:function(){return a.addPrefix}}),Object.defineProperty(t,"removeSuffix",{enumerable:!0,get:function(){return a.removeSuffix}}),Object.defineProperty(t,"addSuffix",{enumerable:!0,get:function(){return a.addSuffix}}),Object.defineProperty(t,"removePrefix",{enumerable:!0,get:function(){return a.removePrefix}});var i=n(253);Object.defineProperty(t,"getErrorCausalChain",{enumerable:!0,get:function(){return i.getErrorCausalChain}})},2566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removePrefix=t.addSuffix=t.removeSuffix=t.addPrefix=void 0,t.addPrefix=function(e,t){return e.startsWith(t)?e:`${t}${e}`},t.removeSuffix=function(e,t){return""===t?e:e.endsWith(t)?e.slice(0,-t.length):e},t.addSuffix=function(e,t){return e.endsWith(t)?e:`${e}${t}`},t.removePrefix=function(e,t){return e.startsWith(t)?e.slice(t.length):e}},1513:(e,t,n)=>{"use strict";n.d(t,{zR:()=>w,TM:()=>C,yJ:()=>f,sC:()=>A,AO:()=>p});var r=n(8168);function o(e){return"/"===e.charAt(0)}function a(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const i=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],s=e&&o(e),l=t&&o(t),c=s||l;if(e&&o(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=i.length;p>=0;p--){var f=i[p];"."===f?a(i,p):".."===f?(a(i,p),d++):d&&(a(i,p),d--)}if(!c)for(;d--;d)i.unshift("..");!c||""===i[0]||i[0]&&o(i[0])||i.unshift("");var m=i.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};var s=n(1561);function l(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function u(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function f(e,t,n,o){var a;"string"==typeof e?(a=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),a.state=t):(void 0===(a=(0,r.A)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(a.key=n),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=i(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a}function m(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var g=!("undefined"==typeof window||!window.document||!window.document.createElement);function h(e,t){t(window.confirm(e))}var b="popstate",y="hashchange";function v(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),g||(0,s.A)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,c=i.forceRefresh,w=void 0!==c&&c,k=i.getUserConfirmation,x=void 0===k?h:k,S=i.keyLength,_=void 0===S?6:S,E=e.basename?d(l(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;return E&&(a=u(a,E)),f(a,r,n)}function T(){return Math.random().toString(36).substr(2,_)}var A=m();function P(e){(0,r.A)($,e),$.length=n.length,A.notifyListeners($.location,$.action)}function j(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||N(C(e.state))}function L(){N(C(v()))}var R=!1;function N(e){if(R)R=!1,P();else{A.confirmTransitionTo(e,"POP",x,(function(t){t?P({action:"POP",location:e}):function(e){var t=$.location,n=D.indexOf(t.key);-1===n&&(n=0);var r=D.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(R=!0,I(o))}(e)}))}}var O=C(v()),D=[O.key];function M(e){return E+p(e)}function I(e){n.go(e)}var F=0;function z(e){1===(F+=e)&&1===e?(window.addEventListener(b,j),a&&window.addEventListener(y,L)):0===F&&(window.removeEventListener(b,j),a&&window.removeEventListener(y,L))}var B=!1;var $={length:n.length,action:"POP",location:O,createHref:M,push:function(e,t){var r="PUSH",a=f(e,t,T(),$.location);A.confirmTransitionTo(a,r,x,(function(e){if(e){var t=M(a),i=a.key,s=a.state;if(o)if(n.pushState({key:i,state:s},null,t),w)window.location.href=t;else{var l=D.indexOf($.location.key),c=D.slice(0,l+1);c.push(a.key),D=c,P({action:r,location:a})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",a=f(e,t,T(),$.location);A.confirmTransitionTo(a,r,x,(function(e){if(e){var t=M(a),i=a.key,s=a.state;if(o)if(n.replaceState({key:i,state:s},null,t),w)window.location.replace(t);else{var l=D.indexOf($.location.key);-1!==l&&(D[l]=a.key),P({action:r,location:a})}else window.location.replace(t)}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&(e=!1);var t=A.setPrompt(e);return B||(z(1),B=!0),function(){return B&&(B=!1,z(-1)),t()}},listen:function(e){var t=A.appendListener(e);return z(1),function(){z(-1),t()}}};return $}var k="hashchange",x={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+c(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c,decodePath:l},slash:{encodePath:l,decodePath:l}};function S(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function _(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function E(e){window.location.replace(S(window.location.href)+"#"+e)}function C(e){void 0===e&&(e={}),g||(0,s.A)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,a=void 0===o?h:o,i=n.hashType,c=void 0===i?"slash":i,b=e.basename?d(l(e.basename)):"",y=x[c],v=y.encodePath,w=y.decodePath;function C(){var e=w(_());return b&&(e=u(e,b)),f(e)}var T=m();function A(e){(0,r.A)(B,e),B.length=t.length,T.notifyListeners(B.location,B.action)}var P=!1,j=null;function L(){var e,t,n=_(),r=v(n);if(n!==r)E(r);else{var o=C(),i=B.location;if(!P&&(t=o,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(j===p(o))return;j=null,function(e){if(P)P=!1,A();else{var t="POP";T.confirmTransitionTo(e,t,a,(function(n){n?A({action:t,location:e}):function(e){var t=B.location,n=D.lastIndexOf(p(t));-1===n&&(n=0);var r=D.lastIndexOf(p(e));-1===r&&(r=0);var o=n-r;o&&(P=!0,M(o))}(e)}))}}(o)}}var R=_(),N=v(R);R!==N&&E(N);var O=C(),D=[p(O)];function M(e){t.go(e)}var I=0;function F(e){1===(I+=e)&&1===e?window.addEventListener(k,L):0===I&&window.removeEventListener(k,L)}var z=!1;var B={length:t.length,action:"POP",location:O,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=S(window.location.href)),n+"#"+v(b+p(e))},push:function(e,t){var n="PUSH",r=f(e,void 0,void 0,B.location);T.confirmTransitionTo(r,n,a,(function(e){if(e){var t=p(r),o=v(b+t);if(_()!==o){j=t,function(e){window.location.hash=e}(o);var a=D.lastIndexOf(p(B.location)),i=D.slice(0,a+1);i.push(t),D=i,A({action:n,location:r})}else A()}}))},replace:function(e,t){var n="REPLACE",r=f(e,void 0,void 0,B.location);T.confirmTransitionTo(r,n,a,(function(e){if(e){var t=p(r),o=v(b+t);_()!==o&&(j=t,E(o));var a=D.indexOf(p(B.location));-1!==a&&(D[a]=t),A({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return z||(F(1),z=!0),function(){return z&&(z=!1,F(-1)),t()}},listen:function(e){var t=T.appendListener(e);return F(1),function(){F(-1),t()}}};return B}function T(e,t,n){return Math.min(Math.max(e,t),n)}function A(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,a=void 0===o?["/"]:o,i=t.initialIndex,s=void 0===i?0:i,l=t.keyLength,c=void 0===l?6:l,u=m();function d(e){(0,r.A)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function g(){return Math.random().toString(36).substr(2,c)}var h=T(s,0,a.length-1),b=a.map((function(e){return f(e,void 0,"string"==typeof e?g():e.key||g())})),y=p;function v(e){var t=T(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:b.length,action:"POP",location:b[h],index:h,entries:b,createHref:y,push:function(e,t){var r="PUSH",o=f(e,t,g(),w.location);u.confirmTransitionTo(o,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=f(e,t,g(),w.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,d({action:r,location:o}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},4146:(e,t,n)=>{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=f(n);o&&o!==m&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),g=l(n),h=0;h<i.length;++h){var b=i[h];if(!(a[b]||r&&r[b]||g&&g[b]||s&&s[b])){var y=p(n,b);try{c(t,b,y)}catch(v){}}}}return t}},311:e=>{"use strict";e.exports=function(e,t,n,r,o,a,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},4634:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},119:(e,t,n)=>{"use strict";n.r(t)},1043:(e,t,n)=>{"use strict";n.r(t)},5947:function(e,t,n){var r,o;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,t,n){return e<t?t:e>n?n:e}function a(e){return 100*(-1+e)}function i(e,t,n){var o;return(o="translate3d"===r.positionUsing?{transform:"translate3d("+a(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+a(e)+"%,0)"}:{"margin-left":a(e)+"%"}).transition="all "+t+"ms "+n,o}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=o(e,r.minimum,1),n.status=1===e?null:e;var a=n.render(!t),c=a.querySelector(r.barSelector),u=r.speed,d=r.easing;return a.offsetWidth,s((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(c,i(e,u,d)),1===e?(l(a,{transition:"none",opacity:1}),a.offsetWidth,setTimeout((function(){l(a,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var o,i=t.querySelector(r.barSelector),s=e?"-100":a(n.status||0),c=document.querySelector(r.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(o=t.querySelector(r.spinnerSelector))&&f(o),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+a)in n)return r;return t}function o(e){return e=n(e),t[e]||(t[e]=r(e))}function a(e,t,n){t=o(t),e.style[t]=n}return function(e,t){var n,r,o=arguments;if(2==o.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&a(e,n,r);else a(e,o[1],o[2])}}();function c(e,t){return("string"==typeof e?e:p(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=p(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=p(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function p(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(o="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=o)},5302:(e,t,n)=>{var r=n(4634);e.exports=f,e.exports.parse=a,e.exports.compile=function(e,t){return s(a(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,r=[],a=0,i=0,s="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],p=n[1],f=n.index;if(s+=e.slice(i,f),i=f+d.length,p)s+=p[1];else{var m=e[i],g=n[2],h=n[3],b=n[4],y=n[5],v=n[6],w=n[7];s&&(r.push(s),s="");var k=null!=g&&null!=m&&m!==g,x="+"===v||"*"===v,S="?"===v||"*"===v,_=n[2]||u,E=b||y;r.push({name:h||a++,prefix:g||"",delimiter:_,optional:S,repeat:x,partial:k,asterisk:!!w,pattern:E?c(E):w?".*":"[^"+l(_)+"]+?"})}}return i<e.length&&(s+=e.substr(i)),s&&r.push(s),r}function i(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var a="",s=t||{},l=(o||{}).pretty?i:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=s[u.name];if(null==p){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=l(p[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");a+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');a+=u.prefix+d}}else a+=u}return a}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,a=!1!==n.end,i="",s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)i+=l(c);else{var p=l(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+p+f+")*"),i+=f=c.optional?c.partial?p+"("+f+")?":"(?:"+p+"("+f+"))?":p+"("+f+")"}}var m=l(n.delimiter||"/"),g=i.slice(-m.length)===m;return o||(i=(g?i.slice(0,-m.length):i)+"(?:"+m+"(?=$))?"),i+=a?"$":o&&g?"":"(?="+m+"|$)",u(new RegExp("^"+i,d(n)),t)}function f(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(f(e[o],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(a(e,n),t,n)}(e,t,n)}},6969:e=>{e.exports&&(e.exports={core:{meta:{path:"components/prism-core.js",option:"mandatory"},core:"Core"},themes:{meta:{path:"themes/{id}.css",link:"index.html?theme={id}",exclusive:!0},prism:{title:"Default",option:"default"},"prism-dark":"Dark","prism-funky":"Funky","prism-okaidia":{title:"Okaidia",owner:"ocodia"},"prism-twilight":{title:"Twilight",owner:"remybach"},"prism-coy":{title:"Coy",owner:"tshedor"},"prism-solarizedlight":{title:"Solarized Light",owner:"hectormatos2011 "},"prism-tomorrow":{title:"Tomorrow Night",owner:"Rosey"}},languages:{meta:{path:"components/prism-{id}",noCSS:!0,examplesPath:"examples/prism-{id}",addCheckAll:!0},markup:{title:"Markup",alias:["html","xml","svg","mathml","ssml","atom","rss"],aliasTitles:{html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",ssml:"SSML",atom:"Atom",rss:"RSS"},option:"default"},css:{title:"CSS",option:"default",modify:"markup"},clike:{title:"C-like",option:"default"},javascript:{title:"JavaScript",require:"clike",modify:"markup",optional:"regex",alias:"js",option:"default"},abap:{title:"ABAP",owner:"dellagustin"},abnf:{title:"ABNF",owner:"RunDevelopment"},actionscript:{title:"ActionScript",require:"javascript",modify:"markup",owner:"Golmote"},ada:{title:"Ada",owner:"Lucretia"},agda:{title:"Agda",owner:"xy-ren"},al:{title:"AL",owner:"RunDevelopment"},antlr4:{title:"ANTLR4",alias:"g4",owner:"RunDevelopment"},apacheconf:{title:"Apache Configuration",owner:"GuiTeK"},apex:{title:"Apex",require:["clike","sql"],owner:"RunDevelopment"},apl:{title:"APL",owner:"ngn"},applescript:{title:"AppleScript",owner:"Golmote"},aql:{title:"AQL",owner:"RunDevelopment"},arduino:{title:"Arduino",require:"cpp",alias:"ino",owner:"dkern"},arff:{title:"ARFF",owner:"Golmote"},armasm:{title:"ARM Assembly",alias:"arm-asm",owner:"RunDevelopment"},arturo:{title:"Arturo",alias:"art",optional:["bash","css","javascript","markup","markdown","sql"],owner:"drkameleon"},asciidoc:{alias:"adoc",title:"AsciiDoc",owner:"Golmote"},aspnet:{title:"ASP.NET (C#)",require:["markup","csharp"],owner:"nauzilus"},asm6502:{title:"6502 Assembly",owner:"kzurawel"},asmatmel:{title:"Atmel AVR Assembly",owner:"cerkit"},autohotkey:{title:"AutoHotkey",owner:"aviaryan"},autoit:{title:"AutoIt",owner:"Golmote"},avisynth:{title:"AviSynth",alias:"avs",owner:"Zinfidel"},"avro-idl":{title:"Avro IDL",alias:"avdl",owner:"RunDevelopment"},awk:{title:"AWK",alias:"gawk",aliasTitles:{gawk:"GAWK"},owner:"RunDevelopment"},bash:{title:"Bash",alias:["sh","shell"],aliasTitles:{sh:"Shell",shell:"Shell"},owner:"zeitgeist87"},basic:{title:"BASIC",owner:"Golmote"},batch:{title:"Batch",owner:"Golmote"},bbcode:{title:"BBcode",alias:"shortcode",aliasTitles:{shortcode:"Shortcode"},owner:"RunDevelopment"},bbj:{title:"BBj",owner:"hyyan"},bicep:{title:"Bicep",owner:"johnnyreilly"},birb:{title:"Birb",require:"clike",owner:"Calamity210"},bison:{title:"Bison",require:"c",owner:"Golmote"},bnf:{title:"BNF",alias:"rbnf",aliasTitles:{rbnf:"RBNF"},owner:"RunDevelopment"},bqn:{title:"BQN",owner:"yewscion"},brainfuck:{title:"Brainfuck",owner:"Golmote"},brightscript:{title:"BrightScript",owner:"RunDevelopment"},bro:{title:"Bro",owner:"wayward710"},bsl:{title:"BSL (1C:Enterprise)",alias:"oscript",aliasTitles:{oscript:"OneScript"},owner:"Diversus23"},c:{title:"C",require:"clike",owner:"zeitgeist87"},csharp:{title:"C#",require:"clike",alias:["cs","dotnet"],owner:"mvalipour"},cpp:{title:"C++",require:"c",owner:"zeitgeist87"},cfscript:{title:"CFScript",require:"clike",alias:"cfc",owner:"mjclemente"},chaiscript:{title:"ChaiScript",require:["clike","cpp"],owner:"RunDevelopment"},cil:{title:"CIL",owner:"sbrl"},cilkc:{title:"Cilk/C",require:"c",alias:"cilk-c",owner:"OpenCilk"},cilkcpp:{title:"Cilk/C++",require:"cpp",alias:["cilk-cpp","cilk"],owner:"OpenCilk"},clojure:{title:"Clojure",owner:"troglotit"},cmake:{title:"CMake",owner:"mjrogozinski"},cobol:{title:"COBOL",owner:"RunDevelopment"},coffeescript:{title:"CoffeeScript",require:"javascript",alias:"coffee",owner:"R-osey"},concurnas:{title:"Concurnas",alias:"conc",owner:"jasontatton"},csp:{title:"Content-Security-Policy",owner:"ScottHelme"},cooklang:{title:"Cooklang",owner:"ahue"},coq:{title:"Coq",owner:"RunDevelopment"},crystal:{title:"Crystal",require:"ruby",owner:"MakeNowJust"},"css-extras":{title:"CSS Extras",require:"css",modify:"css",owner:"milesj"},csv:{title:"CSV",owner:"RunDevelopment"},cue:{title:"CUE",owner:"RunDevelopment"},cypher:{title:"Cypher",owner:"RunDevelopment"},d:{title:"D",require:"clike",owner:"Golmote"},dart:{title:"Dart",require:"clike",owner:"Golmote"},dataweave:{title:"DataWeave",owner:"machaval"},dax:{title:"DAX",owner:"peterbud"},dhall:{title:"Dhall",owner:"RunDevelopment"},diff:{title:"Diff",owner:"uranusjr"},django:{title:"Django/Jinja2",require:"markup-templating",alias:"jinja2",owner:"romanvm"},"dns-zone-file":{title:"DNS zone file",owner:"RunDevelopment",alias:"dns-zone"},docker:{title:"Docker",alias:"dockerfile",owner:"JustinBeckwith"},dot:{title:"DOT (Graphviz)",alias:"gv",optional:"markup",owner:"RunDevelopment"},ebnf:{title:"EBNF",owner:"RunDevelopment"},editorconfig:{title:"EditorConfig",owner:"osipxd"},eiffel:{title:"Eiffel",owner:"Conaclos"},ejs:{title:"EJS",require:["javascript","markup-templating"],owner:"RunDevelopment",alias:"eta",aliasTitles:{eta:"Eta"}},elixir:{title:"Elixir",owner:"Golmote"},elm:{title:"Elm",owner:"zwilias"},etlua:{title:"Embedded Lua templating",require:["lua","markup-templating"],owner:"RunDevelopment"},erb:{title:"ERB",require:["ruby","markup-templating"],owner:"Golmote"},erlang:{title:"Erlang",owner:"Golmote"},"excel-formula":{title:"Excel Formula",alias:["xlsx","xls"],owner:"RunDevelopment"},fsharp:{title:"F#",require:"clike",owner:"simonreynolds7"},factor:{title:"Factor",owner:"catb0t"},false:{title:"False",owner:"edukisto"},"firestore-security-rules":{title:"Firestore security rules",require:"clike",owner:"RunDevelopment"},flow:{title:"Flow",require:"javascript",owner:"Golmote"},fortran:{title:"Fortran",owner:"Golmote"},ftl:{title:"FreeMarker Template Language",require:"markup-templating",owner:"RunDevelopment"},gml:{title:"GameMaker Language",alias:"gamemakerlanguage",require:"clike",owner:"LiarOnce"},gap:{title:"GAP (CAS)",owner:"RunDevelopment"},gcode:{title:"G-code",owner:"RunDevelopment"},gdscript:{title:"GDScript",owner:"RunDevelopment"},gedcom:{title:"GEDCOM",owner:"Golmote"},gettext:{title:"gettext",alias:"po",owner:"RunDevelopment"},gherkin:{title:"Gherkin",owner:"hason"},git:{title:"Git",owner:"lgiraudel"},glsl:{title:"GLSL",require:"c",owner:"Golmote"},gn:{title:"GN",alias:"gni",owner:"RunDevelopment"},"linker-script":{title:"GNU Linker Script",alias:"ld",owner:"RunDevelopment"},go:{title:"Go",require:"clike",owner:"arnehormann"},"go-module":{title:"Go module",alias:"go-mod",owner:"RunDevelopment"},gradle:{title:"Gradle",require:"clike",owner:"zeabdelkhalek-badido18"},graphql:{title:"GraphQL",optional:"markdown",owner:"Golmote"},groovy:{title:"Groovy",require:"clike",owner:"robfletcher"},haml:{title:"Haml",require:"ruby",optional:["css","css-extras","coffeescript","erb","javascript","less","markdown","scss","textile"],owner:"Golmote"},handlebars:{title:"Handlebars",require:"markup-templating",alias:["hbs","mustache"],aliasTitles:{mustache:"Mustache"},owner:"Golmote"},haskell:{title:"Haskell",alias:"hs",owner:"bholst"},haxe:{title:"Haxe",require:"clike",optional:"regex",owner:"Golmote"},hcl:{title:"HCL",owner:"outsideris"},hlsl:{title:"HLSL",require:"c",owner:"RunDevelopment"},hoon:{title:"Hoon",owner:"matildepark"},http:{title:"HTTP",optional:["csp","css","hpkp","hsts","javascript","json","markup","uri"],owner:"danielgtaylor"},hpkp:{title:"HTTP Public-Key-Pins",owner:"ScottHelme"},hsts:{title:"HTTP Strict-Transport-Security",owner:"ScottHelme"},ichigojam:{title:"IchigoJam",owner:"BlueCocoa"},icon:{title:"Icon",owner:"Golmote"},"icu-message-format":{title:"ICU Message Format",owner:"RunDevelopment"},idris:{title:"Idris",alias:"idr",owner:"KeenS",require:"haskell"},ignore:{title:".ignore",owner:"osipxd",alias:["gitignore","hgignore","npmignore"],aliasTitles:{gitignore:".gitignore",hgignore:".hgignore",npmignore:".npmignore"}},inform7:{title:"Inform 7",owner:"Golmote"},ini:{title:"Ini",owner:"aviaryan"},io:{title:"Io",owner:"AlesTsurko"},j:{title:"J",owner:"Golmote"},java:{title:"Java",require:"clike",owner:"sherblot"},javadoc:{title:"JavaDoc",require:["markup","java","javadoclike"],modify:"java",optional:"scala",owner:"RunDevelopment"},javadoclike:{title:"JavaDoc-like",modify:["java","javascript","php"],owner:"RunDevelopment"},javastacktrace:{title:"Java stack trace",owner:"RunDevelopment"},jexl:{title:"Jexl",owner:"czosel"},jolie:{title:"Jolie",require:"clike",owner:"thesave"},jq:{title:"JQ",owner:"RunDevelopment"},jsdoc:{title:"JSDoc",require:["javascript","javadoclike","typescript"],modify:"javascript",optional:["actionscript","coffeescript"],owner:"RunDevelopment"},"js-extras":{title:"JS Extras",require:"javascript",modify:"javascript",optional:["actionscript","coffeescript","flow","n4js","typescript"],owner:"RunDevelopment"},json:{title:"JSON",alias:"webmanifest",aliasTitles:{webmanifest:"Web App Manifest"},owner:"CupOfTea696"},json5:{title:"JSON5",require:"json",owner:"RunDevelopment"},jsonp:{title:"JSONP",require:"json",owner:"RunDevelopment"},jsstacktrace:{title:"JS stack trace",owner:"sbrl"},"js-templates":{title:"JS Templates",require:"javascript",modify:"javascript",optional:["css","css-extras","graphql","markdown","markup","sql"],owner:"RunDevelopment"},julia:{title:"Julia",owner:"cdagnino"},keepalived:{title:"Keepalived Configure",owner:"dev-itsheng"},keyman:{title:"Keyman",owner:"mcdurdin"},kotlin:{title:"Kotlin",alias:["kt","kts"],aliasTitles:{kts:"Kotlin Script"},require:"clike",owner:"Golmote"},kumir:{title:"KuMir (\u041a\u0443\u041c\u0438\u0440)",alias:"kum",owner:"edukisto"},kusto:{title:"Kusto",owner:"RunDevelopment"},latex:{title:"LaTeX",alias:["tex","context"],aliasTitles:{tex:"TeX",context:"ConTeXt"},owner:"japborst"},latte:{title:"Latte",require:["clike","markup-templating","php"],owner:"nette"},less:{title:"Less",require:"css",optional:"css-extras",owner:"Golmote"},lilypond:{title:"LilyPond",require:"scheme",alias:"ly",owner:"RunDevelopment"},liquid:{title:"Liquid",require:"markup-templating",owner:"cinhtau"},lisp:{title:"Lisp",alias:["emacs","elisp","emacs-lisp"],owner:"JuanCaicedo"},livescript:{title:"LiveScript",owner:"Golmote"},llvm:{title:"LLVM IR",owner:"porglezomp"},log:{title:"Log file",optional:"javastacktrace",owner:"RunDevelopment"},lolcode:{title:"LOLCODE",owner:"Golmote"},lua:{title:"Lua",owner:"Golmote"},magma:{title:"Magma (CAS)",owner:"RunDevelopment"},makefile:{title:"Makefile",owner:"Golmote"},markdown:{title:"Markdown",require:"markup",optional:"yaml",alias:"md",owner:"Golmote"},"markup-templating":{title:"Markup templating",require:"markup",owner:"Golmote"},mata:{title:"Mata",owner:"RunDevelopment"},matlab:{title:"MATLAB",owner:"Golmote"},maxscript:{title:"MAXScript",owner:"RunDevelopment"},mel:{title:"MEL",owner:"Golmote"},mermaid:{title:"Mermaid",owner:"RunDevelopment"},metafont:{title:"METAFONT",owner:"LaeriExNihilo"},mizar:{title:"Mizar",owner:"Golmote"},mongodb:{title:"MongoDB",owner:"airs0urce",require:"javascript"},monkey:{title:"Monkey",owner:"Golmote"},moonscript:{title:"MoonScript",alias:"moon",owner:"RunDevelopment"},n1ql:{title:"N1QL",owner:"TMWilds"},n4js:{title:"N4JS",require:"javascript",optional:"jsdoc",alias:"n4jsd",owner:"bsmith-n4"},"nand2tetris-hdl":{title:"Nand To Tetris HDL",owner:"stephanmax"},naniscript:{title:"Naninovel Script",owner:"Elringus",alias:"nani"},nasm:{title:"NASM",owner:"rbmj"},neon:{title:"NEON",owner:"nette"},nevod:{title:"Nevod",owner:"nezaboodka"},nginx:{title:"nginx",owner:"volado"},nim:{title:"Nim",owner:"Golmote"},nix:{title:"Nix",owner:"Golmote"},nsis:{title:"NSIS",owner:"idleberg"},objectivec:{title:"Objective-C",require:"c",alias:"objc",owner:"uranusjr"},ocaml:{title:"OCaml",owner:"Golmote"},odin:{title:"Odin",owner:"edukisto"},opencl:{title:"OpenCL",require:"c",modify:["c","cpp"],owner:"Milania1"},openqasm:{title:"OpenQasm",alias:"qasm",owner:"RunDevelopment"},oz:{title:"Oz",owner:"Golmote"},parigp:{title:"PARI/GP",owner:"Golmote"},parser:{title:"Parser",require:"markup",owner:"Golmote"},pascal:{title:"Pascal",alias:"objectpascal",aliasTitles:{objectpascal:"Object Pascal"},owner:"Golmote"},pascaligo:{title:"Pascaligo",owner:"DefinitelyNotAGoat"},psl:{title:"PATROL Scripting Language",owner:"bertysentry"},pcaxis:{title:"PC-Axis",alias:"px",owner:"RunDevelopment"},peoplecode:{title:"PeopleCode",alias:"pcode",owner:"RunDevelopment"},perl:{title:"Perl",owner:"Golmote"},php:{title:"PHP",require:"markup-templating",owner:"milesj"},phpdoc:{title:"PHPDoc",require:["php","javadoclike"],modify:"php",owner:"RunDevelopment"},"php-extras":{title:"PHP Extras",require:"php",modify:"php",owner:"milesj"},"plant-uml":{title:"PlantUML",alias:"plantuml",owner:"RunDevelopment"},plsql:{title:"PL/SQL",require:"sql",owner:"Golmote"},powerquery:{title:"PowerQuery",alias:["pq","mscript"],owner:"peterbud"},powershell:{title:"PowerShell",owner:"nauzilus"},processing:{title:"Processing",require:"clike",owner:"Golmote"},prolog:{title:"Prolog",owner:"Golmote"},promql:{title:"PromQL",owner:"arendjr"},properties:{title:".properties",owner:"Golmote"},protobuf:{title:"Protocol Buffers",require:"clike",owner:"just-boris"},pug:{title:"Pug",require:["markup","javascript"],optional:["coffeescript","ejs","handlebars","less","livescript","markdown","scss","stylus","twig"],owner:"Golmote"},puppet:{title:"Puppet",owner:"Golmote"},pure:{title:"Pure",optional:["c","cpp","fortran"],owner:"Golmote"},purebasic:{title:"PureBasic",require:"clike",alias:"pbfasm",owner:"HeX0R101"},purescript:{title:"PureScript",require:"haskell",alias:"purs",owner:"sriharshachilakapati"},python:{title:"Python",alias:"py",owner:"multipetros"},qsharp:{title:"Q#",require:"clike",alias:"qs",owner:"fedonman"},q:{title:"Q (kdb+ database)",owner:"Golmote"},qml:{title:"QML",require:"javascript",owner:"RunDevelopment"},qore:{title:"Qore",require:"clike",owner:"temnroegg"},r:{title:"R",owner:"Golmote"},racket:{title:"Racket",require:"scheme",alias:"rkt",owner:"RunDevelopment"},cshtml:{title:"Razor C#",alias:"razor",require:["markup","csharp"],optional:["css","css-extras","javascript","js-extras"],owner:"RunDevelopment"},jsx:{title:"React JSX",require:["markup","javascript"],optional:["jsdoc","js-extras","js-templates"],owner:"vkbansal"},tsx:{title:"React TSX",require:["jsx","typescript"]},reason:{title:"Reason",require:"clike",owner:"Golmote"},regex:{title:"Regex",owner:"RunDevelopment"},rego:{title:"Rego",owner:"JordanSh"},renpy:{title:"Ren'py",alias:"rpy",owner:"HyuchiaDiego"},rescript:{title:"ReScript",alias:"res",owner:"vmarcosp"},rest:{title:"reST (reStructuredText)",owner:"Golmote"},rip:{title:"Rip",owner:"ravinggenius"},roboconf:{title:"Roboconf",owner:"Golmote"},robotframework:{title:"Robot Framework",alias:"robot",owner:"RunDevelopment"},ruby:{title:"Ruby",require:"clike",alias:"rb",owner:"samflores"},rust:{title:"Rust",owner:"Golmote"},sas:{title:"SAS",optional:["groovy","lua","sql"],owner:"Golmote"},sass:{title:"Sass (Sass)",require:"css",optional:"css-extras",owner:"Golmote"},scss:{title:"Sass (SCSS)",require:"css",optional:"css-extras",owner:"MoOx"},scala:{title:"Scala",require:"java",owner:"jozic"},scheme:{title:"Scheme",owner:"bacchus123"},"shell-session":{title:"Shell session",require:"bash",alias:["sh-session","shellsession"],owner:"RunDevelopment"},smali:{title:"Smali",owner:"RunDevelopment"},smalltalk:{title:"Smalltalk",owner:"Golmote"},smarty:{title:"Smarty",require:"markup-templating",optional:"php",owner:"Golmote"},sml:{title:"SML",alias:"smlnj",aliasTitles:{smlnj:"SML/NJ"},owner:"RunDevelopment"},solidity:{title:"Solidity (Ethereum)",alias:"sol",require:"clike",owner:"glachaud"},"solution-file":{title:"Solution file",alias:"sln",owner:"RunDevelopment"},soy:{title:"Soy (Closure Template)",require:"markup-templating",owner:"Golmote"},sparql:{title:"SPARQL",require:"turtle",owner:"Triply-Dev",alias:"rq"},"splunk-spl":{title:"Splunk SPL",owner:"RunDevelopment"},sqf:{title:"SQF: Status Quo Function (Arma 3)",require:"clike",owner:"RunDevelopment"},sql:{title:"SQL",owner:"multipetros"},squirrel:{title:"Squirrel",require:"clike",owner:"RunDevelopment"},stan:{title:"Stan",owner:"RunDevelopment"},stata:{title:"Stata Ado",require:["mata","java","python"],owner:"RunDevelopment"},iecst:{title:"Structured Text (IEC 61131-3)",owner:"serhioromano"},stylus:{title:"Stylus",owner:"vkbansal"},supercollider:{title:"SuperCollider",alias:"sclang",owner:"RunDevelopment"},swift:{title:"Swift",owner:"chrischares"},systemd:{title:"Systemd configuration file",owner:"RunDevelopment"},"t4-templating":{title:"T4 templating",owner:"RunDevelopment"},"t4-cs":{title:"T4 Text Templates (C#)",require:["t4-templating","csharp"],alias:"t4",owner:"RunDevelopment"},"t4-vb":{title:"T4 Text Templates (VB)",require:["t4-templating","vbnet"],owner:"RunDevelopment"},tap:{title:"TAP",owner:"isaacs",require:"yaml"},tcl:{title:"Tcl",owner:"PeterChaplin"},tt2:{title:"Template Toolkit 2",require:["clike","markup-templating"],owner:"gflohr"},textile:{title:"Textile",require:"markup",optional:"css",owner:"Golmote"},toml:{title:"TOML",owner:"RunDevelopment"},tremor:{title:"Tremor",alias:["trickle","troy"],owner:"darach",aliasTitles:{trickle:"trickle",troy:"troy"}},turtle:{title:"Turtle",alias:"trig",aliasTitles:{trig:"TriG"},owner:"jakubklimek"},twig:{title:"Twig",require:"markup-templating",owner:"brandonkelly"},typescript:{title:"TypeScript",require:"javascript",optional:"js-templates",alias:"ts",owner:"vkbansal"},typoscript:{title:"TypoScript",alias:"tsconfig",aliasTitles:{tsconfig:"TSConfig"},owner:"dkern"},unrealscript:{title:"UnrealScript",alias:["uscript","uc"],owner:"RunDevelopment"},uorazor:{title:"UO Razor Script",owner:"jaseowns"},uri:{title:"URI",alias:"url",aliasTitles:{url:"URL"},owner:"RunDevelopment"},v:{title:"V",require:"clike",owner:"taggon"},vala:{title:"Vala",require:"clike",optional:"regex",owner:"TemplarVolk"},vbnet:{title:"VB.Net",require:"basic",owner:"Bigsby"},velocity:{title:"Velocity",require:"markup",owner:"Golmote"},verilog:{title:"Verilog",owner:"a-rey"},vhdl:{title:"VHDL",owner:"a-rey"},vim:{title:"vim",owner:"westonganger"},"visual-basic":{title:"Visual Basic",alias:["vb","vba"],aliasTitles:{vba:"VBA"},owner:"Golmote"},warpscript:{title:"WarpScript",owner:"RunDevelopment"},wasm:{title:"WebAssembly",owner:"Golmote"},"web-idl":{title:"Web IDL",alias:"webidl",owner:"RunDevelopment"},wgsl:{title:"WGSL",owner:"Dr4gonthree"},wiki:{title:"Wiki markup",require:"markup",owner:"Golmote"},wolfram:{title:"Wolfram language",alias:["mathematica","nb","wl"],aliasTitles:{mathematica:"Mathematica",nb:"Mathematica Notebook"},owner:"msollami"},wren:{title:"Wren",owner:"clsource"},xeora:{title:"Xeora",require:"markup",alias:"xeoracube",aliasTitles:{xeoracube:"XeoraCube"},owner:"freakmaxi"},"xml-doc":{title:"XML doc (.net)",require:"markup",modify:["csharp","fsharp","vbnet"],owner:"RunDevelopment"},xojo:{title:"Xojo (REALbasic)",owner:"Golmote"},xquery:{title:"XQuery",require:"markup",owner:"Golmote"},yaml:{title:"YAML",alias:"yml",owner:"hason"},yang:{title:"YANG",owner:"RunDevelopment"},zig:{title:"Zig",owner:"RunDevelopment"}},plugins:{meta:{path:"plugins/{id}/prism-{id}",link:"plugins/{id}/"},"line-highlight":{title:"Line Highlight",description:"Highlights specific lines and/or line ranges."},"line-numbers":{title:"Line Numbers",description:"Line number at the beginning of code lines.",owner:"kuba-kubula"},"show-invisibles":{title:"Show Invisibles",description:"Show hidden characters such as tabs and line breaks.",optional:["autolinker","data-uri-highlight"]},autolinker:{title:"Autolinker",description:"Converts URLs and emails in code to clickable links. Parses Markdown links in comments."},wpd:{title:"WebPlatform Docs",description:'Makes tokens link to <a href="https://webplatform.github.io/docs/">WebPlatform.org documentation</a>. The links open in a new tab.'},"custom-class":{title:"Custom Class",description:"This plugin allows you to prefix Prism's default classes (<code>.comment</code> can become <code>.namespace--comment</code>) or replace them with your defined ones (like <code>.editor__comment</code>). You can even add new classes.",owner:"dvkndn",noCSS:!0},"file-highlight":{title:"File Highlight",description:"Fetch external files and highlight them with Prism. Used on the Prism website itself.",noCSS:!0},"show-language":{title:"Show Language",description:"Display the highlighted language in code blocks (inline code does not show the label).",owner:"nauzilus",noCSS:!0,require:"toolbar"},"jsonp-highlight":{title:"JSONP Highlight",description:"Fetch content with JSONP and highlight some interesting content (e.g. GitHub/Gists or Bitbucket API).",noCSS:!0,owner:"nauzilus"},"highlight-keywords":{title:"Highlight Keywords",description:"Adds special CSS classes for each keyword for fine-grained highlighting.",owner:"vkbansal",noCSS:!0},"remove-initial-line-feed":{title:"Remove initial line feed",description:"Removes the initial line feed in code blocks.",owner:"Golmote",noCSS:!0},"inline-color":{title:"Inline color",description:"Adds a small inline preview for colors in style sheets.",require:"css-extras",owner:"RunDevelopment"},previewers:{title:"Previewers",description:"Previewers for angles, colors, gradients, easing and time.",require:"css-extras",owner:"Golmote"},autoloader:{title:"Autoloader",description:"Automatically loads the needed languages to highlight the code blocks.",owner:"Golmote",noCSS:!0},"keep-markup":{title:"Keep Markup",description:"Prevents custom markup from being dropped out during highlighting.",owner:"Golmote",optional:"normalize-whitespace",noCSS:!0},"command-line":{title:"Command Line",description:"Display a command line with a prompt and, optionally, the output/response from the commands.",owner:"chriswells0"},"unescaped-markup":{title:"Unescaped Markup",description:"Write markup without having to escape anything."},"normalize-whitespace":{title:"Normalize Whitespace",description:"Supports multiple operations to normalize whitespace in code blocks.",owner:"zeitgeist87",optional:"unescaped-markup",noCSS:!0},"data-uri-highlight":{title:"Data-URI Highlight",description:"Highlights data-URI contents.",owner:"Golmote",noCSS:!0},toolbar:{title:"Toolbar",description:"Attach a toolbar for plugins to easily register buttons on the top of a code block.",owner:"mAAdhaTTah"},"copy-to-clipboard":{title:"Copy to Clipboard Button",description:"Add a button that copies the code block to the clipboard when clicked.",owner:"mAAdhaTTah",require:"toolbar",noCSS:!0},"download-button":{title:"Download Button",description:"A button in the toolbar of a code block adding a convenient way to download a code file.",owner:"Golmote",require:"toolbar",noCSS:!0},"match-braces":{title:"Match braces",description:"Highlights matching braces.",owner:"RunDevelopment"},"diff-highlight":{title:"Diff Highlight",description:"Highlights the code inside diff blocks.",owner:"RunDevelopment",require:"diff"},"filter-highlight-all":{title:"Filter highlightAll",description:"Filters the elements the <code>highlightAll</code> and <code>highlightAllUnder</code> methods actually highlight.",owner:"RunDevelopment",noCSS:!0},treeview:{title:"Treeview",description:"A language with special styles to highlight file system tree structures.",owner:"Golmote"}}})},8722:(e,t,n)=>{const r=n(6969),o=n(8380),a=new Set;function i(e){void 0===e?e=Object.keys(r.languages).filter((e=>"meta"!=e)):Array.isArray(e)||(e=[e]);const t=[...a,...Object.keys(Prism.languages)];o(r,e,t).load((e=>{if(!(e in r.languages))return void(i.silent||console.warn("Language does not exist: "+e));const t="./prism-"+e;delete n.c[n(3157).resolve(t)],delete Prism.languages[e],n(3157)(t),a.add(e)}))}i.silent=!1,e.exports=i},9700:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,a){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof a&&!a(e))return e;for(var o,s=i.length;-1!==n.code.indexOf(o=t(r,s));)++s;return i[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,a=Object.keys(n.tokenStack);!function i(s){for(var l=0;l<s.length&&!(o>=a.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=a[o],d=n.tokenStack[u],p="string"==typeof c?c:c.content,f=t(r,u),m=p.indexOf(f);if(m>-1){++o;var g=p.substring(0,m),h=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),b=p.substring(m+f.length),y=[];g&&y.push.apply(y,i([g])),y.push(h),b&&y.push.apply(y,i([b])),"string"==typeof c?s.splice.apply(s,[l,1].concat(y)):c.content=y}}else c.content&&i(c.content)}return s}(n.tokens)}}}})}(Prism)},8692:(e,t,n)=>{var r={"./":8722};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=8692},3157:(e,t,n)=>{var r={"./":8722};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=3157},8380:e=>{"use strict";var t=function(){var e=function(){};function t(e,t){Array.isArray(e)?e.forEach(t):null!=e&&t(e,0)}function n(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n]]=!0;return t}function r(e){var n={},r=[];function o(r,a){if(!(r in n)){a.push(r);var i=a.indexOf(r);if(i<a.length-1)throw new Error("Circular dependency: "+a.slice(i).join(" -> "));var s={},l=e[r];if(l){function c(t){if(!(t in e))throw new Error(r+" depends on an unknown component "+t);if(!(t in s))for(var i in o(t,a),s[t]=!0,n[t])s[i]=!0}t(l.require,c),t(l.optional,c),t(l.modify,c)}n[r]=s,a.pop()}}return function(e){var t=n[e];return t||(o(e,r),t=n[e]),t}}function o(e){for(var t in e)return!0;return!1}return function(a,i,s){var l=function(e){var t={};for(var n in e){var r=e[n];for(var o in r)if("meta"!=o){var a=r[o];t[o]="string"==typeof a?{title:a}:a}}return t}(a),c=function(e){var n;return function(r){if(r in e)return r;if(!n)for(var o in n={},e){var a=e[o];t(a&&a.alias,(function(t){if(t in n)throw new Error(t+" cannot be alias for both "+o+" and "+n[t]);if(t in e)throw new Error(t+" cannot be alias of "+o+" because it is a component.");n[t]=o}))}return n[r]||r}}(l);i=i.map(c),s=(s||[]).map(c);var u=n(i),d=n(s);i.forEach((function e(n){var r=l[n];t(r&&r.require,(function(t){t in d||(u[t]=!0,e(t))}))}));for(var p,f=r(l),m=u;o(m);){for(var g in p={},m){var h=l[g];t(h&&h.modify,(function(e){e in d&&(p[e]=!0)}))}for(var b in d)if(!(b in u))for(var y in f(b))if(y in u){p[b]=!0;break}for(var v in m=p)u[v]=!0}var w={getIds:function(){var e=[];return w.load((function(t){e.push(t)})),e},load:function(t,n){return function(t,n,r,o){var a=o?o.series:void 0,i=o?o.parallel:e,s={},l={};function c(e){if(e in s)return s[e];l[e]=!0;var o,u=[];for(var d in t(e))d in n&&u.push(d);if(0===u.length)o=r(e);else{var p=i(u.map((function(e){var t=c(e);return delete l[e],t})));a?o=a(p,(function(){return r(e)})):r(e)}return s[e]=o}for(var u in n)c(u);var d=[];for(var p in l)d.push(s[p]);return i(d)}(f,u,t,n)}};return w}}();e.exports=t},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2551:(e,t,n)=>{"use strict";var r=n(6540),o=n(9982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 i=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[: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]*$/,f={},m={};function g(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){h[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];h[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){h[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){h[e]=new g(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){h[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){h[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){h[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){h[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){h[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=h.hasOwnProperty(t)?h[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(m,e)||!d.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(b,y);h[t]=new g(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(b,y);h[t]=new g(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(b,y);h[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){h[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),h.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){h[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),T=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var O=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var M,I=Object.assign;function F(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var z=!1;function B(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var o=c.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function $(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function U(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case E:return"Profiler";case _:return"StrictMode";case P:return"Suspense";case j:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return U(e(t))}catch(n){}}return null}function q(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=(e=t.render).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 U(t);case 8:return t===_?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function G(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){Z(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ae(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={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},me=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function he(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var be=I({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 ye(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 we=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,_e=null;function Ee(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Ce(e){Se?_e?_e.push(e):_e=[e]:Se=e}function Te(){if(Se){var e=Se,t=_e;if(_e=Se=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Ae(e,t){return e(t)}function Pe(){}var je=!1;function Le(e,t,n){if(je)return e(t,n);je=!0;try{return Ae(e,t,n)}finally{je=!1,(null!==Se||null!==_e)&&(Pe(),Te())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ne=!1;if(u)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch(ue){Ne=!1}function De(e,t,n,r,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Me=!1,Ie=null,Fe=!1,ze=null,Be={onError:function(e){Me=!0,Ie=e}};function $e(e,t,n,r,o,a,i,s,l){Me=!1,Ie=null,De.apply(Be,arguments)}function Ue(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ge(e){if(Ue(e)!==e)throw Error(a(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ge(o),e;if(i===r)return Ge(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ve=o.unstable_scheduleCallback,Ke=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Ze=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~o;0!==s?r=dt(s):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ft(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;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var kt,xt,St,_t,Et,Ct=!1,Tt=[],At=null,Pt=null,jt=null,Lt=new Map,Rt=new Map,Nt=[],Ot="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 Dt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":jt=null;break;case"pointerover":case"pointerout":Lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Mt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function It(e){var t=vo(e.target);if(null!==t){var n=Ue(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=qe(n)))return e.blockedOn=t,void Et(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function zt(e,t,n){Ft(e)&&n.delete(t)}function Bt(){Ct=!1,null!==At&&Ft(At)&&(At=null),null!==Pt&&Ft(Pt)&&(Pt=null),null!==jt&&Ft(jt)&&(jt=null),Lt.forEach(zt),Rt.forEach(zt)}function $t(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function Ut(e){function t(t){return $t(t,e)}if(0<Tt.length){$t(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&$t(At,e),null!==Pt&&$t(Pt,e),null!==jt&&$t(jt,e),Lt.forEach(t),Rt.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)It(n),null===n.blockedOn&&Nt.shift()}var qt=w.ReactCurrentBatchConfig,Gt=!0;function Ht(e,t,n,r){var o=vt,a=qt.transition;qt.transition=null;try{vt=1,Vt(e,t,n,r)}finally{vt=o,qt.transition=a}}function Wt(e,t,n,r){var o=vt,a=qt.transition;qt.transition=null;try{vt=4,Vt(e,t,n,r)}finally{vt=o,qt.transition=a}}function Vt(e,t,n,r){if(Gt){var o=Qt(e,t,n,r);if(null===o)Gr(e,t,r,Kt,n),Dt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return At=Mt(At,e,t,n,r,o),!0;case"dragenter":return Pt=Mt(Pt,e,t,n,r,o),!0;case"mouseover":return jt=Mt(jt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Lt.set(a,Mt(Lt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Rt.set(a,Mt(Rt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Ot.indexOf(e)){for(;null!==o;){var a=wo(o);if(null!==a&&kt(a),null===(a=Qt(e,t,n,r))&&Gr(e,t,r,Kt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Gr(e,t,r,null,n)}}var Kt=null;function Qt(e,t,n,r){if(Kt=null,null!==(e=vo(e=ke(r))))if(null===(t=Ue(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Yt(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(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=I({},cn,{view:0,detail:0}),pn=on(dn),fn=I({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),mn=on(fn),gn=on(I({},fn,{dataTransfer:0})),hn=on(I({},dn,{relatedTarget:0})),bn=on(I({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=I({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=on(yn),wn=on(I({},cn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={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"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function En(){return _n}var Cn=I({},dn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(Cn),An=on(I({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=on(I({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),jn=on(I({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=I({},fn,{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}),Rn=on(Ln),Nn=[9,13,27,32],On=u&&"CompositionEvent"in window,Dn=null;u&&"documentMode"in document&&(Dn=document.documentMode);var Mn=u&&"TextEvent"in window&&!Dn,In=u&&(!On||Dn&&8<Dn&&11>=Dn),Fn=String.fromCharCode(32),zn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var qn={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 Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Hn(e,t,n,r){Ce(r),0<(t=Wr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Vn=null;function Kn(e){Fr(e,0)}function Qn(e){if(V(ko(e)))return e}function Yn(e,t){if("change"===e)return t}var Zn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Xn=Jn}else Xn=!1;Zn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),Vn=Wn=null)}function nr(e){if("value"===e.propertyName&&Qn(Vn)){var t=[];Hn(t,Vn,e,ke(e)),Le(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Vn=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Vn)}function ar(e,t){if("click"===e)return Qn(t)}function ir(e,t){if("input"===e||"change"===e)return Qn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){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=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ur(n,a);var i=ur(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,hr=null,br=null,yr=null,vr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==hr||hr!==K(r)||("selectionStart"in(r=hr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Wr(br,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},Sr={},_r={};function Er(e){if(Sr[e])return Sr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Sr[e]=n[t];return e}u&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Cr=Er("animationend"),Tr=Er("animationiteration"),Ar=Er("animationstart"),Pr=Er("transitionend"),jr=new Map,Lr="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 Rr(e,t){jr.set(e,t),l(t,[e])}for(var Nr=0;Nr<Lr.length;Nr++){var Or=Lr[Nr];Rr(Or.toLowerCase(),"on"+(Or[0].toUpperCase()+Or.slice(1)))}Rr(Cr,"onAnimationEnd"),Rr(Tr,"onAnimationIteration"),Rr(Ar,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Pr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="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(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Ir(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,c){if($e.apply(this,arguments),Me){if(!Me)throw Error(a(198));var u=Ie;Me=!1,Ie=null,Fe||(Fe=!0,ze=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;Ir(o,s,c),a=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;Ir(o,s,c),a=l}}}if(Fe)throw e=ze,Fe=!1,ze=null,e}function zr(e,t){var n=t[ho];void 0===n&&(n=t[ho]=new Set);var r=e+"__bubble";n.has(r)||(qr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),qr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[$r]){e[$r]=!0,i.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Br("selectionchange",!1,t))}}function qr(e,t,n,r){switch(Yt(t)){case 1:var o=Ht;break;case 4:o=Wt;break;default:o=Vt}n=o.bind(null,t,n,e),o=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Gr(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=vo(s)))return;if(5===(l=i.tag)||6===l){r=a=i;continue e}s=s.parentNode}}r=r.return}Le((function(){var r=a,o=ke(n),i=[];e:{var s=jr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":c="focus",l=hn;break;case"focusout":c="blur",l=hn;break;case"beforeblur":case"afterblur":l=hn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Cr:case Tr:case Ar:l=bn;break;case Pr:l=jn;break;case"scroll":l=pn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,m=r;null!==m;){var g=(f=m).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==p&&(null!=(g=Re(m,p))&&u.push(Hr(m,g,f)))),d)break;m=m.return}0<u.length&&(s=new l(s,c,null,n,o),i.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!vo(c)&&!c[go])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?vo(c):null)&&(c!==(d=Ue(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=mn,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=An,g="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==l?s:ko(l),f=null==c?s:ko(c),(s=new u(g,m+"leave",l,n,o)).target=d,s.relatedTarget=f,g=null,vo(o)===r&&((u=new u(p,m+"enter",c,n,o)).target=f,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(p=c,m=0,f=u=l;f;f=Vr(f))m++;for(f=0,g=p;g;g=Vr(g))f++;for(;0<m-f;)u=Vr(u),m--;for(;0<f-m;)p=Vr(p),f--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=Vr(u),p=Vr(p)}u=null}else u=null;null!==l&&Kr(i,s,l,u,!1),null!==c&&null!==d&&Kr(i,d,c,u,!0)}if("select"===(l=(s=r?ko(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var h=Yn;else if(Gn(s))if(Zn)h=ir;else{h=or;var b=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(h=ar);switch(h&&(h=h(e,r))?Hn(i,h,n,o):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&ee(s,"number",s.value)),b=r?ko(r):window,e){case"focusin":(Gn(b)||"true"===b.contentEditable)&&(hr=b,br=r,yr=null);break;case"focusout":yr=br=hr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,wr(i,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(i,n,o)}var y;if(On)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Un?Bn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(In&&"ko"!==n.locale&&(Un||"onCompositionStart"!==v?"onCompositionEnd"===v&&Un&&(y=en()):(Xt="value"in(Zt=o)?Zt.value:Zt.textContent,Un=!0)),0<(b=Wr(r,v)).length&&(v=new wn(v,e,null,n,o),i.push({event:v,listeners:b}),y?v.data=y:null!==(y=$n(n))&&(v.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(zn=!0,Fn);case"textInput":return(e=t.data)===Fn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!On&&Bn(e,t)?(e=en(),Jt=Xt=Zt=null,Un=!1,e):null;switch(e){case"paste":default: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 In&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}Fr(i,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Re(e,n))&&r.unshift(Hr(e,a,o)),null!=(a=Re(e,t))&&r.push(Hr(e,a,o))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Re(n,a))&&i.unshift(Hr(n,l,s)):o||null!=(l=Re(n,a))&&i.push(Hr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Qr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Zr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Yr,"")}function Xr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(a(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ut(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ut(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,mo="__reactProps$"+po,go="__reactContainer$"+po,ho="__reactEvents$"+po,bo="__reactListeners$"+po,yo="__reactHandles$"+po;function vo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[fo]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ko(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function xo(e){return e[mo]||null}var So=[],_o=-1;function Eo(e){return{current:e}}function Co(e){0>_o||(e.current=So[_o],So[_o]=null,_o--)}function To(e,t){_o++,So[_o]=e.current,e.current=t}var Ao={},Po=Eo(Ao),jo=Eo(!1),Lo=Ao;function Ro(e,t){var n=e.type.contextTypes;if(!n)return Ao;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function No(e){return null!=(e=e.childContextTypes)}function Oo(){Co(jo),Co(Po)}function Do(e,t,n){if(Po.current!==Ao)throw Error(a(168));To(Po,t),To(jo,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,q(e)||"Unknown",o));return I({},n,r)}function Io(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ao,Lo=Po.current,To(Po,e),To(jo,jo.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Mo(e,t,Lo),r.__reactInternalMemoizedMergedChildContext=e,Co(jo),Co(Po),To(Po,e)):Co(jo),To(jo,n)}var zo=null,Bo=!1,$o=!1;function Uo(e){null===zo?zo=[e]:zo.push(e)}function qo(){if(!$o&&null!==zo){$o=!0;var e=0,t=vt;try{var n=zo;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zo=null,Bo=!1}catch(o){throw null!==zo&&(zo=zo.slice(e+1)),Ve(Je,qo),o}finally{vt=t,$o=!1}}return null}var Go=[],Ho=0,Wo=null,Vo=0,Ko=[],Qo=0,Yo=null,Zo=1,Xo="";function Jo(e,t){Go[Ho++]=Vo,Go[Ho++]=Wo,Wo=e,Vo=t}function ea(e,t,n){Ko[Qo++]=Zo,Ko[Qo++]=Xo,Ko[Qo++]=Yo,Yo=e;var r=Zo;e=Xo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Zo=1<<32-it(t)+o|n<<o|r,Xo=a+e}else Zo=1<<a|n<<o|r,Xo=e}function ta(e){null!==e.return&&(Jo(e,1),ea(e,1,0))}function na(e){for(;e===Wo;)Wo=Go[--Ho],Go[Ho]=null,Vo=Go[--Ho],Go[Ho]=null;for(;e===Yo;)Yo=Ko[--Qo],Ko[Qo]=null,Xo=Ko[--Qo],Ko[Qo]=null,Zo=Ko[--Qo],Ko[Qo]=null}var ra=null,oa=null,aa=!1,ia=null;function sa(e,t){var n=Rc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function la(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Zo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Rc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ca(e){return!(!(1&e.mode)||128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var n=t;if(!la(e,t)){if(ca(e))throw Error(a(418));t=co(n.nextSibling);var r=ra;t&&la(e,t)?sa(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function pa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw fa(),Error(a(418));for(;t;)sa(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?co(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=oa;e;)e=co(e.nextSibling)}function ma(){oa=ra=null,aa=!1}function ga(e){null===ia?ia=[e]:ia.push(e)}var ha=w.ReactCurrentBatchConfig;function ba(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ya=Eo(null),va=null,wa=null,ka=null;function xa(){ka=wa=va=null}function Sa(e){var t=ya.current;Co(ya),e._currentValue=t}function _a(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ea(e,t){va=e,ka=wa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Ca(e){var t=e._currentValue;if(ka!==e)if(e={context:e,memoizedValue:t,next:null},null===wa){if(null===va)throw Error(a(308));wa=e,va.dependencies={lanes:0,firstContext:e}}else wa=wa.next=e;return t}var Ta=null;function Aa(e){null===Ta?Ta=[e]:Ta.push(e)}function Pa(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Aa(t)):(n.next=o.next,o.next=n),t.interleaved=n,ja(e,r)}function ja(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var La=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Na(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 Oa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Da(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Pl){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ja(e,n)}return null===(o=r.interleaved)?(t.next=t,Aa(r)):(t.next=o.next,o.next=t),r.interleaved=t,ja(e,n)}function Ma(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ia(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fa(e,t,n,r){var o=e.updateQueue;La=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,u=c=l=null,s=a;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(p=t,f=n,g.tag){case 1:if("function"==typeof(m=g.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(f,d,p):m))break e;d=I({},d,p);break e;case 2:La=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,i|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Il|=i,e.lanes=i,e.memoizedState=d}}function za(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Ba=(new r.Component).refs;function $a(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ua={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=Oa(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Da(e,a,o))&&(rc(t,e,o,r),Ma(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=Oa(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Da(e,a,o))&&(rc(t,e,o,r),Ma(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),o=Oa(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Da(e,o,r))&&(rc(t,e,r,n),Ma(t,e,r))}};function qa(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,a))}function Ga(e,t,n){var r=!1,o=Ao,a=t.contextType;return"object"==typeof a&&null!==a?a=Ca(a):(o=No(t)?Lo:Po.current,a=(r=null!=(r=t.contextTypes))?Ro(e,o):Ao),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ua,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ha(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ua.enqueueReplaceState(t,t.state,null)}function Wa(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ba,Ra(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Ca(a):(a=No(t)?Lo:Po.current,o.context=Ro(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&($a(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ua.enqueueReplaceState(o,o.state,null),Fa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Va(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===Ba&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ka(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qa(e){return(0,e._init)(e._payload)}function Ya(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Oc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===R&&Qa(a)===t.type)?((r=o(t,n.props)).ref=Va(e,t,n),r.return=e,r):((r=Dc(n.type,n.key,n.props,null,e.mode,r)).ref=Va(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Mc(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Fc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Dc(t.type,t.key,t.props,null,e.mode,n)).ref=Va(e,null,t),n.return=e,n;case x:return(t=zc(t,e.mode,n)).return=e,t;case R:return p(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Mc(t,e.mode,n,null)).return=e,t;Ka(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===o?c(e,t,n,r):null;case x:return n.key===o?u(e,t,n,r):null;case R:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||D(n))return null!==o?null:d(e,t,n,r,null);Ka(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return m(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||D(r))return d(t,e=e.get(n)||null,r,o,null);Ka(t,r)}return null}function g(o,a,s,l){for(var c=null,u=null,d=a,g=a=0,h=null;null!==d&&g<s.length;g++){d.index>g?(h=d,d=null):h=d.sibling;var b=f(o,d,s[g],l);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(o,d),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b,d=h}if(g===s.length)return n(o,d),aa&&Jo(o,g),c;if(null===d){for(;g<s.length;g++)null!==(d=p(o,s[g],l))&&(a=i(d,a,g),null===u?c=d:u.sibling=d,u=d);return aa&&Jo(o,g),c}for(d=r(o,d);g<s.length;g++)null!==(h=m(d,o,g,s[g],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?g:h.key),a=i(h,a,g),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach((function(e){return t(o,e)})),aa&&Jo(o,g),c}function h(o,s,l,c){var u=D(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,g=s,h=s=0,b=null,y=l.next();null!==g&&!y.done;h++,y=l.next()){g.index>h?(b=g,g=null):b=g.sibling;var v=f(o,g,y.value,c);if(null===v){null===g&&(g=b);break}e&&g&&null===v.alternate&&t(o,g),s=i(v,s,h),null===d?u=v:d.sibling=v,d=v,g=b}if(y.done)return n(o,g),aa&&Jo(o,h),u;if(null===g){for(;!y.done;h++,y=l.next())null!==(y=p(o,y.value,c))&&(s=i(y,s,h),null===d?u=y:d.sibling=y,d=y);return aa&&Jo(o,h),u}for(g=r(o,g);!y.done;h++,y=l.next())null!==(y=m(g,o,h,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?h:y.key),s=i(y,s,h),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(o,e)})),aa&&Jo(o,h),u}return function e(r,a,i,l){if("object"==typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case k:e:{for(var c=i.key,u=a;null!==u;){if(u.key===c){if((c=i.type)===S){if(7===u.tag){n(r,u.sibling),(a=o(u,i.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===R&&Qa(c)===u.type){n(r,u.sibling),(a=o(u,i.props)).ref=Va(r,u,i),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===S?((a=Mc(i.props.children,r.mode,l,i.key)).return=r,r=a):((l=Dc(i.type,i.key,i.props,null,r.mode,l)).ref=Va(r,a,i),l.return=r,r=l)}return s(r);case x:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=zc(i,r.mode,l)).return=r,r=a}return s(r);case R:return e(r,a,(u=i._init)(i._payload),l)}if(te(i))return g(r,a,i,l);if(D(i))return h(r,a,i,l);Ka(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Fc(i,r.mode,l)).return=r,r=a),s(r)):n(r,a)}}var Za=Ya(!0),Xa=Ya(!1),Ja={},ei=Eo(Ja),ti=Eo(Ja),ni=Eo(Ja);function ri(e){if(e===Ja)throw Error(a(174));return e}function oi(e,t){switch(To(ni,t),To(ti,e),To(ei,Ja),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Co(ei),To(ei,t)}function ai(){Co(ei),Co(ti),Co(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=le(t,e.type);t!==n&&(To(ti,e),To(ei,n))}function si(e){ti.current===e&&(Co(ei),Co(ti))}var li=Eo(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var pi=w.ReactCurrentDispatcher,fi=w.ReactCurrentBatchConfig,mi=0,gi=null,hi=null,bi=null,yi=!1,vi=!1,wi=0,ki=0;function xi(){throw Error(a(321))}function Si(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function _i(e,t,n,r,o,i){if(mi=i,gi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?ss:ls,e=n(r,o),vi){i=0;do{if(vi=!1,wi=0,25<=i)throw Error(a(301));i+=1,bi=hi=null,t.updateQueue=null,pi.current=cs,e=n(r,o)}while(vi)}if(pi.current=is,t=null!==hi&&null!==hi.next,mi=0,bi=hi=gi=null,yi=!1,t)throw Error(a(300));return e}function Ei(){var e=0!==wi;return wi=0,e}function Ci(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===bi?gi.memoizedState=bi=e:bi=bi.next=e,bi}function Ti(){if(null===hi){var e=gi.alternate;e=null!==e?e.memoizedState:null}else e=hi.next;var t=null===bi?gi.memoizedState:bi.next;if(null!==t)bi=t,hi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(hi=e).memoizedState,baseState:hi.baseState,baseQueue:hi.baseQueue,queue:hi.queue,next:null},null===bi?gi.memoizedState=bi=e:bi=bi.next=e}return bi}function Ai(e,t){return"function"==typeof t?t(e):t}function Pi(e){var t=Ti(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=hi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=s=null,c=null,u=i;do{var d=u.lane;if((mi&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,gi.lanes|=d,Il|=d}u=u.next}while(null!==u&&u!==i);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(ws=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,gi.lanes|=i,Il|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ji(e){var t=Ti(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);sr(i,t.memoizedState)||(ws=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Li(){}function Ri(e,t){var n=gi,r=Ti(),o=t(),i=!sr(r.memoizedState,o);if(i&&(r.memoizedState=o,ws=!0),r=r.queue,Gi(Di.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==bi&&1&bi.memoizedState.tag){if(n.flags|=2048,zi(9,Oi.bind(null,n,r,o,t),void 0,null),null===jl)throw Error(a(349));30&mi||Ni(n,t,o)}return o}function Ni(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oi(e,t,n,r){t.value=n,t.getSnapshot=r,Mi(t)&&Ii(e)}function Di(e,t,n){return n((function(){Mi(t)&&Ii(e)}))}function Mi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ii(e){var t=ja(e,1);null!==t&&rc(t,e,1,-1)}function Fi(e){var t=Ci();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,gi,e),[t.memoizedState,e]}function zi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bi(){return Ti().memoizedState}function $i(e,t,n,r){var o=Ci();gi.flags|=e,o.memoizedState=zi(1|t,n,void 0,void 0===r?null:r)}function Ui(e,t,n,r){var o=Ti();r=void 0===r?null:r;var a=void 0;if(null!==hi){var i=hi.memoizedState;if(a=i.destroy,null!==r&&Si(r,i.deps))return void(o.memoizedState=zi(t,n,a,r))}gi.flags|=e,o.memoizedState=zi(1|t,n,a,r)}function qi(e,t){return $i(8390656,8,e,t)}function Gi(e,t){return Ui(2048,8,e,t)}function Hi(e,t){return Ui(4,2,e,t)}function Wi(e,t){return Ui(4,4,e,t)}function Vi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ki(e,t,n){return n=null!=n?n.concat([e]):null,Ui(4,4,Vi.bind(null,t,e),n)}function Qi(){}function Yi(e,t){var n=Ti();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zi(e,t){var n=Ti();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xi(e,t,n){return 21&mi?(sr(n,t)||(n=gt(),gi.lanes|=n,Il|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n)}function Ji(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=fi.transition;fi.transition={};try{e(!1),t()}finally{vt=n,fi.transition=r}}function es(){return Ti().memoizedState}function ts(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))os(t,n);else if(null!==(n=Pa(e,t,n,r))){rc(n,e,r,tc()),as(n,t,r)}}function ns(e,t,n){var r=nc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))os(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,i)){var l=t.interleaved;return null===l?(o.next=o,Aa(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Pa(e,t,o,r))&&(rc(n,e,r,o=tc()),as(n,t,r))}}function rs(e){var t=e.alternate;return e===gi||null!==t&&t===gi}function os(e,t){vi=yi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function as(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var is={readContext:Ca,useCallback:xi,useContext:xi,useEffect:xi,useImperativeHandle:xi,useInsertionEffect:xi,useLayoutEffect:xi,useMemo:xi,useReducer:xi,useRef:xi,useState:xi,useDebugValue:xi,useDeferredValue:xi,useTransition:xi,useMutableSource:xi,useSyncExternalStore:xi,useId:xi,unstable_isNewReconciler:!1},ss={readContext:Ca,useCallback:function(e,t){return Ci().memoizedState=[e,void 0===t?null:t],e},useContext:Ca,useEffect:qi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,$i(4194308,4,Vi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){return $i(4,2,e,t)},useMemo:function(e,t){var n=Ci();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ci();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,gi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ci().memoizedState=e},useState:Fi,useDebugValue:Qi,useDeferredValue:function(e){return Ci().memoizedState=e},useTransition:function(){var e=Fi(!1),t=e[0];return e=Ji.bind(null,e[1]),Ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=gi,o=Ci();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===jl)throw Error(a(349));30&mi||Ni(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,qi(Di.bind(null,r,i,e),[e]),r.flags|=2048,zi(9,Oi.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ci(),t=jl.identifierPrefix;if(aa){var n=Xo;t=":"+t+"R"+(n=(Zo&~(1<<32-it(Zo)-1)).toString(32)+n),0<(n=wi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ki++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Ca,useCallback:Yi,useContext:Ca,useEffect:Gi,useImperativeHandle:Ki,useInsertionEffect:Hi,useLayoutEffect:Wi,useMemo:Zi,useReducer:Pi,useRef:Bi,useState:function(){return Pi(Ai)},useDebugValue:Qi,useDeferredValue:function(e){return Xi(Ti(),hi.memoizedState,e)},useTransition:function(){return[Pi(Ai)[0],Ti().memoizedState]},useMutableSource:Li,useSyncExternalStore:Ri,useId:es,unstable_isNewReconciler:!1},cs={readContext:Ca,useCallback:Yi,useContext:Ca,useEffect:Gi,useImperativeHandle:Ki,useInsertionEffect:Hi,useLayoutEffect:Wi,useMemo:Zi,useReducer:ji,useRef:Bi,useState:function(){return ji(Ai)},useDebugValue:Qi,useDeferredValue:function(e){var t=Ti();return null===hi?t.memoizedState=e:Xi(t,hi.memoizedState,e)},useTransition:function(){return[ji(Ai)[0],Ti().memoizedState]},useMutableSource:Li,useSyncExternalStore:Ri,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var o=n}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ps(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function ms(e,t,n){(n=Oa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Wl=r),ps(0,t)},n}function gs(e,t,n){(n=Oa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ps(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){ps(0,t),"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function hs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function bs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Oa(-1,1)).tag=2,Da(n,t,1))),n.lanes|=1),e)}var vs=w.ReactCurrentOwner,ws=!1;function ks(e,t,n,r){t.child=null===e?Xa(t,null,n,r):Za(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var a=t.ref;return Ea(t,o),r=_i(e,t,n,r,a,o),n=Ei(),null===e||ws?(aa&&n&&ta(t),t.flags|=1,ks(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ss(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Nc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,_s(e,t,a,r,o))}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Oc(a,r)).ref=t.ref,e.return=t,t.child=e}function _s(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(lr(a,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=a,!(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);131072&e.flags&&(ws=!0)}}return Ts(e,t,n,r,o)}function Es(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Ol,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,To(Ol,Nl),Nl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ol,Nl),Nl|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,To(Ol,Nl),Nl|=r;return ks(e,t,o,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,o){var a=No(n)?Lo:Po.current;return a=Ro(t,a),Ea(t,o),n=_i(e,t,n,r,a,o),r=Ei(),null===e||ws?(aa&&r&&ta(t),t.flags|=1,ks(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function As(e,t,n,r,o){if(No(n)){var a=!0;Io(t)}else a=!1;if(Ea(t,o),null===t.stateNode)Gs(e,t),Ga(t,n,r),Wa(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=Ca(c):c=Ro(t,c=No(n)?Lo:Po.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==c)&&Ha(t,i,r,c),La=!1;var p=t.memoizedState;i.state=p,Fa(t,r,i,o),l=t.memoizedState,s!==r||p!==l||jo.current||La?("function"==typeof u&&($a(t,n,u,r),l=t.memoizedState),(s=La||qa(t,n,s,r,p,l,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Na(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ba(t.type,s),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ca(l):l=Ro(t,l=No(n)?Lo:Po.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||p!==l)&&Ha(t,i,r,l),La=!1,p=t.memoizedState,i.state=p,Fa(t,r,i,o);var m=t.memoizedState;s!==d||p!==m||jo.current||La?("function"==typeof f&&($a(t,n,f,r),m=t.memoizedState),(c=La||qa(t,n,c,r,p,m,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ps(e,t,n,r,a,o)}function Ps(e,t,n,r,o,a){Cs(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&Fo(t,n,!1),Hs(e,t,a);r=t.stateNode,vs.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Za(t,e.child,null,a),t.child=Za(t,null,s,a)):ks(e,t,s,a),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function js(e){var t=e.stateNode;t.pendingContext?Do(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Do(0,t.context,!1),oi(e,t.containerInfo)}function Ls(e,t,n,r,o){return ma(),ga(o),t.flags|=256,ks(e,t,n,r),t.child}var Rs,Ns,Os,Ds,Ms={dehydrated:null,treeContext:null,retryLane:0};function Is(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fs(e,t,n){var r,o=t.pendingProps,i=li.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),To(li,1&i),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Ic(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Mc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Is(n),t.memoizedState=Ms,e):zs(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=ds(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ic({mode:"visible",children:r.children},o,0,null),(i=Mc(i,o,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Za(t,e.child,null,s),t.child.memoizedState=Is(s),t.memoizedState=Ms,i);if(!(1&t.mode))return Bs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=ds(i=Error(a(419)),r,void 0))}if(l=!!(s&e.childLanes),ws||l){if(null!==(r=jl)){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|s)?0:o)&&o!==i.retryLane&&(i.retryLane=o,ja(e,o),rc(r,e,o,-1))}return hc(),Bs(e,t,s,r=ds(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ac.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=co(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Ko[Qo++]=Zo,Ko[Qo++]=Xo,Ko[Qo++]=Yo,Zo=e.id,Xo=e.overflow,Yo=t),t=zs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(s){s=o.fallback,l=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 1&l||t.child===i?(o=Oc(i,c)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null),null!==r?s=Oc(r,s):(s=Mc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Is(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,o}return e=(s=e.child).sibling,o=Oc(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function zs(e,t){return(t=Ic({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&ga(r),Za(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $s(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_a(e.return,t,n)}function Us(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function qs(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(ks(e,t,r.children,n),2&(r=li.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$s(e,n,t);else if(19===e.tag)$s(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(li,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ci(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Us(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ci(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Us(t,!0,n,null,a);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Gs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Il|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Oc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Oc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return No(t.type)&&Oo(),Vs(t),null;case 3:return r=t.stateNode,ai(),Co(jo),Co(Po),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ia&&(sc(ia),ia=null))),Ns(e,t),Vs(t),null;case 5:si(t);var o=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Os(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Vs(t),null}if(e=ri(ei.current),pa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[fo]=t,r[mo]=i,e=!!(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(o=0;o<Dr.length;o++)zr(Dr[o],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":Y(r,i),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},zr("invalid",r);break;case"textarea":oe(r,i),zr("invalid",r)}for(var l in ye(n,i),o=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&zr("scroll",r)}switch(n){case"input":W(r),J(r,i,!0);break;case"textarea":W(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fo]=t,e[mo]=r,Rs(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":zr("cancel",e),zr("close",e),o=r;break;case"iframe":case"object":case"embed":zr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Dr.length;o++)zr(Dr[o],e);o=r;break;case"source":zr("error",e),o=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),o=r;break;case"details":zr("toggle",e),o=r;break;case"input":Y(e,r),o=Q(e,r),zr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=I({},r,{value:void 0}),zr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),zr("invalid",e)}for(i in ye(n,o),c=o)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?he(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&zr("scroll",e):null!=u&&v(e,i,u,l))}switch(n){case"input":W(e),J(e,r,!1);break;case"textarea":W(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)Ds(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=ri(ni.current),ri(ei.current),pa(t)){if(r=t.stateNode,n=t.memoizedProps,r[fo]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Xr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fo]=t,t.stateNode=r}return Vs(t),null;case 13:if(Co(li),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&1&t.mode&&!(128&t.flags))fa(),ma(),t.flags|=98560,i=!1;else if(i=pa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[fo]=t}else ma(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),i=!1}else null!==ia&&(sc(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&li.current?0===Dl&&(Dl=3):hc())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return ai(),Ns(e,t),null===e&&Ur(t.stateNode.containerInfo),Vs(t),null;case 10:return Sa(t.type._context),Vs(t),null;case 19:if(Co(li),null===(i=t.memoizedState))return Vs(t),null;if(r=!!(128&t.flags),null===(l=i.rendering))if(r)Ws(i,!1);else{if(0!==Dl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ci(e))){for(t.flags|=128,Ws(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return To(li,1&li.current|2),t.child}e=e.sibling}null!==i.tail&&Ze()>ql&&(t.flags|=128,r=!0,Ws(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ci(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ws(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!aa)return Vs(t),null}else 2*Ze()-i.renderingStartTime>ql&&1073741824!==n&&(t.flags|=128,r=!0,Ws(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ze(),t.sibling=null,n=li.current,To(li,r?1&n|2:1&n),t):(Vs(t),null);case 22:case 23:return pc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Nl)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Qs(e,t){switch(na(t),t.tag){case 1:return No(t.type)&&Oo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),Co(jo),Co(Po),di(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(Co(li),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ma()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Co(li),null;case 4:return ai(),null;case 10:return Sa(t.type._context),null;case 22:case 23:return pc(),null;default:return null}}Rs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ns=function(){},Os=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ri(ei.current);var a,i=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),i=[];break;case"select":o=I({},o,{value:void 0}),r=I({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&zr("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Ds=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Zs=!1,Xs="function"==typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Ec(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){Ec(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&tl(t,n,a)}o=o.next}while(o!==r)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[mo],delete t[ho],delete t[bo],delete t[yo])),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 sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,pl=!1;function fl(e,t,n){for(n=n.child;null!==n;)ml(e,t,n),n=n.sibling}function ml(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Zs||el(n,t);case 6:var r=dl,o=pl;dl=null,fl(e,t,n),pl=o,null!==(dl=r)&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ut(e)):lo(dl,n.stateNode));break;case 4:r=dl,o=pl,dl=n.stateNode.containerInfo,pl=!0,fl(e,t,n),dl=r,pl=o;break;case 0:case 11:case 14:case 15:if(!Zs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&tl(n,t,i),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Zs&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ec(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Zs=(r=Zs)||null!==n.memoizedState,fl(e,t,n),Zs=r):fl(e,t,n);break;default:fl(e,t,n)}}function gl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Pc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,pl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===dl)throw Error(a(160));ml(i,s,o),dl=null,pl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Ec(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bl(t,e),t=t.sibling}function bl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hl(t,e),yl(e),4&r){try{rl(3,e,e.return),ol(3,e)}catch(h){Ec(e,e.return,h)}try{rl(5,e,e.return)}catch(h){Ec(e,e.return,h)}}break;case 1:hl(t,e),yl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(hl(t,e),yl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(h){Ec(e,e.return,h)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&Z(o,i),ve(l,s);var u=ve(l,i);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?he(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):v(o,d,p,u)}switch(l){case"input":X(o,i);break;case"textarea":ae(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?ne(o,!!i.multiple,m,!1):f!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[mo]=i}catch(h){Ec(e,e.return,h)}}break;case 6:if(hl(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(h){Ec(e,e.return,h)}}break;case 3:if(hl(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(h){Ec(e,e.return,h)}break;case 4:default:hl(t,e),yl(e);break;case 13:hl(t,e),yl(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Ul=Ze())),4&r&&gl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Zs=(u=Zs)||d,hl(t,e),Zs=u):hl(t,e),yl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(p=Js=d;null!==Js;){switch(m=(f=Js).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:el(f,f.return);var g=f.stateNode;if("function"==typeof g.componentWillUnmount){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(h){Ec(r,n,h)}}break;case 5:el(f,f.return);break;case 22:if(null!==f.memoizedState){xl(p);continue}}null!==m?(m.return=f,Js=m):xl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",s))}catch(h){Ec(e,e.return,h)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(h){Ec(e,e.return,h)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:hl(t,e),yl(e),4&r&&gl(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),ul(e,ll(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;cl(e,ll(e),i);break;default:throw Error(a(161))}}catch(s){Ec(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Js=e,wl(e,t,n)}function wl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var o=Js,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Ys;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Zs;s=Ys;var c=Zs;if(Ys=i,(Zs=l)&&!c)for(Js=o;null!==Js;)l=(i=Js).child,22===i.tag&&null!==i.memoizedState?Sl(o):null!==l?(l.return=i,Js=l):Sl(o);for(;null!==a;)Js=a,wl(a,t,n),a=a.sibling;Js=o,Ys=s,Zs=c}kl(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Js=a):kl(e)}}function kl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Zs||ol(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Zs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ba(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&za(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}za(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ut(p)}}}break;default:throw Error(a(163))}Zs||512&t.flags&&al(t)}catch(f){Ec(t,t.return,f)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(l){Ec(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Ec(t,o,l)}}var a=t.return;try{al(t)}catch(l){Ec(t,a,l)}break;case 5:var i=t.return;try{al(t)}catch(l){Ec(t,i,l)}}}catch(l){Ec(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var _l,El=Math.ceil,Cl=w.ReactCurrentDispatcher,Tl=w.ReactCurrentOwner,Al=w.ReactCurrentBatchConfig,Pl=0,jl=null,Ll=null,Rl=0,Nl=0,Ol=Eo(0),Dl=0,Ml=null,Il=0,Fl=0,zl=0,Bl=null,$l=null,Ul=0,ql=1/0,Gl=null,Hl=!1,Wl=null,Vl=null,Kl=!1,Ql=null,Yl=0,Zl=0,Xl=null,Jl=-1,ec=0;function tc(){return 6&Pl?Ze():-1!==Jl?Jl:Jl=Ze()}function nc(e){return 1&e.mode?2&Pl&&0!==Rl?Rl&-Rl:null!==ha.transition?(0===ec&&(ec=gt()),ec):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function rc(e,t,n,r){if(50<Zl)throw Zl=0,Xl=null,Error(a(185));bt(e,n,r),2&Pl&&e===jl||(e===jl&&(!(2&Pl)&&(Fl|=n),4===Dl&&lc(e,Rl)),oc(e,r),1===n&&0===Pl&&!(1&t.mode)&&(ql=Ze()+500,Bo&&qo()))}function oc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),s=1<<i,l=o[i];-1===l?s&n&&!(s&r)||(o[i]=ft(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=pt(e,e===jl?Rl:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Bo=!0,Uo(e)}(cc.bind(null,e)):Uo(cc.bind(null,e)),io((function(){!(6&Pl)&&qo()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=jc(n,ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ac(e,t){if(Jl=-1,ec=0,6&Pl)throw Error(a(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pt(e,e===jl?Rl:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=bc(e,r);else{t=r;var o=Pl;Pl|=2;var i=gc();for(jl===e&&Rl===t||(Gl=null,ql=Ze()+500,fc(e,t));;)try{vc();break}catch(l){mc(e,l)}xa(),Cl.current=i,Pl=o,null!==Ll?t=0:(jl=null,Rl=0,t=Dl)}if(0!==t){if(2===t&&(0!==(o=mt(e))&&(r=o,t=ic(e,o))),1===t)throw n=Ml,fc(e,0),lc(e,r),oc(e,Ze()),n;if(6===t)lc(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!sr(a(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=bc(e,r),2===t&&(i=mt(e),0!==i&&(r=i,t=ic(e,i))),1!==t)))throw n=Ml,fc(e,0),lc(e,r),oc(e,Ze()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:xc(e,$l,Gl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=Ul+500-Ze())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xc.bind(null,e,$l,Gl),t);break}xc(e,$l,Gl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-it(r);i=1<<s,(s=t[s])>o&&(o=s),r&=~i}if(r=o,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,$l,Gl),r);break}xc(e,$l,Gl);break;default:throw Error(a(329))}}}return oc(e,Ze()),e.callbackNode===n?ac.bind(null,e):null}function ic(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=bc(e,t))&&(t=$l,$l=n,null!==t&&sc(t)),e}function sc(e){null===$l?$l=e:$l.push.apply($l,e)}function lc(e,t){for(t&=~zl,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(6&Pl)throw Error(a(327));Sc();var t=pt(e,0);if(!(1&t))return oc(e,Ze()),null;var n=bc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Ml,fc(e,0),lc(e,t),oc(e,Ze()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,$l,Gl),oc(e,Ze()),null}function uc(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(ql=Ze()+500,Bo&&qo())}}function dc(e){null!==Ql&&0===Ql.tag&&!(6&Pl)&&Sc();var t=Pl;Pl|=1;var n=Al.transition,r=vt;try{if(Al.transition=null,vt=1,e)return e()}finally{vt=r,Al.transition=n,!(6&(Pl=t))&&qo()}}function pc(){Nl=Ol.current,Co(Ol)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ll)for(n=Ll.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Oo();break;case 3:ai(),Co(jo),Co(Po),di();break;case 5:si(r);break;case 4:ai();break;case 13:case 19:Co(li);break;case 10:Sa(r.type._context);break;case 22:case 23:pc()}n=n.return}if(jl=e,Ll=e=Oc(e.current,null),Rl=Nl=t,Dl=0,Ml=null,zl=Fl=Il=0,$l=Bl=null,null!==Ta){for(t=0;t<Ta.length;t++)if(null!==(r=(n=Ta[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Ta=null}return e}function mc(e,t){for(;;){var n=Ll;try{if(xa(),pi.current=is,yi){for(var r=gi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}yi=!1}if(mi=0,bi=hi=gi=null,vi=!1,wi=0,Tl.current=null,null===n||null===n.return){Dl=1,Ml=t,Ll=null;break}e:{var i=e,s=n.return,l=n,c=t;if(t=Rl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=bs(s);if(null!==m){m.flags&=-257,ys(m,s,l,0,t),1&m.mode&&hs(i,u,t),c=u;var g=(t=m).updateQueue;if(null===g){var h=new Set;h.add(c),t.updateQueue=h}else g.add(c);break e}if(!(1&t)){hs(i,u,t),hc();break e}c=Error(a(426))}else if(aa&&1&l.mode){var b=bs(s);if(null!==b){!(65536&b.flags)&&(b.flags|=256),ys(b,s,l,0,t),ga(us(c,l));break e}}i=c=us(c,l),4!==Dl&&(Dl=2),null===Bl?Bl=[i]:Bl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ia(i,ms(0,c,t));break e;case 1:l=c;var y=i.type,v=i.stateNode;if(!(128&i.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Vl&&Vl.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,Ia(i,gs(i,l,t));break e}}i=i.return}while(null!==i)}kc(n)}catch(w){t=w,Ll===n&&null!==n&&(Ll=n=n.return);continue}break}}function gc(){var e=Cl.current;return Cl.current=is,null===e?is:e}function hc(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===jl||!(268435455&Il)&&!(268435455&Fl)||lc(jl,Rl)}function bc(e,t){var n=Pl;Pl|=2;var r=gc();for(jl===e&&Rl===t||(Gl=null,fc(e,t));;)try{yc();break}catch(o){mc(e,o)}if(xa(),Pl=n,Cl.current=r,null!==Ll)throw Error(a(261));return jl=null,Rl=0,Dl}function yc(){for(;null!==Ll;)wc(Ll)}function vc(){for(;null!==Ll&&!Qe();)wc(Ll)}function wc(e){var t=_l(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?kc(e):Ll=t,Tl.current=null}function kc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Qs(n,t)))return n.flags&=32767,void(Ll=n);if(null===e)return Dl=6,void(Ll=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ks(n,t,Nl)))return void(Ll=n);if(null!==(t=t.sibling))return void(Ll=t);Ll=t=e}while(null!==t);0===Dl&&(Dl=5)}function xc(e,t,n){var r=vt,o=Al.transition;try{Al.transition=null,vt=1,function(e,t,n,r){do{Sc()}while(null!==Ql);if(6&Pl)throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===jl&&(Ll=jl=null,Rl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Kl||(Kl=!0,jc(tt,(function(){return Sc(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=Al.transition,Al.transition=null;var s=vt;vt=1;var l=Pl;Pl|=4,Tl.current=null,function(e,t){if(eo=Gt,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(k){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var m;p!==n||0!==o&&3!==p.nodeType||(l=s+o),p!==i||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(m=p.firstChild);)f=p,p=m;for(;;){if(p===e)break t;if(f===n&&++u===o&&(l=s),f===i&&++d===r&&(c=s),null!==(m=p.nextSibling))break;f=(p=f).parentNode}p=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Gt=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var g=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var h=g.memoizedProps,b=g.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?h:ba(t.type,h),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(k){Ec(t,t.return,k)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}g=nl,nl=!1}(e,n),bl(n,e),mr(to),Gt=!!eo,to=eo=null,e.current=n,vl(n,e,o),Ye(),Pl=l,vt=s,Al.transition=i}else e.current=n;if(Kl&&(Kl=!1,Ql=e,Yl=o),i=e.pendingLanes,0===i&&(Vl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(t){}}(n.stateNode),oc(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=Wl,Wl=null,e;!!(1&Yl)&&0!==e.tag&&Sc(),i=e.pendingLanes,1&i?e===Xl?Zl++:(Zl=0,Xl=e):Zl=0,qo()}(e,t,n,r)}finally{Al.transition=o,vt=r}return null}function Sc(){if(null!==Ql){var e=wt(Yl),t=Al.transition,n=vt;try{if(Al.transition=null,vt=16>e?16:e,null===Ql)var r=!1;else{if(e=Ql,Ql=null,Yl=0,6&Pl)throw Error(a(331));var o=Pl;for(Pl|=4,Js=e.current;null!==Js;){var i=Js,s=i.child;if(16&Js.flags){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,i)}var p=d.child;if(null!==p)p.return=d,Js=p;else for(;null!==Js;){var f=(d=Js).sibling,m=d.return;if(il(d),d===u){Js=null;break}if(null!==f){f.return=m,Js=f;break}Js=m}}}var g=i.alternate;if(null!==g){var h=g.child;if(null!==h){g.child=null;do{var b=h.sibling;h.sibling=null,h=b}while(null!==h)}}Js=i}}if(2064&i.subtreeFlags&&null!==s)s.return=i,Js=s;else e:for(;null!==Js;){if(2048&(i=Js).flags)switch(i.tag){case 0:case 11:case 15:rl(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Js=y;break e}Js=i.return}}var v=e.current;for(Js=v;null!==Js;){var w=(s=Js).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Js=w;else e:for(s=v;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(x){Ec(l,l.return,x)}if(l===s){Js=null;break e}var k=l.sibling;if(null!==k){k.return=l.return,Js=k;break e}Js=l.return}}if(Pl=o,qo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(x){}r=!0}return r}finally{vt=n,Al.transition=t}}return!1}function _c(e,t,n){e=Da(e,t=ms(0,t=us(n,t),1),1),t=tc(),null!==e&&(bt(e,1,t),oc(e,t))}function Ec(e,t,n){if(3===e.tag)_c(e,e,n);else for(;null!==t;){if(3===t.tag){_c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Da(t,e=gs(t,e=us(n,e),1),1),e=tc(),null!==t&&(bt(t,1,e),oc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,jl===e&&(Rl&n)===n&&(4===Dl||3===Dl&&(130023424&Rl)===Rl&&500>Ze()-Ul?fc(e,0):zl|=n),oc(e,t)}function Tc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=tc();null!==(e=ja(e,t))&&(bt(e,t,n),oc(e,n))}function Ac(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Pc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Tc(e,n)}function jc(e,t){return Ve(e,t)}function Lc(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rc(e,t,n,r){return new Lc(e,t,n,r)}function Nc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Oc(e,t){var n=e.alternate;return null===n?((n=Rc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Nc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Mc(n.children,o,i,t);case _:s=8,o|=8;break;case E:return(e=Rc(12,n,t,2|o)).elementType=E,e.lanes=i,e;case P:return(e=Rc(13,n,t,o)).elementType=P,e.lanes=i,e;case j:return(e=Rc(19,n,t,o)).elementType=j,e.lanes=i,e;case N:return Ic(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case T:s=9;break e;case A:s=11;break e;case L:s=14;break e;case R:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Rc(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Mc(e,t,n,r){return(e=Rc(7,e,r,t)).lanes=n,e}function Ic(e,t,n,r){return(e=Rc(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function Fc(e,t,n){return(e=Rc(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Rc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,o){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=ht(0),this.expirationTimes=ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function $c(e,t,n,r,o,a,i,s,l){return e=new Bc(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Rc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ra(a),e}function Uc(e){if(!e)return Ao;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(No(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(No(n))return Mo(e,n,t)}return t}function qc(e,t,n,r,o,a,i,s,l){return(e=$c(n,r,!0,e,0,a,0,s,l)).context=Uc(null),n=e.current,(a=Oa(r=tc(),o=nc(n))).callback=null!=t?t:null,Da(n,a,o),e.current.lanes=o,bt(e,o,r),oc(e,r),e}function Gc(e,t,n,r){var o=t.current,a=tc(),i=nc(o);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Oa(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Da(o,t,i))&&(rc(e,o,i,a),Ma(e,o,i)),i}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Wc(e,t),(e=e.alternate)&&Wc(e,t)}_l=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||jo.current)ws=!0;else{if(!(e.lanes&n||128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:js(t),ma();break;case 5:ii(t);break;case 1:No(t.type)&&Io(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(ya,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(li,1&li.current),t.flags|=128,null):n&t.child.childLanes?Fs(e,t,n):(To(li,1&li.current),null!==(e=Hs(e,t,n))?e.sibling:null);To(li,1&li.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return qs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(li,li.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Hs(e,t,n)}(e,t,n);ws=!!(131072&e.flags)}else ws=!1,aa&&1048576&t.flags&&ea(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gs(e,t),e=t.pendingProps;var o=Ro(t,Po.current);Ea(t,n),o=_i(null,t,r,e,o,n);var i=Ei();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,No(r)?(i=!0,Io(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ra(t),o.updater=Ua,t.stateNode=o,o._reactInternals=t,Wa(t,r,e,n),t=Ps(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),ks(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Nc(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===L)return 14}return 2}(r),e=ba(r,e),o){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,ba(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ts(e,t,r,o=t.elementType===r?o:ba(r,o),n);case 1:return r=t.type,o=t.pendingProps,As(e,t,r,o=t.elementType===r?o:ba(r,o),n);case 3:e:{if(js(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,Na(e,t),Fa(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ls(e,t,r,n,o=us(Error(a(423)),t));break e}if(r!==o){t=Ls(e,t,r,n,o=us(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=Xa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ma(),r===o){t=Hs(e,t,n);break e}ks(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&ua(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==i&&no(r,i)&&(t.flags|=32),Cs(e,t),ks(e,t,s,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Fs(e,t,n);case 4:return oi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Za(t,null,r,n):ks(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:ba(r,o),n);case 7:return ks(e,t,t.pendingProps,n),t.child;case 8:case 12:return ks(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,To(ya,r._currentValue),r._currentValue=s,null!==i)if(sr(i.value,s)){if(i.children===o.children&&!jo.current){t=Hs(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=Oa(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),_a(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),_a(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ks(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ea(t,n),r=r(o=Ca(o)),t.flags|=1,ks(e,t,r,n),t.child;case 14:return o=ba(r=t.type,t.pendingProps),Ss(e,t,r,o=ba(r.type,o),n);case 15:return _s(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ba(r,o),Gs(e,t),t.tag=1,No(r)?(e=!0,Io(t)):e=!1,Ea(t,n),Ga(t,r,o),Wa(t,r,o,n),Ps(null,t,r,!0,e,n);case 19:return qs(e,t,n);case 22:return Es(e,t,n)}throw Error(a(156,t.tag))};var Kc="function"==typeof reportError?reportError:function(e){console.error(e)};function Qc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function eu(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=Hc(i);s.call(e)}}Gc(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Hc(i);a.call(e)}}var i=qc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=i,e[go]=i.current,Ur(8===e.nodeType?e.parentNode:e),dc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=$c(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[go]=l.current,Ur(8===e.nodeType?e.parentNode:e),dc((function(){Gc(t,l,n,r)})),l}(n,t,e,o,r);return Hc(i)}Yc.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Gc(e,t,null,null)},Yc.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Gc(null,e,null,null)})),t[go]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&It(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),oc(t,Ze()),!(6&Pl)&&(ql=Ze()+500,qo()))}break;case 13:dc((function(){var t=ja(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Vc(e,1)}},xt=function(e){if(13===e.tag){var t=ja(e,134217728);if(null!==t)rc(t,e,134217728,tc());Vc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=ja(e,t);if(null!==n)rc(n,e,t,tc());Vc(e,t)}},_t=function(){return vt},Et=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},xe=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(a(90));V(r),X(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=uc,Pe=dc;var tu={usingClientEntryPoint:!1,Events:[wo,ko,xo,Ce,Te,uc]},nu={findFiberByHostInstance:vo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{ot=ou.inject(ru),at=ou}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Zc(e))throw Error(a(299));var n=!1,r="",o=Kc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=$c(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Ur(8===e.nodeType?e.parentNode:e),new Qc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(a(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Zc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",s=Kc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=qc(t,null,e,1,null!=n?n:null,o,0,i,s),e[go]=t.current,Ur(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Yc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(a(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(a(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},5338:(e,t,n)=>{"use strict";var r=n(961);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2551)},115:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(!a(e[l],i[l]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!a(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(e[l]!==i[l])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof i.toString)return e.toString()===i.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(i,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!a(e[c[l]],i[c[l]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},545:(e,t,n)=>{"use strict";n.d(t,{mg:()=>J,vd:()=>H});var r=n(6540),o=n(5556),a=n.n(o),i=n(115),s=n.n(i),l=n(311),c=n.n(l),u=n(2833),d=n.n(u);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var h={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},b={rel:["amphtml","canonical","alternate"]},y={type:["application/ld+json"]},v={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},w=Object.keys(h).map((function(e){return h[e]})),k={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},x=Object.keys(k).reduce((function(e,t){return e[k[t]]=t,e}),{}),S=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},_=function(e){var t=S(e,h.TITLE),n=S(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=S(e,"defaultTitle");return t||r||void 0},E=function(e){return S(e,"onChangeClientState")||function(){}},C=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return p({},e,t)}),{})},T=function(e,t){return t.filter((function(e){return void 0!==e[h.BASE]})).map((function(e){return e[h.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o+=1){var a=r[o].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},A=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n,a=Object.keys(e),i=0;i<a.length;i+=1){var s=a[i],l=s.toLowerCase();-1===t.indexOf(l)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][c]&&(o[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var a=Object.keys(o),i=0;i<a.length;i+=1){var s=a[i],l=p({},r[s],o[s]);r[s]=l}return e}),[]).reverse()},P=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},j=function(e){return Array.isArray(e)?e.join(""):e},L=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},R=function(e,t){var n;return p({},e,((n={})[t]=void 0,n))},N=[h.NOSCRIPT,h.SCRIPT,h.STYLE],O=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},D=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},M=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[k[n]||n]=e[n],t}),t)},I=function(e,t){return t.map((function(t,n){var o,a=((o={key:n})["data-rh"]=!0,o);return Object.keys(t).forEach((function(e){var n=k[e]||e;"innerHTML"===n||"cssText"===n?a.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:a[n]=t[e]})),r.createElement(e,a)}))},F=function(e,t,n){switch(e){case h.TITLE:return{toComponent:function(){return n=t.titleAttributes,(o={key:e=t.title})["data-rh"]=!0,a=M(n,o),[r.createElement(h.TITLE,a,e)];var e,n,o,a},toString:function(){return function(e,t,n,r){var o=D(n),a=j(t);return o?"<"+e+' data-rh="true" '+o+">"+O(a,r)+"</"+e+">":"<"+e+' data-rh="true">'+O(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return M(t)},toString:function(){return D(t)}};default:return{toComponent:function(){return I(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+O(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===N.indexOf(e);return t+"<"+e+' data-rh="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},z=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.noscriptTags,i=e.styleTags,s=e.title,l=void 0===s?"":s,c=e.titleAttributes,u=e.linkTags,d=e.metaTags,p=e.scriptTags,f={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var m=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,o=L(e.metaTags,v),a=L(t,b),i=L(n,y);return{priorityMethods:{toComponent:function(){return[].concat(I(h.META,o.priority),I(h.LINK,a.priority),I(h.SCRIPT,i.priority))},toString:function(){return F(h.META,o.priority,r)+" "+F(h.LINK,a.priority,r)+" "+F(h.SCRIPT,i.priority,r)}},metaTags:o.default,linkTags:a.default,scriptTags:i.default}}(e);f=m.priorityMethods,u=m.linkTags,d=m.metaTags,p=m.scriptTags}return{priority:f,base:F(h.BASE,t,r),bodyAttributes:F("bodyAttributes",n,r),htmlAttributes:F("htmlAttributes",o,r),link:F(h.LINK,u,r),meta:F(h.META,d,r),noscript:F(h.NOSCRIPT,a,r),script:F(h.SCRIPT,p,r),style:F(h.STYLE,i,r),title:F(h.TITLE,{title:l,titleAttributes:c},r)}},B=[],$=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?B:n.instances},add:function(e){(n.canUseDOM?B:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?B:n.instances).indexOf(e);(n.canUseDOM?B:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=z({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},U=r.createContext({}),q=a().shape({setHelmet:a().func,helmetInstances:a().shape({get:a().func,add:a().func,remove:a().func})}),G="undefined"!=typeof document,H=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new $(r.props.context,t.canUseDOM),r}return f(t,e),t.prototype.render=function(){return r.createElement(U.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);H.canUseDOM=G,H.propTypes={context:a().shape({helmet:a().shape()}),children:a().node.isRequired},H.defaultProps={context:{}},H.displayName="HelmetProvider";var W=function(e,t){var n,r=document.head||document.querySelector(h.HEAD),o=r.querySelectorAll(e+"[data-rh]"),a=[].slice.call(o),i=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&("innerHTML"===o?r.innerHTML=t.innerHTML:"cssText"===o?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(o,void 0===t[o]?"":t[o]));r.setAttribute("data-rh","true"),a.some((function(e,t){return n=t,r.isEqualNode(e)}))?a.splice(n,1):i.push(r)})),a.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:a,newTags:i}},V=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),s=0;s<i.length;s+=1){var l=i[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===o.indexOf(l)&&o.push(l);var u=a.indexOf(l);-1!==u&&a.splice(u,1)}for(var d=a.length-1;d>=0;d-=1)n.removeAttribute(a[d]);o.length===a.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==i.join(",")&&n.setAttribute("data-rh",i.join(","))}},K=function(e,t){var n=e.baseTag,r=e.htmlAttributes,o=e.linkTags,a=e.metaTags,i=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,d=e.titleAttributes;V(h.BODY,e.bodyAttributes),V(h.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=j(e)),V(h.TITLE,t)}(u,d);var p={baseTag:W(h.BASE,n),linkTags:W(h.LINK,o),metaTags:W(h.META,a),noscriptTags:W(h.NOSCRIPT,i),scriptTags:W(h.SCRIPT,l),styleTags:W(h.STYLE,c)},f={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(f[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),s(e,f,m)},Q=null,Y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!d()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,o=null,a=(e=n.helmetInstances.get().map((function(e){var t=p({},e.props);return delete t.context,t})),{baseTag:T(["href"],e),bodyAttributes:C("bodyAttributes",e),defer:S(e,"defer"),encode:S(e,"encodeSpecialCharacters"),htmlAttributes:C("htmlAttributes",e),linkTags:A(h.LINK,["rel","href"],e),metaTags:A(h.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:A(h.NOSCRIPT,["innerHTML"],e),onChangeClientState:E(e),scriptTags:A(h.SCRIPT,["src","innerHTML"],e),styleTags:A(h.STYLE,["cssText"],e),title:_(e),titleAttributes:C("titleAttributes",e),prioritizeSeoTags:P(e,"prioritizeSeoTags")});H.canUseDOM?(t=a,Q&&cancelAnimationFrame(Q),t.defer?Q=requestAnimationFrame((function(){K(t,(function(){Q=null}))})):(K(t),Q=null)):z&&(o=z(a)),r(o)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(r.Component);Y.propTypes={context:q.isRequired},Y.displayName="HelmetDispatcher";var Z=["children"],X=["children"],J=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!s()(R(this.props,"helmetData"),R(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case h.SCRIPT:case h.NOSCRIPT:return{innerHTML:t};case h.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return p({},r,((t={})[n.type]=[].concat(r[n.type]||[],[p({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case h.TITLE:return p({},o,((t={})[r.type]=i,t.titleAttributes=p({},a),t));case h.BODY:return p({},o,{bodyAttributes:p({},a)});case h.HTML:return p({},o,{htmlAttributes:p({},a)});default:return p({},o,((n={})[r.type]=p({},a),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=p({},t);return Object.keys(e).forEach((function(t){var r;n=p({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return c()(w.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+w.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),c()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,o={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,a=r.children,i=g(r,Z),s=Object.keys(i).reduce((function(e,t){return e[x[t]||t]=i[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,a),l){case h.FRAGMENT:t=n.mapChildrenToProps(a,t);break;case h.LINK:case h.META:case h.NOSCRIPT:case h.SCRIPT:case h.STYLE:o=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:o,newChildProps:s,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:a})}}})),this.mapArrayTypeChildrenToProps(o,t)},n.render=function(){var e=this.props,t=e.children,n=g(e,X),o=p({},n),a=n.helmetData;return t&&(o=this.mapChildrenToProps(t,o)),!a||a instanceof $||(a=new $(a.context,a.instances)),a?r.createElement(Y,p({},o,{context:a.value,helmetData:void 0})):r.createElement(U.Consumer,null,(function(e){return r.createElement(Y,p({},o,{context:e}))}))},t}(r.Component);J.propTypes={base:a().object,bodyAttributes:a().object,children:a().oneOfType([a().arrayOf(a().node),a().node]),defaultTitle:a().string,defer:a().bool,encodeSpecialCharacters:a().bool,htmlAttributes:a().object,link:a().arrayOf(a().object),meta:a().arrayOf(a().object),noscript:a().arrayOf(a().object),onChangeClientState:a().func,script:a().arrayOf(a().object),style:a().arrayOf(a().object),title:a().string,titleAttributes:a().object,titleTemplate:a().string,prioritizeSeoTags:a().bool,helmetData:a().object},J.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},J.displayName="Helmet"},2799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case h:case g:case l:return e;default:return t}}case o:return t}}}function x(e){return k(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||k(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===h},t.isMemo=function(e){return k(e)===g},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===i},t.isSuspense=function(e){return k(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===v||e.$$typeof===w||e.$$typeof===b)},t.typeOf=k},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},3259:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var s=n(6540),l=[],c=[];var u=s.createContext(null);function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function p(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var o=d(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function f(e,t){return s.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function m(e,t){var d,p;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var m=i({loader:null,loading:null,delay:200,timeout:null,render:f,webpack:null,modules:null},t),g=null;function h(){return g||(g=e(m.loader)),g.promise}return l.push(h),"function"==typeof m.webpack&&c.push((function(){if((0,m.webpack)().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return h()})),p=d=function(t){function n(n){var r;return a(o(o(r=t.call(this,n)||this)),"retry",(function(){r.setState({error:null,loading:!0,timedOut:!1}),g=e(m.loader),r._loadModule()})),h(),r.state={error:g.error,pastDelay:!1,timedOut:!1,loading:g.loading,loaded:g.loaded},r}r(n,t),n.preload=function(){return h()};var i=n.prototype;return i.UNSAFE_componentWillMount=function(){this._loadModule()},i.componentDidMount=function(){this._mounted=!0},i._loadModule=function(){var e=this;if(this.context&&Array.isArray(m.modules)&&m.modules.forEach((function(t){e.context.report(t)})),g.loading){var t=function(t){e._mounted&&e.setState(t)};"number"==typeof m.delay&&(0===m.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){t({pastDelay:!0})}),m.delay)),"number"==typeof m.timeout&&(this._timeout=setTimeout((function(){t({timedOut:!0})}),m.timeout));var n=function(){t({error:g.error,loaded:g.loaded,loading:g.loading}),e._clearTimeouts()};g.promise.then((function(){return n(),null})).catch((function(e){return n(),null}))}},i.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},i._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},i.render=function(){return this.state.loading||this.state.error?s.createElement(m.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?m.render(this.state.loaded,this.props):null},n}(s.Component),a(d,"contextType",u),p}function g(e){return m(d,e)}g.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return m(p,e)};var h=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return s.createElement(u.Provider,{value:{report:this.props.report}},s.Children.only(this.props.children))},t}(s.Component);function b(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return b(e)}))}g.Capture=h,g.preloadAll=function(){return new Promise((function(e,t){b(l).then(e,t)}))},g.preloadReady=function(){return new Promise((function(e,t){b(c).then(e,e)}))},e.exports=g},2831:(e,t,n)=>{"use strict";n.d(t,{u:()=>i,v:()=>s});var r=n(6347),o=n(8168),a=n(6540);function i(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var o=e.path?(0,r.B6)(t,e):n.length?n[n.length-1].match:r.Ix.computeRootMatch(t);return o&&(n.push({route:e,match:o}),e.routes&&i(e.routes,t,n)),o})),n}function s(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?a.createElement(r.dO,n,e.map((function(e,n){return a.createElement(r.qh,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render((0,o.A)({},n,{},t,{route:e})):a.createElement(e.component,(0,o.A)({},n,t,{route:e}))}})}))):null}},4625:(e,t,n)=>{"use strict";n.d(t,{Kd:()=>u,N_:()=>h,k2:()=>v});var r=n(6347),o=n(2892),a=n(6540),i=n(1513),s=n(8168),l=n(8587),c=n(1561),u=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,i.zR)(t.props),t}return(0,o.A)(t,e),t.prototype.render=function(){return a.createElement(r.Ix,{history:this.history,children:this.props.children})},t}(a.Component);a.Component;var d=function(e,t){return"function"==typeof e?e(t):e},p=function(e,t){return"string"==typeof e?(0,i.yJ)(e,null,null,t):e},f=function(e){return e},m=a.forwardRef;void 0===m&&(m=f);var g=m((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=(0,l.A)(e,["innerRef","navigate","onClick"]),c=i.target,u=(0,s.A)({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==m&&t||n,a.createElement("a",u)}));var h=m((function(e,t){var n=e.component,o=void 0===n?g:n,u=e.replace,h=e.to,b=e.innerRef,y=(0,l.A)(e,["component","replace","to","innerRef"]);return a.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=e.history,r=p(d(h,e.location),e.location),l=r?n.createHref(r):"",g=(0,s.A)({},y,{href:l,navigate:function(){var t=d(h,e.location),r=(0,i.AO)(e.location)===(0,i.AO)(p(t));(u||r?n.replace:n.push)(t)}});return f!==m?g.ref=t||b:g.innerRef=b,a.createElement(o,g)}))})),b=function(e){return e},y=a.forwardRef;void 0===y&&(y=b);var v=y((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,i=e.activeClassName,u=void 0===i?"active":i,f=e.activeStyle,m=e.className,g=e.exact,v=e.isActive,w=e.location,k=e.sensitive,x=e.strict,S=e.style,_=e.to,E=e.innerRef,C=(0,l.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=w||e.location,i=p(d(_,n),n),l=i.pathname,T=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),A=T?(0,r.B6)(n.pathname,{path:T,exact:g,sensitive:k,strict:x}):null,P=!!(v?v(A,n):A),j="function"==typeof m?m(P):m,L="function"==typeof S?S(P):S;P&&(j=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(j,u),L=(0,s.A)({},L,f));var R=(0,s.A)({"aria-current":P&&o||null,className:j,style:L,to:i},C);return b!==y?R.ref=t||E:R.innerRef=E,a.createElement(h,R)}))}))},6347:(e,t,n)=>{"use strict";n.d(t,{B6:()=>S,Ix:()=>v,W6:()=>R,XZ:()=>y,dO:()=>j,qh:()=>_,zy:()=>N});var r=n(2892),o=n(6540),a=n(5556),i=n.n(a),s=n(1513),l=n(1561),c=n(8168),u=n(5302),d=n.n(u),p=(n(4363),n(8587)),f=(n(4146),1073741823),m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};var g=o.createContext||function(e,t){var n,a,s="__create-react-context-"+function(){var e="__global_unique_id__";return m[e]=(m[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n,r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(t=e.call.apply(e,[this].concat(a))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.A)(n,e);var o=n.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((a=r)===(i=o)?0!==a||1/a==1/i:a!=a&&i!=i)?n=0:(n="function"==typeof t?t(r,o):f,0!==(n|=0)&&this.emitter.set(e.value,n))}var a,i},o.render=function(){return this.props.children},n}(o.Component);l.childContextTypes=((n={})[s]=i().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){(0|e.observedBits)&n&&e.setState({value:e.getValue()})},e}(0,r.A)(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?f:t},o.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?f:e},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return c.contextTypes=((a={})[s]=i().object,a),{Provider:l,Consumer:c}},h=function(e){var t=g();return t.displayName=e,t},b=h("Router-History"),y=h("Router"),v=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.A)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.createElement(b.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.Component);o.Component;o.Component;var w={},k=1e4,x=0;function S(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,a=void 0!==o&&o,i=n.strict,s=void 0!==i&&i,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=w[n]||(w[n]={});if(r[e])return r[e];var o=[],a={regexp:d()(e,o,t),keys:o};return x<k&&(r[e]=a,x++),a}(n,{end:a,strict:s,sensitive:c}),o=r.regexp,i=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],p=l.slice(1),f=e===u;return a&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:i.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var _=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return o.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?S(n.pathname,e.props):t.match,a=(0,c.A)({},t,{location:n,match:r}),i=e.props,s=i.children,u=i.component,d=i.render;return Array.isArray(s)&&function(e){return 0===o.Children.count(e)}(s)&&(s=null),o.createElement(y.Provider,{value:a},a.match?s?"function"==typeof s?s(a):s:u?o.createElement(u,a):d?d(a):null:"function"==typeof s?s(a):null)}))},t}(o.Component);function E(e){return"/"===e.charAt(0)?e:"/"+e}function C(e,t){if(!e)return t;var n=E(e);return 0!==t.pathname.indexOf(n)?t:(0,c.A)({},t,{pathname:t.pathname.substr(n.length)})}function T(e){return"string"==typeof e?e:(0,s.AO)(e)}function A(e){return function(){(0,l.A)(!1)}}function P(){}o.Component;var j=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return o.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n,r,a=e.props.location||t.location;return o.Children.forEach(e.props.children,(function(e){if(null==r&&o.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?S(a.pathname,(0,c.A)({},e.props,{path:i})):t.match}})),r?o.cloneElement(n,{location:a,computedMatch:r}):null}))},t}(o.Component);var L=o.useContext;function R(){return L(b)}function N(){return L(y).location}},1020:(e,t,n)=>{"use strict";var r=n(6540),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},5287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,h={};function b(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var w=v.prototype=new y;w.constructor=v,g(w,b.prototype),w.isPureReactComponent=!0;var k=Array.isArray,x=Object.prototype.hasOwnProperty,S={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,a={},i=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)x.call(t,o)&&!_.hasOwnProperty(o)&&(a[o]=t[o]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===a[o]&&(a[o]=l[o]);return{$$typeof:n,type:e,key:i,ref:s,props:a,_owner:S.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,o,a,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return i=i(l=e),e=""===a?"."+A(l,0):a,k(i)?(o="",null!=e&&(o=e.replace(T,"$&/")+"/"),P(i,t,o,"",(function(e){return e}))):null!=i&&(C(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(T,"$&/")+"/")+e)),t.push(i)),1;if(l=0,a=""===a?".":a+":",k(e))for(var c=0;c<e.length;c++){var u=a+A(s=e[c],c);l+=P(s,t,o,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=P(s=s.value,t,o,u=a+A(s,c++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function j(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},N={transition:null},O={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:N,ReactCurrentOwner:S};t.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=i,t.PureComponent=v,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.call(t,c)&&!_.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.2.0"},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>a(l,n))c<o&&0>a(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,f=3,m=!1,g=!1,h=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function k(e){if(h=!1,w(e),!g)if(null!==r(c))g=!0,N(x);else{var t=r(u);null!==t&&O(k,t.startTime-e)}}function x(e,n){g=!1,h&&(h=!1,y(C),C=-1),m=!0;var a=f;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!P());){var i=p.callback;if("function"==typeof i){p.callback=null,f=p.priorityLevel;var s=i(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&o(c),w(n)}else o(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&O(k,d.startTime-n),l=!1}return l}finally{p=null,f=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,_=!1,E=null,C=-1,T=5,A=-1;function P(){return!(t.unstable_now()-A<T)}function j(){if(null!==E){var e=t.unstable_now();A=e;var n=!0;try{n=E(!0,e)}finally{n?S():(_=!1,E=null)}}else _=!1}if("function"==typeof v)S=function(){v(j)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,R=L.port2;L.port1.onmessage=j,S=function(){R.postMessage(null)}}else S=function(){b(j,0)};function N(e){E=e,_||(_=!0,S())}function O(e,n){C=b((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||m||(g=!0,N(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(h?(y(C),C=-1):h=!0,O(k,a-i))):(e.sortIndex=s,n(c,e),g||m||(g=!0,N(x))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)},2833:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<a.length;l++){var c=a[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},4784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={title:"bpd",tagline:"DSC 10 \u2764\ufe0f bpd",favicon:"img/favicon.ico",url:"https://dsc-courses.github.io",baseUrl:"/bpd-reference/",organizationName:"dsc-courses",projectName:"bpd-reference",onBrokenLinks:"throw",onBrokenMarkdownLinks:"warn",themes:["@docusaurus/theme-live-codeblock"],i18n:{defaultLocale:"en",locales:["en"],path:"i18n",localeConfigs:{}},presets:[["classic",{docs:{sidebarPath:"./sidebars.js",remarkPlugins:[null],rehypePlugins:[null],editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/"},theme:{customCss:"./src/css/custom.css"}}]],stylesheets:[{href:"/bpd-reference/katex/katex.min.css",type:"text/css"}],themeConfig:{navbar:{title:"bpd",logo:{alt:"bpd Logo",src:"img/logo.svg",srcDark:"img/logo_dark.svg"},items:[{type:"docSidebar",sidebarId:"docsSidebar",position:"left",label:"Documentation"},{type:"docSidebar",sidebarId:"statsSidebar",position:"left",label:"Statistical Inference"},{href:"https://github.com/dsc-courses/bpd-reference",className:"header-github-link",position:"right","aria-label":"GitHub repository"}],hideOnScroll:!1},footer:{style:"dark",links:[{title:"Docs",items:[{label:"Documentation",to:"/docs/documentation/intro"}]},{title:"Course Links",items:[{label:"Course Site",href:"https://dsc10.com/"},{label:"Practice",href:"https://practice.dsc10.com/"},{label:"Edstem",href:"https://edstem.org/us/courses/57461/discussion/"},{label:"Gradescope",href:"https://www.gradescope.com/courses/757097"}]},{title:"More",items:[{label:"GitHub",href:"https://github.com/m1nce/bpd-reference?tab=readme-ov-file"}]}],copyright:"Copyright \xa9 2024 DSC 10 @ UCSD Built with Docusaurus."},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},additionalLanguages:[],magicComments:[{className:"theme-code-block-highlighted-line",line:"highlight-next-line",block:{start:"highlight-start",end:"highlight-end"}}]},algolia:{appId:"D5X89Z2PC8",apiKey:"9ce1f7604f9470a252bde8c5007df95c",indexName:"dsc-coursesio",contextualSearch:!0,searchParameters:{},searchPagePath:"search"},colorMode:{defaultMode:"light",disableSwitch:!1,respectPrefersColorScheme:!0},docs:{versionPersistence:"localStorage",sidebar:{hideable:!1,autoCollapseCategories:!1}},metadata:[],tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3},liveCodeBlock:{playgroundPosition:"bottom"}},baseUrlIssueBanner:!0,onBrokenAnchors:"warn",onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},plugins:[],scripts:[],headTags:[],clientModules:[],titleDelimiter:"|",noIndex:!1,markdown:{format:"mdx",mermaid:!1,mdx1Compat:{comments:!0,admonitions:!0,headingIds:!0},anchors:{maintainCase:!1}}}},8168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},2892:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>o})},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},4164:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},1765:(e,t,n)=>{"use strict";n.d(t,{My:()=>T,Zj:()=>A,f4:()=>te});var r,o,a,i,s,l,c,u=n(6540),d=n(4164),p=Object.create,f=Object.defineProperty,m=Object.defineProperties,g=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,v=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,x=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||(t={}))w.call(t,n)&&x(e,n,t[n]);if(y)for(var n of y(t))k.call(t,n)&&x(e,n,t[n]);return e},_=(e,t)=>m(e,h(t)),E=(e,t)=>{var n={};for(var r in e)w.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&y)for(var r of y(e))t.indexOf(r)<0&&k.call(e,r)&&(n[r]=e[r]);return n},C=(r={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,a;switch(n=n||{},r.util.type(t)){case"Object":if(a=r.util.objId(t),n[a])return n[a];for(var i in o={},n[a]=o,t)t.hasOwnProperty(i)&&(o[i]=e(t[i],n));return o;case"Array":return a=r.util.objId(t),n[a]?n[a]:(o=[],n[a]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var a=(o=o||r.languages)[e],i={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(s)||(i[s]=a[s])}var c=o[e];return o[e]=i,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,o,a){a=a||{};var i=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var l=t[s],c=r.util.type(l);"Object"!==c||a[i(l)]?"Array"!==c||a[i(l)]||(a[i(l)]=!0,e(l,n,s,a)):(a[i(l)]=!0,e(l,n,null,a))}}},plugins:{},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),o.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),i(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,a=0;o=n[a++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var a=o[1].length;o.index+=a,o[0]=o[0].slice(a)}return o}function i(e,t,n,s,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var m=0;m<f.length;++m){if(d&&d.cause==p+","+m)return;var g=f[m],h=g.inside,b=!!g.lookbehind,y=!!g.greedy,v=g.alias;if(y&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var k=g.pattern||g,x=s.next,S=u;x!==t.tail&&!(d&&S>=d.reach);S+=x.value.length,x=x.next){var _=x.value;if(t.length>e.length)return;if(!(_ instanceof o)){var E,C=1;if(y){if(!(E=a(k,S,e,b))||E.index>=e.length)break;var T=E.index,A=E.index+E[0].length,P=S;for(P+=x.value.length;T>=P;)P+=(x=x.next).value.length;if(S=P-=x.value.length,x.value instanceof o)continue;for(var j=x;j!==t.tail&&(P<A||"string"==typeof j.value);j=j.next)C++,P+=j.value.length;C--,_=e.slice(S,P),E.index-=S}else if(!(E=a(k,0,_,b)))continue;T=E.index;var L=E[0],R=_.slice(0,T),N=_.slice(T+L.length),O=S+_.length;d&&O>d.reach&&(d.reach=O);var D=x.prev;if(R&&(D=l(t,D,R),S+=R.length),c(t,D,C),x=l(t,D,new o(p,h?r.tokenize(L,h):L,v,L)),N&&l(t,x,N),C>1){var M={cause:p+","+m,reach:O};i(e,t,n,x.prev,S,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var a={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(a.classes,i):a.classes.push(i)),r.hooks.run("wrap",a);var s="";for(var l in a.attributes)s+=" "+l+'="'+(a.attributes[l]||"").replace(/"/g,""")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+s+">"+a.content+"</"+a.tag+">"},r}();t.exports=n,n.default=n}},function(){return o||(0,r[b(r)[0]])((o={exports:{}}).exports,o),o.exports}),T=((e,t,n)=>(n=null!=e?p(v(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of b(t))w.call(e,o)||o===n||f(e,o,{get:()=>t[o],enumerable:!(r=g(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:f(n,"default",{value:e,enumerable:!0}),e)))(C());T.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},T.languages.markup.tag.inside["attr-value"].inside.entity=T.languages.markup.entity,T.languages.markup.doctype.inside["internal-subset"].inside=T.languages.markup,T.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(T.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:T.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:T.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},T.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(T.languages.markup.tag,"addAttribute",{value:function(e,t){T.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:T.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),T.languages.html=T.languages.markup,T.languages.mathml=T.languages.markup,T.languages.svg=T.languages.markup,T.languages.xml=T.languages.extend("markup",{}),T.languages.ssml=T.languages.xml,T.languages.atom=T.languages.xml,T.languages.rss=T.languages.xml,a=T,i={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},l="(?:[^\\\\-]|"+(s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")",l=RegExp(l+"-"+l),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},a.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":i,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:s}},"special-escape":i,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":c}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},T.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},T.languages.javascript=T.languages.extend("clike",{"class-name":[T.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),T.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,T.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:T.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:T.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:T.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:T.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:T.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),T.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:T.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),T.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),T.languages.markup&&(T.languages.markup.tag.addInlined("script","javascript"),T.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),T.languages.js=T.languages.javascript,T.languages.actionscript=T.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),T.languages.actionscript["class-name"].alias="function",delete T.languages.actionscript.parameter,delete T.languages.actionscript["literal-property"],T.languages.markup&&T.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:T.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(T),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(a=e.languages[t]){var a,i=a[o];if((i=i||(a=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(i=a[o]={pattern:i}),Array.isArray(i))for(var s=0,l=i.length;s<l;s++)i[s]instanceof RegExp&&(i[s]={pattern:i[s]}),r(i[s]);else r(i)}}))}}),t.addSupport(["java","javascript","php"],t)}(T),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(T),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(T),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(a),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(T),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,a=t[n];"code"!==a.type?e(a.content):(o=a.content[1],a=a.content[3],o&&a&&"code-language"===o.type&&"code-block"===a.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),a.alias?"string"==typeof a.alias?a.alias=[a.alias,o]:a.alias.push(o):a.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var a=t.classes[r];if(a=/language-(.+)/.exec(a)){n=a[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(T),T.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:T.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},T.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var a=p(/^\($/,/^\)$/);if(-1===a)continue;for(;n<a;n++){var i=u(0);"variable"===i.type&&(f(i,"variable-input"),o.push(i.content))}n=a+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,f(u(0),"property-mutation"),0<o.length)){var s=p(/^\{$/,/^\}$/);if(-1!==s)for(var l=n;l<s;l++){var c=t[l];"variable"===c.type&&0<=o.indexOf(c.content)&&f(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var o=1,a=n;a<t.length;a++){var i=t[a],s=i.content;if("punctuation"===i.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0==--o)return a}return-1}function f(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),T.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],a=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,i){var l=e.tokenize(t,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),c=0,u={},d=(l=s(l.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+i.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,i),Object.keys(u));return c=0,function t(n){for(var a=0;a<n.length;a++){if(c>=d.length)return;var i,l,p,f,m,g,h,b=n[a];"string"==typeof b||"string"==typeof b.content?(i=d[c],-1!==(h=(g="string"==typeof b?b:b.content).indexOf(i))&&(++c,l=g.substring(0,h),m=u[i],p=void 0,(f={})["interpolation-punctuation"]=o,3===(f=e.tokenize(m,f)).length&&((p=[1,1]).push.apply(p,s(f[1],e.languages.javascript,"javascript")),f.splice.apply(f,p)),p=new e.Token("interpolation",f,r.alias,m),f=g.substring(h+i.length),m=[],l&&m.push(l),m.push(p),f&&(t(g=[f]),m.push.apply(m,g)),"string"==typeof b?(n.splice.apply(n,[a,1].concat(m)),a+=m.length-1):b.content=m)):(h=b.content,Array.isArray(h)?t(h):t([h]))}}(l),new e.Token(i,l,"language-"+i,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,o=n.length;r<o;r++){var a,i,s,c=n[r];"string"!=typeof c&&(a=c.content,Array.isArray(a)?"template-string"===c.type?(c=a[1],3===a.length&&"string"!=typeof c&&"embedded-code"===c.type&&(i=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,s=e.languages[c])&&(a[1]=l(i,s,c))):t(a):"string"!=typeof a&&t([a]))}}(t.tokens)}))}(T),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(T),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(T),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(T),T.languages.n4js=T.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),T.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),T.languages.n4jsd=T.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],a=e.languages.javascript[o];o=(a="RegExp"===e.util.type(a)?e.languages.javascript[o]={pattern:a}:a).inside||{};(a.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(T),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function i(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],a=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:s(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:a=!0),(a||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(a=s(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(a+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(a=s(t[r-1])+a,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",a,null,a)),o.content&&"string"!=typeof o.content&&i(o.content)}}o=a(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||i(e.tokens)}))}(T),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(T),T.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},T.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=T.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(T),T.languages.c=T.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),T.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),T.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},T.languages.c.string],char:T.languages.c.char,comment:T.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:T.languages.c}}}}),T.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete T.languages.c.boolean,T.languages.objectivec=T.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete T.languages.objectivec["class-name"],T.languages.objc=T.languages.objectivec,T.languages.reason=T.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),T.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete T.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(T),T.languages.go=T.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),T.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete T.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(T),T.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},T.languages.python["string-interpolation"].inside.interpolation.inside.rest=T.languages.python,T.languages.py=T.languages.python;var A={};((e,t)=>{for(var n in t)f(e,n,{get:t[n],enumerable:!0})})(A,{dracula:()=>P,duotoneDark:()=>j,duotoneLight:()=>L,github:()=>R,jettwaveDark:()=>H,jettwaveLight:()=>W,nightOwl:()=>N,nightOwlLight:()=>O,oceanicNext:()=>I,okaidia:()=>F,oneDark:()=>V,oneLight:()=>K,palenight:()=>z,shadesOfPurple:()=>B,synthwave84:()=>$,ultramin:()=>U,vsDark:()=>q,vsLight:()=>G});var P={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},j={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},L={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},R={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},N={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},O={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},D="#c5a5c5",M="#8dc891",I={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:D}},{types:["attr-value"],style:{color:M}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:M}},{types:["punctuation"],style:{color:M}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:D}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},F={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},z={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},B={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},$={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},U={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},q={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},G={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},H={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},W={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},V={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},K={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},Q=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=S(S({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=_(S({},n),{backgroundColor:void 0}),r},Y=/\r\n|\r|\n/,Z=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},X=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},J=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let a=0,i=0,s=[];const l=[s];for(;i>-1;){for(;(a=r[i]++)<o[i];){let e,c=t[i];const u=n[i][a];if("string"==typeof u?(c=i>0?c:["plain"],e=u):(c=X(c,u.type),u.alias&&(c=X(c,u.alias)),e=u.content),"string"!=typeof e){i++,t.push(c),n.push(e),r.push(0),o.push(e.length);continue}const d=e.split(Y),p=d.length;s.push({types:c,content:d[0]});for(let t=1;t<p;t++)Z(s),l.push(s=[]),s.push({types:c,content:d[t]})}i--,t.pop(),n.pop(),r.pop(),o.pop()}return Z(s),l},ee=({children:e,language:t,code:n,theme:r,prism:o})=>{const a=t.toLowerCase(),i=((e,t)=>{const[n,r]=(0,u.useState)(Q(t,e)),o=(0,u.useRef)(),a=(0,u.useRef)();return(0,u.useEffect)((()=>{t===o.current&&e===a.current||(o.current=t,a.current=e,r(Q(t,e)))}),[e,t]),n})(a,r),s=(e=>(0,u.useCallback)((t=>{var n=t,{className:r,style:o,line:a}=n,i=E(n,["className","style","line"]);const s=_(S({},i),{className:(0,d.A)("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof o&&(s.style=S(S({},s.style||{}),o)),s}),[e]))(i),l=(e=>{const t=(0,u.useCallback)((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return(0,u.useCallback)((e=>{var n=e,{token:r,className:o,style:a}=n,i=E(n,["token","className","style"]);const s=_(S({},i),{className:(0,d.A)("token",...r.types,o),children:r.content,style:t(r)});return null!=a&&(s.style=S(S({},s.style||{}),a)),s}),[t])})(i),c=(({prism:e,code:t,grammar:n,language:r})=>{const o=(0,u.useRef)(e);return(0,u.useMemo)((()=>{if(null==n)return J([t]);const e={code:t,grammar:n,language:r,tokens:[]};return o.current.hooks.run("before-tokenize",e),e.tokens=o.current.tokenize(t,n),o.current.hooks.run("after-tokenize",e),J(e.tokens)}),[t,n,r])})({prism:o,language:a,code:n,grammar:o.languages[a]});return e({tokens:c,className:`prism-code language-${a}`,style:null!=i?i.root:{},getLineProps:s,getTokenProps:l})},te=e=>(0,u.createElement)(ee,_(S({},e),{prism:e.prism||T,theme:e.theme||q,code:e.code,language:e.language}))},1561:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=!0,o="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t,a=n?"".concat(o,": ").concat(n):o;throw new Error(a)}}},2654:e=>{"use strict";e.exports={}},4054:e=>{"use strict";e.exports=JSON.parse('{"/bpd-reference/blog-70d":{"__comp":"a6aa9e1f","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"7661071f"},{"content":"f4f34a3a"},{"content":"8717b14a"},{"content":"925b3f96"}],"__props":"83aa63f8"},"/bpd-reference/blog/archive-2ac":{"__comp":"9e4087bc","__context":{"plugin":"36994c47"},"__props":"d9ae1e76"},"/bpd-reference/blog/first-blog-post-99b":{"__comp":"ccc49370","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"sidebar":"814f3328","content":"e273c56f"},"/bpd-reference/blog/long-blog-post-521":{"__comp":"ccc49370","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"sidebar":"814f3328","content":"73664a40"},"/bpd-reference/blog/mdx-blog-post-7ea":{"__comp":"ccc49370","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"sidebar":"814f3328","content":"59362658"},"/bpd-reference/blog/tags-2ec":{"__comp":"01a85c17","__context":{"plugin":"36994c47"},"sidebar":"814f3328","__props":"abde3fc7"},"/bpd-reference/blog/tags/docusaurus-961":{"__comp":"6875c492","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"7661071f"},{"content":"f4f34a3a"},{"content":"8717b14a"},{"content":"925b3f96"}],"__props":"9a1a2feb"},"/bpd-reference/blog/tags/facebook-93a":{"__comp":"6875c492","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"7661071f"}],"__props":"ce5ff83d"},"/bpd-reference/blog/tags/hello-f98":{"__comp":"6875c492","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"7661071f"},{"content":"8717b14a"}],"__props":"ca8a4f49"},"/bpd-reference/blog/tags/hola-16f":{"__comp":"6875c492","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"925b3f96"}],"__props":"be5f280b"},"/bpd-reference/blog/welcome-3c3":{"__comp":"ccc49370","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"sidebar":"814f3328","content":"d9f32620"},"/bpd-reference/search-ec9":{"__comp":"1a4e3797","__context":{"plugin":"c141421f"}},"/bpd-reference/docs-017":{"__comp":"5e95c892","__context":{"plugin":"aba21aa0"}},"/bpd-reference/docs-171":{"__comp":"a7bd4aaa","__props":"1f418535"},"/bpd-reference/docs/tags-eb7":{"__comp":"3720c009","__props":"ffd9fdf4"},"/bpd-reference/docs/tags/bootstrapping-729":{"__comp":"df203c0f","__props":"b2bdf99d"},"/bpd-reference/docs/tags/chebyshevs-inequality-107":{"__comp":"df203c0f","__props":"cd67c8da"},"/bpd-reference/docs/tags/confidence-intervals-2bc":{"__comp":"df203c0f","__props":"a98da3ba"},"/bpd-reference/docs/tags/correlation-af5":{"__comp":"df203c0f","__props":"a5d86b03"},"/bpd-reference/docs/tags/for-loop-122":{"__comp":"df203c0f","__props":"79080f49"},"/bpd-reference/docs/tags/functions-364":{"__comp":"df203c0f","__props":"29759c23"},"/bpd-reference/docs/tags/histogram-75f":{"__comp":"df203c0f","__props":"541bd1cc"},"/bpd-reference/docs/tags/hypothesis-test-a61":{"__comp":"df203c0f","__props":"ac5712c7"},"/bpd-reference/docs/tags/normal-distributions-225":{"__comp":"df203c0f","__props":"0784c833"},"/bpd-reference/docs/tags/permutation-test-f4c":{"__comp":"df203c0f","__props":"d16c2311"},"/bpd-reference/docs/tags/querying-f82":{"__comp":"df203c0f","__props":"8b4ce11c"},"/bpd-reference/docs/tags/regression-bf9":{"__comp":"df203c0f","__props":"e6a51af0"},"/bpd-reference/docs/tags/standard-deviation-9dd":{"__comp":"df203c0f","__props":"80c4c602"},"/bpd-reference/docs/tags/standard-units-63b":{"__comp":"df203c0f","__props":"ce9b9f25"},"/bpd-reference/docs/tags/the-central-limit-theorem-df0":{"__comp":"df203c0f","__props":"807a8ce9"},"/bpd-reference/docs/tags/the-standard-normal-distribution-d13":{"__comp":"df203c0f","__props":"5ad2bf6e"},"/bpd-reference/docs-503":{"__comp":"a94703ab"},"/bpd-reference/docs/category/if-statements-84b":{"__comp":"14eb3368","__props":"8d72dfa8"},"/bpd-reference/docs/category/querying-ff8":{"__comp":"14eb3368","__props":"83b8ee67"},"/bpd-reference/docs/documentation/accessing-data/-764":{"__comp":"17896441","content":"e06ba05c"},"/bpd-reference/docs/documentation/accessing-data/df.columns-336":{"__comp":"17896441","content":"6e05dac9"},"/bpd-reference/docs/documentation/accessing-data/df.get()-8a5":{"__comp":"17896441","content":"0708938a"},"/bpd-reference/docs/documentation/accessing-data/df.index-92f":{"__comp":"17896441","content":"f9684ee2"},"/bpd-reference/docs/documentation/accessing-data/df.shape-16f":{"__comp":"17896441","content":"80770d40"},"/bpd-reference/docs/documentation/accessing-data/df.take()-c4a":{"__comp":"17896441","content":"a4805c9a"},"/bpd-reference/docs/documentation/accessing-data/ser.iloc[]-22f":{"__comp":"17896441","content":"6e7a31fd"},"/bpd-reference/docs/documentation/accessing-data/ser.loc[]-810":{"__comp":"17896441","content":"202baea0"},"/bpd-reference/docs/documentation/arrays-and-numpy/-3d6":{"__comp":"17896441","content":"8ded1294"},"/bpd-reference/docs/documentation/arrays-and-numpy/arr[]-82e":{"__comp":"17896441","content":"cdae2dcc"},"/bpd-reference/docs/documentation/arrays-and-numpy/np.append()-851":{"__comp":"17896441","content":"920988e2"},"/bpd-reference/docs/documentation/arrays-and-numpy/np.arange()-376":{"__comp":"17896441","content":"de98ccb0"},"/bpd-reference/docs/documentation/arrays-and-numpy/np.count_nonzero()-0f6":{"__comp":"17896441","content":"f0fd5c00"},"/bpd-reference/docs/documentation/arrays-and-numpy/np.percentile()-68b":{"__comp":"17896441","content":"5d6a2894"},"/bpd-reference/docs/documentation/arrays-and-numpy/np.round()-b0e":{"__comp":"17896441","content":"2efbf384"},"/bpd-reference/docs/documentation/building-organizing/-aa2":{"__comp":"17896441","content":"eaaf288f"},"/bpd-reference/docs/documentation/building-organizing/bpd.DataFrame()-184":{"__comp":"17896441","content":"0c6397b1"},"/bpd-reference/docs/documentation/building-organizing/bpd.read_csv()-68e":{"__comp":"17896441","content":"f39390d7"},"/bpd-reference/docs/documentation/building-organizing/df.assign()-2bf":{"__comp":"17896441","content":"f3b65525"},"/bpd-reference/docs/documentation/building-organizing/df.drop()-bfc":{"__comp":"17896441","content":"b7ff327f"},"/bpd-reference/docs/documentation/building-organizing/df.merge()-ea1":{"__comp":"17896441","content":"c94468d5"},"/bpd-reference/docs/documentation/building-organizing/df.reset_index()-ffd":{"__comp":"17896441","content":"f2b0891e"},"/bpd-reference/docs/documentation/building-organizing/df.set_index()-956":{"__comp":"17896441","content":"9e1896f0"},"/bpd-reference/docs/documentation/building-organizing/df.sort_values()-c18":{"__comp":"17896441","content":"d3196d0d"},"/bpd-reference/docs/documentation/data format conversion/-d89":{"__comp":"17896441","content":"d3ef55ca"},"/bpd-reference/docs/documentation/data format conversion/list()-e04":{"__comp":"17896441","content":"f0994678"},"/bpd-reference/docs/documentation/data format conversion/np.array()-85a":{"__comp":"17896441","content":"fe41946a"},"/bpd-reference/docs/documentation/for-loops/-57d":{"__comp":"17896441","content":"dfefbedb"},"/bpd-reference/docs/documentation/Functions/Applying Functions-054":{"__comp":"17896441","content":"8d40581b"},"/bpd-reference/docs/documentation/Functions/Writing Functions-a88":{"__comp":"17896441","content":"6a26c916"},"/bpd-reference/docs/documentation/Grouping/aggregation/count()-c02":{"__comp":"17896441","content":"907d0c45"},"/bpd-reference/docs/documentation/Grouping/aggregation/max()-32f":{"__comp":"17896441","content":"b69909d7"},"/bpd-reference/docs/documentation/Grouping/aggregation/mean()-278":{"__comp":"17896441","content":"3eb51302"},"/bpd-reference/docs/documentation/Grouping/aggregation/median()-4fe":{"__comp":"17896441","content":"f4434bba"},"/bpd-reference/docs/documentation/Grouping/aggregation/min()-7ad":{"__comp":"17896441","content":"10f7d562"},"/bpd-reference/docs/documentation/Grouping/aggregation/sum()-c41":{"__comp":"17896441","content":"14acb028"},"/bpd-reference/docs/documentation/Grouping/groupby-716":{"__comp":"17896441","content":"37002ad4"},"/bpd-reference/docs/documentation/if-statements/if-elif-else-c17":{"__comp":"17896441","content":"3f791b14"},"/bpd-reference/docs/documentation/if-statements/in \u2044 not in-b7e":{"__comp":"17896441","content":"b0c30e46"},"/bpd-reference/docs/documentation/if-statements/Logical Operators-690":{"__comp":"17896441","content":"1fc0ff79"},"/bpd-reference/docs/documentation/intro-c28":{"__comp":"17896441","content":"739bf370"},"/bpd-reference/docs/documentation/plotting/-f0f":{"__comp":"17896441","content":"10297ef4"},"/bpd-reference/docs/documentation/plotting/Bar Plot-0f6":{"__comp":"17896441","content":"499d47b2"},"/bpd-reference/docs/documentation/plotting/Histogram-e59":{"__comp":"17896441","content":"6e2ca103"},"/bpd-reference/docs/documentation/plotting/Line Plot-18b":{"__comp":"17896441","content":"dd3b6db1"},"/bpd-reference/docs/documentation/plotting/Scatter Plot-a24":{"__comp":"17896441","content":"65beeb93"},"/bpd-reference/docs/documentation/querying/df[]-2c6":{"__comp":"17896441","content":"8c496670"},"/bpd-reference/docs/documentation/series-methods/-e90":{"__comp":"17896441","content":"6b67e948"},"/bpd-reference/docs/documentation/series-methods/ser.count()-a99":{"__comp":"17896441","content":"03f8d3d3"},"/bpd-reference/docs/documentation/series-methods/ser.max()-d33":{"__comp":"17896441","content":"655190df"},"/bpd-reference/docs/documentation/series-methods/ser.mean()-ead":{"__comp":"17896441","content":"46ccc97a"},"/bpd-reference/docs/documentation/series-methods/ser.median()-2fc":{"__comp":"17896441","content":"acb40918"},"/bpd-reference/docs/documentation/series-methods/ser.min()-64b":{"__comp":"17896441","content":"dcbe5aac"},"/bpd-reference/docs/documentation/series-methods/ser.str.capitalize()-6e1":{"__comp":"17896441","content":"82ff9878"},"/bpd-reference/docs/documentation/series-methods/ser.str.contains()-5d2":{"__comp":"17896441","content":"9746c0ef"},"/bpd-reference/docs/documentation/series-methods/ser.str.len()-bf0":{"__comp":"17896441","content":"b78139e1"},"/bpd-reference/docs/documentation/series-methods/ser.str.lower()-85b":{"__comp":"17896441","content":"26533384"},"/bpd-reference/docs/documentation/series-methods/ser.str.replace()-b28":{"__comp":"17896441","content":"ffbcff43"},"/bpd-reference/docs/documentation/series-methods/ser.str.split()-5f1":{"__comp":"17896441","content":"2be9118b"},"/bpd-reference/docs/documentation/series-methods/ser.str.strip()-80a":{"__comp":"17896441","content":"2141c98b"},"/bpd-reference/docs/documentation/series-methods/ser.str.title()-c65":{"__comp":"17896441","content":"62efbc4a"},"/bpd-reference/docs/documentation/series-methods/ser.str.upper()-1ee":{"__comp":"17896441","content":"5ddb68ca"},"/bpd-reference/docs/documentation/series-methods/ser.sum()-786":{"__comp":"17896441","content":"9ac7dbcc"},"/bpd-reference/docs/documentation/series-methods/ser.unique()-877":{"__comp":"17896441","content":"81322b72"},"/bpd-reference/docs/statistical-inference/bootstrapping-81d":{"__comp":"17896441","content":"f095f4cd"},"/bpd-reference/docs/statistical-inference/central_limit_theorem-899":{"__comp":"17896441","content":"97247bb2"},"/bpd-reference/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT-141":{"__comp":"17896441","content":"d01a85b0"},"/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation-0bc":{"__comp":"17896441","content":"d4f68316"},"/bpd-reference/docs/statistical-inference/hypothesis_test-db9":{"__comp":"17896441","content":"f03ae67e"},"/bpd-reference/docs/statistical-inference/intro-85c":{"__comp":"17896441","content":"a278cdf6"},"/bpd-reference/docs/statistical-inference/null_and_alt-14d":{"__comp":"17896441","content":"fb17983f"},"/bpd-reference/docs/statistical-inference/obs_and_test_stats-de6":{"__comp":"17896441","content":"60c4aef6"},"/bpd-reference/docs/statistical-inference/p_value-96f":{"__comp":"17896441","content":"d28047a2"},"/bpd-reference/docs/statistical-inference/parameters-and-statistics-90f":{"__comp":"17896441","content":"099c0b96"},"/bpd-reference/docs/statistical-inference/permutation_test-39d":{"__comp":"17896441","content":"9f1843d8"},"/bpd-reference/docs/statistical-inference/random sampling/df.sample()-c54":{"__comp":"17896441","content":"1774e1e3"},"/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()-f00":{"__comp":"17896441","content":"f4c1c84a"},"/bpd-reference/docs/statistical-inference/random sampling/np.random.multinomial()-6e8":{"__comp":"17896441","content":"187e374f"},"/bpd-reference/docs/statistical-inference/random sampling/np.random.permutation()-a4e":{"__comp":"17896441","content":"36d89dbe"},"/bpd-reference/docs/statistical-inference/random sampling/sampling-f3e":{"__comp":"17896441","content":"62552850"},"/bpd-reference/docs/statistical-inference/spread_of_a_distribution-750":{"__comp":"17896441","content":"f8d80a2f"},"/bpd-reference/docs/statistical-inference/standard_normal_distribution-c60":{"__comp":"17896441","content":"9a265863"},"/bpd-reference/docs/statistical-inference/standard_units-7f5":{"__comp":"17896441","content":"61546123"},"/bpd-reference/-eff":{"__comp":"c4f5d8e4","__context":{"plugin":"a7456010"},"config":"5e9f5e1a"},"/bpd-reference/-173":{"__comp":"1f391b9e","__context":{"plugin":"a7456010"},"content":"f3976560"}}')}},e=>{e.O(0,[1869],(()=>{return t=8536,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/assets/js/runtime~main.813eac89.js b/assets/js/runtime~main.813eac89.js new file mode 100644 index 00000000..9b5d6de5 --- /dev/null +++ b/assets/js/runtime~main.813eac89.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,a,f,c,d,b={},r={};function t(e){var a=r[e];if(void 0!==a)return a.exports;var f=r[e]={id:e,loaded:!1,exports:{}};return b[e].call(f.exports,f,f.exports,t),f.loaded=!0,f.exports}t.m=b,t.c=r,e=[],t.O=(a,f,c,d)=>{if(!f){var b=1/0;for(i=0;i<e.length;i++){f=e[i][0],c=e[i][1],d=e[i][2];for(var r=!0,o=0;o<f.length;o++)(!1&d||b>=d)&&Object.keys(t.O).every((e=>t.O[e](f[o])))?f.splice(o--,1):(r=!1,d<b&&(b=d));if(r){e.splice(i--,1);var n=c();void 0!==n&&(a=n)}}return a}d=d||0;for(var i=e.length;i>0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[f,c,d]},t.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return t.d(a,{a:a}),a},f=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,t.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var d=Object.create(null);t.r(d);var b={};a=a||[null,f({}),f([]),f(f)];for(var r=2&c&&e;"object"==typeof r&&!~a.indexOf(r);r=f(r))Object.getOwnPropertyNames(r).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,t.d(d,b),d},t.d=(e,a)=>{for(var f in a)t.o(a,f)&&!t.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((a,f)=>(t.f[f](e,a),a)),[])),t.u=e=>"assets/js/"+({28:"f095f4cd",94:"81322b72",514:"807a8ce9",614:"f2b0891e",675:"82ff9878",719:"9ac7dbcc",957:"c141421f",972:"f03ae67e",1235:"a7456010",1316:"62552850",1417:"83b8ee67",1429:"8d72dfa8",1746:"a278cdf6",1779:"9a265863",1903:"acecf23e",1944:"b0c30e46",1972:"73664a40",1979:"b69909d7",2087:"f0fd5c00",2105:"dd3b6db1",2138:"1a4e3797",2284:"6e05dac9",2302:"499d47b2",2334:"65beeb93",2441:"9e1896f0",2456:"36d89dbe",2491:"acb40918",2540:"79080f49",2563:"cd67c8da",2621:"ca8a4f49",2634:"c4f5d8e4",2646:"0c6397b1",2711:"9e4087bc",2720:"10f7d562",2808:"f0994678",2917:"dfefbedb",3110:"a98da3ba",3113:"d9ae1e76",3233:"be5f280b",3237:"2be9118b",3249:"ccc49370",3250:"1f418535",3279:"1fc0ff79",3342:"f9684ee2",3343:"f3b65525",3362:"f39390d7",3484:"c94468d5",3490:"abde3fc7",3508:"202baea0",3555:"d3ef55ca",3637:"f4f34a3a",3694:"8717b14a",3717:"099c0b96",3782:"6e7a31fd",3870:"37002ad4",3887:"0784c833",4049:"83aa63f8",4266:"8ded1294",4279:"df203c0f",4469:"6a26c916",4534:"97247bb2",4540:"f8d80a2f",4551:"907d0c45",4567:"655190df",4594:"62efbc4a",4638:"9746c0ef",4787:"3720c009",4812:"739bf370",4813:"6875c492",4833:"d4f68316",4929:"b78139e1",4932:"6b67e948",5007:"e06ba05c",5119:"d28047a2",5125:"10297ef4",5296:"14acb028",5557:"d9f32620",5579:"46ccc97a",5622:"5d6a2894",5742:"aba21aa0",5745:"8d40581b",5848:"8b4ce11c",5980:"6e2ca103",6061:"1f391b9e",6077:"ffbcff43",6090:"3f791b14",6137:"61546123",6142:"60c4aef6",6264:"187e374f",6280:"5ddb68ca",6363:"2141c98b",6690:"920988e2",6730:"b7ff327f",6747:"f4434bba",6969:"14eb3368",7069:"2efbf384",7098:"a7bd4aaa",7174:"a4805c9a",7214:"dcbe5aac",7233:"f4c1c84a",7326:"03f8d3d3",7330:"a5d86b03",7338:"9a1a2feb",7354:"541bd1cc",7380:"e6a51af0",7472:"814f3328",7489:"fe41946a",7643:"a6aa9e1f",7661:"26533384",7680:"cdae2dcc",7795:"f3976560",8065:"80770d40",8104:"d3196d0d",8189:"b2bdf99d",8209:"01a85c17",8241:"de98ccb0",8328:"5ad2bf6e",8401:"17896441",8449:"29759c23",8593:"ce5ff83d",8609:"925b3f96",8737:"7661071f",8743:"80c4c602",8852:"ac5712c7",8857:"0708938a",9048:"a94703ab",9108:"d16c2311",9325:"59362658",9328:"e273c56f",9448:"1774e1e3",9488:"ce9b9f25",9572:"8c496670",9595:"fb17983f",9600:"eaaf288f",9647:"5e95c892",9826:"d01a85b0",9858:"36994c47",9894:"9f1843d8",9930:"ffd9fdf4",9938:"3eb51302"}[e]||e)+"."+{28:"460bde7f",94:"90d5758b",416:"2da58a29",514:"db71d3f2",614:"d7eac5db",675:"9143662a",719:"77c0c128",957:"eb77f58b",972:"60f98101",1235:"e3f68dab",1316:"611cdd05",1417:"1feae5ee",1429:"c6550015",1746:"6d5ef8b3",1779:"941bfa1e",1903:"978cac9e",1944:"494989bc",1972:"6864c464",1979:"cf14dce4",2087:"00af519e",2105:"3bb3e7b5",2138:"cc431c8c",2237:"6895c75e",2284:"5de02c24",2302:"d3a1471f",2334:"1715e24a",2441:"53464e90",2456:"abf69e17",2491:"20b35a67",2540:"9a0341a0",2563:"eaf73a42",2621:"924264c1",2634:"8c6997a5",2646:"4c026ca7",2667:"1d2d8cb8",2711:"1233637c",2720:"9b0bb4fc",2808:"04e51180",2917:"f0f27122",3110:"b670659f",3113:"9da90fe2",3233:"69c559f2",3237:"1e62f3f0",3242:"42f3e555",3249:"ede845d6",3250:"861ded06",3279:"66617d79",3342:"94223911",3343:"792c19b9",3362:"bf79684f",3484:"c6edfbc0",3490:"b4dcf340",3508:"908c6f0c",3555:"2308a0a5",3637:"b17e442f",3694:"5454028b",3717:"cd0ce1aa",3782:"37c8f8e9",3870:"05ddd35d",3887:"c75cf449",4049:"e3a12dc4",4266:"513e7c38",4279:"eaa01a0c",4469:"af28a919",4534:"84f8af6a",4540:"afca9aa7",4551:"7e422b8d",4567:"23a73ffd",4594:"00648062",4638:"2880f7ec",4787:"9b65805f",4812:"9d003505",4813:"170acbab",4833:"3b3c7956",4929:"88fdbdc8",4932:"0e1c3290",5007:"2fc679a2",5119:"40e4d113",5125:"8f93c5d4",5296:"d858fe86",5557:"7d0f45aa",5579:"c2d0e88e",5622:"ac62096c",5742:"6cc8becd",5745:"0f3d989b",5848:"2d545e07",5980:"1cb6c2aa",6061:"724c4e8c",6077:"e95668eb",6090:"fee676c1",6137:"cc7aeccc",6142:"df31d04c",6264:"00e1cc00",6280:"036894d0",6363:"8ceae88c",6690:"1a73d040",6730:"d6f9457e",6747:"0479fbaa",6969:"66f25eb3",7069:"0f6f23fb",7098:"7f57ba47",7174:"53481746",7214:"70a12792",7233:"0250807e",7326:"65063e2e",7330:"a79feeeb",7338:"a1bfeb61",7354:"7439de24",7380:"610f9b02",7472:"2a71da77",7489:"a8daece4",7643:"e66b5d79",7661:"ba125169",7680:"872a7974",7795:"e6a51183",8065:"88d53b0f",8104:"987cf125",8189:"abb923e7",8209:"325e5c9a",8241:"92417364",8328:"3e7a07f1",8401:"9d8dda81",8449:"08a60880",8593:"5fdc399b",8609:"cba4ee15",8737:"8f82254d",8743:"78a5f73f",8852:"1cc6e45c",8857:"fbfbdee8",8913:"a03b371c",9048:"be35ee30",9108:"d056fef5",9325:"777bc4c6",9328:"f95f7890",9448:"31a80d1b",9462:"c36291a8",9488:"b68bf0b7",9572:"3ecad696",9595:"d5f88d2e",9600:"80006e89",9647:"185788dc",9826:"297915d4",9858:"61b8e5f6",9894:"235e28da",9930:"487ad059",9938:"ade32d2c"}[e]+".js",t.miniCssF=e=>{},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},d="bpd-reference:",t.l=(e,a,f,b)=>{if(c[e])c[e].push(a);else{var r,o;if(void 0!==f)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var u=n[i];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==d+f){r=u;break}}r||(o=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,t.nc&&r.setAttribute("nonce",t.nc),r.setAttribute("data-webpack",d+f),r.src=e),c[e]=[a];var l=(a,f)=>{r.onerror=r.onload=null,clearTimeout(s);var d=c[e];if(delete c[e],r.parentNode&&r.parentNode.removeChild(r),d&&d.forEach((e=>e(f))),a)return a(f)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),o&&document.head.appendChild(r)}},t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.p="/bpd-reference/",t.gca=function(e){return e={17896441:"8401",26533384:"7661",59362658:"9325",61546123:"6137",62552850:"1316",f095f4cd:"28","81322b72":"94","807a8ce9":"514",f2b0891e:"614","82ff9878":"675","9ac7dbcc":"719",c141421f:"957",f03ae67e:"972",a7456010:"1235","83b8ee67":"1417","8d72dfa8":"1429",a278cdf6:"1746","9a265863":"1779",acecf23e:"1903",b0c30e46:"1944","73664a40":"1972",b69909d7:"1979",f0fd5c00:"2087",dd3b6db1:"2105","1a4e3797":"2138","6e05dac9":"2284","499d47b2":"2302","65beeb93":"2334","9e1896f0":"2441","36d89dbe":"2456",acb40918:"2491","79080f49":"2540",cd67c8da:"2563",ca8a4f49:"2621",c4f5d8e4:"2634","0c6397b1":"2646","9e4087bc":"2711","10f7d562":"2720",f0994678:"2808",dfefbedb:"2917",a98da3ba:"3110",d9ae1e76:"3113",be5f280b:"3233","2be9118b":"3237",ccc49370:"3249","1f418535":"3250","1fc0ff79":"3279",f9684ee2:"3342",f3b65525:"3343",f39390d7:"3362",c94468d5:"3484",abde3fc7:"3490","202baea0":"3508",d3ef55ca:"3555",f4f34a3a:"3637","8717b14a":"3694","099c0b96":"3717","6e7a31fd":"3782","37002ad4":"3870","0784c833":"3887","83aa63f8":"4049","8ded1294":"4266",df203c0f:"4279","6a26c916":"4469","97247bb2":"4534",f8d80a2f:"4540","907d0c45":"4551","655190df":"4567","62efbc4a":"4594","9746c0ef":"4638","3720c009":"4787","739bf370":"4812","6875c492":"4813",d4f68316:"4833",b78139e1:"4929","6b67e948":"4932",e06ba05c:"5007",d28047a2:"5119","10297ef4":"5125","14acb028":"5296",d9f32620:"5557","46ccc97a":"5579","5d6a2894":"5622",aba21aa0:"5742","8d40581b":"5745","8b4ce11c":"5848","6e2ca103":"5980","1f391b9e":"6061",ffbcff43:"6077","3f791b14":"6090","60c4aef6":"6142","187e374f":"6264","5ddb68ca":"6280","2141c98b":"6363","920988e2":"6690",b7ff327f:"6730",f4434bba:"6747","14eb3368":"6969","2efbf384":"7069",a7bd4aaa:"7098",a4805c9a:"7174",dcbe5aac:"7214",f4c1c84a:"7233","03f8d3d3":"7326",a5d86b03:"7330","9a1a2feb":"7338","541bd1cc":"7354",e6a51af0:"7380","814f3328":"7472",fe41946a:"7489",a6aa9e1f:"7643",cdae2dcc:"7680",f3976560:"7795","80770d40":"8065",d3196d0d:"8104",b2bdf99d:"8189","01a85c17":"8209",de98ccb0:"8241","5ad2bf6e":"8328","29759c23":"8449",ce5ff83d:"8593","925b3f96":"8609","7661071f":"8737","80c4c602":"8743",ac5712c7:"8852","0708938a":"8857",a94703ab:"9048",d16c2311:"9108",e273c56f:"9328","1774e1e3":"9448",ce9b9f25:"9488","8c496670":"9572",fb17983f:"9595",eaaf288f:"9600","5e95c892":"9647",d01a85b0:"9826","36994c47":"9858","9f1843d8":"9894",ffd9fdf4:"9930","3eb51302":"9938"}[e]||e,t.p+t.u(e)},(()=>{var e={5354:0,1869:0};t.f.j=(a,f)=>{var c=t.o(e,a)?e[a]:void 0;if(0!==c)if(c)f.push(c[2]);else if(/^(1869|5354)$/.test(a))e[a]=0;else{var d=new Promise(((f,d)=>c=e[a]=[f,d]));f.push(c[2]=d);var b=t.p+t.u(a),r=new Error;t.l(b,(f=>{if(t.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var d=f&&("load"===f.type?"missing":f.type),b=f&&f.target&&f.target.src;r.message="Loading chunk "+a+" failed.\n("+d+": "+b+")",r.name="ChunkLoadError",r.type=d,r.request=b,c[1](r)}}),"chunk-"+a,a)}},t.O.j=a=>0===e[a];var a=(a,f)=>{var c,d,b=f[0],r=f[1],o=f[2],n=0;if(b.some((a=>0!==e[a]))){for(c in r)t.o(r,c)&&(t.m[c]=r[c]);if(o)var i=o(t)}for(a&&a(f);n<b.length;n++)d=b[n],t.o(e,d)&&e[d]&&e[d][0](),e[d]=0;return t.O(i)},f=self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[];f.forEach(a.bind(null,0)),f.push=a.bind(null,f.push.bind(f))})()})(); \ No newline at end of file diff --git a/assets/js/runtime~main.97453687.js b/assets/js/runtime~main.97453687.js deleted file mode 100644 index 862d0e13..00000000 --- a/assets/js/runtime~main.97453687.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,f,a,c,d,b={},r={};function t(e){var f=r[e];if(void 0!==f)return f.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return b[e].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}t.m=b,t.c=r,e=[],t.O=(f,a,c,d)=>{if(!a){var b=1/0;for(i=0;i<e.length;i++){a=e[i][0],c=e[i][1],d=e[i][2];for(var r=!0,o=0;o<a.length;o++)(!1&d||b>=d)&&Object.keys(t.O).every((e=>t.O[e](a[o])))?a.splice(o--,1):(r=!1,d<b&&(b=d));if(r){e.splice(i--,1);var n=c();void 0!==n&&(f=n)}}return f}d=d||0;for(var i=e.length;i>0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[a,c,d]},t.n=e=>{var f=e&&e.__esModule?()=>e.default:()=>e;return t.d(f,{a:f}),f},a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,t.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var d=Object.create(null);t.r(d);var b={};f=f||[null,a({}),a([]),a(a)];for(var r=2&c&&e;"object"==typeof r&&!~f.indexOf(r);r=a(r))Object.getOwnPropertyNames(r).forEach((f=>b[f]=()=>e[f]));return b.default=()=>e,t.d(d,b),d},t.d=(e,f)=>{for(var a in f)t.o(f,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:f[a]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((f,a)=>(t.f[a](e,f),f)),[])),t.u=e=>"assets/js/"+({28:"f095f4cd",94:"81322b72",514:"807a8ce9",614:"f2b0891e",675:"82ff9878",719:"9ac7dbcc",957:"c141421f",972:"f03ae67e",1235:"a7456010",1316:"62552850",1417:"83b8ee67",1429:"8d72dfa8",1746:"a278cdf6",1779:"9a265863",1903:"acecf23e",1944:"b0c30e46",1972:"73664a40",1979:"b69909d7",2087:"f0fd5c00",2105:"dd3b6db1",2138:"1a4e3797",2284:"6e05dac9",2302:"499d47b2",2334:"65beeb93",2441:"9e1896f0",2456:"36d89dbe",2491:"acb40918",2540:"79080f49",2563:"cd67c8da",2621:"ca8a4f49",2634:"c4f5d8e4",2646:"0c6397b1",2711:"9e4087bc",2720:"10f7d562",2808:"f0994678",2917:"dfefbedb",3110:"a98da3ba",3113:"d9ae1e76",3233:"be5f280b",3237:"2be9118b",3249:"ccc49370",3250:"1f418535",3279:"1fc0ff79",3342:"f9684ee2",3343:"f3b65525",3362:"f39390d7",3484:"c94468d5",3490:"abde3fc7",3508:"202baea0",3555:"d3ef55ca",3637:"f4f34a3a",3694:"8717b14a",3717:"099c0b96",3782:"6e7a31fd",3870:"37002ad4",3887:"0784c833",4049:"83aa63f8",4266:"8ded1294",4279:"df203c0f",4469:"6a26c916",4534:"97247bb2",4540:"f8d80a2f",4551:"907d0c45",4567:"655190df",4594:"62efbc4a",4638:"9746c0ef",4787:"3720c009",4812:"739bf370",4813:"6875c492",4833:"d4f68316",4929:"b78139e1",4932:"6b67e948",5007:"e06ba05c",5119:"d28047a2",5125:"10297ef4",5296:"14acb028",5557:"d9f32620",5579:"46ccc97a",5622:"5d6a2894",5742:"aba21aa0",5745:"8d40581b",5848:"8b4ce11c",5980:"6e2ca103",6061:"1f391b9e",6077:"ffbcff43",6090:"3f791b14",6137:"61546123",6142:"60c4aef6",6264:"187e374f",6280:"5ddb68ca",6363:"2141c98b",6690:"920988e2",6730:"b7ff327f",6747:"f4434bba",6969:"14eb3368",7069:"2efbf384",7098:"a7bd4aaa",7174:"a4805c9a",7214:"dcbe5aac",7233:"f4c1c84a",7326:"03f8d3d3",7330:"a5d86b03",7338:"9a1a2feb",7354:"541bd1cc",7380:"e6a51af0",7472:"814f3328",7489:"fe41946a",7643:"a6aa9e1f",7661:"26533384",7680:"cdae2dcc",7795:"f3976560",8065:"80770d40",8104:"d3196d0d",8189:"b2bdf99d",8209:"01a85c17",8241:"de98ccb0",8328:"5ad2bf6e",8401:"17896441",8449:"29759c23",8593:"ce5ff83d",8609:"925b3f96",8737:"7661071f",8743:"80c4c602",8852:"ac5712c7",8857:"0708938a",9048:"a94703ab",9108:"d16c2311",9325:"59362658",9328:"e273c56f",9448:"1774e1e3",9488:"ce9b9f25",9572:"8c496670",9595:"fb17983f",9600:"eaaf288f",9647:"5e95c892",9826:"d01a85b0",9858:"36994c47",9894:"9f1843d8",9930:"ffd9fdf4",9938:"3eb51302"}[e]||e)+"."+{28:"32321c37",94:"65633f64",416:"2da58a29",514:"db71d3f2",614:"80e35342",675:"7e78a65b",719:"29890201",724:"b40f7e36",957:"eb77f58b",972:"29f38469",1235:"e3f68dab",1316:"611cdd05",1417:"1feae5ee",1429:"c6550015",1746:"f2e85f73",1779:"c79182d8",1903:"978cac9e",1944:"b4ca6cce",1972:"6864c464",1979:"cf14dce4",2087:"9ad17ee0",2105:"befa0697",2138:"cc431c8c",2237:"6895c75e",2284:"794051db",2302:"d2522afc",2334:"0cea168a",2441:"73dd9b87",2456:"de5987ca",2491:"33fe453e",2540:"9a0341a0",2563:"eaf73a42",2621:"924264c1",2634:"8c6997a5",2646:"4c026ca7",2711:"1233637c",2720:"9b0bb4fc",2808:"6ec7c52a",2917:"df2ccdca",3110:"b670659f",3113:"e7ed22dc",3233:"69c559f2",3237:"9ba0b5ad",3242:"7073af4e",3249:"6bd4d0ac",3250:"21f320e1",3279:"fa736358",3342:"ef0816da",3343:"9d6a97b5",3362:"533b54c4",3484:"5dc63ddc",3490:"b4dcf340",3508:"908c6f0c",3555:"2308a0a5",3637:"b17e442f",3694:"5454028b",3717:"cd0ce1aa",3782:"37c8f8e9",3870:"acdd4bc4",3887:"c75cf449",4049:"e3a12dc4",4266:"513e7c38",4279:"eaa01a0c",4469:"d7db71df",4534:"84f8af6a",4540:"d56b6f04",4551:"7e422b8d",4567:"cff71572",4594:"b6392b54",4638:"75ed6b19",4787:"9b65805f",4812:"64f0d5ca",4813:"170acbab",4833:"7ff7b207",4929:"4361acc2",4932:"0e1c3290",5007:"2fc679a2",5119:"40e4d113",5125:"8f93c5d4",5296:"d858fe86",5557:"932c5f37",5579:"8eb8150e",5622:"defd590f",5742:"6cc8becd",5745:"0f3d989b",5848:"2d545e07",5980:"25b793cd",6061:"50a4ba87",6077:"08e5113e",6090:"1dbf70e4",6137:"aa0b9096",6142:"19e4e86c",6264:"6bd2e740",6280:"b60b2c9d",6363:"79c64c71",6690:"d63c6515",6730:"cadf970c",6747:"0479fbaa",6969:"66f25eb3",7069:"0dfce00f",7098:"7f57ba47",7174:"bf5ef1fd",7214:"ce3fa403",7233:"6d6b448a",7326:"3c5a514c",7330:"a79feeeb",7338:"a1bfeb61",7354:"7439de24",7380:"610f9b02",7472:"2a71da77",7489:"15b16019",7643:"e66b5d79",7661:"8b1fc360",7680:"ba468bd4",7795:"e6a51183",8065:"88d53b0f",8104:"c8273d0e",8189:"abb923e7",8209:"325e5c9a",8241:"92417364",8328:"3e7a07f1",8401:"ef0790a9",8449:"08a60880",8593:"5fdc399b",8609:"cba4ee15",8737:"e81fafbc",8743:"78a5f73f",8852:"1cc6e45c",8857:"fbfbdee8",8913:"a03b371c",9048:"be35ee30",9108:"d056fef5",9325:"777bc4c6",9328:"f95f7890",9448:"31a80d1b",9462:"c36291a8",9488:"b68bf0b7",9572:"dc29cff5",9595:"d5f88d2e",9600:"4ffa00eb",9647:"185788dc",9826:"71d737ed",9858:"61b8e5f6",9894:"8224833f",9930:"487ad059",9938:"ade32d2c"}[e]+".js",t.miniCssF=e=>{},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),c={},d="bpd-reference:",t.l=(e,f,a,b)=>{if(c[e])c[e].push(f);else{var r,o;if(void 0!==a)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var u=n[i];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==d+a){r=u;break}}r||(o=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,t.nc&&r.setAttribute("nonce",t.nc),r.setAttribute("data-webpack",d+a),r.src=e),c[e]=[f];var l=(f,a)=>{r.onerror=r.onload=null,clearTimeout(s);var d=c[e];if(delete c[e],r.parentNode&&r.parentNode.removeChild(r),d&&d.forEach((e=>e(a))),f)return f(a)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),o&&document.head.appendChild(r)}},t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.p="/bpd-reference/",t.gca=function(e){return e={17896441:"8401",26533384:"7661",59362658:"9325",61546123:"6137",62552850:"1316",f095f4cd:"28","81322b72":"94","807a8ce9":"514",f2b0891e:"614","82ff9878":"675","9ac7dbcc":"719",c141421f:"957",f03ae67e:"972",a7456010:"1235","83b8ee67":"1417","8d72dfa8":"1429",a278cdf6:"1746","9a265863":"1779",acecf23e:"1903",b0c30e46:"1944","73664a40":"1972",b69909d7:"1979",f0fd5c00:"2087",dd3b6db1:"2105","1a4e3797":"2138","6e05dac9":"2284","499d47b2":"2302","65beeb93":"2334","9e1896f0":"2441","36d89dbe":"2456",acb40918:"2491","79080f49":"2540",cd67c8da:"2563",ca8a4f49:"2621",c4f5d8e4:"2634","0c6397b1":"2646","9e4087bc":"2711","10f7d562":"2720",f0994678:"2808",dfefbedb:"2917",a98da3ba:"3110",d9ae1e76:"3113",be5f280b:"3233","2be9118b":"3237",ccc49370:"3249","1f418535":"3250","1fc0ff79":"3279",f9684ee2:"3342",f3b65525:"3343",f39390d7:"3362",c94468d5:"3484",abde3fc7:"3490","202baea0":"3508",d3ef55ca:"3555",f4f34a3a:"3637","8717b14a":"3694","099c0b96":"3717","6e7a31fd":"3782","37002ad4":"3870","0784c833":"3887","83aa63f8":"4049","8ded1294":"4266",df203c0f:"4279","6a26c916":"4469","97247bb2":"4534",f8d80a2f:"4540","907d0c45":"4551","655190df":"4567","62efbc4a":"4594","9746c0ef":"4638","3720c009":"4787","739bf370":"4812","6875c492":"4813",d4f68316:"4833",b78139e1:"4929","6b67e948":"4932",e06ba05c:"5007",d28047a2:"5119","10297ef4":"5125","14acb028":"5296",d9f32620:"5557","46ccc97a":"5579","5d6a2894":"5622",aba21aa0:"5742","8d40581b":"5745","8b4ce11c":"5848","6e2ca103":"5980","1f391b9e":"6061",ffbcff43:"6077","3f791b14":"6090","60c4aef6":"6142","187e374f":"6264","5ddb68ca":"6280","2141c98b":"6363","920988e2":"6690",b7ff327f:"6730",f4434bba:"6747","14eb3368":"6969","2efbf384":"7069",a7bd4aaa:"7098",a4805c9a:"7174",dcbe5aac:"7214",f4c1c84a:"7233","03f8d3d3":"7326",a5d86b03:"7330","9a1a2feb":"7338","541bd1cc":"7354",e6a51af0:"7380","814f3328":"7472",fe41946a:"7489",a6aa9e1f:"7643",cdae2dcc:"7680",f3976560:"7795","80770d40":"8065",d3196d0d:"8104",b2bdf99d:"8189","01a85c17":"8209",de98ccb0:"8241","5ad2bf6e":"8328","29759c23":"8449",ce5ff83d:"8593","925b3f96":"8609","7661071f":"8737","80c4c602":"8743",ac5712c7:"8852","0708938a":"8857",a94703ab:"9048",d16c2311:"9108",e273c56f:"9328","1774e1e3":"9448",ce9b9f25:"9488","8c496670":"9572",fb17983f:"9595",eaaf288f:"9600","5e95c892":"9647",d01a85b0:"9826","36994c47":"9858","9f1843d8":"9894",ffd9fdf4:"9930","3eb51302":"9938"}[e]||e,t.p+t.u(e)},(()=>{var e={5354:0,1869:0};t.f.j=(f,a)=>{var c=t.o(e,f)?e[f]:void 0;if(0!==c)if(c)a.push(c[2]);else if(/^(1869|5354)$/.test(f))e[f]=0;else{var d=new Promise(((a,d)=>c=e[f]=[a,d]));a.push(c[2]=d);var b=t.p+t.u(f),r=new Error;t.l(b,(a=>{if(t.o(e,f)&&(0!==(c=e[f])&&(e[f]=void 0),c)){var d=a&&("load"===a.type?"missing":a.type),b=a&&a.target&&a.target.src;r.message="Loading chunk "+f+" failed.\n("+d+": "+b+")",r.name="ChunkLoadError",r.type=d,r.request=b,c[1](r)}}),"chunk-"+f,f)}},t.O.j=f=>0===e[f];var f=(f,a)=>{var c,d,b=a[0],r=a[1],o=a[2],n=0;if(b.some((f=>0!==e[f]))){for(c in r)t.o(r,c)&&(t.m[c]=r[c]);if(o)var i=o(t)}for(f&&f(a);n<b.length;n++)d=b[n],t.o(e,d)&&e[d]&&e[d][0](),e[d]=0;return t.O(i)},a=self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[];a.forEach(f.bind(null,0)),a.push=f.bind(null,a.push.bind(a))})()})(); \ No newline at end of file diff --git a/blog/archive/index.html b/blog/archive/index.html index 841e1ef7..39632218 100644 --- a/blog/archive/index.html +++ b/blog/archive/index.html @@ -6,13 +6,17 @@ <title data-rh="true">Archive | bpd + + + + - - + + diff --git a/blog/first-blog-post/index.html b/blog/first-blog-post/index.html index 2719d83b..21dfaac4 100644 --- a/blog/first-blog-post/index.html +++ b/blog/first-blog-post/index.html @@ -6,13 +6,17 @@ First Blog Post | bpd + + + + - - + +

First Blog Post

· One min read
Gao Wei
Docusaurus Core Team

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

diff --git a/blog/index.html b/blog/index.html index a61a96f6..95bc6024 100644 --- a/blog/index.html +++ b/blog/index.html @@ -6,13 +6,17 @@ Blog | bpd + + + + - - + +

Welcome

· One min read
Sébastien Lorber
Docusaurus maintainer
Yangshun Tay
Front End Engineer @ Facebook

Docusaurus blogging features are powered by the blog plugin.

diff --git a/blog/long-blog-post/index.html b/blog/long-blog-post/index.html index 8c6b7dc0..1c639e9b 100644 --- a/blog/long-blog-post/index.html +++ b/blog/long-blog-post/index.html @@ -6,13 +6,17 @@ Long Blog Post | bpd + + + + - - + +

Long Blog Post

· 3 min read
Endilie Yacop Sucipto
Maintainer of Docusaurus

This is the summary of a very long blog post,

diff --git a/blog/mdx-blog-post/index.html b/blog/mdx-blog-post/index.html index f7ccac12..099e7d07 100644 --- a/blog/mdx-blog-post/index.html +++ b/blog/mdx-blog-post/index.html @@ -6,13 +6,17 @@ MDX Blog Post | bpd + + + + - - + +

MDX Blog Post

· One min read
Sébastien Lorber
Docusaurus maintainer

Blog posts support Docusaurus Markdown features, such as MDX.

diff --git a/blog/tags/docusaurus/index.html b/blog/tags/docusaurus/index.html index 95f18fd7..2940cecb 100644 --- a/blog/tags/docusaurus/index.html +++ b/blog/tags/docusaurus/index.html @@ -6,13 +6,17 @@ 4 posts tagged with "docusaurus" | bpd + + + + - - + +

4 posts tagged with "docusaurus"

View All Tags

Welcome

· One min read
Sébastien Lorber
Docusaurus maintainer
Yangshun Tay
Front End Engineer @ Facebook

Docusaurus blogging features are powered by the blog plugin.

diff --git a/blog/tags/facebook/index.html b/blog/tags/facebook/index.html index 498f37d1..e06ab379 100644 --- a/blog/tags/facebook/index.html +++ b/blog/tags/facebook/index.html @@ -6,13 +6,17 @@ One post tagged with "facebook" | bpd + + + + - - + +

One post tagged with "facebook"

View All Tags

Welcome

· One min read
Sébastien Lorber
Docusaurus maintainer
Yangshun Tay
Front End Engineer @ Facebook

Docusaurus blogging features are powered by the blog plugin.

diff --git a/blog/tags/hello/index.html b/blog/tags/hello/index.html index d7c00668..b6f434df 100644 --- a/blog/tags/hello/index.html +++ b/blog/tags/hello/index.html @@ -6,13 +6,17 @@ 2 posts tagged with "hello" | bpd + + + + - - + +

2 posts tagged with "hello"

View All Tags

Welcome

· One min read
Sébastien Lorber
Docusaurus maintainer
Yangshun Tay
Front End Engineer @ Facebook

Docusaurus blogging features are powered by the blog plugin.

diff --git a/blog/tags/hola/index.html b/blog/tags/hola/index.html index cbacd771..bd20a6c1 100644 --- a/blog/tags/hola/index.html +++ b/blog/tags/hola/index.html @@ -6,13 +6,17 @@ One post tagged with "hola" | bpd + + + + - - + +

One post tagged with "hola"

View All Tags

First Blog Post

· One min read
Gao Wei
Docusaurus Core Team

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

diff --git a/blog/tags/index.html b/blog/tags/index.html index 89b5ad99..60e03ad5 100644 --- a/blog/tags/index.html +++ b/blog/tags/index.html @@ -6,13 +6,17 @@ Tags | bpd + + + + - - + + diff --git a/blog/welcome/index.html b/blog/welcome/index.html index b40a99e2..7babb37a 100644 --- a/blog/welcome/index.html +++ b/blog/welcome/index.html @@ -6,13 +6,17 @@ Welcome | bpd + + + + - - + +

Welcome

· One min read
Sébastien Lorber
Docusaurus maintainer
Yangshun Tay
Front End Engineer @ Facebook

Docusaurus blogging features are powered by the blog plugin.

diff --git a/docs/category/if-statements/index.html b/docs/category/if-statements/index.html index e7b79e34..2112f632 100644 --- a/docs/category/if-statements/index.html +++ b/docs/category/if-statements/index.html @@ -6,13 +6,17 @@ if-statements | bpd + + + + - - + + diff --git a/docs/category/querying/index.html b/docs/category/querying/index.html index 4d77aa1a..da28625a 100644 --- a/docs/category/querying/index.html +++ b/docs/category/querying/index.html @@ -6,13 +6,17 @@ Querying | bpd + + + + - - + + diff --git a/docs/documentation/Functions/Applying Functions/index.html b/docs/documentation/Functions/Applying Functions/index.html index e7b1f49b..ef79dcc5 100644 --- a/docs/documentation/Functions/Applying Functions/index.html +++ b/docs/documentation/Functions/Applying Functions/index.html @@ -6,13 +6,17 @@ Applying Functions | bpd + + + + - - + +

Applying Functions

df.get(column_name).apply(function_name) diff --git a/docs/documentation/Functions/Writing Functions/index.html b/docs/documentation/Functions/Writing Functions/index.html index 1b0f1fe0..3ef919d8 100644 --- a/docs/documentation/Functions/Writing Functions/index.html +++ b/docs/documentation/Functions/Writing Functions/index.html @@ -6,13 +6,17 @@ Writing Functions | bpd + + + + - - + +

Writing Functions

def function_name(parameters): diff --git a/docs/documentation/Grouping/aggregation/count()/index.html b/docs/documentation/Grouping/aggregation/count()/index.html index ca4129fe..c373a8e1 100644 --- a/docs/documentation/Grouping/aggregation/count()/index.html +++ b/docs/documentation/Grouping/aggregation/count()/index.html @@ -6,13 +6,17 @@ count() | bpd + + + + - - + +

count()

df.groupby(column_name).count() diff --git a/docs/documentation/Grouping/aggregation/max()/index.html b/docs/documentation/Grouping/aggregation/max()/index.html index 1f40adb2..2794d137 100644 --- a/docs/documentation/Grouping/aggregation/max()/index.html +++ b/docs/documentation/Grouping/aggregation/max()/index.html @@ -6,13 +6,17 @@ max() | bpd + + + + - - + +

max()

df.groupby(column_name).max() diff --git a/docs/documentation/Grouping/aggregation/mean()/index.html b/docs/documentation/Grouping/aggregation/mean()/index.html index 7679ce72..9488b0bb 100644 --- a/docs/documentation/Grouping/aggregation/mean()/index.html +++ b/docs/documentation/Grouping/aggregation/mean()/index.html @@ -6,13 +6,17 @@ mean() | bpd + + + + - - + +

mean()

df.groupby(column_name).mean() diff --git a/docs/documentation/Grouping/aggregation/median()/index.html b/docs/documentation/Grouping/aggregation/median()/index.html index d669fed9..724bb807 100644 --- a/docs/documentation/Grouping/aggregation/median()/index.html +++ b/docs/documentation/Grouping/aggregation/median()/index.html @@ -6,13 +6,17 @@ median() | bpd + + + + - - + +

median()

df.groupby(column_name).median() diff --git a/docs/documentation/Grouping/aggregation/min()/index.html b/docs/documentation/Grouping/aggregation/min()/index.html index d783c615..ed981dbe 100644 --- a/docs/documentation/Grouping/aggregation/min()/index.html +++ b/docs/documentation/Grouping/aggregation/min()/index.html @@ -6,13 +6,17 @@ min() | bpd + + + + - - + +

min()

df.groupby(column_name).min() diff --git a/docs/documentation/Grouping/aggregation/sum()/index.html b/docs/documentation/Grouping/aggregation/sum()/index.html index 1563ba2f..af96a9bd 100644 --- a/docs/documentation/Grouping/aggregation/sum()/index.html +++ b/docs/documentation/Grouping/aggregation/sum()/index.html @@ -6,13 +6,17 @@ sum() | bpd + + + + - - + +

sum()

df.groupby(column_name).sum() diff --git a/docs/documentation/Grouping/groupby/index.html b/docs/documentation/Grouping/groupby/index.html index 4ff88e40..ef4aa529 100644 --- a/docs/documentation/Grouping/groupby/index.html +++ b/docs/documentation/Grouping/groupby/index.html @@ -6,13 +6,17 @@ groupby | bpd + + + + - - + +

groupby

df.groupby(column_name) diff --git a/docs/documentation/accessing-data/df.columns/index.html b/docs/documentation/accessing-data/df.columns/index.html index b0cea5ea..d5631625 100644 --- a/docs/documentation/accessing-data/df.columns/index.html +++ b/docs/documentation/accessing-data/df.columns/index.html @@ -6,13 +6,17 @@ df.columns | bpd + + + + - - + +

df.columns

df.columns diff --git a/docs/documentation/accessing-data/df.get()/index.html b/docs/documentation/accessing-data/df.get()/index.html index d2f9e39f..18e610b3 100644 --- a/docs/documentation/accessing-data/df.get()/index.html +++ b/docs/documentation/accessing-data/df.get()/index.html @@ -6,13 +6,17 @@ df.get() | bpd + + + + - - + +

df.get()

df.get(column_name) diff --git a/docs/documentation/accessing-data/df.index/index.html b/docs/documentation/accessing-data/df.index/index.html index 3a4ae766..766a3b1b 100644 --- a/docs/documentation/accessing-data/df.index/index.html +++ b/docs/documentation/accessing-data/df.index/index.html @@ -6,13 +6,17 @@ df.index | bpd + + + + - - + +

df.index

df.index diff --git a/docs/documentation/accessing-data/df.shape/index.html b/docs/documentation/accessing-data/df.shape/index.html index bef99ec4..0e34a5a0 100644 --- a/docs/documentation/accessing-data/df.shape/index.html +++ b/docs/documentation/accessing-data/df.shape/index.html @@ -6,13 +6,17 @@ df.shape | bpd + + + + - - + +

df.shape

df.shape diff --git a/docs/documentation/accessing-data/df.take()/index.html b/docs/documentation/accessing-data/df.take()/index.html index dccd8f83..f9c06b39 100644 --- a/docs/documentation/accessing-data/df.take()/index.html +++ b/docs/documentation/accessing-data/df.take()/index.html @@ -6,13 +6,17 @@ df.take() | bpd + + + + - - + +

df.take()

df.take(indices) diff --git a/docs/documentation/accessing-data/index.html b/docs/documentation/accessing-data/index.html index 55e27cd7..8223d99f 100644 --- a/docs/documentation/accessing-data/index.html +++ b/docs/documentation/accessing-data/index.html @@ -6,13 +6,17 @@ Accessing Data | bpd + + + + - - + +

Accessing Data

diff --git a/docs/documentation/accessing-data/ser.iloc[]/index.html b/docs/documentation/accessing-data/ser.iloc[]/index.html index 312cadba..c2790d6b 100644 --- a/docs/documentation/accessing-data/ser.iloc[]/index.html +++ b/docs/documentation/accessing-data/ser.iloc[]/index.html @@ -6,13 +6,17 @@ ser.iloc[] | bpd + + + + - - + +

ser.iloc[]

ser.iloc[position] diff --git a/docs/documentation/accessing-data/ser.loc[]/index.html b/docs/documentation/accessing-data/ser.loc[]/index.html index b08d9f06..4fcd2b00 100644 --- a/docs/documentation/accessing-data/ser.loc[]/index.html +++ b/docs/documentation/accessing-data/ser.loc[]/index.html @@ -6,13 +6,17 @@ ser.loc[] | bpd + + + + - - + +

ser.loc[]

ser.loc[label] diff --git a/docs/documentation/arrays-and-numpy/arr[]/index.html b/docs/documentation/arrays-and-numpy/arr[]/index.html index f6812914..22a31958 100644 --- a/docs/documentation/arrays-and-numpy/arr[]/index.html +++ b/docs/documentation/arrays-and-numpy/arr[]/index.html @@ -6,13 +6,17 @@ arr[] | bpd + + + + - - + +

arr[]

arr[index] diff --git a/docs/documentation/arrays-and-numpy/index.html b/docs/documentation/arrays-and-numpy/index.html index 88dd8e05..9f8fe16d 100644 --- a/docs/documentation/arrays-and-numpy/index.html +++ b/docs/documentation/arrays-and-numpy/index.html @@ -6,13 +6,17 @@ Arrays and NumPy | bpd + + + + - - + +

Arrays and NumPy

Functions/methods for working with Arrays and NumPy.

diff --git a/docs/documentation/arrays-and-numpy/np.append()/index.html b/docs/documentation/arrays-and-numpy/np.append()/index.html index e6f1e19c..90668fe5 100644 --- a/docs/documentation/arrays-and-numpy/np.append()/index.html +++ b/docs/documentation/arrays-and-numpy/np.append()/index.html @@ -6,13 +6,17 @@ np.append() | bpd + + + + - - + +

np.append()

np.append(arr, value) diff --git a/docs/documentation/arrays-and-numpy/np.arange()/index.html b/docs/documentation/arrays-and-numpy/np.arange()/index.html index 2c1e0003..bcd8d0be 100644 --- a/docs/documentation/arrays-and-numpy/np.arange()/index.html +++ b/docs/documentation/arrays-and-numpy/np.arange()/index.html @@ -6,13 +6,17 @@ np.arange() | bpd + + + + - - + +

np.arange()

np.arange(start, stop, step) diff --git a/docs/documentation/arrays-and-numpy/np.count_nonzero()/index.html b/docs/documentation/arrays-and-numpy/np.count_nonzero()/index.html index 45ab9743..c8fe6251 100644 --- a/docs/documentation/arrays-and-numpy/np.count_nonzero()/index.html +++ b/docs/documentation/arrays-and-numpy/np.count_nonzero()/index.html @@ -6,13 +6,17 @@ np.count_nonzero() | bpd + + + + - - + +

np.count_nonzero()

np.count_nonzero(arr) diff --git a/docs/documentation/arrays-and-numpy/np.percentile()/index.html b/docs/documentation/arrays-and-numpy/np.percentile()/index.html index eeec59d5..2b20ff64 100644 --- a/docs/documentation/arrays-and-numpy/np.percentile()/index.html +++ b/docs/documentation/arrays-and-numpy/np.percentile()/index.html @@ -6,13 +6,17 @@ np.percentile() | bpd + + + + - - + +

np.percentile()

np.percentile(arr, p) diff --git a/docs/documentation/arrays-and-numpy/np.round()/index.html b/docs/documentation/arrays-and-numpy/np.round()/index.html index 3a232303..4624dd56 100644 --- a/docs/documentation/arrays-and-numpy/np.round()/index.html +++ b/docs/documentation/arrays-and-numpy/np.round()/index.html @@ -6,13 +6,17 @@ np.round() | bpd + + + + - - + +

np.round()

np.round(arr, decimals) diff --git a/docs/documentation/building-organizing/bpd.DataFrame()/index.html b/docs/documentation/building-organizing/bpd.DataFrame()/index.html index 8fe713d3..df0c20ac 100644 --- a/docs/documentation/building-organizing/bpd.DataFrame()/index.html +++ b/docs/documentation/building-organizing/bpd.DataFrame()/index.html @@ -6,13 +6,17 @@ bpd.DataFrame() | bpd + + + + - - + +

bpd.DataFrame()

bpd.DataFrame() diff --git a/docs/documentation/building-organizing/bpd.read_csv()/index.html b/docs/documentation/building-organizing/bpd.read_csv()/index.html index 3817a8d2..aa2ca86a 100644 --- a/docs/documentation/building-organizing/bpd.read_csv()/index.html +++ b/docs/documentation/building-organizing/bpd.read_csv()/index.html @@ -6,13 +6,17 @@ bpd.read_csv() | bpd + + + + - - + +

bpd.read_csv()

bpd.read_csv(filepath) diff --git a/docs/documentation/building-organizing/df.assign()/index.html b/docs/documentation/building-organizing/df.assign()/index.html index 65022b4e..49307e24 100644 --- a/docs/documentation/building-organizing/df.assign()/index.html +++ b/docs/documentation/building-organizing/df.assign()/index.html @@ -6,13 +6,17 @@ df.assign() | bpd + + + + - - + +

df.assign()

df.assign(name_of_column=column_data) diff --git a/docs/documentation/building-organizing/df.drop()/index.html b/docs/documentation/building-organizing/df.drop()/index.html index 18eea659..befbb7c5 100644 --- a/docs/documentation/building-organizing/df.drop()/index.html +++ b/docs/documentation/building-organizing/df.drop()/index.html @@ -6,13 +6,17 @@ df.drop() | bpd + + + + - - + +

df.drop()

df.drop(columns=column_name or [col_1_name, ..., col_k_name]) diff --git a/docs/documentation/building-organizing/df.merge()/index.html b/docs/documentation/building-organizing/df.merge()/index.html index 7d12e2ec..acfe1b08 100644 --- a/docs/documentation/building-organizing/df.merge()/index.html +++ b/docs/documentation/building-organizing/df.merge()/index.html @@ -6,13 +6,17 @@ df.merge() | bpd + + + + - - + +

df.merge()

df.merge(right, on=column, left_on=left_column, right_on=right_column, left_index=False, right_index=False) diff --git a/docs/documentation/building-organizing/df.reset_index()/index.html b/docs/documentation/building-organizing/df.reset_index()/index.html index 30e6a7fc..5344cae4 100644 --- a/docs/documentation/building-organizing/df.reset_index()/index.html +++ b/docs/documentation/building-organizing/df.reset_index()/index.html @@ -6,13 +6,17 @@ df.reset_index() | bpd + + + + - - + +

df.reset_index()

df.reset_index(drop=False) diff --git a/docs/documentation/building-organizing/df.set_index()/index.html b/docs/documentation/building-organizing/df.set_index()/index.html index 818013ca..b53b97ef 100644 --- a/docs/documentation/building-organizing/df.set_index()/index.html +++ b/docs/documentation/building-organizing/df.set_index()/index.html @@ -6,13 +6,17 @@ df.set_index() | bpd + + + + - - + +

df.set_index()

df.set_index(column_name) diff --git a/docs/documentation/building-organizing/df.sort_values()/index.html b/docs/documentation/building-organizing/df.sort_values()/index.html index 1c328670..d4d9ca5b 100644 --- a/docs/documentation/building-organizing/df.sort_values()/index.html +++ b/docs/documentation/building-organizing/df.sort_values()/index.html @@ -6,13 +6,17 @@ df.sort_values() | bpd + + + + - - + +

df.sort_values()

df.sort_values(by=column_name, ascending=True) diff --git a/docs/documentation/building-organizing/index.html b/docs/documentation/building-organizing/index.html index 80b185bb..e4422dfd 100644 --- a/docs/documentation/building-organizing/index.html +++ b/docs/documentation/building-organizing/index.html @@ -6,28 +6,32 @@ Building and Organizing DataFrames | bpd + + + + - - + +

Building and Organizing DataFrames

Each function/method creates a new DataFrame. Remember to save it!

Manipulating


Creates an empty DataFrame.

-

bpd.read_csv(filepath)

Read a comma-separated values (csv) file into DataFrame.

+

bpd.read_csv(filepath)

Reads a CSV (comma-separated values) file into a DataFrame.

df.assign(name_of_column=column_data)

Adds a new column to the DataFrame.

-

df.drop(columns=column_name or [col_1_name, ..., col_k_name])

Drops a single column, or every column in a list of column names.

+

df.drop(columns=column_name or [col_1_name, ..., col_k_name])

Drops a single column, or every column in a list of column names, from the DataFrame.

Indexing


-

df.set_index(column_name)

Moves a column to the index.

+

df.set_index(column_name)

Moves a column to the DataFrame's index.

Organizing


-

df.reset_index(drop=False)

Moves a column to the index.

+

df.reset_index(drop=False)

Moves the index to a new column and uses the default index instead.

df.sort_values(by=column_name, ascending=True)

Sorts the entire DataFrame in ascending order by the values in the column.

Merging


diff --git a/docs/documentation/data format conversion/index.html b/docs/documentation/data format conversion/index.html index 986ed163..63bb63d6 100644 --- a/docs/documentation/data format conversion/index.html +++ b/docs/documentation/data format conversion/index.html @@ -6,13 +6,17 @@ Data Format Conversion | bpd + + + + - - + +

Data Format Conversion

Converting things to arrays!

diff --git a/docs/documentation/data format conversion/list()/index.html b/docs/documentation/data format conversion/list()/index.html index 1f5ce9f8..0f8bcd18 100644 --- a/docs/documentation/data format conversion/list()/index.html +++ b/docs/documentation/data format conversion/list()/index.html @@ -6,13 +6,17 @@ list() | bpd + + + + - - + +

list()

list(arr) diff --git a/docs/documentation/data format conversion/np.array()/index.html b/docs/documentation/data format conversion/np.array()/index.html index 963ca906..af6dae92 100644 --- a/docs/documentation/data format conversion/np.array()/index.html +++ b/docs/documentation/data format conversion/np.array()/index.html @@ -6,13 +6,17 @@ np.array() | bpd + + + + - - + +

np.array()

np.array(input) diff --git a/docs/documentation/for-loops/index.html b/docs/documentation/for-loops/index.html index 9529baf8..fc786062 100644 --- a/docs/documentation/for-loops/index.html +++ b/docs/documentation/for-loops/index.html @@ -6,13 +6,17 @@ for-loops | bpd + + + + - - + +

for-loops

for <loop variable> in <sequence>:
diff --git a/docs/documentation/if-statements/Logical Operators/index.html b/docs/documentation/if-statements/Logical Operators/index.html index b2b09ee8..3b7b9664 100644 --- a/docs/documentation/if-statements/Logical Operators/index.html +++ b/docs/documentation/if-statements/Logical Operators/index.html @@ -6,13 +6,17 @@ Logical Operators | bpd + + + + - - + +

Logical Operators

if <condition> and <condition>:
diff --git a/docs/documentation/if-statements/if-elif-else/index.html b/docs/documentation/if-statements/if-elif-else/index.html index 03b34038..89deb83e 100644 --- a/docs/documentation/if-statements/if-elif-else/index.html +++ b/docs/documentation/if-statements/if-elif-else/index.html @@ -6,13 +6,17 @@ if-elif-else | bpd + + + + - - + +

if-elif-else

if <condition>:
diff --git "a/docs/documentation/if-statements/in \342\201\204 not in/index.html" "b/docs/documentation/if-statements/in \342\201\204 not in/index.html" index 71a57513..821a6731 100644 --- "a/docs/documentation/if-statements/in \342\201\204 not in/index.html" +++ "b/docs/documentation/if-statements/in \342\201\204 not in/index.html" @@ -6,13 +6,17 @@ in ⁄ not in | bpd + + + + - - + +

in ⁄ not in

if <object> in <sequence>:
diff --git a/docs/documentation/intro/index.html b/docs/documentation/intro/index.html index 516f0e47..6e1ca734 100644 --- a/docs/documentation/intro/index.html +++ b/docs/documentation/intro/index.html @@ -3,24 +3,28 @@ -intro | bpd +intro | bpd + + + + - - + +

BabyPandas Documentation

-

Assumption: Assume that df is a DataFrame, ser is a Series, arr is an array, and we have already run import babypandas as bpd and import numpy as np.

+

Assumption: Assume that df is a DataFrame, ser is a Series, arr is an array, and we already ran import babypandas as bpd and import numpy as np.


This section contains common and useful methods in the BabyPandas package. For this section, pets refers to the DataFrame below.

pets
IndexIDSpeciesColorWeightAgeIs_CatOwner_Comment
0dog_001dogblack405False There are no bad dogs, only bad owners.
1cat_001catgolden1.50.2TrueMy best birthday present ever!!!
2cat_002catblack159True****All you need is love and a cat.****
3dog_002dogwhite802FalseLove is a wet nose and a wagging tail.
4dog_003dogblack250.5FalseBe the person your dog thinks you are.
5ham_001hamsterblack13FalseNo, thank you!
6ham_002hamstergolden0.250.2FalseNo, thank you!
7cat_003catblack100TrueNo, thank you!
-

Download this data

+

Download this data

\ No newline at end of file diff --git a/docs/documentation/plotting/Bar Plot/index.html b/docs/documentation/plotting/Bar Plot/index.html index 83350c97..cfb8e6ec 100644 --- a/docs/documentation/plotting/Bar Plot/index.html +++ b/docs/documentation/plotting/Bar Plot/index.html @@ -6,13 +6,17 @@ Bar Plot | bpd + + + + - - + +

Bar Plot

df.plot(kind='bar', x=data_col, y=data_col) diff --git a/docs/documentation/plotting/Histogram/index.html b/docs/documentation/plotting/Histogram/index.html index 5534bbbc..619cf811 100644 --- a/docs/documentation/plotting/Histogram/index.html +++ b/docs/documentation/plotting/Histogram/index.html @@ -6,13 +6,17 @@ Histogram | bpd + + + + - - + +

Histogram

df.plot(kind='hist', y=data_col, bins=the_bins, density=True, ec='w') diff --git a/docs/documentation/plotting/Line Plot/index.html b/docs/documentation/plotting/Line Plot/index.html index 5e1eab34..c03b9442 100644 --- a/docs/documentation/plotting/Line Plot/index.html +++ b/docs/documentation/plotting/Line Plot/index.html @@ -6,13 +6,17 @@ Line Plot | bpd + + + + - - + +

Line Plot

df.plot(kind='line', x = data_col, y=data_col) diff --git a/docs/documentation/plotting/Scatter Plot/index.html b/docs/documentation/plotting/Scatter Plot/index.html index 651f7fca..e6b84ec6 100644 --- a/docs/documentation/plotting/Scatter Plot/index.html +++ b/docs/documentation/plotting/Scatter Plot/index.html @@ -6,13 +6,17 @@ Scatter Plot | bpd + + + + - - + +

Scatter Plot

df.plot(kind='scatter', x=data_col, y=data_col) diff --git a/docs/documentation/plotting/index.html b/docs/documentation/plotting/index.html index 40083aaf..14cd91a4 100644 --- a/docs/documentation/plotting/index.html +++ b/docs/documentation/plotting/index.html @@ -6,13 +6,17 @@ Plotting | bpd + + + + - - + +

Plotting

Plotting and visualization of DataFrames.

diff --git a/docs/documentation/querying/df[]/index.html b/docs/documentation/querying/df[]/index.html index bf3bb7c1..0d3cc47e 100644 --- a/docs/documentation/querying/df[]/index.html +++ b/docs/documentation/querying/df[]/index.html @@ -6,13 +6,17 @@ df[] | bpd + + + + - - + +

df[]

df[condition] diff --git a/docs/documentation/series-methods/index.html b/docs/documentation/series-methods/index.html index 5a91fd7a..7d03ae8b 100644 --- a/docs/documentation/series-methods/index.html +++ b/docs/documentation/series-methods/index.html @@ -6,13 +6,17 @@ Series Methods | bpd + + + + - - + +

Series Methods

Methods that can be performed on a Series.

diff --git a/docs/documentation/series-methods/ser.count()/index.html b/docs/documentation/series-methods/ser.count()/index.html index 8fb98e45..3875a790 100644 --- a/docs/documentation/series-methods/ser.count()/index.html +++ b/docs/documentation/series-methods/ser.count()/index.html @@ -6,13 +6,17 @@ ser.count() | bpd + + + + - - + +

ser.count()

ser.count() diff --git a/docs/documentation/series-methods/ser.max()/index.html b/docs/documentation/series-methods/ser.max()/index.html index d176d8b7..e0a403ea 100644 --- a/docs/documentation/series-methods/ser.max()/index.html +++ b/docs/documentation/series-methods/ser.max()/index.html @@ -6,13 +6,17 @@ ser.max() | bpd + + + + - - + +

ser.max()

ser.max() diff --git a/docs/documentation/series-methods/ser.mean()/index.html b/docs/documentation/series-methods/ser.mean()/index.html index 7383ecb9..a01525e0 100644 --- a/docs/documentation/series-methods/ser.mean()/index.html +++ b/docs/documentation/series-methods/ser.mean()/index.html @@ -6,13 +6,17 @@ ser.mean() | bpd + + + + - - + +

ser.mean()

ser.mean() diff --git a/docs/documentation/series-methods/ser.median()/index.html b/docs/documentation/series-methods/ser.median()/index.html index 2642ad4c..3ee7127c 100644 --- a/docs/documentation/series-methods/ser.median()/index.html +++ b/docs/documentation/series-methods/ser.median()/index.html @@ -6,13 +6,17 @@ ser.median() | bpd + + + + - - + +

ser.median()

ser.median() diff --git a/docs/documentation/series-methods/ser.min()/index.html b/docs/documentation/series-methods/ser.min()/index.html index 38058944..026226c6 100644 --- a/docs/documentation/series-methods/ser.min()/index.html +++ b/docs/documentation/series-methods/ser.min()/index.html @@ -6,13 +6,17 @@ ser.min() | bpd + + + + - - + +

ser.min()

ser.min() diff --git a/docs/documentation/series-methods/ser.str.capitalize()/index.html b/docs/documentation/series-methods/ser.str.capitalize()/index.html index b367d8cf..45a02d5b 100644 --- a/docs/documentation/series-methods/ser.str.capitalize()/index.html +++ b/docs/documentation/series-methods/ser.str.capitalize()/index.html @@ -6,13 +6,17 @@ ser.str.capitalize() | bpd + + + + - - + +

ser.str.capitalize()

ser.str.capitalize() diff --git a/docs/documentation/series-methods/ser.str.contains()/index.html b/docs/documentation/series-methods/ser.str.contains()/index.html index dbfedc72..ce6c4cd8 100644 --- a/docs/documentation/series-methods/ser.str.contains()/index.html +++ b/docs/documentation/series-methods/ser.str.contains()/index.html @@ -6,13 +6,17 @@ ser.str.contains() | bpd + + + + - - + +

ser.str.contains()

ser.str.contains(substring) diff --git a/docs/documentation/series-methods/ser.str.len()/index.html b/docs/documentation/series-methods/ser.str.len()/index.html index 5ceeba22..3411ac12 100644 --- a/docs/documentation/series-methods/ser.str.len()/index.html +++ b/docs/documentation/series-methods/ser.str.len()/index.html @@ -6,13 +6,17 @@ ser.str.len() | bpd + + + + - - + +

ser.str.len()

ser.str.len() diff --git a/docs/documentation/series-methods/ser.str.lower()/index.html b/docs/documentation/series-methods/ser.str.lower()/index.html index 1f071808..909f296b 100644 --- a/docs/documentation/series-methods/ser.str.lower()/index.html +++ b/docs/documentation/series-methods/ser.str.lower()/index.html @@ -6,13 +6,17 @@ ser.str.lower() | bpd + + + + - - + +

ser.str.lower()

ser.str.lower() diff --git a/docs/documentation/series-methods/ser.str.replace()/index.html b/docs/documentation/series-methods/ser.str.replace()/index.html index eae156c2..bc7c74d9 100644 --- a/docs/documentation/series-methods/ser.str.replace()/index.html +++ b/docs/documentation/series-methods/ser.str.replace()/index.html @@ -6,13 +6,17 @@ ser.str.replace() | bpd + + + + - - + +

ser.str.replace()

ser.str.replace(old, new) diff --git a/docs/documentation/series-methods/ser.str.split()/index.html b/docs/documentation/series-methods/ser.str.split()/index.html index 2e29e5e0..47f71023 100644 --- a/docs/documentation/series-methods/ser.str.split()/index.html +++ b/docs/documentation/series-methods/ser.str.split()/index.html @@ -6,13 +6,17 @@ ser.str.split() | bpd + + + + - - + +

ser.str.split()

ser.str.split(pat = None) diff --git a/docs/documentation/series-methods/ser.str.strip()/index.html b/docs/documentation/series-methods/ser.str.strip()/index.html index be148056..ffcd5796 100644 --- a/docs/documentation/series-methods/ser.str.strip()/index.html +++ b/docs/documentation/series-methods/ser.str.strip()/index.html @@ -6,13 +6,17 @@ ser.str.strip() | bpd + + + + - - + +

ser.str.strip()

ser.str.strip(to_strip = None) diff --git a/docs/documentation/series-methods/ser.str.title()/index.html b/docs/documentation/series-methods/ser.str.title()/index.html index 0c070c25..dabc40bb 100644 --- a/docs/documentation/series-methods/ser.str.title()/index.html +++ b/docs/documentation/series-methods/ser.str.title()/index.html @@ -6,13 +6,17 @@ ser.str.title() | bpd + + + + - - + +

ser.str.title()

ser.str.title() diff --git a/docs/documentation/series-methods/ser.str.upper()/index.html b/docs/documentation/series-methods/ser.str.upper()/index.html index 86ac73a1..03d95f5c 100644 --- a/docs/documentation/series-methods/ser.str.upper()/index.html +++ b/docs/documentation/series-methods/ser.str.upper()/index.html @@ -6,13 +6,17 @@ ser.str.upper() | bpd + + + + - - + +

ser.str.upper()

ser.str.upper() diff --git a/docs/documentation/series-methods/ser.sum()/index.html b/docs/documentation/series-methods/ser.sum()/index.html index 20f60fa9..40f511ba 100644 --- a/docs/documentation/series-methods/ser.sum()/index.html +++ b/docs/documentation/series-methods/ser.sum()/index.html @@ -6,13 +6,17 @@ ser.sum() | bpd + + + + - - + +

ser.sum()

ser.sum() diff --git a/docs/documentation/series-methods/ser.unique()/index.html b/docs/documentation/series-methods/ser.unique()/index.html index 8177b9cc..4c5438d7 100644 --- a/docs/documentation/series-methods/ser.unique()/index.html +++ b/docs/documentation/series-methods/ser.unique()/index.html @@ -6,13 +6,17 @@ ser.unique() | bpd + + + + - - + +

ser.unique()

ser.unique() diff --git a/docs/statistical-inference/bootstrapping/index.html b/docs/statistical-inference/bootstrapping/index.html index 522f40c5..582e754c 100644 --- a/docs/statistical-inference/bootstrapping/index.html +++ b/docs/statistical-inference/bootstrapping/index.html @@ -6,13 +6,17 @@ Bootstrapping and Confidence Intervals | bpd + + + + - - + +

Bootstrapping and Confidence Intervals

Concept

diff --git a/docs/statistical-inference/central_limit_theorem/index.html b/docs/statistical-inference/central_limit_theorem/index.html index c5560e6c..bd9733c4 100644 --- a/docs/statistical-inference/central_limit_theorem/index.html +++ b/docs/statistical-inference/central_limit_theorem/index.html @@ -6,13 +6,17 @@ The Central Limit Theorem | bpd + + + + - - + +

The Central Limit Theorem

Concept

diff --git a/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT/index.html b/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT/index.html index 895c2903..f65aec68 100644 --- a/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT/index.html +++ b/docs/statistical-inference/concept check/bootstrapping_vs_the_CLT/index.html @@ -6,13 +6,17 @@ Bootstrapping vs. the CLT | bpd + + + + - - + +

Bootstrapping vs. the CLT

Difference

diff --git a/docs/statistical-inference/concept check/hypothesis_vs_permutation/index.html b/docs/statistical-inference/concept check/hypothesis_vs_permutation/index.html index fafafe89..cceca08e 100644 --- a/docs/statistical-inference/concept check/hypothesis_vs_permutation/index.html +++ b/docs/statistical-inference/concept check/hypothesis_vs_permutation/index.html @@ -6,13 +6,17 @@ Hypothesis Test vs. Permutation Test | bpd + + + + - - + +

Hypothesis Test vs. Permutation Test

Difference

diff --git a/docs/statistical-inference/hypothesis_test/index.html b/docs/statistical-inference/hypothesis_test/index.html index ed7e0c0f..79b7ce30 100644 --- a/docs/statistical-inference/hypothesis_test/index.html +++ b/docs/statistical-inference/hypothesis_test/index.html @@ -6,13 +6,17 @@ Hypothesis Test | bpd + + + + - - + +

Hypothesis Test

Concept

diff --git a/docs/statistical-inference/intro/index.html b/docs/statistical-inference/intro/index.html index 5425c007..476e346a 100644 --- a/docs/statistical-inference/intro/index.html +++ b/docs/statistical-inference/intro/index.html @@ -6,13 +6,17 @@ intro | bpd + + + + - - + +

Statistical Inference

@@ -21,6 +25,6 @@

This section provides explanations and code implementations of theories covered in DSC 10. For examples in this section, refer to the full_pets DataFrame, which has more data than pets DataFrame (which is used in the Documentation section).

full_pets
IndexIDSpeciesColorWeightAgeIs_CatOwner_Comment
0dog_001dogblack405False There are no bad dogs, only bad owners.
1cat_001catgolden1.50.2TrueMy best birthday present ever!!!
2cat_002catblack159True****All you need is love and a cat.****
3dog_002dogwhite802FalseLove is a wet nose and a wagging tail.
4dog_003dogblack250.5FalseBe the person your dog thinks you are.
5ham_001hamsterblack13FalseNo, thank you!
6ham_002hamstergolden0.250.2FalseNo, thank you!
7cat_003catblack100TrueNo, thank you!
8dog_004dogblack456.7FalseNo, thank you!
9dog_005dogwhite107FalseNo, thank you!
10dog_006doggolden354FalseNo, thank you!
11cat_004catblack101.2TrueNo, thank you!
12cat_005catwhite152.5TrueNo, thank you!
13ham_003hamsterblack0.50.1FalseNo, thank you!
14dog_007dogwhite506.1FalseNo, thank you!
15ham_004hamstergolden0.250.2FalseNo, thank you!
16dog_008dogblack405FalseNo, thank you!
17dog_009dogwhite304.8FalseNo, thank you!
18cat_006catblack30.5TrueNo, thank you!
-

Download this data

+

Download this data

\ No newline at end of file diff --git a/docs/statistical-inference/null_and_alt/index.html b/docs/statistical-inference/null_and_alt/index.html index 86a97d9d..5e57f6c4 100644 --- a/docs/statistical-inference/null_and_alt/index.html +++ b/docs/statistical-inference/null_and_alt/index.html @@ -6,13 +6,17 @@ Null & Alternative Hypothesis | bpd + + + + - - + +

Null & Alternative Hypothesis

Concept

diff --git a/docs/statistical-inference/obs_and_test_stats/index.html b/docs/statistical-inference/obs_and_test_stats/index.html index 288e4e66..1e2103b5 100644 --- a/docs/statistical-inference/obs_and_test_stats/index.html +++ b/docs/statistical-inference/obs_and_test_stats/index.html @@ -6,13 +6,17 @@ Observed & Test Statistic | bpd + + + + - - + +

Observed & Test Statistic

Concept

diff --git a/docs/statistical-inference/p_value/index.html b/docs/statistical-inference/p_value/index.html index 3d7f4c7a..88ba1509 100644 --- a/docs/statistical-inference/p_value/index.html +++ b/docs/statistical-inference/p_value/index.html @@ -6,13 +6,17 @@ P-value | bpd + + + + - - + +

P-value

Concept

diff --git a/docs/statistical-inference/parameters-and-statistics/index.html b/docs/statistical-inference/parameters-and-statistics/index.html index 32f04a7d..20030fd7 100644 --- a/docs/statistical-inference/parameters-and-statistics/index.html +++ b/docs/statistical-inference/parameters-and-statistics/index.html @@ -6,13 +6,17 @@ Parameters and Statistics | bpd + + + + - - + +

Parameters and Statistics

Concept

diff --git a/docs/statistical-inference/permutation_test/index.html b/docs/statistical-inference/permutation_test/index.html index 6f7c8572..22d59121 100644 --- a/docs/statistical-inference/permutation_test/index.html +++ b/docs/statistical-inference/permutation_test/index.html @@ -6,13 +6,17 @@ Permutation Test | bpd + + + + - - + +

Permutation Test

Concept

diff --git a/docs/statistical-inference/random sampling/df.sample()/index.html b/docs/statistical-inference/random sampling/df.sample()/index.html index 534967e0..ffa11733 100644 --- a/docs/statistical-inference/random sampling/df.sample()/index.html +++ b/docs/statistical-inference/random sampling/df.sample()/index.html @@ -6,13 +6,17 @@ Sample | bpd + + + + - - + +

Sample

df.sample(n, replace=False) diff --git a/docs/statistical-inference/random sampling/np.random.choice()/index.html b/docs/statistical-inference/random sampling/np.random.choice()/index.html index 04ded339..c5b0bd92 100644 --- a/docs/statistical-inference/random sampling/np.random.choice()/index.html +++ b/docs/statistical-inference/random sampling/np.random.choice()/index.html @@ -6,13 +6,17 @@ Random Choice | bpd + + + + - - + +

Random Choice

np.random.choice(arr, size, replace=True, p=[p_0, p_1, ...]) diff --git a/docs/statistical-inference/random sampling/np.random.multinomial()/index.html b/docs/statistical-inference/random sampling/np.random.multinomial()/index.html index 95e5a592..6c009269 100644 --- a/docs/statistical-inference/random sampling/np.random.multinomial()/index.html +++ b/docs/statistical-inference/random sampling/np.random.multinomial()/index.html @@ -6,13 +6,17 @@ Random Multinomial | bpd + + + + - - + +

Random Multinomial

np.random.multinomial(n, [p_0, p_1, p_2, ...]) diff --git a/docs/statistical-inference/random sampling/np.random.permutation()/index.html b/docs/statistical-inference/random sampling/np.random.permutation()/index.html index cbf9aef4..b707ab97 100644 --- a/docs/statistical-inference/random sampling/np.random.permutation()/index.html +++ b/docs/statistical-inference/random sampling/np.random.permutation()/index.html @@ -6,13 +6,17 @@ Random Permutation | bpd + + + + - - + +

Random Permutation

np.random.permutation(arr) diff --git a/docs/statistical-inference/random sampling/sampling/index.html b/docs/statistical-inference/random sampling/sampling/index.html index ceb210f0..096d2911 100644 --- a/docs/statistical-inference/random sampling/sampling/index.html +++ b/docs/statistical-inference/random sampling/sampling/index.html @@ -6,13 +6,17 @@ Sampling | bpd + + + + - - + +

Sampling

Concept

diff --git a/docs/statistical-inference/spread_of_a_distribution/index.html b/docs/statistical-inference/spread_of_a_distribution/index.html index 8e0aab50..62419ce4 100644 --- a/docs/statistical-inference/spread_of_a_distribution/index.html +++ b/docs/statistical-inference/spread_of_a_distribution/index.html @@ -6,13 +6,17 @@ Spread of a Distribution | bpd + + + + - - + +

Spread of a Distribution

Concept

diff --git a/docs/statistical-inference/standard_normal_distribution/index.html b/docs/statistical-inference/standard_normal_distribution/index.html index 29d08005..54374cb1 100644 --- a/docs/statistical-inference/standard_normal_distribution/index.html +++ b/docs/statistical-inference/standard_normal_distribution/index.html @@ -6,13 +6,17 @@ The Standard Normal Distribution | bpd + + + + - - + +

The Standard Normal Distribution

Concept

diff --git a/docs/statistical-inference/standard_units/index.html b/docs/statistical-inference/standard_units/index.html index 91b6bb87..93326642 100644 --- a/docs/statistical-inference/standard_units/index.html +++ b/docs/statistical-inference/standard_units/index.html @@ -6,13 +6,17 @@ Standard Units, Correlation, Regression | bpd + + + + - - + +

Standard Units, Correlation, Regression

Concept

diff --git a/docs/tags/bootstrapping/index.html b/docs/tags/bootstrapping/index.html index d6cddd41..9618c775 100644 --- a/docs/tags/bootstrapping/index.html +++ b/docs/tags/bootstrapping/index.html @@ -6,13 +6,17 @@ One doc tagged with "bootstrapping" | bpd + + + + - - + +

One doc tagged with "bootstrapping"

View All Tags
diff --git a/docs/tags/chebyshevs-inequality/index.html b/docs/tags/chebyshevs-inequality/index.html index 1632678a..97603d18 100644 --- a/docs/tags/chebyshevs-inequality/index.html +++ b/docs/tags/chebyshevs-inequality/index.html @@ -6,13 +6,17 @@ One doc tagged with "chebyshev’s inequality" | bpd + + + + - - + +

One doc tagged with "chebyshev’s inequality"

View All Tags
diff --git a/docs/tags/confidence-intervals/index.html b/docs/tags/confidence-intervals/index.html index c7722794..4f9e2819 100644 --- a/docs/tags/confidence-intervals/index.html +++ b/docs/tags/confidence-intervals/index.html @@ -6,13 +6,17 @@ One doc tagged with "confidence intervals" | bpd + + + + - - + +

One doc tagged with "confidence intervals"

View All Tags
diff --git a/docs/tags/correlation/index.html b/docs/tags/correlation/index.html index baf3a6f0..9edf4b6e 100644 --- a/docs/tags/correlation/index.html +++ b/docs/tags/correlation/index.html @@ -6,13 +6,17 @@ One doc tagged with "correlation" | bpd + + + + - - + +

One doc tagged with "correlation"

View All Tags
diff --git a/docs/tags/for-loop/index.html b/docs/tags/for-loop/index.html index 8204835a..185d12df 100644 --- a/docs/tags/for-loop/index.html +++ b/docs/tags/for-loop/index.html @@ -6,13 +6,17 @@ 3 docs tagged with "for-loop" | bpd + + + + - - + +
diff --git a/docs/tags/functions/index.html b/docs/tags/functions/index.html index 63ab34c0..421c43d1 100644 --- a/docs/tags/functions/index.html +++ b/docs/tags/functions/index.html @@ -6,13 +6,17 @@ 2 docs tagged with "functions" | bpd + + + + - - + +

2 docs tagged with "functions"

View All Tags
diff --git a/docs/tags/histogram/index.html b/docs/tags/histogram/index.html index 36080396..c53fb135 100644 --- a/docs/tags/histogram/index.html +++ b/docs/tags/histogram/index.html @@ -6,13 +6,17 @@ 3 docs tagged with "histogram" | bpd + + + + - - + +
diff --git a/docs/tags/hypothesis-test/index.html b/docs/tags/hypothesis-test/index.html index 61eb50f2..f8c303e7 100644 --- a/docs/tags/hypothesis-test/index.html +++ b/docs/tags/hypothesis-test/index.html @@ -6,13 +6,17 @@ One doc tagged with "hypothesis test" | bpd + + + + - - + +

One doc tagged with "hypothesis test"

View All Tags
diff --git a/docs/tags/index.html b/docs/tags/index.html index 539205ca..0762924d 100644 --- a/docs/tags/index.html +++ b/docs/tags/index.html @@ -6,13 +6,17 @@ Tags | bpd + + + + - - + + diff --git a/docs/tags/normal-distributions/index.html b/docs/tags/normal-distributions/index.html index c4eef251..691aab5a 100644 --- a/docs/tags/normal-distributions/index.html +++ b/docs/tags/normal-distributions/index.html @@ -6,13 +6,17 @@ One doc tagged with "normal distributions" | bpd + + + + - - + +

One doc tagged with "normal distributions"

View All Tags
diff --git a/docs/tags/permutation-test/index.html b/docs/tags/permutation-test/index.html index 859988ea..12cc1c50 100644 --- a/docs/tags/permutation-test/index.html +++ b/docs/tags/permutation-test/index.html @@ -6,13 +6,17 @@ One doc tagged with "permutation test" | bpd + + + + - - + +

One doc tagged with "permutation test"

View All Tags
diff --git a/docs/tags/querying/index.html b/docs/tags/querying/index.html index 520c168e..d8206d7e 100644 --- a/docs/tags/querying/index.html +++ b/docs/tags/querying/index.html @@ -6,13 +6,17 @@ 2 docs tagged with "querying" | bpd + + + + - - + +

2 docs tagged with "querying"

View All Tags
diff --git a/docs/tags/regression/index.html b/docs/tags/regression/index.html index fe9db5ba..5c13738a 100644 --- a/docs/tags/regression/index.html +++ b/docs/tags/regression/index.html @@ -6,13 +6,17 @@ One doc tagged with "regression" | bpd + + + + - - + +

One doc tagged with "regression"

View All Tags
diff --git a/docs/tags/standard-deviation/index.html b/docs/tags/standard-deviation/index.html index d38a2bfd..4ab88ffd 100644 --- a/docs/tags/standard-deviation/index.html +++ b/docs/tags/standard-deviation/index.html @@ -6,13 +6,17 @@ One doc tagged with "standard deviation" | bpd + + + + - - + +

One doc tagged with "standard deviation"

View All Tags
diff --git a/docs/tags/standard-units/index.html b/docs/tags/standard-units/index.html index 07761c23..dbdcfde1 100644 --- a/docs/tags/standard-units/index.html +++ b/docs/tags/standard-units/index.html @@ -6,13 +6,17 @@ 2 docs tagged with "standard units" | bpd + + + + - - + + diff --git a/docs/tags/the-central-limit-theorem/index.html b/docs/tags/the-central-limit-theorem/index.html index af023f64..0e149fad 100644 --- a/docs/tags/the-central-limit-theorem/index.html +++ b/docs/tags/the-central-limit-theorem/index.html @@ -6,13 +6,17 @@ One doc tagged with "the central limit theorem" | bpd + + + + - - + +

One doc tagged with "the central limit theorem"

View All Tags
diff --git a/docs/tags/the-standard-normal-distribution/index.html b/docs/tags/the-standard-normal-distribution/index.html index 45448a60..25aba23e 100644 --- a/docs/tags/the-standard-normal-distribution/index.html +++ b/docs/tags/the-standard-normal-distribution/index.html @@ -6,13 +6,17 @@ One doc tagged with "the standard normal distribution" | bpd + + + + - - + +

One doc tagged with "the standard normal distribution"

View All Tags
diff --git a/img/.DS_Store b/img/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..9180f405ce6f50341eb79a2905ff65b96eccf911 GIT binary patch literal 8196 zcmeHM!EVz)5S?ucbyO%70#UUBS>oE3MzjbC4k45SSAyUGDA=)^x^=u!>@QV|^7f9}{qw;8ku^8VP%4R?tv=6&Yekbt9COsLkxmaj(1IT0yds2W+ z;jc`a)I>BMPB~fxlry3`9cVU)Ly)aMYWaCOj0zBz}ynO zllQ_*b6T9=OWS6>zxwSsO0&()?_y?l?$YIXXWm(G-qrSGuaCEfG7x|^7eI<1hQ9^-6TjAwx%yQC8tzhx^;B4U0!p`D=h=(l7U$r^)l!G&nCbBKbLc}L0bka1Jf}e=5}g3Rp<_W35~)y z*LG3gqjF)rzLpAtMy2DBDjkPB{lgG_7pjb@7}?hnBPjp=MZn}=EcW@Ymc%v}fPvp9 CL2mp2 literal 0 HcmV?d00001 diff --git a/index.html b/index.html index 2a06daa8..57e0ab7e 100644 --- a/index.html +++ b/index.html @@ -6,13 +6,17 @@ bpd reference sheet | bpd + + + + - - + +

bpd

DSC 10 ❤️ bpd

DSC 10: Principles of Data Science

(4)

This first course in data science introduces students to data exploration, statistical inference, and prediction. It introduces Python programming language as a tool for tabular data manipulation, visualization, and simulation. Through homework assignments and projects, students are given an opportunity to develop their analytical skills while working with real-world datasets from a variety of domains.

diff --git a/search/index.html b/search/index.html index 09dc97b7..0db3381d 100644 --- a/search/index.html +++ b/search/index.html @@ -6,13 +6,17 @@ Search the documentation | bpd + + + + - - + +

Search the documentation