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/js/1f418535.81deee12.js b/assets/js/1f418535.81deee12.js
deleted file mode 100644
index 347a545e..00000000
--- a/assets/js/1f418535.81deee12.js
+++ /dev/null
@@ -1 +0,0 @@
-"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":"np.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":"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":"Permutation Test","href":"/bpd-reference/docs/statistical-inference/permutation_test","docId":"statistical-inference/permutation_test","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}]}]},"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 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/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/np.random.choice()":{"id":"statistical-inference/random sampling/np.random.choice()","title":"np.random.choice()","description":"np.random.choice()","sidebar":"statsSidebar"},"statistical-inference/random sampling/sampling":{"id":"statistical-inference/random sampling/sampling","title":"Sampling","description":"Concept","sidebar":"statsSidebar"}}}}')}}]);
\ No newline at end of file
diff --git a/assets/js/1f418535.8b4c4f9e.js b/assets/js/1f418535.8b4c4f9e.js
new file mode 100644
index 00000000..a0694363
--- /dev/null
+++ b/assets/js/1f418535.8b4c4f9e.js
@@ -0,0 +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":"np.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":"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":"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":"Boostrapping and Confidence Intervals","href":"/bpd-reference/docs/statistical-inference/bootstrapping","docId":"statistical-inference/bootstrapping","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}]}]},"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 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/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/np.random.choice()":{"id":"statistical-inference/random sampling/np.random.choice()","title":"np.random.choice()","description":"np.random.choice()","sidebar":"statsSidebar"},"statistical-inference/random sampling/sampling":{"id":"statistical-inference/random sampling/sampling","title":"Sampling","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/29759c23.08a60880.js b/assets/js/29759c23.08a60880.js
deleted file mode 100644
index 5f830dd6..00000000
--- a/assets/js/29759c23.08a60880.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8449],{1158:e=>{e.exports=JSON.parse('{"tag":{"label":"functions","permalink":"/bpd-reference/docs/tags/functions","allTagsPath":"/bpd-reference/docs/tags","count":2,"items":[{"id":"statistical-inference/hypothesis_test","title":"Hypothesis Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/hypothesis_test"},{"id":"statistical-inference/permutation_test","title":"Permutation Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/permutation_test"}],"unlisted":false}}')}}]);
\ No newline at end of file
diff --git a/assets/js/29759c23.5f25b811.js b/assets/js/29759c23.5f25b811.js
new file mode 100644
index 00000000..d3108851
--- /dev/null
+++ b/assets/js/29759c23.5f25b811.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8449],{1158:e=>{e.exports=JSON.parse('{"tag":{"label":"functions","permalink":"/bpd-reference/docs/tags/functions","allTagsPath":"/bpd-reference/docs/tags","count":3,"items":[{"id":"statistical-inference/bootstrapping","title":"Bootstrapping and Confidence Intervals","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/bootstrapping"},{"id":"statistical-inference/hypothesis_test","title":"Hypothesis Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/hypothesis_test"},{"id":"statistical-inference/permutation_test","title":"Permutation Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/permutation_test"}],"unlisted":false}}')}}]);
\ No newline at end of file
diff --git a/assets/js/541bd1cc.7439de24.js b/assets/js/541bd1cc.7439de24.js
new file mode 100644
index 00000000..1249538f
--- /dev/null
+++ b/assets/js/541bd1cc.7439de24.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7354],{9076:e=>{e.exports=JSON.parse('{"tag":{"label":"histogram","permalink":"/bpd-reference/docs/tags/histogram","allTagsPath":"/bpd-reference/docs/tags","count":3,"items":[{"id":"statistical-inference/bootstrapping","title":"Bootstrapping and Confidence Intervals","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/bootstrapping"},{"id":"statistical-inference/hypothesis_test","title":"Hypothesis Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/hypothesis_test"},{"id":"statistical-inference/permutation_test","title":"Permutation Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/permutation_test"}],"unlisted":false}}')}}]);
\ No newline at end of file
diff --git a/assets/js/541bd1cc.7df81fc8.js b/assets/js/541bd1cc.7df81fc8.js
deleted file mode 100644
index 536083b3..00000000
--- a/assets/js/541bd1cc.7df81fc8.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7354],{9076:e=>{e.exports=JSON.parse('{"tag":{"label":"histogram","permalink":"/bpd-reference/docs/tags/histogram","allTagsPath":"/bpd-reference/docs/tags","count":2,"items":[{"id":"statistical-inference/hypothesis_test","title":"Hypothesis Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/hypothesis_test"},{"id":"statistical-inference/permutation_test","title":"Permutation Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/permutation_test"}],"unlisted":false}}')}}]);
\ No newline at end of file
diff --git a/assets/js/61546123.a237ebce.js b/assets/js/61546123.a237ebce.js
new file mode 100644
index 00000000..0e48626b
--- /dev/null
+++ b/assets/js/61546123.a237ebce.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:()=>c,contentTitle:()=>r,default:()=>o,frontMatter:()=>i,metadata:()=>l,toc:()=>m});var n=a(4848),t=a(8453);a(8597),a(5158);const i={sidebar_position:7,sidebar_label:"Standard Units, Correlation, Regression",title:"Standard Units, Correlation, Regression",tags:["querying"]},r=void 0,l={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:"querying",permalink:"/bpd-reference/docs/tags/querying"}],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7,sidebar_label:"Standard Units, Correlation, Regression",title:"Standard Units, Correlation, Regression",tags:["querying"]},sidebar:"statsSidebar",previous:{title:"Permutation Test",permalink:"/bpd-reference/docs/statistical-inference/permutation_test"},next:{title:"Boostrapping and Confidence Intervals",permalink:"/bpd-reference/docs/statistical-inference/bootstrapping"}},c={},m=[{value:"Concept",id:"concept",level:2}];function d(s){const e={admonition:"admonition",annotation:"annotation",h2:"h2",li:"li",math:"math",mfrac:"mfrac",mi:"mi",mo:"mo",mrow:"mrow",mstyle:"mstyle",msub:"msub",mtext:"mtext",p:"p",semantics:"semantics",span:"span",strong:"strong",ul:"ul",...(0,t.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:"Standardization"}),": Converting all values of a variable (i.e. a column) to standard units (resulting values are standardized)."]}),(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"})]})]})]})]})}),(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.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"]})]})]})}function o(s={}){const{wrapper:e}={...(0,t.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:()=>t});a(6540);var n=a(4848);const t=s=>{let{data:e}=s,a=[],t=[],i="",r=[];if(e){const s=JSON.parse(e);a=s.columns||[],t=s.data||[],i=s.indexName||"Index",r=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:i}),a.map(((s,e)=>(0,n.jsx)("th",{children:s},e)))]})}),(0,n.jsx)("tbody",{children:t.map(((s,e)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:r[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:()=>i});var n=a(6540),t=a(4848);const i=function(s){let{src:e,sourceLink:a,width:i="100%",height:r="100%",paddingBottom:l="56.25%"}=s;const[c,m]=(0,n.useState)(0);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{position:"relative",height:"0",paddingBottom:l,overflow:"hidden",maxWidth:"100%"},children:(0,t.jsx)("iframe",{src:e,style:{position:"absolute",top:0,left:0,width:i,height:r,frameBorder:"0",allowFullScreen:!0}},c)}),(0,t.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"20px 0"},children:(0,t.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:"(Source)"})}),(0,t.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"10px 0"},children:(0,t.jsx)("button",{onClick:()=>{m((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"})})]})}},8453:(s,e,a)=>{a.d(e,{R:()=>r,x:()=>l});var n=a(6540);const t={},i=n.createContext(t);function r(s){const e=n.useContext(i);return n.useMemo((function(){return"function"==typeof s?s(e):{...e,...s}}),[e,s])}function l(s){let e;return e=s.disableParentContext?"function"==typeof s.components?s.components(t):s.components||t:r(s.components),n.createElement(i.Provider,{value:e},s.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/79080f49.9a0341a0.js b/assets/js/79080f49.9a0341a0.js
new file mode 100644
index 00000000..c1a6ce25
--- /dev/null
+++ b/assets/js/79080f49.9a0341a0.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2540],{3730:e=>{e.exports=JSON.parse('{"tag":{"label":"for-loop","permalink":"/bpd-reference/docs/tags/for-loop","allTagsPath":"/bpd-reference/docs/tags","count":3,"items":[{"id":"statistical-inference/bootstrapping","title":"Bootstrapping and Confidence Intervals","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/bootstrapping"},{"id":"statistical-inference/hypothesis_test","title":"Hypothesis Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/hypothesis_test"},{"id":"statistical-inference/permutation_test","title":"Permutation Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/permutation_test"}],"unlisted":false}}')}}]);
\ No newline at end of file
diff --git a/assets/js/79080f49.9dc19c6a.js b/assets/js/79080f49.9dc19c6a.js
deleted file mode 100644
index eef784f0..00000000
--- a/assets/js/79080f49.9dc19c6a.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[2540],{3730:e=>{e.exports=JSON.parse('{"tag":{"label":"for-loop","permalink":"/bpd-reference/docs/tags/for-loop","allTagsPath":"/bpd-reference/docs/tags","count":2,"items":[{"id":"statistical-inference/hypothesis_test","title":"Hypothesis Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/hypothesis_test"},{"id":"statistical-inference/permutation_test","title":"Permutation Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/permutation_test"}],"unlisted":false}}')}}]);
\ No newline at end of file
diff --git a/assets/js/8b4ce11c.2d545e07.js b/assets/js/8b4ce11c.2d545e07.js
deleted file mode 100644
index 91cc4892..00000000
--- a/assets/js/8b4ce11c.2d545e07.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5848],{779:e=>{e.exports=JSON.parse('{"tag":{"label":"querying","permalink":"/bpd-reference/docs/tags/querying","allTagsPath":"/bpd-reference/docs/tags","count":2,"items":[{"id":"statistical-inference/hypothesis_test","title":"Hypothesis Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/hypothesis_test"},{"id":"statistical-inference/permutation_test","title":"Permutation Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/permutation_test"}],"unlisted":false}}')}}]);
\ No newline at end of file
diff --git a/assets/js/8b4ce11c.9398460a.js b/assets/js/8b4ce11c.9398460a.js
new file mode 100644
index 00000000..4af0a9ef
--- /dev/null
+++ b/assets/js/8b4ce11c.9398460a.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5848],{779:e=>{e.exports=JSON.parse('{"tag":{"label":"querying","permalink":"/bpd-reference/docs/tags/querying","allTagsPath":"/bpd-reference/docs/tags","count":4,"items":[{"id":"statistical-inference/bootstrapping","title":"Bootstrapping and Confidence Intervals","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/bootstrapping"},{"id":"statistical-inference/hypothesis_test","title":"Hypothesis Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/hypothesis_test"},{"id":"statistical-inference/permutation_test","title":"Permutation Test","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/permutation_test"},{"id":"statistical-inference/standard_units","title":"Standard Units, Correlation, Regression","description":"Concept","permalink":"/bpd-reference/docs/statistical-inference/standard_units"}],"unlisted":false}}')}}]);
\ No newline at end of file
diff --git a/assets/js/9f1843d8.3aa47200.js b/assets/js/9f1843d8.3aa47200.js
deleted file mode 100644
index 0c22f26f..00000000
--- a/assets/js/9f1843d8.3aa47200.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:7,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:7,frontMatter:{sidebar_position:7,sidebar_label:"Permutation Test",title:"Permutation Test",tags:["querying","functions","for-loop","histogram"]},sidebar:"statsSidebar",previous:{title:"Hypothesis Test",permalink:"/bpd-reference/docs/statistical-inference/hypothesis_test"},next:{title:"Hypothesis Test vs. Permutation Test",permalink:"/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation"}},d={},h=[{value:"Concept",id:"concept",level:2},{value:"Code Example",id:"code-example",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",children:"Code Example"}),"\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:"Our pair of hypotheses is:"}),(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Null Hypothesis:"})," The mean weights of dogs and cats are the ",(0,s.jsx)(t.em,{children:"same"}),"."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Alternative Hypothesis:"})," The mean weights of dogs and cats are ",(0,s.jsx)(t.em,{children:"different"}),"."]}),"\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"})]})})]})," 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 test 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,width:a="100%",height:r="100%",paddingBottom:o="56.25%"}=e;const[l,c]=(0,s.useState)(0);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{position:"relative",height:"0",paddingBottom:o,overflow:"hidden",maxWidth:"100%"},children:(0,i.jsx)("iframe",{src:t,style:{position:"absolute",top:0,left:0,width:a,height:r,frameBorder:"0",allowFullScreen:!0}},l)}),(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:()=>{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"})})]})}},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.b955c320.js b/assets/js/9f1843d8.b955c320.js
new file mode 100644
index 00000000..fa883305
--- /dev/null
+++ b/assets/js/9f1843d8.b955c320.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:7,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:7,frontMatter:{sidebar_position:7,sidebar_label:"Permutation Test",title:"Permutation Test",tags:["querying","functions","for-loop","histogram"]},sidebar:"statsSidebar",previous:{title:"Hypothesis Test",permalink:"/bpd-reference/docs/statistical-inference/hypothesis_test"},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",id:"code-example",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",children:"Code Example"}),"\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:"Our pair of hypotheses is:"}),(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Null Hypothesis:"})," The mean weights of dogs and cats are the ",(0,s.jsx)(t.em,{children:"same"}),"."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Alternative Hypothesis:"})," The mean weights of dogs and cats are ",(0,s.jsx)(t.em,{children:"different"}),"."]}),"\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"})]})})]})," 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 test 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,width:a="100%",height:r="100%",paddingBottom:o="56.25%"}=e;const[l,c]=(0,s.useState)(0);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{position:"relative",height:"0",paddingBottom:o,overflow:"hidden",maxWidth:"100%"},children:(0,i.jsx)("iframe",{src:t,style:{position:"absolute",top:0,left:0,width:a,height:r,frameBorder:"0",allowFullScreen:!0}},l)}),(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:()=>{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"})})]})}},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/d4f68316.3a5908d0.js b/assets/js/d4f68316.3a5908d0.js
new file mode 100644
index 00000000..7f20d41f
--- /dev/null
+++ b/assets/js/d4f68316.3a5908d0.js
@@ -0,0 +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:()=>h,frontMatter:()=>r,metadata:()=>c,toc:()=>l});var o=n(4848),s=n(8453);n(8597),n(5158);const r={sidebar_position:1,sidebar_label:"Hypothesis Test vs. Permutation Test",title:"Hypothesis Test vs. 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:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,sidebar_label:"Hypothesis Test vs. Permutation Test",title:"Hypothesis Test vs. Permutation Test"},sidebar:"statsSidebar",previous:{title:"Boostrapping and Confidence Intervals",permalink:"/bpd-reference/docs/statistical-inference/bootstrapping"}},a={},l=[{value:"Difference",id:"difference",level:2},{value:"Concept Check \ud83d\udc40",id:"concept-check-",level:2}];function d(e){const t={admonition:"admonition",h2:"h2",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,s.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,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.h2,{id:"difference",children:"Difference"}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.strong,{children:"Hypothesis Testing"})}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:["A ",(0,o.jsx)(t.strong,{children:"population distribution"}),"."]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.strong,{children:"One"})," observed ",(0,o.jsx)(t.strong,{children:"sample"}),"."]}),"\n",(0,o.jsx)(t.li,{children:"Answers questions in the form: Does this sample look like it was drawn from the population?"}),"\n"]}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.strong,{children:"Permutation Testing"})}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.strong,{children:"No"})," information about any ",(0,o.jsx)(t.strong,{children:"population distributions"}),"."]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.strong,{children:"Two"})," observed ",(0,o.jsx)(t.strong,{children:"samples"}),"."]}),"\n",(0,o.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,o.jsx)(t.h2,{id:"concept-check-",children:"Concept Check \ud83d\udc40"}),"\n",(0,o.jsx)(t.p,{children:"Which test do you choose in each of the following scenarios (Hypothesis Test or Permutation Test)?"}),"\n",(0,o.jsxs)(t.ol,{children:["\n",(0,o.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,o.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,o.jsxs)(n,{children:[(0,o.jsx)("summary",{children:"Answer"}),(0,o.jsxs)(t.ol,{children:["\n",(0,o.jsx)(t.li,{children:"Hypothesis Test."}),"\n",(0,o.jsx)(t.li,{children:"Permutation Test."}),"\n"]}),(0,o.jsxs)(t.admonition,{type:"tip",children:[(0,o.jsx)(t.p,{children:"If 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,o.jsx)(t.p,{children:"However, for the second scenario, we cannot infer one proportion from another. Thus, it is a permutation test."})]})]})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},8597:(e,t,n)=>{n.d(t,{A:()=>s});n(6540);var o=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,o.jsx)("div",{className:"dataframe-container",children:(0,o.jsxs)("table",{className:"dataframe-table",children:[(0,o.jsx)("thead",{children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{children:r}),n.map(((e,t)=>(0,o.jsx)("th",{children:e},t)))]})}),(0,o.jsx)("tbody",{children:s.map(((e,t)=>(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{className:"index-value",children:i[t]}),e.map(((e,t)=>{return(0,o.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 o=n(6540),s=n(4848);const r=function(e){let{src:t,sourceLink:n,width:r="100%",height:i="100%",paddingBottom:c="56.25%"}=e;const[a,l]=(0,o.useState)(0);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{style:{position:"relative",height:"0",paddingBottom:c,overflow:"hidden",maxWidth:"100%"},children:(0,s.jsx)("iframe",{src:t,style:{position:"absolute",top:0,left:0,width:r,height:i,frameBorder:"0",allowFullScreen:!0}},a)}),(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:()=>{l((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 o=n(6540);const s={},r=o.createContext(s);function i(e){const t=o.useContext(r);return o.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(s):e.components||s:i(e.components),o.createElement(r.Provider,{value:t},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/d4f68316.4be0fa82.js b/assets/js/d4f68316.4be0fa82.js
deleted file mode 100644
index 87096a79..00000000
--- a/assets/js/d4f68316.4be0fa82.js
+++ /dev/null
@@ -1 +0,0 @@
-"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:()=>h,frontMatter:()=>r,metadata:()=>c,toc:()=>l});var o=n(4848),s=n(8453);n(8597),n(5158);const r={sidebar_position:1,sidebar_label:"Hypothesis Test vs. Permutation Test",title:"Hypothesis Test vs. 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:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,sidebar_label:"Hypothesis Test vs. Permutation Test",title:"Hypothesis Test vs. Permutation Test"},sidebar:"statsSidebar",previous:{title:"Permutation Test",permalink:"/bpd-reference/docs/statistical-inference/permutation_test"}},a={},l=[{value:"Difference",id:"difference",level:2},{value:"Concept Check \ud83d\udc40",id:"concept-check-",level:2}];function d(e){const t={admonition:"admonition",h2:"h2",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,s.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,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.h2,{id:"difference",children:"Difference"}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.strong,{children:"Hypothesis Testing"})}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:["A ",(0,o.jsx)(t.strong,{children:"population distribution"}),"."]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.strong,{children:"One"})," observed ",(0,o.jsx)(t.strong,{children:"sample"}),"."]}),"\n",(0,o.jsx)(t.li,{children:"Answers questions in the form: Does this sample look like it was drawn from the population?"}),"\n"]}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.strong,{children:"Permutation Testing"})}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.strong,{children:"No"})," information about any ",(0,o.jsx)(t.strong,{children:"population distributions"}),"."]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.strong,{children:"Two"})," observed ",(0,o.jsx)(t.strong,{children:"samples"}),"."]}),"\n",(0,o.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,o.jsx)(t.h2,{id:"concept-check-",children:"Concept Check \ud83d\udc40"}),"\n",(0,o.jsx)(t.p,{children:"Which test do you choose in each of the following scenarios (Hypothesis Test or Permutation Test)?"}),"\n",(0,o.jsxs)(t.ol,{children:["\n",(0,o.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,o.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,o.jsxs)(n,{children:[(0,o.jsx)("summary",{children:"Answer"}),(0,o.jsxs)(t.ol,{children:["\n",(0,o.jsx)(t.li,{children:"Hypothesis Test."}),"\n",(0,o.jsx)(t.li,{children:"Permutation Test."}),"\n"]}),(0,o.jsxs)(t.admonition,{type:"tip",children:[(0,o.jsx)(t.p,{children:"If 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,o.jsx)(t.p,{children:"However, for the second scenario, we cannot infer one proportion from another. Thus, it is a permutation test."})]})]})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},8597:(e,t,n)=>{n.d(t,{A:()=>s});n(6540);var o=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,o.jsx)("div",{className:"dataframe-container",children:(0,o.jsxs)("table",{className:"dataframe-table",children:[(0,o.jsx)("thead",{children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{children:r}),n.map(((e,t)=>(0,o.jsx)("th",{children:e},t)))]})}),(0,o.jsx)("tbody",{children:s.map(((e,t)=>(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{className:"index-value",children:i[t]}),e.map(((e,t)=>{return(0,o.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 o=n(6540),s=n(4848);const r=function(e){let{src:t,sourceLink:n,width:r="100%",height:i="100%",paddingBottom:c="56.25%"}=e;const[a,l]=(0,o.useState)(0);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{style:{position:"relative",height:"0",paddingBottom:c,overflow:"hidden",maxWidth:"100%"},children:(0,s.jsx)("iframe",{src:t,style:{position:"absolute",top:0,left:0,width:r,height:i,frameBorder:"0",allowFullScreen:!0}},a)}),(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:()=>{l((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 o=n(6540);const s={},r=o.createContext(s);function i(e){const t=o.useContext(r);return o.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(s):e.components||s:i(e.components),o.createElement(r.Provider,{value:t},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/f095f4cd.fb585419.js b/assets/js/f095f4cd.fb585419.js
new file mode 100644
index 00000000..6f09598c
--- /dev/null
+++ b/assets/js/f095f4cd.fb585419.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[28],{8406:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>p,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var s=n(4848),i=n(8453),a=n(8597);const r={sidebar_position:8,sidebar_label:"Boostrapping and Confidence Intervals",title:"Bootstrapping and Confidence Intervals",tags:["querying","functions","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:"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:"Boostrapping and Confidence Intervals",title:"Bootstrapping and Confidence Intervals",tags:["querying","functions","for-loop","histogram"]},sidebar:"statsSidebar",previous:{title:"Standard Units, Correlation, Regression",permalink:"/bpd-reference/docs/statistical-inference/standard_units"},next:{title:"Hypothesis Test vs. Permutation Test",permalink:"/bpd-reference/docs/statistical-inference/concept check/hypothesis_vs_permutation"}},c={},d=[{value:"Concept",id:"concept",level:2},{value:"Code Example",id:"code-example",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 h(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 bootstrapping to estimate the distribution of the sample statistic to see how different our sample statistic could have been. We use confidence intervals to define a range that captures most of the bootstrapped distribution of the sample statistic."})}),"\n",(0,s.jsxs)(t.admonition,{title:"Terminology",type:"info",children:[(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.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 how different the sample statistic could have been if given a different sample. To conduct bootstrapping:"]}),(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsx)(t.li,{children:"Resample from the original sample with replacement."}),"\n",(0,s.jsx)(t.li,{children:"Calculate the sample statistic on the bootstrap resample."}),"\n",(0,s.jsx)(t.li,{children:"Save the results into an array."}),"\n",(0,s.jsx)(t.li,{children:"Repeat steps 1 and 2 to generate an empirical distribution of the test statistic."}),"\n",(0,s.jsx)(t.li,{children:"Calculate the confidence interest and see if the observed statistic lies in the confidence interval. If the observed statistic is not\nin our confidence interval, we have evidence to reject the null."}),"\n"]}),(0,s.jsx)(t.p,{children:(0,s.jsx)(t.strong,{children:"Confidence Intervals:"})})]}),"\n",(0,s.jsx)(t.admonition,{type:"note",children:(0,s.jsx)(t.p,{children:"When resampling, make sure that you do it with replacement."})}),"\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)(t.hr,{}),"\n",(0,s.jsx)(t.h2,{id:"code-example",children:"Code Example"}),"\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:"Our pair of hypotheses is:"}),(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Null Hypothesis:"})," The mean weights of dogs and cats are the ",(0,s.jsx)(t.em,{children:"same"}),"."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Alternative Hypothesis:"})," The mean weights of dogs and cats are ",(0,s.jsx)(t.em,{children:"different"}),"."]}),"\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"})]})})]})," 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 test 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)(h,{...e})}):h(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)))})]})})}},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/ffd9fdf4.1e5c6542.js b/assets/js/ffd9fdf4.d1c35088.js
similarity index 55%
rename from assets/js/ffd9fdf4.1e5c6542.js
rename to assets/js/ffd9fdf4.d1c35088.js
index 00d31a90..3ca1a20c 100644
--- a/assets/js/ffd9fdf4.1e5c6542.js
+++ b/assets/js/ffd9fdf4.d1c35088.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[9930],{7260:e=>{e.exports=JSON.parse('{"tags":[{"label":"querying","permalink":"/bpd-reference/docs/tags/querying","count":2},{"label":"functions","permalink":"/bpd-reference/docs/tags/functions","count":2},{"label":"for-loop","permalink":"/bpd-reference/docs/tags/for-loop","count":2},{"label":"histogram","permalink":"/bpd-reference/docs/tags/histogram","count":2}]}')}}]);
\ No newline at end of file
+"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[9930],{7260:e=>{e.exports=JSON.parse('{"tags":[{"label":"querying","permalink":"/bpd-reference/docs/tags/querying","count":4},{"label":"functions","permalink":"/bpd-reference/docs/tags/functions","count":3},{"label":"for-loop","permalink":"/bpd-reference/docs/tags/for-loop","count":3},{"label":"histogram","permalink":"/bpd-reference/docs/tags/histogram","count":3}]}')}}]);
\ No newline at end of file
diff --git a/assets/js/main.24023703.js b/assets/js/main.24023703.js
new file mode 100644
index 00000000..a73df57f
--- /dev/null
+++ b/assets/js/main.24023703.js
@@ -0,0 +1,2 @@
+/*! For license information please see main.24023703.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],"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],17896441:[()=>Promise.all([n.e(1869),n.e(2667),n.e(8401)]).then(n.bind(n,6011)),"@theme/DocItem",6011],"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],"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],"393be207":[()=>n.e(4134).then(n.bind(n,6602)),"@site/src/pages/markdown-page.md",6602],"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],"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],"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],"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],"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],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],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],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],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],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],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],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],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],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/markdown-page",component:d("/bpd-reference/markdown-page","17c"),exact:!0},{path:"/bpd-reference/search",component:d("/bpd-reference/search","ec9"),exact:!0},{path:"/bpd-reference/docs",component:d("/bpd-reference/docs","ae5"),routes:[{path:"/bpd-reference/docs",component:d("/bpd-reference/docs","34a"),routes:[{path:"/bpd-reference/docs/tags",component:d("/bpd-reference/docs/tags","eb7"),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/querying",component:d("/bpd-reference/docs/tags/querying","f82"),exact:!0},{path:"/bpd-reference/docs",component:d("/bpd-reference/docs","4b7"),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/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/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/sampling",component:d("/bpd-reference/docs/statistical-inference/random sampling/sampling","f3e"),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:"*",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{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
Current configured baseUrl = ${e} ${"/"===e?" (default value)":""}
\n
We suggest trying baseUrl =
\n
\n`}(e)).replace(/{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/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/np.random.choice()","path":"/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()","sidebar":"statsSidebar"},{"id":"statistical-inference/random sampling/sampling","path":"/bpd-reference/docs/statistical-inference/random sampling/sampling","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 children",t),new Error("The Docusaurus 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;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=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=s?n(!1):i+c{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+\.)?(?\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&&ot&&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=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;rt?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{"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{"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:'
Current configured baseUrl = ${e} ${"/"===e?" (default value)":""}
\n
We suggest trying baseUrl =
\n
\n`}(e)).replace(/{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/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/np.random.choice()","path":"/bpd-reference/docs/statistical-inference/random sampling/np.random.choice()","sidebar":"statsSidebar"},{"id":"statistical-inference/random sampling/sampling","path":"/bpd-reference/docs/statistical-inference/random sampling/sampling","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 children",t),new Error("The Docusaurus 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;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=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=s?n(!1):i+c{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+\.)?(?\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&&ot&&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=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;rt?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{"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{"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:'