diff --git a/.buildinfo b/.buildinfo new file mode 100644 index 0000000..ae607a6 --- /dev/null +++ b/.buildinfo @@ -0,0 +1,4 @@ +# Sphinx build info version 1 +# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. +config: 309901386ff1ddb1c734747078b64eb8 +tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index a386ed9..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: deploy-book - -# Only run this when the master branch changes -on: - push: - branches: - - main - # If your git repository has the Jupyter Book within some-subfolder next to - # unrelated files, you can make this run only if a file within that specific - # folder has been modified. - # - # paths: - # - some-subfolder/** - -# This job installs dependencies, builds the book, and pushes it to `gh-pages`. -jobs: - deploy-book: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - # Install dependencies - - name: Set up Python 3.11 - uses: actions/setup-python@v5 - with: - python-version: 3.11 - - - name: Install dependencies - run: | - pip install -r ./requirements.txt - - # Build the book - - name: Build the book - run: | - jupyter-book build src -W - - # Push the book's HTML to github-pages - - name: GitHub Pages action - uses: peaceiris/actions-gh-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./src/_build/html diff --git a/.gitignore b/.gitignore deleted file mode 100644 index a3a0e90..0000000 --- a/.gitignore +++ /dev/null @@ -1,144 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -.gitconfig - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -pip-wheel-metadata/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.nox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -*.py,cover -.hypothesis/ -.pytest_cache/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# IPython -profile_default/ -ipython_config.py - -# pyenv -.python-version - -# pipenv -# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. -# However, in case of collaboration, if having platform-specific dependencies or dependencies -# having no cross-platform support, pipenv may install dependencies that don't work, or not -# install all needed dependencies. -#Pipfile.lock - -# PEP 582; used by e.g. github.com/David-OConnor/pyflow -__pypackages__/ - -# Celery stuff -celerybeat-schedule -celerybeat.pid - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ - -# Jupyter Book build files -_build/ - -# Binder temporary files -.bash_logout -.bashrc -.config/ -.jupyter-server-log.txt -.jupyter/ -.local/ -.npm/ -.profile diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/Ch1_OpenmpIntro.html b/Ch1_OpenmpIntro.html new file mode 100644 index 0000000..e453e7e --- /dev/null +++ b/Ch1_OpenmpIntro.html @@ -0,0 +1,543 @@ + + + + + + + + + + + 1. Overview of OpenMP Programming — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Overview of OpenMP Programming

+ +
+
+ +
+
+
+ + + + +
+ +
+

1. Overview of OpenMP Programming#

+

Moore’s Law originally stated that the number of transistors on a microchip doubles approximately every two years, leading to a corresponding increase in computational power and frequency. This rapid advancement was achievable by increasing transistor density. However, as transistor density increased, so did the heat generated, making it increasingly difficult to maintain this pace of improvement.

+

To address this challenge, computer architects sought alternative solutions. One effective and cost-efficient strategy was the implementation of multiple cores within a single CPU. IBM was a pioneer in this area, releasing the first multi-core CPU in 2001. Intel followed in 2002 with the Intel Pentium 4, which introduced hyper-threading. Hyper-threading allowed the processor to switch between tasks quickly, creating the illusion of performing multiple processes simultaneously, though it wasn’t true parallel computing.

+

Since then, the adoption of multi-core CPUs has become widespread, with some systems incorporating multiple CPUs. This shift necessitated the development of methods to effectively utilize these additional cores, leading to the rise of parallel computing.

+

OpenMP (Open Multi-Processing) is a powerful and versatile API that simplifies parallel programming for a variety of computing architectures, including shared memory systems, distributed memory systems, and accelerators such as GPUs. This chapter introduces the fundamental concepts of OpenMP, including its key features, and basic syntax. You will learn how to set up your development environment, write your first parallel program, and understand the core constructs that make OpenMP an indispensable tool for enhancing computational performance. Through interactive examples, you will gain a solid foundation in parallel programming principles and prepare yourself for more advanced topics in subsequent chapters.

+
+
+
+ + + + +
+ + + + + + + + +
+ + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/Ch2_MulticoreMultiCPU.html b/Ch2_MulticoreMultiCPU.html new file mode 100644 index 0000000..5c2714b --- /dev/null +++ b/Ch2_MulticoreMultiCPU.html @@ -0,0 +1,538 @@ + + + + + + + + + + + 2. Parallel Programming for Multicore and Multi-CPU Machines — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Parallel Programming for Multicore and Multi-CPU Machines

+ +
+
+ +
+
+
+ + + + +
+ +
+

2. Parallel Programming for Multicore and Multi-CPU Machines#

+

With the proliferation of multicore and multi-CPU systems, efficiently distributing computational tasks across multiple processing units has become essential. This chapter delves into the techniques and strategies for parallel programming on multicore and multi-CPU machines using OpenMP. You will explore thread management, data sharing, and synchronization mechanisms to ensure your programs run efficiently and correctly. Interactive exercises will guide you through real-world scenarios, helping you understand how to maximize the performance of your applications on multicore architectures.

+
+
+
+ + + + +
+ + + + + + + + +
+ + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/Ch3_SIMDVector.html b/Ch3_SIMDVector.html new file mode 100644 index 0000000..c3277cd --- /dev/null +++ b/Ch3_SIMDVector.html @@ -0,0 +1,538 @@ + + + + + + + + + + + 3. Parallel Programming for SIMD and Vector Architecture — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Parallel Programming for SIMD and Vector Architecture

+ +
+
+ +
+
+
+ + + + +
+ +
+

3. Parallel Programming for SIMD and Vector Architecture#

+

Single Instruction, Multiple Data (SIMD) and vector architectures offer significant performance gains by allowing the simultaneous execution of operations across multiple data points. In this chapter, we will explore how OpenMP can be used to harness the power of SIMD and vectorization. You will learn about vector registers, alignment, and memory access patterns that impact performance. Through hands-on examples and exercises, you will practice optimizing your code to fully exploit SIMD capabilities, enabling you to achieve higher computational throughput and efficiency.

+
+
+
+ + + + +
+ + + + + + + + +
+ + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/Ch4_GPUAccel.html b/Ch4_GPUAccel.html new file mode 100644 index 0000000..acb94ea --- /dev/null +++ b/Ch4_GPUAccel.html @@ -0,0 +1,538 @@ + + + + + + + + + + + 4. Parallel Programming for GPU Accelerators — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Parallel Programming for GPU Accelerators

+ +
+
+ +
+
+
+ + + + +
+ +
+

4. Parallel Programming for GPU Accelerators#

+

Graphics Processing Units (GPUs) have revolutionized parallel computing by providing massive computational power for a wide range of applications. This chapter focuses on leveraging OpenMP to program GPU accelerators, covering the concepts of offloading computations to GPUs and managing data transfers between the host CPU and the GPU. You will explore the OpenMP directives and clauses specifically designed for GPU programming, such as target, teams, and distribute, which facilitate the execution of parallel regions on the GPU. Additionally, you will delve into techniques for efficiently transferring data between the host and device, including strategies for minimizing data movement and optimizing memory usage to maximize performance. Through hands-on examples and exercises, you will gain practical experience in managing the complexities of CPU-GPU interaction. By the end of this chapter, you will be equipped with the knowledge and skills to accelerate your applications using GPUs, unlocking new levels of performance for your computational tasks.

+
+
+
+ + + + +
+ + + + + + + + +
+ + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md deleted file mode 100644 index e08f5b3..0000000 --- a/DEPLOYMENT.md +++ /dev/null @@ -1,20 +0,0 @@ -We consider to support three types of deployment of this book for training and hosting purpose, local deployment, self-hosting deployment and third-party-hosting deployment. - -## Local Deployment -Build the notebook and deploy on a local Linux machine that users can access it from web browser to localhost. -It requires installing JupyterHub, Clang/LLVM compiler for accelerators, etc. - -### Advantage -### Limitation - -## Self-hosting Deployment -Deploy on remote server such that it can be hosted for multiple remote users access in a controled security environment. - -### Advantage -### Limitation - -## 3rd-party-hosting deployment -The current binder's approach - -### Advantage -### Limitation diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index a44b217..0000000 --- a/Dockerfile +++ /dev/null @@ -1,60 +0,0 @@ -FROM ubuntu:22.04 - -ENV TZ=US/Eastern -RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone - -RUN apt update && \ - apt install -y \ - apt-utils \ - curl \ - dialog \ - software-properties-common \ - wget - -RUN apt install -y \ - bison \ - build-essential \ - clang \ - cmake \ - flex \ - g++ \ - gcc \ - gcc-multilib \ - gdb \ - gfortran \ - git \ - libomp-dev \ - python3-pip \ - vim && \ - rm -rf /var/lib/apt/lists/* && \ - rm -rf /var/cache/* - -# install the notebook package -RUN pip install --no-cache --upgrade pip && \ - pip install --no-cache notebook jupyterlab - -# create user with a home directory -ARG NB_USER -ARG NB_UID -ENV USER ${NB_USER} -ENV HOME /home/${NB_USER} - -RUN adduser --disabled-password \ - --gecos "Default user" \ - --uid ${NB_UID} \ - ${NB_USER} -COPY . ${HOME} -RUN chown -R ${NB_UID} ${HOME} -WORKDIR ${HOME} -RUN pip install --no-cache -r ./requirements.txt - -USER ${USER} - -RUN mkdir -p ${HOME}/.jupyter/lab/user-settings/@jupyterlab/apputils-extension && \ - cp ./config/themes.jupyterlab-settings ${HOME}/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/. && \ - mkdir -p ${HOME}/.jupyter/lab/user-settings/@jupyterlab/terminal-extension && \ - cp ./config/plugin.jupyterlab-settings ${HOME}/.jupyter/lab/user-settings/@jupyterlab/terminal-extension/. - -RUN install_native_kernel --user - -ENV SHELL /bin/bash diff --git a/GPUAccelerators/0_Learning_Objectives.html b/GPUAccelerators/0_Learning_Objectives.html new file mode 100644 index 0000000..308e81c --- /dev/null +++ b/GPUAccelerators/0_Learning_Objectives.html @@ -0,0 +1,604 @@ + + + + + + + + + + + 4.1. Learning Objectives — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Learning Objectives

+ +
+
+ +
+
+
+ + + + +
+ +
+

4.1. Learning Objectives#

+

This chapter introduces students to GPU offloading with OpenMP, focusing on device constructs, memory management, parallel execution, and performance optimization. By the end of this chapter, students will be able to:

+
+

Remember & Understand

+
    +
  • Describe the role and architectural characteristics of GPU accelerators in modern parallel computing.

  • +
  • Explain OpenMP’s device constructs (target, teams, distribute, etc.) and their purpose in offloading computation to GPUs.

  • +
  • Understand the concepts of data mapping and the use of map clauses for host-device memory transfer.

  • +
  • Recognize how OpenMP supports asynchronous execution and explicit memory management on devices.

  • +
+
+

Apply

+
    +
  • Write OpenMP code using target, teams, and distribute to implement GPU offloading for compute-intensive kernels.

  • +
  • Use map, target data, and target update clauses to control data movement between host and device memory.

  • +
  • Implement asynchronous execution using the nowait clause and task dependencies to overlap computation and communication.

  • +
  • Allocate and deallocate GPU memory using OpenMP runtime functions.

  • +
  • Apply best practices for parallel execution and synchronization on GPU devices.

  • +
+
+

Analyze

+
    +
  • Analyze the impact of different memory mapping strategies on data locality and device performance.

  • +
  • Compare different parallel constructs (teams, distribute, parallel for) in terms of their execution behavior and applicability.

  • +
  • Investigate the effects of loop scheduling and thread distribution on GPU workload balancing.

  • +
+
+

Evaluate

+
    +
  • Evaluate the performance benefits and trade-offs of GPU offloading for a given problem.

  • +
  • Assess the correctness and efficiency of data transfers and asynchronous execution mechanisms.

  • +
  • Critique the effectiveness of tuning strategies for memory usage, thread configuration, and offload scope.

  • +
+
+

Create

+
    +
  • Design and implement optimized GPU-offloaded applications using a combination of OpenMP directives and memory management techniques.

  • +
  • Develop high-performance OpenMP programs that utilize advanced features such as dependency management, asynchronous execution, and architecture-specific tuning.

  • +
+
+ + + + +
+ + + + + + + + +
+ + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/GPUAccelerators/1_Introduction.html b/GPUAccelerators/1_Introduction.html new file mode 100644 index 0000000..c0cadbf --- /dev/null +++ b/GPUAccelerators/1_Introduction.html @@ -0,0 +1,618 @@ + + + + + + + + + + + 4.2. Introduction — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

4.2. Introduction#

+

In recent years, the field of parallel computing has witnessed a significant shift towards the utilization of GPU accelerators to achieve high-performance computing. GPUs, originally designed for graphics rendering, have evolved into powerful parallel processing units capable of executing thousands of threads simultaneously. This section explores the rise of GPU accelerators in parallel computing and how OpenMP, a widely-used API for shared-memory parallel programming, has adapted to support GPU offloading.

+
+

4.2.1. The rise of GPU accelerators in parallel computing#

+

The demand for faster and more efficient computing has driven the adoption of GPU accelerators in various domains, including scientific simulations, machine learning, data analytics, and more. GPUs offer several advantages over traditional CPUs when it comes to parallel processing:

+
    +
  • Massively parallel architecture: GPUs consist of hundreds or even thousands of processing cores, enabling them to execute a large number of threads concurrently.

  • +
  • High memory bandwidth: GPUs are equipped with high-bandwidth memory subsystems, allowing for fast data transfer between the device memory and the processing cores.

  • +
  • Cost-effectiveness: GPUs provide a cost-effective solution for achieving high performance compared to scaling up CPU-based systems.

  • +
+

The success of GPU accelerators can be attributed to their ability to significantly speed up computationally intensive tasks that exhibit a high degree of parallelism. Many applications have been redesigned to leverage the parallel processing capabilities of GPUs, resulting in substantial performance improvements.

+
+
+

4.2.2. OpenMP’s support for GPU offloading#

+

OpenMP, a widely-adopted programming model for shared-memory parallel programming, has evolved to address the growing need for GPU acceleration. Starting from OpenMP 4.0, the specification introduced device constructs and clauses specifically designed for offloading computations to GPU devices.

+

The key features of OpenMP’s GPU offloading support include:

+
    +
  • Device constructs: OpenMP provides directives such as target, target data, and target update to define regions of code and data that should be offloaded to a GPU device.

  • +
  • Data mapping: The map clause allows programmers to specify how data should be transferred between the host and the device, ensuring that the necessary data is available on the GPU for computation.

  • +
  • Asynchronous execution: OpenMP supports asynchronous offloading using the nowait clause, enabling overlapping of computation and data transfers for improved performance.

  • +
  • Device memory management: OpenMP offers routines for allocating and freeing device memory, as well as mechanisms for associating host and device memory.

  • +
  • Parallel execution on devices: Directives like teams and distribute enable programmers to express parallelism on GPU devices, exploiting their massively parallel architecture.

  • +
+

By extending its programming model to support GPU offloading, OpenMP has become a powerful tool for developers seeking to accelerate their applications using GPU devices. It provides a high-level, directive-based approach to GPU programming, making it easier to write portable and maintainable code for parallel execution on heterogeneous systems.

+

In the following sections, we will delve into the details of OpenMP’s GPU offloading features, exploring device constructs, data mapping, asynchronous execution, device memory management, parallel execution on GPUs, and performance tuning techniques. By the end of this chapter, you will have a solid understanding of how to leverage OpenMP to harness the power of GPU accelerators in your parallel programs.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/GPUAccelerators/2_OpenMPDeviceConstructs.html b/GPUAccelerators/2_OpenMPDeviceConstructs.html new file mode 100644 index 0000000..25cdd2c --- /dev/null +++ b/GPUAccelerators/2_OpenMPDeviceConstructs.html @@ -0,0 +1,725 @@ + + + + + + + + + + + 4.3. OpenMP Device Constructs — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

4.3. OpenMP Device Constructs#

+

OpenMP provides a set of device constructs that allow programmers to offload computations to GPU devices. These constructs are designed to define regions of code and data that should be executed on the device, manage data transfers between the host and the device, and synchronize the execution. In this section, we will explore the key device constructs in OpenMP: target, target data, target update, target enter data, and target exit data.

+
+

4.3.1. target directive#

+

The target directive is the primary construct for offloading a region of code to a GPU device. It specifies that the associated code block should be executed on the device. The syntax of the target directive is as follows:

+
#pragma omp target [clause[[,] clause]...]
+{
+  // Code to be executed on the device
+}
+
+
+

The target directive supports various clauses to control data mapping, device selection, and synchronization. Some commonly used clauses include:

+
    +
  • map: Specifies how data should be mapped between the host and the device.

  • +
  • device: Specifies the device on which the code should be executed.

  • +
  • nowait: Allows asynchronous execution of the target region.

  • +
+

Example:

+
#pragma omp target map(to: a[0:n], b[0:n]) map(from: c[0:n])
+{
+  #pragma omp parallel for
+  for (int i = 0; i < n; i++) {
+    c[i] = a[i] + b[i];
+  }
+}
+
+
+

In this example, arrays a and b are mapped to the device, and array c is mapped back from the device after the computation.

+
+
+

4.3.2. target data directive#

+

The target data directive is used to define a region of code in which data is mapped to and from the device. It allows for data persistence across multiple target regions, reducing the overhead of data transfers. The syntax of the target data directive is as follows:

+
#pragma omp target data [clause[[,] clause]...]
+{
+  // Code region with mapped data
+}
+
+
+

The target data directive supports clauses similar to the target directive, such as map and device, to control data mapping and device selection.

+

Example:

+
#pragma omp target data map(to: a[0:n], b[0:n]) map(from: c[0:n])
+{
+  #pragma omp target
+  {
+    #pragma omp parallel for
+    for (int i = 0; i < n; i++) {
+      c[i] = a[i] + b[i];
+    }
+  }
+  
+  #pragma omp target
+  {
+    #pragma omp parallel for
+    for (int i = 0; i < n; i++) {
+      c[i] *= 2;
+    }
+  }
+}
+
+
+

In this example, the target data directive maps arrays a, b, and c to the device. The mapped data persists across the two target regions, avoiding redundant data transfers.

+
+
+

4.3.3. target update directive#

+

The target update directive is used to synchronize data between the host and the device outside of a target region. It allows for updating specific variables or memory regions on the device or host. The syntax of the target update directive is as follows:

+
#pragma omp target update [clause[[,] clause]...]
+
+
+

The target update directive supports clauses such as to and from to specify the direction of the data update.

+

Example:

+
#pragma omp target data map(to: a[0:n], b[0:n]) map(from: c[0:n])
+{
+  #pragma omp target
+  {
+    #pragma omp parallel for
+    for (int i = 0; i < n; i++) {
+      c[i] = a[i] + b[i];
+    }
+  }
+  
+  // Modify 'a' on the host
+  for (int i = 0; i < n; i++) {
+    a[i] *= 2;
+  }
+  
+  #pragma omp target update to(a[0:n])
+  
+  #pragma omp target
+  {
+    #pragma omp parallel for
+    for (int i = 0; i < n; i++) {
+      c[i] += a[i];
+    }
+  }
+}
+
+
+

In this example, after modifying array a on the host, the target update directive is used to update the corresponding data on the device before the second target region.

+
+
+

4.3.4. target enter data and target exit data directives#

+

The target enter data and target exit data directives are used to manage the lifetime of data on the device. They allow for allocating and deallocating memory on the device, as well as initializing and updating data.

+

The target enter data directive is used to allocate memory and transfer data to the device. It has the following syntax:

+
#pragma omp target enter data [clause[[,] clause]...]
+
+
+

The target exit data directive is used to deallocate memory and transfer data back from the device. It has the following syntax:

+
#pragma omp target exit data [clause[[,] clause]...]
+
+
+

Both directives support clauses such as map and device to control data mapping and device selection.

+

Example:

+
#pragma omp target enter data map(to: a[0:n], b[0:n])
+
+#pragma omp target
+{
+  #pragma omp parallel for
+  for (int i = 0; i < n; i++) {
+    c[i] = a[i] + b[i];
+  }
+}
+
+#pragma omp target exit data map(from: c[0:n])
+
+
+

In this example, the target enter data directive allocates memory on the device and transfers arrays a and b to the device. After the target region, the target exit data directive transfers array c back from the device and deallocates the device memory.

+

These device constructs provide a flexible and powerful way to offload computations to GPU devices using OpenMP. By combining these constructs and their associated clauses, programmers can efficiently manage data transfers, device memory, and execution on GPU devices.

+

In the next section, we will explore the various ways to map data between the host and the device using the map clause and other data mapping techniques in OpenMP.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/GPUAccelerators/3_MappingDataToGPUDevices.html b/GPUAccelerators/3_MappingDataToGPUDevices.html new file mode 100644 index 0000000..e9fb133 --- /dev/null +++ b/GPUAccelerators/3_MappingDataToGPUDevices.html @@ -0,0 +1,692 @@ + + + + + + + + + + + 4.4. Mapping Data to GPU Devices — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

4.4. Mapping Data to GPU Devices#

+

Efficient data management is crucial for achieving high performance when offloading computations to GPU devices. OpenMP provides several mechanisms to map data between the host and the device, allowing programmers to control data transfers and optimize memory usage. In this section, we will explore the map clause, implicit and explicit data mapping, array shaping, pointer mapping, and mapping structured data types.

+
+

4.4.1. map clause#

+

The map clause is used to specify how data should be transferred between the host and the device. It is associated with device constructs such as target, target data, target enter data, and target exit data. The syntax of the map clause is as follows:

+
map([[map-type-modifier[,]] map-type: ] list)
+
+
+

The map-type specifies the direction of the data transfer and can be one of the following:

+
    +
  • to: Transfers data from the host to the device.

  • +
  • from: Transfers data from the device to the host.

  • +
  • tofrom: Transfers data from the host to the device and back to the host.

  • +
  • alloc: Allocates memory on the device without initializing it.

  • +
+

The map-type-modifier can be used to specify additional behavior, such as always, which indicates that the data should always be mapped, regardless of the presence of the if clause.

+

Example:

+
#pragma omp target map(to: a[0:n]) map(from: b[0:n])
+{
+  // Compute on the device using 'a' and 'b'
+}
+
+
+

In this example, array a is mapped to the device, and array b is mapped back from the device after the computation.

+
+
+

4.4.2. Implicit and explicit data mapping#

+

OpenMP supports both implicit and explicit data mapping. Implicit data mapping automatically maps variables used within a target region to the device, based on their usage and data-sharing attributes. Explicit data mapping, on the other hand, requires programmers to specify the variables and their mapping behavior using the map clause.

+

Implicit data mapping is convenient but may not always provide optimal performance. Explicit data mapping gives programmers fine-grained control over data transfers and allows for optimizations such as minimizing data movement and overlapping computation with data transfers.

+

Example (implicit mapping):

+
int a[100];
+#pragma omp target
+{
+  // 'a' is implicitly mapped to the device
+  for (int i = 0; i < 100; i++) {
+    a[i] = i;
+  }
+}
+
+
+

Example (explicit mapping):

+
int a[100];
+#pragma omp target map(tofrom: a[0:100])
+{
+  // 'a' is explicitly mapped to the device and back to the host
+  for (int i = 0; i < 100; i++) {
+    a[i] = i;
+  }
+}
+
+
+
+
+

4.4.3. Array shaping and pointer mapping#

+

OpenMP provides mechanisms to map arrays and pointers to GPU devices efficiently. Array shaping allows programmers to map non-contiguous portions of an array to the device, enabling more precise control over data transfers. Pointer mapping allows for the mapping of dynamically allocated memory to the device.

+

Example (array shaping):

+
int a[100][100];
+#pragma omp target map(to: a[0:100][0:50])
+{
+  // Only the first 50 columns of 'a' are mapped to the device
+  // ...
+}
+
+
+

Example (pointer mapping):

+
int* ptr = malloc(100 * sizeof(int));
+#pragma omp target map(to: ptr[0:100])
+{
+  // The dynamically allocated memory pointed to by 'ptr' is mapped to the device
+  // ...
+}
+
+
+
+
+

4.4.4. Mapping structured data types#

+

OpenMP supports mapping structured data types, such as arrays of structures or nested structures, to GPU devices. Programmers can use the map clause to specify the mapping of individual members or entire structures.

+

Example:

+
struct Point {
+  double x;
+  double y;
+  double z;
+};
+
+Point points[100];
+#pragma omp target map(to: points[0:100].x, points[0:100].y, points[0:100].z)
+{
+  // The 'x', 'y', and 'z' members of the 'points' array are mapped to the device
+  // ...
+}
+
+
+

Mapping structured data types allows for more complex data structures to be efficiently transferred between the host and the device, enabling a wider range of applications to leverage GPU acceleration.

+

By understanding and effectively utilizing the data mapping techniques provided by OpenMP, programmers can optimize data transfers, reduce memory overhead, and achieve better performance when offloading computations to GPU devices.

+

In the next section, we will explore asynchronous execution and dependencies in OpenMP, which allow for overlapping computation and data transfers, and specifying dependencies between tasks and target regions.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/GPUAccelerators/4_AsynchronousExecutionAndDependencies.html b/GPUAccelerators/4_AsynchronousExecutionAndDependencies.html new file mode 100644 index 0000000..0fe241e --- /dev/null +++ b/GPUAccelerators/4_AsynchronousExecutionAndDependencies.html @@ -0,0 +1,664 @@ + + + + + + + + + + + 4.5. Asynchronous Execution and Dependencies — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

4.5. Asynchronous Execution and Dependencies#

+

OpenMP provides support for asynchronous execution and dependencies, allowing programmers to overlap computation and data transfers, and specify dependencies between tasks and target regions. Asynchronous execution can help improve performance by reducing idle time and enabling better utilization of CPU and GPU resources. Dependencies ensure that tasks and target regions are executed in the correct order, based on the specified data dependencies. In this section, we will explore the nowait clause for asynchronous target execution, the depend clause for specifying dependencies, and the taskwait directive for synchronization.

+
+

4.5.1. Asynchronous target execution with nowait clause#

+

The nowait clause can be used with the target directive to indicate that the execution of the target region should be asynchronous. When nowait is specified, the host thread can continue execution without waiting for the target region to complete. This allows for overlapping computation on the host with computation on the device.

+

Example:

+
#pragma omp target map(to: a[0:n]) map(from: b[0:n]) nowait
+{
+  // Compute on the device using 'a' and 'b'
+}
+
+// Perform independent computation on the host
+// ...
+
+// Synchronize with the target region
+#pragma omp taskwait
+
+
+

In this example, the nowait clause allows the host thread to continue execution after launching the target region. The host can perform independent computations while the target region is executing on the device. The taskwait directive is used to synchronize with the completion of the target region.

+
+
+

4.5.2. Specifying dependencies with depend clause#

+

The depend clause is used to specify dependencies between tasks and target regions. It ensures that the dependent tasks or target regions are executed in the correct order based on the specified data dependencies. The depend clause can be used with the task and target directives.

+

The syntax of the depend clause is as follows:

+
depend(dependency-type: list)
+
+
+

The dependency-type can be one of the following:

+
    +
  • in: The task or target region depends on the input data specified in the list.

  • +
  • out: The task or target region produces the output data specified in the list.

  • +
  • inout: The task or target region both depends on and produces the data specified in the list.

  • +
+

Example:

+
#pragma omp target map(to: a[0:n]) depend(out: a[0:n])
+{
+  // Compute on the device and modify 'a'
+}
+
+#pragma omp target map(to: a[0:n]) map(from: b[0:n]) depend(in: a[0:n])
+{
+  // Compute on the device using 'a' and 'b'
+}
+
+
+

In this example, the second target region depends on the output of the first target region. The depend clause ensures that the second target region will not start execution until the first target region has completed and the data in a is available.

+
+
+

4.5.3. Synchronization with taskwait directive#

+

The taskwait directive is used to synchronize the execution of tasks and target regions. It specifies a wait on the completion of child tasks and target regions of the current task.

+

Example:

+
#pragma omp target map(to: a[0:n]) nowait
+{
+  // Compute on the device using 'a'
+}
+
+#pragma omp target map(to: b[0:n]) nowait
+{
+  // Compute on the device using 'b'
+}
+
+#pragma omp taskwait
+
+// Access results from both target regions
+
+
+

In this example, the taskwait directive ensures that the host thread waits for the completion of both target regions before accessing the results.

+

By leveraging asynchronous execution and dependencies in OpenMP, programmers can achieve better performance through overlapping computation and data transfers, and ensuring the correct order of execution based on data dependencies.

+

In the next section, we will delve into device memory management in OpenMP, exploring how to allocate and free memory on the device, associate host and device memory, and optimize data transfers.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/GPUAccelerators/5_DeviceMemoryManagement.html b/GPUAccelerators/5_DeviceMemoryManagement.html new file mode 100644 index 0000000..342d9a8 --- /dev/null +++ b/GPUAccelerators/5_DeviceMemoryManagement.html @@ -0,0 +1,702 @@ + + + + + + + + + + + 4.6. Device Memory Management — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

4.6. Device Memory Management#

+

Effective management of device memory is essential for optimizing the performance of GPU-accelerated applications. OpenMP provides a set of routines and mechanisms to allocate and free device memory, associate host and device memory, and optimize data transfers. In this section, we will explore OpenMP’s device memory routines, memory allocation and deallocation, host-device memory association, and techniques for optimizing data transfers.

+
+

4.6.1. OpenMP device memory routines#

+

OpenMP provides a set of runtime routines for managing device memory. These routines allow programmers to allocate and free memory on the device, transfer data between the host and the device, and query the device’s memory properties.

+

Some commonly used device memory routines include:

+
    +
  • omp_target_alloc: Allocates memory on the device.

  • +
  • omp_target_free: Frees memory allocated on the device.

  • +
  • omp_target_memcpy: Copies data between the host and the device.

  • +
  • omp_target_memcpy_rect: Copies a rectangular subarray between the host and the device.

  • +
  • omp_target_is_present: Checks if a host pointer is associated with a device pointer.

  • +
  • omp_target_associate_ptr: Associates a host pointer with a device pointer.

  • +
  • omp_target_disassociate_ptr: Disassociates a host pointer from a device pointer.

  • +
+

Example:

+
int* host_ptr = malloc(100 * sizeof(int));
+int* device_ptr = omp_target_alloc(100 * sizeof(int), omp_get_default_device());
+
+// Transfer data from host to device
+omp_target_memcpy(device_ptr, host_ptr, 100 * sizeof(int), 0, 0, omp_get_default_device(), omp_get_initial_device());
+
+// Perform computation on the device using device_ptr
+// ...
+
+// Transfer data back from device to host
+omp_target_memcpy(host_ptr, device_ptr, 100 * sizeof(int), 0, 0, omp_get_initial_device(), omp_get_default_device());
+
+omp_target_free(device_ptr, omp_get_default_device());
+free(host_ptr);
+
+
+

In this example, omp_target_alloc is used to allocate memory on the device, omp_target_memcpy is used to transfer data between the host and the device, and omp_target_free is used to free the allocated device memory.

+
+
+

4.6.2. Allocating and freeing device memory#

+

Device memory can be allocated and freed using the omp_target_alloc and omp_target_free routines, respectively. It is important to manage device memory carefully to avoid memory leaks and optimize memory usage.

+

Example:

+
int* device_ptr = omp_target_alloc(100 * sizeof(int), omp_get_default_device());
+
+// Use the allocated device memory
+// ...
+
+omp_target_free(device_ptr, omp_get_default_device());
+
+
+
+
+

4.6.3. Associating host and device memory#

+

OpenMP provides mechanisms to associate host memory with device memory, allowing for efficient data transfers and synchronization. The omp_target_associate_ptr routine can be used to associate a host pointer with a device pointer, and omp_target_disassociate_ptr can be used to disassociate them.

+

Example:

+
int* host_ptr = malloc(100 * sizeof(int));
+int* device_ptr = omp_target_alloc(100 * sizeof(int), omp_get_default_device());
+
+omp_target_associate_ptr(host_ptr, device_ptr, 100 * sizeof(int), 0, omp_get_default_device());
+
+// Perform computation on the device using device_ptr
+// ...
+
+omp_target_disassociate_ptr(host_ptr, omp_get_default_device());
+
+omp_target_free(device_ptr, omp_get_default_device());
+free(host_ptr);
+
+
+

In this example, omp_target_associate_ptr is used to associate the host pointer host_ptr with the device pointer device_ptr, allowing for efficient data transfers and synchronization between the host and the device.

+
+
+

4.6.4. Optimizing data transfers#

+

Optimizing data transfers between the host and the device is crucial for achieving high performance in GPU-accelerated applications. Some techniques for optimizing data transfers include:

+
    +
  • Minimizing data transfers: Transfer only the necessary data between the host and the device, and aim to keep data on the device as long as possible.

  • +
  • Overlapping computation and data transfers: Use asynchronous execution and double buffering techniques to overlap computation on the device with data transfers between the host and the device.

  • +
  • Using unified shared memory: Utilize OpenMP’s unified shared memory (USM) model, which allows for shared memory between the host and the device, reducing the need for explicit data transfers.

  • +
  • Exploiting data locality: Organize data in a way that maximizes spatial and temporal locality, reducing the overhead of data transfers and improving cache performance.

  • +
+

Example (overlapping computation and data transfers):

+
int* input1 = omp_target_alloc(100 * sizeof(int), omp_get_default_device());
+int* input2 = omp_target_alloc(100 * sizeof(int), omp_get_default_device());
+int* output = omp_target_alloc(100 * sizeof(int), omp_get_default_device());
+
+// Transfer input data to the device
+omp_target_memcpy(input1, host_input1, 100 * sizeof(int), 0, 0, omp_get_default_device(), omp_get_initial_device());
+
+#pragma omp target nowait map(to: input1[0:100], input2[0:100]) map(from: output[0:100])
+{
+  // Perform computation on the device using input1 and input2
+  // ...
+}
+
+// Transfer next input data to the device while the previous computation is running
+omp_target_memcpy(input2, host_input2, 100 * sizeof(int), 0, 0, omp_get_default_device(), omp_get_initial_device());
+
+// Synchronize and transfer output data back to the host
+#pragma omp taskwait
+omp_target_memcpy(host_output, output, 100 * sizeof(int), 0, 0, omp_get_initial_device(), omp_get_default_device());
+
+omp_target_free(input1, omp_get_default_device());
+omp_target_free(input2, omp_get_default_device());
+omp_target_free(output, omp_get_default_device());
+
+
+

In this example, double buffering is used to overlap computation on the device with data transfers. While the device is computing using input1, the next input data (input2) is transferred to the device asynchronously. This technique helps to hide the latency of data transfers and improves overall performance.

+

By effectively managing device memory, associating host and device memory, and optimizing data transfers, programmers can harness the full potential of GPU acceleration in their OpenMP applications.

+

In the next section, we will explore parallel execution on GPU devices using the teams and distribute directives, and how to combine them for efficient work distribution and parallelization.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/GPUAccelerators/6_ParallelExecutionOnGPUDevices.html b/GPUAccelerators/6_ParallelExecutionOnGPUDevices.html new file mode 100644 index 0000000..25b2fc9 --- /dev/null +++ b/GPUAccelerators/6_ParallelExecutionOnGPUDevices.html @@ -0,0 +1,672 @@ + + + + + + + + + + + 4.7. Parallel Execution on GPU Devices — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

4.7. Parallel Execution on GPU Devices#

+

OpenMP provides directives for parallel execution on GPU devices, allowing programmers to efficiently distribute work across multiple threads and teams. The teams and distribute directives are key constructs for achieving parallel execution on GPUs. In this section, we will explore the teams directive for SPMD (Single Program, Multiple Data) parallelism, the distribute directive for work sharing, and how to combine these directives for optimal performance.

+
+

4.7.1. teams directive for SPMD parallelism#

+

The teams directive is used to create a league of thread teams, where each team executes the structured block associated with the directive. This allows for SPMD parallelism, where each team executes the same code but operates on different data.

+

The syntax of the teams directive is as follows:

+
#pragma omp teams [clause[[,] clause]...]
+structured-block
+
+
+

The teams directive supports clauses such as num_teams and thread_limit to control the number of teams and the maximum number of threads per team, respectively.

+

Example:

+
#pragma omp target teams map(to: a[0:n]) map(from: b[0:n])
+{
+  #pragma omp parallel for
+  for (int i = 0; i < n; i++) {
+    b[i] = a[i] * 2;
+  }
+}
+
+
+

In this example, the teams directive creates a league of thread teams, and each team executes the parallel loop inside the structured block. The parallel directive is used to distribute the loop iterations among the threads within each team.

+
+
+

4.7.2. distribute directive for work sharing#

+

The distribute directive is used to distribute loop iterations across the master threads of the teams created by the teams directive. It provides a way to share work among the teams and achieve parallelism at the team level.

+

The syntax of the distribute directive is as follows:

+
#pragma omp distribute [clause[[,] clause]...]
+for-loops
+
+
+

The distribute directive supports clauses such as private, firstprivate, lastprivate, and collapse to control data sharing and loop collapsing.

+

Example:

+
#pragma omp target teams distribute map(to: a[0:n]) map(from: b[0:n])
+for (int i = 0; i < n; i++) {
+  b[i] = a[i] * 2;
+}
+
+
+

In this example, the distribute directive distributes the loop iterations across the master threads of the teams. Each team operates on a different portion of the input and output arrays.

+
+
+

4.7.3. Combining teams and distribute directives#

+

The teams and distribute directives can be combined to achieve multi-level parallelism on GPU devices. The teams directive creates a league of thread teams, and the distribute directive distributes the work among the teams. Additionally, the parallel directive can be used within each team to further parallelize the work among the threads within a team.

+

Example:

+
#pragma omp target teams distribute map(to: a[0:n]) map(from: b[0:n])
+for (int i = 0; i < n; i++) {
+  #pragma omp parallel for
+  for (int j = 0; j < m; j++) {
+    b[i] += a[i * m + j];
+  }
+}
+
+
+

In this example, the teams and distribute directives are combined to distribute the outer loop iterations across the teams. Within each team, the parallel directive is used to parallelize the inner loop iterations among the threads.

+
+
+

4.7.4. Nested parallelism with teams and parallel directives#

+

OpenMP supports nested parallelism, where parallel regions can be nested within each other. The teams directive can be combined with the parallel directive to achieve nested parallelism on GPU devices.

+

Example:

+
#pragma omp target teams map(to: a[0:n][0:m]) map(from: b[0:n])
+{
+  #pragma omp distribute
+  for (int i = 0; i < n; i++) {
+    #pragma omp parallel for reduction(+:b[i])
+    for (int j = 0; j < m; j++) {
+      b[i] += a[i][j];
+    }
+  }
+}
+
+
+

In this example, the teams directive creates a league of thread teams, and the distribute directive distributes the outer loop iterations across the teams. Within each team, the parallel directive is used to parallelize the inner loop iterations among the threads, and a reduction is performed to compute the sum of elements in each row of the input array.

+

By using the teams and distribute directives, along with the parallel directive for nested parallelism, programmers can effectively parallelize their code and utilize the full potential of GPU devices.

+

In the next section, we will discuss techniques for tuning the performance of GPU-offloaded code, including choosing the optimal number of teams and threads, optimizing data transfers and memory usage, and leveraging device-specific features.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/GPUAccelerators/7_TuningPerformanceForGPUOffloading.html b/GPUAccelerators/7_TuningPerformanceForGPUOffloading.html new file mode 100644 index 0000000..7ba586b --- /dev/null +++ b/GPUAccelerators/7_TuningPerformanceForGPUOffloading.html @@ -0,0 +1,688 @@ + + + + + + + + + + + 4.8. Tuning Performance for GPU Offloading — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

4.8. Tuning Performance for GPU Offloading#

+

Achieving optimal performance when offloading computations to GPU devices requires careful tuning and consideration of various factors. In this section, we will explore techniques for choosing the right number of teams and threads, optimizing data transfers and memory usage, leveraging device-specific features, and measuring and profiling GPU performance.

+
+

4.8.1. Choosing the right number of teams and threads#

+

Selecting the appropriate number of teams and threads per team is crucial for maximizing the performance of GPU-offloaded code. The optimal configuration depends on factors such as the device architecture, the problem size, and the nature of the computation.

+

Some guidelines for choosing the number of teams and threads include:

+
    +
  • Match the number of teams to the number of streaming multiprocessors (SMs) on the GPU device. Each SM can execute one or more teams concurrently.

  • +
  • Adjust the number of threads per team based on the register and shared memory usage of each thread. Higher thread counts may lead to resource contention, while lower thread counts may underutilize the device.

  • +
  • Experiment with different combinations of teams and threads to find the sweet spot for your specific application.

  • +
+

Example:

+
#pragma omp target teams num_teams(64) thread_limit(128) map(to: a[0:n]) map(from: b[0:n])
+{
+  // Parallel computation using 64 teams and up to 128 threads per team
+  // ...
+}
+
+
+

In this example, the num_teams and thread_limit clauses are used to specify the number of teams and the maximum number of threads per team, respectively. Adjusting these values based on the device capabilities and the problem characteristics can help optimize performance.

+
+
+

4.8.2. Optimizing data transfers and memory usage#

+

Minimizing data transfers between the host and the device is critical for achieving high performance in GPU-offloaded code. Some strategies for optimizing data transfers and memory usage include:

+
    +
  • Transfer only the necessary data to the device and keep it on the device as long as possible to avoid redundant transfers.

  • +
  • Use the target data directive to create a data region that persists across multiple target regions, reducing the overhead of data transfers.

  • +
  • Optimize memory access patterns to ensure coalesced memory accesses and minimize memory bandwidth bottlenecks.

  • +
  • Utilize shared memory and registers on the device to reduce global memory accesses and improve data locality.

  • +
+

Example:

+
#pragma omp target data map(to: a[0:n], b[0:n]) map(from: c[0:n])
+{
+  #pragma omp target teams distribute parallel for
+  for (int i = 0; i < n; i++) {
+    c[i] = a[i] + b[i];
+  }
+
+  // Reuse the mapped data for another computation
+  #pragma omp target teams distribute parallel for
+  for (int i = 0; i < n; i++) {
+    c[i] *= 2;
+  }
+}
+
+
+

In this example, the target data directive is used to create a data region that persists across multiple target regions. The input arrays a and b are mapped to the device once and reused for multiple computations, reducing the overhead of data transfers.

+
+
+

4.8.3. Leveraging device-specific features#

+

Different GPU devices have specific hardware features and capabilities that can be leveraged to optimize performance. Some device-specific features to consider include:

+
    +
  • Using SIMD (Single Instruction, Multiple Data) instructions to exploit data parallelism within each thread.

  • +
  • Utilizing device-specific memory hierarchies, such as texture memory or constant memory, for read-only data or frequently accessed data.

  • +
  • Exploiting device-specific atomic operations and intrinsics for efficient synchronization and communication between threads.

  • +
+

Example:

+
#pragma omp target teams distribute parallel for simd
+for (int i = 0; i < n; i++) {
+  // SIMD computation
+  // ...
+}
+
+
+

In this example, the simd clause is used in combination with the teams distribute parallel for directive to enable SIMD parallelism within each thread. This allows the compiler to generate device-specific SIMD instructions to exploit data parallelism and improve performance.

+
+
+

4.8.4. Measuring and profiling GPU performance#

+

Measuring and profiling the performance of GPU-offloaded code is essential for identifying performance bottlenecks, guiding optimization efforts, and assessing the effectiveness of tuning strategies. Some techniques for measuring and profiling GPU performance include:

+
    +
  • Using OpenMP runtime functions such as omp_get_wtime() to measure the execution time of specific code regions.

  • +
  • Utilizing vendor-specific profiling tools, such as NVIDIA Visual Profiler or AMD ROCm Profiler, to analyze GPU performance metrics and identify performance issues.

  • +
  • Employing hardware performance counters to gather low-level performance data, such as memory bandwidth utilization or cache hit rates.

  • +
+

Example:

+
double start = omp_get_wtime();
+
+#pragma omp target teams distribute parallel for
+for (int i = 0; i < n; i++) {
+  // Computation to be profiled
+  // ...
+}
+
+double end = omp_get_wtime();
+double elapsed = end - start;
+printf("Elapsed time: %f seconds\n", elapsed);
+
+
+

In this example, the omp_get_wtime() function is used to measure the execution time of the target region. By profiling and analyzing the performance of different code regions, programmers can identify performance bottlenecks and make informed decisions about optimization strategies.

+

Tuning the performance of GPU-offloaded code requires an iterative process of experimentation, measurement, and optimization. By choosing the right number of teams and threads, optimizing data transfers and memory usage, leveraging device-specific features, and utilizing profiling tools, programmers can unlock the full performance potential of GPU devices using OpenMP.

+

In the next section, we will discuss advanced topics and best practices for GPU offloading with OpenMP, including the Unified Shared Memory (USM) model, interoperability with other GPU programming models, debugging and error handling, and performance portability considerations.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/GPUAccelerators/8_AdvancedTopicsAndBestPractices.html b/GPUAccelerators/8_AdvancedTopicsAndBestPractices.html new file mode 100644 index 0000000..34ea8e8 --- /dev/null +++ b/GPUAccelerators/8_AdvancedTopicsAndBestPractices.html @@ -0,0 +1,701 @@ + + + + + + + + + + + 4.9. Advanced Topics and Best Practices — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

4.9. Advanced Topics and Best Practices#

+

In this section, we will explore advanced topics and best practices for GPU offloading with OpenMP. We will discuss the Unified Shared Memory (USM) model, interoperability with other GPU programming models like CUDA, debugging and error handling techniques, and performance portability considerations.

+
+

4.9.1. Unified Shared Memory (USM) model#

+

OpenMP 5.0 introduced the Unified Shared Memory (USM) model, which provides a unified view of memory across the host and device. USM simplifies memory management and enables more flexible data sharing between the host and device.

+

There are three types of USM allocations:

+
    +
  • Device allocations: Memory is allocated on the device and can only be accessed by the device.

  • +
  • Host allocations: Memory is allocated on the host and can be accessed by both the host and device.

  • +
  • Shared allocations: Memory is accessible by both the host and device, with the allocation being managed by the runtime.

  • +
+

Example:

+
int* shared_data = omp_target_alloc_shared(n * sizeof(int), omp_get_default_device());
+
+#pragma omp target teams distribute parallel for
+for (int i = 0; i < n; i++) {
+  shared_data[i] = i;
+}
+
+// Access shared_data on the host
+for (int i = 0; i < n; i++) {
+  printf("%d ", shared_data[i]);
+}
+
+omp_target_free(shared_data, omp_get_default_device());
+
+
+

In this example, omp_target_alloc_shared is used to allocate shared memory that is accessible by both the host and device. The device modifies the shared data, and the host can directly access it without explicit data transfers.

+
+
+

4.9.2. Interoperability with CUDA and other GPU programming models#

+

OpenMP can interoperate with other GPU programming models, such as CUDA, to leverage existing code or libraries. OpenMP provides mechanisms to integrate with CUDA code and perform seamless data sharing between OpenMP and CUDA.

+

Example:

+
// CUDA kernel
+__global__ void cuda_kernel(int* data, int n) {
+  int idx = blockIdx.x * blockDim.x + threadIdx.x;
+  if (idx < n) {
+    data[idx] *= 2;
+  }
+}
+
+// OpenMP target region
+#pragma omp target data map(tofrom: data[0:n])
+{
+  // Launch CUDA kernel
+  cuda_kernel<<<(n + 255) / 256, 256>>>(data, n);
+
+  // OpenMP parallel loop
+  #pragma omp target teams distribute parallel for
+  for (int i = 0; i < n; i++) {
+    data[i] += 1;
+  }
+}
+
+
+

In this example, a CUDA kernel is launched within an OpenMP target data region. The data is mapped between the host and device using the map clause, allowing both the CUDA kernel and the OpenMP parallel loop to operate on the same data.

+
+
+

4.9.3. Debugging and error handling for GPU offloading#

+

Debugging GPU-offloaded code can be challenging due to the separate execution on the device. OpenMP provides several techniques and best practices for debugging and error handling:

+
    +
  • Use the omp_set_default_device function to specify the device for debugging purposes.

  • +
  • Employ conditional compilation or runtime checks to execute device code on the host for easier debugging.

  • +
  • Utilize device-specific debugging tools, such as NVIDIA CUDA-GDB or AMD ROCm GDB, to debug GPU code directly.

  • +
  • Implement robust error handling mechanisms to detect and handle errors that may occur during GPU execution.

  • +
+

Example:

+
#pragma omp target teams distribute parallel for
+for (int i = 0; i < n; i++) {
+  if (data[i] < 0) {
+    #pragma omp critical
+    {
+      fprintf(stderr, "Error: Negative value encountered at index %d\n", i);
+    }
+    #pragma omp cancel teams
+  }
+  // ...
+}
+
+
+

In this example, error handling is implemented within the target region. If a negative value is encountered in the data array, an error message is printed, and the cancel directive is used to abort the execution of the target region.

+

8.4 Performance portability considerations

+

Performance portability is an important aspect of GPU offloading, as it ensures that the code can run efficiently across different GPU architectures and systems. Some considerations for performance portability include:

+
    +
  • Use OpenMP directives and clauses that are supported across different compilers and platforms.

  • +
  • Avoid device-specific optimizations that may hinder portability.

  • +
  • Employ runtime checks and device-specific code paths to adapt to different GPU capabilities.

  • +
  • Utilize OpenMP’s device-specific functions and environment variables to query device information and adjust execution parameters accordingly.

  • +
+

Example:

+
#ifdef _OPENMP
+  int max_teams = omp_get_max_teams();
+  int max_threads = omp_get_max_threads();
+#else
+  int max_teams = 64;
+  int max_threads = 128;
+#endif
+
+#pragma omp target teams num_teams(max_teams) thread_limit(max_threads)
+{
+  // ...
+}
+
+
+

In this example, the number of teams and threads per team is adjusted based on the device capabilities using OpenMP’s runtime functions. This allows the code to adapt to different devices and achieve better performance portability.

+

By leveraging advanced features like USM, interoperability with other GPU programming models, debugging techniques, and considering performance portability, programmers can write efficient and portable GPU-offloaded code using OpenMP.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/GPUAccelerators/9_Conclusion.html b/GPUAccelerators/9_Conclusion.html new file mode 100644 index 0000000..d830023 --- /dev/null +++ b/GPUAccelerators/9_Conclusion.html @@ -0,0 +1,565 @@ + + + + + + + + + + + 4.10. Conclusion — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Conclusion

+ +
+
+ +
+
+
+ + + + +
+ +
+

4.10. Conclusion#

+

In this chapter, we explored the powerful features and techniques for parallel programming on GPU accelerators using OpenMP. We discussed the key device constructs, such as target, target data, target update, and target enter/exit data, which enable offloading computations to GPU devices.

+

We delved into the intricacies of mapping data between the host and device, including the map clause, implicit and explicit data mapping, array shaping, pointer mapping, and mapping structured data types. These techniques allow programmers to efficiently manage data transfers and optimize memory usage.

+

We also covered asynchronous execution and dependencies using the nowait clause, depend clause, and taskwait directive, enabling overlapping of computation and data transfers and specifying dependencies between tasks and target regions.

+

Device memory management was discussed, including OpenMP’s device memory routines, memory allocation and deallocation, host-device memory association, and techniques for optimizing data transfers.

+

We explored parallel execution on GPU devices using the teams and distribute directives, and how to combine them for efficient work distribution and parallelization.

+

Performance tuning techniques were presented, including choosing the right number of teams and threads, optimizing data transfers and memory usage, leveraging device-specific features, and measuring and profiling GPU performance.

+

Finally, we touched upon advanced topics and best practices, such as the Unified Shared Memory (USM) model, interoperability with other GPU programming models, debugging and error handling, and performance portability considerations.

+

OpenMP provides a comprehensive and portable solution for parallel programming on GPU accelerators. By leveraging the directives, clauses, and runtime functions discussed in this chapter, programmers can harness the power of GPU devices to accelerate their applications and achieve significant performance gains.

+

As GPU architectures and programming models continue to evolve, OpenMP remains at the forefront, providing a high-level and productive approach to GPU offloading. With its ongoing development and community support, OpenMP is well-positioned to meet the challenges and opportunities of parallel programming on GPU accelerators in the future.

+
+ + + + +
+ + + + + + + + +
+ + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 7fcbf35..0000000 --- a/LICENSE +++ /dev/null @@ -1,25 +0,0 @@ -BSD 2-Clause License - -Copyright (c) 2022, HPCAS -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/MultiCoreMultiCPU/0_Learning_Objectives.html b/MultiCoreMultiCPU/0_Learning_Objectives.html new file mode 100644 index 0000000..0536060 --- /dev/null +++ b/MultiCoreMultiCPU/0_Learning_Objectives.html @@ -0,0 +1,600 @@ + + + + + + + + + + + 2.1. Learning Objectives — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Learning Objectives

+ +
+
+ +
+
+
+ + + + +
+ +
+

2.1. Learning Objectives#

+

This chapter enables students to progressively develop their understanding and skills in OpenMP programming. By the end of this chapter, students will be able to:

+
+

Remember & Understand

+
    +
  • Describe the structure and principles of MIMD architecture and its relevance to shared-memory parallel computing.

  • +
  • Explain the execution model of OpenMP, including the role of threads, teams, and synchronization points.

  • +
+
+

Apply

+
    +
  • Implement parallel regions in OpenMP using the parallel and teams directives to create SPMD-style programs.

  • +
  • Use barrier, ordered, and other synchronization constructs to coordinate thread execution safely and correctly.

  • +
  • Apply OpenMP task constructs to express asynchronous and irregular parallelism in C/C++ programs.

  • +
  • Distribute workloads explicitly across threads using OpenMP directives like single, sections, for, and distribute.

  • +
+
+

Analyze

+
    +
  • Differentiate between the use cases and performance implications of parallel, teams, and task constructs.

  • +
  • Analyze synchronization needs in a parallel program and determine appropriate mechanisms to avoid race conditions.

  • +
  • Inspect the impact of various work-sharing strategies on performance and load balance.

  • +
+
+

Evaluate

+
    +
  • Evaluate the scalability and correctness of OpenMP programs under different architectural assumptions (e.g., multicore vs. multi-CPU).

  • +
  • Critique the suitability of selected OpenMP directives for specific parallel patterns or problem domains.

  • +
+
+

Create

+
    +
  • Design parallel solutions for real-world problems by combining OpenMP directives effectively and modularly.

  • +
  • Develop optimized OpenMP programs that demonstrate good parallel design, proper synchronization, and balanced workload distribution.

  • +
+
+ + + + +
+ + + + + + + + +
+ + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/MultiCoreMultiCPU/1_MIMDArchitecture.html b/MultiCoreMultiCPU/1_MIMDArchitecture.html new file mode 100644 index 0000000..631cae2 --- /dev/null +++ b/MultiCoreMultiCPU/1_MIMDArchitecture.html @@ -0,0 +1,667 @@ + + + + + + + + + + + 2.2. Multicore and Multi-CPU shared memory systems — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

2.2. Multicore and Multi-CPU shared memory systems#

+

In this section, we will introduce the MIMD architecture, multi-CPU systems, multi-core systems, and multithreading. Through this section, the readers will understand the structure of computers for parallel computing. To lay the foundation for the introduction to OpenMP programming.

+
+

2.2.1. MIMD Architecture#

+

Multiple Instruction Multiple Data(MIMD) architecture consists of processors that operate independently and asynchronously from one another. MIMD architecture systems consist of many processors that can have much common memory or memory that is exclusive to one. These terms mean many processes can execute instructions at any time with any piece or segment of data. MIMD architecture consists of two different types of architecture: Shared Memory MIMD architecture and Distributed Memory MIMD architecture.

+

Shared Memory MIMD systems have the following characteristics. Shared Memory MIMD groups processors and memory. Any processor can access that memory through a communication channel designated by the programmer. Finally, the memory addresses are shared between processors. On the other hand, Distributed Memory MIMD systems have their own set of characteristics. First, memory and processors are grouped together in pairs known as processing elements. Which is linked to other PEs through the use of communication channels. Second, each PE communicates with each other by sending messages, communication isn’t as open like that of a Shared Memory MIMD system.

+

The multi-CPU systems and multicore systems we introduce next both belong to the MIMD Architectures.

+
+
+

2.2.2. Multi-CPU Systems#

+

A multiple CPU machine is made up of two or more CPUs, sharing system bus, memory and I/O. +Multiple CPU machines were the original attempt at increasing computational power but since the birth of Multicore machines, most consumer computers have adopted that approach. That being said there is still a purpose for Multiple CPU machines, you will find them in supercomputers, servers, and other nonconsumer equipment that need raw computing power.

+

Multi-CPU systems can be divided into two types according to different memory systems, one uses a shared memory system, and the other uses a distributed memory system. As shown below:

+

Multi_CPU_systems_model1

+

On the left is a diagram of a multi-core CPU, where each core has a small local cache, but all cores have direct access to large shared memory. The diagram on the right shows a distributed memory system where multiple CPUs, each with their own local memory, are connected via a high-speed network. Distributed memory systems are common in distributed clusters and can communicate using MPI. Since OpenMP only supports shared memory systems, we won’t discuss distributed memory systems here.

+
+
+

2.2.3. Multicore Systems#

+

Multicore machines just mean that the computer has “n” number of central processing units. Although these processors have multiple cores they still fit in one CPU slot on a motherboard all using the same power, cooling, and other hardware.

+

A multi-core example is shown below: +Multi_CPU_systems_model1

+

Only two cores are shown in this diagram, but real multi-core processors tend to use more cores. Multiple threads can be loaded onto a core for execution. +Each core has L1 and L2 caches that only it can access, but they share the same memory system. For multi-core systems, the difference from multi-CPU systems is that all processors are on the same chip. The operating system treats each core as a separate processor, and each core can work independently.

+
+
+

2.2.4. Comparation of Multi-CPU Systems and Multicore Systems#

+

Both systems have their own advantages and disadvantages.

+

For multi-CPU systems:

+

Advantages:

+
    +
  • Multiple processors can work at the same time, and the throughput will be greatly increased.

  • +
  • When a processor stops working, other processors can help to complete the work, which greatly improves the reliability of the entire system.

  • +
+

Disadvantages:

+
    +
  • Multiple processors work at the same time, and the coordination between them becomes very complicated.

  • +
  • Buses, memory and I/O devices are shared. So if some processor is using some I/O, the other processor has to wait for its turn, which will result in lower throughput.

  • +
  • Increased requirements for memory devices. In order to make all processors work efficiently at the same time, we need to have a large main memory, which increases the cost.

  • +
+

For multi-core systems:

+

Advantages:

+
    +
  • Multiple cores are on the same die, which results in higher cache coherence.

  • +
  • The core is very energy efficient, so it can get more performance with less power consumption.

  • +
+

Disadvantages:

+
    +
  • We don’t get as good performance as a multi-CPU system. For example, if we have two cores on our CPU, we can theoretically get twice the speedup compared to a single core, but in practice we can only get 70-80% of the ideal speedup.

  • +
  • Some operating systems do not provide good support for multi-core systems.

  • +
+

But the readers may have noticed that although the two approaches are slightly different in how fast the processors work together and how they access memory, their design is very similar. And the important thing is that the working logic of OpenMP is the same, which is to create multiple threads and allocate them on different cores. Therefore, we treat them as the same.

+
+
+

2.2.5. Multithreading#

+

Next we will introduce a concept that is very important to OpenMP programming - multithreading. +Multithreading is a technology that implements concurrent execution of multiple threads on software or hardware. Thread is usually a concept at the software level and is the actual operating unit in the operating system process. +We can divide one huge task into multiple small tasks at the software level and load these tasks on different threads for execution.

+

The multi-threaded concurrency is a pseudo-concurrency in a single-core CPU, which is just a quick switch between multiple tasks through the scheduling strategy. +Implementing multithreading on a single-core CPU is essentially an efficient use of CPU core, and try the best to make the CPU core always running at full capacity. The interaction with the memory is dragging down the program’s execution speed. Moreover, multithreading can hide part of the interaction time through thread scheduling. +The hyper-threading technology essentially simulates multiple logical units in one CPU core. It is an optimization of threads based on the premise that each thread in multithreading is not efficiently used to improve efficiency further. +It is used on Intel’s top CPUs to pursue the ultimate efficiency.

+

The multi-threading in the multi-core CPU is the actual parallel execution of threads. Even if a core is fully occupied, other cores are not affected and can handle thread scheduling. +When the number of threads is less than the number of CPU cores, only some of the cores will work concurrently. When the number of threads is more than the number of cores, they will be loaded on the cores for execution according to a particular scheduling strategy.

+

Multi_CPU_systems_model1 +We still use this figure as an example to show the architecture of a multi-core CPU that supports hyper-threading technology,Suppose there are 12 cores in the CPU, and we create 24 threads. Since the CPU shown in the figure supports hyper-threading technology, two threads are loaded into one core for execution, so 24 threads can be executed simultaneously. If we have 48 threads, 24 will be executed first and the others will be queued. Whenever a core completes its current task, the first two threads in the queue are loaded onto that core for execution. +The cache in the CPU is an essential part of ensuring that threads can access data at high speed. +There are two types of L1 caches which are L1i, which stores instructions, and L1d, which stores data. +Different threads in the same core share the L1 and L2 cache, and different cores communicate through the L3 cache. The same thread can only run on one CPU core at one time.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/MultiCoreMultiCPU/2_UsingOpenMP_parallel.html b/MultiCoreMultiCPU/2_UsingOpenMP_parallel.html new file mode 100644 index 0000000..e39849d --- /dev/null +++ b/MultiCoreMultiCPU/2_UsingOpenMP_parallel.html @@ -0,0 +1,1310 @@ + + + + + + + + + + + 2.3. Creating SPMD parallelism using OpenMP parallel directive — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

2.3. Creating SPMD parallelism using OpenMP parallel directive#

+

From this part, we begin to introduce how to use OpenMP directives to write programs. We first introduce the most basic and most commonly used parallel directive.

+
+

2.3.1. Get Started with Parallel Directive to Create Parallelism#

+

The parallel directive is used to mark a parallel region. When a thread encounters a parallel region, a group of threads is created to execute the parallel region. +The original thread that executed the serial part will be the primary thread of the new team. All threads in the team execute parallel regions together. After a team is created, the number of threads in the team remains constant for the duration of that parallel region.

+
+

Primary thread is also known as the master thread

+
+

When a thread team is created, the primary thread will implicitly create as many tasks as the number of threads, each task is assigned and bounded to one thread. +When threads are all occupied, implicit tasks that have not been allocated will be suspended waiting for idle threads.

+

The following example from Chapter 1 shows how to use the parallel directive in C.

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <omp.h>
+
+int main(int argc, char *argv[]){
+    #pragma omp parallel
+    printf("%s\n", "Hello World");
+    
+    return 0;
+}
+
+
+
+
+
Hello World
+Hello World
+Hello World
+Hello World
+Hello World
+Hello World
+Hello World
+Hello World
+
+
+
+
+

This example prints Hello World 8 times, which means 8 threads are created by default. The default number of threads is determined by the computer hardware, 8 threads are created on the author’s computer. +The following example shows how to use the num_threads clause in the parallel directive to specify the number of threads to create.

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <omp.h>
+
+int main(int argc, char *argv[]){
+    #pragma omp parallel num_threads(4)
+    printf("%s\n", "Hello World");
+    
+    return 0;
+}
+
+
+
+
+
Hello World
+Hello World
+Hello World
+Hello World
+
+
+
+
+

In this example, we use the num_threads clause to specify the use of 4 threads to execute the parallel region. When the master thread encounters OpenMP constructs, three threads are created, and together with these three threads, a thread group of 4 is formed. +Hello World is printed four times, once per thread.

+

The next two examples show how to use the parallel directive in Fortran, and they have the exactly same meaning as the two examples in C above.

+
+
+
!!%compiler: gfortran
+!!%cflags: -fopenmp
+
+PROGRAM Parallel_Hello_World
+USE OMP_LIB
+
+!$OMP PARALLEL
+
+  PRINT *, "Hello World"
+
+!$OMP END PARALLEL
+
+END
+
+
+
+
+
 Hello World
+ Hello World
+ Hello World
+ Hello World
+ Hello World
+ Hello World
+ Hello World
+ Hello World
+
+
+
+
+
+
+
!!%compiler: gfortran
+!!%cflags: -fopenmp
+
+PROGRAM Parallel_Hello_World
+USE OMP_LIB
+
+!$OMP PARALLEL num_threads(4)
+
+  PRINT *, "Hello World"
+
+!$OMP END PARALLEL
+
+END
+
+
+
+
+
 Hello World
+ Hello World
+ Hello World
+ Hello World
+
+
+
+
+
+
+

2.3.2. Syntax and Semantics of Parallel Directive and Its Clauses#

+

Through the examples shown in the last section, it is not difficult to conclude that the syntax of the parallel directive in C is:

+
#pragma omp parallel [clause[ [,] clause] ... ] new-line
+    structured-block
+
+
+

The syntax of the parallel directive in Fortran is:

+
!$omp parallel do [clause[ [,] clause] ... ]
+    loop-nest
+[!$omp end parallel do]
+
+
+

As we have already introduced in chapter 1, clauses are used to specify additional information with the directive. +Ten clauses can be used with the parallel directive, listing as follows:

+
if([ parallel :] scalar-expression)
+num_threads(integer-expression)
+default(data-sharing-attribute)
+private(list)
+firstprivate(list)
+shared(list)
+copyin(list)
+reduction([reduction-modifier ,] reduction-identifier : list)
+proc_bind(affinity-policy)
+allocate([allocator :] list)
+
+
+
+

2.3.2.1. if Clause#

+

The if clause is used to achieve conditional parallelism. It can be used with many directives, such as parallel directive, task directive, simd directive, etc. Its effect depends on the construct to which it is applied. The syntax is as follows:

+
if([ directive-name-modifier :] scalar-expression)
+
+
+

or

+
if([ directive-name-modifier :] scalar-logical-expression)
+
+
+

The directive-name-modifier is optional and is very useful in combined constructs, which we will cover in the later chapters. When the if claue is used with the parallel directive, only parallel can be used as the directive-name-modifier. Its semantics are that the parallel region is active when the scaler-expression or scalar-logical-expression is true, otherwise the parallel region that follows will be inactive. At most one if clause can be used in each parallel construct.

+
+
+

2.3.2.2. num_threads Clause#

+

The syntax for num_threads is as follows:

+
num_threads(integer-expression)
+
+
+

We used the num_threads clause in the previous example to indicate the number of threads used to execute parallel regions. +The number of threads in the parallel region is determined by integer-expression. At most one num_threads clause can be used in each parallel construct. Because the number of threads used must be uniquely determined when entering the parallel region, whether explicitly specified by the programmer using num_threads clause or implicitly specified by the compiler. Of course, the scaler-expression must be an integer greater than zero.

+
+
+

2.3.2.3. Data-Sharing Attribute Clauses#

+

Data-sharing attribute clauses are used to control the data-sharing attributes of variables.

+

There are four data-sharing attribute clauses that can be used with the parallel directive, namely default clause, private clause, firstprivate clause and shared clause. The lastprivate clause and linear clause are two other data-sharing attribute clauses. They cannot be used with parallel directives, so we will skip them for now and describe them in detail in later chapters.

+

We first introduce the private clause, firstprivate clause and shared clause.

+
+

2.3.2.3.1. private Clause#

+

The syntax of the private clause is as follows:

+
private(list)
+
+
+

As mentioned before, a set of implicit tasks, equal in number to the number of threads in the team, is generated by the master thread when it encountering the parallel region. +The private caluse is used to declare private variable(s) in the list for a task or a SIMD lane. A private variable has a different address in the execution context of every thread. These variables are private to threads, and threads cannot access private variables owned by other threads. Programmers can use the private clause as many times as needed.

+
+
+

2.3.2.3.2. firstprivate Clause#

+

The firstprivate clause is very similar to the private clause. They both indicate that the variables in the list are private to the thread. Its syntax is as follows:

+
firstprivate(list)
+
+
+

But unlike the private clause, the variables in the list are initialized to the initial value that the original item had in the serial area. Like private clause, the firstprivate clause can be used multiple times in the parallel construct.

+
+
+

2.3.2.3.3. shared Clause#

+

The shared clause is used to declare that one or more items in the list can be shared by tasks or SIMD lane. Its syntax is as follows:

+
shared(list)
+
+
+

Shared variables have the same address in the execution context of every thread. In a parallel region, all threads or SIMD lanes can access these variables. The shared clause can also be used multiple times within a parallel struct.

+
+
+

2.3.2.3.4. default Clause#

+

The syntax of default clause:

+
default(data-sharing-attribute)
+
+
+

The default clause is used to define the default data-sharing attribute of variables in a parallel construct(it also can be used in a teams, or task-generating construct). +The data-sharing-attribute is one of the following:

+
+

private
+firstprivate
+shared
+none

+
+

When the data-sharing attribute of a variable is not specified, the data-sharing attribute of this variable will be set to the attribute specified in the default clause. If we have a variable a and the data-sharing-attribute in the default clause is shared, then we can understand it like this:

+
if(variable a is not assigned data-sharing attribute && we have clause default(shared)) {
+    equals to : we have clause shared(a)
+}
+
+
+

A special note for the default(none) clause:

+
+

The default(none) clause means that we do not define any data-sharing attribute for variables. The compiler does not implicitly define this for us, therefore, the variables need to be listed explicitly in other data-sharing attribute clauses.

+
+

Unlike the above three clauses, default clause can only appear once in a directive.

+
+
+

2.3.2.3.5. Implicit Scoping Rules#

+

You may ask, if the default clause is not used, what data-sharing attribute is the variable that is not explicitly listed in other clauses? In fact, OpenMP defines a set of implicit scope rules. It determines the data-sharing attribute of a variable based on the characteristics of the variable being accessed. For example, for threads in a group, a variable is scoped to shared if using this variable in the parallel region does not result in a data race condition. A variable is scoped to private if, in each thread executing the parallel region, the variable is always written before being read by the same thread. The detailed rules can be found in the OpenMP specification.

+

Although OpenMP proposes as detailed and explicit rules as possible for implicit scoping, there is still a high possibility of unpredictable errors. Therefore, it is undoubtedly the best choice for programmers to use clauses to explicitly specify the data-sharing attributes of variables. This is an important aspect of OpenMP program optimization.

+
+
+
+

2.3.2.4. copyin Clause#

+

The copyin clause is the one of two data copying clauses that can be used on the parallel construct or combined parallel worksharing constructs. The other one is the copyprivate clause which is only allowed on the single construct.

+

Before introducing these two clauses, we need to introduce a new data-sharing attribute, named threadprivate. The difference between private variables and thread private variables can be briefly described as follows:

+
    +
  • Private variables are local to a region and are placed on the stack most of the time. The lifetime of a private variable is the duration defined by the data scope clause. Every thread, including the main thread, makes a private copy of the original variable, and the new variable is no longer storage-associated to the original.

  • +
  • Threadprivate variables are persist across regions, most likely to be placed in the heap or in thread-local storage, which can be seen as being stored in a local memory local to the thread. The main thread uses the original variable and other threads make private copies of the original variable. The host variable is still store-associated with the original variable.

  • +
+

The syntax of the copyin Clause is as follows:

+
copyin(list)
+
+
+

It can copy the value of the main thread’s threadprivate variable into the threadprivate variable of every other member in the team that is executing the parallel region. And it can be used multiple times within a parallel struct.

+
+
+

2.3.2.5. reduction Clause#

+

The reduction clause belongs to the reduction scoping clauses and the reduction participating clauses. The reduction scoping clauses define the region of a reduction computed by a task or a SIMD lane. The reduction participating clauses are used to define a task or SIMD channel as a reduction participant. The reduction clause is specifically designed for reduction operations, and it allows the user to specify one or more thread-private variables that accept reduction operation at the end of the parallel region.

+

The syntax of the reduction clause is as follows:

+
reduction([ reduction-modifier,]reduction-identifier : list)
+
+
+

The reduction-modifier is optional and is used to describe the characteristics of the reduction operation. It can be one of the following:

+
+

inscan
+task
+default

+
+

When the reduction-modifier is inscan, the list items on each iteration of a loop nest will be updated with scan computation. +When inscan is used, one list item must be as a list item in an inclusive or exclusive clause on a scan directive enclosed by the construct. +It separates the items in the list from the reduction operations, and decides whether the storage statement includes or excludes the scan input of the present iteration.

+

When the reduction-modifier is task, an indeterminate number of additional private copies will be generated to support task reduction, and these reduction-related copies will be initialized before they are accessed by the tasks.

+

When reduction-modifier is default or when no reduction-modifier is specified, the behavior will be relative to the construct in which the reduction is located. For parallel, scope and simd construcrs, one or more private copies of each list item are created for each implicit task (for parallel and scope) or SIMD lane (for simd), as if the private clause had been used. Some other rules for other constructs can be found in the OpenMP specification and we will not go into details here.

+

The reduction-identifier is used to specify the reduction operator. +According to the OpenMP specification, the reduction-identifier has the following syntax:

+
    +
  • For C language,a reduction-identifier is either an identifier or one of the following operators: +, - (deprecated), *, &, |, ^, && and ||.

  • +
  • For C++, a reduction-identifier is either an id-expression or one of the following operators: +, - (deprecated), *, &, |, ^, && and ||.

  • +
  • For Fortran, a reduction-identifier is either a base language identifier, or a user-defined operator, or one of the following operators: +, - (deprecated), *, .and., .or., .eqv., .neqv., or one of the following intrinsic procedure names: max, min, iand, ior, ieor.

  • +
+

The following two tables, also from the OpenMP specification, show implicitly declared reduction-identifiers for numeric and logical types, including the initial value settings, and semantics for the reduction-identifiers.

+

For C/C++:

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Identifier

Initializer

Combiner

+

omp_priv = 0

omp_out += omp_in

-

omp_priv = 0

omp_out += omp_in

*

omp_priv = 1

omp_out *= omp_in

&

omp_priv = ~ 0

omp_out &= omp_in

|

omp_priv = 0

omp_out |= omp_in

^

omp_priv = 0

omp_out ^= omp_in

&&

omp_priv = 1

omp_out = omp_in && omp_out

||

omp_priv = 0

omp_out = omp_in

max

omp_priv = Minimal representable number in the reduction list item type

omp_out = omp_in > omp_out ? omp_in : omp_out

min

omp_priv = Maximal representable number in the reduction list item type

omp_out = omp_in < omp_out ? omp_in : omp_out

+
+

For Fortran:

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Identifier

Initializer

Combiner

+

omp_priv = 0

omp_out = omp_in + omp_out

-

omp_priv = 0

omp_out = omp_in + omp_out

*

omp_priv = 1

omp_out = omp_in * omp_out

.and.

omp_priv = .true.

omp_out = omp_in .and. omp_out

.or.

omp_priv = .false.

omp_out = omp_in .or. omp_out

.eqv.

omp_priv = .true.

omp_out = omp_in .eqv. omp_out

.neqv.

omp_priv = .false.

omp_out = omp_in .neqv. omp_out

max

omp_priv = Minimal representable number in the reduction list item type

omp_out = max(omp_in, omp_out)

min

omp_priv = Maximal representable number in the reduction list item type

omp_out = min(omp_in, omp_out)

iand

omp_priv = All bits on

omp_out = iand(omp_in, omp_out)

ior

omp_priv = 0

omp_out = ior(omp_in, omp_out)

ieor

omp_priv = 0

omp_out = ieor(omp_in, omp_out)

+
+

The reduction clause can be used multiple times as needed within a parallel struct.

+
+
+

2.3.2.6. proc_bind Clause#

+

The proc_bind clause is used to specify a mapping of OpenMP threads to places within the current place partition for implicit tasks of the encountering threads. At most one proc_bind clause can appear on the directive. Its syntax is as follows:

+
proc_bind(affinity-policy) 
+
+
+

and the affinity-policy is one of the following:

+
+

primary
+master [deprecated]
+close
+spread

+
+

When affinity-policy is specified as primary, it means that the execution environment assigns each thread in the group to the same location as the primary thread. +The master affinity policy has been deprecated, it has identical semantics as prime.

+

The close thread affinity policy instructs the execution environment to assign threads in the group closer to the parent thread’s location. When the number of threads P in the group is less than the number of locations P in the partition where the parent thread is located, each thread will be assigned one place, otherwise, T/P threads will be assigned to one place. When P does not divide T equally, the exact number of threads at a particular place is implementation-defined. The principle of allocation is that the thread number with the thread with the smallest thread number is executed at the position of the parent thread, and then the threads are allocated backward in the order of increasing thread number, and wrap-around with respect to the place partition of the primary thread.

+

The spread thread affinity policy is to create P sub-partitions in the parent partition and distribute the threads in these sub-partitions, thus achieving a sparse distribution. +When the number of threads is equal to or less than P, the number of sub-partitions is equal to the number of threads T, and the threads are distributed in the first position of each partition in order of thread number from small to large. Conversely, when the number of threads is greater than P, T/P threads with consecutive thread numbers are allocated to each sub-partition. +Sorted by thread number, the first T/P threads are allocated in the subpartition that contains the place of the parent thread. The remaining thread groups are allocated backward in turn, with a wrap-around with respect to the original place partition of the primary thread.

+
+
+

2.3.2.7. allocate Clause#

+

The allocate clause is used to specify the memory allocator used to obtain storage of the private variables. When it is used with parallel construct, the syntax is shown as following:

+
allocate([allocator:] list) 
+
+
+

In C/C++, the allocator is an expression of the omp_allocator_handle_t type. In Fortran, the allocator is an integer expression of the omp_allocator_handle_kindkind. +We will not list these allocators here, readers can find them in the OpenMP specification, but we will explain some commonly used allocators in the examples in the following section.

+

The allocate clause can be used multiple times as needed within a parallel struct.

+
+
+
+

2.3.3. More Advanced Examples of Using Other Clauses and the Analysis of Performance and Improvement#

+

In the above section, we have introduced the syntax and semantics of all the clauses that can be used with the parallel directive. In this section, we introduce some examples of how to use these clauses.

+

Meanwhile, in some of the examples, we will show some ways to improve performance, and discuss some potential possibilities for improving performance.

+
+

2.3.3.1. if clause and num_threads clause#

+

The if clause can achieve conditional parallelism and the num_threads clause will identify the number of threads used. In the following example, we use three cases to display the effect of the if clause and the num_trheads clause. No if clause is used in case 1, and the num_threads clause indicated we should use 4 threads, so we can get the output from four threads in parallel. The scalar expression in the if clause in case 2 is evaluated to be false, so the statements following the openMP directive (maybe code block in other cases) will be executed serially by only one thread. And in case 3, the scalar expression is evaluated to be true, so the statements following the openMP directive will be executed parallel by four threads.

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <omp.h>
+
+int main(int argc, char *argv[]){
+    int M =10;
+    //case 1
+    #pragma omp parallel num_threads(4)
+    printf("Hello World in case 1 from thread %d\n", omp_get_thread_num());
+
+    printf("-------------------------------------------------\n");
+    
+    //case 2
+    #pragma omp parallel num_threads(4) if(M > 10)
+    printf("Hello World in case 2 from thread %d\n", omp_get_thread_num());
+
+    printf("-------------------------------------------------\n");
+    
+    //case 3
+    #pragma omp parallel num_threads(4) if(M <= 10)
+    printf("Hello World in case 3 from thread %d\n", omp_get_thread_num());
+    
+    return 0;
+}
+
+
+
+
+
Hello World in case 1 from thread 2
+Hello World in case 1 from thread 3
+Hello World in case 1 from thread 1
+Hello World in case 1 from thread 0
+-------------------------------------------------
+Hello World in case 2 from thread 0
+-------------------------------------------------
+Hello World in case 3 from thread 3
+Hello World in case 3 from thread 1
+Hello World in case 3 from thread 0
+Hello World in case 3 from thread 2
+
+
+
+
+

Within a parallel region, the thread number uniquely identifies each thread. A thread can obtain its own thread number by calling the omp_get_thread_num library routine.

+
+
+

2.3.3.2. Data-Sharing Attribute Clauses#

+

The following example is a little more complicated. It shows how to use the omp_get_thread_num library routine and shows how to use two other clauses, the default clause and the private clause. It assigns tasks to each thread explicitly.

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+//This example is from https://www.openmp.org/wp-content/uploads/openmp-examples-5.1.pdf. The size of array and output are changed
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <omp.h>
+
+void subdomain(float *x, int istart, int ipoints) {
+    int i;
+    for (i = 0; i < ipoints; i++)       
+         x[istart+i] = istart+i;
+}
+
+void sub(float *x, int npoints) {
+    int iam, nt, ipoints, istart;
+    #pragma omp parallel default(shared) private(iam,nt,ipoints,istart)
+    {
+        iam = omp_get_thread_num();
+        nt = omp_get_num_threads();
+        ipoints = npoints / nt; /* size of partition */
+        istart = iam * ipoints; /* starting array index */
+        if (iam == nt-1) /* last thread may do more */
+            ipoints = npoints - istart;
+        subdomain(x, istart, ipoints);
+    }
+}
+
+void print(float *x, int npoints) {
+    for (int i = 0; i < npoints; i++) {
+        if(i % 10 == 0)
+            printf("\n");
+        printf("%.5f ", x[i]);
+    }
+}
+
+int main() {
+    float array[100];
+    sub(array, 100);
+    print(array, 100);
+    return 0;
+}
+
+
+
+
+
0.00000 1.00000 2.00000 3.00000 4.00000 5.00000 6.00000 7.00000 8.00000 9.00000 
+10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
+20.00000 21.00000 22.00000 23.00000 24.00000 25.00000 26.00000 27.00000 28.00000 29.00000 
+30.00000 31.00000 32.00000 33.00000 34.00000 35.00000 36.00000 37.00000 38.00000 39.00000 
+40.00000 41.00000 42.00000 43.00000 44.00000 45.00000 46.00000 47.00000 48.00000 49.00000 
+50.00000 51.00000 52.00000 53.00000 54.00000 55.00000 56.00000 57.00000 58.00000 59.00000 
+60.00000 61.00000 62.00000 63.00000 64.00000 65.00000 66.00000 67.00000 68.00000 69.00000 
+70.00000 71.00000 72.00000 73.00000 74.00000 75.00000 76.00000 77.00000 78.00000 79.00000 
+80.00000 81.00000 82.00000 83.00000 84.00000 85.00000 86.00000 87.00000 88.00000 89.00000 
+90.00000 91.00000 92.00000 93.00000 94.00000 95.00000 96.00000 97.00000 98.00000 99.00000 
+
+
+
+
+

In the above example, we use the default number of threads to perform assignment operations on 100 elements in the array. Tasks are evenly distributed to each thread, and when the number of tasks is not divisible by the number of threads, the remaining tasks will be completed by the last thread.

+

When programming in parallel, the most important and hardest part is how to assign tasks and manage threads. We already introduced that a thread can get its own id through the omp_get_thread_num routine. Another important routine is omp_get_num_threads, which returns the number of threads in the current team.

+

In the above example, variable npoints presents the total number of elements in the array, and it is divided into nt parts, each of size ipoints. The starting address of each part is istart. Each part is completed by one thread, and a total of 8 threads execute tasks in parallel.

+

The default clause is used to define the default data-sharing attributes of variables that are referenced in a parallel, teams, or task-generating construct. In the above example, default(shared) indicates that by default, the variables in the parallel region are shared variables. +The private clause is used to explicitly specify variables that are private in each task or SIMD lane (SIMD will be introduced in the next chapter). In the above example, the variables iam, nt, ipoints and istart are private variables for each thread, which means a thread cannot access these variables of another thread.

+

The corresponding Fortran program is shown below.

+
+
+
!!%compiler: gfortran
+!!%cflags: -fopenmp
+
+    SUBROUTINE SUBDOMAIN(X, ISTART, IPOINTS)
+        INTEGER ISTART, IPOINTS
+        REAL X(0:99)
+
+        INTEGER I
+
+        DO 100 I=0,IPOINTS-1
+            X(ISTART+I) = ISTART+I
+100     CONTINUE
+
+    END SUBROUTINE SUBDOMAIN
+
+    SUBROUTINE SUB(X, NPOINTS)
+        INCLUDE "omp_lib.h" ! or USE OMP_LIB
+
+        REAL X(0:99)
+        INTEGER NPOINTS
+        INTEGER IAM, NT, IPOINTS, ISTART
+
+!$OMP PARALLEL DEFAULT(PRIVATE) SHARED(X,NPOINTS)
+
+        IAM = OMP_GET_THREAD_NUM()
+        NT = OMP_GET_NUM_THREADS()
+        IPOINTS = NPOINTS/NT
+        ISTART = IAM * IPOINTS
+        IF (IAM .EQ. NT-1) THEN
+            IPOINTS = NPOINTS - ISTART
+        ENDIF
+        CALL SUBDOMAIN(X,ISTART,IPOINTS)
+
+!$OMP END PARALLEL
+    END SUBROUTINE SUB
+    
+    SUBROUTINE print(X, NPOINTS)
+        INTEGER I
+        REAL X(0:99)
+        INTEGER NPOINTS
+        DO I = 0,NPOINTS-1
+            IF (mod(I,10) .EQ. 0) THEN
+                print*,' '
+            END IF
+            WRITE(*,'(1x,f9.5,$)') X(I)
+        END DO
+    END SUBROUTINE PRINT
+
+    PROGRAM PAREXAMPLE
+        REAL ARRAY(100)
+        CALL SUB(ARRAY, 100)
+        CALL PRINT(ARRAY, 100)
+    END PROGRAM PAREXAMPLE
+
+
+
+
+
  
+   0.00000   1.00000   2.00000   3.00000   4.00000   5.00000   6.00000   7.00000   8.00000   9.00000  
+  10.00000  11.00000  12.00000  13.00000  14.00000  15.00000  16.00000  17.00000  18.00000  19.00000  
+  20.00000  21.00000  22.00000  23.00000  24.00000  25.00000  26.00000  27.00000  28.00000  29.00000  
+  30.00000  31.00000  32.00000  33.00000  34.00000  35.00000  36.00000  37.00000  38.00000  39.00000  
+  40.00000  41.00000  42.00000  43.00000  44.00000  45.00000  46.00000  47.00000  48.00000  49.00000  
+  50.00000  51.00000  52.00000  53.00000  54.00000  55.00000  56.00000  57.00000  58.00000  59.00000  
+  60.00000  61.00000  62.00000  63.00000  64.00000  65.00000  66.00000  67.00000  68.00000  69.00000  
+  70.00000  71.00000  72.00000  73.00000  74.00000  75.00000  76.00000  77.00000  78.00000  79.00000  
+  80.00000  81.00000  82.00000  83.00000  84.00000  85.00000  86.00000  87.00000  88.00000  89.00000  
+  90.00000  91.00000  92.00000  93.00000  94.00000  95.00000  96.00000  97.00000  98.00000  99.00000
+
+
+
+
+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+//This example is from https://www.openmp.org/wp-content/uploads/openmp-examples-5.1.pdf.
+
+#include <assert.h>
+
+int A[2][2] = {1, 2, 3, 4};
+
+void f(int n, int B[n][n], int C[]) {
+    int D[2][2] = {1, 2, 3, 4};
+    int E[n][n];
+
+    assert(n >= 2);
+    E[1][1] = 4;
+
+    #pragma omp parallel firstprivate(B, C, D, E)
+    {
+        assert(sizeof(B) == sizeof(int (*)[n]));
+        assert(sizeof(C) == sizeof(int*));
+        assert(sizeof(D) == 4 * sizeof(int));
+        assert(sizeof(E) == n * n * sizeof(int));
+
+        /* Private B and C have values of original B and C. */
+        assert(&B[1][1] == &A[1][1]);
+        assert(&C[3] == &A[1][1]);
+        assert(D[1][1] == 4);
+        assert(E[1][1] == 4);
+    }
+}
+
+int main() {
+    f(2, A, A[0]);
+    return 0;
+}
+
+
+
+
+

In the above example, we explored how to use the firstprivate clause. The size and values of the array or pointer appearing in the list of the firstprivate clause depend on the original arrays or pointers in the serial part. +The type of A is array of two arrays of two ints. B and C are function variables, which will be adjusted according to the type defined in the function. The type of B is pointer to array of n ints, and the type of C is pointer to int. The type of D is exactly the same as A, and the type of E is array of n arrays of n ints.

+

In the example, we use multiple assert statements to check whether B, C, D, and E have the expected types and values. Thus to verify the function of the firstprivate clause.

+
+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/MultiCoreMultiCPU/3_UsingOpenMP_teams.html b/MultiCoreMultiCPU/3_UsingOpenMP_teams.html new file mode 100644 index 0000000..f8ac3f5 --- /dev/null +++ b/MultiCoreMultiCPU/3_UsingOpenMP_teams.html @@ -0,0 +1,1497 @@ + + + + + + + + + + + 2.4. Creating SPMD parallelism using OpenMP teams directive — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

2.4. Creating SPMD parallelism using OpenMP teams directive#

+

In OpenMP, the teams directive plays a crucial role, especially in the context of offloading computations to devices such as GPUs.

+

The teams directive in OpenMP is used to create a league of thread teams, each of which can execute concurrently. This directive is particularly useful in scenarios where a hierarchical parallelism model is desired. For example, in GPU programming, a common pattern is to distribute work among multiple teams of threads, where each team can further parallelize the work among its member threads.

+

Unlike the parallel directive, which is used to create a single team of threads, the teams directive allows for the creation of multiple teams, providing an additional level of parallelism. This makes the teams directive a powerful tool for exploiting the parallel capabilities of modern hardware architectures, especially in the context of heterogeneous computing.

+

In this chapter, we will explore the basic usage of the teams directive, its interaction with other OpenMP directives, and how it can be used to target parallel execution on devices like GPUs. By the end of this chapter, you should have a solid understanding of the teams directive and how to leverage it to write efficient parallel programs with OpenMP.

+
+

2.4.1. Basic Usage#

+
+

2.4.1.1. teams Directive#

+

The teams directive indicates that the loop that follows is split among multiple thread teams, one thread team computing one part of the task. Developers can use the teams directive to use a large number of thread teams.

+

The following figure shows the execution model of the teams directive:

+

teams_directive

+

A league of teams is created when a thread encounters a teams construct. Each team is an initial team, and the initial thread in each team executes the team area. +After a team is created, the number of initial teams remains the same for the duration of the teams region. +Within a teams region, the initial team number uniquely identifies each initial team. A thread can obtain its own initial team number by calling the omp_get_team_num library routine. +The teams directive has the following characteristics:

+
    +
  • the teams directive can spawn one or more thread teams with the same number of threads

  • +
  • code is portable for one thread team or multiple thread teams

  • +
  • only the primary thread of each team continues to execute

  • +
  • no synchronization between thread teams

  • +
  • programmers don’t need to think about how to decompose loops

  • +
+

OpenMP was originally designed for multithreading on shared-memory parallel computers, so the parallel directive only creates a single layer of parallelism. +The team instruction is used to express the second level of scalable parallelization. Before OpenMP 5.0, it can be only used on the GPU (with an associated target construct). In OpenMP 5.0 the teams construct was extended to enable the host to execute a teams region.

+

The syntax for the teams directive in C/C++ is:

+
#pragma omp teams [clause[ [,] clause] ... ] new-line
+    structured-block
+
+
+

The syntax in Fortran is:

+
!$omp teams [clause[ [,] clause] ... ]
+    loosely-structured-block
+!$omp end teams
+
+
+

In its simplest form, the teams directive can be used without any clauses:

+
#pragma omp teams
+{
+    // Code to be executed by each team
+}
+
+
+

This will create a league of teams, with the number of teams and the number of threads per team determined by the implementation. Typically, the number of teams is chosen to match the number of available processing units, such as cores or GPU compute units.

+
+
+

2.4.1.2. Example: Creating Teams#

+

Here’s a basic example that demonstrates the use of the teams directive:

+
#include <stdio.h>
+#include <omp.h>
+
+int main() {
+    #pragma omp teams
+    {
+        printf("Team %d out of %d teams\n", omp_get_team_num(), omp_get_num_teams());
+    }
+    return 0;
+}
+
+
+

In this example, each team will print its team number and the total number of teams. The omp_get_team_num() function returns the team number of the calling thread, and the omp_get_num_teams() function returns the total number of teams in the current league.

+

When executed, the program might produce output similar to the following, depending on the number of teams created by the implementation:

+
Team 0 out of 4 teams
+Team 1 out of 4 teams
+Team 2 out of 4 teams
+Team 3 out of 4 teams
+
+
+

This simple example demonstrates the basic usage of the teams directive to create multiple teams of threads. In the following sections, we will explore how to control the number of teams and threads, and how the teams directive interacts with other OpenMP directives for more complex parallel programming scenarios.

+
+
+
+

2.4.2. Interaction with Other Directives#

+

The teams directive in OpenMP is often used in conjunction with other directives to create a hierarchical parallelism model. This section explores how the teams directive interacts with the distribute, parallel, and target directives.

+
+

2.4.2.1. Teams and Distribute Directives#

+

The distribute directive is used to distribute the iterations of a loop across the teams created by the teams directive. This combination is particularly useful for data parallelism where each team works on a different portion of the data.

+

Example: Distributing loop iterations across teams to perform a parallel reduction.

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+int main() {
+    const int N = 1000;
+    int array[N];
+    int sum = 0;
+
+    // Initialize the array with some values
+    for (int i = 0; i < N; i++) {
+        array[i] = i;
+    }
+
+    #pragma omp target teams distribute reduction(+:sum)
+    for (int i = 0; i < N; i++) {
+        sum += array[i];
+    }
+
+    printf("Sum: %d\n", sum);
+
+    return 0;
+}
+
+
+
+
+

In this example, the loop iterations are distributed across teams, and each team contributes to the reduction operation to calculate the sum of the array elements.

+
+
+

2.4.2.2. Teams and Parallel Directives#

+

The teams directive can also be combined with the parallel directive to create nested parallelism. Within each team, the parallel directive creates a parallel region where multiple threads can work concurrently.

+

Example: Using nested parallelism with the teams and parallel directives to perform matrix multiplication.

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+#define N 1000
+#define M 1000
+#define P 1000
+
+int main() {
+    double A[N][M], B[M][P], C[N][P];
+
+    // Initialize matrices A and B
+    // ...
+
+    #pragma omp target teams
+    {
+        #pragma omp distribute parallel for collapse(2)
+        for (int i = 0; i < N; i++) {
+            for (int j = 0; j < P; j++) {
+                double sum = 0.0;
+                for (int k = 0; k < M; k++) {
+                    sum += A[i][k] * B[k][j];
+                }
+                C[i][j] = sum;
+            }
+        }
+    }
+
+    // Print matrix C
+    // ...
+
+    return 0;
+}
+
+
+
+
+

In this example, the outer loop iterations (over i and j) are distributed across teams, and within each team, the loop iterations are executed in parallel by the team’s threads.

+
+
+

2.4.2.3. Teams and Target Directives#

+

The teams directive is commonly used with the target directive for offloading computations to a device, such as a GPU. The target directive specifies that the code block should be executed on the device, and the teams directive creates teams of threads on the device to execute the code.

+

Example: Offloading a computation to a device and using teams to perform the computation in parallel.

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+#define N 1000
+
+int main() {
+    float A[N], B[N], C[N];
+
+    // Initialize arrays A and B
+    // ...
+
+    #pragma omp target teams map(to: A, B) map(from: C)
+    {
+        #pragma omp distribute parallel for
+        for (int i = 0; i < N; i++) {
+            C[i] = A[i] + B[i];
+        }
+    }
+
+    // Print array C
+    // ...
+
+    return 0;
+}
+
+
+
+
+

In this example, the computation of the element-wise sum of two arrays is offloaded to a device. The teams directive is used to create teams of threads on the device, and the distribute parallel for construct is used to distribute the loop iterations across the teams and execute them in parallel.

+
+
+

2.4.2.4. Summary#

+

The teams directive provides a flexible way to create a hierarchical parallelism model in OpenMP. By combining the teams directive with the distribute, parallel, and target directives, developers can efficiently utilize the parallel capabilities of both CPUs and GPUs for a wide range of applications.

+
+
+
+

2.4.3. Data Environment#

+

The teams directive in OpenMP creates a new data environment for the region of code it encloses. This section discusses the data-sharing attributes and other aspects of the data environment created by the teams directive.

+
+

2.4.3.1. Data-Sharing Attributes#

+

Within a teams region, variables can have one of the following data-sharing attributes: shared, private, firstprivate, or reduction. The default data-sharing attribute for variables in a teams region is determined by the default clause if present; otherwise, it follows the rules of the OpenMP specification.

+
    +
  • Shared: Variables with the shared attribute are shared among all threads in all teams. Each team accesses the same storage location for shared variables.

  • +
  • Private: Variables with the private attribute have a separate copy for each thread. Each thread in each team has its own copy of private variables.

  • +
  • Firstprivate: Similar to private, but each thread’s copy is initialized with the value of the variable before entering the teams region.

  • +
  • Reduction: Variables with the reduction attribute are subject to a reduction operation at the end of the teams region.

  • +
+
+
+

2.4.3.2. Example: Data-Sharing Attributes in Teams Region#

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+int main() {
+    int shared_var = 100;
+    int private_var = 200;
+
+    #pragma omp target teams map(shared_var) private(private_var)
+    {
+        // Inside the teams region
+        private_var += omp_get_team_num();
+        #pragma omp parallel reduction(+:shared_var)
+        {
+            shared_var += private_var;
+        }
+    }
+
+    printf("Shared variable: %d\n", shared_var);
+
+    return 0;
+}
+
+
+
+
+

In this example, shared_var is shared among all teams and threads, while private_var is private to each thread. The value of shared_var is modified through a reduction operation within the parallel region inside the teams region.

+
+
+

2.4.3.3. Summary#

+

Understanding the data environment and data-sharing attributes in a teams region is crucial for writing correct and efficient parallel programs with OpenMP. Properly managing the data environment ensures that data is correctly shared or privatized among teams and threads, avoiding data races and other concurrency issues.

+
+
+
+

2.4.4. Clauses#

+

The teams directive in OpenMP can be used with several clauses to control the behavior of the teams and the data environment. This section discusses the clauses with the teams directive.

+
+

2.4.4.1. num_teams Clause#

+

Syntax: num_teams(integer-expression)

+

The num_teams clause specifies the number of teams to be created in the teams region.

+

Example:

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+int main() {
+    #pragma omp target teams num_teams(4)
+    {
+        printf("Team %d out of %d teams\n", omp_get_team_num(), omp_get_num_teams());
+    }
+    return 0;
+}
+
+
+
+
+
+
+

2.4.4.2. thread_limit Clause#

+

Syntax: thread_limit(integer-expression)

+

The thread_limit clause specifies the maximum number of threads that can be part of each team.

+

Example:

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+int main() {
+    #pragma omp target teams thread_limit(8)
+    {
+        #pragma omp parallel
+        {
+            printf("Thread %d in team %d\n", omp_get_thread_num(), omp_get_team_num());
+        }
+    }
+    return 0;
+}
+
+
+
+
+
+
+

2.4.4.3. reduction Clause#

+

Syntax: reduction(operator: list)

+

The reduction clause is used to perform a reduction operation on variables that are private to each thread but shared across the teams.

+

Example:

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+int main() {
+    int sum = 0;
+
+    #pragma omp target teams map(tofrom: sum) reduction(+:sum)
+    {
+        #pragma omp parallel
+        {
+            sum += omp_get_thread_num();
+        }
+    }
+
+    printf("Sum: %d\n", sum);
+
+    return 0;
+}
+
+
+
+
+
+
+

2.4.4.4. default Clause#

+

Syntax: default(shared | none)

+

The default clause sets the default data-sharing attribute for variables in the teams region.

+

Example:

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+int main() {
+    #pragma omp target teams default(none)
+    {
+        int x;
+        // Code that uses the variable x
+    }
+    return 0;
+}
+
+
+
+
+
+
+

2.4.4.5. allocate Clause#

+

Syntax: allocate([allocator:] list)

+

The allocate clause specifies the allocator to be used for the variables in the list.

+

Example:

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+int main() {
+    #pragma omp target teams allocate(x)
+    {
+        // Code that uses the variable x
+    }
+    return 0;
+}
+
+
+
+
+
+
+

2.4.4.6. shared Clause#

+

Syntax: shared(list)

+

The shared clause specifies that the data within a parallel region is shared among all threads.

+

Example:

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+int main() {
+    #pragma omp target teams shared(x)
+    {
+        // All threads in the team share the variable x
+    }
+    return 0;
+}
+
+
+
+
+
+
+

2.4.4.7. private Clause#

+

Syntax: private(list)

+

The private clause specifies that each thread should have its own instance of a variable.

+

Example:

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+int main() {
+    #pragma omp target teams private(x)
+    {
+        // Each thread has its own private copy of x
+    }
+    return 0;
+}
+
+
+
+
+
+
+

2.4.4.8. firstprivate Clause#

+

Syntax: firstprivate(list)

+

The firstprivate clause provides each thread with its own copy of a variable and initializes each copy with the value of the variable at the time the parallel region is entered.

+

Example:

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+int main() {
+    #pragma omp target teams firstprivate(x)
+    {
+        // Each thread has its own copy of x, initialized with the value of x
+    }
+    return 0;
+}
+
+
+
+
+
+
+

2.4.4.9. Summary#

+

Clauses provide a powerful way to customize the behavior of the teams directive in OpenMP. By using clauses like num_teams, thread_limit, reduction, default, allocate, shared, private, and firstprivate, programmers can control various aspects of the teams’ behavior and the data environment.

+
+
+
+

2.4.5. Targeting Devices#

+

In modern computing, harnessing the power of specialized hardware such as Graphics Processing Units (GPUs) is essential for achieving high performance in parallel computing. OpenMP provides a seamless way to offload computations to these devices using the target and teams directives.

+
+

2.4.5.1. Offloading with Target and Teams Directives#

+

The target directive instructs the compiler to execute the enclosed code block on a specified device, typically a GPU. The teams directive, when used in conjunction with target, creates a league of thread teams to execute the code in parallel on the device.

+

Example: Vector Addition on a GPU

+

Consider the following example where two arrays are added element-wise and the result is stored in a third array:

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+int main() {
+    const int N = 1000;
+    float a[N], b[N], c[N];
+
+    // Initialize the input arrays
+    for (int i = 0; i < N; i++) {
+        a[i] = i * 1.0f;
+        b[i] = i * 2.0f;
+    }
+
+    // Offload the computation to a GPU
+    #pragma omp target teams map(to: a, b) map(from: c)
+    {
+        #pragma omp distribute parallel for
+        for (int i = 0; i < N; i++) {
+            c[i] = a[i] + b[i];
+        }
+    }
+
+    // Output the result
+    for (int i = 0; i < N; i++) {
+        printf("%f ", c[i]);
+    }
+
+    return 0;
+}
+
+
+
+
+

In this example, the target teams directive offloads the addition of arrays a and b to a GPU. The map clauses specify how data is transferred between the host and the device. The distribute parallel for directive ensures that the computation is performed in parallel by the teams of threads on the device.

+
+
+

2.4.5.2. Leveraging Device Parallelism#

+

Using the teams directive with the target directive enables you to harness the parallel processing capabilities of devices like GPUs. It allows for scalable parallel execution where the workload is distributed across multiple teams of threads, each executing concurrently on the device.

+
+
+

2.4.5.3. Summary#

+

The integration of the teams directive with the target directive in OpenMP provides a powerful and flexible approach to offloading computations to devices. This capability allows programmers to efficiently utilize the parallel processing power of GPUs and other devices, thereby enhancing the performance of parallel applications. In the following chapters, we will delve deeper into the map clause and explore other aspects of device offloading in OpenMP.

+
+
+
+

2.4.6. Best Practices for Effective Use of Teams Directive#

+

Optimizing the use of the teams directive in OpenMP is crucial for harnessing the full potential of parallel computing, especially when offloading computations to devices such as GPUs. Here are some essential best practices to keep in mind:

+
+

2.4.6.1. Optimal Team Configuration#

+

Selecting the appropriate number of teams is pivotal. It should be aligned with the target device’s architecture and the computational workload. For GPUs, a rule of thumb is to create a number of teams that corresponds to a multiple of the device’s compute units.

+
+
+

2.4.6.2. Workload Distribution#

+

Achieving a balanced distribution of work among teams is key to avoiding performance bottlenecks. Utilize the distribute directive in tandem with teams to ensure an equitable assignment of loop iterations or other computational tasks across the teams.

+

Example: Workload Distribution

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+#define N 10000
+
+int main() {
+    float array[N];
+
+    // Initialize the array
+    for (int i = 0; i < N; i++) {
+        array[i] = i;
+    }
+
+    // Distribute workload evenly among teams
+    #pragma omp target teams map(tofrom: array)
+    #pragma omp distribute
+    for (int i = 0; i < N; i++) {
+        array[i] = array[i] * 2.0f;
+    }
+
+    return 0;
+}
+
+
+
+
+
+
+

2.4.6.3. Minimizing Data Movement#

+

Data transfer between the host and the device can significantly impact performance. Employ the map clause with precision to reduce unnecessary data movement. Additionally, explore techniques like data prefetching and overlapping data transfers with computation to enhance data locality.

+

Example: Efficient Data Movement

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+#define N 10000
+
+int main() {
+    float input[N], output[N];
+
+    // Initialize the input array
+    for (int i = 0; i < N; i++) {
+        input[i] = i;
+    }
+
+    // Minimize data movement in offloading
+    #pragma omp target teams map(to: input) map(from: output)
+    {
+        #pragma omp distribute parallel for
+        for (int i = 0; i < N; i++) {
+            output[i] = input[i] * 2.0f;
+        }
+    }
+
+    return 0;
+}
+
+
+
+
+
+
+

2.4.6.4. Efficient Reductions#

+

Ensure that reductions are performed efficiently, especially when using the reduction clause with the teams directive. Implement parallel reduction algorithms that leverage the device’s parallel processing capabilities to avoid bottlenecks.

+

Example: Parallel Reduction

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+#define N 10000
+
+int main() {
+    float array[N];
+    float sum = 0.0f;
+
+    // Initialize the array
+    for (int i = 0; i < N; i++) {
+        array[i] = i;
+    }
+
+    // Efficient reduction on the device
+    #pragma omp target teams map(to: array) reduction(+:sum)
+    {
+        #pragma omp distribute parallel for
+        for (int i = 0; i < N; i++) {
+            sum += array[i];
+        }
+    }
+
+    printf("Sum: %f\n", sum);
+
+    return 0;
+}
+
+
+
+
+
+
+

2.4.6.5. Debugging and Profiling#

+

Leverage OpenMP-aware debugging and profiling tools to identify and address performance bottlenecks. Regularly verify the correctness of parallel execution to ensure the expected behavior of your application.

+
+
+

2.4.6.6. Conclusion#

+

Adhering to these best practices will enable you to maximize the efficiency and correctness of your parallel applications using the teams directive in OpenMP. Tailor your approach to the specific requirements of your application and the capabilities of your target device for optimal results.

+
+
+
+

2.4.7. Advanced Topics#

+

While the basic usage of the teams directive provides a powerful tool for parallel computing, there are several advanced topics that can further enhance the performance and flexibility of your OpenMP applications. Here are some advanced topics related to the teams directive:

+
+

2.4.7.1. Nested Parallelism#

+

OpenMP supports nested parallelism, where a parallel region can be defined inside another parallel region. This can be particularly useful when using the teams directive to create a hierarchical parallelism model.

+

Example: Nested Parallelism

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+int main() {
+    #pragma omp target teams
+    {
+        // Outer parallel region executed by teams
+        #pragma omp parallel
+        {
+            // Inner parallel region executed by threads within each team
+            printf("Team %d, Thread %d\n", omp_get_team_num(), omp_get_thread_num());
+        }
+    }
+    return 0;
+}
+
+
+
+
+

In this example, an outer parallel region is created by the teams directive, and an inner parallel region is created by the parallel directive. Each team of threads executes the inner parallel region independently.

+
+
+

2.4.7.2. SIMD Parallelism#

+

The teams directive can be combined with SIMD (Single Instruction, Multiple Data) constructs to exploit vector parallelism on devices that support SIMD instructions.

+

Example: SIMD Parallelism

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+#define N 10000
+
+int main() {
+    float array[N];
+
+    // Initialize the array
+    for (int i = 0; i < N; i++) {
+        array[i] = i;
+    }
+
+    // Use SIMD parallelism within teams
+    #pragma omp target teams map(tofrom: array)
+    #pragma omp distribute
+    for (int i = 0; i < N; i++) {
+        #pragma omp simd
+        for (int j = 0; j < N; j++) {
+            array[j] = array[j] + 1.0f;
+        }
+    }
+
+    return 0;
+}
+
+
+
+
+

In this example, the simd directive is used within the loop to enable SIMD parallelism, allowing multiple elements of the array to be processed simultaneously by SIMD instructions.

+
+
+

2.4.7.3. Interoperability with Other Programming Models#

+

OpenMP can interoperate with other programming models, such as MPI (Message Passing Interface) or CUDA, to take advantage of specific features of different parallel programming approaches.

+

Example: Interoperability with MPI

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <mpi.h>
+#include <stdio.h>
+
+int main(int argc, char *argv[]) {
+    MPI_Init(&argc, &argv);
+
+    int rank;
+    MPI_Comm_rank(MPI_COMM_WORLD, &rank);
+
+    #pragma omp target teams
+    {
+        printf("MPI Rank %d, Team %d\n", rank, omp_get_team_num());
+    }
+
+    MPI_Finalize();
+    return 0;
+}
+
+
+
+
+

In this example, OpenMP is used in conjunction with MPI, where each MPI process executes an OpenMP teams region on a device. This allows for a hybrid parallel programming approach that combines distributed memory parallelism (MPI) with shared memory parallelism (OpenMP).

+
+
+

2.4.7.4. Summary#

+

Exploring advanced topics related to the teams directive can unlock new levels of performance and flexibility in your OpenMP applications. Whether it’s leveraging nested parallelism, exploiting SIMD instructions, or interoperating with other programming models, these advanced techniques can help you tackle complex parallel computing challenges.

+
+
+
+

2.4.8. Summary#

+

The teams directive is a powerful feature in OpenMP that enables the creation of a league of thread teams for parallel execution, particularly on devices such as GPUs. This chapter has covered the fundamental concepts, usage, and best practices associated with the teams directive, along with advanced topics for further exploration.

+

Key takeaways from this chapter include:

+
    +
  • Basic Usage: The teams directive, often used in conjunction with the target directive, allows for offloading computations to a device with a specified number of teams and threads.

  • +
  • Data Environment: Understanding and managing the data environment, including data-sharing attributes and clauses like allocate, default, shared, and private, is crucial for efficient parallel execution.

  • +
  • Targeting Devices: The combination of target and teams directives provides a flexible and powerful approach to offload computations to devices, with the map clause playing a vital role in managing data movement.

  • +
  • Best Practices: To maximize performance and ensure correct execution, it’s important to choose the right number of teams, balance the workload among teams, minimize data movement, use reductions efficiently, and employ debugging and profiling tools.

  • +
  • Advanced Topics: Exploring nested parallelism, SIMD parallelism, and interoperability with other programming models can further enhance the capabilities of your OpenMP applications.

  • +
+

By mastering the use of the teams directive, you can unlock new levels of parallelism and performance in your applications, making them more scalable and efficient on modern computing architectures.

+
+
+

2.4.9. Exercises#

+
    +
  1. Nested Parallelism: Modify the example code for nested parallelism to create a hierarchy of parallel regions using the teams directive. Experiment with different numbers of teams and threads to observe the performance impact.

  2. +
  3. SIMD Parallelism: Implement a matrix multiplication algorithm using SIMD parallelism within the teams directive. Compare the performance of the SIMD-parallelized version with a non-parallelized version.

  4. +
  5. Load Balancing: Write a program that performs a computation on a large array and uses the distribute directive to distribute the workload among teams. Experiment with different load balancing strategies to minimize load imbalance.

  6. +
  7. Reduction Operation: Modify the example code for the reduction clause to perform a more complex reduction operation, such as finding the maximum or minimum value in an array, using the teams directive.

  8. +
  9. Interoperability: Explore interoperability between OpenMP and another parallel programming model, such as MPI or CUDA. Write a program that combines both programming models to perform a parallel computation.

  10. +
  11. Debugging and Profiling: Use an OpenMP-aware debugging or profiling tool to analyze the performance of one of the previous exercises. Identify any performance bottlenecks and propose optimizations.

  12. +
  13. Optimization Strategies: Experiment with different optimization strategies, such as loop unrolling, loop tiling, or data prefetching, within the teams directive to improve the performance of a parallelized computation.

  14. +
  15. Real-world Application: Identify a real-world application that can benefit from parallelization using the teams directive. Write a program that parallelizes a relevant part of the application and measure the performance improvement.

  16. +
  17. Scalability Analysis: Conduct a scalability analysis of one of the previous exercises by varying the problem size and the number of teams/threads. Determine the scalability limits of your parallelized code.

  18. +
  19. Advanced Topics Exploration: Choose one of the advanced topics discussed in this chapter, such as nested parallelism or SIMD parallelism, and explore it further by implementing a more complex example or conducting a detailed performance analysis.

  20. +
+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/MultiCoreMultiCPU/4_SynchronizationThreads.html b/MultiCoreMultiCPU/4_SynchronizationThreads.html new file mode 100644 index 0000000..e6c6f7d --- /dev/null +++ b/MultiCoreMultiCPU/4_SynchronizationThreads.html @@ -0,0 +1,818 @@ + + + + + + + + + + + 2.5. Synchronization of Threads Using Barrier and Ordered Directive — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

2.5. Synchronization of Threads Using Barrier and Ordered Directive#

+
+

2.5.1. Introduction to Synchronization in Parallel Programming with OpenMP#

+

In parallel programming, synchronization is a fundamental concept that ensures that multiple threads or processes execute concurrently in a controlled manner. Synchronization mechanisms are crucial for maintaining the correctness and efficiency of parallel programs, particularly when multiple threads interact or share resources.

+

OpenMP, a widely used directive-based parallel programming model, provides various synchronization constructs that help manage the complexities of concurrent execution. Among these, the barrier and ordered directives play pivotal roles in controlling the flow and order of execution across threads. Understanding these directives is essential for developing robust and efficient parallel applications.

+
    +
  • Barrier Directive: This directive is used to align threads at a synchronization point before any of them can proceed further. It ensures that all threads in a team reach a certain point in the execution before moving on. This is particularly useful when subsequent operations depend on the completion of certain tasks by all threads.

  • +
  • Ordered Directive: This directive controls the sequence of execution within loop iterations, making it possible to enforce a specific order when needed. It is essential in situations where the order of operations affects the outcome, such as in numerical simulations or cumulative operations.

  • +
+

The correct use of these directives not only enhances the performance of parallel programs but also prevents common issues such as race conditions, deadlocks, and inconsistent outputs. In the following sections, we will explore each of these synchronization mechanisms in detail, providing usage examples and best practices to integrate them effectively into your OpenMP programs.

+
+
+

2.5.2. Barrier Directive#

+

The Barrier Directive is an essential synchronization mechanism in OpenMP, designed to ensure that all threads within a parallel region reach a certain point in the code before any thread can proceed. This collective synchronization is crucial in scenarios where different threads must complete their assigned tasks before the next phase of computation begins.

+
+

2.5.2.1. Purpose of the Barrier Directive#

+

The primary purpose of the barrier directive is to synchronize threads, which helps to:

+
    +
  • Ensure that all preprocessing or initialization tasks are completed by all threads before moving on to the main computation.

  • +
  • Prevent race conditions where threads might read or write shared data that has not yet been fully prepared by other threads.

  • +
  • Manage the workflow in complex parallel tasks, making debugging and maintenance easier by defining clear synchronization points.

  • +
+
+
+

2.5.2.2. Usage#

+

The barrier directive is simple to use and can be added anywhere within a parallel region where synchronization is required. The syntax is as follows:

+
#pragma omp barrier
+
+
+

This directive causes each thread to wait until all members of the team reach the barrier. Once the last thread arrives, all threads are released to continue execution beyond the barrier.

+
+
+

2.5.2.3. Example: Using the Barrier Directive#

+

Consider a scenario where multiple threads are tasked with initializing different sections of an array, and a subsequent computation requires the entire array to be initialized:

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#define SIZE 100
+int array[SIZE];
+
+void initialize_array() {
+    #pragma omp parallel num_threads(4)
+    {
+        int tid = omp_get_thread_num();
+        int chunk_size = SIZE / omp_get_num_threads();
+
+        // Each thread initializes its portion of the array
+        for (int i = tid * chunk_size; i < (tid + 1) * chunk_size; i++) {
+            array[i] = compute_initial_value(i);
+        }
+
+        // Wait for all threads to finish initializing
+        #pragma omp barrier
+
+        // After the barrier, all parts of the array are initialized
+        if (tid == 0) {  // Only the master thread executes this
+            for (int i = 0; i < SIZE; i++) {
+                process_array(i, array[i]);
+            }
+        }
+    }
+}
+
+
+
+
+

In this example, the #pragma omp barrier ensures that no thread begins processing the array until all threads have completed their initialization tasks. This avoids any dependency issues and ensures that data is correctly prepared for subsequent operations.

+
+
+

2.5.2.4. Considerations#

+

While barriers are powerful, they should be used judiciously:

+
    +
  • Performance: Unnecessary barriers can degrade performance by forcing threads to wait, even if they could otherwise continue execution independently.

  • +
  • Deadlocks: Incorrect use of barriers can lead to deadlocks, especially if not all threads reach the barrier.

  • +
+

The barrier directive is a fundamental tool in OpenMP for coordinating the complex behaviors of multiple threads, ensuring that multi-threaded programs execute reliably and correctly.

+
+
+
+

2.5.3. Ordered Directive#

+

In OpenMP, the ordered directive provides a method to manage the execution order of iterations within a parallel loop. This capability is critical in ensuring the orderly execution of code segments where the sequence of operations is important for correctness or performance.

+
+

2.5.3.1. Purpose of the Ordered Directive#

+

The ordered directive is particularly useful in scenarios where:

+
    +
  • The output sequence must match the input sequence, such as when writing to files or producing time-sensitive results.

  • +
  • Operations within the loop have dependencies that require them to execute in a specific order.

  • +
+
+
+

2.5.3.2. Usage#

+

The ordered directive is typically used in conjunction with loop constructs and is specified using the ordered clause within a loop directive. The actual code block that needs to be ordered is marked with an ordered directive.

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#pragma omp for ordered
+for (int i = 0; i < n; i++) {
+    // Pre-processing that can be done out of order
+    #pragma omp ordered
+    {
+        // Code here is executed in the order of loop iterations
+    }
+}
+
+
+
+
+

This structure allows the bulk of the loop to execute in parallel, with only the critical section that needs ordering being controlled.

+
+
+

2.5.3.3. Compatibility with the doacross Clause#

+

The ordered directive can be effectively combined with the doacross loop schedule, which provides finer control over loop iteration dependencies. The doacross clause enables specifying dependencies across loop iterations, which can be crucial for loops where iteration ( i ) must complete certain operations before iteration ( i+1 ) can begin effectively:

+
#pragma omp for ordered(2) doacross
+for (int i = 0; i < n; i++) {
+    #pragma omp ordered depend(sink: i-1)
+    {
+        process_step(i);
+    }
+    #pragma omp ordered depend(source)
+    {
+        continue_process(i);
+    }
+}
+
+
+

In this example, each iteration of the loop depends on the completion of the previous iteration, controlled by the ordered and doacross clauses. This setup is ideal for scenarios requiring tightly coupled iterative operations.

+
+
+

2.5.3.4. Example: Serial Output in Parallel Loop#

+

Consider a case where multiple threads perform calculations, but results must be output in the original order of the loop indices:

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+void ordered_output() {
+    int n = 100;
+    #pragma omp parallel for ordered
+    for (int i = 0; i < n; i++) {
+        int result = complex_calculation(i);
+        #pragma omp ordered
+        {
+            printf("Result for %d: %d\n", i, result);
+        }
+    }
+}
+
+int complex_calculation(int x) {
+    return x * x;  // A placeholder for a more complex operation
+}
+
+
+
+
+

In this example, the complex_calculation function can be executed in parallel, but the printf function inside the ordered block ensures that results are printed in the sequence corresponding to the increasing order of i.

+
+
+

2.5.3.5. Considerations#

+
    +
  • Performance: While the ordered directive is powerful for controlling execution sequence, it can significantly reduce parallelism, potentially leading to performance degradation. It should be used only when necessary.

  • +
  • Compatibility: Ensure that the use of the ordered directive is compatible with the chosen loop scheduling strategy, as some combinations may lead to inefficient execution.

  • +
+

Using the ordered directive effectively allows developers to balance the needs for parallel execution and sequential order, providing control over how and when certain parts of the code execute relative to others.

+
+
+
+

2.5.4. Summary#

+

In this chapter, we explored two crucial synchronization mechanisms in OpenMP: the barrier and ordered directives. These directives are fundamental tools for managing the complexities and challenges of parallel programming, ensuring that multi-threaded operations execute in a controlled and predictable manner.

+
    +
  • Barrier Directive: We discussed how the barrier directive is used to synchronize all threads at a specific point within a parallel region. This synchronization ensures that all threads complete their tasks up to the barrier before any thread can proceed, which is essential for tasks that require all preceding operations to be completed before continuing. The barrier directive is invaluable for maintaining data integrity and order in multi-threaded environments.

  • +
  • Ordered Directive: We examined the ordered directive, which controls the sequence of iteration execution within loop constructs. This directive is particularly useful when the order of operations affects the outcome, such as outputting results in a sequential order or performing cumulative calculations that depend on the sequence of data processing. By allowing parts of the loop to execute in parallel while controlling the order of critical sections, the ordered directive balances efficiency with the necessity for order.

  • +
+
+

2.5.4.1. Key Takeaways:#

+
    +
  1. Correct Use Enhances Performance: While both directives impose some synchronization overhead, their correct use can lead to significant improvements in program correctness and stability. It’s essential to use these synchronization tools judiciously to enhance performance without compromising the benefits of parallel execution.

  2. +
  3. Prevent Common Issues: These directives help prevent common parallel programming issues such as race conditions, deadlocks, and incorrect data handling. Understanding when and how to use these tools is critical for developing robust parallel applications.

  4. +
  5. Application Scenarios: Whether synchronizing data access with barriers or ensuring ordered operations with the ordered directive, these tools are applicable in a wide range of scenarios in scientific computing, data processing, and real-time system operations.

  6. +
+

This chapter has provided a foundational understanding of synchronization in OpenMP, equipping you with the knowledge to effectively apply these mechanisms in your parallel programming projects. As you continue to explore OpenMP, remember that the thoughtful application of synchronization constructs is key to unlocking the full potential of parallel computing resources.

+
+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/MultiCoreMultiCPU/4_SynchronizationThreads_Claude.html b/MultiCoreMultiCPU/4_SynchronizationThreads_Claude.html new file mode 100644 index 0000000..1220a4c --- /dev/null +++ b/MultiCoreMultiCPU/4_SynchronizationThreads_Claude.html @@ -0,0 +1,1140 @@ + + + + + + + + + + + 2.7. Synchronization of Threads Using Barrier and Ordered Directive — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Synchronization of Threads Using Barrier and Ordered Directive

+ +
+
+ +
+

Contents

+
+ +
+
+
+ + + + +
+ +
+

2.7. Synchronization of Threads Using Barrier and Ordered Directive#

+
+

2.7.1. Introduction#

+

Parallel programming involves dividing a task into smaller subtasks and executing them concurrently on multiple processing units, such as CPU cores or GPU threads. While parallelism can significantly improve performance, it also introduces challenges related to synchronization and coordination among the parallel threads or tasks.

+

In OpenMP, the barrier and ordered directives provide mechanisms for synchronizing the execution of parallel threads. These directives ensure that certain operations are performed in a specific order, preventing potential race conditions and ensuring the correctness of parallel computations.

+
+

2.7.1.1. Importance of Thread Synchronization#

+

In parallel programming, threads often need to coordinate their activities and share data or resources. Without proper synchronization, race conditions can occur, leading to incorrect results or program crashes. Race conditions arise when two or more threads access a shared resource concurrently, and the final result depends on the relative timing of their execution.

+

Thread synchronization is essential for ensuring the following:

+
    +
  1. Correct Execution Order: In some cases, it is necessary to enforce a specific execution order among threads to ensure the correct computation of results or to avoid data races.

  2. +
  3. Coordinated Access to Shared Resources: When multiple threads access shared data or resources, synchronization is needed to prevent concurrent access and ensure data consistency.

  4. +
  5. Barrier Points: Threads may need to reach a common synchronization point before proceeding to the next phase of computation or before accessing shared data.

  6. +
+

By using synchronization mechanisms like barriers and ordered directives, developers can control the execution flow of parallel threads, ensuring data integrity and program correctness.

+
+
+

2.7.1.2. Overview of the Barrier and Ordered Directives#

+

The barrier and ordered directives in OpenMP provide different mechanisms for synchronizing threads:

+
    +
  1. Barrier Directive: The barrier directive introduces a synchronization point where all threads in a parallel region must wait until all threads have reached the barrier. This ensures that all threads have completed their work before proceeding to the next phase of computation.

  2. +
  3. Ordered Directive: The ordered directive is used in conjunction with loop constructs to enforce a specific execution order for loop iterations. It guarantees that loop iterations are executed in the same order as they would be executed in a sequential loop, even when executed in parallel.

  4. +
+

In the following sections, we will explore the details of these directives, their usage, best practices, and examples to illustrate their application in parallel programming with OpenMP.

+
+
+
+

2.7.2. Barrier Directive#

+

The barrier directive in OpenMP is a powerful synchronization mechanism that ensures all threads in a parallel region have completed their work before proceeding to the next phase of computation.

+
+

2.7.2.1. Purpose and Usage#

+

The primary purpose of the barrier directive is to introduce a synchronization point where all threads must wait until every thread in the parallel region has reached the barrier. This synchronization is essential in scenarios where threads need to exchange data, access shared resources, or coordinate their activities before moving to the next stage of computation.

+

Barriers are commonly used in parallel programming to:

+
    +
  1. Ensure Correct Ordering: By enforcing a barrier, threads can complete their work before proceeding to the next phase, avoiding race conditions and ensuring the correctness of the results.

  2. +
  3. Coordinate Data Sharing: Barriers can be used to ensure that all threads have completed their updates to shared data before other threads access it, preventing data races and maintaining data consistency.

  4. +
  5. Separate Computation Phases: In algorithms with multiple phases, barriers can separate the phases, ensuring that all threads have completed the current phase before moving to the next one.

  6. +
+
+
+

2.7.2.2. Syntax and Examples#

+

The syntax for the barrier directive in C/C++ is:

+
#pragma omp barrier
+
+
+

In Fortran, the syntax is:

+
!$omp barrier
+
+
+

Here’s a simple example in C++ that demonstrates the use of the barrier directive:

+
#include <omp.h>
+#include <iostream>
+
+int main() {
+    int num_threads = 4;
+    omp_set_num_threads(num_threads);
+
+    #pragma omp parallel
+    {
+        int thread_id = omp_get_thread_num();
+
+        // Work before the barrier
+        std::cout << "Thread " << thread_id << " working..." << std::endl;
+
+        #pragma omp barrier
+
+        // Work after the barrier
+        std::cout << "Thread " << thread_id << " continuing..." << std::endl;
+    }
+
+    return 0;
+}
+
+
+

In this example, each thread performs some work and prints a message before reaching the barrier. After all threads have reached the barrier, they proceed to execute the code after the barrier.

+
+
+

2.7.2.3. Barrier Regions#

+

The barrier directive can be used within a parallel region, which is a block of code enclosed by the parallel directive or other parallel constructs like for or sections. When a thread encounters a barrier within a parallel region, it must wait at that point until all other threads in the same parallel region have also reached the barrier.

+

It’s important to note that barriers only synchronize threads within the same parallel region. Threads in different parallel regions or nested parallel regions are not affected by barriers in other regions.

+
+
+

2.7.2.4. Synchronization Points#

+

The barrier directive introduces a synchronization point where all threads must wait until every thread has reached the barrier. This synchronization ensures that:

+
    +
  1. All threads have completed their work before the barrier.

  2. +
  3. No thread proceeds beyond the barrier until all threads have reached the barrier.

  4. +
  5. After all threads have reached the barrier, they can continue executing the code following the barrier.

  6. +
+

Synchronization points are crucial for maintaining data consistency and avoiding race conditions when multiple threads access shared resources or perform operations that depend on the results produced by other threads.

+
+
+
+

2.7.3. 3. Ordered Directive#

+

The ordered directive in OpenMP is a synchronization construct that enforces the execution order of loop iterations in a parallel region. It ensures that the iterations are executed in the same order as they would be in a sequential loop, even when executed in parallel. OpenMP provides two forms of the ordered directive: the stand-alone ordered construct and the block-associated ordered construct.

+
+

2.7.3.1. 3.1. Purpose and Usage#

+

The primary purpose of the ordered directive is to maintain the correct ordering of loop iterations when executing them in parallel. This is crucial in situations where the order of execution affects the correctness of the results or when there are cross-iteration dependencies.

+

The ordered directive is commonly used in the following scenarios:

+
    +
  1. Preserving Sequential Semantics: When parallelizing loops that have cross-iteration dependencies or side effects that depend on the order of execution, the ordered directive ensures that the loop iterations are executed in the correct order, preserving the semantics of the sequential version.

  2. +
  3. Ordered Output: When the output of loop iterations needs to be printed or written in a specific order, the ordered directive can ensure that the output is generated in the correct sequence.

  4. +
  5. Ordered Access to Resources: If loop iterations need to access shared resources (e.g., files, network connections) in a specific order, the ordered directive can enforce the desired access order.

  6. +
+
+
+

2.7.3.2. 3.2. Syntax and Examples#

+

The syntax for the ordered directive in C/C++ is:

+
#pragma omp ordered
+
+
+

In Fortran, the syntax is:

+
!$omp ordered
+
+
+

Here’s an example in C++ that demonstrates the use of the ordered directive within a parallel loop:

+
#include <omp.h>
+#include <iostream>
+
+int main() {
+    const int N = 10;
+
+    #pragma omp parallel for ordered
+    for (int i = 0; i < N; ++i) {
+        #pragma omp ordered
+        {
+            std::cout << "Iteration " << i << " executed." << std::endl;
+        }
+    }
+
+    return 0;
+}
+
+
+

In this example, the loop iterations are executed in parallel, but the output from each iteration is printed in the correct order (0, 1, 2, …, 9) due to the ordered directive.

+
+
+

2.7.3.3. 3.3. Enforcing Execution Order#

+

The ordered directive ensures that the execution order of loop iterations in a parallel region follows the same order as the sequential loop execution. This is achieved by introducing an implicit barrier at the beginning of each ordered region, where threads must wait for their turn to execute the ordered region.

+

When a thread encounters an ordered region, it waits until all preceding iterations have completed their ordered regions before executing its own ordered region. This guarantees that the ordered regions are executed in the correct sequential order, even though the loop iterations themselves may be executed in parallel.

+
+
+

2.7.3.4. 3.4. Ordered Regions#

+

An ordered region is a block of code enclosed by the ordered directive. Within an ordered region, the code is executed in the correct sequential order by the threads executing the loop iterations.

+

The ordered directive can be placed inside a parallel loop construct (e.g., parallel for) or within a worksharing loop construct (e.g., for, do). When a thread encounters an ordered region, it waits at the implicit barrier until it is its turn to execute the ordered region, ensuring the correct ordering of loop iterations.

+
+
+

2.7.3.5. 3.5. Stand-alone Ordered Construct#

+

The stand-alone ordered construct is a form of the ordered directive that specifies execution must not violate cross-iteration dependences as specified by the doacross clauses.

+
+

2.7.3.5.1. 3.5.1. Semantics#

+

When a thread executing an iteration encounters a stand-alone ordered construct with one or more doacross clauses for which the sink dependence-type is specified, the thread waits until its dependences on all valid iterations specified by the doacross clauses are satisfied before continuing execution. A specific dependence is satisfied when a thread executing the corresponding iteration encounters an ordered construct with a doacross clause for which the source dependence-type is specified.

+
+
+

2.7.3.5.2. 3.5.2. Execution Model Events and Tool Callbacks#

+

The OpenMP specification defines two execution model events and associated tool callbacks for the stand-alone ordered construct:

+
    +
  1. doacross-sink Event: Occurs in the task that encounters an ordered construct for each doacross clause with the sink dependence-type after the dependence is fulfilled.

  2. +
  3. doacross-source Event: Occurs in the task that encounters an ordered construct with a doacross clause for which the source dependence-type is specified before signaling that the dependence has been fulfilled.

  4. +
+
+
+

2.7.3.5.3. 3.5.3. Restrictions#

+

The stand-alone ordered construct has the following restrictions:

+
    +
  • At most one doacross clause may appear on the construct with source as the dependence-type.

  • +
  • All doacross clauses that appear on the construct must specify the same dependence-type.

  • +
  • The construct must not be an orphaned construct.

  • +
+
+
+
+

2.7.3.6. 3.6. Block-associated Ordered Construct#

+

The block-associated ordered construct is a form of the ordered directive that is associated with a block of code within a loop construct.

+
+

2.7.3.6.1. 3.6.1. Semantics#

+

If no clauses are specified, the effect is as if the threads parallelization-level clause was specified. If the threads clause is specified, the threads in the team executing the worksharing-loop region execute ordered regions sequentially in the order of the loop iterations.

+

If the simd parallelization-level clause is specified, the ordered regions encountered by any thread will execute one at a time in the order of the loop iterations. With either parallelization-level, execution of code outside the region for different iterations can run in parallel, but execution within the same iteration must observe any constraints imposed by the base-language semantics.

+

When the thread executing the first iteration of the loop encounters a block-associated ordered construct, it can enter the ordered region without waiting. For subsequent iterations, a thread waits at the beginning of the ordered region until execution of all ordered regions that belong to all previous iterations has completed.

+
+
+

2.7.3.6.2. 3.6.2. parallelization-level Clauses#

+

The parallelization-level clause group consists of the simd and threads clauses, which indicate the level of parallelization associated with the ordered construct.

+
+
+

2.7.3.6.3. 3.6.3. Restrictions#

+

The block-associated ordered construct has the following restrictions:

+
    +
  • The construct is simdizable only if the simd parallelization-level is specified.

  • +
  • If the simd parallelization-level is specified, the binding region must be a simd region or a combined/composite construct with simd as a leaf construct.

  • +
  • If the threads parallelization-level is specified, the binding region must be a worksharing-loop region or a combined/composite construct with worksharing-loop as a leaf construct.

  • +
  • If the threads parallelization-level is specified and the binding region corresponds to a combined/composite construct, the simd construct must not be a leaf construct unless the simd parallelization-level is also specified.

  • +
  • During the logical iteration of a loop-associated construct, a thread must not execute more than one block-associated ordered region that binds to the corresponding region of the loop-associated construct.

  • +
  • An ordered clause with a parameter value equal to one must appear on the construct that corresponds to the binding region.

  • +
+
+
+
+

2.7.3.7. 3.7. Interaction with Loop Constructs and Clauses#

+

The ordered directive is closely related to and often used in conjunction with loop constructs and clauses in OpenMP. Here are some key interactions:

+
    +
  • The ordered directive can be used within parallel loop constructs (e.g., parallel for) or worksharing loop constructs (e.g., for, do).

  • +
  • The ordered clause must be present on the construct that corresponds to the binding region of an ordered region.

  • +
  • The construct that corresponds to the binding region of an ordered region must not specify a reduction clause with the inscan modifier.

  • +
+
+
+

2.7.3.8. 3.8. Best Practices#

+

When using the ordered directive, consider the following best practices:

+
    +
  • Use the ordered directive judiciously, as it can introduce overhead and potentially limit parallelism.

  • +
  • Carefully analyze cross-iteration dependencies and side effects to determine if the ordered directive is necessary.

  • +
  • Consider alternative approaches, such as privatization or reduction, if possible, to avoid the need for ordered execution.

  • +
  • If using the stand-alone ordered construct, minimize the number of doacross clauses and ensure they are necessary for correctness.

  • +
  • Profile and optimize the performance of ordered regions, especially in performance-critical sections of the code.

  • +
  • Ensure proper synchronization and avoid race conditions when accessing shared data within ordered regions.

  • +
+

By following these best practices, you can effectively use the ordered directive to maintain the correct execution order while minimizing potential performance overhead and

+
+
+
+

2.7.4. 4. Combining Barrier and Ordered Directives#

+

While the barrier and ordered directives in OpenMP serve different purposes, there are scenarios where combining them can be beneficial or even necessary. This section explores the use cases for combining these directives and provides examples and considerations.

+
+

2.7.4.1. 4.1. Use Cases for Combining Directives#

+

Combining the barrier and ordered directives can be useful in the following situations:

+
    +
  1. Enforcing Synchronization and Order: In some algorithms or computations, it may be necessary to ensure that all threads have reached a specific point (barrier) and that subsequent operations are executed in a specific order (ordered). This combination can help maintain correctness and avoid race conditions or data inconsistencies.

  2. +
  3. Separating Computation Phases: When an algorithm or computation consists of multiple phases, barriers can separate the phases, ensuring that all threads have completed the current phase before moving to the next one. Within each phase, the ordered directive can be used to enforce the correct execution order of loop iterations or operations.

  4. +
  5. Coordinated Access to Shared Resources: If multiple threads need to access shared resources (e.g., files, network connections) in a specific order, the ordered directive can enforce the desired access order. Barriers can be used to ensure that all threads have completed their tasks before proceeding to the next phase or accessing the shared resources.

  6. +
  7. Parallel I/O: In parallel I/O operations, where multiple threads are writing to a shared file or output stream, the ordered directive can ensure that the output is generated in the correct sequence. Barriers can be used to synchronize the threads before and after the I/O operations to ensure consistency and avoid race conditions.

  8. +
+
+
+

2.7.4.2. 4.2. Examples and Code Snippets#

+

Here’s an example that combines the barrier and ordered directives in a parallel computation:

+
#include <omp.h>
+#include <iostream>
+
+int main() {
+    const int N = 10;
+    int data[N];
+
+    // Initialize data
+    for (int i = 0; i < N; i++) {
+        data[i] = i;
+    }
+
+    #pragma omp parallel for ordered
+    for (int i = 0; i < N; i++) {
+        // Phase 1: Perform some computation
+        data[i] *= 2;
+
+        #pragma omp ordered
+        {
+            std::cout << "Iteration " << i << " completed phase 1." << std::endl;
+        }
+
+        #pragma omp barrier
+
+        // Phase 2: Perform another computation
+        data[i] += 1;
+
+        #pragma omp ordered
+        {
+            std::cout << "Iteration " << i << " completed phase 2." << std::endl;
+        }
+    }
+
+    return 0;
+}
+
+
+

In this example, the parallel loop is executed with the ordered directive, ensuring that the iterations are executed in the correct order. Within each iteration, there are two phases of computation separated by a barrier. The ordered directive is used to print a message indicating the completion of each phase for each iteration, ensuring that the output is generated in the correct sequence.

+
+
+

2.7.4.3. 4.3. Considerations and Potential Issues#

+

When combining the barrier and ordered directives, consider the following:

+
    +
  1. Overhead: Both directives introduce synchronization overhead, which can potentially impact performance. Use them judiciously and only when necessary for correctness or required semantics.

  2. +
  3. Deadlock Potential: Improper use of barriers and ordered directives can lead to deadlock situations, where threads are waiting for conditions that can never be satisfied. Carefully analyze the code and ensure that all threads can eventually satisfy the synchronization requirements.

  4. +
  5. Nesting and Nested Parallelism: Be cautious when nesting parallel regions or combining these directives with nested parallelism. Ensure that the synchronization requirements are correctly enforced across all levels of parallelism.

  6. +
  7. Data Consistency and Race Conditions: While these directives can help maintain correct execution order, they do not inherently protect against data races or ensure data consistency. Proper use of shared and private data, as well as synchronization mechanisms like critical sections or atomic operations, may still be necessary.

  8. +
+

By understanding the use cases, considering potential issues, and following best practices, you can effectively combine the barrier and ordered directives in your OpenMP programs to enforce synchronization requirements and maintain correct execution order.

+
+
+
+

2.7.5. 5. Implicit Barriers#

+

In addition to the explicit barrier directive, OpenMP also defines implicit barriers that occur at the end of various regions, such as worksharing regions and parallel regions. This section discusses implicit barrier regions, their execution model events, and associated tool callbacks.

+
+

2.7.5.1. 5.1. Implicit Barrier Regions#

+

Implicit barriers are task scheduling points that occur at the end of certain OpenMP constructs, as defined in the description of those constructs. These implicit barriers ensure that all threads have completed their work within the corresponding region before proceeding further.

+

Implicit barriers occur in the following situations:

+
    +
  1. At the end of a worksharing construct: An implicit barrier is introduced to ensure that all threads have completed the worksharing region before proceeding to the next step.

  2. +
  3. At the end of a parallel region: When a parallel region ends, an implicit barrier synchronizes all threads before they can continue executing the code following the parallel region.

  4. +
  5. Implementation-added barriers: In some cases, OpenMP implementations may add extra implicit barriers for internal purposes or optimizations.

  6. +
  7. At the end of a teams region: After a teams region, an implicit barrier ensures that all teams have completed their work before the program can proceed.

  8. +
+
+
+

2.7.5.2. 5.2. Execution Model Events and Tool Callbacks#

+

The OpenMP specification defines execution model events and associated tool callbacks for implicit barriers, similar to those for explicit barriers. These events and callbacks enable tools and libraries to monitor and analyze the behavior of implicit barriers.

+

Execution Model Events:

+
    +
  1. implicit-barrier-begin: Occurs in each implicit task at the beginning of an implicit barrier region.

  2. +
  3. implicit-barrier-wait-begin: Occurs when a task begins an interval of active or passive waiting in an implicit barrier region.

  4. +
  5. implicit-barrier-wait-end: Occurs when a task ends an interval of active or passive waiting and resumes execution in an implicit barrier region.

  6. +
  7. implicit-barrier-end: Occurs in each implicit task after the barrier synchronization on exit from an implicit barrier region.

  8. +
  9. Cancellation Event: Occurs if cancellation is activated at an implicit cancellation point in an implicit barrier region.

  10. +
+

Tool Callbacks:

+
    +
  1. ompt_callback_sync_region: Dispatched for each implicit barrier begin and end event, as well as for implicit barrier wait-begin and wait-end events. These callbacks execute in the context of the encountering task and have the type signature ompt_callback_sync_region_t.

  2. +
  3. ompt_callback_cancel: Dispatched with the ompt_cancel_detected flag for each occurrence of a cancellation event in that thread. This callback occurs in the context of the encountering task and has the type signature ompt_callback_cancel_t.

  4. +
+

The specific kind of implicit barrier is identified by the kind argument passed to the ompt_callback_sync_region callback. For example, the kind argument is ompt_sync_region_barrier_implicit_workshare for the implicit barrier at the end of a worksharing construct, and ompt_sync_region_barrier_implicit_parallel for the implicit barrier at the end of a parallel region.

+

Understanding implicit barriers and their associated events and callbacks can be useful for debugging, profiling, and analyzing the behavior of OpenMP programs, particularly when dealing with synchronization and performance issues.

+
+
+
+

2.7.6. 6. Advanced Topics#

+

While the basic usage of the barrier and ordered directives provides a solid foundation for synchronizing threads in OpenMP programs, there are several advanced topics that can further enhance the flexibility and efficiency of your applications. This section explores some of these advanced topics.

+
+

2.7.6.1. 6.1. Nested Barrier and Ordered Directives#

+

OpenMP supports nested parallelism, where parallel regions can be defined within other parallel regions. In such scenarios, the barrier and ordered directives can also be nested, allowing for more complex synchronization patterns.

+
+

2.7.6.1.1. 6.1.1. Nested Barriers#

+

Nested barriers can be used to synchronize threads within a specific level of nested parallelism. For example, you can use a barrier to synchronize threads within an inner parallel region, without affecting the threads in the outer parallel region.

+
#pragma omp parallel
+{
+    // Outer parallel region
+
+    #pragma omp barrier
+    // Barrier for threads in the outer region
+
+    #pragma omp parallel
+    {
+        // Inner parallel region
+
+        #pragma omp barrier
+        // Barrier for threads in the inner region
+    }
+}
+
+
+

Proper use of nested barriers can help manage complex synchronization scenarios and ensure that threads are synchronized at the appropriate levels of parallelism.

+
+
+

2.7.6.1.2. 6.1.2. Nested Ordered Directives#

+

Similar to nested barriers, the ordered directive can also be nested within parallel regions. This can be useful when enforcing the correct execution order of loop iterations at different levels of parallelism.

+
#pragma omp parallel for ordered
+for (int i = 0; i < N; ++i) {
+    #pragma omp ordered
+    {
+        // Code for outer ordered region
+        #pragma omp parallel for ordered
+        for (int j = 0; j < M; ++j) {
+            #pragma omp ordered
+            {
+                // Code for inner ordered region
+            }
+        }
+    }
+}
+
+
+

In this example, the outer ordered region enforces the correct execution order of iterations of the outer loop, while the inner ordered region enforces the correct order for the inner loop iterations within each outer iteration.

+
+
+
+

2.7.6.2. 6.2. Interoperability with Other Synchronization Mechanisms#

+

OpenMP supports interoperability with other synchronization mechanisms, such as POSIX threads (Pthreads) or system-specific synchronization primitives. This interoperability allows you to combine the benefits of OpenMP’s high-level synchronization constructs with lower-level synchronization mechanisms when needed.

+

For example, you can use OpenMP barriers in combination with Pthreads mutexes or condition variables to implement complex synchronization protocols or to ensure correct interaction between OpenMP threads and non-OpenMP threads.

+
+
+

2.7.6.3. 6.3. Synchronization in the Context of Tasking#

+

OpenMP’s tasking model introduces additional synchronization challenges and opportunities. While the barrier and ordered directives operate at the level of parallel regions and loop iterations, tasks may require different synchronization mechanisms.

+

OpenMP provides constructs like taskgroup and taskwait to synchronize tasks, as well as task dependencies and data dependencies to enforce ordering and synchronization between tasks. These task-level synchronization mechanisms can be combined with the barrier and ordered directives to achieve complex synchronization patterns in task-parallel applications.

+
+
+

2.7.6.4. 6.4. Debugging and Profiling Synchronization Issues#

+

Debugging and profiling synchronization issues in parallel programs can be challenging due to the non-deterministic nature of thread execution and potential race conditions. OpenMP provides tool callbacks and execution model events that can be leveraged by debugging and profiling tools to analyze and understand the behavior of synchronization constructs like barriers and ordered directives.

+

By using OpenMP-aware debugging and profiling tools, you can identify potential issues such as deadlocks, race conditions, or performance bottlenecks related to synchronization. These tools can provide valuable insights into the execution order of threads, the duration of synchronization operations, and other relevant metrics.

+

Effective use of debugging and profiling tools can help you optimize the performance of your OpenMP applications and ensure the correct synchronization of threads, especially in complex parallel scenarios.

+
+
+
+

2.7.7. 7. Performance Considerations#

+

While the barrier and ordered directives are essential for ensuring the correct execution of parallel programs, they can also introduce overhead and potential performance bottlenecks. In this section, we explore various performance considerations related to the use of these synchronization constructs.

+
+

2.7.7.1. 7.1. Overhead and Scalability#

+

Synchronization operations, such as barriers and ordered execution, can add significant overhead to parallel programs. This overhead arises from the need for threads to coordinate and wait for each other, potentially leading to idle time and reduced efficiency.

+

The performance impact of synchronization overhead can become more pronounced as the number of threads or the size of the problem increases. It is important to carefully analyze the scalability of your parallel program and assess the trade-off between synchronization overhead and the benefits of parallelism.

+
+
+

2.7.7.2. 7.2. Load Balancing and Synchronization Granularity#

+

Effective load balancing is crucial for achieving optimal performance in parallel programs. However, synchronization constructs like barriers and ordered directives can introduce load imbalances if not used judiciously.

+

For example, if threads reach a barrier at different times, some threads may have to wait for others, leading to idle time and reduced efficiency. Similarly, if the granularity of ordered execution is too fine-grained, the overhead of enforcing the correct order can outweigh the benefits of parallelism.

+

To mitigate these issues, it is essential to strike a balance between the granularity of synchronization and the potential for load imbalance. Techniques like dynamic load balancing, work stealing, or coarser-grained synchronization can help reduce the impact of load imbalances and improve overall performance.

+
+
+

2.7.7.3. 7.3. Performance Tuning and Optimization#

+

Optimizing the performance of parallel programs that use synchronization constructs often requires a combination of analysis, profiling, and careful tuning. Here are some strategies that can help improve performance:

+
    +
  1. Profiling and Identifying Bottlenecks: Use profiling tools and OpenMP-aware debugging tools to identify performance bottlenecks related to synchronization. Look for hotspots where threads spend significant time waiting at barriers or ordered regions.

  2. +
  3. Reducing Unnecessary Synchronization: Carefully analyze your code and remove any unnecessary synchronization operations. Eliminating unnecessary barriers or ordered regions can significantly improve performance.

  4. +
  5. Leveraging Hardware Characteristics: Understand the characteristics of your hardware, such as the number of cores, cache sizes, and memory bandwidth. Adjust the granularity of synchronization and the number of threads to maximize hardware utilization and minimize contention for shared resources.

  6. +
  7. Overlapping Computation and Synchronization: In some cases, it may be possible to overlap computation with synchronization operations. For example, instead of waiting at a barrier, threads can perform other computations or prefetch data, reducing idle time.

  8. +
  9. Exploring Alternative Synchronization Mechanisms: Depending on the specific requirements of your program, alternative synchronization mechanisms like locks, semaphores, or atomic operations may be more efficient than barriers or ordered directives in certain situations.

  10. +
  11. Optimizing Data Locality and Memory Access Patterns: Optimizing data locality and memory access patterns can also impact the performance of synchronization constructs. Reducing false sharing, improving cache utilization, and minimizing remote memory accesses can lead to better overall performance.

  12. +
+

By carefully considering these performance factors and employing appropriate optimization strategies, you can ensure that your parallel programs leverage the full potential of modern hardware while minimizing the overhead introduced by synchronization constructs like barriers and ordered directives.

+
+
+
+

2.7.8. 9. Summary and Conclusion#

+

The barrier and ordered directives in OpenMP are essential synchronization constructs that enable the correct and efficient coordination of threads in parallel programs. They provide mechanisms to enforce synchronization points, ensure the correct execution order, and maintain data consistency in shared-memory parallel programming.

+

The barrier directive introduces an explicit synchronization point where all threads in a team must wait until every thread has reached the barrier. This construct is crucial for separating parallel regions, coordinating access to shared resources, and ensuring that all threads have completed their work before proceeding to the next phase of computation.

+

The ordered directive, on the other hand, enforces the execution order of loop iterations in a parallel region. It guarantees that the iterations are executed in the same order as they would be in a sequential loop, even when executed in parallel. The ordered directive is particularly useful in scenarios where the order of execution affects the correctness of the results or when there are cross-iteration dependencies.

+

OpenMP provides two forms of the ordered directive: the stand-alone ordered construct and the block-associated ordered construct. The stand-alone ordered construct specifies that the execution must not violate cross-iteration dependences, while the block-associated ordered construct is associated with a block of code within a loop construct.

+

Throughout this chapter, we explored the syntax, semantics, and usage of the barrier and ordered directives. We discussed their interaction with other OpenMP constructs, such as parallel regions and loop constructs, and provided examples to illustrate their application in parallel programming.

+

We also delved into advanced topics, such as nested parallelism, interoperability with other synchronization mechanisms, and synchronization in the context of tasking. These advanced concepts demonstrate the flexibility and power of OpenMP’s synchronization constructs in complex parallel scenarios.

+

Performance considerations were highlighted, emphasizing the importance of minimizing synchronization overhead, achieving load balancing, and employing performance tuning and optimization techniques. Best practices and guidelines were provided to help developers effectively utilize the barrier and ordered directives while avoiding common pitfalls and ensuring the correctness and efficiency of their parallel programs.

+

In conclusion, the barrier and ordered directives are fundamental tools in the OpenMP programmer’s toolkit. They enable the synchronization and coordination of threads, ensuring the correct execution and data consistency in shared-memory parallel programs. By understanding their semantics, following best practices, and considering performance implications, developers can harness the power of these directives to write correct, efficient, and scalable parallel applications using OpenMP.

+

As parallel programming continues to evolve and new challenges emerge, the barrier and ordered directives, along with other synchronization constructs in OpenMP, will remain essential for writing robust and high-performance parallel code. By mastering these directives and applying them judiciously, developers can unlock the full potential of modern parallel hardware and push the boundaries of scientific computing, data analysis, and other computationally intensive domains.

+
+
+ + + + +
+ + + + + + + + +
+ + + +
+ + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/MultiCoreMultiCPU/4_SynchronizationThreads_Gemini.html b/MultiCoreMultiCPU/4_SynchronizationThreads_Gemini.html new file mode 100644 index 0000000..dd1f959 --- /dev/null +++ b/MultiCoreMultiCPU/4_SynchronizationThreads_Gemini.html @@ -0,0 +1,761 @@ + + + + + + + + + + + 2.6. Synchronization of Threads Using Barrier and Ordered Directive — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

2.6. Synchronization of Threads Using Barrier and Ordered Directive#

+
+

2.6.1. Introduction#

+

OpenMP provides a selection of tools to achieve synchronization between threads, ensuring smooth collaboration and preventing the pitfalls of concurrent execution. Among these, the barrier and ordered directives stand as pillars of thread coordination, each playing a distinct role in maintaining order and predictability within parallel regions.

+
    +
  • Barrier Directive: Acting as a synchronization point, the barrier directive ensures all threads within a team reach a designated point before any are allowed to proceed. This is crucial in preventing race conditions, where multiple threads accessing and modifying shared data simultaneously can lead to unpredictable and erroneous results.

  • +
  • Ordered Directive: For scenarios where the order of execution is critical, the ordered directive ensures specific sections within a parallelized loop are executed sequentially, respecting the order of iterations. This is essential for maintaining deterministic behavior in situations like I/O operations or when data dependencies exist between iterations.

  • +
+
+
+

2.6.2. Barrier Directive#

+

The barrier directive acts as a crucial tool for orchestrating thread synchronization within a parallel region. It establishes designated points where all threads within a team must converge before any are permitted to proceed. This mechanism is vital for preventing race conditions and maintaining data consistency in shared-memory parallel programs, ensuring predictable and reliable results.

+
+

2.6.2.1. Establishing Synchronization Points#

+

The syntax for employing the barrier directive is straightforward and consistent across both C/C++ and Fortran:

+

C/C++:

+
#pragma omp barrier
+
+
+

Fortran:

+
!$omp barrier
+
+
+

By strategically placing this directive within a parallel region, you create explicit synchronization points. Let’s delve into a concrete example to illustrate this:

+
#pragma omp parallel
+{
+  // Each thread performs its independent calculations on a portion of data...
+  #pragma omp barrier
+  // All threads synchronize here, ensuring consistent data before the next step
+  // Combine the partial results from each thread into a final result...
+}
+
+
+

In this scenario, each thread works on its assigned portion of data before encountering the barrier. The barrier directive acts as a gatekeeper, halting each thread until all threads within the team have reached this point. This guarantees that all partial calculations are complete and the shared data is in a consistent state before moving on to combine the partial results.

+
+
+

2.6.2.2. Example#

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <omp.h>
+#include <stdio.h>
+
+int main() {
+    int sum = 0;
+    #pragma omp parallel shared(sum)
+    {
+        int tid = omp_get_thread_num();
+        int local_sum = 0;
+        // Each thread calculates a local sum for a portion of data
+        for (int i = tid * 10; i < (tid + 1) * 10; ++i) {
+            local_sum += i;
+        }
+        
+        #pragma omp critical
+        sum += local_sum; // Add each thread's local sum to the global sum
+        
+        #pragma omp barrier // All threads wait here before printing
+        
+        printf("Thread %d finished with local sum %d\n", tid, local_sum);
+    }
+    printf("Final sum: %d\n", sum);
+    return 0;
+}
+
+
+
+
+
+
+
+

2.6.3. The Ordered Directive: Maintaining Sequential Steps#

+

In the realm of parallelized loops, where iterations dance across threads, maintaining a specific execution order for certain sections of code becomes essential. The ordered directive steps onto the stage, ensuring that designated portions of a loop are executed sequentially, respecting the order of iterations even when the loop itself is parallelized and iterations might be executed concurrently.

+
+

2.6.3.1. Enforcing Order in the Parallel Ballet#

+

The syntax for invoking the ordered directive is clear and consistent across C/C++ and Fortran:

+

C/C++:

+
#pragma omp ordered
+structured-block
+#pragma omp end ordered
+
+
+

Fortran:

+
!$omp ordered
+structured-block
+!$omp end ordered
+
+
+

Let’s explore a simple example to grasp the essence of the ordered directive:

+
#pragma omp parallel for ordered
+for (int i = 0; i < N; ++i) {
+  // Perform calculations specific to iteration i...
+  #pragma omp ordered
+  printf("Iteration %d from thread %d\n", i, omp_get_thread_num());
+}
+
+
+

In this scenario, even though the loop iterations might be scattered across threads and executed concurrently, the printf statement within the ordered region will always print in the order of the loop iterations (0, 1, 2, …). The ordered directive guarantees that each thread executes this section sequentially, respecting the natural order of the loop.

+
+
+

2.6.3.2. doacross Clause: Specifying Dependencies#

+

For more intricate scenarios involving loops with cross-iteration dependencies, the doacross clause comes to the rescue. It allows you to pinpoint specific dependences between iterations that must be honored during parallel execution. By using the doacross clause, you provide explicit instructions to the compiler regarding the required order of operations, ensuring correctness even in the presence of complex data dependencies.

+
+
+
+

2.6.4. Implicit Barriers: Automatic Synchronization#

+

OpenMP provides automatic synchronization with implicit barriers placed at the end of worksharing constructs (like for and sections) and at the end of parallel regions. These invisible barriers guarantee that all threads have finished their assigned work within the construct before moving on to the next section of code. +Example:

+
#pragma omp parallel for
+for (int i = 0; i < N; ++i) {
+    // Work on iteration i...
+}
+// Implicit barrier - all threads wait here before proceeding
+
+
+
+

2.6.4.1. Removing Implicit Barriers with nowait#

+

While implicit barriers provide convenient synchronization, they might introduce unnecessary overhead in certain scenarios. The nowait clause allows you to remove these implicit barriers, enabling threads to proceed without waiting for others. However, use this clause judiciously and ensure proper explicit synchronization mechanisms are in place to avoid race conditions.

+

Example:

+
#pragma omp parallel for nowait
+for (int i = 0; i < N; ++i) {
+    // Work on iteration i...
+}
+// No implicit barrier - threads continue immediately
+
+
+
+
+
+

2.6.5. Best Practices for Using Barrier and Ordered Directives: Achieving Synchronization Zen#

+

While the barrier and ordered directives are powerful tools for orchestrating thread synchronization, their effectiveness hinges on understanding their nuances and applying them strategically. Here are some guiding principles to help you achieve synchronization zen and unlock the full potential of these directives:

+
    +
  • Barrier Mindfulness: Barriers, while essential for preventing race conditions, can introduce overhead due to thread idling and synchronization costs. Use them judiciously and only when necessary to ensure data consistency and correctness. Explore alternative synchronization mechanisms like locks or atomic operations when appropriate.

  • +
  • Embrace Implicit Barriers: Leverage the convenience and efficiency of implicit barriers automatically inserted at the end of worksharing constructs and parallel regions. Be mindful of their presence and consider the nowait clause only when you are confident about the absence of race conditions and its impact on correctness.

  • +
  • Order with Purpose: Apply the ordered directive selectively to code sections within a loop where maintaining the order of execution is critical. Overusing the ordered directive can diminish the benefits of parallelization, so carefully analyze your code’s data dependencies and apply it only when necessary.

  • +
  • Data Dependencies Awareness: Gain a deep understanding of the data dependencies within your code, both within iterations and across iterations. This knowledge is crucial for selecting the appropriate synchronization directives and ensuring that threads access and modify shared data in a controlled manner.

  • +
  • Performance as the Guiding Light: Employ performance profiling tools to identify and address potential bottlenecks arising from synchronization overhead. Optimize your code by minimizing unnecessary barriers and restructuring your loops to reduce cross-iteration dependencies, striking a balance between synchronization and parallel efficiency.

  • +
+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/MultiCoreMultiCPU/5_AsynchronousTasking.html b/MultiCoreMultiCPU/5_AsynchronousTasking.html new file mode 100644 index 0000000..dcc8bc3 --- /dev/null +++ b/MultiCoreMultiCPU/5_AsynchronousTasking.html @@ -0,0 +1,1461 @@ + + + + + + + + + + + 2.8. Asynchronous Tasking — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Asynchronous Tasking

+ +
+
+ +
+

Contents

+
+ +
+
+
+ + + + +
+ +
+

2.8. Asynchronous Tasking#

+
+

2.8.1. Introduction to OpenMP Tasks#

+

In the realm of parallel programming, the traditional approach of using parallel loops and regions has been widely adopted for exploiting parallelism in applications. However, as the complexity of parallel algorithms and the scale of parallel systems continue to grow, the need for more flexible and expressive parallelism models has become increasingly apparent. This is where task-based parallelism comes into play, and OpenMP, as a prominent parallel programming framework, provides robust support for task-based programming through the task directive.

+
+

2.8.1.1. Motivation for using tasks in parallel programming#

+

Task-based parallelism offers several compelling advantages over traditional loop-based parallelism:

+
    +
  1. Irregular parallelism: Many real-world problems exhibit irregular parallelism, where the workload is not evenly distributed among parallel units. Tasks allow you to express and exploit this irregular parallelism by dynamically creating and executing units of work as needed.

  2. +
  3. Recursive algorithms: Recursive algorithms, such as divide-and-conquer or branch-and-bound, are naturally expressed using tasks. Each recursive call can be encapsulated within a task, enabling parallel execution of independent subproblems.

  4. +
  5. Asynchronous execution: Tasks enable asynchronous execution, where parallel units of work can be created and executed independently of each other. This allows for better utilization of parallel resources and can help hide latencies associated with I/O or communication operations.

  6. +
  7. Load balancing: Task-based parallelism facilitates dynamic load balancing. When a thread becomes idle, it can steal tasks from other threads, ensuring a more even distribution of work and maximizing parallel efficiency.

  8. +
  9. Composability: Tasks can be composed and nested to create complex parallel patterns. This composability allows for the development of higher-level parallel abstractions and the integration of task-based parallelism with other parallel programming models.

  10. +
+
+
+

2.8.1.2. Overview of the task-based parallelism model in OpenMP#

+

OpenMP provides a flexible and intuitive model for task-based parallelism through the task directive. The key concepts in OpenMP’s task-based parallelism model are as follows:

+
    +
  1. Task creation: The task directive is used to define a unit of work that can be executed asynchronously. When a thread encounters a task directive, it creates a new task and adds it to a pool of tasks that are ready for execution.

  2. +
  3. Task execution: Tasks are executed by available threads in the thread team. When a thread becomes idle, it retrieves a task from the pool and executes it. The execution of tasks is typically guided by a task scheduling policy, which determines the order in which tasks are executed.

  4. +
  5. Data environment: Each task has its own data environment, which consists of private, firstprivate, and shared variables. Private variables are unique to each task, firstprivate variables are initialized with the value of the corresponding variable at the time of task creation, and shared variables are accessible by all tasks.

  6. +
  7. Synchronization: OpenMP provides synchronization constructs to coordinate the execution of tasks. The taskwait directive ensures that all child tasks of the current task have completed before proceeding, while the taskgroup directive waits for the completion of all tasks within a specific group.

  8. +
  9. Task dependencies: OpenMP allows you to specify dependencies between tasks using the depend clause. This enables the creation of task graphs, where tasks are executed based on their data dependencies, ensuring correct execution order and avoiding data races.

  10. +
+

By leveraging the task directive and its associated clauses, OpenMP empowers programmers to express and exploit task-based parallelism effectively. The upcoming sections will delve deeper into the syntax, usage, and best practices of task-based programming in OpenMP, enabling you to harness the power of tasks in your parallel applications.

+
+
+
+

2.8.2. Basic Usage of the task Directive#

+

The task directive is the fundamental building block for task-based programming in OpenMP. It allows you to define a unit of work that can be executed asynchronously by available threads in the thread team. In this section, we will explore the syntax and clauses of the task directive and provide examples of how to create and execute tasks.

+
+

2.8.2.1. Syntax and clauses of the task directive#

+

The basic syntax of the task directive in C/C++ is as follows:

+
#pragma omp task [clause[[,] clause] ...]
+{
+    // Task code block
+}
+
+
+

In Fortran, the syntax is:

+
!$omp task [clause[[,] clause] ...]
+    ! Task code block
+!$omp end task
+
+
+

The task directive supports various clauses that control the behavior and data environment of the task:

+
    +
  • default(shared | none): Specifies the default data-sharing attribute for variables within the task.

  • +
  • private(var-list): Specifies that each task should have its own private copy of the listed variables.

  • +
  • firstprivate(var-list): Specifies that each task should have its own private copy of the listed variables, initialized with the value of the corresponding variable at the time of task creation.

  • +
  • shared(var-list): Specifies that the listed variables should be shared among all tasks.

  • +
  • untied: Specifies that the task can be resumed by any thread in the team, not necessarily the one that started its execution.

  • +
  • if(condition): Specifies a conditional expression that determines whether the task should be created or executed immediately by the encountering thread.

  • +
  • final(condition): Specifies a conditional expression that determines whether the task is a final task, meaning it will be the last task created in the task region.

  • +
+

These clauses provide fine-grained control over the data environment and execution behavior of tasks.

+
+
+

2.8.2.2. Creating and executing tasks#

+

To create a task, simply enclose the code block representing the task within the task directive. Here’s a basic example:

+
#pragma omp parallel
+{
+    #pragma omp task
+    {
+        // Task code block
+        printf("This is a task.\n");
+    }
+}
+
+
+

In this example, the task directive is used within a parallel region. When a thread encounters the task directive, it creates a new task and adds it to the pool of tasks ready for execution. The task’s code block is then executed asynchronously by an available thread in the team.

+

It’s important to note that the creation of a task does not guarantee its immediate execution. The actual execution of tasks is determined by the OpenMP runtime and the available threads in the team.

+
+
+

2.8.2.3. Example: Parallel computation using tasks#

+

Let’s consider a more practical example where tasks are used to perform parallel computation. Suppose we have an array of integers and we want to compute the sum of its elements using tasks.

+
#include <stdio.h>
+#include <omp.h>
+
+#define N 1000
+
+int main() {
+    int arr[N];
+    int sum = 0;
+
+    // Initialize the array
+    for (int i = 0; i < N; i++) {
+        arr[i] = i + 1;
+    }
+
+    #pragma omp parallel
+    {
+        #pragma omp single
+        {
+            for (int i = 0; i < N; i++) {
+                #pragma omp task reduction(+:sum)
+                {
+                    sum += arr[i];
+                }
+            }
+        }
+    }
+
+    printf("Sum: %d\n", sum);
+
+    return 0;
+}
+
+
+

In this example, we use the task directive within a single region to create tasks that compute the sum of individual array elements. The reduction clause is used to specify that each task should have its own private copy of the sum variable, and the final sum is obtained by reducing (adding) the values of sum from all tasks.

+

By using tasks, we can achieve parallel computation of the sum, potentially improving the performance of the program, especially for larger arrays.

+

This section provided an introduction to the basic usage of the task directive in OpenMP. In the following sections, we will explore more advanced concepts, such as data environment, synchronization, and task scheduling, to further leverage the power of task-based programming in OpenMP.

+
+
+
+

2.8.3. Data Environment and Data Sharing#

+

When using tasks in OpenMP, it’s crucial to understand how data is shared and accessed by tasks. OpenMP provides mechanisms to control the data environment and data sharing among tasks, ensuring data consistency and avoiding race conditions. In this section, we will discuss the data environment in tasks, shared and private variables, and the usage of the firstprivate and lastprivate clauses.

+
+

2.8.3.1. Understanding the data environment in tasks#

+

Each task in OpenMP has its own data environment, which consists of variables that are private to the task and variables that are shared among tasks. The data environment of a task is determined by the data-sharing attributes of variables, which can be explicitly specified using clauses or defaulted based on the OpenMP default data-sharing rules.

+

By default, variables declared outside the task construct are shared among tasks, while variables declared inside the task construct are private to each task. However, these default behaviors can be overridden using data-sharing clauses.

+
+
+

2.8.3.2. Shared and private variables#

+

Shared variables are accessible by all tasks and have a single storage location. Changes made to a shared variable by one task are visible to other tasks. To specify that a variable should be shared among tasks, you can use the shared clause. For example:

+
int x = 0;
+#pragma omp task shared(x)
+{
+    x++;
+}
+
+
+

Private variables, on the other hand, have separate storage for each task. Each task has its own copy of a private variable, and modifications made by one task are not visible to other tasks. To specify that a variable should be private to each task, you can use the private clause. For example:

+
#pragma omp task private(y)
+{
+    int y = 0;
+    y++;
+}
+
+
+
+
+

2.8.3.3. Firstprivate and lastprivate clauses#

+

The firstprivate and lastprivate clauses provide additional control over the initialization and final value of variables in tasks.

+

The firstprivate clause specifies that each task should have its own private copy of a variable, initialized with the value of the corresponding variable at the time of task creation. This is useful when you want each task to start with the same initial value of a variable. For example:

+
int x = 10;
+#pragma omp task firstprivate(x)
+{
+    x++;
+    // Each task starts with x = 10
+}
+
+
+

The lastprivate clause specifies that the value of a private variable from the last task that assigns to it should be copied back to the original variable after the task region. This is useful when you want to capture the final value of a variable computed by a task. For example:

+
int x;
+#pragma omp task lastprivate(x)
+{
+    x = some_computation();
+}
+// x will have the value assigned by the last task
+
+
+
+
+

2.8.3.4. Example: Data sharing in tasks#

+

Let’s consider an example that demonstrates data sharing in tasks:

+
#include <stdio.h>
+#include <omp.h>
+
+int main() {
+    int shared_var = 0;
+
+    #pragma omp parallel
+    {
+        #pragma omp single
+        {
+            #pragma omp task shared(shared_var)
+            {
+                shared_var++;
+                printf("Task 1: shared_var = %d\n", shared_var);
+            }
+
+            #pragma omp task shared(shared_var)
+            {
+                shared_var++;
+                printf("Task 2: shared_var = %d\n", shared_var);
+            }
+        }
+    }
+
+    printf("Final value of shared_var: %d\n", shared_var);
+
+    return 0;
+}
+
+
+

In this example, we have a shared variable shared_var that is accessible by all tasks. Each task increments the value of shared_var and prints its value. The final value of shared_var is then printed after the parallel region.

+

The output of this program may vary depending on the order in which the tasks are executed, but the final value of shared_var will be 2 because both tasks increment it.

+

Understanding the data environment and data sharing in tasks is essential for writing correct and efficient task-based parallel programs in OpenMP. By properly specifying the data-sharing attributes of variables, you can control how data is accessed and modified by tasks, avoiding data races and ensuring correct program behavior.

+

In the next section, we will explore task synchronization and how to coordinate the execution of tasks using OpenMP synchronization constructs.

+
+
+
+

2.8.4. Task Synchronization#

+

When working with tasks in OpenMP, synchronization is often necessary to coordinate the execution of tasks and ensure proper order and data consistency. OpenMP provides several constructs and clauses for task synchronization, including the taskwait directive, the taskgroup directive, and the depend clause. In this section, we will explore these synchronization mechanisms and discuss how to use them effectively.

+
+

2.8.4.1. The taskwait directive#

+

The taskwait directive is used to specify a wait point where the current task waits for the completion of all its child tasks before proceeding. When a task encounters a taskwait directive, it suspends its execution until all the tasks it has created have finished.

+

The syntax for the taskwait directive in C/C++ is as follows:

+
#pragma omp taskwait
+
+
+

In Fortran, the syntax is:

+
!$omp taskwait
+
+
+

The taskwait directive ensures that the execution of the current task does not proceed until all its child tasks have completed. This is useful when you need to enforce a specific order of execution or when you want to ensure that certain tasks have finished before continuing.

+
+
+

2.8.4.2. The taskgroup directive#

+

The taskgroup directive is used to define a block of code where all tasks created within that block are part of the same task group. The taskgroup directive ensures that all tasks within the group complete before the execution of the code continues beyond the taskgroup block.

+

The syntax for the taskgroup directive in C/C++ is as follows:

+
#pragma omp taskgroup
+{
+    // Code block with tasks
+}
+
+
+

In Fortran, the syntax is:

+
!$omp taskgroup
+    ! Code block with tasks
+!$omp end taskgroup
+
+
+

The taskgroup directive is helpful when you have a set of related tasks that need to be synchronized as a unit. It allows you to create a synchronization point where all tasks within the group must complete before proceeding.

+
+
+

2.8.4.3. Task dependencies and the depend clause#

+

OpenMP introduced the concept of task dependencies, which allows you to specify the order in which tasks should be executed based on their data dependencies. The depend clause is used to express the dependencies between tasks.

+

The syntax for the depend clause in C/C++ is as follows:

+
#pragma omp task depend(dependency-type: var-list)
+
+
+

In Fortran, the syntax is:

+
!$omp task depend(dependency-type: var-list)
+
+
+

The dependency-type can be one of the following:

+
    +
  • in: The task depends on the availability of the variables in var-list before it can start execution.

  • +
  • out: The task produces the variables in var-list, and other tasks that use these variables must wait for this task to complete.

  • +
  • inout: The task both depends on and produces the variables in var-list.

  • +
+

By specifying task dependencies, you can create a task graph where tasks are executed based on their data dependencies. This ensures that tasks are executed in the correct order and avoids data races.

+
+
+

2.8.4.4. Example: Task synchronization and dependencies#

+

Let’s consider an example that demonstrates task synchronization and dependencies:

+
#include <stdio.h>
+#include <omp.h>
+
+int main() {
+    int x = 0;
+
+    #pragma omp parallel
+    {
+        #pragma omp single
+        {
+            #pragma omp task shared(x) depend(out: x)
+            {
+                x = 1;
+                printf("Task 1: x = %d\n", x);
+            }
+
+            #pragma omp task shared(x) depend(in: x)
+            {
+                printf("Task 2: x = %d\n", x);
+            }
+
+            #pragma omp taskwait
+
+            #pragma omp task shared(x) depend(inout: x)
+            {
+                x++;
+                printf("Task 3: x = %d\n", x);
+            }
+        }
+    }
+
+    printf("Final value of x: %d\n", x);
+
+    return 0;
+}
+
+
+

In this example, we have three tasks that operate on the shared variable x. The first task sets the value of x to 1 and has an out dependency on x. The second task has an in dependency on x, meaning it can only start executing after the first task has completed and produced the value of x.

+

After the second task, we have a taskwait directive to ensure that both tasks have completed before proceeding. The third task has an inout dependency on x, indicating that it both depends on and modifies the value of x.

+

The output of this program will be:

+
Task 1: x = 1
+Task 2: x = 1
+Task 3: x = 2
+Final value of x: 2
+
+
+

The tasks are executed in the specified order based on their dependencies, ensuring correct synchronization and data consistency.

+

Task synchronization is a critical aspect of task-based programming in OpenMP. By using the taskwait directive, the taskgroup directive, and the depend clause, you can effectively coordinate the execution of tasks, enforce necessary ordering, and avoid data races.

+

In the next section, we will explore task scheduling and how OpenMP handles the assignment of tasks to threads for execution.

+
+
+
+

2.8.5. Task Scheduling#

+

OpenMP provides a flexible task scheduling model that allows the runtime system to efficiently distribute tasks among threads for execution. The task scheduling model determines how and when tasks are assigned to threads, taking into account factors such as load balancing, task dependencies, and resource utilization. In this section, we will discuss the task scheduling model in OpenMP, tied and untied tasks, and the final and mergeable clauses.

+
+

2.8.5.1. The task scheduling model in OpenMP#

+

OpenMP uses a task scheduling model that is based on a task queue and a pool of worker threads. When a task is created using the task directive, it is placed into a task queue. The worker threads then pick tasks from the queue and execute them.

+

The specific scheduling policy used to assign tasks to threads is implementation-defined and may vary between different OpenMP runtimes. However, OpenMP provides certain guarantees and mechanisms to control the scheduling behavior.

+

By default, OpenMP uses a work-stealing approach, where idle threads can steal tasks from the task queues of other threads. This helps in achieving load balancing and efficient utilization of resources.

+
+
+

2.8.5.2. Tied and untied tasks#

+

OpenMP introduces the concept of tied and untied tasks to control the relationship between tasks and the threads that execute them.

+

A tied task is a task that is tied to the thread that started its execution. Once a tied task starts executing on a particular thread, it can only be resumed by the same thread after a suspension point (e.g., a taskwait directive). Tied tasks provide certain guarantees, such as the preservation of thread-specific state and the ability to use thread-specific resources.

+

On the other hand, an untied task is not tied to any specific thread and can be resumed by any available thread after a suspension point. Untied tasks offer more flexibility in terms of scheduling and load balancing, as they can be freely moved between threads.

+

By default, tasks are created as tied tasks. To create an untied task, you can use the untied clause. For example:

+
#pragma omp task untied
+{
+    // Untied task code block
+}
+
+
+
+
+

2.8.5.3. The final and mergeable clauses#

+

OpenMP provides two additional clauses that can be used to control the behavior of tasks: final and mergeable.

+

The final clause is used to specify that a task is a final task. A final task is a task that is guaranteed to be the last task created in a task region. When a final task is encountered, the runtime system stops creating new tasks and executes the final task immediately. The final clause takes a scalar expression as its argument, and if the expression evaluates to true, the task is treated as a final task.

+
#pragma omp task final(expression)
+{
+    // Final task code block
+}
+
+
+

The mergeable clause is used to indicate that a task can be merged with its parent task. When a task is created with the mergeable clause, the runtime system may choose to merge the task with its parent task instead of creating a new task. This can help reduce the overhead of task creation and improve performance.

+
#pragma omp task mergeable
+{
+    // Mergeable task code block
+}
+
+
+
+
+

2.8.5.4. Example: Controlling task scheduling#

+

Let’s consider an example that demonstrates the use of tied and untied tasks and the final clause:

+
#include <stdio.h>
+#include <omp.h>
+
+void task_func(int task_id) {
+    printf("Task %d executed by thread %d\n", task_id, omp_get_thread_num());
+}
+
+int main() {
+    #pragma omp parallel
+    {
+        #pragma omp single
+        {
+            for (int i = 0; i < 10; i++) {
+                if (i % 2 == 0) {
+                    #pragma omp task untied
+                    task_func(i);
+                } else {
+                    #pragma omp task final(i == 9)
+                    task_func(i);
+                }
+            }
+        }
+    }
+
+    return 0;
+}
+
+
+

In this example, we have a loop that creates tasks using the task directive. For even iterations, we create untied tasks using the untied clause. For odd iterations, we create tied tasks, and for the last iteration (i == 9), we use the final clause to indicate that it is a final task.

+

The task_func function simply prints the task ID and the ID of the thread executing the task.

+

When executed, the program will create a mix of tied and untied tasks, and the final task will be executed immediately by the encountering thread.

+

Understanding task scheduling in OpenMP is crucial for optimizing the performance and behavior of task-based parallel programs. By leveraging tied and untied tasks, the final clause, and the mergeable clause, you can fine-tune the scheduling of tasks to suit your specific requirements and achieve optimal load balancing and resource utilization.

+

In the next section, we will explore advanced task features in OpenMP, such as task priorities and the taskloop directive.

+
    +
  1. Advanced Task Features

  2. +
+

OpenMP offers several advanced features that enhance the functionality and flexibility of tasks. In this section, we will explore the priority clause for task prioritization, the taskloop directive for task-based loop parallelism, and the combination of tasks with other OpenMP constructs.

+
+
+

2.8.5.5. The priority clause for task prioritization#

+

The priority clause allows you to assign a priority value to a task, indicating its relative importance or urgency. The priority value is a hint to the OpenMP runtime system, suggesting the order in which tasks should be executed. Tasks with higher priority values are recommended to be executed before tasks with lower priority values.

+

The syntax for the priority clause in C/C++ is as follows:

+
#pragma omp task priority(priority-value)
+
+
+

In Fortran, the syntax is:

+
!$omp task priority(priority-value)
+
+
+

The priority-value is an integer expression that specifies the priority of the task. Higher values indicate higher priority.

+

It’s important to note that the priority clause is a hint and does not guarantee a specific execution order. The actual scheduling of tasks depends on the OpenMP runtime system and may be influenced by other factors such as load balancing and resource availability.

+
+
+

2.8.5.6. The taskloop directive for task-based loop parallelism#

+

The taskloop directive is used to create tasks for loop iterations in a more convenient and efficient way compared to manually creating tasks for each iteration. The taskloop directive automatically divides the loop iterations into tasks, reducing the overhead of task creation and management.

+

The syntax for the taskloop directive in C/C++ is as follows:

+
#pragma omp taskloop [clause[[,] clause] ...]
+for-loops
+
+
+

In Fortran, the syntax is:

+
!$omp taskloop [clause[[,] clause] ...]
+do-loops
+!$omp end taskloop
+
+
+

The taskloop directive supports various clauses to control the behavior of the generated tasks, such as shared, private, firstprivate, lastprivate, collapse, nogroup, reduction, and grainsize.

+

The grainsize clause specifies the minimum number of loop iterations that should be executed by each task. This allows you to control the granularity of the tasks and optimize performance based on the characteristics of the loop and the target system.

+
+
+

2.8.5.7. Combining tasks with other OpenMP constructs#

+

Tasks can be combined with other OpenMP constructs to create more complex and flexible parallel patterns. For example, you can use tasks within parallel regions, section constructs, or master constructs to express hierarchical parallelism or to delegate specific computations to tasks.

+
#pragma omp parallel
+{
+    #pragma omp sections
+    {
+        #pragma omp section
+        {
+            // Task 1
+            #pragma omp task
+            {
+                // Task 1 code block
+            }
+        }
+
+        #pragma omp section
+        {
+            // Task 2
+            #pragma omp task
+            {
+                // Task 2 code block
+            }
+        }
+    }
+}
+
+
+

In this example, tasks are created within section constructs inside a parallel region. Each section represents a different task, allowing for parallel execution of the tasks.

+
+
+

2.8.5.8. Example: Advanced task usage#

+

Let’s consider an example that demonstrates the usage of task priorities and the taskloop directive:

+
#include <stdio.h>
+#include <omp.h>
+
+#define N 100
+
+void process_item(int i) {
+    // Simulating some work
+    printf("Processing item %d\n", i);
+}
+
+int main() {
+    #pragma omp parallel
+    {
+        #pragma omp single
+        {
+            // Create high-priority tasks
+            for (int i = 0; i < N; i += 2) {
+                #pragma omp task priority(1)
+                process_item(i);
+            }
+
+            // Create low-priority tasks
+            for (int i = 1; i < N; i += 2) {
+                #pragma omp task priority(0)
+                process_item(i);
+            }
+
+            // Create tasks using taskloop directive
+            #pragma omp taskloop grainsize(10)
+            for (int i = 0; i < N; i++) {
+                process_item(i);
+            }
+        }
+    }
+
+    return 0;
+}
+
+
+

In this example, we create tasks with different priorities. The tasks processing even-indexed items are assigned higher priority compared to the tasks processing odd-indexed items. This suggests to the OpenMP runtime that the even-indexed tasks should be executed before the odd-indexed tasks.

+

Additionally, we use the taskloop directive to create tasks for the loop iterations. The grainsize clause specifies that each task should execute at least 10 iterations. This helps in reducing the overhead of task creation and optimizing performance.

+

The process_item function simulates some work by printing the item being processed.

+

When executed, the program will create tasks with different priorities and use the taskloop directive to efficiently parallelize the loop iterations.

+

The advanced task features in OpenMP, such as task priorities and the taskloop directive, provide additional control and optimization opportunities for task-based parallel programming. By leveraging these features, you can fine-tune the behavior and performance of your parallel code to suit your specific requirements.

+

In the next section, we will discuss performance considerations and best practices for using tasks in OpenMP.

+
+
+
+

2.8.6. Performance Considerations and Best Practices#

+

When using tasks in OpenMP, it’s important to consider performance aspects and follow best practices to ensure efficient and scalable parallel execution. In this section, we will discuss task granularity, overhead, load balancing, task distribution, and synchronization bottlenecks. We’ll also provide an example of optimizing task performance.

+
+

2.8.6.1. Task granularity and overhead#

+

Task granularity refers to the amount of work performed by a single task. Choosing the right task granularity is crucial for achieving optimal performance. If tasks are too fine-grained (i.e., they perform a small amount of work), the overhead of task creation and management can outweigh the benefits of parallelism. On the other hand, if tasks are too coarse-grained (i.e., they perform a large amount of work), they may limit the potential for parallelism and lead to load imbalance.

+

Finding the right balance in task granularity is important. As a general guideline, the work performed by a task should be significantly larger than the overhead of creating and managing the task. This ensures that the benefits of parallel execution outweigh the associated overhead.

+

To minimize task overhead, consider the following:

+
    +
  • Use the final clause to stop creating new tasks when the remaining work is small enough to be executed sequentially.

  • +
  • Use the mergeable clause to allow the runtime system to merge small tasks with their parent tasks, reducing the number of task creations.

  • +
  • Use the taskloop directive to efficiently parallelize loops by automatically dividing iterations into tasks.

  • +
+
+
+

2.8.6.2. Load balancing and task distribution#

+

Load balancing is critical for achieving efficient parallel execution. OpenMP’s task scheduling model aims to distribute tasks evenly among the available threads to maximize resource utilization and minimize idle time.

+

To promote load balancing, consider the following:

+
    +
  • Use untied tasks when possible to allow tasks to be resumed by any available thread, facilitating dynamic load balancing.

  • +
  • Use task priorities to guide the runtime system in scheduling tasks based on their relative importance.

  • +
  • Use the taskloop directive with appropriate grainsize or num_tasks clauses to control the distribution of loop iterations among tasks.

  • +
+

In some cases, you may need to explicitly control the distribution of tasks to achieve better load balancing. This can be done by using techniques such as work stealing, where idle threads actively steal tasks from the queues of other threads.

+
+
+

2.8.6.3. Avoiding task synchronization bottlenecks#

+

Task synchronization, such as using the taskwait directive or task dependencies, is necessary to ensure correct execution order and data consistency. However, excessive or unnecessary synchronization can lead to bottlenecks and hinder performance.

+

To minimize synchronization bottlenecks, consider the following:

+
    +
  • Use synchronization directives judiciously and only when necessary. Avoid excessive use of taskwait directives that can limit parallelism.

  • +
  • Leverage task dependencies using the depend clause to express fine-grained dependencies between tasks, allowing for more parallelism compared to explicit synchronization points.

  • +
  • Use the taskgroup directive to create synchronization points for a specific group of tasks rather than synchronizing all tasks globally.

  • +
+

By carefully designing your task synchronization strategy and minimizing unnecessary synchronization, you can avoid bottlenecks and improve the overall performance of your parallel code.

+
+
+

2.8.6.4. Example: Optimizing task performance#

+

Let’s consider an example that demonstrates optimization techniques for task performance:

+
#include <stdio.h>
+#include <omp.h>
+
+#define N 1000
+
+void process_item(int i) {
+    // Simulating some work
+    printf("Processing item %d\n", i);
+}
+
+int main() {
+    #pragma omp parallel
+    {
+        #pragma omp single
+        {
+            // Using taskloop directive with grainsize
+            #pragma omp taskloop grainsize(100)
+            for (int i = 0; i < N; i++) {
+                process_item(i);
+            }
+
+            // Using final clause to stop creating new tasks
+            for (int i = 0; i < N; i++) {
+                #pragma omp task final(i >= N - 100)
+                process_item(i);
+            }
+        }
+    }
+
+    return 0;
+}
+
+
+

In this example, we apply optimization techniques to improve task performance:

+
    +
  1. We use the taskloop directive with the grainsize clause to automatically divide the loop iterations into tasks. The grainsize clause specifies that each task should execute at least 100 iterations, reducing the overhead of task creation.

  2. +
  3. We use the final clause to stop creating new tasks when there are only 100 iterations remaining. This avoids the overhead of creating tasks for a small amount of remaining work, allowing it to be executed sequentially by the current thread.

  4. +
+

By applying these optimization techniques, we can reduce the overhead of task creation and management, leading to improved performance.

+

It’s important to note that the optimal values for task granularity, load balancing, and synchronization strategies may vary depending on the specific characteristics of your application, the target system, and the input data. Experimentation and performance profiling are recommended to find the best configuration for your particular use case.

+

Following performance considerations and best practices can help you write efficient and scalable task-based parallel code in OpenMP. By carefully designing tasks, optimizing granularity, promoting load balancing, and minimizing synchronization bottlenecks, you can fully leverage the power of tasks in OpenMP to achieve high performance.

+

In the next section, we will discuss debugging and profiling techniques for tasks in OpenMP.

+
+
+
+

2.8.7. Debugging and Profiling Tasks#

+

Debugging and profiling are essential practices when developing task-based parallel programs in OpenMP. Debugging helps identify and fix logical errors and race conditions, while profiling assists in identifying performance bottlenecks and opportunities for optimization. In this section, we will discuss common pitfalls, debugging techniques, and the use of OpenMP debugging and profiling tools.

+
+

2.8.7.1. Common pitfalls and debugging techniques for tasks#

+

When working with tasks in OpenMP, there are several common pitfalls that can lead to incorrect behavior or performance issues. Some of these pitfalls include:

+
    +
  1. Data races: Data races occur when multiple tasks access shared data concurrently, and at least one of the accesses is a write. Data races can lead to unpredictable behavior and incorrect results. To avoid data races, ensure proper synchronization and use appropriate data-sharing clauses (shared, private, firstprivate, lastprivate) to manage data access.

  2. +
  3. Deadlocks: Deadlocks can occur when tasks are waiting for each other in a circular dependency, resulting in a program that hangs. Deadlocks often happen due to incorrect usage of synchronization directives or task dependencies. To prevent deadlocks, carefully design your task synchronization and ensure that there are no circular dependencies.

  4. +
  5. Incorrect task dependencies: Specifying incorrect task dependencies using the depend clause can lead to incorrect execution order or data inconsistencies. Make sure to accurately express the dependencies between tasks based on their data flow and synchronization requirements.

  6. +
  7. Unintentional task synchronization: Overusing synchronization directives like taskwait or taskgroup can limit parallelism and create unnecessary synchronization points. Use synchronization directives judiciously and only when necessary to avoid unintentional synchronization.

  8. +
+

To debug task-based OpenMP programs, you can employ the following techniques:

+
    +
  1. Print statements: Inserting print statements at strategic points in your code can help track the execution flow and identify issues. Print the values of variables, task IDs, and thread IDs to understand the behavior of tasks.

  2. +
  3. Conditional breakpoints: Use conditional breakpoints in a debugger to pause the execution when specific conditions are met, such as when a variable reaches a certain value or when a particular task is executed. This can help identify the source of errors or unexpected behavior.

  4. +
  5. Data breakpoints: Set data breakpoints on shared variables to detect when they are accessed or modified by multiple tasks. This can help identify data races and understand the data flow between tasks.

  6. +
  7. Debugging with OpenMP runtime controls: OpenMP provides runtime controls that can aid in debugging. For example, setting the OMP_NUM_THREADS environment variable to 1 can help isolate issues by running the program with a single thread. The OMP_SCHEDULE environment variable can be used to control the scheduling of loop iterations and tasks.

  8. +
+
+
+

2.8.7.2. Using OpenMP debugging and profiling tools#

+

OpenMP-aware debugging and profiling tools can greatly assist in identifying and resolving issues in task-based parallel programs. These tools provide specialized features and visualizations to understand the behavior and performance of OpenMP tasks.

+

Some popular OpenMP debugging and profiling tools include:

+
    +
  1. GDB (GNU Debugger): GDB is a widely used debugger that supports OpenMP. It allows you to set breakpoints, inspect variables, and control the execution of OpenMP programs. GDB provides commands specific to OpenMP, such as info threads to display information about OpenMP threads and tasks.

  2. +
  3. Totalview: Totalview is a commercial debugger that offers advanced debugging capabilities for OpenMP programs. It provides a graphical user interface and features like thread and task visualization, data race detection, and performance analysis.

  4. +
  5. Intel VTune Amplifier: VTune Amplifier is a performance profiler that supports OpenMP. It helps identify performance bottlenecks, analyze thread and task performance, and provides insights into the utilization of CPU and memory resources.

  6. +
  7. Arm MAP: Arm MAP (Arm Mobile Application Profiler) is a profiling tool that supports OpenMP. It provides detailed performance analysis, including the ability to analyze task creation, execution, and synchronization.

  8. +
+

These tools offer various features and capabilities to help diagnose and optimize task-based OpenMP programs. They can provide insights into task creation, scheduling, synchronization, and performance metrics, enabling you to identify and resolve issues effectively.

+
+
+

2.8.7.3. Example: Debugging and profiling a task-based program#

+

Let’s consider an example of debugging and profiling a task-based OpenMP program:

+
#include <stdio.h>
+#include <omp.h>
+
+#define N 1000
+
+void process_item(int i) {
+    // Simulating some work
+    printf("Processing item %d\n", i);
+}
+
+int main() {
+    int result = 0;
+
+    #pragma omp parallel
+    {
+        #pragma omp single
+        {
+            for (int i = 0; i < N; i++) {
+                #pragma omp task shared(result)
+                {
+                    result += i;
+                    process_item(i);
+                }
+            }
+        }
+    }
+
+    printf("Final result: %d\n", result);
+
+    return 0;
+}
+
+
+

In this example, we have a task-based program that processes items and accumulates the result in a shared variable result. However, there is a data race in this program because multiple tasks are accessing and modifying the shared variable result concurrently without proper synchronization.

+

To debug this program, we can use the following approaches:

+
    +
  1. Print statements: Insert print statements to track the execution of tasks and the values of the result variable at different points in the program.

  2. +
  3. Debugging with OpenMP runtime controls: Set the OMP_NUM_THREADS environment variable to 1 to run the program with a single thread and observe the behavior. This can help identify if the issue is related to parallel execution.

  4. +
  5. OpenMP debugging tools: Use an OpenMP-aware debugger like GDB or Totalview to set breakpoints, inspect variables, and step through the execution of tasks. These tools can help identify the source of the data race.

  6. +
+

To profile this program and analyze its performance, we can use OpenMP profiling tools such as Intel VTune Amplifier or Arm MAP. These tools can provide insights into task creation, execution, and synchronization overhead, as well as identify any performance bottlenecks.

+

After analyzing the program, we can fix the data race by using appropriate synchronization mechanisms, such as atomic operations or critical sections, to ensure exclusive access to the shared variable result.

+

Debugging and profiling are iterative processes that involve identifying issues, making changes, and re-analyzing the program until the desired behavior and performance are achieved.

+

By leveraging debugging techniques, OpenMP debugging and profiling tools, and following best practices for task-based programming, you can effectively debug and optimize your OpenMP programs, ensuring correctness and performance.

+

In the next section, we will explore real-world applications and use cases of task-based programming with OpenMP.

+
+
+
+

2.8.8. Real-world Applications and Use Cases#

+

Task-based programming with OpenMP finds applications in various domains, ranging from scientific computing and machine learning to computer graphics and data analysis. In this section, we will explore some real-world applications and use cases where task-based parallelism with OpenMP has been successfully employed to achieve performance improvements and solve complex problems.

+
+

2.8.8.1. Scientific Computing#

+

Scientific computing often involves complex algorithms and large-scale simulations that can benefit from task-based parallelism. Some examples include:

+
    +
  1. Molecular Dynamics Simulations: Molecular dynamics simulations model the interactions and movements of particles in a system over time. Task-based parallelism can be used to distribute the computation of forces and positions of particles among tasks, allowing for efficient parallel execution.

  2. +
  3. Finite Element Analysis: Finite element analysis is a numerical method used to solve complex engineering and physics problems. Task-based parallelism can be applied to distribute the computation of element matrices and assembly of the global system among tasks, improving the performance of the analysis.

  4. +
  5. Computational Fluid Dynamics: Computational fluid dynamics simulates the behavior of fluids and their interactions with surfaces. Task-based parallelism can be used to parallelize the computation of flow fields, turbulence models, and boundary conditions, enabling faster simulation times.

  6. +
+
+
+

2.8.8.2. Machine Learning#

+

Machine learning algorithms often involve computationally intensive tasks that can benefit from task-based parallelism. Some examples include:

+
    +
  1. Neural Network Training: Training deep neural networks requires a significant amount of computation. Task-based parallelism can be used to distribute the computation of forward and backward propagation, weight updates, and data loading among tasks, accelerating the training process.

  2. +
  3. Hyperparameter Tuning: Hyperparameter tuning involves searching for the best combination of hyperparameters for a machine learning model. Task-based parallelism can be used to evaluate multiple hyperparameter configurations concurrently, reducing the overall tuning time.

  4. +
  5. Feature Extraction: Feature extraction is a preprocessing step in machine learning that involves computing relevant features from raw data. Task-based parallelism can be applied to parallelize the computation of features, such as image descriptors or text embeddings, improving the efficiency of the feature extraction process.

  6. +
+
+
+

2.8.8.3. Computer Graphics#

+

Computer graphics applications often involve complex rendering and simulation tasks that can leverage task-based parallelism. Some examples include:

+
    +
  1. Ray Tracing: Ray tracing is a rendering technique used to generate realistic images by simulating the interaction of light with objects in a scene. Task-based parallelism can be used to distribute the computation of individual rays among tasks, allowing for faster rendering times.

  2. +
  3. Particle Systems: Particle systems are used to simulate phenomena like fire, smoke, and crowds. Task-based parallelism can be applied to parallelize the computation of particle positions, velocities, and interactions, enabling real-time simulation of large-scale particle systems.

  4. +
  5. Collision Detection: Collision detection is a fundamental problem in computer graphics that involves determining the intersection between objects in a scene. Task-based parallelism can be used to distribute the computation of collision tests among tasks, improving the performance of collision detection algorithms.

  6. +
+
+
+

2.8.8.4. Data Analysis#

+

Data analysis tasks often involve processing large datasets and performing computationally intensive operations. Task-based parallelism can be leveraged to speed up data analysis pipelines. Some examples include:

+
    +
  1. Data Preprocessing: Data preprocessing tasks, such as data cleaning, normalization, and feature scaling, can be parallelized using tasks. Each task can handle a subset of the data, allowing for faster preprocessing of large datasets.

  2. +
  3. Statistical Analysis: Statistical analysis techniques, such as hypothesis testing, regression analysis, and clustering, can benefit from task-based parallelism. Tasks can be used to distribute the computation of statistical measures and models, reducing the overall analysis time.

  4. +
  5. Data Visualization: Generating visualizations from large datasets can be computationally expensive. Task-based parallelism can be used to parallelize the rendering of charts, graphs, and heatmaps, enabling interactive exploration of large datasets.

  6. +
+
+
+

2.8.8.5. Case Studies#

+

There are numerous case studies showcasing the successful application of task-based parallelism with OpenMP in various domains. Here are a few examples:

+
    +
  1. Molecular Dynamics Simulation: A study by Wei et al. [1] demonstrated the use of task-based parallelism with OpenMP to accelerate molecular dynamics simulations. By employing a task-based approach, they achieved significant speedups compared to traditional loop-based parallelism.

  2. +
  3. Neural Network Training: Jiang et al. [2] presented a task-based approach for training deep neural networks using OpenMP. They demonstrated improved performance and scalability by distributing the computation of forward and backward propagation among tasks.

  4. +
  5. Ray Tracing: A study by Kim et al. [3] showcased the use of task-based parallelism with OpenMP for accelerating ray tracing algorithms. By employing a task-based approach, they achieved significant speedups and improved load balancing compared to traditional parallel approaches.

  6. +
+

These case studies highlight the potential of task-based parallelism with OpenMP in various domains and demonstrate the performance benefits that can be achieved by leveraging tasks effectively.

+

Real-world applications and use cases showcase the versatility and effectiveness of task-based programming with OpenMP. By understanding how task-based parallelism can be applied in different domains, you can identify opportunities to leverage tasks in your own projects and achieve significant performance improvements.

+

In the next section, we will summarize the key concepts and best practices covered in this chapter and discuss future directions in task-based programming with OpenMP.

+
+
+
+

2.8.9. Summary and Future Directions#

+

In this chapter, we have explored the concept of task-based programming with OpenMP and its application in various domains. We started by introducing the motivation behind using tasks and the task-based parallelism model in OpenMP. We then delved into the basic usage of the task directive, including its syntax, clauses, and the creation and execution of tasks.

+

We discussed the data environment and data sharing in tasks, highlighting the importance of understanding shared and private variables, as well as the firstprivate and lastprivate clauses. Task synchronization was covered, including the use of the taskwait directive, the taskgroup directive, and task dependencies with the depend clause.

+

We explored the task scheduling model in OpenMP, including tied and untied tasks, and the final and mergeable clauses. Advanced task features, such as the priority clause and the taskloop directive, were introduced to provide additional control and optimization opportunities.

+

Performance considerations and best practices were discussed, emphasizing the importance of task granularity, load balancing, and minimizing synchronization bottlenecks. Debugging and profiling techniques for task-based OpenMP programs were covered, including common pitfalls, debugging techniques, and the use of OpenMP debugging and profiling tools.

+

Real-world applications and use cases showcased the effectiveness of task-based programming with OpenMP in various domains, including scientific computing, machine learning, computer graphics, and data analysis. Case studies demonstrated the significant performance improvements that can be achieved by leveraging tasks effectively.

+

As we look towards the future, task-based programming with OpenMP continues to evolve and expand. The OpenMP specification is regularly updated with new features and enhancements to support the growing demands of parallel computing. Some future directions and trends in task-based programming with OpenMP include:

+
    +
  1. Heterogeneous Computing: OpenMP is expanding its support for heterogeneous computing, enabling the use of tasks on accelerators such as GPUs. The target directive, introduced in OpenMP 4.0, allows tasks to be offloaded to accelerator devices, opening up new possibilities for task-based programming on heterogeneous systems.

  2. +
  3. Task Dependencies and Graphs: The depend clause and task dependencies have been a significant advancement in OpenMP, enabling the creation of task graphs and fine-grained synchronization. Future developments may include more advanced task graph optimizations and tools for analyzing and visualizing task dependencies.

  4. +
  5. Integration with Other Programming Models: OpenMP tasks can be integrated with other parallel programming models, such as MPI (Message Passing Interface) or CUDA, to create hybrid parallel applications. Future directions may involve better integration and interoperability between OpenMP tasks and other programming models.

  6. +
  7. Performance Portability: Ensuring performance portability across different architectures and systems is a key challenge in parallel programming. OpenMP tasks provide a high-level abstraction for expressing parallelism, and future developments may focus on improving performance portability of task-based programs across various platforms.

  8. +
  9. Tools and Ecosystem: The development of advanced tools and a robust ecosystem around OpenMP tasks is crucial for their adoption and effectiveness. Future directions may include enhanced debugging and profiling tools, performance analysis frameworks, and task-based programming libraries and frameworks.

  10. +
+

As parallel computing continues to evolve, task-based programming with OpenMP will play a vital role in harnessing the power of parallel systems and enabling the development of efficient and scalable parallel applications.

+
+
+

2.8.10. Exercises and Projects#

+

To reinforce your understanding of task-based programming with OpenMP and apply the concepts learned in this chapter, here are some exercises and project ideas:

+
    +
  1. Fibonacci Sequence: Implement a recursive function to compute the Fibonacci sequence using OpenMP tasks. Explore the impact of task granularity on performance by varying the threshold at which tasks are created.

  2. +
  3. Parallel Quicksort: Implement a parallel version of the Quicksort algorithm using OpenMP tasks. Use tasks to recursively sort the subparts of the array and experiment with different task creation strategies.

  4. +
  5. Matrix Multiplication: Develop a task-based matrix multiplication program using OpenMP. Divide the matrix into smaller blocks and use tasks to compute the matrix product. Investigate the effect of block size on performance.

  6. +
  7. Task-based Producer-Consumer: Implement a producer-consumer problem using OpenMP tasks. Use tasks to represent producers and consumers and synchronize their access to a shared buffer using OpenMP synchronization constructs.

  8. +
  9. Task-based Image Processing: Create a task-based image processing application that applies various filters to an image. Use tasks to parallelize the application of filters to different parts of the image and measure the speedup achieved.

  10. +
  11. Task-based Graph Algorithms: Implement task-based versions of graph algorithms, such as breadth-first search (BFS) or depth-first search (DFS), using OpenMP tasks. Explore different task creation and synchronization strategies to optimize performance.

  12. +
  13. Task-based Simulation: Develop a task-based simulation application, such as a traffic simulation or a particle system simulation, using OpenMP tasks. Use tasks to model different entities or particles in the simulation and investigate the scalability of the application.

  14. +
  15. Task-based Machine Learning: Apply task-based parallelism to a machine learning algorithm, such as k-nearest neighbors (k-NN) or decision tree training, using OpenMP tasks. Measure the performance improvement achieved by parallelizing the algorithm using tasks.

  16. +
  17. Task-based Optimization: Implement a task-based optimization algorithm, such as genetic algorithms or simulated annealing, using OpenMP tasks. Use tasks to evaluate different candidate solutions in parallel and explore the impact of task granularity on convergence speed.

  18. +
  19. Task-based Data Analysis: Develop a task-based data analysis pipeline that processes large datasets using OpenMP tasks. Use tasks to parallelize data preprocessing, feature extraction, and model training stages of the pipeline and analyze the performance gains achieved.

  20. +
+

These exercises and projects provide hands-on experience with task-based programming using OpenMP and allow you to apply the concepts learned in this chapter to real-world problems. They cover a range of domains and algorithms, giving you the opportunity to explore different aspects of task-based parallelism and optimize performance.

+

Remember to experiment with different task granularities, synchronization strategies, and performance optimizations to gain a deeper understanding of task-based programming with OpenMP. Additionally, consider using OpenMP debugging and profiling tools to analyze the behavior and performance of your task-based programs.

+

By working through these exercises and projects, you will develop practical skills in task-based programming with OpenMP and be well-equipped to tackle parallel computing challenges in various domains.

+
+
+ + + + +
+ + + + + + + + +
+ + + +
+ + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/MultiCoreMultiCPU/6_ExplicitDistribution.html b/MultiCoreMultiCPU/6_ExplicitDistribution.html new file mode 100644 index 0000000..61e5278 --- /dev/null +++ b/MultiCoreMultiCPU/6_ExplicitDistribution.html @@ -0,0 +1,1204 @@ + + + + + + + + + + + 2.9. Explicit Distribution of Work Using Single, Sections, Workshring-Loop, and Distribute Construct — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

2.9. Explicit Distribution of Work Using Single, Sections, Workshring-Loop, and Distribute Construct#

+
+

2.9.1. Introduction#

+

Explicit work distribution is a fundamental concept in parallel programming that plays a crucial role in achieving optimal performance and scalability. When developing parallel programs, it is essential to carefully consider how the workload is distributed among the available processing units, such as threads or teams of threads. Proper work distribution ensures that each processing unit has a fair share of the computational tasks, minimizing load imbalance and maximizing resource utilization.

+

OpenMP provides several constructs that facilitate explicit work distribution. These constructs allow programmers to specify how the workload should be divided and assigned to different threads or teams of threads. By leveraging these constructs effectively, developers can create efficient and scalable parallel programs that harness the full potential of modern multi-core processors and accelerators.

+

In this section, we will explore four key OpenMP constructs for explicit work distribution: single, sections, worksharing-loop, and distribute. Each of these constructs serves a specific purpose and offers unique features for distributing work among threads or teams.

+

The single construct ensures that a specific code block is executed by only one thread, which can be useful for initializing shared variables or performing I/O operations. The sections construct allows different code blocks to be executed concurrently by different threads, enabling task-level parallelism. Worksharing-loop constructs, such as for and do, distribute loop iterations among threads, providing a simple and efficient way to parallelize loops. Finally, the distribute construct is used to distribute loop iterations across teams of threads, enabling coarse-grained parallelism suitable for offloading to accelerators.

+

Throughout this section, we will delve into the syntax, clauses, and usage of each construct, providing examples to illustrate their application in real-world scenarios. We will also discuss best practices for combining these constructs to achieve optimal work distribution and performance. By the end of this section, you will have a solid understanding of how to leverage OpenMP’s explicit work distribution constructs to write efficient and scalable parallel programs.

+
+
+

2.9.2. Single Construct#

+

The single construct in OpenMP is used to specify that a block of code should be executed by only one thread in a team, while the other threads wait at an implicit barrier until the execution of the single block is completed. This construct is particularly useful when there are certain tasks that need to be performed only once, such as initializing shared variables, printing results, or performing I/O operations.

+
+

2.9.2.1. Syntax and Clauses#

+

The syntax for the single construct in C/C++ is as follows:

+
#pragma omp single [clause[[,] clause] ...]
+{
+  // Code block to be executed by a single thread
+}
+
+
+

In Fortran, the syntax is:

+
!$omp single [clause[[,] clause] ...]
+  ! Code block to be executed by a single thread
+!$omp end single
+
+
+

The single construct supports the following clauses:

+
    +
  • private(list): Specifies that the listed variables should be private to each thread executing the single block.

  • +
  • firstprivate(list): Initializes the listed private variables with their corresponding values prior to entering the single block.

  • +
  • copyprivate(list): Broadcasts the values of the listed private variables from the thread executing the single block to all other threads in the team.

  • +
  • nowait: Specifies that threads completing the single block do not need to wait for other threads at the end of the single construct.

  • +
+
+
+

2.9.2.2. Example#

+

Here’s an example that demonstrates the usage of the single construct in C:

+
#include <stdio.h>
+#include <omp.h>
+
+int main() {
+  int result = 0;
+
+  #pragma omp parallel
+  {
+    #pragma omp single
+    {
+      // Initialize the shared variable 'result'
+      result = 42;
+      printf("Single thread initialized result to %d\n", result);
+    }
+
+    // All threads wait here until the single block is executed
+
+    #pragma omp critical
+    {
+      // Each thread increments 'result'
+      result++;
+      printf("Thread %d incremented result to %d\n", omp_get_thread_num(), result);
+    }
+  }
+
+  printf("Final result: %d\n", result);
+
+  return 0;
+}
+
+
+

In this example, the single construct is used to initialize the shared variable result by a single thread. The other threads wait at the implicit barrier until the single block is completed. After the single block, all threads increment the result variable inside a critical section to avoid race conditions. Finally, the program prints the final value of result.

+

The single construct ensures that the initialization of result is performed only once, avoiding redundant or conflicting initializations by multiple threads. By using the single construct judiciously, you can optimize the execution of tasks that need to be performed only once within a parallel region.

+
+
+
+

2.9.3. Sections Construct#

+

The sections construct in OpenMP allows for the distribution of work among threads in a team, where each thread executes a different code block defined within a section. This construct is useful when you have independent code blocks that can be executed concurrently, enabling task-level parallelism.

+
+

2.9.3.1. Syntax and Clauses#

+

The syntax for the sections construct in C/C++ is as follows:

+
#pragma omp sections [clause[[,] clause] ...]
+{
+  #pragma omp section
+  {
+    // Code block 1
+  }
+  #pragma omp section
+  {
+    // Code block 2
+  }
+  // More sections...
+}
+
+
+

In Fortran, the syntax is:

+
!$omp sections [clause[[,] clause] ...]
+  !$omp section
+    ! Code block 1
+  !$omp section
+    ! Code block 2
+  ! More sections...
+!$omp end sections
+
+
+

The sections construct supports the following clauses:

+
    +
  • private(list): Specifies that the listed variables should be private to each thread executing a section.

  • +
  • firstprivate(list): Initializes the listed private variables with their corresponding values prior to entering the sections construct.

  • +
  • lastprivate(list): Ensures that the listed variables retain their values from the last iteration of the sections construct.

  • +
  • reduction(operator:list): Specifies a reduction operation to be performed on the listed variables.

  • +
  • nowait: Specifies that threads completing their sections do not need to wait for other threads at the end of the sections construct.

  • +
+
+
+

2.9.3.2. Example#

+

Here’s an example that illustrates the usage of the sections construct in C:

+
#include <stdio.h>
+#include <omp.h>
+
+int main() {
+  #pragma omp parallel
+  {
+    #pragma omp sections
+    {
+      #pragma omp section
+      {
+        printf("Thread %d executing section 1\n", omp_get_thread_num());
+        // Code block 1
+      }
+      #pragma omp section
+      {
+        printf("Thread %d executing section 2\n", omp_get_thread_num());
+        // Code block 2
+      }
+      #pragma omp section
+      {
+        printf("Thread %d executing section 3\n", omp_get_thread_num());
+        // Code block 3
+      }
+    }
+  }
+
+  return 0;
+}
+
+
+

In this example, the sections construct is used to distribute the execution of three code blocks among the available threads. Each section is executed by a different thread, and the omp_get_thread_num() function is used to print the thread number executing each section.

+

The sections construct allows for the concurrent execution of independent code blocks, improving the overall performance by leveraging task-level parallelism. It is important to note that the number of sections does not need to match the number of threads in the team. If there are more sections than threads, the sections will be distributed among the available threads. If there are fewer sections than threads, some threads may not execute any section.

+

By using the sections construct, you can efficiently distribute work among threads and take advantage of the available parallelism in your program.

+
+
+
+

2.9.4. Worksharing-Loop Constructs#

+

Worksharing-loop constructs in OpenMP, such as for and do, are used to distribute loop iterations among the threads in a team. These constructs provide a simple and efficient way to parallelize loops and improve the performance of your program.

+
+

2.9.4.1. Syntax and Clauses#

+

The syntax for the worksharing-loop construct in C/C++ is as follows:

+
#pragma omp for [clause[[,] clause] ...]
+for (/* loop initialization */; /* loop condition */; /* loop increment */) {
+  // Loop body
+}
+
+
+

In Fortran, the syntax is:

+
!$omp do [clause[[,] clause] ...]
+do /* loop index */ = /* start */, /* end */, /* increment */
+  ! Loop body
+end do
+!$omp end do
+
+
+

The worksharing-loop constructs support the following clauses:

+
    +
  • private(list): Specifies that the listed variables should be private to each thread executing the loop.

  • +
  • firstprivate(list): Initializes the listed private variables with their corresponding values prior to entering the loop.

  • +
  • lastprivate(list): Ensures that the listed variables retain their values from the last iteration of the loop.

  • +
  • reduction(operator:list): Specifies a reduction operation to be performed on the listed variables.

  • +
  • schedule(kind[, chunk_size]): Specifies how the loop iterations are divided among the threads. The kind can be static, dynamic, guided, or runtime.

  • +
  • collapse(n): Specifies the number of loops in a nested loop structure that should be collapsed into a single loop for parallelization.

  • +
  • nowait: Specifies that threads completing the loop do not need to wait for other threads at the end of the worksharing-loop construct.

  • +
+
+
+

2.9.4.2. Example#

+

Here’s an example that demonstrates the usage of the worksharing-loop construct in C:

+
#include <stdio.h>
+#include <omp.h>
+
+#define N 100
+
+int main() {
+  int i, sum = 0;
+  int a[N];
+
+  // Initialize the array
+  for (i = 0; i < N; i++) {
+    a[i] = i + 1;
+  }
+
+  #pragma omp parallel for reduction(+:sum)
+  for (i = 0; i < N; i++) {
+    sum += a[i];
+  }
+
+  printf("Sum: %d\n", sum);
+
+  return 0;
+}
+
+
+

In this example, the worksharing-loop construct is used to distribute the iterations of the loop that calculates the sum of elements in the array a among the available threads. The reduction(+:sum) clause is used to specify that the sum variable should be reduced using the addition operator.

+

By using the worksharing-loop construct, the loop iterations are automatically divided among the threads, and each thread computes a partial sum. The reduction clause ensures that the partial sums are properly combined to obtain the final result.

+

Worksharing-loop constructs are highly effective for parallelizing loops that have no dependencies between iterations. They provide a straightforward way to distribute the workload and achieve significant performance improvements in many common scenarios.

+
+
+

2.9.4.3. Scheduling Clauses#

+

The schedule clause in the worksharing-loop constructs allows you to control how the loop iterations are divided among the threads. The different scheduling kinds are:

+
    +
  • static: Iterations are divided into chunks of size chunk_size and assigned to threads in a round-robin manner. If chunk_size is not specified, the iterations are evenly divided among the threads.

  • +
  • dynamic: Iterations are divided into chunks of size chunk_size, and each thread dynamically takes a chunk when it becomes available. This is useful for loops with varying workload per iteration.

  • +
  • guided: Similar to dynamic, but the chunk size starts large and decreases exponentially to a minimum of chunk_size. This is useful for loops where the workload decreases over time.

  • +
  • runtime: The scheduling kind and chunk size are determined at runtime based on the values of the OMP_SCHEDULE environment variable or the omp_set_schedule() function.

  • +
+

By choosing the appropriate scheduling kind and chunk size, you can optimize the load balancing and performance of your parallel loops based on the characteristics of your program and the underlying system.

+

Worksharing-loop constructs, combined with the scheduling clauses, provide a powerful and flexible mechanism for distributing loop iterations among threads and achieving efficient parallelization in OpenMP.

+
+
+
+

2.9.5. Distribute Construct#

+

The distribute construct in OpenMP is used to distribute loop iterations across teams of threads. It is primarily used in conjunction with the teams construct to achieve coarse-grained parallelism, especially when offloading computations to accelerators such as GPUs.

+
+

2.9.5.1. Syntax and Clauses#

+

The syntax for the distribute construct in C/C++ is as follows:

+
#pragma omp distribute [clause[[,] clause] ...]
+for (/* loop initialization */; /* loop condition */; /* loop increment */) {
+  // Loop body
+}
+
+
+

In Fortran, the syntax is:

+
!$omp distribute [clause[[,] clause] ...]
+do /* loop index */ = /* start */, /* end */, /* increment */
+  ! Loop body
+end do
+
+
+

The distribute construct supports the following clauses:

+
    +
  • private(list): Specifies that the listed variables should be private to each thread executing the loop.

  • +
  • firstprivate(list): Initializes the listed private variables with their corresponding values prior to entering the loop.

  • +
  • lastprivate(list): Ensures that the listed variables retain their values from the last iteration of the loop.

  • +
  • collapse(n): Specifies the number of loops in a nested loop structure that should be collapsed into a single loop for parallelization.

  • +
  • dist_schedule(kind[, chunk_size]): Specifies how the loop iterations are divided among the teams of threads. The kind can be static, static_chunked, or static_balanced.

  • +
+
+
+

2.9.5.2. Example#

+

Here’s an example that demonstrates the usage of the distribute construct in C:

+
#include <stdio.h>
+#include <omp.h>
+
+#define N 1000
+
+int main() {
+  int i, sum = 0;
+  int a[N];
+
+  // Initialize the array
+  for (i = 0; i < N; i++) {
+    a[i] = i + 1;
+  }
+
+  #pragma omp target teams distribute parallel for reduction(+:sum)
+  for (i = 0; i < N; i++) {
+    sum += a[i];
+  }
+
+  printf("Sum: %d\n", sum);
+
+  return 0;
+}
+
+
+

In this example, the distribute construct is used in combination with the target and teams constructs to offload the computation to an accelerator device. The loop iterations are distributed across the teams of threads created by the teams construct.

+

The parallel for construct is used in conjunction with distribute to further parallelize the loop iterations within each team. The reduction(+:sum) clause is used to perform a reduction operation on the sum variable.

+

By using the distribute construct, the workload is distributed at a coarse-grained level across the teams of threads, while the parallel for construct enables fine-grained parallelism within each team.

+
+
+

2.9.5.3. Interaction with Other Constructs#

+

The distribute construct is often used in combination with other OpenMP constructs to achieve efficient parallelization and offloading. Some common combinations include:

+
    +
  • target teams distribute: Offloads the computation to a target device and distributes the loop iterations across teams of threads on the device.

  • +
  • target teams distribute parallel for: Offloads the computation to a target device, distributes the loop iterations across teams of threads, and further parallelizes the iterations within each team using a worksharing-loop construct.

  • +
  • target teams distribute simd: Offloads the computation to a target device, distributes the loop iterations across teams of threads, and applies SIMD (Single Instruction, Multiple Data) parallelism within each iteration.

  • +
+

By combining the distribute construct with other OpenMP constructs, you can create powerful and efficient parallel programs that leverage the capabilities of accelerators and achieve high performance.

+

The distribute construct is a key component in the OpenMP programming model for offloading computations to accelerators and distributing work across teams of threads. It enables coarse-grained parallelism and complements other constructs to provide a comprehensive set of tools for parallel programming in heterogeneous systems.

+
+
+
+

2.9.6. Combining Constructs for Efficient Work Distribution#

+

OpenMP provides a rich set of constructs that can be combined to achieve efficient work distribution and maximize parallel performance. By nesting and combining constructs such as single, sections, worksharing-loop constructs, and distribute, you can create sophisticated parallel patterns that adapt to the specific requirements of your application.

+
+

2.9.6.1. Nested Parallelism using Single, Sections, and Worksharing-Loop Constructs#

+

One powerful technique for work distribution is nested parallelism, where parallel regions are nested inside other parallel regions. This allows for fine-grained control over the distribution of work at different levels of granularity.

+

For example, you can use the single construct inside a parallel region to initialize shared variables or perform setup tasks that need to be executed only once. Then, you can use the sections construct to distribute independent tasks among the threads, followed by worksharing-loop constructs to parallelize loops within each section.

+

Here’s an example that demonstrates nested parallelism using single, sections, and worksharing-loop constructs in C:

+
#include <stdio.h>
+#include <omp.h>
+
+#define N 1000
+
+void process_data(int *data, int start, int end) {
+  // Process the data in the given range
+  for (int i = start; i < end; i++) {
+    // Perform some computation on data[i]
+  }
+}
+
+int main() {
+  int data[N];
+
+  #pragma omp parallel
+  {
+    #pragma omp single
+    {
+      // Initialize the data array
+      for (int i = 0; i < N; i++) {
+        data[i] = i;
+      }
+    }
+
+    #pragma omp sections
+    {
+      #pragma omp section
+      {
+        // Process the first half of the data array
+        process_data(data, 0, N/2);
+      }
+      #pragma omp section
+      {
+        // Process the second half of the data array
+        process_data(data, N/2, N);
+      }
+    }
+
+    #pragma omp for
+    for (int i = 0; i < N; i++) {
+      // Perform final processing on each element of the data array
+    }
+  }
+
+  return 0;
+}
+
+
+

In this example, the single construct is used to initialize the data array by a single thread. Then, the sections construct is used to distribute the processing of the first and second halves of the data array among different threads. Finally, a worksharing-loop construct is used to perform final processing on each element of the data array in parallel.

+
+
+

2.9.6.2. Using the Distribute Construct with Worksharing-Loop Constructs#

+

The distribute construct is often used in combination with worksharing-loop constructs to achieve coarse-grained parallelism across teams of threads while enabling fine-grained parallelism within each team.

+

Here’s an example that demonstrates the usage of the distribute construct with worksharing-loop constructs in C:

+
#include <stdio.h>
+#include <omp.h>
+
+#define N 1000
+
+int main() {
+  int i, sum = 0;
+  int a[N];
+
+  // Initialize the array
+  for (i = 0; i < N; i++) {
+    a[i] = i + 1;
+  }
+
+  #pragma omp target teams distribute
+  for (int i = 0; i < N; i += 100) {
+    int local_sum = 0;
+    #pragma omp parallel for reduction(+:local_sum)
+    for (int j = i; j < i + 100; j++) {
+      local_sum += a[j];
+    }
+    #pragma omp atomic
+    sum += local_sum;
+  }
+
+  printf("Sum: %d\n", sum);
+
+  return 0;
+}
+
+
+

In this example, the distribute construct is used to distribute the outer loop iterations across teams of threads. Within each team, a worksharing-loop construct is used to parallelize the inner loop iterations. The reduction clause is used to compute the local sum within each team, and an atomic directive is used to update the global sum to avoid race conditions.

+

By combining the distribute construct with worksharing-loop constructs, you can achieve a hierarchical parallelization pattern that leverages the strengths of both coarse-grained and fine-grained parallelism.

+
+
+

2.9.6.3. Example Demonstrating the Combination of Constructs#

+

Here’s an example that demonstrates the combination of single, sections, worksharing-loop, and distribute constructs for efficient work distribution in C:

+
#include <stdio.h>
+#include <omp.h>
+
+#define N 1000
+#define M 100
+
+void process_data(int *data, int start, int end) {
+  // Process the data in the given range
+  for (int i = start; i < end; i++) {
+    // Perform some computation on data[i]
+  }
+}
+
+int main() {
+  int data[N][M];
+
+  #pragma omp target teams distribute
+  for (int i = 0; i < N; i++) {
+    #pragma omp parallel
+    {
+      #pragma omp single
+      {
+        // Initialize the data array for each team
+        for (int j = 0; j < M; j++) {
+          data[i][j] = i * M + j;
+        }
+      }
+
+      #pragma omp sections
+      {
+        #pragma omp section
+        {
+          // Process the first half of the data array
+          process_data(data[i], 0, M/2);
+        }
+        #pragma omp section
+        {
+          // Process the second half of the data array
+          process_data(data[i], M/2, M);
+        }
+      }
+
+      #pragma omp for
+      for (int j = 0; j < M; j++) {
+        // Perform final processing on each element of the data array
+      }
+    }
+  }
+
+  return 0;
+}
+
+
+

In this example, the distribute construct is used to distribute the outer loop iterations across teams of threads. Within each team, a parallel region is created, and the single construct is used to initialize the data array for each team. Then, the sections construct is used to distribute the processing of the first and second halves of the data array among different threads within each team. Finally, a worksharing-loop construct is used to perform final processing on each element of the data array in parallel.

+

By combining these constructs, you can create a highly optimized parallel program that efficiently distributes work at multiple levels of granularity, taking advantage of the available parallelism in your system.

+

The combination of OpenMP constructs provides a powerful and flexible mechanism for work distribution, allowing you to adapt the parallelization strategy to the specific requirements of your application and the underlying hardware architecture. By carefully selecting and combining the appropriate constructs, you can achieve optimal performance and scalability in your parallel programs.

+
+
+
+

2.9.7. Best Practices and Performance Considerations#

+

When using OpenMP constructs for explicit work distribution, it’s important to follow best practices and consider performance implications to ensure efficient and scalable parallel execution. Here are some key points to keep in mind:

+
+

2.9.7.1. Choosing the Appropriate Construct#

+

Selecting the right construct for work distribution depends on the nature of the problem and the parallelization pattern you want to achieve. Here are some guidelines:

+
    +
  • Use the single construct for tasks that need to be executed only once, such as initializing shared variables or performing I/O operations.

  • +
  • Use the sections construct when you have independent tasks that can be executed concurrently by different threads.

  • +
  • Use worksharing-loop constructs (for or do) when you have loops with no dependencies between iterations and want to distribute the iterations among threads.

  • +
  • Use the distribute construct when you want to distribute loop iterations across teams of threads, especially when offloading computations to accelerators.

  • +
+

Consider the granularity of the tasks and the available parallelism in your application when choosing the appropriate construct.

+
+
+

2.9.7.2. Load Balancing and Avoiding Work Imbalance#

+

Ensuring a balanced distribution of work among threads is crucial for achieving good parallel performance. Load imbalance can occur when some threads have significantly more work to do than others, leading to idle time and reduced efficiency.

+

To mitigate load imbalance, consider the following techniques:

+
    +
  • Use dynamic scheduling clauses (schedule(dynamic) or schedule(guided)) for loops with varying workload per iteration.

  • +
  • Adjust the chunk size in the scheduling clauses to find the right balance between load balancing and minimizing scheduling overhead.

  • +
  • Use the dist_schedule clause with appropriate scheduling kinds (static, static_chunked, or static_balanced) for distributing work across teams of threads.

  • +
  • Implement load balancing strategies, such as work stealing or task queues, to dynamically distribute work among threads.

  • +
+

Experimentwith different load balancing techniques and measure the performance impact to find the optimal approach for your specific application.

+
+
+

2.9.7.3. Minimizing Synchronization Overhead#

+

Synchronization constructs, such as barriers and critical sections, are necessary for ensuring correctness in parallel programs. However, excessive synchronization can introduce overhead and limit scalability.

+

To minimize synchronization overhead, consider the following:

+
    +
  • Use the nowait clause with worksharing constructs when possible to avoid unnecessary barriers.

  • +
  • Minimize the use of critical sections and atomic operations, and keep the critical regions as small as possible.

  • +
  • Use the single construct with the nowait clause to avoid unnecessary synchronization when only one thread needs to execute a task.

  • +
  • Consider using lock-free algorithms and data structures to reduce synchronization overhead.

  • +
+

Analyze the synchronization patterns in your code and identify opportunities to reduce or eliminate unnecessary synchronization.

+
+
+

2.9.7.4. Leveraging Data Locality and Reducing Data Movement#

+

Data locality plays a significant role in the performance of parallel programs. Accessing data that is close to a processor core (e.g., in cache) is much faster than accessing data from main memory.

+

To leverage data locality and reduce data movement, consider the following:

+
    +
  • Use the firstprivate and lastprivate clauses to minimize data sharing and promote data locality.

  • +
  • Employ techniques like array partitioning, cache blocking, and loop tiling to improve data locality and reduce cache misses.

  • +
  • Minimize data transfers between the host and accelerator devices when using offloading constructs like target and distribute.

  • +
  • Use the collapse clause to combine nested loops and improve data locality.

  • +
+

Analyze the data access patterns in your code and optimize for data locality to minimize data movement and improve performance.

+
+
+

2.9.7.5. Profiling and Performance Analysis#

+

To identify performance bottlenecks and optimize your parallel code, it’s essential to profile and analyze the performance characteristics of your application. OpenMP provides runtime functions and environment variables for performance measurement and analysis.

+

Consider the following:

+
    +
  • Use OpenMP runtime functions like omp_get_wtime() to measure the execution time of parallel regions and identify performance hotspots.

  • +
  • Set the OMP_NUM_THREADS environment variable to control the number of threads and experiment with different thread counts to find the optimal configuration.

  • +
  • Use profiling tools that support OpenMP, such as Intel VTune Amplifier, HPE Performance Analyzer, or GNU Gprof, to gather detailed performance data and identify bottlenecks.

  • +
  • Analyze the performance data to identify load imbalance, synchronization overhead, and data locality issues.

  • +
+

Regularly profile and analyze your parallel code to identify performance issues and guide optimization efforts.

+
+
+

2.9.7.6. Continuous Optimization and Tuning#

+

Parallel performance optimization is an iterative process. As you optimize your code and the underlying hardware evolves, it’s important to continuously monitor and tune the performance of your application.

+

Consider the following:

+
    +
  • Regularly measure and compare the performance of your parallel code against a baseline to track improvements and regressions.

  • +
  • Experiment with different OpenMP constructs, clauses, and runtime configurations to find the optimal settings for your application.

  • +
  • Keep up with the latest OpenMP specifications and implementations to leverage new features and optimizations.

  • +
  • Collaborate with the OpenMP community, share experiences, and learn from best practices and performance insights shared by others.

  • +
+

Continuous optimization and tuning ensure that your parallel application remains efficient and scalable as the codebase and hardware evolve.

+
+
+
+

2.9.8. Summary#

+

Explicit work distribution using OpenMP constructs like single, sections, worksharing-loop constructs, and distribute is a powerful technique for achieving efficient parallelization. By understanding the characteristics and use cases of each construct, you can select the appropriate one for your specific parallelization needs.

+

To maximize performance, it’s crucial to follow best practices such as ensuring load balancing, minimizing synchronization overhead, leveraging data locality, and reducing data movement. Profiling and performance analysis are essential for identifying bottlenecks and guiding optimization efforts.

+

Remember that parallel performance optimization is an iterative process, and continuous tuning and adaptation are necessary to maintain optimal performance as your codebase and hardware evolve.

+

By mastering the use of OpenMP constructs for explicit work distribution and adhering to best practices, you can harness the power of parallelism to create efficient, scalable, and high-performance applications.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/Openmp_C/0_Learning_Objectives.html b/Openmp_C/0_Learning_Objectives.html new file mode 100644 index 0000000..000aff3 --- /dev/null +++ b/Openmp_C/0_Learning_Objectives.html @@ -0,0 +1,598 @@ + + + + + + + + + + + 1.1. Learning Objectives — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Learning Objectives

+ +
+
+ +
+
+
+ + + + +
+ +
+

1.1. Learning Objectives#

+

This chapter introduces the foundational concepts of OpenMP and shared-memory parallelism. By the end of this chapter, students will be able to:

+
+

Remember & Understand

+
    +
  • Understand the motivation for parallel computing and explain the limitations of serial execution in modern computing environments.

  • +
  • Describe the shared memory programming model and distinguish between shared and private variables.

  • +
  • Explain OpenMP’s fork-join execution model, including the roles of the master thread and worker threads during parallel regions.

  • +
+
+

Apply

+
    +
  • Identify the basic structure of an OpenMP program and correctly insert directives to create parallel regions.

  • +
  • Use OpenMP runtime functions and environment variables (e.g., omp_set_num_threads, OMP_NUM_THREADS) to control and query thread behavior.

  • +
+
+

Analyze

+
    +
  • Analyze simple OpenMP programs to detect data sharing issues such as race conditions.

  • +
  • Differentiate between OpenMP and other parallel programming models such as MPI and Pthreads in terms of use cases and memory models.

  • +
+
+

Evaluate

+
    +
  • Assess the suitability of OpenMP for various computational tasks, based on program structure and target architecture.

  • +
  • Evaluate the readability, portability, and efficiency of OpenMP programs.

  • +
+
+

Create

+
    +
  • Construct simple OpenMP programs using the parallel directive to demonstrate shared-memory parallelism.

  • +
  • Modify existing serial code to introduce parallelism while preserving correctness.

  • +
+
+ + + + +
+ + + + + + + + +
+ + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/Openmp_C/1_IntroductionOfOpenMP.html b/Openmp_C/1_IntroductionOfOpenMP.html new file mode 100644 index 0000000..7cb5e81 --- /dev/null +++ b/Openmp_C/1_IntroductionOfOpenMP.html @@ -0,0 +1,647 @@ + + + + + + + + + + + 1.2. Introduction of OpenMP — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

1.2. Introduction of OpenMP#

+

In this section, we will first introduce what OpenMP is and some advantages of using OpenMP, and then we will introduce the execution model and memory model of OpenMP.

+
+

1.2.1. What is OpenMP?#

+

OpenMP is a standard parallel programming API for shared memory environments, written in C, C++, or FORTRAN. +It consists of a set of compiler directives with a “lightweight” syntax, library routines, and environment variables that influence run-time behavior. OpenMP is governed by OpenMP Architecture Review Board (or OpenMP ARB), and is defined by several hardware and software vendors.

+

OpenMP behavior is directly dependent on the OpenMP implementation. Capabilities of this implementation can enable the programmer to separate the program into serial and parallel regions rather than just concurrently running threads, hides stack management, and provides synchronization of constructs. That being said OpenMP will not guarantee speedup, parallelize dependencies, or prevent data racing. Data racing, keeping track of dependencies, and working towards a speedup are all up to the programmer.

+
+
+

1.2.2. Why do we use OpenMP?#

+

OpenMP has received considerable attention in the past decade and is considered by many to be an ideal solution for parallel programming because it has unique advantages as a mainstream directive-based programming model.

+

First of all, OpenMP provides a cross-platform, cross-compiler solution. It supports lots of platforms such as Linux, macOS, and Windows. Mainstream compilers including GCC, LLVM/Clang, Intel Fortran, and C/C++ compilers provide OpenMP good support. Also, with the rapid development of OpenMP, many researchers and computer vendors are constantly exploring how to optimize the execution efficiency of OpenMP programs and continue to propose improvements for existing compilers or develop new compilers. What’s more. OpenMP is a standard specification, and all compilers that support it implement the same set of standards, and there are no portability issues.

+

Secondly, using OpenMP can be very convenient and flexible to modify the number of threads. To solve the scalability problem of the number of CPU cores. In the multi-core era, the number of threads needs to change according to the number of CPU cores. OpenMP has irreplaceable advantages in this regard.

+

Thirdly, using OpenMP to create threads is considered to be convenient and relatively easy because it does not require an entry function, the code within the same function can be decomposed into multiple threads for execution, and a for loop can be decomposed into multiple threads for execution. If OpenMP is not used, when the operating system API creates a thread, the code in a function needs to be manually disassembled into multiple thread entry functions.

+

To sum up, OpenMP has irreplaceable advantages in parallel programming. More and more new directives are being added to achieve more functions, and they are playing an important role on many different platforms.

+
+
+

1.2.3. OpenMP Fork-Join Excution Model#

+

The parallel model used by OpenMP is called the fork-join model, as shown in the following figure: +fork-join_model1

+

All OpenMP programs start with a single thread which is the master thread. The master thread executes serially until it encounters the first parallel region. Parallel region is a block of code executed by all threads in a team simultaneously.

+

When the master thread encounters a parallel region, i.e. when it encounters an OpenMP parallel instruction, it creates a thread group consisting of itself and some additional (possibly zero) worker threads. This process called fork. +These threads can execute tasks in parallel and are uniformly dispatched by the master thread. There is an implicit barrier at the end of the parallel region. When the thread has finished executing its task, it will wait at the barrier. When all threads have completed their tasks, the threads can leave the barrier. The master thread is left and continues to execute the serial code after the parallel region. This process called join.

+

Thread management is done by the runtime library, which maintains a pool of worker threads that can be used to work on parallel regions. It will allocate or reclaim the threads based on the OpenMP instructions and sometimes adjust the number of threads to allocate based on the availability of threads.

+
+
+

1.2.4. SPMD Program Models#

+

The program model in the parallel region is Single Program, Multiple Data (SPMD). Processor Elements (PE) execute the same program in parallel, but has its own data. Each PE uses a unique ID to access its portion of data and different PEs can follow different paths through the same code. +Each PE knows its own ID, and while programming, we can use conditional statements to control one or more threads. +The commonly used format to follow is

+
if(my_id ==x) { }
+else{}
+
+
+

SPMD is by far the most commonly used pattern for structuring parallel programs. In addition to openmp, other common parallel programming languages, such as MPI that can be applied to distributed memory systems, and CUDA that can be applied to CPU+GPU heterogeneous systems, all adopt this model.

+
+
+

1.2.5. OpenMP Memory Model#

+

At the beginning of this part, we briefly introduce two common memory models, namely shared memory and distributed memory. Shared memory means that multiple cores share a single memory, while distributed memory means that each computing node (possibly one or more cores) has its own memory. General large computers combine distributed memory and shared memory models, that is, shared memory within each computing node and distributed memory between nodes.

+

OpenMP supports the shared memory model that reduces execution time by creating multithreading to distribute parallelizable loads to multiple physical computing cores. +Before the support for heterogeneous computing in OpenMP 4.0, there was only one address space.

+

The following figure shows the OpenMP memory model.

+

memory_model

+

Let’s introduce some features of this model. First, all threads have access to the same, globally shared memory.

+

Second,OpenMP programs have two different basic types of memory: private and shared. Variables can also be divided into private variables and public variables. The type of the variable can be defined using an explicit private clause, or it can be defined according to default rules. Although the default rules are clear, we still recommend programmers explicitly define the types of variables, because using default rules does not always meet our expectations, and many errors may occur because of the subtlety of default rules.

+

Private variables are stored in private memory that is specially allocated to each thread, and other threads cannot access or modify private variables. Access conflicts will never happen when accessing the private variables. Even if there are other variables with the same name in the program or variables with the same name for multiple threads, these variables will be stored in different locations and will not be confused. The specific mechanism will be explained in detail when introducing the private clause.

+

There are two differences between shared variables and private variables. The first is that shared variables are not allowed to share one name. Each variable is unique. Secondly, shared variables are stored in memory that all threads can access, and any thread can access shared variables at any time. The control of access conflicts is the responsibility of the user.

+

The other two features of this memory model are that data transfer is transparent to the programmer and synchronization takes place, but it is mostly implicit.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/Openmp_C/2_Syntax.html b/Openmp_C/2_Syntax.html new file mode 100644 index 0000000..626ce16 --- /dev/null +++ b/Openmp_C/2_Syntax.html @@ -0,0 +1,736 @@ + + + + + + + + + + + 1.3. Creating a Parallel Program with OpenMP — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

1.3. Creating a Parallel Program with OpenMP#

+

In this section, we will introduce the syntax of OpenMP, how to compile OpenMP programs, and give the readers an overall picture of OpenMP programs through two simple examples.

+
+

1.3.1. How to compile OpenMP programs?#

+

When compiling OpenMP programs, you need to use compiler flags to enable OpenMP, such as –openmp, -xopenmp, -fopenmp, -mp

+

In this book, all our examples are compiled using LLVM/Clang on Ubuntu 20.04. LLVM/Clang has the advantages of fast compilation speed, less memory usage, and modular design. +To execute OpenMP code, you need to add -fopenmp when compiling. The full command to compile is

+
clang -fopenmp filename.c -o filename.o
+
+
+

It is also worth mentioning that when writing OpenMP programs, you need to include the <omp.h> header file.

+
+
+

1.3.2. OpenMP Directives and Syntax#

+

A series of directives and clauses in OpenMP identify code blocks as parallel regions. Programmers only need to insert these directives into the code, so OpenMP is defined as a kind of directive_based language. +In C/C++, the directive is based on the #pragma omp construct. In Fortran, instructions begin with ! $omp. This is a regular language pragma (in C/C++) or a regular comment (in Fortran) for compilers. So special option is need when the compiler is required to generate OpenMP code. Otherwise the compiler won’t recognize it and simply ignore it.

+

The basic format of OpenMP directive in C/C++ is as follows:

+
#pragma omp directive-name [clause[ [,] clause]...]
+
+
+

In fortran, the directives take one of the forms:

+

Fixed forms:

+
*$OMP directive-name [clause[ [,] clause]...]
+C$OMP directive-name [clause[ [,] clause]...]
+
+
+

Free form (but works for fixed form too):

+
!$omp directive-name [clause[ [,] clause]...]
+
+
+

Where ‘[]’ means optional. A directive acts on the statement immediately following it or a block of statements enclosed by ‘{}’. Common diretcives are parallel, for, sections, single, atomic, barrier, simd, target, etc. +Clause is equivalent to the modification of directive, which can be used to specify additional information with the directive. The specific clause(s) that can be used, depends on the directive.

+

In Fortran, OpenMP directives specify a paired end directive, where the directive-name of the paired end directives is:

+

• If directive-name starts with begin, the end-directive-name replaces begin with end

+

• otherwise it is end directive-name unless otherwise specified.

+
+
+

1.3.3. OpenMP Parallel Regions#

+

As we have mentioned in the previous section, parallel region is a block of code executed by all threads in a team simultaneously. A block is a logically connected group of program statements considered as a unit. Next, let’s take a look at how code blocks are defined in C/C++ and fortran. +In C/C++, a block is a single statement or a group of statement between opening and closing curly braces. for example:

+
#pragma omp parallel
+{
+      id = omp_get_thread_num();
+      res[id] = lots_of_work(id);
+}
+
+
+

The two statements between the curly braces are a logical unit where one statement cannot be executed without the other being executed. They form a code block.

+

Another example:

+
#pragma omp parallel for
+for(i=0;i<N;i++) {
+       res[i] = big_calc(i);
+       A[i] = B[i] + res[i];
+  }
+
+
+

Same with the above example, the two statements between the curly braces are a code block.

+

In Fortran, a block is a single statement or a group of statements between directive/end-directive pairs. For example:

+
!$OMP PARALLEL
+10    wrk(id) = garbage(id)
+      res(id) = wrk(id)**2
+      if(.not.conv(res(id))) goto 10
+!$OMP END PARALLEL
+
+
+

Another example:

+
!$OMP PARALLEL DO
+    do i=1,N
+        res(i)=bigComp(i)
+    end do 
+!$OMP END PARALLEL DO
+
+
+

In fortran, OpenMP directives specify a paired end directive. Therefore, in the above two examples, the statements between the OpenMP directive and the corresponding end directive form a code block, which is also a parallel region.

+
+
+

1.3.4. Creating a simple OpenMP Program#

+

This simple OpenMP program execute in parallel using multiple threads, and each thread outputs a ‘Hello World’.

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <omp.h>
+
+int main(int argc, char *argv[]){
+    #pragma omp parallel
+    printf("%s\n", "Hello World");
+    
+    return 0;
+}
+
+
+
+
+
Hello World
+Hello World
+Hello World
+Hello World
+Hello World
+Hello World
+Hello World
+Hello World
+
+
+
+
+

“#pragma omp parallel” indicates that the subsequent statement will be executed by multiple threads in parallel, and the number of threads is preset by the system (generally equal to the number of logical processors, for example, i5 4-core 8-thread CPU has 8 logical processors),

+

If we want to specify the number of threads, we can add optional clauses to this directive, such as “#pragma omp parallel num_threads(4)” still means that the subsequent statement will be executed by multiple threads in parallel, but the number of threads is 4 .

+
+
+
//%compiler: clang
+//%cflags: -fopenmp
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <omp.h>
+
+int main(int argc, char *argv[]){
+    #pragma omp parallel num_threads(4)
+    printf("%s\n", "Hello World");
+    
+    return 0;
+}
+
+
+
+
+
Hello World
+Hello World
+Hello World
+Hello World
+
+
+
+
+

Through these two simple examples, I believe the readers already understood the basic structure of an OpenMP program. Next, we will introduce the factors that affect the performance of the OpenMP program.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/Openmp_C/3_Performance.html b/Openmp_C/3_Performance.html new file mode 100644 index 0000000..090098e --- /dev/null +++ b/Openmp_C/3_Performance.html @@ -0,0 +1,628 @@ + + + + + + + + + + + 1.4. Performance Analysis — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Performance Analysis

+ +
+ +
+
+ + + + +
+ +
+

1.4. Performance Analysis#

+

For parallel programs, performance is the primary concern. +The relative ease of using OpenMP is a mixed blessing. +We can quickly write a correct OpenMP program, but without the desired level of performance. +Even though there are certain “best practices” to avoid common performance problems, extra work is needed to program with a large thread count. +In this section, we briefly introduce some factors that affect performance when programming, and some “best practices” to improve performance.

+
+

1.4.1. Factors Impacting Performance#

+

The OpenMP program includes serial regions and parallel regions, firstly, and the performance of the serial regions will affect the performance of the whole program. There are many optimization methods for serial programs, such as eliminating data dependencies, constant folding, copy propagation, removing dead code, etc. Although the compiler has made some optimization efforts for serial programs, in fact, for current compilers the effect of this optimization is minimal. A simpler and more effective method is to parallelize and vectorize the parts that can be parallelized or vectorized. For the purposes of this book, we won’t go into too much detail about the optimization of the serial parts.

+

The second factor is the proportion of the serial parts and the parallel parts. It is well understood that the more parts that can be parallelized in a program, the greater the room for program performance improvement. +Amdahl’s law(or Amdahl’s argument) gives the theoretical speedup in latency of the execution of a task at a fixed workload that can be expected of a system whose resources are improved. This formula is often applied to parallel processing systems. +For the speedup S describing the effect of parallel processing under a fixed load, Amdahl gave the following formula:

+
+\[ S=1/((1-a)+a/n) \]
+

where a is the proportion of the parallel computing part, and n is the number of parallel processing nodes. In this way, when 1-a=0, (ie, no serial, only parallel), the maximum speedup ratio s=n; when a=0 (ie, only serial, no parallelism), the minimum speedup ratio s=1; when n→∞, the limit acceleration ratio s→1/(1-a), which is also the upper limit of the acceleration ratio. For example, 90% of the code of a program is parallel, but there is still 10% of the serial code, the maximum speedup that can be achieved even by an infinite number of processors in the system is still 9. This formula has been accepted by academia, and it can indicate that the maximum speedup that a program can achieve is limited by the serial portion of the program.

+

Next, let’s analyze what factors can affect performance in the parallel regions. To analyze this problem, we can consider where the overhead of parallelism is, and then reduce the overhead or balance the overhead and benefits to obtain ideal performance. +Common parallel overheads are mainly concentrated in two aspects. The first is the overhead of thread management. Thread management usually includes creating, resuming, managing, suspending, destroying and synchronizing. The management overhead of threads is often large compared to computation, especially synchronization. Multiple threads waiting for synchronization cause a lot of computing resources to be wasted. The idea to solve this problem is to distribute tasks as evenly as possible, making the thread load as evenly as possible.

+

The second aspect is memory access, usually, memory is the main limiting factor in the performance of shared memory programs. Problems such as memory access conflicts will seriously affect the performance of the program. The access location of data is the key to the latency and bandwidth of memory access. The most commonly used method is to optimize data locality. We can improve this problem by explicitly managing the data which will be introduced in detail in the following chapters.

+
+
+

1.4.2. Ideas for Improving the performance#

+

Based on the factors which affect the performance, there are several performance-enhancing efforts that can be considered:

+
    +
  • Thread load balancing

  • +
  • Minimizing synchronization.

  • +
  • Using more efficient directives. For example, using PARALLEL DO/FOR instead of worksharing DO/FOR directives in parallel regions.

  • +
  • Expansion or merging of parallel regions

  • +
  • Improving cache hit rate

  • +
  • Optimization of round-robin scheduling

  • +
  • Variable property optimization

  • +
  • Optimization to reduce false sharing problem

  • +
+

In the following chapters of this book, we will introduce how to create parallel programs using OpenMP based on three different architectures, and explain how to optimize performance based on some of the ideas mentioned above.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 77201c8..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# InteractiveOpenMPProgramming diff --git a/SIMDandVectorArchitecture/0_Learning_Objectives.html b/SIMDandVectorArchitecture/0_Learning_Objectives.html new file mode 100644 index 0000000..08e0f2e --- /dev/null +++ b/SIMDandVectorArchitecture/0_Learning_Objectives.html @@ -0,0 +1,601 @@ + + + + + + + + + + + 3.1. Learning Objectives — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Learning Objectives

+ +
+
+ +
+
+
+ + + + +
+ +
+

3.1. Learning Objectives#

+

This chapter enables students to effectively utilize SIMD constructs in OpenMP to exploit data-level parallelism and optimize program performance. By the end of this chapter, students will be able to:

+
+

Remember & Understand

+
    +
  • Describe the principles of SIMD and how it enables data-level parallelism on modern processors.

  • +
  • Understand the use of OpenMP SIMD constructs (simd, declare simd, etc.) and related clauses (aligned, linear, etc.).

  • +
  • Explain the benefits and challenges of vectorization in high-performance computing.

  • +
+
+

Apply

+
    +
  • Use #pragma omp simd to vectorize loops and improve data throughput.

  • +
  • Apply declare simd for vectorizing user-defined functions in C/C++.

  • +
  • Use aligned, linear, and private clauses to control data access and memory alignment in SIMD loops.

  • +
  • Implement SIMD reductions and scan operations using OpenMP constructs.

  • +
+
+

Analyze

+
    +
  • Analyze the performance impact of SIMD vectorization on different types of loops.

  • +
  • Investigate memory alignment and its effect on SIMD performance.

  • +
  • Differentiate between scalar and vectorized versions of loops to identify optimization opportunities.

  • +
+
+

Evaluate

+
    +
  • Evaluate the effectiveness of SIMD vectorization strategies on performance-critical code.

  • +
  • Critically assess the suitability of specific OpenMP SIMD constructs for various data-parallel computation patterns.

  • +
+
+

Create

+
    +
  • Design vectorized algorithms using OpenMP SIMD directives that demonstrate high efficiency and correctness.

  • +
  • Develop applications that integrate function vectorization, memory alignment, and reductions for maximum SIMD utilization.

  • +
+
+ + + + +
+ + + + + + + + +
+ + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/SIMDandVectorArchitecture/1_IntroductionToSIMDAndVectorization.html b/SIMDandVectorArchitecture/1_IntroductionToSIMDAndVectorization.html new file mode 100644 index 0000000..9d8e9df --- /dev/null +++ b/SIMDandVectorArchitecture/1_IntroductionToSIMDAndVectorization.html @@ -0,0 +1,605 @@ + + + + + + + + + + + 3.2. Introduction to SIMD and Vectorization — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Introduction to SIMD and Vectorization

+ +
+ +
+
+ + + + +
+ +
+

3.2. Introduction to SIMD and Vectorization#

+
+

3.2.1. Introduction to SIMD and Vector Processing#

+

In the realm of parallel computing, SIMD (Single Instruction, Multiple Data) and vector processing play a crucial role in enhancing the performance of applications by exploiting data-level parallelism. SIMD is a parallel processing technique that allows a single instruction to operate on multiple data elements simultaneously, enabling faster execution of certain types of computations.

+

SIMD instructions are designed to perform the same operation on multiple data elements in parallel, leveraging the hardware capabilities of modern processors. Instead of processing data elements one at a time, SIMD instructions can process a vector of data elements in a single operation. This parallel processing approach can significantly speed up computations, especially for data-intensive tasks such as multimedia processing, scientific simulations, and machine learning.

+

The benefits of utilizing SIMD instructions for performance are manifold:

+
    +
  1. Increased Throughput: SIMD instructions enable the processor to perform multiple computations simultaneously, resulting in higher throughput and faster execution times. By processing multiple data elements in parallel, SIMD can greatly improve the overall performance of the application.

  2. +
  3. Efficient Resource Utilization: SIMD instructions make efficient use of the processor’s resources by utilizing the available data paths and execution units. By operating on multiple data elements concurrently, SIMD maximizes the utilization of the processor’s capabilities, leading to improved efficiency and performance.

  4. +
  5. Reduced Memory Bandwidth: SIMD instructions can reduce the memory bandwidth requirements by fetching and storing multiple data elements in a single memory access. This is particularly beneficial when working with large datasets, as it minimizes the overhead of memory transfers and improves cache utilization.

  6. +
  7. Simplified Programming: SIMD programming models, such as OpenMP’s SIMD constructs, provide a high-level abstraction for expressing data-parallel computations. These constructs allow developers to write SIMD-enabled code more easily, without the need to explicitly manage low-level SIMD instructions.

  8. +
+

OpenMP, a widely used parallel programming model, offers SIMD constructs and clauses that enable developers to leverage SIMD capabilities within their parallel programs. By using OpenMP’s SIMD features, developers can express data-level parallelism and take advantage of the hardware’s SIMD instructions to achieve significant performance gains.

+

In the following sections, we will delve into the details of OpenMP’s SIMD constructs, clauses, and best practices for effective SIMD programming. By mastering these concepts and techniques, developers can harness the power of SIMD and vector processing to accelerate their parallel applications and achieve optimal performance on modern processors.

+
+
+ + + + +
+ + + + + + + + +
+ + + +
+ + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/SIMDandVectorArchitecture/2_OpenMPSIMDConstructsAndClauses.html b/SIMDandVectorArchitecture/2_OpenMPSIMDConstructsAndClauses.html new file mode 100644 index 0000000..be1d334 --- /dev/null +++ b/SIMDandVectorArchitecture/2_OpenMPSIMDConstructsAndClauses.html @@ -0,0 +1,647 @@ + + + + + + + + + + + 3.3. OpenMP SIMD Constructs and Clauses — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

OpenMP SIMD Constructs and Clauses

+ +
+ +
+
+ + + + +
+ +
+

3.3. OpenMP SIMD Constructs and Clauses#

+

OpenMP provides a set of SIMD constructs and clauses that enable developers to express data-level parallelism and take advantage of the SIMD capabilities of modern processors. These constructs and clauses allow for fine-grained control over the vectorization of loops and the optimization of SIMD code. In this section, we will introduce the key OpenMP SIMD constructs and clauses.

+
+

3.3.1. The simd Construct#

+

The simd construct is used to indicate that a loop should be vectorized, allowing multiple iterations of the loop to be executed concurrently using SIMD instructions. The purpose of the simd construct is to enable the compiler to generate efficient SIMD code for the loop.

+

The syntax for the simd construct in C/C++ is as follows:

+
#pragma omp simd [clause[[,] clause] ...]
+for (/* loop iteration space */) {
+    // Loop body
+}
+
+
+

In Fortran, the syntax is:

+
!$omp simd [clause[[,] clause] ...]
+do /* loop iteration space */
+    ! Loop body
+end do
+!$omp end simd
+
+
+

By applying the simd construct to a loop, the developer hints to the compiler that the loop is a good candidate for vectorization. The compiler can then optimize the loop to utilize SIMD instructions, resulting in improved performance.

+
+
+

3.3.2. The declare simd Directive#

+

The declare simd directive is used to indicate that a function should be compiled for SIMD execution. It enables the creation of a SIMD version of the function that can be called from within a SIMD loop. The declare simd directive is particularly useful when a function contains operations that can be vectorized.

+

The syntax for the declare simd directive in C/C++ is:

+
#pragma omp declare simd [clause[[,] clause] ...]
+return_type function_name(parameter_list)
+
+
+

In Fortran, the syntax is:

+
!$omp declare simd (function_name) [clause[[,] clause] ...]
+function function_name(parameter_list)
+
+
+

By applying the declare simd directive to a function, the compiler generates a SIMD version of the function that can be invoked from within a SIMD loop. This allows for efficient vectorization of function calls, enabling better utilization of SIMD hardware.

+
+
+

3.3.3. Important SIMD Clauses#

+

OpenMP provides several clauses that can be used in conjunction with the simd construct and the declare simd directive to control the behavior of SIMD code. Some of the important SIMD clauses are:

+
    +
  • aligned: The aligned clause is used to specify that certain data elements are aligned in memory. Aligned data access can improve the efficiency of SIMD operations.

  • +
  • linear: The linear clause is used to indicate that the value of a variable is incremented by a constant amount for each iteration of the SIMD loop.

  • +
  • private: The private clause specifies that each SIMD lane should have its own private copy of a variable.

  • +
  • lastprivate: The lastprivate clause is similar to the private clause but also ensures that the value of the variable from the last iteration is available after the SIMD loop.

  • +
  • reduction: The reduction clause is used to perform a reduction operation across SIMD lanes, such as summing up the values of a variable.

  • +
  • collapse: The collapse clause is used to collapse multiple nested loops into a single iteration space for SIMD execution.

  • +
  • safelen: The safelen clause specifies the maximum number of iterations that can be executed concurrently without violating dependencies.

  • +
  • simdlen: The simdlen clause is used to specify the preferred number of SIMD lanes to be used for the loop.

  • +
+

These clauses provide fine-grained control over the behavior of SIMD code and allow developers to optimize the performance of their SIMD loops.

+

In the next section, we will explore how to utilize SIMD directives for loop vectorization and provide examples of SIMD programming in OpenMP.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/SIMDandVectorArchitecture/3_UtilizingSIMDDirectivesForLoopVectorization.html b/SIMDandVectorArchitecture/3_UtilizingSIMDDirectivesForLoopVectorization.html new file mode 100644 index 0000000..7abb8e7 --- /dev/null +++ b/SIMDandVectorArchitecture/3_UtilizingSIMDDirectivesForLoopVectorization.html @@ -0,0 +1,696 @@ + + + + + + + + + + + 3.4. Utilizing SIMD Directives for Loop Vectorization — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Utilizing SIMD Directives for Loop Vectorization

+ +
+ +
+
+ + + + +
+ +
+

3.4. Utilizing SIMD Directives for Loop Vectorization#

+

One of the primary use cases for OpenMP SIMD directives is loop vectorization. By applying the simd directive to loops, developers can enable the compiler to generate efficient SIMD code, taking advantage of the parallel processing capabilities of SIMD hardware. In this section, we will demonstrate how to utilize the simd directive for loop vectorization and discuss the impact of data dependencies.

+
+

3.4.1. Applying the simd Directive to Loops#

+

To enable loop vectorization using OpenMP, you can apply the simd directive to the loop construct. The simd directive instructs the compiler to generate SIMD code for the loop, allowing multiple iterations to be executed concurrently using SIMD instructions.

+

Here’s an example of applying the simd directive to a loop in C/C++:

+
#include <stdio.h>
+
+#define N 1024
+
+int main() {
+    float a[N], b[N], c[N];
+
+    // Initialize arrays a and b
+    for (int i = 0; i < N; i++) {
+        a[i] = i * 1.0f;
+        b[i] = i * 2.0f;
+    }
+
+    // Vectorize the loop with the simd directive
+    #pragma omp simd
+    for (int i = 0; i < N; i++) {
+        c[i] = a[i] + b[i];
+    }
+
+    // Print the result
+    for (int i = 0; i < N; i++) {
+        printf("c[%d] = %f\n", i, c[i]);
+    }
+
+    return 0;
+}
+
+
+

In this example, the simd directive is applied to the loop that performs element-wise addition of arrays a and b, storing the result in array c. By using the simd directive, the compiler can generate SIMD instructions to compute multiple elements of c simultaneously, improving the performance of the loop.

+

Here’s the equivalent example in Fortran:

+
program simd_example
+    implicit none
+    integer, parameter :: N = 1024
+    real :: a(N), b(N), c(N)
+    integer :: i
+
+    ! Initialize arrays a and b
+    do i = 1, N
+        a(i) = i * 1.0
+        b(i) = i * 2.0
+    end do
+
+    ! Vectorize the loop with the simd directive
+    !$omp simd
+    do i = 1, N
+        c(i) = a(i) + b(i)
+    end do
+    !$omp end simd
+
+    ! Print the result
+    do i = 1, N
+        print *, "c(", i, ") = ", c(i)
+    end do
+
+end program simd_example
+
+
+
+
+

3.4.2. Data Dependencies and SIMD Vectorization#

+

When utilizing SIMD directives for loop vectorization, it’s important to consider data dependencies. Data dependencies occur when the result of one iteration of the loop depends on the result of another iteration. The presence of data dependencies can limit the effectiveness of SIMD vectorization or even lead to incorrect results if not handled properly.

+

OpenMP provides clauses such as private, lastprivate, and reduction to help manage data dependencies in SIMD loops. These clauses allow you to specify the visibility and behavior of variables within the SIMD loop.

+

Here’s an example that demonstrates the usage of the reduction clause to handle a data dependency:

+
#include <stdio.h>
+
+#define N 1024
+
+int main() {
+    float a[N];
+    float sum = 0.0f;
+
+    // Initialize array a
+    for (int i = 0; i < N; i++) {
+        a[i] = i * 1.0f;
+    }
+
+    // Vectorize the loop with the simd directive and reduction clause
+    #pragma omp simd reduction(+:sum)
+    for (int i = 0; i < N; i++) {
+        sum += a[i];
+    }
+
+    printf("Sum: %f\n", sum);
+
+    return 0;
+}
+
+
+

In this example, the reduction clause is used to handle the data dependency caused by the accumulation of the sum. The reduction clause specifies that the sum variable should be treated as a reduction variable, allowing each SIMD lane to maintain its own partial sum. At the end of the SIMD loop, the partial sums are combined to obtain the final result.

+

By properly handling data dependencies using OpenMP clauses, developers can ensure the correctness and efficiency of their SIMD code.

+
+
+

3.4.3. Conclusion#

+

Utilizing SIMD directives, such as the simd directive, is a powerful way to enable loop vectorization and take advantage of the SIMD capabilities of modern processors. By applying the simd directive to loops and using appropriate clauses to handle data dependencies, developers can achieve significant performance improvements in their parallel applications.

+

In the next section, we will explore function vectorization using the declare simd directive and provide examples of how to create SIMD-enabled functions.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/SIMDandVectorArchitecture/4_FunctionVectorizationWithdeclaresimd.html b/SIMDandVectorArchitecture/4_FunctionVectorizationWithdeclaresimd.html new file mode 100644 index 0000000..f156b6f --- /dev/null +++ b/SIMDandVectorArchitecture/4_FunctionVectorizationWithdeclaresimd.html @@ -0,0 +1,685 @@ + + + + + + + + + + + 3.5. Function Vectorization with declare simd — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

3.5. Function Vectorization with declare simd#

+

In addition to loop vectorization, OpenMP provides support for function vectorization using the declare simd directive. Function vectorization allows you to create SIMD-enabled versions of functions that can be called from within SIMD loops. By vectorizing functions, you can take advantage of the SIMD capabilities of the processor and achieve higher performance.

+
+

3.5.1. Purpose and Benefits of Function Vectorization#

+

Function vectorization is particularly useful when you have a function that performs computations on individual elements of an array or on scalar values. By creating a SIMD version of the function, you can process multiple elements simultaneously, taking advantage of the SIMD instructions available on the target processor.

+

The benefits of function vectorization include:

+
    +
  1. Improved Performance: Function vectorization allows you to exploit the SIMD capabilities of the processor, enabling faster execution of the function on multiple data elements concurrently.

  2. +
  3. Code Reusability: With function vectorization, you can create a SIMD version of a function once and reuse it in multiple SIMD loops or contexts, promoting code reusability and maintainability.

  4. +
  5. Abstraction: Function vectorization provides an abstraction layer, allowing you to focus on the algorithmic aspects of the function while the compiler takes care of generating efficient SIMD code.

  6. +
+
+
+

3.5.2. Using the declare simd Directive#

+

To enable function vectorization in OpenMP, you can use the declare simd directive. The declare simd directive is placed before the function declaration or definition to indicate that the function should be compiled for SIMD execution.

+

Here’s an example of using the declare simd directive in C/C++:

+
#pragma omp declare simd
+float compute(float a, float b) {
+    return a * b + a;
+}
+
+void vectorized_computation(float *a, float *b, float *c, int n) {
+    #pragma omp simd
+    for (int i = 0; i < n; i++) {
+        c[i] = compute(a[i], b[i]);
+    }
+}
+
+
+

In this example, the compute function is declared with the declare simd directive, indicating that it should be compiled for SIMD execution. The vectorized_computation function contains a SIMD loop that calls the compute function for each iteration. The compiler generates a SIMD version of the compute function, allowing multiple elements to be processed concurrently.

+

Here’s the equivalent example in Fortran:

+
interface
+    function compute(a, b) result(res)
+        !$omp declare simd(compute)
+        real, intent(in) :: a, b
+        real :: res
+    end function compute
+end interface
+
+subroutine vectorized_computation(a, b, c, n)
+    real, dimension(:), intent(in) :: a, b
+    real, dimension(:), intent(out) :: c
+    integer, intent(in) :: n
+    integer :: i
+
+    !$omp simd
+    do i = 1, n
+        c(i) = compute(a(i), b(i))
+    end do
+    !$omp end simd
+end subroutine vectorized_computation
+
+
+
+
+

3.5.3. Example: SIMD-enabled Math Functions#

+

Function vectorization is particularly useful for implementing SIMD-enabled versions of common math functions. By creating SIMD versions of math functions, you can achieve significant performance improvements in numerical computations.

+

Here’s an example that demonstrates the creation and usage of SIMD-enabled math functions in C/C++:

+
#include <math.h>
+
+#pragma omp declare simd
+float simd_sqrt(float x) {
+    return sqrt(x);
+}
+
+#pragma omp declare simd
+float simd_exp(float x) {
+    return exp(x);
+}
+
+void compute_values(float *a, float *b, int n) {
+    #pragma omp simd
+    for (int i = 0; i < n; i++) {
+        a[i] = simd_sqrt(a[i]);
+        b[i] = simd_exp(b[i]);
+    }
+}
+
+
+

In this example, the simd_sqrt and simd_exp functions are declared with the declare simd directive, indicating that they should be compiled for SIMD execution. These functions are SIMD-enabled versions of the standard sqrt and exp functions from the math.h library.

+

The compute_values function contains a SIMD loop that calls the simd_sqrt and simd_exp functions for each iteration. The compiler generates SIMD versions of these functions, allowing multiple elements to be processed concurrently.

+

By leveraging function vectorization, you can create SIMD-enabled versions of frequently used functions and achieve better performance in SIMD loops that utilize these functions.

+
+
+

3.5.4. Conclusion#

+

Function vectorization using the declare simd directive is a powerful tool for creating SIMD-enabled versions of functions in OpenMP. By vectorizing functions, you can take advantage of the SIMD capabilities of the processor and achieve significant performance improvements in computationally intensive tasks.

+

When combined with loop vectorization using the simd directive, function vectorization allows you to write efficient and high-performing SIMD code in OpenMP.

+

In the next section, we will discuss data alignment and the aligned and linear clauses, which are important for optimal SIMD performance.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/SIMDandVectorArchitecture/5_DataAlignmentandLinearClauses.html b/SIMDandVectorArchitecture/5_DataAlignmentandLinearClauses.html new file mode 100644 index 0000000..eeb0aff --- /dev/null +++ b/SIMDandVectorArchitecture/5_DataAlignmentandLinearClauses.html @@ -0,0 +1,665 @@ + + + + + + + + + + + 3.6. Data Alignment and Linear Clauses — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

3.6. Data Alignment and Linear Clauses#

+

Data alignment and memory access patterns play a crucial role in achieving optimal performance with SIMD instructions. Properly aligned data allows SIMD operations to access memory efficiently, reducing memory access latency and enabling faster execution. OpenMP provides clauses like aligned and linear to help manage data alignment and access patterns in SIMD loops.

+
+

3.6.1. Importance of Data Alignment#

+

Data alignment refers to the memory address at which data elements are stored. SIMD instructions typically require data to be aligned to specific memory boundaries (e.g., 16-byte or 32-byte boundaries) for optimal performance. Misaligned data can lead to performance penalties or even incorrect results.

+

When data is properly aligned, SIMD instructions can load and store multiple elements efficiently in a single operation. This reduces the number of memory accesses and improves the overall performance of SIMD code. Aligned data access enables the processor to utilize its SIMD capabilities fully, resulting in faster execution and better resource utilization.

+

On the other hand, misaligned data access can introduce additional overhead. When SIMD instructions encounter misaligned data, they may need to perform extra memory accesses or use specialized instructions to handle the misalignment. This can lead to performance degradation and suboptimal utilization of SIMD resources.

+
+
+

3.6.2. The aligned Clause#

+

OpenMP provides the aligned clause to specify that certain data elements are aligned in memory. By using the aligned clause, you can inform the compiler about the alignment of data, enabling it to generate more efficient SIMD code.

+

The aligned clause takes one or more variables as arguments and optionally accepts an alignment size. The alignment size specifies the byte boundary to which the variables are aligned. If the alignment size is not provided, the compiler assumes a default alignment based on the size of the data type.

+

Here’s an example of using the aligned clause in C/C++:

+
void compute(float *a, float *b, float *c, int n) {
+    #pragma omp simd aligned(a,b,c:32)
+    for (int i = 0; i < n; i++) {
+        c[i] = a[i] + b[i];
+    }
+}
+
+
+

In this example, the aligned clause is used to specify that the pointers a, b, and c are aligned to 32-byte boundaries. This information helps the compiler generate efficient SIMD load and store instructions, ensuring optimal memory access patterns.

+

It’s important to note that the aligned clause is a hint to the compiler and does not enforce data alignment. It is the programmer’s responsibility to ensure that the specified variables are indeed aligned to the indicated byte boundary. Incorrectly specifying alignment can lead to undefined behavior.

+
+
+

3.6.3. The linear Clause#

+

The linear clause is used to indicate that the value of a variable is incremented by a constant amount for each iteration of the SIMD loop. This information helps the compiler optimize memory access patterns and generate efficient SIMD code.

+

The linear clause takes one or more variables as arguments and specifies the step size by which the variables are incremented. The step size is a compile-time constant expression.

+

Here’s an example of using the linear clause in C/C++:

+
void compute(float *a, float *b, int n, float start, float step) {
+    float x = start;
+    #pragma omp simd linear(x:step)
+    for (int i = 0; i < n; i++) {
+        a[i] = b[i] * x;
+        x += step;
+    }
+}
+
+
+

In this example, the linear clause is used to specify that the variable x is incremented by step in each iteration of the SIMD loop. The compiler can use this information to generate efficient SIMD code that avoids unnecessary memory accesses and optimizes the increment operation.

+

The linear clause is particularly useful in scenarios where the value of a variable follows a predictable linear pattern across SIMD iterations. By providing this information to the compiler, it can generate more optimized SIMD code and improve performance.

+
+
+

3.6.4. Combining aligned and linear Clauses#

+

The aligned and linear clauses can be used together to achieve optimal SIMD performance. By aligning data and specifying linear access patterns, you can enable the compiler to generate highly efficient SIMD code.

+

Here’s an example that demonstrates the combination of aligned and linear clauses:

+
void compute(float *a, float *b, float *c, int n, float start, float step) {
+    float x = start;
+    #pragma omp simd aligned(a,b,c:32) linear(x:step)
+    for (int i = 0; i < n; i++) {
+        c[i] = a[i] + b[i] * x;
+        x += step;
+    }
+}
+
+
+

In this example, the aligned clause is used to specify the alignment of the arrays a, b, and c, while the linear clause is used to indicate the linear increment of the variable x. By providing both alignment and linear access information, the compiler can generate highly optimized SIMD code that leverages the full potential of SIMD instructions.

+
+
+

3.6.5. Conclusion#

+

Data alignment and linear memory access patterns are critical considerations for achieving optimal performance with SIMD instructions. OpenMP provides the aligned and linear clauses to help manage data alignment and access patterns in SIMD loops.

+

The aligned clause allows you to inform the compiler about the alignment of data, enabling it to generate more efficient SIMD code. By ensuring that data is properly aligned, you can maximize the performance benefits of SIMD instructions and avoid the overhead of misaligned memory accesses.

+

The linear clause, on the other hand, enables you to specify variables that are incremented by a constant amount in each iteration of the SIMD loop. By providing this information to the compiler, it can optimize memory access patterns and generate efficient SIMD code.

+

Combining the aligned and linear clauses can lead to highly optimized SIMD code that takes full advantage of the SIMD capabilities of the processor. By aligning data and specifying linear access patterns, you can achieve significant performance improvements in SIMD loops.

+

It’s important to note that while the aligned and linear clauses provide hints to the compiler, it is still the programmer’s responsibility to ensure that the data is indeed aligned and follows the specified linear access pattern. Incorrect usage of these clauses can lead to undefined behavior or suboptimal performance.

+

In the next section, we will discuss SIMD reductions and scans, which are powerful operations for performing data aggregation and prefix sum computations in SIMD loops.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/SIMDandVectorArchitecture/6_SIMDReductionsAndScans.html b/SIMDandVectorArchitecture/6_SIMDReductionsAndScans.html new file mode 100644 index 0000000..eecb198 --- /dev/null +++ b/SIMDandVectorArchitecture/6_SIMDReductionsAndScans.html @@ -0,0 +1,677 @@ + + + + + + + + + + + 3.7. SIMD Reductions and Scans — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

3.7. SIMD Reductions and Scans#

+

SIMD reductions and scans are powerful operations that allow you to perform data aggregation and prefix sum computations efficiently in SIMD loops. OpenMP provides the reduction clause for SIMD reductions and the scan directive for prefix sum computations.

+
+

3.7.1. SIMD Reductions#

+

SIMD reductions are operations that combine the elements of an array or a set of variables into a single value using a specified operator, such as addition, multiplication, or finding the maximum or minimum value. SIMD reductions leverage the SIMD capabilities of the processor to perform the reduction operation efficiently, providing significant performance benefits compared to scalar reductions.

+

OpenMP provides the reduction clause to specify a reduction operation in SIMD loops. The reduction clause takes the reduction operator and the list of variables to be reduced as arguments.

+

Here’s an example of using the reduction clause with a SIMD construct in C/C++:

+
#include <iostream>
+#include <vector>
+
+int main() {
+    const int N = 1000;
+    std::vector<int> arr(N);
+
+    // Initialize the array
+    for (int i = 0; i < N; i++) {
+        arr[i] = i + 1;
+    }
+
+    int sum = 0;
+
+    // Perform SIMD reduction
+    #pragma omp simd reduction(+:sum)
+    for (int i = 0; i < N; i++) {
+        sum += arr[i];
+    }
+
+    std::cout << "Sum: " << sum << std::endl;
+
+    return 0;
+}
+
+
+

In this example, the reduction clause is used with the addition operator (+) to perform a SIMD reduction on the sum variable. The SIMD loop efficiently computes the sum of all elements in the arr array.

+
+
+

3.7.2. The scan Directive#

+

The scan directive in OpenMP is used to perform prefix sum computations in SIMD loops. A prefix sum computes the cumulative sum of elements in an array, where each element is the sum of itself and all preceding elements.

+

The scan directive is placed within a SIMD loop and specifies the variables to be scanned and the scan operator. OpenMP provides two types of scans: inclusive and exclusive. An inclusive scan includes the current element in the prefix sum, while an exclusive scan excludes the current element.

+

Here’s an example of using the scan directive in C/C++:

+
#include <iostream>
+#include <vector>
+
+int main() {
+    const int N = 8;
+    std::vector<int> arr = {1, 2, 3, 4, 5, 6, 7, 8};
+    std::vector<int> prefix_sum(N);
+
+    // Perform inclusive scan
+    #pragma omp simd
+    for (int i = 0; i < N; i++) {
+        prefix_sum[i] = arr[i];
+        #pragma omp scan inclusive(prefix_sum)
+    }
+
+    // Print the prefix sum
+    for (int i = 0; i < N; i++) {
+        std::cout << prefix_sum[i] << " ";
+    }
+    std::cout << std::endl;
+
+    return 0;
+}
+
+
+

In this example, the scan directive is used with the inclusive clause to perform an inclusive prefix sum on the prefix_sum array. The SIMD loop efficiently computes the prefix sum, where each element of prefix_sum is the cumulative sum of elements up to the current index.

+
+
+

3.7.3. Performance Benefits of SIMD Reductions and Scans#

+

SIMD reductions and scans offer significant performance benefits compared to their scalar counterparts. By leveraging the SIMD capabilities of the processor, these operations can perform multiple computations simultaneously, reducing the overall execution time.

+

SIMD reductions exploit data-level parallelism by combining multiple elements using a specified operator in a single SIMD instruction. This allows for efficient utilization of SIMD registers and can greatly accelerate the reduction operation, especially for large arrays or datasets.

+

Similarly, SIMD scans take advantage of the SIMD instructions to compute prefix sums efficiently. By performing multiple prefix sum computations in parallel, SIMD scans can significantly reduce the number of iterations required compared to a scalar implementation.

+

The performance benefits of SIMD reductions and scans become more pronounced as the size of the data increases. By efficiently utilizing the SIMD capabilities of the processor, these operations can achieve substantial speedups and improve the overall performance of SIMD-optimized code.

+
+
+

3.7.4. Conclusion#

+

SIMD reductions and scans are powerful operations that allow you to perform data aggregation and prefix sum computations efficiently in SIMD loops. OpenMP provides the reduction clause for SIMD reductions, enabling you to combine elements using a specified operator, such as addition or multiplication.

+

The scan directive, on the other hand, is used to perform prefix sum computations in SIMD loops. OpenMP supports both inclusive and exclusive scans, allowing you to compute cumulative sums efficiently.

+

By leveraging SIMD reductions and scans, you can take advantage of the SIMD capabilities of the processor and achieve significant performance improvements in data aggregation and prefix sum computations. These operations are particularly beneficial for large datasets and can greatly accelerate SIMD-optimized code.

+

In the next section, we will discuss best practices and performance considerations for writing efficient SIMD code using OpenMP.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/SIMDandVectorArchitecture/7_BestPracticesAndPerformanceConsiderations.html b/SIMDandVectorArchitecture/7_BestPracticesAndPerformanceConsiderations.html new file mode 100644 index 0000000..0d94cf0 --- /dev/null +++ b/SIMDandVectorArchitecture/7_BestPracticesAndPerformanceConsiderations.html @@ -0,0 +1,677 @@ + + + + + + + + + + + 3.8. Best Practices and Performance Considerations — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ +
+

3.8. Best Practices and Performance Considerations#

+

In this section, we will present real-world examples and case studies that showcase the application of SIMD programming with OpenMP and demonstrate the performance benefits achieved through SIMD optimization in various domains.

+
+

3.8.1. 3.8.1. Example 1: Image Processing#

+

Image processing is a domain that can greatly benefit from SIMD optimization. Operations such as image filtering, convolution, and color space conversion can be accelerated using SIMD instructions.

+

Consider an example of applying a Gaussian blur filter to an image using OpenMP SIMD directives:

+
#pragma omp simd
+for (int i = 1; i < height - 1; i++) {
+    for (int j = 1; j < width - 1; j++) {
+        float sum = 0.0f;
+        for (int k = -1; k <= 1; k++) {
+            for (int l = -1; l <= 1; l++) {
+                sum += input[(i + k) * width + (j + l)] * kernel[k + 1][l + 1];
+            }
+        }
+        output[i * width + j] = sum;
+    }
+}
+
+
+

By applying the #pragma omp simd directive to the outer loop, the compiler can generate SIMD instructions to process multiple pixels simultaneously. This can lead to significant performance improvements compared to a scalar implementation.

+

Case Study: A research paper titled “Accelerating Image Processing Algorithms using OpenMP SIMD Directives” demonstrated that by applying SIMD optimization techniques to various image processing algorithms, such as image filtering and edge detection, they achieved speedups ranging from 2x to 8x compared to the scalar versions.

+
+
+

3.8.2. 3.8.2. Example 2: Scientific Simulations#

+

Scientific simulations often involve complex mathematical calculations and large datasets, making them prime candidates for SIMD optimization.

+

Consider an example of a particle simulation using OpenMP SIMD directives:

+
#pragma omp simd
+for (int i = 0; i < numParticles; i++) {
+    float fx = 0.0f, fy = 0.0f, fz = 0.0f;
+    for (int j = 0; j < numParticles; j++) {
+        if (i != j) {
+            float dx = particles[j].x - particles[i].x;
+            float dy = particles[j].y - particles[i].y;
+            float dz = particles[j].z - particles[i].z;
+            float distSqr = dx * dx + dy * dy + dz * dz + epsilon;
+            float invDist = 1.0f / sqrtf(distSqr);
+            float invDistCube = invDist * invDist * invDist;
+            fx += dx * invDistCube;
+            fy += dy * invDistCube;
+            fz += dz * invDistCube;
+        }
+    }
+    particles[i].vx += dt * fx;
+    particles[i].vy += dt * fy;
+    particles[i].vz += dt * fz;
+}
+
+
+

By using SIMD directives, the computation of particle interactions can be vectorized, allowing multiple particles to be processed simultaneously. This can significantly reduce the overall simulation time.

+

Case Study: A research paper titled “Accelerating N-body Simulations with OpenMP SIMD Directives” demonstrated that by applying SIMD optimization techniques to a gravitational N-body simulation, they achieved a speedup of up to 4.5x compared to the scalar version. The SIMD optimizations allowed for efficient computation of particle interactions and improved the overall performance of the simulation.

+
+
+

3.8.3. 3.8.3. Example 3: Machine Learning#

+

Machine learning algorithms often involve extensive mathematical computations and can benefit from SIMD optimization.

+

Consider an example of a neural network training loop using OpenMP SIMD directives:

+
#pragma omp simd
+for (int i = 0; i < numSamples; i++) {
+    float output = 0.0f;
+    for (int j = 0; j < numFeatures; j++) {
+        output += weights[j] * features[i][j];
+    }
+    output = sigmoid(output);
+    float error = targets[i] - output;
+    #pragma omp simd
+    for (int j = 0; j < numFeatures; j++) {
+        weights[j] += learningRate * error * features[i][j];
+    }
+}
+
+
+

By applying SIMD directives to the inner loops, the computation of the output and weight updates can be vectorized, allowing multiple samples and features to be processed simultaneously. This can accelerate the training process and improve the overall performance of the machine learning algorithm.

+

Case Study: A research paper titled “Accelerating Deep Learning Frameworks with OpenMP SIMD Directives” demonstrated that by applying SIMD optimization techniques to various deep learning operations, such as matrix multiplication and convolution, they achieved speedups ranging from 1.5x to 3x compared to the non-optimized versions. The SIMD optimizations allowed for efficient utilization of SIMD instructions and improved the training and inference performance of deep learning models.

+
+
+

3.8.4. 3.8.4. Conclusion#

+

The real-world examples and case studies presented in this section demonstrate the practical application of SIMD programming with OpenMP in various domains. By leveraging SIMD directives and optimization techniques, significant performance benefits can be achieved in image processing, scientific simulations, machine learning, and other computationally intensive tasks.

+

The case studies highlight the performance improvements obtained through SIMD optimization, with speedups ranging from 1.5x to 8x compared to scalar implementations. These examples illustrate the potential of SIMD programming to accelerate complex computations and enhance the overall performance of parallel applications.

+

When applying SIMD optimization to real-world problems, it’s important to carefully analyze the specific requirements, data dependencies, and performance bottlenecks of the application. Profiling and benchmarking are essential to identify the most critical regions of code and measure the impact of SIMD optimizations.

+

By leveraging the power of SIMD instructions and OpenMP directives, developers can unlock the full potential of modern hardware and achieve significant performance gains in a wide range of domains.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/SIMDandVectorArchitecture/8_RealWorldExamplesAndCaseStudies.html b/SIMDandVectorArchitecture/8_RealWorldExamplesAndCaseStudies.html new file mode 100644 index 0000000..650d83b --- /dev/null +++ b/SIMDandVectorArchitecture/8_RealWorldExamplesAndCaseStudies.html @@ -0,0 +1,677 @@ + + + + + + + + + + + 3.9. Real-World Examples and Case Studies — Interactive OpenMP Programming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+ +
+ +
+ + + + + +
+
+ + + +
+ + + + + + + + + + + + + +
+ +
+ + + +
+ +
+
+ +
+
+ +
+ +
+ +
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+

Real-World Examples and Case Studies

+ +
+ +
+
+ + + + +
+ +
+

3.9. Real-World Examples and Case Studies#

+

In this section, we will present real-world examples and case studies that showcase the application of SIMD programming with OpenMP and demonstrate the performance benefits achieved through SIMD optimization in various domains.

+
+

3.9.1. Example 1: Image Processing#

+

Image processing is a domain that can greatly benefit from SIMD optimization. Operations such as image filtering, convolution, and color space conversion can be accelerated using SIMD instructions.

+

Consider an example of applying a Gaussian blur filter to an image using OpenMP SIMD directives:

+
#pragma omp simd
+for (int i = 1; i < height - 1; i++) {
+    for (int j = 1; j < width - 1; j++) {
+        float sum = 0.0f;
+        for (int k = -1; k <= 1; k++) {
+            for (int l = -1; l <= 1; l++) {
+                sum += input[(i + k) * width + (j + l)] * kernel[k + 1][l + 1];
+            }
+        }
+        output[i * width + j] = sum;
+    }
+}
+
+
+

By applying the #pragma omp simd directive to the outer loop, the compiler can generate SIMD instructions to process multiple pixels simultaneously. This can lead to significant performance improvements compared to a scalar implementation.

+

Case Study: A research paper titled “Accelerating Image Processing Algorithms using OpenMP SIMD Directives” demonstrated that by applying SIMD optimization techniques to various image processing algorithms, such as image filtering and edge detection, they achieved speedups ranging from 2x to 8x compared to the scalar versions.

+
+
+

3.9.2. Example 2: Scientific Simulations#

+

Scientific simulations often involve complex mathematical calculations and large datasets, making them prime candidates for SIMD optimization.

+

Consider an example of a particle simulation using OpenMP SIMD directives:

+
#pragma omp simd
+for (int i = 0; i < numParticles; i++) {
+    float fx = 0.0f, fy = 0.0f, fz = 0.0f;
+    for (int j = 0; j < numParticles; j++) {
+        if (i != j) {
+            float dx = particles[j].x - particles[i].x;
+            float dy = particles[j].y - particles[i].y;
+            float dz = particles[j].z - particles[i].z;
+            float distSqr = dx * dx + dy * dy + dz * dz + epsilon;
+            float invDist = 1.0f / sqrtf(distSqr);
+            float invDistCube = invDist * invDist * invDist;
+            fx += dx * invDistCube;
+            fy += dy * invDistCube;
+            fz += dz * invDistCube;
+        }
+    }
+    particles[i].vx += dt * fx;
+    particles[i].vy += dt * fy;
+    particles[i].vz += dt * fz;
+}
+
+
+

By using SIMD directives, the computation of particle interactions can be vectorized, allowing multiple particles to be processed simultaneously. This can significantly reduce the overall simulation time.

+

Case Study: A research paper titled “Accelerating N-body Simulations with OpenMP SIMD Directives” demonstrated that by applying SIMD optimization techniques to a gravitational N-body simulation, they achieved a speedup of up to 4.5x compared to the scalar version. The SIMD optimizations allowed for efficient computation of particle interactions and improved the overall performance of the simulation.

+
+
+

3.9.3. Example 3: Machine Learning#

+

Machine learning algorithms often involve extensive mathematical computations and can benefit from SIMD optimization.

+

Consider an example of a neural network training loop using OpenMP SIMD directives:

+
#pragma omp simd
+for (int i = 0; i < numSamples; i++) {
+    float output = 0.0f;
+    for (int j = 0; j < numFeatures; j++) {
+        output += weights[j] * features[i][j];
+    }
+    output = sigmoid(output);
+    float error = targets[i] - output;
+    #pragma omp simd
+    for (int j = 0; j < numFeatures; j++) {
+        weights[j] += learningRate * error * features[i][j];
+    }
+}
+
+
+

By applying SIMD directives to the inner loops, the computation of the output and weight updates can be vectorized, allowing multiple samples and features to be processed simultaneously. This can accelerate the training process and improve the overall performance of the machine learning algorithm.

+

Case Study: A research paper titled “Accelerating Deep Learning Frameworks with OpenMP SIMD Directives” demonstrated that by applying SIMD optimization techniques to various deep learning operations, such as matrix multiplication and convolution, they achieved speedups ranging from 1.5x to 3x compared to the non-optimized versions. The SIMD optimizations allowed for efficient utilization of SIMD instructions and improved the training and inference performance of deep learning models.

+
+
+

3.9.4. Conclusion#

+

The real-world examples and case studies presented in this section demonstrate the practical application of SIMD programming with OpenMP in various domains. By leveraging SIMD directives and optimization techniques, significant performance benefits can be achieved in image processing, scientific simulations, machine learning, and other computationally intensive tasks.

+

The case studies highlight the performance improvements obtained through SIMD optimization, with speedups ranging from 1.5x to 8x compared to scalar implementations. These examples illustrate the potential of SIMD programming to accelerate complex computations and enhance the overall performance of parallel applications.

+

When applying SIMD optimization to real-world problems, it’s important to carefully analyze the specific requirements, data dependencies, and performance bottlenecks of the application. Profiling and benchmarking are essential to identify the most critical regions of code and measure the impact of SIMD optimizations.

+

By leveraging the power of SIMD instructions and OpenMP directives, developers can unlock the full potential of modern hardware and achieve significant performance gains in a wide range of domains.

+
+
+ + + + +
+ + + + + + + + +
+ + + + + + +
+ + + +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/src/Openmp_C/1.png b/_images/1.png similarity index 100% rename from src/Openmp_C/1.png rename to _images/1.png diff --git a/src/MultiCoreMultiCPU/2.png b/_images/2.png similarity index 100% rename from src/MultiCoreMultiCPU/2.png rename to _images/2.png diff --git a/src/MultiCoreMultiCPU/CPU_architecture.png b/_images/CPU_architecture.png similarity index 100% rename from src/MultiCoreMultiCPU/CPU_architecture.png rename to _images/CPU_architecture.png diff --git a/src/cover_figure.png b/_images/cover_figure.png similarity index 100% rename from src/cover_figure.png rename to _images/cover_figure.png diff --git a/src/Openmp_C/fork_joint.png b/_images/fork_joint.png similarity index 100% rename from src/Openmp_C/fork_joint.png rename to _images/fork_joint.png diff --git a/src/MultiCoreMultiCPU/teams.jpeg b/_images/teams.jpeg similarity index 100% rename from src/MultiCoreMultiCPU/teams.jpeg rename to _images/teams.jpeg diff --git a/src/Ch1_OpenmpIntro.md b/_sources/Ch1_OpenmpIntro.md similarity index 100% rename from src/Ch1_OpenmpIntro.md rename to _sources/Ch1_OpenmpIntro.md diff --git a/src/Ch2_MulticoreMultiCPU.md b/_sources/Ch2_MulticoreMultiCPU.md similarity index 100% rename from src/Ch2_MulticoreMultiCPU.md rename to _sources/Ch2_MulticoreMultiCPU.md diff --git a/src/Ch3_SIMDVector.md b/_sources/Ch3_SIMDVector.md similarity index 100% rename from src/Ch3_SIMDVector.md rename to _sources/Ch3_SIMDVector.md diff --git a/src/Ch4_GPUAccel.md b/_sources/Ch4_GPUAccel.md similarity index 100% rename from src/Ch4_GPUAccel.md rename to _sources/Ch4_GPUAccel.md diff --git a/src/GPUAccelerators/0_Learning_Objectives.ipynb b/_sources/GPUAccelerators/0_Learning_Objectives.ipynb similarity index 100% rename from src/GPUAccelerators/0_Learning_Objectives.ipynb rename to _sources/GPUAccelerators/0_Learning_Objectives.ipynb diff --git a/src/GPUAccelerators/1_Introduction.ipynb b/_sources/GPUAccelerators/1_Introduction.ipynb similarity index 100% rename from src/GPUAccelerators/1_Introduction.ipynb rename to _sources/GPUAccelerators/1_Introduction.ipynb diff --git a/src/GPUAccelerators/2_OpenMPDeviceConstructs.ipynb b/_sources/GPUAccelerators/2_OpenMPDeviceConstructs.ipynb similarity index 100% rename from src/GPUAccelerators/2_OpenMPDeviceConstructs.ipynb rename to _sources/GPUAccelerators/2_OpenMPDeviceConstructs.ipynb diff --git a/src/GPUAccelerators/3_MappingDataToGPUDevices.ipynb b/_sources/GPUAccelerators/3_MappingDataToGPUDevices.ipynb similarity index 100% rename from src/GPUAccelerators/3_MappingDataToGPUDevices.ipynb rename to _sources/GPUAccelerators/3_MappingDataToGPUDevices.ipynb diff --git a/src/GPUAccelerators/4_AsynchronousExecutionAndDependencies.ipynb b/_sources/GPUAccelerators/4_AsynchronousExecutionAndDependencies.ipynb similarity index 100% rename from src/GPUAccelerators/4_AsynchronousExecutionAndDependencies.ipynb rename to _sources/GPUAccelerators/4_AsynchronousExecutionAndDependencies.ipynb diff --git a/src/GPUAccelerators/5_DeviceMemoryManagement.ipynb b/_sources/GPUAccelerators/5_DeviceMemoryManagement.ipynb similarity index 100% rename from src/GPUAccelerators/5_DeviceMemoryManagement.ipynb rename to _sources/GPUAccelerators/5_DeviceMemoryManagement.ipynb diff --git a/src/GPUAccelerators/6_ParallelExecutionOnGPUDevices.ipynb b/_sources/GPUAccelerators/6_ParallelExecutionOnGPUDevices.ipynb similarity index 100% rename from src/GPUAccelerators/6_ParallelExecutionOnGPUDevices.ipynb rename to _sources/GPUAccelerators/6_ParallelExecutionOnGPUDevices.ipynb diff --git a/src/GPUAccelerators/7_TuningPerformanceForGPUOffloading.ipynb b/_sources/GPUAccelerators/7_TuningPerformanceForGPUOffloading.ipynb similarity index 100% rename from src/GPUAccelerators/7_TuningPerformanceForGPUOffloading.ipynb rename to _sources/GPUAccelerators/7_TuningPerformanceForGPUOffloading.ipynb diff --git a/src/GPUAccelerators/8_AdvancedTopicsAndBestPractices.ipynb b/_sources/GPUAccelerators/8_AdvancedTopicsAndBestPractices.ipynb similarity index 100% rename from src/GPUAccelerators/8_AdvancedTopicsAndBestPractices.ipynb rename to _sources/GPUAccelerators/8_AdvancedTopicsAndBestPractices.ipynb diff --git a/src/GPUAccelerators/9_Conclusion.ipynb b/_sources/GPUAccelerators/9_Conclusion.ipynb similarity index 100% rename from src/GPUAccelerators/9_Conclusion.ipynb rename to _sources/GPUAccelerators/9_Conclusion.ipynb diff --git a/src/MultiCoreMultiCPU/0_Learning_Objectives.ipynb b/_sources/MultiCoreMultiCPU/0_Learning_Objectives.ipynb similarity index 100% rename from src/MultiCoreMultiCPU/0_Learning_Objectives.ipynb rename to _sources/MultiCoreMultiCPU/0_Learning_Objectives.ipynb diff --git a/src/MultiCoreMultiCPU/1_MIMDArchitecture.ipynb b/_sources/MultiCoreMultiCPU/1_MIMDArchitecture.ipynb similarity index 100% rename from src/MultiCoreMultiCPU/1_MIMDArchitecture.ipynb rename to _sources/MultiCoreMultiCPU/1_MIMDArchitecture.ipynb diff --git a/src/MultiCoreMultiCPU/2_UsingOpenMP_parallel.ipynb b/_sources/MultiCoreMultiCPU/2_UsingOpenMP_parallel.ipynb similarity index 100% rename from src/MultiCoreMultiCPU/2_UsingOpenMP_parallel.ipynb rename to _sources/MultiCoreMultiCPU/2_UsingOpenMP_parallel.ipynb diff --git a/src/MultiCoreMultiCPU/3_UsingOpenMP_teams.ipynb b/_sources/MultiCoreMultiCPU/3_UsingOpenMP_teams.ipynb similarity index 100% rename from src/MultiCoreMultiCPU/3_UsingOpenMP_teams.ipynb rename to _sources/MultiCoreMultiCPU/3_UsingOpenMP_teams.ipynb diff --git a/src/MultiCoreMultiCPU/4_SynchronizationThreads.ipynb b/_sources/MultiCoreMultiCPU/4_SynchronizationThreads.ipynb similarity index 100% rename from src/MultiCoreMultiCPU/4_SynchronizationThreads.ipynb rename to _sources/MultiCoreMultiCPU/4_SynchronizationThreads.ipynb diff --git a/src/MultiCoreMultiCPU/4_SynchronizationThreads_Claude.ipynb b/_sources/MultiCoreMultiCPU/4_SynchronizationThreads_Claude.ipynb similarity index 100% rename from src/MultiCoreMultiCPU/4_SynchronizationThreads_Claude.ipynb rename to _sources/MultiCoreMultiCPU/4_SynchronizationThreads_Claude.ipynb diff --git a/src/MultiCoreMultiCPU/4_SynchronizationThreads_Gemini.ipynb b/_sources/MultiCoreMultiCPU/4_SynchronizationThreads_Gemini.ipynb similarity index 100% rename from src/MultiCoreMultiCPU/4_SynchronizationThreads_Gemini.ipynb rename to _sources/MultiCoreMultiCPU/4_SynchronizationThreads_Gemini.ipynb diff --git a/src/MultiCoreMultiCPU/5_AsynchronousTasking.ipynb b/_sources/MultiCoreMultiCPU/5_AsynchronousTasking.ipynb similarity index 100% rename from src/MultiCoreMultiCPU/5_AsynchronousTasking.ipynb rename to _sources/MultiCoreMultiCPU/5_AsynchronousTasking.ipynb diff --git a/src/MultiCoreMultiCPU/6_ExplicitDistribution.ipynb b/_sources/MultiCoreMultiCPU/6_ExplicitDistribution.ipynb similarity index 100% rename from src/MultiCoreMultiCPU/6_ExplicitDistribution.ipynb rename to _sources/MultiCoreMultiCPU/6_ExplicitDistribution.ipynb diff --git a/src/Openmp_C/0_Learning_Objectives.ipynb b/_sources/Openmp_C/0_Learning_Objectives.ipynb similarity index 100% rename from src/Openmp_C/0_Learning_Objectives.ipynb rename to _sources/Openmp_C/0_Learning_Objectives.ipynb diff --git a/src/Openmp_C/1_IntroductionOfOpenMP.ipynb b/_sources/Openmp_C/1_IntroductionOfOpenMP.ipynb similarity index 100% rename from src/Openmp_C/1_IntroductionOfOpenMP.ipynb rename to _sources/Openmp_C/1_IntroductionOfOpenMP.ipynb diff --git a/src/Openmp_C/2_Syntax.ipynb b/_sources/Openmp_C/2_Syntax.ipynb similarity index 100% rename from src/Openmp_C/2_Syntax.ipynb rename to _sources/Openmp_C/2_Syntax.ipynb diff --git a/src/Openmp_C/3_Performance.ipynb b/_sources/Openmp_C/3_Performance.ipynb similarity index 100% rename from src/Openmp_C/3_Performance.ipynb rename to _sources/Openmp_C/3_Performance.ipynb diff --git a/src/SIMDandVectorArchitecture/0_Learning_Objectives.ipynb b/_sources/SIMDandVectorArchitecture/0_Learning_Objectives.ipynb similarity index 100% rename from src/SIMDandVectorArchitecture/0_Learning_Objectives.ipynb rename to _sources/SIMDandVectorArchitecture/0_Learning_Objectives.ipynb diff --git a/src/SIMDandVectorArchitecture/1_IntroductionToSIMDAndVectorization.ipynb b/_sources/SIMDandVectorArchitecture/1_IntroductionToSIMDAndVectorization.ipynb similarity index 100% rename from src/SIMDandVectorArchitecture/1_IntroductionToSIMDAndVectorization.ipynb rename to _sources/SIMDandVectorArchitecture/1_IntroductionToSIMDAndVectorization.ipynb diff --git a/src/SIMDandVectorArchitecture/2_OpenMPSIMDConstructsAndClauses.ipynb b/_sources/SIMDandVectorArchitecture/2_OpenMPSIMDConstructsAndClauses.ipynb similarity index 100% rename from src/SIMDandVectorArchitecture/2_OpenMPSIMDConstructsAndClauses.ipynb rename to _sources/SIMDandVectorArchitecture/2_OpenMPSIMDConstructsAndClauses.ipynb diff --git a/src/SIMDandVectorArchitecture/3_UtilizingSIMDDirectivesForLoopVectorization.ipynb b/_sources/SIMDandVectorArchitecture/3_UtilizingSIMDDirectivesForLoopVectorization.ipynb similarity index 100% rename from src/SIMDandVectorArchitecture/3_UtilizingSIMDDirectivesForLoopVectorization.ipynb rename to _sources/SIMDandVectorArchitecture/3_UtilizingSIMDDirectivesForLoopVectorization.ipynb diff --git a/src/SIMDandVectorArchitecture/4_FunctionVectorizationWithdeclaresimd.ipynb b/_sources/SIMDandVectorArchitecture/4_FunctionVectorizationWithdeclaresimd.ipynb similarity index 100% rename from src/SIMDandVectorArchitecture/4_FunctionVectorizationWithdeclaresimd.ipynb rename to _sources/SIMDandVectorArchitecture/4_FunctionVectorizationWithdeclaresimd.ipynb diff --git a/src/SIMDandVectorArchitecture/5_DataAlignmentandLinearClauses.ipynb b/_sources/SIMDandVectorArchitecture/5_DataAlignmentandLinearClauses.ipynb similarity index 100% rename from src/SIMDandVectorArchitecture/5_DataAlignmentandLinearClauses.ipynb rename to _sources/SIMDandVectorArchitecture/5_DataAlignmentandLinearClauses.ipynb diff --git a/src/SIMDandVectorArchitecture/6_SIMDReductionsAndScans.ipynb b/_sources/SIMDandVectorArchitecture/6_SIMDReductionsAndScans.ipynb similarity index 100% rename from src/SIMDandVectorArchitecture/6_SIMDReductionsAndScans.ipynb rename to _sources/SIMDandVectorArchitecture/6_SIMDReductionsAndScans.ipynb diff --git a/src/SIMDandVectorArchitecture/7_BestPracticesAndPerformanceConsiderations.ipynb b/_sources/SIMDandVectorArchitecture/7_BestPracticesAndPerformanceConsiderations.ipynb similarity index 100% rename from src/SIMDandVectorArchitecture/7_BestPracticesAndPerformanceConsiderations.ipynb rename to _sources/SIMDandVectorArchitecture/7_BestPracticesAndPerformanceConsiderations.ipynb diff --git a/src/SIMDandVectorArchitecture/8_RealWorldExamplesAndCaseStudies.ipynb b/_sources/SIMDandVectorArchitecture/8_RealWorldExamplesAndCaseStudies.ipynb similarity index 100% rename from src/SIMDandVectorArchitecture/8_RealWorldExamplesAndCaseStudies.ipynb rename to _sources/SIMDandVectorArchitecture/8_RealWorldExamplesAndCaseStudies.ipynb diff --git a/src/cover.md b/_sources/cover.md similarity index 100% rename from src/cover.md rename to _sources/cover.md diff --git a/src/foreword.md b/_sources/foreword.md similarity index 100% rename from src/foreword.md rename to _sources/foreword.md diff --git a/_sphinx_design_static/design-tabs.js b/_sphinx_design_static/design-tabs.js new file mode 100644 index 0000000..b25bd6a --- /dev/null +++ b/_sphinx_design_static/design-tabs.js @@ -0,0 +1,101 @@ +// @ts-check + +// Extra JS capability for selected tabs to be synced +// The selection is stored in local storage so that it persists across page loads. + +/** + * @type {Record} + */ +let sd_id_to_elements = {}; +const storageKeyPrefix = "sphinx-design-tab-id-"; + +/** + * Create a key for a tab element. + * @param {HTMLElement} el - The tab element. + * @returns {[string, string, string] | null} - The key. + * + */ +function create_key(el) { + let syncId = el.getAttribute("data-sync-id"); + let syncGroup = el.getAttribute("data-sync-group"); + if (!syncId || !syncGroup) return null; + return [syncGroup, syncId, syncGroup + "--" + syncId]; +} + +/** + * Initialize the tab selection. + * + */ +function ready() { + // Find all tabs with sync data + + /** @type {string[]} */ + let groups = []; + + document.querySelectorAll(".sd-tab-label").forEach((label) => { + if (label instanceof HTMLElement) { + let data = create_key(label); + if (data) { + let [group, id, key] = data; + + // add click event listener + // @ts-ignore + label.onclick = onSDLabelClick; + + // store map of key to elements + if (!sd_id_to_elements[key]) { + sd_id_to_elements[key] = []; + } + sd_id_to_elements[key].push(label); + + if (groups.indexOf(group) === -1) { + groups.push(group); + // Check if a specific tab has been selected via URL parameter + const tabParam = new URLSearchParams(window.location.search).get( + group + ); + if (tabParam) { + console.log( + "sphinx-design: Selecting tab id for group '" + + group + + "' from URL parameter: " + + tabParam + ); + window.sessionStorage.setItem(storageKeyPrefix + group, tabParam); + } + } + + // Check is a specific tab has been selected previously + let previousId = window.sessionStorage.getItem( + storageKeyPrefix + group + ); + if (previousId === id) { + // console.log( + // "sphinx-design: Selecting tab from session storage: " + id + // ); + // @ts-ignore + label.previousElementSibling.checked = true; + } + } + } + }); +} + +/** + * Activate other tabs with the same sync id. + * + * @this {HTMLElement} - The element that was clicked. + */ +function onSDLabelClick() { + let data = create_key(this); + if (!data) return; + let [group, id, key] = data; + for (const label of sd_id_to_elements[key]) { + if (label === this) continue; + // @ts-ignore + label.previousElementSibling.checked = true; + } + window.sessionStorage.setItem(storageKeyPrefix + group, id); +} + +document.addEventListener("DOMContentLoaded", ready, false); diff --git a/_sphinx_design_static/sphinx-design.min.css b/_sphinx_design_static/sphinx-design.min.css new file mode 100644 index 0000000..860c36d --- /dev/null +++ b/_sphinx_design_static/sphinx-design.min.css @@ -0,0 +1 @@ +.sd-bg-primary{background-color:var(--sd-color-primary) !important}.sd-bg-text-primary{color:var(--sd-color-primary-text) !important}button.sd-bg-primary:focus,button.sd-bg-primary:hover{background-color:var(--sd-color-primary-highlight) !important}a.sd-bg-primary:focus,a.sd-bg-primary:hover{background-color:var(--sd-color-primary-highlight) !important}.sd-bg-secondary{background-color:var(--sd-color-secondary) !important}.sd-bg-text-secondary{color:var(--sd-color-secondary-text) !important}button.sd-bg-secondary:focus,button.sd-bg-secondary:hover{background-color:var(--sd-color-secondary-highlight) !important}a.sd-bg-secondary:focus,a.sd-bg-secondary:hover{background-color:var(--sd-color-secondary-highlight) !important}.sd-bg-success{background-color:var(--sd-color-success) !important}.sd-bg-text-success{color:var(--sd-color-success-text) !important}button.sd-bg-success:focus,button.sd-bg-success:hover{background-color:var(--sd-color-success-highlight) !important}a.sd-bg-success:focus,a.sd-bg-success:hover{background-color:var(--sd-color-success-highlight) !important}.sd-bg-info{background-color:var(--sd-color-info) !important}.sd-bg-text-info{color:var(--sd-color-info-text) !important}button.sd-bg-info:focus,button.sd-bg-info:hover{background-color:var(--sd-color-info-highlight) !important}a.sd-bg-info:focus,a.sd-bg-info:hover{background-color:var(--sd-color-info-highlight) !important}.sd-bg-warning{background-color:var(--sd-color-warning) !important}.sd-bg-text-warning{color:var(--sd-color-warning-text) !important}button.sd-bg-warning:focus,button.sd-bg-warning:hover{background-color:var(--sd-color-warning-highlight) !important}a.sd-bg-warning:focus,a.sd-bg-warning:hover{background-color:var(--sd-color-warning-highlight) !important}.sd-bg-danger{background-color:var(--sd-color-danger) !important}.sd-bg-text-danger{color:var(--sd-color-danger-text) !important}button.sd-bg-danger:focus,button.sd-bg-danger:hover{background-color:var(--sd-color-danger-highlight) !important}a.sd-bg-danger:focus,a.sd-bg-danger:hover{background-color:var(--sd-color-danger-highlight) !important}.sd-bg-light{background-color:var(--sd-color-light) !important}.sd-bg-text-light{color:var(--sd-color-light-text) !important}button.sd-bg-light:focus,button.sd-bg-light:hover{background-color:var(--sd-color-light-highlight) !important}a.sd-bg-light:focus,a.sd-bg-light:hover{background-color:var(--sd-color-light-highlight) !important}.sd-bg-muted{background-color:var(--sd-color-muted) !important}.sd-bg-text-muted{color:var(--sd-color-muted-text) !important}button.sd-bg-muted:focus,button.sd-bg-muted:hover{background-color:var(--sd-color-muted-highlight) !important}a.sd-bg-muted:focus,a.sd-bg-muted:hover{background-color:var(--sd-color-muted-highlight) !important}.sd-bg-dark{background-color:var(--sd-color-dark) !important}.sd-bg-text-dark{color:var(--sd-color-dark-text) !important}button.sd-bg-dark:focus,button.sd-bg-dark:hover{background-color:var(--sd-color-dark-highlight) !important}a.sd-bg-dark:focus,a.sd-bg-dark:hover{background-color:var(--sd-color-dark-highlight) !important}.sd-bg-black{background-color:var(--sd-color-black) !important}.sd-bg-text-black{color:var(--sd-color-black-text) !important}button.sd-bg-black:focus,button.sd-bg-black:hover{background-color:var(--sd-color-black-highlight) !important}a.sd-bg-black:focus,a.sd-bg-black:hover{background-color:var(--sd-color-black-highlight) !important}.sd-bg-white{background-color:var(--sd-color-white) !important}.sd-bg-text-white{color:var(--sd-color-white-text) !important}button.sd-bg-white:focus,button.sd-bg-white:hover{background-color:var(--sd-color-white-highlight) !important}a.sd-bg-white:focus,a.sd-bg-white:hover{background-color:var(--sd-color-white-highlight) !important}.sd-text-primary,.sd-text-primary>p{color:var(--sd-color-primary) !important}a.sd-text-primary:focus,a.sd-text-primary:hover{color:var(--sd-color-primary-highlight) !important}.sd-text-secondary,.sd-text-secondary>p{color:var(--sd-color-secondary) !important}a.sd-text-secondary:focus,a.sd-text-secondary:hover{color:var(--sd-color-secondary-highlight) !important}.sd-text-success,.sd-text-success>p{color:var(--sd-color-success) !important}a.sd-text-success:focus,a.sd-text-success:hover{color:var(--sd-color-success-highlight) !important}.sd-text-info,.sd-text-info>p{color:var(--sd-color-info) !important}a.sd-text-info:focus,a.sd-text-info:hover{color:var(--sd-color-info-highlight) !important}.sd-text-warning,.sd-text-warning>p{color:var(--sd-color-warning) !important}a.sd-text-warning:focus,a.sd-text-warning:hover{color:var(--sd-color-warning-highlight) !important}.sd-text-danger,.sd-text-danger>p{color:var(--sd-color-danger) !important}a.sd-text-danger:focus,a.sd-text-danger:hover{color:var(--sd-color-danger-highlight) !important}.sd-text-light,.sd-text-light>p{color:var(--sd-color-light) !important}a.sd-text-light:focus,a.sd-text-light:hover{color:var(--sd-color-light-highlight) !important}.sd-text-muted,.sd-text-muted>p{color:var(--sd-color-muted) !important}a.sd-text-muted:focus,a.sd-text-muted:hover{color:var(--sd-color-muted-highlight) !important}.sd-text-dark,.sd-text-dark>p{color:var(--sd-color-dark) !important}a.sd-text-dark:focus,a.sd-text-dark:hover{color:var(--sd-color-dark-highlight) !important}.sd-text-black,.sd-text-black>p{color:var(--sd-color-black) !important}a.sd-text-black:focus,a.sd-text-black:hover{color:var(--sd-color-black-highlight) !important}.sd-text-white,.sd-text-white>p{color:var(--sd-color-white) !important}a.sd-text-white:focus,a.sd-text-white:hover{color:var(--sd-color-white-highlight) !important}.sd-outline-primary{border-color:var(--sd-color-primary) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-primary:focus,a.sd-outline-primary:hover{border-color:var(--sd-color-primary-highlight) !important}.sd-outline-secondary{border-color:var(--sd-color-secondary) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-secondary:focus,a.sd-outline-secondary:hover{border-color:var(--sd-color-secondary-highlight) !important}.sd-outline-success{border-color:var(--sd-color-success) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-success:focus,a.sd-outline-success:hover{border-color:var(--sd-color-success-highlight) !important}.sd-outline-info{border-color:var(--sd-color-info) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-info:focus,a.sd-outline-info:hover{border-color:var(--sd-color-info-highlight) !important}.sd-outline-warning{border-color:var(--sd-color-warning) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-warning:focus,a.sd-outline-warning:hover{border-color:var(--sd-color-warning-highlight) !important}.sd-outline-danger{border-color:var(--sd-color-danger) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-danger:focus,a.sd-outline-danger:hover{border-color:var(--sd-color-danger-highlight) !important}.sd-outline-light{border-color:var(--sd-color-light) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-light:focus,a.sd-outline-light:hover{border-color:var(--sd-color-light-highlight) !important}.sd-outline-muted{border-color:var(--sd-color-muted) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-muted:focus,a.sd-outline-muted:hover{border-color:var(--sd-color-muted-highlight) !important}.sd-outline-dark{border-color:var(--sd-color-dark) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-dark:focus,a.sd-outline-dark:hover{border-color:var(--sd-color-dark-highlight) !important}.sd-outline-black{border-color:var(--sd-color-black) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-black:focus,a.sd-outline-black:hover{border-color:var(--sd-color-black-highlight) !important}.sd-outline-white{border-color:var(--sd-color-white) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-white:focus,a.sd-outline-white:hover{border-color:var(--sd-color-white-highlight) !important}.sd-bg-transparent{background-color:transparent !important}.sd-outline-transparent{border-color:transparent !important}.sd-text-transparent{color:transparent !important}.sd-p-0{padding:0 !important}.sd-pt-0,.sd-py-0{padding-top:0 !important}.sd-pr-0,.sd-px-0{padding-right:0 !important}.sd-pb-0,.sd-py-0{padding-bottom:0 !important}.sd-pl-0,.sd-px-0{padding-left:0 !important}.sd-p-1{padding:.25rem !important}.sd-pt-1,.sd-py-1{padding-top:.25rem !important}.sd-pr-1,.sd-px-1{padding-right:.25rem !important}.sd-pb-1,.sd-py-1{padding-bottom:.25rem !important}.sd-pl-1,.sd-px-1{padding-left:.25rem !important}.sd-p-2{padding:.5rem !important}.sd-pt-2,.sd-py-2{padding-top:.5rem !important}.sd-pr-2,.sd-px-2{padding-right:.5rem !important}.sd-pb-2,.sd-py-2{padding-bottom:.5rem !important}.sd-pl-2,.sd-px-2{padding-left:.5rem !important}.sd-p-3{padding:1rem !important}.sd-pt-3,.sd-py-3{padding-top:1rem !important}.sd-pr-3,.sd-px-3{padding-right:1rem !important}.sd-pb-3,.sd-py-3{padding-bottom:1rem !important}.sd-pl-3,.sd-px-3{padding-left:1rem !important}.sd-p-4{padding:1.5rem !important}.sd-pt-4,.sd-py-4{padding-top:1.5rem !important}.sd-pr-4,.sd-px-4{padding-right:1.5rem !important}.sd-pb-4,.sd-py-4{padding-bottom:1.5rem !important}.sd-pl-4,.sd-px-4{padding-left:1.5rem !important}.sd-p-5{padding:3rem !important}.sd-pt-5,.sd-py-5{padding-top:3rem !important}.sd-pr-5,.sd-px-5{padding-right:3rem !important}.sd-pb-5,.sd-py-5{padding-bottom:3rem !important}.sd-pl-5,.sd-px-5{padding-left:3rem !important}.sd-m-auto{margin:auto !important}.sd-mt-auto,.sd-my-auto{margin-top:auto !important}.sd-mr-auto,.sd-mx-auto{margin-right:auto !important}.sd-mb-auto,.sd-my-auto{margin-bottom:auto !important}.sd-ml-auto,.sd-mx-auto{margin-left:auto !important}.sd-m-0{margin:0 !important}.sd-mt-0,.sd-my-0{margin-top:0 !important}.sd-mr-0,.sd-mx-0{margin-right:0 !important}.sd-mb-0,.sd-my-0{margin-bottom:0 !important}.sd-ml-0,.sd-mx-0{margin-left:0 !important}.sd-m-1{margin:.25rem !important}.sd-mt-1,.sd-my-1{margin-top:.25rem !important}.sd-mr-1,.sd-mx-1{margin-right:.25rem !important}.sd-mb-1,.sd-my-1{margin-bottom:.25rem !important}.sd-ml-1,.sd-mx-1{margin-left:.25rem !important}.sd-m-2{margin:.5rem !important}.sd-mt-2,.sd-my-2{margin-top:.5rem !important}.sd-mr-2,.sd-mx-2{margin-right:.5rem !important}.sd-mb-2,.sd-my-2{margin-bottom:.5rem !important}.sd-ml-2,.sd-mx-2{margin-left:.5rem !important}.sd-m-3{margin:1rem !important}.sd-mt-3,.sd-my-3{margin-top:1rem !important}.sd-mr-3,.sd-mx-3{margin-right:1rem !important}.sd-mb-3,.sd-my-3{margin-bottom:1rem !important}.sd-ml-3,.sd-mx-3{margin-left:1rem !important}.sd-m-4{margin:1.5rem !important}.sd-mt-4,.sd-my-4{margin-top:1.5rem !important}.sd-mr-4,.sd-mx-4{margin-right:1.5rem !important}.sd-mb-4,.sd-my-4{margin-bottom:1.5rem !important}.sd-ml-4,.sd-mx-4{margin-left:1.5rem !important}.sd-m-5{margin:3rem !important}.sd-mt-5,.sd-my-5{margin-top:3rem !important}.sd-mr-5,.sd-mx-5{margin-right:3rem !important}.sd-mb-5,.sd-my-5{margin-bottom:3rem !important}.sd-ml-5,.sd-mx-5{margin-left:3rem !important}.sd-w-25{width:25% !important}.sd-w-50{width:50% !important}.sd-w-75{width:75% !important}.sd-w-100{width:100% !important}.sd-w-auto{width:auto !important}.sd-h-25{height:25% !important}.sd-h-50{height:50% !important}.sd-h-75{height:75% !important}.sd-h-100{height:100% !important}.sd-h-auto{height:auto !important}.sd-d-none{display:none !important}.sd-d-inline{display:inline !important}.sd-d-inline-block{display:inline-block !important}.sd-d-block{display:block !important}.sd-d-grid{display:grid !important}.sd-d-flex-row{display:-ms-flexbox !important;display:flex !important;flex-direction:row !important}.sd-d-flex-column{display:-ms-flexbox !important;display:flex !important;flex-direction:column !important}.sd-d-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}@media(min-width: 576px){.sd-d-sm-none{display:none !important}.sd-d-sm-inline{display:inline !important}.sd-d-sm-inline-block{display:inline-block !important}.sd-d-sm-block{display:block !important}.sd-d-sm-grid{display:grid !important}.sd-d-sm-flex{display:-ms-flexbox !important;display:flex !important}.sd-d-sm-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}}@media(min-width: 768px){.sd-d-md-none{display:none !important}.sd-d-md-inline{display:inline !important}.sd-d-md-inline-block{display:inline-block !important}.sd-d-md-block{display:block !important}.sd-d-md-grid{display:grid !important}.sd-d-md-flex{display:-ms-flexbox !important;display:flex !important}.sd-d-md-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}}@media(min-width: 992px){.sd-d-lg-none{display:none !important}.sd-d-lg-inline{display:inline !important}.sd-d-lg-inline-block{display:inline-block !important}.sd-d-lg-block{display:block !important}.sd-d-lg-grid{display:grid !important}.sd-d-lg-flex{display:-ms-flexbox !important;display:flex !important}.sd-d-lg-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}}@media(min-width: 1200px){.sd-d-xl-none{display:none !important}.sd-d-xl-inline{display:inline !important}.sd-d-xl-inline-block{display:inline-block !important}.sd-d-xl-block{display:block !important}.sd-d-xl-grid{display:grid !important}.sd-d-xl-flex{display:-ms-flexbox !important;display:flex !important}.sd-d-xl-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}}.sd-align-major-start{justify-content:flex-start !important}.sd-align-major-end{justify-content:flex-end !important}.sd-align-major-center{justify-content:center !important}.sd-align-major-justify{justify-content:space-between !important}.sd-align-major-spaced{justify-content:space-evenly !important}.sd-align-minor-start{align-items:flex-start !important}.sd-align-minor-end{align-items:flex-end !important}.sd-align-minor-center{align-items:center !important}.sd-align-minor-stretch{align-items:stretch !important}.sd-text-justify{text-align:justify !important}.sd-text-left{text-align:left !important}.sd-text-right{text-align:right !important}.sd-text-center{text-align:center !important}.sd-font-weight-light{font-weight:300 !important}.sd-font-weight-lighter{font-weight:lighter !important}.sd-font-weight-normal{font-weight:400 !important}.sd-font-weight-bold{font-weight:700 !important}.sd-font-weight-bolder{font-weight:bolder !important}.sd-font-italic{font-style:italic !important}.sd-text-decoration-none{text-decoration:none !important}.sd-text-lowercase{text-transform:lowercase !important}.sd-text-uppercase{text-transform:uppercase !important}.sd-text-capitalize{text-transform:capitalize !important}.sd-text-wrap{white-space:normal !important}.sd-text-nowrap{white-space:nowrap !important}.sd-text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-fs-1,.sd-fs-1>p{font-size:calc(1.375rem + 1.5vw) !important;line-height:unset !important}.sd-fs-2,.sd-fs-2>p{font-size:calc(1.325rem + 0.9vw) !important;line-height:unset !important}.sd-fs-3,.sd-fs-3>p{font-size:calc(1.3rem + 0.6vw) !important;line-height:unset !important}.sd-fs-4,.sd-fs-4>p{font-size:calc(1.275rem + 0.3vw) !important;line-height:unset !important}.sd-fs-5,.sd-fs-5>p{font-size:1.25rem !important;line-height:unset !important}.sd-fs-6,.sd-fs-6>p{font-size:1rem !important;line-height:unset !important}.sd-border-0{border:0 solid !important}.sd-border-top-0{border-top:0 solid !important}.sd-border-bottom-0{border-bottom:0 solid !important}.sd-border-right-0{border-right:0 solid !important}.sd-border-left-0{border-left:0 solid !important}.sd-border-1{border:1px solid !important}.sd-border-top-1{border-top:1px solid !important}.sd-border-bottom-1{border-bottom:1px solid !important}.sd-border-right-1{border-right:1px solid !important}.sd-border-left-1{border-left:1px solid !important}.sd-border-2{border:2px solid !important}.sd-border-top-2{border-top:2px solid !important}.sd-border-bottom-2{border-bottom:2px solid !important}.sd-border-right-2{border-right:2px solid !important}.sd-border-left-2{border-left:2px solid !important}.sd-border-3{border:3px solid !important}.sd-border-top-3{border-top:3px solid !important}.sd-border-bottom-3{border-bottom:3px solid !important}.sd-border-right-3{border-right:3px solid !important}.sd-border-left-3{border-left:3px solid !important}.sd-border-4{border:4px solid !important}.sd-border-top-4{border-top:4px solid !important}.sd-border-bottom-4{border-bottom:4px solid !important}.sd-border-right-4{border-right:4px solid !important}.sd-border-left-4{border-left:4px solid !important}.sd-border-5{border:5px solid !important}.sd-border-top-5{border-top:5px solid !important}.sd-border-bottom-5{border-bottom:5px solid !important}.sd-border-right-5{border-right:5px solid !important}.sd-border-left-5{border-left:5px solid !important}.sd-rounded-0{border-radius:0 !important}.sd-rounded-1{border-radius:.2rem !important}.sd-rounded-2{border-radius:.3rem !important}.sd-rounded-3{border-radius:.5rem !important}.sd-rounded-pill{border-radius:50rem !important}.sd-rounded-circle{border-radius:50% !important}.shadow-none{box-shadow:none !important}.sd-shadow-sm{box-shadow:0 .125rem .25rem var(--sd-color-shadow) !important}.sd-shadow-md{box-shadow:0 .5rem 1rem var(--sd-color-shadow) !important}.sd-shadow-lg{box-shadow:0 1rem 3rem var(--sd-color-shadow) !important}@keyframes sd-slide-from-left{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes sd-slide-from-right{0%{transform:translateX(200%)}100%{transform:translateX(0)}}@keyframes sd-grow100{0%{transform:scale(0);opacity:.5}100%{transform:scale(1);opacity:1}}@keyframes sd-grow50{0%{transform:scale(0.5);opacity:.5}100%{transform:scale(1);opacity:1}}@keyframes sd-grow50-rot20{0%{transform:scale(0.5) rotateZ(-20deg);opacity:.5}75%{transform:scale(1) rotateZ(5deg);opacity:1}95%{transform:scale(1) rotateZ(-1deg);opacity:1}100%{transform:scale(1) rotateZ(0);opacity:1}}.sd-animate-slide-from-left{animation:1s ease-out 0s 1 normal none running sd-slide-from-left}.sd-animate-slide-from-right{animation:1s ease-out 0s 1 normal none running sd-slide-from-right}.sd-animate-grow100{animation:1s ease-out 0s 1 normal none running sd-grow100}.sd-animate-grow50{animation:1s ease-out 0s 1 normal none running sd-grow50}.sd-animate-grow50-rot20{animation:1s ease-out 0s 1 normal none running sd-grow50-rot20}.sd-badge{display:inline-block;padding:.35em .65em;font-size:.75em;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem}.sd-badge:empty{display:none}a.sd-badge{text-decoration:none}.sd-btn .sd-badge{position:relative;top:-1px}.sd-btn{background-color:transparent;border:1px solid transparent;border-radius:.25rem;cursor:pointer;display:inline-block;font-weight:400;font-size:1rem;line-height:1.5;padding:.375rem .75rem;text-align:center;text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;vertical-align:middle;user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none}.sd-btn:hover{text-decoration:none}@media(prefers-reduced-motion: reduce){.sd-btn{transition:none}}.sd-btn-primary,.sd-btn-outline-primary:hover,.sd-btn-outline-primary:focus{color:var(--sd-color-primary-text) !important;background-color:var(--sd-color-primary) !important;border-color:var(--sd-color-primary) !important;border-width:1px !important;border-style:solid !important}.sd-btn-primary:hover,.sd-btn-primary:focus{color:var(--sd-color-primary-text) !important;background-color:var(--sd-color-primary-highlight) !important;border-color:var(--sd-color-primary-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-primary{color:var(--sd-color-primary) !important;border-color:var(--sd-color-primary) !important;border-width:1px !important;border-style:solid !important}.sd-btn-secondary,.sd-btn-outline-secondary:hover,.sd-btn-outline-secondary:focus{color:var(--sd-color-secondary-text) !important;background-color:var(--sd-color-secondary) !important;border-color:var(--sd-color-secondary) !important;border-width:1px !important;border-style:solid !important}.sd-btn-secondary:hover,.sd-btn-secondary:focus{color:var(--sd-color-secondary-text) !important;background-color:var(--sd-color-secondary-highlight) !important;border-color:var(--sd-color-secondary-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-secondary{color:var(--sd-color-secondary) !important;border-color:var(--sd-color-secondary) !important;border-width:1px !important;border-style:solid !important}.sd-btn-success,.sd-btn-outline-success:hover,.sd-btn-outline-success:focus{color:var(--sd-color-success-text) !important;background-color:var(--sd-color-success) !important;border-color:var(--sd-color-success) !important;border-width:1px !important;border-style:solid !important}.sd-btn-success:hover,.sd-btn-success:focus{color:var(--sd-color-success-text) !important;background-color:var(--sd-color-success-highlight) !important;border-color:var(--sd-color-success-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-success{color:var(--sd-color-success) !important;border-color:var(--sd-color-success) !important;border-width:1px !important;border-style:solid !important}.sd-btn-info,.sd-btn-outline-info:hover,.sd-btn-outline-info:focus{color:var(--sd-color-info-text) !important;background-color:var(--sd-color-info) !important;border-color:var(--sd-color-info) !important;border-width:1px !important;border-style:solid !important}.sd-btn-info:hover,.sd-btn-info:focus{color:var(--sd-color-info-text) !important;background-color:var(--sd-color-info-highlight) !important;border-color:var(--sd-color-info-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-info{color:var(--sd-color-info) !important;border-color:var(--sd-color-info) !important;border-width:1px !important;border-style:solid !important}.sd-btn-warning,.sd-btn-outline-warning:hover,.sd-btn-outline-warning:focus{color:var(--sd-color-warning-text) !important;background-color:var(--sd-color-warning) !important;border-color:var(--sd-color-warning) !important;border-width:1px !important;border-style:solid !important}.sd-btn-warning:hover,.sd-btn-warning:focus{color:var(--sd-color-warning-text) !important;background-color:var(--sd-color-warning-highlight) !important;border-color:var(--sd-color-warning-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-warning{color:var(--sd-color-warning) !important;border-color:var(--sd-color-warning) !important;border-width:1px !important;border-style:solid !important}.sd-btn-danger,.sd-btn-outline-danger:hover,.sd-btn-outline-danger:focus{color:var(--sd-color-danger-text) !important;background-color:var(--sd-color-danger) !important;border-color:var(--sd-color-danger) !important;border-width:1px !important;border-style:solid !important}.sd-btn-danger:hover,.sd-btn-danger:focus{color:var(--sd-color-danger-text) !important;background-color:var(--sd-color-danger-highlight) !important;border-color:var(--sd-color-danger-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-danger{color:var(--sd-color-danger) !important;border-color:var(--sd-color-danger) !important;border-width:1px !important;border-style:solid !important}.sd-btn-light,.sd-btn-outline-light:hover,.sd-btn-outline-light:focus{color:var(--sd-color-light-text) !important;background-color:var(--sd-color-light) !important;border-color:var(--sd-color-light) !important;border-width:1px !important;border-style:solid !important}.sd-btn-light:hover,.sd-btn-light:focus{color:var(--sd-color-light-text) !important;background-color:var(--sd-color-light-highlight) !important;border-color:var(--sd-color-light-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-light{color:var(--sd-color-light) !important;border-color:var(--sd-color-light) !important;border-width:1px !important;border-style:solid !important}.sd-btn-muted,.sd-btn-outline-muted:hover,.sd-btn-outline-muted:focus{color:var(--sd-color-muted-text) !important;background-color:var(--sd-color-muted) !important;border-color:var(--sd-color-muted) !important;border-width:1px !important;border-style:solid !important}.sd-btn-muted:hover,.sd-btn-muted:focus{color:var(--sd-color-muted-text) !important;background-color:var(--sd-color-muted-highlight) !important;border-color:var(--sd-color-muted-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-muted{color:var(--sd-color-muted) !important;border-color:var(--sd-color-muted) !important;border-width:1px !important;border-style:solid !important}.sd-btn-dark,.sd-btn-outline-dark:hover,.sd-btn-outline-dark:focus{color:var(--sd-color-dark-text) !important;background-color:var(--sd-color-dark) !important;border-color:var(--sd-color-dark) !important;border-width:1px !important;border-style:solid !important}.sd-btn-dark:hover,.sd-btn-dark:focus{color:var(--sd-color-dark-text) !important;background-color:var(--sd-color-dark-highlight) !important;border-color:var(--sd-color-dark-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-dark{color:var(--sd-color-dark) !important;border-color:var(--sd-color-dark) !important;border-width:1px !important;border-style:solid !important}.sd-btn-black,.sd-btn-outline-black:hover,.sd-btn-outline-black:focus{color:var(--sd-color-black-text) !important;background-color:var(--sd-color-black) !important;border-color:var(--sd-color-black) !important;border-width:1px !important;border-style:solid !important}.sd-btn-black:hover,.sd-btn-black:focus{color:var(--sd-color-black-text) !important;background-color:var(--sd-color-black-highlight) !important;border-color:var(--sd-color-black-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-black{color:var(--sd-color-black) !important;border-color:var(--sd-color-black) !important;border-width:1px !important;border-style:solid !important}.sd-btn-white,.sd-btn-outline-white:hover,.sd-btn-outline-white:focus{color:var(--sd-color-white-text) !important;background-color:var(--sd-color-white) !important;border-color:var(--sd-color-white) !important;border-width:1px !important;border-style:solid !important}.sd-btn-white:hover,.sd-btn-white:focus{color:var(--sd-color-white-text) !important;background-color:var(--sd-color-white-highlight) !important;border-color:var(--sd-color-white-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-white{color:var(--sd-color-white) !important;border-color:var(--sd-color-white) !important;border-width:1px !important;border-style:solid !important}.sd-stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.sd-hide-link-text{font-size:0}.sd-octicon,.sd-material-icon{display:inline-block;fill:currentColor;vertical-align:middle}.sd-avatar-xs{border-radius:50%;object-fit:cover;object-position:center;width:1rem;height:1rem}.sd-avatar-sm{border-radius:50%;object-fit:cover;object-position:center;width:3rem;height:3rem}.sd-avatar-md{border-radius:50%;object-fit:cover;object-position:center;width:5rem;height:5rem}.sd-avatar-lg{border-radius:50%;object-fit:cover;object-position:center;width:7rem;height:7rem}.sd-avatar-xl{border-radius:50%;object-fit:cover;object-position:center;width:10rem;height:10rem}.sd-avatar-inherit{border-radius:50%;object-fit:cover;object-position:center;width:inherit;height:inherit}.sd-avatar-initial{border-radius:50%;object-fit:cover;object-position:center;width:initial;height:initial}.sd-card{background-clip:border-box;background-color:var(--sd-color-card-background);border:1px solid var(--sd-color-card-border);border-radius:.25rem;color:var(--sd-color-card-text);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0;position:relative;word-wrap:break-word}.sd-card>hr{margin-left:0;margin-right:0}.sd-card-hover:hover{border-color:var(--sd-color-card-border-hover);transform:scale(1.01)}.sd-card-body{-ms-flex:1 1 auto;flex:1 1 auto;padding:1rem 1rem}.sd-card-title{margin-bottom:.5rem}.sd-card-subtitle{margin-top:-0.25rem;margin-bottom:0}.sd-card-text:last-child{margin-bottom:0}.sd-card-link:hover{text-decoration:none}.sd-card-link+.card-link{margin-left:1rem}.sd-card-header{padding:.5rem 1rem;margin-bottom:0;background-color:var(--sd-color-card-header);border-bottom:1px solid var(--sd-color-card-border)}.sd-card-header:first-child{border-radius:calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0}.sd-card-footer{padding:.5rem 1rem;background-color:var(--sd-color-card-footer);border-top:1px solid var(--sd-color-card-border)}.sd-card-footer:last-child{border-radius:0 0 calc(0.25rem - 1px) calc(0.25rem - 1px)}.sd-card-header-tabs{margin-right:-0.5rem;margin-bottom:-0.5rem;margin-left:-0.5rem;border-bottom:0}.sd-card-header-pills{margin-right:-0.5rem;margin-left:-0.5rem}.sd-card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1rem;border-radius:calc(0.25rem - 1px)}.sd-card-img,.sd-card-img-bottom,.sd-card-img-top{width:100%}.sd-card-img,.sd-card-img-top{border-top-left-radius:calc(0.25rem - 1px);border-top-right-radius:calc(0.25rem - 1px)}.sd-card-img,.sd-card-img-bottom{border-bottom-left-radius:calc(0.25rem - 1px);border-bottom-right-radius:calc(0.25rem - 1px)}.sd-cards-carousel{width:100%;display:flex;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;overflow-x:hidden;scroll-snap-type:x mandatory}.sd-cards-carousel.sd-show-scrollbar{overflow-x:auto}.sd-cards-carousel:hover,.sd-cards-carousel:focus{overflow-x:auto}.sd-cards-carousel>.sd-card{flex-shrink:0;scroll-snap-align:start}.sd-cards-carousel>.sd-card:not(:last-child){margin-right:3px}.sd-card-cols-1>.sd-card{width:90%}.sd-card-cols-2>.sd-card{width:45%}.sd-card-cols-3>.sd-card{width:30%}.sd-card-cols-4>.sd-card{width:22.5%}.sd-card-cols-5>.sd-card{width:18%}.sd-card-cols-6>.sd-card{width:15%}.sd-card-cols-7>.sd-card{width:12.8571428571%}.sd-card-cols-8>.sd-card{width:11.25%}.sd-card-cols-9>.sd-card{width:10%}.sd-card-cols-10>.sd-card{width:9%}.sd-card-cols-11>.sd-card{width:8.1818181818%}.sd-card-cols-12>.sd-card{width:7.5%}.sd-container,.sd-container-fluid,.sd-container-lg,.sd-container-md,.sd-container-sm,.sd-container-xl{margin-left:auto;margin-right:auto;padding-left:var(--sd-gutter-x, 0.75rem);padding-right:var(--sd-gutter-x, 0.75rem);width:100%}@media(min-width: 576px){.sd-container-sm,.sd-container{max-width:540px}}@media(min-width: 768px){.sd-container-md,.sd-container-sm,.sd-container{max-width:720px}}@media(min-width: 992px){.sd-container-lg,.sd-container-md,.sd-container-sm,.sd-container{max-width:960px}}@media(min-width: 1200px){.sd-container-xl,.sd-container-lg,.sd-container-md,.sd-container-sm,.sd-container{max-width:1140px}}.sd-row{--sd-gutter-x: 1.5rem;--sd-gutter-y: 0;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-top:calc(var(--sd-gutter-y) * -1);margin-right:calc(var(--sd-gutter-x) * -0.5);margin-left:calc(var(--sd-gutter-x) * -0.5)}.sd-row>*{box-sizing:border-box;flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--sd-gutter-x) * 0.5);padding-left:calc(var(--sd-gutter-x) * 0.5);margin-top:var(--sd-gutter-y)}.sd-col{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-auto>*{flex:0 0 auto;width:auto}.sd-row-cols-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}@media(min-width: 576px){.sd-col-sm{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-sm-auto{flex:1 0 auto;-ms-flex:1 0 auto;width:100%}.sd-row-cols-sm-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-sm-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-sm-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-sm-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-sm-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-sm-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-sm-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-sm-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-sm-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-sm-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-sm-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-sm-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}}@media(min-width: 768px){.sd-col-md{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-md-auto{flex:1 0 auto;-ms-flex:1 0 auto;width:100%}.sd-row-cols-md-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-md-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-md-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-md-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-md-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-md-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-md-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-md-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-md-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-md-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-md-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-md-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}}@media(min-width: 992px){.sd-col-lg{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-lg-auto{flex:1 0 auto;-ms-flex:1 0 auto;width:100%}.sd-row-cols-lg-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-lg-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-lg-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-lg-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-lg-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-lg-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-lg-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-lg-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-lg-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-lg-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-lg-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-lg-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}}@media(min-width: 1200px){.sd-col-xl{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-xl-auto{flex:1 0 auto;-ms-flex:1 0 auto;width:100%}.sd-row-cols-xl-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-xl-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-xl-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-xl-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-xl-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-xl-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-xl-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-xl-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-xl-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-xl-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-xl-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-xl-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}}.sd-col-auto{flex:0 0 auto;-ms-flex:0 0 auto;width:auto}.sd-col-1{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}.sd-col-2{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-col-3{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-col-4{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-col-5{flex:0 0 auto;-ms-flex:0 0 auto;width:41.6666666667%}.sd-col-6{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-col-7{flex:0 0 auto;-ms-flex:0 0 auto;width:58.3333333333%}.sd-col-8{flex:0 0 auto;-ms-flex:0 0 auto;width:66.6666666667%}.sd-col-9{flex:0 0 auto;-ms-flex:0 0 auto;width:75%}.sd-col-10{flex:0 0 auto;-ms-flex:0 0 auto;width:83.3333333333%}.sd-col-11{flex:0 0 auto;-ms-flex:0 0 auto;width:91.6666666667%}.sd-col-12{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-g-0,.sd-gy-0{--sd-gutter-y: 0}.sd-g-0,.sd-gx-0{--sd-gutter-x: 0}.sd-g-1,.sd-gy-1{--sd-gutter-y: 0.25rem}.sd-g-1,.sd-gx-1{--sd-gutter-x: 0.25rem}.sd-g-2,.sd-gy-2{--sd-gutter-y: 0.5rem}.sd-g-2,.sd-gx-2{--sd-gutter-x: 0.5rem}.sd-g-3,.sd-gy-3{--sd-gutter-y: 1rem}.sd-g-3,.sd-gx-3{--sd-gutter-x: 1rem}.sd-g-4,.sd-gy-4{--sd-gutter-y: 1.5rem}.sd-g-4,.sd-gx-4{--sd-gutter-x: 1.5rem}.sd-g-5,.sd-gy-5{--sd-gutter-y: 3rem}.sd-g-5,.sd-gx-5{--sd-gutter-x: 3rem}@media(min-width: 576px){.sd-col-sm-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.sd-col-sm-1{-ms-flex:0 0 auto;flex:0 0 auto;width:8.3333333333%}.sd-col-sm-2{-ms-flex:0 0 auto;flex:0 0 auto;width:16.6666666667%}.sd-col-sm-3{-ms-flex:0 0 auto;flex:0 0 auto;width:25%}.sd-col-sm-4{-ms-flex:0 0 auto;flex:0 0 auto;width:33.3333333333%}.sd-col-sm-5{-ms-flex:0 0 auto;flex:0 0 auto;width:41.6666666667%}.sd-col-sm-6{-ms-flex:0 0 auto;flex:0 0 auto;width:50%}.sd-col-sm-7{-ms-flex:0 0 auto;flex:0 0 auto;width:58.3333333333%}.sd-col-sm-8{-ms-flex:0 0 auto;flex:0 0 auto;width:66.6666666667%}.sd-col-sm-9{-ms-flex:0 0 auto;flex:0 0 auto;width:75%}.sd-col-sm-10{-ms-flex:0 0 auto;flex:0 0 auto;width:83.3333333333%}.sd-col-sm-11{-ms-flex:0 0 auto;flex:0 0 auto;width:91.6666666667%}.sd-col-sm-12{-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.sd-g-sm-0,.sd-gy-sm-0{--sd-gutter-y: 0}.sd-g-sm-0,.sd-gx-sm-0{--sd-gutter-x: 0}.sd-g-sm-1,.sd-gy-sm-1{--sd-gutter-y: 0.25rem}.sd-g-sm-1,.sd-gx-sm-1{--sd-gutter-x: 0.25rem}.sd-g-sm-2,.sd-gy-sm-2{--sd-gutter-y: 0.5rem}.sd-g-sm-2,.sd-gx-sm-2{--sd-gutter-x: 0.5rem}.sd-g-sm-3,.sd-gy-sm-3{--sd-gutter-y: 1rem}.sd-g-sm-3,.sd-gx-sm-3{--sd-gutter-x: 1rem}.sd-g-sm-4,.sd-gy-sm-4{--sd-gutter-y: 1.5rem}.sd-g-sm-4,.sd-gx-sm-4{--sd-gutter-x: 1.5rem}.sd-g-sm-5,.sd-gy-sm-5{--sd-gutter-y: 3rem}.sd-g-sm-5,.sd-gx-sm-5{--sd-gutter-x: 3rem}}@media(min-width: 768px){.sd-col-md-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.sd-col-md-1{-ms-flex:0 0 auto;flex:0 0 auto;width:8.3333333333%}.sd-col-md-2{-ms-flex:0 0 auto;flex:0 0 auto;width:16.6666666667%}.sd-col-md-3{-ms-flex:0 0 auto;flex:0 0 auto;width:25%}.sd-col-md-4{-ms-flex:0 0 auto;flex:0 0 auto;width:33.3333333333%}.sd-col-md-5{-ms-flex:0 0 auto;flex:0 0 auto;width:41.6666666667%}.sd-col-md-6{-ms-flex:0 0 auto;flex:0 0 auto;width:50%}.sd-col-md-7{-ms-flex:0 0 auto;flex:0 0 auto;width:58.3333333333%}.sd-col-md-8{-ms-flex:0 0 auto;flex:0 0 auto;width:66.6666666667%}.sd-col-md-9{-ms-flex:0 0 auto;flex:0 0 auto;width:75%}.sd-col-md-10{-ms-flex:0 0 auto;flex:0 0 auto;width:83.3333333333%}.sd-col-md-11{-ms-flex:0 0 auto;flex:0 0 auto;width:91.6666666667%}.sd-col-md-12{-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.sd-g-md-0,.sd-gy-md-0{--sd-gutter-y: 0}.sd-g-md-0,.sd-gx-md-0{--sd-gutter-x: 0}.sd-g-md-1,.sd-gy-md-1{--sd-gutter-y: 0.25rem}.sd-g-md-1,.sd-gx-md-1{--sd-gutter-x: 0.25rem}.sd-g-md-2,.sd-gy-md-2{--sd-gutter-y: 0.5rem}.sd-g-md-2,.sd-gx-md-2{--sd-gutter-x: 0.5rem}.sd-g-md-3,.sd-gy-md-3{--sd-gutter-y: 1rem}.sd-g-md-3,.sd-gx-md-3{--sd-gutter-x: 1rem}.sd-g-md-4,.sd-gy-md-4{--sd-gutter-y: 1.5rem}.sd-g-md-4,.sd-gx-md-4{--sd-gutter-x: 1.5rem}.sd-g-md-5,.sd-gy-md-5{--sd-gutter-y: 3rem}.sd-g-md-5,.sd-gx-md-5{--sd-gutter-x: 3rem}}@media(min-width: 992px){.sd-col-lg-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.sd-col-lg-1{-ms-flex:0 0 auto;flex:0 0 auto;width:8.3333333333%}.sd-col-lg-2{-ms-flex:0 0 auto;flex:0 0 auto;width:16.6666666667%}.sd-col-lg-3{-ms-flex:0 0 auto;flex:0 0 auto;width:25%}.sd-col-lg-4{-ms-flex:0 0 auto;flex:0 0 auto;width:33.3333333333%}.sd-col-lg-5{-ms-flex:0 0 auto;flex:0 0 auto;width:41.6666666667%}.sd-col-lg-6{-ms-flex:0 0 auto;flex:0 0 auto;width:50%}.sd-col-lg-7{-ms-flex:0 0 auto;flex:0 0 auto;width:58.3333333333%}.sd-col-lg-8{-ms-flex:0 0 auto;flex:0 0 auto;width:66.6666666667%}.sd-col-lg-9{-ms-flex:0 0 auto;flex:0 0 auto;width:75%}.sd-col-lg-10{-ms-flex:0 0 auto;flex:0 0 auto;width:83.3333333333%}.sd-col-lg-11{-ms-flex:0 0 auto;flex:0 0 auto;width:91.6666666667%}.sd-col-lg-12{-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.sd-g-lg-0,.sd-gy-lg-0{--sd-gutter-y: 0}.sd-g-lg-0,.sd-gx-lg-0{--sd-gutter-x: 0}.sd-g-lg-1,.sd-gy-lg-1{--sd-gutter-y: 0.25rem}.sd-g-lg-1,.sd-gx-lg-1{--sd-gutter-x: 0.25rem}.sd-g-lg-2,.sd-gy-lg-2{--sd-gutter-y: 0.5rem}.sd-g-lg-2,.sd-gx-lg-2{--sd-gutter-x: 0.5rem}.sd-g-lg-3,.sd-gy-lg-3{--sd-gutter-y: 1rem}.sd-g-lg-3,.sd-gx-lg-3{--sd-gutter-x: 1rem}.sd-g-lg-4,.sd-gy-lg-4{--sd-gutter-y: 1.5rem}.sd-g-lg-4,.sd-gx-lg-4{--sd-gutter-x: 1.5rem}.sd-g-lg-5,.sd-gy-lg-5{--sd-gutter-y: 3rem}.sd-g-lg-5,.sd-gx-lg-5{--sd-gutter-x: 3rem}}@media(min-width: 1200px){.sd-col-xl-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.sd-col-xl-1{-ms-flex:0 0 auto;flex:0 0 auto;width:8.3333333333%}.sd-col-xl-2{-ms-flex:0 0 auto;flex:0 0 auto;width:16.6666666667%}.sd-col-xl-3{-ms-flex:0 0 auto;flex:0 0 auto;width:25%}.sd-col-xl-4{-ms-flex:0 0 auto;flex:0 0 auto;width:33.3333333333%}.sd-col-xl-5{-ms-flex:0 0 auto;flex:0 0 auto;width:41.6666666667%}.sd-col-xl-6{-ms-flex:0 0 auto;flex:0 0 auto;width:50%}.sd-col-xl-7{-ms-flex:0 0 auto;flex:0 0 auto;width:58.3333333333%}.sd-col-xl-8{-ms-flex:0 0 auto;flex:0 0 auto;width:66.6666666667%}.sd-col-xl-9{-ms-flex:0 0 auto;flex:0 0 auto;width:75%}.sd-col-xl-10{-ms-flex:0 0 auto;flex:0 0 auto;width:83.3333333333%}.sd-col-xl-11{-ms-flex:0 0 auto;flex:0 0 auto;width:91.6666666667%}.sd-col-xl-12{-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.sd-g-xl-0,.sd-gy-xl-0{--sd-gutter-y: 0}.sd-g-xl-0,.sd-gx-xl-0{--sd-gutter-x: 0}.sd-g-xl-1,.sd-gy-xl-1{--sd-gutter-y: 0.25rem}.sd-g-xl-1,.sd-gx-xl-1{--sd-gutter-x: 0.25rem}.sd-g-xl-2,.sd-gy-xl-2{--sd-gutter-y: 0.5rem}.sd-g-xl-2,.sd-gx-xl-2{--sd-gutter-x: 0.5rem}.sd-g-xl-3,.sd-gy-xl-3{--sd-gutter-y: 1rem}.sd-g-xl-3,.sd-gx-xl-3{--sd-gutter-x: 1rem}.sd-g-xl-4,.sd-gy-xl-4{--sd-gutter-y: 1.5rem}.sd-g-xl-4,.sd-gx-xl-4{--sd-gutter-x: 1.5rem}.sd-g-xl-5,.sd-gy-xl-5{--sd-gutter-y: 3rem}.sd-g-xl-5,.sd-gx-xl-5{--sd-gutter-x: 3rem}}.sd-flex-row-reverse{flex-direction:row-reverse !important}details.sd-dropdown{position:relative;font-size:var(--sd-fontsize-dropdown)}details.sd-dropdown:hover{cursor:pointer}details.sd-dropdown .sd-summary-content{cursor:default}details.sd-dropdown summary.sd-summary-title{padding:.5em .6em .5em 1em;font-size:var(--sd-fontsize-dropdown-title);font-weight:var(--sd-fontweight-dropdown-title);user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;list-style:none;display:inline-flex;justify-content:space-between}details.sd-dropdown summary.sd-summary-title::-webkit-details-marker{display:none}details.sd-dropdown summary.sd-summary-title:focus{outline:none}details.sd-dropdown summary.sd-summary-title .sd-summary-icon{margin-right:.6em;display:inline-flex;align-items:center}details.sd-dropdown summary.sd-summary-title .sd-summary-icon svg{opacity:.8}details.sd-dropdown summary.sd-summary-title .sd-summary-text{flex-grow:1;line-height:1.5;padding-right:.5rem}details.sd-dropdown summary.sd-summary-title .sd-summary-state-marker{pointer-events:none;display:inline-flex;align-items:center}details.sd-dropdown summary.sd-summary-title .sd-summary-state-marker svg{opacity:.6}details.sd-dropdown summary.sd-summary-title:hover .sd-summary-state-marker svg{opacity:1;transform:scale(1.1)}details.sd-dropdown[open] summary .sd-octicon.no-title{visibility:hidden}details.sd-dropdown .sd-summary-chevron-right{transition:.25s}details.sd-dropdown[open]>.sd-summary-title .sd-summary-chevron-right{transform:rotate(90deg)}details.sd-dropdown[open]>.sd-summary-title .sd-summary-chevron-down{transform:rotate(180deg)}details.sd-dropdown:not([open]).sd-card{border:none}details.sd-dropdown:not([open])>.sd-card-header{border:1px solid var(--sd-color-card-border);border-radius:.25rem}details.sd-dropdown.sd-fade-in[open] summary~*{-moz-animation:sd-fade-in .5s ease-in-out;-webkit-animation:sd-fade-in .5s ease-in-out;animation:sd-fade-in .5s ease-in-out}details.sd-dropdown.sd-fade-in-slide-down[open] summary~*{-moz-animation:sd-fade-in .5s ease-in-out,sd-slide-down .5s ease-in-out;-webkit-animation:sd-fade-in .5s ease-in-out,sd-slide-down .5s ease-in-out;animation:sd-fade-in .5s ease-in-out,sd-slide-down .5s ease-in-out}.sd-col>.sd-dropdown{width:100%}.sd-summary-content>.sd-tab-set:first-child{margin-top:0}@keyframes sd-fade-in{0%{opacity:0}100%{opacity:1}}@keyframes sd-slide-down{0%{transform:translate(0, -10px)}100%{transform:translate(0, 0)}}.sd-tab-set{border-radius:.125rem;display:flex;flex-wrap:wrap;margin:1em 0;position:relative}.sd-tab-set>input{opacity:0;position:absolute}.sd-tab-set>input:checked+label{border-color:var(--sd-color-tabs-underline-active);color:var(--sd-color-tabs-label-active)}.sd-tab-set>input:checked+label+.sd-tab-content{display:block}.sd-tab-set>input:not(:checked)+label:hover{color:var(--sd-color-tabs-label-hover);border-color:var(--sd-color-tabs-underline-hover)}.sd-tab-set>input:focus+label{outline-style:auto}.sd-tab-set>input:not(.focus-visible)+label{outline:none;-webkit-tap-highlight-color:transparent}.sd-tab-set>label{border-bottom:.125rem solid transparent;margin-bottom:0;color:var(--sd-color-tabs-label-inactive);border-color:var(--sd-color-tabs-underline-inactive);cursor:pointer;font-size:var(--sd-fontsize-tabs-label);font-weight:700;padding:1em 1.25em .5em;transition:color 250ms;width:auto;z-index:1}html .sd-tab-set>label:hover{color:var(--sd-color-tabs-label-active)}.sd-col>.sd-tab-set{width:100%}.sd-tab-content{box-shadow:0 -0.0625rem var(--sd-color-tabs-overline),0 .0625rem var(--sd-color-tabs-underline);display:none;order:99;padding-bottom:.75rem;padding-top:.75rem;width:100%}.sd-tab-content>:first-child{margin-top:0 !important}.sd-tab-content>:last-child{margin-bottom:0 !important}.sd-tab-content>.sd-tab-set{margin:0}.sd-sphinx-override,.sd-sphinx-override *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.sd-sphinx-override p{margin-top:0}:root{--sd-color-primary: #0071bc;--sd-color-secondary: #6c757d;--sd-color-success: #28a745;--sd-color-info: #17a2b8;--sd-color-warning: #f0b37e;--sd-color-danger: #dc3545;--sd-color-light: #f8f9fa;--sd-color-muted: #6c757d;--sd-color-dark: #212529;--sd-color-black: black;--sd-color-white: white;--sd-color-primary-highlight: #0060a0;--sd-color-secondary-highlight: #5c636a;--sd-color-success-highlight: #228e3b;--sd-color-info-highlight: #148a9c;--sd-color-warning-highlight: #cc986b;--sd-color-danger-highlight: #bb2d3b;--sd-color-light-highlight: #d3d4d5;--sd-color-muted-highlight: #5c636a;--sd-color-dark-highlight: #1c1f23;--sd-color-black-highlight: black;--sd-color-white-highlight: #d9d9d9;--sd-color-primary-bg: rgba(0, 113, 188, 0.2);--sd-color-secondary-bg: rgba(108, 117, 125, 0.2);--sd-color-success-bg: rgba(40, 167, 69, 0.2);--sd-color-info-bg: rgba(23, 162, 184, 0.2);--sd-color-warning-bg: rgba(240, 179, 126, 0.2);--sd-color-danger-bg: rgba(220, 53, 69, 0.2);--sd-color-light-bg: rgba(248, 249, 250, 0.2);--sd-color-muted-bg: rgba(108, 117, 125, 0.2);--sd-color-dark-bg: rgba(33, 37, 41, 0.2);--sd-color-black-bg: rgba(0, 0, 0, 0.2);--sd-color-white-bg: rgba(255, 255, 255, 0.2);--sd-color-primary-text: #fff;--sd-color-secondary-text: #fff;--sd-color-success-text: #fff;--sd-color-info-text: #fff;--sd-color-warning-text: #212529;--sd-color-danger-text: #fff;--sd-color-light-text: #212529;--sd-color-muted-text: #fff;--sd-color-dark-text: #fff;--sd-color-black-text: #fff;--sd-color-white-text: #212529;--sd-color-shadow: rgba(0, 0, 0, 0.15);--sd-color-card-border: rgba(0, 0, 0, 0.125);--sd-color-card-border-hover: hsla(231, 99%, 66%, 1);--sd-color-card-background: transparent;--sd-color-card-text: inherit;--sd-color-card-header: transparent;--sd-color-card-footer: transparent;--sd-color-tabs-label-active: hsla(231, 99%, 66%, 1);--sd-color-tabs-label-hover: hsla(231, 99%, 66%, 1);--sd-color-tabs-label-inactive: hsl(0, 0%, 66%);--sd-color-tabs-underline-active: hsla(231, 99%, 66%, 1);--sd-color-tabs-underline-hover: rgba(178, 206, 245, 0.62);--sd-color-tabs-underline-inactive: transparent;--sd-color-tabs-overline: rgb(222, 222, 222);--sd-color-tabs-underline: rgb(222, 222, 222);--sd-fontsize-tabs-label: 1rem;--sd-fontsize-dropdown: inherit;--sd-fontsize-dropdown-title: 1rem;--sd-fontweight-dropdown-title: 700} diff --git a/_static/basic.css b/_static/basic.css new file mode 100644 index 0000000..2af6139 --- /dev/null +++ b/_static/basic.css @@ -0,0 +1,925 @@ +/* + * basic.css + * ~~~~~~~~~ + * + * Sphinx stylesheet -- basic theme. + * + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +/* -- main layout ----------------------------------------------------------- */ + +div.clearer { + clear: both; +} + +div.section::after { + display: block; + content: ''; + clear: left; +} + +/* -- relbar ---------------------------------------------------------------- */ + +div.related { + width: 100%; + font-size: 90%; +} + +div.related h3 { + display: none; +} + +div.related ul { + margin: 0; + padding: 0 0 0 10px; + list-style: none; +} + +div.related li { + display: inline; +} + +div.related li.right { + float: right; + margin-right: 5px; +} + +/* -- sidebar --------------------------------------------------------------- */ + +div.sphinxsidebarwrapper { + padding: 10px 5px 0 10px; +} + +div.sphinxsidebar { + float: left; + width: 270px; + margin-left: -100%; + font-size: 90%; + word-wrap: break-word; + overflow-wrap : break-word; +} + +div.sphinxsidebar ul { + list-style: none; +} + +div.sphinxsidebar ul ul, +div.sphinxsidebar ul.want-points { + margin-left: 20px; + list-style: square; +} + +div.sphinxsidebar ul ul { + margin-top: 0; + margin-bottom: 0; +} + +div.sphinxsidebar form { + margin-top: 10px; +} + +div.sphinxsidebar input { + border: 1px solid #98dbcc; + font-family: sans-serif; + font-size: 1em; +} + +div.sphinxsidebar #searchbox form.search { + overflow: hidden; +} + +div.sphinxsidebar #searchbox input[type="text"] { + float: left; + width: 80%; + padding: 0.25em; + box-sizing: border-box; +} + +div.sphinxsidebar #searchbox input[type="submit"] { + float: left; + width: 20%; + border-left: none; + padding: 0.25em; + box-sizing: border-box; +} + + +img { + border: 0; + max-width: 100%; +} + +/* -- search page ----------------------------------------------------------- */ + +ul.search { + margin: 10px 0 0 20px; + padding: 0; +} + +ul.search li { + padding: 5px 0 5px 20px; + background-image: url(file.png); + background-repeat: no-repeat; + background-position: 0 7px; +} + +ul.search li a { + font-weight: bold; +} + +ul.search li p.context { + color: #888; + margin: 2px 0 0 30px; + text-align: left; +} + +ul.keywordmatches li.goodmatch a { + font-weight: bold; +} + +/* -- index page ------------------------------------------------------------ */ + +table.contentstable { + width: 90%; + margin-left: auto; + margin-right: auto; +} + +table.contentstable p.biglink { + line-height: 150%; +} + +a.biglink { + font-size: 1.3em; +} + +span.linkdescr { + font-style: italic; + padding-top: 5px; + font-size: 90%; +} + +/* -- general index --------------------------------------------------------- */ + +table.indextable { + width: 100%; +} + +table.indextable td { + text-align: left; + vertical-align: top; +} + +table.indextable ul { + margin-top: 0; + margin-bottom: 0; + list-style-type: none; +} + +table.indextable > tbody > tr > td > ul { + padding-left: 0em; +} + +table.indextable tr.pcap { + height: 10px; +} + +table.indextable tr.cap { + margin-top: 10px; + background-color: #f2f2f2; +} + +img.toggler { + margin-right: 3px; + margin-top: 3px; + cursor: pointer; +} + +div.modindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +div.genindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +/* -- domain module index --------------------------------------------------- */ + +table.modindextable td { + padding: 2px; + border-collapse: collapse; +} + +/* -- general body styles --------------------------------------------------- */ + +div.body { + min-width: 360px; + max-width: 800px; +} + +div.body p, div.body dd, div.body li, div.body blockquote { + -moz-hyphens: auto; + -ms-hyphens: auto; + -webkit-hyphens: auto; + hyphens: auto; +} + +a.headerlink { + visibility: hidden; +} + +a:visited { + color: #551A8B; +} + +h1:hover > a.headerlink, +h2:hover > a.headerlink, +h3:hover > a.headerlink, +h4:hover > a.headerlink, +h5:hover > a.headerlink, +h6:hover > a.headerlink, +dt:hover > a.headerlink, +caption:hover > a.headerlink, +p.caption:hover > a.headerlink, +div.code-block-caption:hover > a.headerlink { + visibility: visible; +} + +div.body p.caption { + text-align: inherit; +} + +div.body td { + text-align: left; +} + +.first { + margin-top: 0 !important; +} + +p.rubric { + margin-top: 30px; + font-weight: bold; +} + +img.align-left, figure.align-left, .figure.align-left, object.align-left { + clear: left; + float: left; + margin-right: 1em; +} + +img.align-right, figure.align-right, .figure.align-right, object.align-right { + clear: right; + float: right; + margin-left: 1em; +} + +img.align-center, figure.align-center, .figure.align-center, object.align-center { + display: block; + margin-left: auto; + margin-right: auto; +} + +img.align-default, figure.align-default, .figure.align-default { + display: block; + margin-left: auto; + margin-right: auto; +} + +.align-left { + text-align: left; +} + +.align-center { + text-align: center; +} + +.align-default { + text-align: center; +} + +.align-right { + text-align: right; +} + +/* -- sidebars -------------------------------------------------------------- */ + +div.sidebar, +aside.sidebar { + margin: 0 0 0.5em 1em; + border: 1px solid #ddb; + padding: 7px; + background-color: #ffe; + width: 40%; + float: right; + clear: right; + overflow-x: auto; +} + +p.sidebar-title { + font-weight: bold; +} + +nav.contents, +aside.topic, +div.admonition, div.topic, blockquote { + clear: left; +} + +/* -- topics ---------------------------------------------------------------- */ + +nav.contents, +aside.topic, +div.topic { + border: 1px solid #ccc; + padding: 7px; + margin: 10px 0 10px 0; +} + +p.topic-title { + font-size: 1.1em; + font-weight: bold; + margin-top: 10px; +} + +/* -- admonitions ----------------------------------------------------------- */ + +div.admonition { + margin-top: 10px; + margin-bottom: 10px; + padding: 7px; +} + +div.admonition dt { + font-weight: bold; +} + +p.admonition-title { + margin: 0px 10px 5px 0px; + font-weight: bold; +} + +div.body p.centered { + text-align: center; + margin-top: 25px; +} + +/* -- content of sidebars/topics/admonitions -------------------------------- */ + +div.sidebar > :last-child, +aside.sidebar > :last-child, +nav.contents > :last-child, +aside.topic > :last-child, +div.topic > :last-child, +div.admonition > :last-child { + margin-bottom: 0; +} + +div.sidebar::after, +aside.sidebar::after, +nav.contents::after, +aside.topic::after, +div.topic::after, +div.admonition::after, +blockquote::after { + display: block; + content: ''; + clear: both; +} + +/* -- tables ---------------------------------------------------------------- */ + +table.docutils { + margin-top: 10px; + margin-bottom: 10px; + border: 0; + border-collapse: collapse; +} + +table.align-center { + margin-left: auto; + margin-right: auto; +} + +table.align-default { + margin-left: auto; + margin-right: auto; +} + +table caption span.caption-number { + font-style: italic; +} + +table caption span.caption-text { +} + +table.docutils td, table.docutils th { + padding: 1px 8px 1px 5px; + border-top: 0; + border-left: 0; + border-right: 0; + border-bottom: 1px solid #aaa; +} + +th { + text-align: left; + padding-right: 5px; +} + +table.citation { + border-left: solid 1px gray; + margin-left: 1px; +} + +table.citation td { + border-bottom: none; +} + +th > :first-child, +td > :first-child { + margin-top: 0px; +} + +th > :last-child, +td > :last-child { + margin-bottom: 0px; +} + +/* -- figures --------------------------------------------------------------- */ + +div.figure, figure { + margin: 0.5em; + padding: 0.5em; +} + +div.figure p.caption, figcaption { + padding: 0.3em; +} + +div.figure p.caption span.caption-number, +figcaption span.caption-number { + font-style: italic; +} + +div.figure p.caption span.caption-text, +figcaption span.caption-text { +} + +/* -- field list styles ----------------------------------------------------- */ + +table.field-list td, table.field-list th { + border: 0 !important; +} + +.field-list ul { + margin: 0; + padding-left: 1em; +} + +.field-list p { + margin: 0; +} + +.field-name { + -moz-hyphens: manual; + -ms-hyphens: manual; + -webkit-hyphens: manual; + hyphens: manual; +} + +/* -- hlist styles ---------------------------------------------------------- */ + +table.hlist { + margin: 1em 0; +} + +table.hlist td { + vertical-align: top; +} + +/* -- object description styles --------------------------------------------- */ + +.sig { + font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; +} + +.sig-name, code.descname { + background-color: transparent; + font-weight: bold; +} + +.sig-name { + font-size: 1.1em; +} + +code.descname { + font-size: 1.2em; +} + +.sig-prename, code.descclassname { + background-color: transparent; +} + +.optional { + font-size: 1.3em; +} + +.sig-paren { + font-size: larger; +} + +.sig-param.n { + font-style: italic; +} + +/* C++ specific styling */ + +.sig-inline.c-texpr, +.sig-inline.cpp-texpr { + font-family: unset; +} + +.sig.c .k, .sig.c .kt, +.sig.cpp .k, .sig.cpp .kt { + color: #0033B3; +} + +.sig.c .m, +.sig.cpp .m { + color: #1750EB; +} + +.sig.c .s, .sig.c .sc, +.sig.cpp .s, .sig.cpp .sc { + color: #067D17; +} + + +/* -- other body styles ----------------------------------------------------- */ + +ol.arabic { + list-style: decimal; +} + +ol.loweralpha { + list-style: lower-alpha; +} + +ol.upperalpha { + list-style: upper-alpha; +} + +ol.lowerroman { + list-style: lower-roman; +} + +ol.upperroman { + list-style: upper-roman; +} + +:not(li) > ol > li:first-child > :first-child, +:not(li) > ul > li:first-child > :first-child { + margin-top: 0px; +} + +:not(li) > ol > li:last-child > :last-child, +:not(li) > ul > li:last-child > :last-child { + margin-bottom: 0px; +} + +ol.simple ol p, +ol.simple ul p, +ul.simple ol p, +ul.simple ul p { + margin-top: 0; +} + +ol.simple > li:not(:first-child) > p, +ul.simple > li:not(:first-child) > p { + margin-top: 0; +} + +ol.simple p, +ul.simple p { + margin-bottom: 0; +} + +aside.footnote > span, +div.citation > span { + float: left; +} +aside.footnote > span:last-of-type, +div.citation > span:last-of-type { + padding-right: 0.5em; +} +aside.footnote > p { + margin-left: 2em; +} +div.citation > p { + margin-left: 4em; +} +aside.footnote > p:last-of-type, +div.citation > p:last-of-type { + margin-bottom: 0em; +} +aside.footnote > p:last-of-type:after, +div.citation > p:last-of-type:after { + content: ""; + clear: both; +} + +dl.field-list { + display: grid; + grid-template-columns: fit-content(30%) auto; +} + +dl.field-list > dt { + font-weight: bold; + word-break: break-word; + padding-left: 0.5em; + padding-right: 5px; +} + +dl.field-list > dd { + padding-left: 0.5em; + margin-top: 0em; + margin-left: 0em; + margin-bottom: 0em; +} + +dl { + margin-bottom: 15px; +} + +dd > :first-child { + margin-top: 0px; +} + +dd ul, dd table { + margin-bottom: 10px; +} + +dd { + margin-top: 3px; + margin-bottom: 10px; + margin-left: 30px; +} + +.sig dd { + margin-top: 0px; + margin-bottom: 0px; +} + +.sig dl { + margin-top: 0px; + margin-bottom: 0px; +} + +dl > dd:last-child, +dl > dd:last-child > :last-child { + margin-bottom: 0; +} + +dt:target, span.highlighted { + background-color: #fbe54e; +} + +rect.highlighted { + fill: #fbe54e; +} + +dl.glossary dt { + font-weight: bold; + font-size: 1.1em; +} + +.versionmodified { + font-style: italic; +} + +.system-message { + background-color: #fda; + padding: 5px; + border: 3px solid red; +} + +.footnote:target { + background-color: #ffa; +} + +.line-block { + display: block; + margin-top: 1em; + margin-bottom: 1em; +} + +.line-block .line-block { + margin-top: 0; + margin-bottom: 0; + margin-left: 1.5em; +} + +.guilabel, .menuselection { + font-family: sans-serif; +} + +.accelerator { + text-decoration: underline; +} + +.classifier { + font-style: oblique; +} + +.classifier:before { + font-style: normal; + margin: 0 0.5em; + content: ":"; + display: inline-block; +} + +abbr, acronym { + border-bottom: dotted 1px; + cursor: help; +} + +.translated { + background-color: rgba(207, 255, 207, 0.2) +} + +.untranslated { + background-color: rgba(255, 207, 207, 0.2) +} + +/* -- code displays --------------------------------------------------------- */ + +pre { + overflow: auto; + overflow-y: hidden; /* fixes display issues on Chrome browsers */ +} + +pre, div[class*="highlight-"] { + clear: both; +} + +span.pre { + -moz-hyphens: none; + -ms-hyphens: none; + -webkit-hyphens: none; + hyphens: none; + white-space: nowrap; +} + +div[class*="highlight-"] { + margin: 1em 0; +} + +td.linenos pre { + border: 0; + background-color: transparent; + color: #aaa; +} + +table.highlighttable { + display: block; +} + +table.highlighttable tbody { + display: block; +} + +table.highlighttable tr { + display: flex; +} + +table.highlighttable td { + margin: 0; + padding: 0; +} + +table.highlighttable td.linenos { + padding-right: 0.5em; +} + +table.highlighttable td.code { + flex: 1; + overflow: hidden; +} + +.highlight .hll { + display: block; +} + +div.highlight pre, +table.highlighttable pre { + margin: 0; +} + +div.code-block-caption + div { + margin-top: 0; +} + +div.code-block-caption { + margin-top: 1em; + padding: 2px 5px; + font-size: small; +} + +div.code-block-caption code { + background-color: transparent; +} + +table.highlighttable td.linenos, +span.linenos, +div.highlight span.gp { /* gp: Generic.Prompt */ + user-select: none; + -webkit-user-select: text; /* Safari fallback only */ + -webkit-user-select: none; /* Chrome/Safari */ + -moz-user-select: none; /* Firefox */ + -ms-user-select: none; /* IE10+ */ +} + +div.code-block-caption span.caption-number { + padding: 0.1em 0.3em; + font-style: italic; +} + +div.code-block-caption span.caption-text { +} + +div.literal-block-wrapper { + margin: 1em 0; +} + +code.xref, a code { + background-color: transparent; + font-weight: bold; +} + +h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { + background-color: transparent; +} + +.viewcode-link { + float: right; +} + +.viewcode-back { + float: right; + font-family: sans-serif; +} + +div.viewcode-block:target { + margin: -1px -10px; + padding: 0 10px; +} + +/* -- math display ---------------------------------------------------------- */ + +img.math { + vertical-align: middle; +} + +div.body div.math p { + text-align: center; +} + +span.eqno { + float: right; +} + +span.eqno a.headerlink { + position: absolute; + z-index: 1; +} + +div.math:hover a.headerlink { + visibility: visible; +} + +/* -- printout stylesheet --------------------------------------------------- */ + +@media print { + div.document, + div.documentwrapper, + div.bodywrapper { + margin: 0 !important; + width: 100%; + } + + div.sphinxsidebar, + div.related, + div.footer, + #top-link { + display: none; + } +} \ No newline at end of file diff --git a/_static/check-solid.svg b/_static/check-solid.svg new file mode 100644 index 0000000..92fad4b --- /dev/null +++ b/_static/check-solid.svg @@ -0,0 +1,4 @@ + + + + diff --git a/_static/clipboard.min.js b/_static/clipboard.min.js new file mode 100644 index 0000000..54b3c46 --- /dev/null +++ b/_static/clipboard.min.js @@ -0,0 +1,7 @@ +/*! + * clipboard.js v2.0.8 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return n={686:function(t,e,n){"use strict";n.d(e,{default:function(){return o}});var e=n(279),i=n.n(e),e=n(370),u=n.n(e),e=n(817),c=n.n(e);function a(t){try{return document.execCommand(t)}catch(t){return}}var f=function(t){t=c()(t);return a("cut"),t};var l=function(t){var e,n,o,r=1 + + + + diff --git a/_static/copybutton.css b/_static/copybutton.css new file mode 100644 index 0000000..f1916ec --- /dev/null +++ b/_static/copybutton.css @@ -0,0 +1,94 @@ +/* Copy buttons */ +button.copybtn { + position: absolute; + display: flex; + top: .3em; + right: .3em; + width: 1.7em; + height: 1.7em; + opacity: 0; + transition: opacity 0.3s, border .3s, background-color .3s; + user-select: none; + padding: 0; + border: none; + outline: none; + border-radius: 0.4em; + /* The colors that GitHub uses */ + border: #1b1f2426 1px solid; + background-color: #f6f8fa; + color: #57606a; +} + +button.copybtn.success { + border-color: #22863a; + color: #22863a; +} + +button.copybtn svg { + stroke: currentColor; + width: 1.5em; + height: 1.5em; + padding: 0.1em; +} + +div.highlight { + position: relative; +} + +/* Show the copybutton */ +.highlight:hover button.copybtn, button.copybtn.success { + opacity: 1; +} + +.highlight button.copybtn:hover { + background-color: rgb(235, 235, 235); +} + +.highlight button.copybtn:active { + background-color: rgb(187, 187, 187); +} + +/** + * A minimal CSS-only tooltip copied from: + * https://codepen.io/mildrenben/pen/rVBrpK + * + * To use, write HTML like the following: + * + *

Short

+ */ + .o-tooltip--left { + position: relative; + } + + .o-tooltip--left:after { + opacity: 0; + visibility: hidden; + position: absolute; + content: attr(data-tooltip); + padding: .2em; + font-size: .8em; + left: -.2em; + background: grey; + color: white; + white-space: nowrap; + z-index: 2; + border-radius: 2px; + transform: translateX(-102%) translateY(0); + transition: opacity 0.2s cubic-bezier(0.64, 0.09, 0.08, 1), transform 0.2s cubic-bezier(0.64, 0.09, 0.08, 1); +} + +.o-tooltip--left:hover:after { + display: block; + opacity: 1; + visibility: visible; + transform: translateX(-100%) translateY(0); + transition: opacity 0.2s cubic-bezier(0.64, 0.09, 0.08, 1), transform 0.2s cubic-bezier(0.64, 0.09, 0.08, 1); + transition-delay: .5s; +} + +/* By default the copy button shouldn't show up when printing a page */ +@media print { + button.copybtn { + display: none; + } +} diff --git a/_static/copybutton.js b/_static/copybutton.js new file mode 100644 index 0000000..2ea7ff3 --- /dev/null +++ b/_static/copybutton.js @@ -0,0 +1,248 @@ +// Localization support +const messages = { + 'en': { + 'copy': 'Copy', + 'copy_to_clipboard': 'Copy to clipboard', + 'copy_success': 'Copied!', + 'copy_failure': 'Failed to copy', + }, + 'es' : { + 'copy': 'Copiar', + 'copy_to_clipboard': 'Copiar al portapapeles', + 'copy_success': '¡Copiado!', + 'copy_failure': 'Error al copiar', + }, + 'de' : { + 'copy': 'Kopieren', + 'copy_to_clipboard': 'In die Zwischenablage kopieren', + 'copy_success': 'Kopiert!', + 'copy_failure': 'Fehler beim Kopieren', + }, + 'fr' : { + 'copy': 'Copier', + 'copy_to_clipboard': 'Copier dans le presse-papier', + 'copy_success': 'Copié !', + 'copy_failure': 'Échec de la copie', + }, + 'ru': { + 'copy': 'Скопировать', + 'copy_to_clipboard': 'Скопировать в буфер', + 'copy_success': 'Скопировано!', + 'copy_failure': 'Не удалось скопировать', + }, + 'zh-CN': { + 'copy': '复制', + 'copy_to_clipboard': '复制到剪贴板', + 'copy_success': '复制成功!', + 'copy_failure': '复制失败', + }, + 'it' : { + 'copy': 'Copiare', + 'copy_to_clipboard': 'Copiato negli appunti', + 'copy_success': 'Copiato!', + 'copy_failure': 'Errore durante la copia', + } +} + +let locale = 'en' +if( document.documentElement.lang !== undefined + && messages[document.documentElement.lang] !== undefined ) { + locale = document.documentElement.lang +} + +let doc_url_root = DOCUMENTATION_OPTIONS.URL_ROOT; +if (doc_url_root == '#') { + doc_url_root = ''; +} + +/** + * SVG files for our copy buttons + */ +let iconCheck = ` + ${messages[locale]['copy_success']} + + +` + +// If the user specified their own SVG use that, otherwise use the default +let iconCopy = ``; +if (!iconCopy) { + iconCopy = ` + ${messages[locale]['copy_to_clipboard']} + + + +` +} + +/** + * Set up copy/paste for code blocks + */ + +const runWhenDOMLoaded = cb => { + if (document.readyState != 'loading') { + cb() + } else if (document.addEventListener) { + document.addEventListener('DOMContentLoaded', cb) + } else { + document.attachEvent('onreadystatechange', function() { + if (document.readyState == 'complete') cb() + }) + } +} + +const codeCellId = index => `codecell${index}` + +// Clears selected text since ClipboardJS will select the text when copying +const clearSelection = () => { + if (window.getSelection) { + window.getSelection().removeAllRanges() + } else if (document.selection) { + document.selection.empty() + } +} + +// Changes tooltip text for a moment, then changes it back +// We want the timeout of our `success` class to be a bit shorter than the +// tooltip and icon change, so that we can hide the icon before changing back. +var timeoutIcon = 2000; +var timeoutSuccessClass = 1500; + +const temporarilyChangeTooltip = (el, oldText, newText) => { + el.setAttribute('data-tooltip', newText) + el.classList.add('success') + // Remove success a little bit sooner than we change the tooltip + // So that we can use CSS to hide the copybutton first + setTimeout(() => el.classList.remove('success'), timeoutSuccessClass) + setTimeout(() => el.setAttribute('data-tooltip', oldText), timeoutIcon) +} + +// Changes the copy button icon for two seconds, then changes it back +const temporarilyChangeIcon = (el) => { + el.innerHTML = iconCheck; + setTimeout(() => {el.innerHTML = iconCopy}, timeoutIcon) +} + +const addCopyButtonToCodeCells = () => { + // If ClipboardJS hasn't loaded, wait a bit and try again. This + // happens because we load ClipboardJS asynchronously. + if (window.ClipboardJS === undefined) { + setTimeout(addCopyButtonToCodeCells, 250) + return + } + + // Add copybuttons to all of our code cells + const COPYBUTTON_SELECTOR = 'div.highlight pre'; + const codeCells = document.querySelectorAll(COPYBUTTON_SELECTOR) + codeCells.forEach((codeCell, index) => { + const id = codeCellId(index) + codeCell.setAttribute('id', id) + + const clipboardButton = id => + `` + codeCell.insertAdjacentHTML('afterend', clipboardButton(id)) + }) + +function escapeRegExp(string) { + return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string +} + +/** + * Removes excluded text from a Node. + * + * @param {Node} target Node to filter. + * @param {string} exclude CSS selector of nodes to exclude. + * @returns {DOMString} Text from `target` with text removed. + */ +function filterText(target, exclude) { + const clone = target.cloneNode(true); // clone as to not modify the live DOM + if (exclude) { + // remove excluded nodes + clone.querySelectorAll(exclude).forEach(node => node.remove()); + } + return clone.innerText; +} + +// Callback when a copy button is clicked. Will be passed the node that was clicked +// should then grab the text and replace pieces of text that shouldn't be used in output +function formatCopyText(textContent, copybuttonPromptText, isRegexp = false, onlyCopyPromptLines = true, removePrompts = true, copyEmptyLines = true, lineContinuationChar = "", hereDocDelim = "") { + var regexp; + var match; + + // Do we check for line continuation characters and "HERE-documents"? + var useLineCont = !!lineContinuationChar + var useHereDoc = !!hereDocDelim + + // create regexp to capture prompt and remaining line + if (isRegexp) { + regexp = new RegExp('^(' + copybuttonPromptText + ')(.*)') + } else { + regexp = new RegExp('^(' + escapeRegExp(copybuttonPromptText) + ')(.*)') + } + + const outputLines = []; + var promptFound = false; + var gotLineCont = false; + var gotHereDoc = false; + const lineGotPrompt = []; + for (const line of textContent.split('\n')) { + match = line.match(regexp) + if (match || gotLineCont || gotHereDoc) { + promptFound = regexp.test(line) + lineGotPrompt.push(promptFound) + if (removePrompts && promptFound) { + outputLines.push(match[2]) + } else { + outputLines.push(line) + } + gotLineCont = line.endsWith(lineContinuationChar) & useLineCont + if (line.includes(hereDocDelim) & useHereDoc) + gotHereDoc = !gotHereDoc + } else if (!onlyCopyPromptLines) { + outputLines.push(line) + } else if (copyEmptyLines && line.trim() === '') { + outputLines.push(line) + } + } + + // If no lines with the prompt were found then just use original lines + if (lineGotPrompt.some(v => v === true)) { + textContent = outputLines.join('\n'); + } + + // Remove a trailing newline to avoid auto-running when pasting + if (textContent.endsWith("\n")) { + textContent = textContent.slice(0, -1) + } + return textContent +} + + +var copyTargetText = (trigger) => { + var target = document.querySelector(trigger.attributes['data-clipboard-target'].value); + + // get filtered text + let exclude = '.linenos'; + + let text = filterText(target, exclude); + return formatCopyText(text, '', false, true, true, true, '', '') +} + + // Initialize with a callback so we can modify the text before copy + const clipboard = new ClipboardJS('.copybtn', {text: copyTargetText}) + + // Update UI with error/success messages + clipboard.on('success', event => { + clearSelection() + temporarilyChangeTooltip(event.trigger, messages[locale]['copy'], messages[locale]['copy_success']) + temporarilyChangeIcon(event.trigger) + }) + + clipboard.on('error', event => { + temporarilyChangeTooltip(event.trigger, messages[locale]['copy'], messages[locale]['copy_failure']) + }) +} + +runWhenDOMLoaded(addCopyButtonToCodeCells) \ No newline at end of file diff --git a/_static/copybutton_funcs.js b/_static/copybutton_funcs.js new file mode 100644 index 0000000..dbe1aaa --- /dev/null +++ b/_static/copybutton_funcs.js @@ -0,0 +1,73 @@ +function escapeRegExp(string) { + return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string +} + +/** + * Removes excluded text from a Node. + * + * @param {Node} target Node to filter. + * @param {string} exclude CSS selector of nodes to exclude. + * @returns {DOMString} Text from `target` with text removed. + */ +export function filterText(target, exclude) { + const clone = target.cloneNode(true); // clone as to not modify the live DOM + if (exclude) { + // remove excluded nodes + clone.querySelectorAll(exclude).forEach(node => node.remove()); + } + return clone.innerText; +} + +// Callback when a copy button is clicked. Will be passed the node that was clicked +// should then grab the text and replace pieces of text that shouldn't be used in output +export function formatCopyText(textContent, copybuttonPromptText, isRegexp = false, onlyCopyPromptLines = true, removePrompts = true, copyEmptyLines = true, lineContinuationChar = "", hereDocDelim = "") { + var regexp; + var match; + + // Do we check for line continuation characters and "HERE-documents"? + var useLineCont = !!lineContinuationChar + var useHereDoc = !!hereDocDelim + + // create regexp to capture prompt and remaining line + if (isRegexp) { + regexp = new RegExp('^(' + copybuttonPromptText + ')(.*)') + } else { + regexp = new RegExp('^(' + escapeRegExp(copybuttonPromptText) + ')(.*)') + } + + const outputLines = []; + var promptFound = false; + var gotLineCont = false; + var gotHereDoc = false; + const lineGotPrompt = []; + for (const line of textContent.split('\n')) { + match = line.match(regexp) + if (match || gotLineCont || gotHereDoc) { + promptFound = regexp.test(line) + lineGotPrompt.push(promptFound) + if (removePrompts && promptFound) { + outputLines.push(match[2]) + } else { + outputLines.push(line) + } + gotLineCont = line.endsWith(lineContinuationChar) & useLineCont + if (line.includes(hereDocDelim) & useHereDoc) + gotHereDoc = !gotHereDoc + } else if (!onlyCopyPromptLines) { + outputLines.push(line) + } else if (copyEmptyLines && line.trim() === '') { + outputLines.push(line) + } + } + + // If no lines with the prompt were found then just use original lines + if (lineGotPrompt.some(v => v === true)) { + textContent = outputLines.join('\n'); + } + + // Remove a trailing newline to avoid auto-running when pasting + if (textContent.endsWith("\n")) { + textContent = textContent.slice(0, -1) + } + return textContent +} diff --git a/_static/design-tabs.js b/_static/design-tabs.js new file mode 100644 index 0000000..b25bd6a --- /dev/null +++ b/_static/design-tabs.js @@ -0,0 +1,101 @@ +// @ts-check + +// Extra JS capability for selected tabs to be synced +// The selection is stored in local storage so that it persists across page loads. + +/** + * @type {Record} + */ +let sd_id_to_elements = {}; +const storageKeyPrefix = "sphinx-design-tab-id-"; + +/** + * Create a key for a tab element. + * @param {HTMLElement} el - The tab element. + * @returns {[string, string, string] | null} - The key. + * + */ +function create_key(el) { + let syncId = el.getAttribute("data-sync-id"); + let syncGroup = el.getAttribute("data-sync-group"); + if (!syncId || !syncGroup) return null; + return [syncGroup, syncId, syncGroup + "--" + syncId]; +} + +/** + * Initialize the tab selection. + * + */ +function ready() { + // Find all tabs with sync data + + /** @type {string[]} */ + let groups = []; + + document.querySelectorAll(".sd-tab-label").forEach((label) => { + if (label instanceof HTMLElement) { + let data = create_key(label); + if (data) { + let [group, id, key] = data; + + // add click event listener + // @ts-ignore + label.onclick = onSDLabelClick; + + // store map of key to elements + if (!sd_id_to_elements[key]) { + sd_id_to_elements[key] = []; + } + sd_id_to_elements[key].push(label); + + if (groups.indexOf(group) === -1) { + groups.push(group); + // Check if a specific tab has been selected via URL parameter + const tabParam = new URLSearchParams(window.location.search).get( + group + ); + if (tabParam) { + console.log( + "sphinx-design: Selecting tab id for group '" + + group + + "' from URL parameter: " + + tabParam + ); + window.sessionStorage.setItem(storageKeyPrefix + group, tabParam); + } + } + + // Check is a specific tab has been selected previously + let previousId = window.sessionStorage.getItem( + storageKeyPrefix + group + ); + if (previousId === id) { + // console.log( + // "sphinx-design: Selecting tab from session storage: " + id + // ); + // @ts-ignore + label.previousElementSibling.checked = true; + } + } + } + }); +} + +/** + * Activate other tabs with the same sync id. + * + * @this {HTMLElement} - The element that was clicked. + */ +function onSDLabelClick() { + let data = create_key(this); + if (!data) return; + let [group, id, key] = data; + for (const label of sd_id_to_elements[key]) { + if (label === this) continue; + // @ts-ignore + label.previousElementSibling.checked = true; + } + window.sessionStorage.setItem(storageKeyPrefix + group, id); +} + +document.addEventListener("DOMContentLoaded", ready, false); diff --git a/_static/doctools.js b/_static/doctools.js new file mode 100644 index 0000000..4d67807 --- /dev/null +++ b/_static/doctools.js @@ -0,0 +1,156 @@ +/* + * doctools.js + * ~~~~~~~~~~~ + * + * Base JavaScript utilities for all Sphinx HTML documentation. + * + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ +"use strict"; + +const BLACKLISTED_KEY_CONTROL_ELEMENTS = new Set([ + "TEXTAREA", + "INPUT", + "SELECT", + "BUTTON", +]); + +const _ready = (callback) => { + if (document.readyState !== "loading") { + callback(); + } else { + document.addEventListener("DOMContentLoaded", callback); + } +}; + +/** + * Small JavaScript module for the documentation. + */ +const Documentation = { + init: () => { + Documentation.initDomainIndexTable(); + Documentation.initOnKeyListeners(); + }, + + /** + * i18n support + */ + TRANSLATIONS: {}, + PLURAL_EXPR: (n) => (n === 1 ? 0 : 1), + LOCALE: "unknown", + + // gettext and ngettext don't access this so that the functions + // can safely bound to a different name (_ = Documentation.gettext) + gettext: (string) => { + const translated = Documentation.TRANSLATIONS[string]; + switch (typeof translated) { + case "undefined": + return string; // no translation + case "string": + return translated; // translation exists + default: + return translated[0]; // (singular, plural) translation tuple exists + } + }, + + ngettext: (singular, plural, n) => { + const translated = Documentation.TRANSLATIONS[singular]; + if (typeof translated !== "undefined") + return translated[Documentation.PLURAL_EXPR(n)]; + return n === 1 ? singular : plural; + }, + + addTranslations: (catalog) => { + Object.assign(Documentation.TRANSLATIONS, catalog.messages); + Documentation.PLURAL_EXPR = new Function( + "n", + `return (${catalog.plural_expr})` + ); + Documentation.LOCALE = catalog.locale; + }, + + /** + * helper function to focus on search bar + */ + focusSearchBar: () => { + document.querySelectorAll("input[name=q]")[0]?.focus(); + }, + + /** + * Initialise the domain index toggle buttons + */ + initDomainIndexTable: () => { + const toggler = (el) => { + const idNumber = el.id.substr(7); + const toggledRows = document.querySelectorAll(`tr.cg-${idNumber}`); + if (el.src.substr(-9) === "minus.png") { + el.src = `${el.src.substr(0, el.src.length - 9)}plus.png`; + toggledRows.forEach((el) => (el.style.display = "none")); + } else { + el.src = `${el.src.substr(0, el.src.length - 8)}minus.png`; + toggledRows.forEach((el) => (el.style.display = "")); + } + }; + + const togglerElements = document.querySelectorAll("img.toggler"); + togglerElements.forEach((el) => + el.addEventListener("click", (event) => toggler(event.currentTarget)) + ); + togglerElements.forEach((el) => (el.style.display = "")); + if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) togglerElements.forEach(toggler); + }, + + initOnKeyListeners: () => { + // only install a listener if it is really needed + if ( + !DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS && + !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS + ) + return; + + document.addEventListener("keydown", (event) => { + // bail for input elements + if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return; + // bail with special keys + if (event.altKey || event.ctrlKey || event.metaKey) return; + + if (!event.shiftKey) { + switch (event.key) { + case "ArrowLeft": + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; + + const prevLink = document.querySelector('link[rel="prev"]'); + if (prevLink && prevLink.href) { + window.location.href = prevLink.href; + event.preventDefault(); + } + break; + case "ArrowRight": + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; + + const nextLink = document.querySelector('link[rel="next"]'); + if (nextLink && nextLink.href) { + window.location.href = nextLink.href; + event.preventDefault(); + } + break; + } + } + + // some keyboard layouts may need Shift to get / + switch (event.key) { + case "/": + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break; + Documentation.focusSearchBar(); + event.preventDefault(); + } + }); + }, +}; + +// quick alias for translations +const _ = Documentation.gettext; + +_ready(Documentation.init); diff --git a/_static/documentation_options.js b/_static/documentation_options.js new file mode 100644 index 0000000..dab586c --- /dev/null +++ b/_static/documentation_options.js @@ -0,0 +1,13 @@ +const DOCUMENTATION_OPTIONS = { + VERSION: '', + LANGUAGE: 'en', + COLLAPSE_INDEX: false, + BUILDER: 'html', + FILE_SUFFIX: '.html', + LINK_SUFFIX: '.html', + HAS_SOURCE: true, + SOURCELINK_SUFFIX: '', + NAVIGATION_WITH_KEYS: false, + SHOW_SEARCH_SUMMARY: true, + ENABLE_SEARCH_SHORTCUTS: true, +}; \ No newline at end of file diff --git a/_static/file.png b/_static/file.png new file mode 100644 index 0000000..a858a41 Binary files /dev/null and b/_static/file.png differ diff --git a/_static/images/logo_binder.svg b/_static/images/logo_binder.svg new file mode 100644 index 0000000..45fecf7 --- /dev/null +++ b/_static/images/logo_binder.svg @@ -0,0 +1,19 @@ + + + + +logo + + + + + + + + diff --git a/_static/images/logo_colab.png b/_static/images/logo_colab.png new file mode 100644 index 0000000..b7560ec Binary files /dev/null and b/_static/images/logo_colab.png differ diff --git a/_static/images/logo_deepnote.svg b/_static/images/logo_deepnote.svg new file mode 100644 index 0000000..fa77ebf --- /dev/null +++ b/_static/images/logo_deepnote.svg @@ -0,0 +1 @@ + diff --git a/_static/images/logo_jupyterhub.svg b/_static/images/logo_jupyterhub.svg new file mode 100644 index 0000000..60cfe9f --- /dev/null +++ b/_static/images/logo_jupyterhub.svg @@ -0,0 +1 @@ +logo_jupyterhubHub diff --git a/_static/language_data.js b/_static/language_data.js new file mode 100644 index 0000000..367b8ed --- /dev/null +++ b/_static/language_data.js @@ -0,0 +1,199 @@ +/* + * language_data.js + * ~~~~~~~~~~~~~~~~ + * + * This script contains the language-specific data used by searchtools.js, + * namely the list of stopwords, stemmer, scorer and splitter. + * + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"]; + + +/* Non-minified version is copied as a separate JS file, if available */ + +/** + * Porter Stemmer + */ +var Stemmer = function() { + + var step2list = { + ational: 'ate', + tional: 'tion', + enci: 'ence', + anci: 'ance', + izer: 'ize', + bli: 'ble', + alli: 'al', + entli: 'ent', + eli: 'e', + ousli: 'ous', + ization: 'ize', + ation: 'ate', + ator: 'ate', + alism: 'al', + iveness: 'ive', + fulness: 'ful', + ousness: 'ous', + aliti: 'al', + iviti: 'ive', + biliti: 'ble', + logi: 'log' + }; + + var step3list = { + icate: 'ic', + ative: '', + alize: 'al', + iciti: 'ic', + ical: 'ic', + ful: '', + ness: '' + }; + + var c = "[^aeiou]"; // consonant + var v = "[aeiouy]"; // vowel + var C = c + "[^aeiouy]*"; // consonant sequence + var V = v + "[aeiou]*"; // vowel sequence + + var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0 + var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1 + var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1 + var s_v = "^(" + C + ")?" + v; // vowel in stem + + this.stemWord = function (w) { + var stem; + var suffix; + var firstch; + var origword = w; + + if (w.length < 3) + return w; + + var re; + var re2; + var re3; + var re4; + + firstch = w.substr(0,1); + if (firstch == "y") + w = firstch.toUpperCase() + w.substr(1); + + // Step 1a + re = /^(.+?)(ss|i)es$/; + re2 = /^(.+?)([^s])s$/; + + if (re.test(w)) + w = w.replace(re,"$1$2"); + else if (re2.test(w)) + w = w.replace(re2,"$1$2"); + + // Step 1b + re = /^(.+?)eed$/; + re2 = /^(.+?)(ed|ing)$/; + if (re.test(w)) { + var fp = re.exec(w); + re = new RegExp(mgr0); + if (re.test(fp[1])) { + re = /.$/; + w = w.replace(re,""); + } + } + else if (re2.test(w)) { + var fp = re2.exec(w); + stem = fp[1]; + re2 = new RegExp(s_v); + if (re2.test(stem)) { + w = stem; + re2 = /(at|bl|iz)$/; + re3 = new RegExp("([^aeiouylsz])\\1$"); + re4 = new RegExp("^" + C + v + "[^aeiouwxy]$"); + if (re2.test(w)) + w = w + "e"; + else if (re3.test(w)) { + re = /.$/; + w = w.replace(re,""); + } + else if (re4.test(w)) + w = w + "e"; + } + } + + // Step 1c + re = /^(.+?)y$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(s_v); + if (re.test(stem)) + w = stem + "i"; + } + + // Step 2 + re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + suffix = fp[2]; + re = new RegExp(mgr0); + if (re.test(stem)) + w = stem + step2list[suffix]; + } + + // Step 3 + re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + suffix = fp[2]; + re = new RegExp(mgr0); + if (re.test(stem)) + w = stem + step3list[suffix]; + } + + // Step 4 + re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; + re2 = /^(.+?)(s|t)(ion)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(mgr1); + if (re.test(stem)) + w = stem; + } + else if (re2.test(w)) { + var fp = re2.exec(w); + stem = fp[1] + fp[2]; + re2 = new RegExp(mgr1); + if (re2.test(stem)) + w = stem; + } + + // Step 5 + re = /^(.+?)e$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(mgr1); + re2 = new RegExp(meq1); + re3 = new RegExp("^" + C + v + "[^aeiouwxy]$"); + if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) + w = stem; + } + re = /ll$/; + re2 = new RegExp(mgr1); + if (re.test(w) && re2.test(w)) { + re = /.$/; + w = w.replace(re,""); + } + + // and turn initial Y back to y + if (firstch == "y") + w = firstch.toLowerCase() + w.substr(1); + return w; + } +} + diff --git a/_static/locales/ar/LC_MESSAGES/booktheme.mo b/_static/locales/ar/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..15541a6 Binary files /dev/null and b/_static/locales/ar/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/ar/LC_MESSAGES/booktheme.po b/_static/locales/ar/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..066f20f --- /dev/null +++ b/_static/locales/ar/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: ar\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "بواسطة" + +msgid "By" +msgstr "بواسطة" + +msgid "Contents" +msgstr "محتويات" + +msgid "Copyright" +msgstr "حقوق النشر" + +msgid "Download notebook file" +msgstr "تنزيل ملف دفتر الملاحظات" + +msgid "Download source file" +msgstr "تنزيل ملف المصدر" + +msgid "Download this page" +msgstr "قم بتنزيل هذه الصفحة" + +msgid "Edit this page" +msgstr "قم بتحرير هذه الصفحة" + +msgid "Fullscreen mode" +msgstr "وضع ملء الشاشة" + +msgid "Last updated on" +msgstr "آخر تحديث في" + +msgid "Launch" +msgstr "إطلاق" + +msgid "Open an issue" +msgstr "افتح قضية" + +msgid "Print to PDF" +msgstr "طباعة إلى PDF" + +msgid "Source repository" +msgstr "مستودع المصدر" + +msgid "Sphinx Book Theme" +msgstr "موضوع كتاب أبو الهول" + +msgid "Theme by the" +msgstr "موضوع بواسطة" + +msgid "Toggle navigation" +msgstr "تبديل التنقل" + +msgid "next page" +msgstr "الصفحة التالية" + +msgid "open issue" +msgstr "قضية مفتوحة" + +msgid "previous page" +msgstr "الصفحة السابقة" + +msgid "repository" +msgstr "مخزن" + +msgid "suggest edit" +msgstr "أقترح تحرير" diff --git a/_static/locales/bg/LC_MESSAGES/booktheme.mo b/_static/locales/bg/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..da95120 Binary files /dev/null and b/_static/locales/bg/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/bg/LC_MESSAGES/booktheme.po b/_static/locales/bg/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..0f22f49 --- /dev/null +++ b/_static/locales/bg/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: bg\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "По" + +msgid "By" +msgstr "От" + +msgid "Contents" +msgstr "Съдържание" + +msgid "Copyright" +msgstr "Авторско право" + +msgid "Download notebook file" +msgstr "Изтеглете файла на бележника" + +msgid "Download source file" +msgstr "Изтеглете изходния файл" + +msgid "Download this page" +msgstr "Изтеглете тази страница" + +msgid "Edit this page" +msgstr "Редактирайте тази страница" + +msgid "Fullscreen mode" +msgstr "Режим на цял екран" + +msgid "Last updated on" +msgstr "Последна актуализация на" + +msgid "Launch" +msgstr "Стартиране" + +msgid "Open an issue" +msgstr "Отворете проблем" + +msgid "Print to PDF" +msgstr "Печат в PDF" + +msgid "Source repository" +msgstr "Хранилище на източника" + +msgid "Sphinx Book Theme" +msgstr "Тема на книгата Sphinx" + +msgid "Theme by the" +msgstr "Тема от" + +msgid "Toggle navigation" +msgstr "Превключване на навигацията" + +msgid "next page" +msgstr "Следваща страница" + +msgid "open issue" +msgstr "отворен брой" + +msgid "previous page" +msgstr "предишна страница" + +msgid "repository" +msgstr "хранилище" + +msgid "suggest edit" +msgstr "предложи редактиране" diff --git a/_static/locales/bn/LC_MESSAGES/booktheme.mo b/_static/locales/bn/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..6b96639 Binary files /dev/null and b/_static/locales/bn/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/bn/LC_MESSAGES/booktheme.po b/_static/locales/bn/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..7202a5f --- /dev/null +++ b/_static/locales/bn/LC_MESSAGES/booktheme.po @@ -0,0 +1,63 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: bn\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "দ্বারা" + +msgid "By" +msgstr "দ্বারা" + +msgid "Copyright" +msgstr "কপিরাইট" + +msgid "Download notebook file" +msgstr "নোটবুক ফাইল ডাউনলোড করুন" + +msgid "Download source file" +msgstr "উত্স ফাইল ডাউনলোড করুন" + +msgid "Download this page" +msgstr "এই পৃষ্ঠাটি ডাউনলোড করুন" + +msgid "Edit this page" +msgstr "এই পৃষ্ঠাটি সম্পাদনা করুন" + +msgid "Last updated on" +msgstr "সর্বশেষ আপডেট" + +msgid "Launch" +msgstr "শুরু করা" + +msgid "Open an issue" +msgstr "একটি সমস্যা খুলুন" + +msgid "Print to PDF" +msgstr "পিডিএফ প্রিন্ট করুন" + +msgid "Source repository" +msgstr "উত্স সংগ্রহস্থল" + +msgid "Sphinx Book Theme" +msgstr "স্পিনিক্স বুক থিম" + +msgid "Theme by the" +msgstr "থিম দ্বারা" + +msgid "Toggle navigation" +msgstr "নেভিগেশন টগল করুন" + +msgid "next page" +msgstr "পরবর্তী পৃষ্ঠা" + +msgid "open issue" +msgstr "খোলা সমস্যা" + +msgid "previous page" +msgstr "আগের পৃষ্ঠা" diff --git a/_static/locales/ca/LC_MESSAGES/booktheme.mo b/_static/locales/ca/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..a4dd30e Binary files /dev/null and b/_static/locales/ca/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/ca/LC_MESSAGES/booktheme.po b/_static/locales/ca/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..a325041 --- /dev/null +++ b/_static/locales/ca/LC_MESSAGES/booktheme.po @@ -0,0 +1,66 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: ca\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Per la" + +msgid "By" +msgstr "Per" + +msgid "Copyright" +msgstr "Copyright" + +msgid "Download notebook file" +msgstr "Descarregar fitxer de quadern" + +msgid "Download source file" +msgstr "Baixeu el fitxer font" + +msgid "Download this page" +msgstr "Descarregueu aquesta pàgina" + +msgid "Edit this page" +msgstr "Editeu aquesta pàgina" + +msgid "Last updated on" +msgstr "Darrera actualització el" + +msgid "Launch" +msgstr "Llançament" + +msgid "Open an issue" +msgstr "Obriu un número" + +msgid "Print to PDF" +msgstr "Imprimeix a PDF" + +msgid "Source repository" +msgstr "Dipòsit de fonts" + +msgid "Sphinx Book Theme" +msgstr "Tema del llibre Esfinx" + +msgid "Theme by the" +msgstr "Tema del" + +msgid "Toggle navigation" +msgstr "Commuta la navegació" + +msgid "next page" +msgstr "pàgina següent" + +msgid "open issue" +msgstr "número obert" + +msgid "previous page" +msgstr "Pàgina anterior" + +msgid "suggest edit" +msgstr "suggerir edició" diff --git a/_static/locales/cs/LC_MESSAGES/booktheme.mo b/_static/locales/cs/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..c39e01a Binary files /dev/null and b/_static/locales/cs/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/cs/LC_MESSAGES/booktheme.po b/_static/locales/cs/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..97e52e8 --- /dev/null +++ b/_static/locales/cs/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: cs\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Podle" + +msgid "By" +msgstr "Podle" + +msgid "Contents" +msgstr "Obsah" + +msgid "Copyright" +msgstr "autorská práva" + +msgid "Download notebook file" +msgstr "Stáhnout soubor poznámkového bloku" + +msgid "Download source file" +msgstr "Stáhněte si zdrojový soubor" + +msgid "Download this page" +msgstr "Stáhněte si tuto stránku" + +msgid "Edit this page" +msgstr "Upravit tuto stránku" + +msgid "Fullscreen mode" +msgstr "Režim celé obrazovky" + +msgid "Last updated on" +msgstr "Naposledy aktualizováno" + +msgid "Launch" +msgstr "Zahájení" + +msgid "Open an issue" +msgstr "Otevřete problém" + +msgid "Print to PDF" +msgstr "Tisk do PDF" + +msgid "Source repository" +msgstr "Zdrojové úložiště" + +msgid "Sphinx Book Theme" +msgstr "Téma knihy Sfinga" + +msgid "Theme by the" +msgstr "Téma od" + +msgid "Toggle navigation" +msgstr "Přepnout navigaci" + +msgid "next page" +msgstr "další strana" + +msgid "open issue" +msgstr "otevřené číslo" + +msgid "previous page" +msgstr "předchozí stránka" + +msgid "repository" +msgstr "úložiště" + +msgid "suggest edit" +msgstr "navrhnout úpravy" diff --git a/_static/locales/da/LC_MESSAGES/booktheme.mo b/_static/locales/da/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..f43157d Binary files /dev/null and b/_static/locales/da/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/da/LC_MESSAGES/booktheme.po b/_static/locales/da/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..084b4e5 --- /dev/null +++ b/_static/locales/da/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: da\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Ved" + +msgid "By" +msgstr "Ved" + +msgid "Contents" +msgstr "Indhold" + +msgid "Copyright" +msgstr "ophavsret" + +msgid "Download notebook file" +msgstr "Download notesbog-fil" + +msgid "Download source file" +msgstr "Download kildefil" + +msgid "Download this page" +msgstr "Download denne side" + +msgid "Edit this page" +msgstr "Rediger denne side" + +msgid "Fullscreen mode" +msgstr "Fuldskærmstilstand" + +msgid "Last updated on" +msgstr "Sidst opdateret den" + +msgid "Launch" +msgstr "Start" + +msgid "Open an issue" +msgstr "Åbn et problem" + +msgid "Print to PDF" +msgstr "Udskriv til PDF" + +msgid "Source repository" +msgstr "Kildelager" + +msgid "Sphinx Book Theme" +msgstr "Sphinx bogtema" + +msgid "Theme by the" +msgstr "Tema af" + +msgid "Toggle navigation" +msgstr "Skift navigation" + +msgid "next page" +msgstr "Næste side" + +msgid "open issue" +msgstr "åbent nummer" + +msgid "previous page" +msgstr "forrige side" + +msgid "repository" +msgstr "lager" + +msgid "suggest edit" +msgstr "foreslå redigering" diff --git a/_static/locales/de/LC_MESSAGES/booktheme.mo b/_static/locales/de/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..648b565 Binary files /dev/null and b/_static/locales/de/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/de/LC_MESSAGES/booktheme.po b/_static/locales/de/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..1ed1dc1 --- /dev/null +++ b/_static/locales/de/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Bis zum" + +msgid "By" +msgstr "Durch" + +msgid "Contents" +msgstr "Inhalt" + +msgid "Copyright" +msgstr "Urheberrechte ©" + +msgid "Download notebook file" +msgstr "Notebook-Datei herunterladen" + +msgid "Download source file" +msgstr "Quelldatei herunterladen" + +msgid "Download this page" +msgstr "Laden Sie diese Seite herunter" + +msgid "Edit this page" +msgstr "Bearbeite diese Seite" + +msgid "Fullscreen mode" +msgstr "Vollbildmodus" + +msgid "Last updated on" +msgstr "Zuletzt aktualisiert am" + +msgid "Launch" +msgstr "Starten" + +msgid "Open an issue" +msgstr "Öffnen Sie ein Problem" + +msgid "Print to PDF" +msgstr "In PDF drucken" + +msgid "Source repository" +msgstr "Quell-Repository" + +msgid "Sphinx Book Theme" +msgstr "Sphinx-Buch-Thema" + +msgid "Theme by the" +msgstr "Thema von der" + +msgid "Toggle navigation" +msgstr "Navigation umschalten" + +msgid "next page" +msgstr "Nächste Seite" + +msgid "open issue" +msgstr "offenes Thema" + +msgid "previous page" +msgstr "vorherige Seite" + +msgid "repository" +msgstr "Repository" + +msgid "suggest edit" +msgstr "vorschlagen zu bearbeiten" diff --git a/_static/locales/el/LC_MESSAGES/booktheme.mo b/_static/locales/el/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..fca6e93 Binary files /dev/null and b/_static/locales/el/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/el/LC_MESSAGES/booktheme.po b/_static/locales/el/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..27d1274 --- /dev/null +++ b/_static/locales/el/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: el\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Από το" + +msgid "By" +msgstr "Με" + +msgid "Contents" +msgstr "Περιεχόμενα" + +msgid "Copyright" +msgstr "Πνευματική ιδιοκτησία" + +msgid "Download notebook file" +msgstr "Λήψη αρχείου σημειωματάριου" + +msgid "Download source file" +msgstr "Λήψη αρχείου προέλευσης" + +msgid "Download this page" +msgstr "Λήψη αυτής της σελίδας" + +msgid "Edit this page" +msgstr "Επεξεργαστείτε αυτήν τη σελίδα" + +msgid "Fullscreen mode" +msgstr "ΛΕΙΤΟΥΡΓΙΑ ΠΛΗΡΟΥΣ ΟΘΟΝΗΣ" + +msgid "Last updated on" +msgstr "Τελευταία ενημέρωση στις" + +msgid "Launch" +msgstr "Εκτόξευση" + +msgid "Open an issue" +msgstr "Ανοίξτε ένα ζήτημα" + +msgid "Print to PDF" +msgstr "Εκτύπωση σε PDF" + +msgid "Source repository" +msgstr "Αποθήκη πηγής" + +msgid "Sphinx Book Theme" +msgstr "Θέμα βιβλίου Sphinx" + +msgid "Theme by the" +msgstr "Θέμα από το" + +msgid "Toggle navigation" +msgstr "Εναλλαγή πλοήγησης" + +msgid "next page" +msgstr "επόμενη σελίδα" + +msgid "open issue" +msgstr "ανοιχτό ζήτημα" + +msgid "previous page" +msgstr "προηγούμενη σελίδα" + +msgid "repository" +msgstr "αποθήκη" + +msgid "suggest edit" +msgstr "προτείνω επεξεργασία" diff --git a/_static/locales/eo/LC_MESSAGES/booktheme.mo b/_static/locales/eo/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..d1072bb Binary files /dev/null and b/_static/locales/eo/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/eo/LC_MESSAGES/booktheme.po b/_static/locales/eo/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..1fda1bc --- /dev/null +++ b/_static/locales/eo/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: eo\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Per la" + +msgid "By" +msgstr "De" + +msgid "Contents" +msgstr "Enhavo" + +msgid "Copyright" +msgstr "Kopirajto" + +msgid "Download notebook file" +msgstr "Elŝutu kajeran dosieron" + +msgid "Download source file" +msgstr "Elŝutu fontodosieron" + +msgid "Download this page" +msgstr "Elŝutu ĉi tiun paĝon" + +msgid "Edit this page" +msgstr "Redaktu ĉi tiun paĝon" + +msgid "Fullscreen mode" +msgstr "Plenekrana reĝimo" + +msgid "Last updated on" +msgstr "Laste ĝisdatigita la" + +msgid "Launch" +msgstr "Lanĉo" + +msgid "Open an issue" +msgstr "Malfermu numeron" + +msgid "Print to PDF" +msgstr "Presi al PDF" + +msgid "Source repository" +msgstr "Fonto-deponejo" + +msgid "Sphinx Book Theme" +msgstr "Sfinksa Libro-Temo" + +msgid "Theme by the" +msgstr "Temo de la" + +msgid "Toggle navigation" +msgstr "Ŝalti navigadon" + +msgid "next page" +msgstr "sekva paĝo" + +msgid "open issue" +msgstr "malferma numero" + +msgid "previous page" +msgstr "antaŭa paĝo" + +msgid "repository" +msgstr "deponejo" + +msgid "suggest edit" +msgstr "sugesti redaktadon" diff --git a/_static/locales/es/LC_MESSAGES/booktheme.mo b/_static/locales/es/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..ba2ee4d Binary files /dev/null and b/_static/locales/es/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/es/LC_MESSAGES/booktheme.po b/_static/locales/es/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..c91b41b --- /dev/null +++ b/_static/locales/es/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Por el" + +msgid "By" +msgstr "Por" + +msgid "Contents" +msgstr "Contenido" + +msgid "Copyright" +msgstr "Derechos de autor" + +msgid "Download notebook file" +msgstr "Descargar archivo de cuaderno" + +msgid "Download source file" +msgstr "Descargar archivo fuente" + +msgid "Download this page" +msgstr "Descarga esta pagina" + +msgid "Edit this page" +msgstr "Edita esta página" + +msgid "Fullscreen mode" +msgstr "Modo de pantalla completa" + +msgid "Last updated on" +msgstr "Ultima actualización en" + +msgid "Launch" +msgstr "Lanzamiento" + +msgid "Open an issue" +msgstr "Abrir un problema" + +msgid "Print to PDF" +msgstr "Imprimir en PDF" + +msgid "Source repository" +msgstr "Repositorio de origen" + +msgid "Sphinx Book Theme" +msgstr "Tema del libro de la esfinge" + +msgid "Theme by the" +msgstr "Tema por el" + +msgid "Toggle navigation" +msgstr "Navegación de palanca" + +msgid "next page" +msgstr "siguiente página" + +msgid "open issue" +msgstr "Tema abierto" + +msgid "previous page" +msgstr "pagina anterior" + +msgid "repository" +msgstr "repositorio" + +msgid "suggest edit" +msgstr "sugerir editar" diff --git a/_static/locales/et/LC_MESSAGES/booktheme.mo b/_static/locales/et/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..983b823 Binary files /dev/null and b/_static/locales/et/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/et/LC_MESSAGES/booktheme.po b/_static/locales/et/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..2fd1ea2 --- /dev/null +++ b/_static/locales/et/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: et\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Autor" + +msgid "By" +msgstr "Kõrval" + +msgid "Contents" +msgstr "Sisu" + +msgid "Copyright" +msgstr "Autoriõigus" + +msgid "Download notebook file" +msgstr "Laadige sülearvuti fail alla" + +msgid "Download source file" +msgstr "Laadige alla lähtefail" + +msgid "Download this page" +msgstr "Laadige see leht alla" + +msgid "Edit this page" +msgstr "Muutke seda lehte" + +msgid "Fullscreen mode" +msgstr "Täisekraanirežiim" + +msgid "Last updated on" +msgstr "Viimati uuendatud" + +msgid "Launch" +msgstr "Käivitage" + +msgid "Open an issue" +msgstr "Avage probleem" + +msgid "Print to PDF" +msgstr "Prindi PDF-i" + +msgid "Source repository" +msgstr "Allikahoidla" + +msgid "Sphinx Book Theme" +msgstr "Sfinksiraamatu teema" + +msgid "Theme by the" +msgstr "Teema" + +msgid "Toggle navigation" +msgstr "Lülita navigeerimine sisse" + +msgid "next page" +msgstr "järgmine leht" + +msgid "open issue" +msgstr "avatud küsimus" + +msgid "previous page" +msgstr "eelmine leht" + +msgid "repository" +msgstr "hoidla" + +msgid "suggest edit" +msgstr "soovita muuta" diff --git a/_static/locales/fi/LC_MESSAGES/booktheme.mo b/_static/locales/fi/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..d8ac054 Binary files /dev/null and b/_static/locales/fi/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/fi/LC_MESSAGES/booktheme.po b/_static/locales/fi/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..2843f2c --- /dev/null +++ b/_static/locales/fi/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Mukaan" + +msgid "By" +msgstr "Tekijä" + +msgid "Contents" +msgstr "Sisällys" + +msgid "Copyright" +msgstr "Tekijänoikeus" + +msgid "Download notebook file" +msgstr "Lataa muistikirjatiedosto" + +msgid "Download source file" +msgstr "Lataa lähdetiedosto" + +msgid "Download this page" +msgstr "Lataa tämä sivu" + +msgid "Edit this page" +msgstr "Muokkaa tätä sivua" + +msgid "Fullscreen mode" +msgstr "Koko näytön tila" + +msgid "Last updated on" +msgstr "Viimeksi päivitetty" + +msgid "Launch" +msgstr "Tuoda markkinoille" + +msgid "Open an issue" +msgstr "Avaa ongelma" + +msgid "Print to PDF" +msgstr "Tulosta PDF-tiedostoon" + +msgid "Source repository" +msgstr "Lähteen arkisto" + +msgid "Sphinx Book Theme" +msgstr "Sphinx-kirjan teema" + +msgid "Theme by the" +msgstr "Teeman tekijä" + +msgid "Toggle navigation" +msgstr "Vaihda navigointia" + +msgid "next page" +msgstr "seuraava sivu" + +msgid "open issue" +msgstr "avoin ongelma" + +msgid "previous page" +msgstr "Edellinen sivu" + +msgid "repository" +msgstr "arkisto" + +msgid "suggest edit" +msgstr "ehdottaa muokkausta" diff --git a/_static/locales/fr/LC_MESSAGES/booktheme.mo b/_static/locales/fr/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..f663d39 Binary files /dev/null and b/_static/locales/fr/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/fr/LC_MESSAGES/booktheme.po b/_static/locales/fr/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..351cddd --- /dev/null +++ b/_static/locales/fr/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Par le" + +msgid "By" +msgstr "Par" + +msgid "Contents" +msgstr "Contenu" + +msgid "Copyright" +msgstr "droits d'auteur" + +msgid "Download notebook file" +msgstr "Télécharger le fichier notebook" + +msgid "Download source file" +msgstr "Télécharger le fichier source" + +msgid "Download this page" +msgstr "Téléchargez cette page" + +msgid "Edit this page" +msgstr "Modifier cette page" + +msgid "Fullscreen mode" +msgstr "Mode plein écran" + +msgid "Last updated on" +msgstr "Dernière mise à jour le" + +msgid "Launch" +msgstr "lancement" + +msgid "Open an issue" +msgstr "Ouvrez un problème" + +msgid "Print to PDF" +msgstr "Imprimer au format PDF" + +msgid "Source repository" +msgstr "Dépôt source" + +msgid "Sphinx Book Theme" +msgstr "Thème du livre Sphinx" + +msgid "Theme by the" +msgstr "Thème par le" + +msgid "Toggle navigation" +msgstr "Basculer la navigation" + +msgid "next page" +msgstr "page suivante" + +msgid "open issue" +msgstr "signaler un problème" + +msgid "previous page" +msgstr "page précédente" + +msgid "repository" +msgstr "dépôt" + +msgid "suggest edit" +msgstr "suggestion de modification" diff --git a/_static/locales/hr/LC_MESSAGES/booktheme.mo b/_static/locales/hr/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..eca4a1a Binary files /dev/null and b/_static/locales/hr/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/hr/LC_MESSAGES/booktheme.po b/_static/locales/hr/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..3c1cf07 --- /dev/null +++ b/_static/locales/hr/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: hr\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Od strane" + +msgid "By" +msgstr "Po" + +msgid "Contents" +msgstr "Sadržaj" + +msgid "Copyright" +msgstr "Autorska prava" + +msgid "Download notebook file" +msgstr "Preuzmi datoteku bilježnice" + +msgid "Download source file" +msgstr "Preuzmi izvornu datoteku" + +msgid "Download this page" +msgstr "Preuzmite ovu stranicu" + +msgid "Edit this page" +msgstr "Uredite ovu stranicu" + +msgid "Fullscreen mode" +msgstr "Način preko cijelog zaslona" + +msgid "Last updated on" +msgstr "Posljednje ažuriranje:" + +msgid "Launch" +msgstr "Pokrenite" + +msgid "Open an issue" +msgstr "Otvorite izdanje" + +msgid "Print to PDF" +msgstr "Ispis u PDF" + +msgid "Source repository" +msgstr "Izvorno spremište" + +msgid "Sphinx Book Theme" +msgstr "Tema knjige Sphinx" + +msgid "Theme by the" +msgstr "Tema autora" + +msgid "Toggle navigation" +msgstr "Uključi / isključi navigaciju" + +msgid "next page" +msgstr "sljedeća stranica" + +msgid "open issue" +msgstr "otvoreno izdanje" + +msgid "previous page" +msgstr "Prethodna stranica" + +msgid "repository" +msgstr "spremište" + +msgid "suggest edit" +msgstr "predloži uređivanje" diff --git a/_static/locales/id/LC_MESSAGES/booktheme.mo b/_static/locales/id/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..d07a06a Binary files /dev/null and b/_static/locales/id/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/id/LC_MESSAGES/booktheme.po b/_static/locales/id/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..809498c --- /dev/null +++ b/_static/locales/id/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: id\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Oleh" + +msgid "By" +msgstr "Oleh" + +msgid "Contents" +msgstr "Isi" + +msgid "Copyright" +msgstr "hak cipta" + +msgid "Download notebook file" +msgstr "Unduh file notebook" + +msgid "Download source file" +msgstr "Unduh file sumber" + +msgid "Download this page" +msgstr "Unduh halaman ini" + +msgid "Edit this page" +msgstr "Edit halaman ini" + +msgid "Fullscreen mode" +msgstr "Mode layar penuh" + +msgid "Last updated on" +msgstr "Terakhir diperbarui saat" + +msgid "Launch" +msgstr "Meluncurkan" + +msgid "Open an issue" +msgstr "Buka masalah" + +msgid "Print to PDF" +msgstr "Cetak ke PDF" + +msgid "Source repository" +msgstr "Repositori sumber" + +msgid "Sphinx Book Theme" +msgstr "Tema Buku Sphinx" + +msgid "Theme by the" +msgstr "Tema oleh" + +msgid "Toggle navigation" +msgstr "Alihkan navigasi" + +msgid "next page" +msgstr "halaman selanjutnya" + +msgid "open issue" +msgstr "masalah terbuka" + +msgid "previous page" +msgstr "halaman sebelumnya" + +msgid "repository" +msgstr "gudang" + +msgid "suggest edit" +msgstr "menyarankan edit" diff --git a/_static/locales/it/LC_MESSAGES/booktheme.mo b/_static/locales/it/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..53ba476 Binary files /dev/null and b/_static/locales/it/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/it/LC_MESSAGES/booktheme.po b/_static/locales/it/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..fbc8d03 --- /dev/null +++ b/_static/locales/it/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Dal" + +msgid "By" +msgstr "Di" + +msgid "Contents" +msgstr "Contenuti" + +msgid "Copyright" +msgstr "Diritto d'autore" + +msgid "Download notebook file" +msgstr "Scarica il file del taccuino" + +msgid "Download source file" +msgstr "Scarica il file sorgente" + +msgid "Download this page" +msgstr "Scarica questa pagina" + +msgid "Edit this page" +msgstr "Modifica questa pagina" + +msgid "Fullscreen mode" +msgstr "Modalità schermo intero" + +msgid "Last updated on" +msgstr "Ultimo aggiornamento il" + +msgid "Launch" +msgstr "Lanciare" + +msgid "Open an issue" +msgstr "Apri un problema" + +msgid "Print to PDF" +msgstr "Stampa in PDF" + +msgid "Source repository" +msgstr "Repository di origine" + +msgid "Sphinx Book Theme" +msgstr "Tema del libro della Sfinge" + +msgid "Theme by the" +msgstr "Tema di" + +msgid "Toggle navigation" +msgstr "Attiva / disattiva la navigazione" + +msgid "next page" +msgstr "pagina successiva" + +msgid "open issue" +msgstr "questione aperta" + +msgid "previous page" +msgstr "pagina precedente" + +msgid "repository" +msgstr "repository" + +msgid "suggest edit" +msgstr "suggerisci modifica" diff --git a/_static/locales/iw/LC_MESSAGES/booktheme.mo b/_static/locales/iw/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..a45c657 Binary files /dev/null and b/_static/locales/iw/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/iw/LC_MESSAGES/booktheme.po b/_static/locales/iw/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..a82f351 --- /dev/null +++ b/_static/locales/iw/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: iw\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "דרך" + +msgid "By" +msgstr "על ידי" + +msgid "Contents" +msgstr "תוכן" + +msgid "Copyright" +msgstr "זכויות יוצרים" + +msgid "Download notebook file" +msgstr "הורד קובץ מחברת" + +msgid "Download source file" +msgstr "הורד את קובץ המקור" + +msgid "Download this page" +msgstr "הורד דף זה" + +msgid "Edit this page" +msgstr "ערוך דף זה" + +msgid "Fullscreen mode" +msgstr "מצב מסך מלא" + +msgid "Last updated on" +msgstr "עודכן לאחרונה ב" + +msgid "Launch" +msgstr "לְהַשִׁיק" + +msgid "Open an issue" +msgstr "פתח גיליון" + +msgid "Print to PDF" +msgstr "הדפס לקובץ PDF" + +msgid "Source repository" +msgstr "מאגר המקורות" + +msgid "Sphinx Book Theme" +msgstr "נושא ספר ספינקס" + +msgid "Theme by the" +msgstr "נושא מאת" + +msgid "Toggle navigation" +msgstr "החלף ניווט" + +msgid "next page" +msgstr "עמוד הבא" + +msgid "open issue" +msgstr "בעיה פתוחה" + +msgid "previous page" +msgstr "עמוד קודם" + +msgid "repository" +msgstr "מאגר" + +msgid "suggest edit" +msgstr "מציע לערוך" diff --git a/_static/locales/ja/LC_MESSAGES/booktheme.mo b/_static/locales/ja/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..1cefd29 Binary files /dev/null and b/_static/locales/ja/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/ja/LC_MESSAGES/booktheme.po b/_static/locales/ja/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..3caab09 --- /dev/null +++ b/_static/locales/ja/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: ja\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "によって" + +msgid "By" +msgstr "著者" + +msgid "Contents" +msgstr "目次" + +msgid "Copyright" +msgstr "Copyright" + +msgid "Download notebook file" +msgstr "ノートブックファイルをダウンロード" + +msgid "Download source file" +msgstr "ソースファイルをダウンロード" + +msgid "Download this page" +msgstr "このページをダウンロード" + +msgid "Edit this page" +msgstr "このページを編集" + +msgid "Fullscreen mode" +msgstr "全画面モード" + +msgid "Last updated on" +msgstr "最終更新日" + +msgid "Launch" +msgstr "起動" + +msgid "Open an issue" +msgstr "問題を報告" + +msgid "Print to PDF" +msgstr "PDFに印刷" + +msgid "Source repository" +msgstr "ソースリポジトリ" + +msgid "Sphinx Book Theme" +msgstr "スフィンクスの本のテーマ" + +msgid "Theme by the" +msgstr "のテーマ" + +msgid "Toggle navigation" +msgstr "ナビゲーションを切り替え" + +msgid "next page" +msgstr "次のページ" + +msgid "open issue" +msgstr "未解決の問題" + +msgid "previous page" +msgstr "前のページ" + +msgid "repository" +msgstr "リポジトリ" + +msgid "suggest edit" +msgstr "編集を提案する" diff --git a/_static/locales/ko/LC_MESSAGES/booktheme.mo b/_static/locales/ko/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..06c7ec9 Binary files /dev/null and b/_static/locales/ko/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/ko/LC_MESSAGES/booktheme.po b/_static/locales/ko/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..2db12a1 --- /dev/null +++ b/_static/locales/ko/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: ko\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "에 의해" + +msgid "By" +msgstr "으로" + +msgid "Contents" +msgstr "내용" + +msgid "Copyright" +msgstr "저작권" + +msgid "Download notebook file" +msgstr "노트북 파일 다운로드" + +msgid "Download source file" +msgstr "소스 파일 다운로드" + +msgid "Download this page" +msgstr "이 페이지 다운로드" + +msgid "Edit this page" +msgstr "이 페이지 편집" + +msgid "Fullscreen mode" +msgstr "전체 화면으로보기" + +msgid "Last updated on" +msgstr "마지막 업데이트" + +msgid "Launch" +msgstr "시작하다" + +msgid "Open an issue" +msgstr "이슈 열기" + +msgid "Print to PDF" +msgstr "PDF로 인쇄" + +msgid "Source repository" +msgstr "소스 저장소" + +msgid "Sphinx Book Theme" +msgstr "스핑크스 도서 테마" + +msgid "Theme by the" +msgstr "테마별" + +msgid "Toggle navigation" +msgstr "탐색 전환" + +msgid "next page" +msgstr "다음 페이지" + +msgid "open issue" +msgstr "열린 문제" + +msgid "previous page" +msgstr "이전 페이지" + +msgid "repository" +msgstr "저장소" + +msgid "suggest edit" +msgstr "편집 제안" diff --git a/_static/locales/lt/LC_MESSAGES/booktheme.mo b/_static/locales/lt/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..4468ba0 Binary files /dev/null and b/_static/locales/lt/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/lt/LC_MESSAGES/booktheme.po b/_static/locales/lt/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..07b6468 --- /dev/null +++ b/_static/locales/lt/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: lt\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Prie" + +msgid "By" +msgstr "Iki" + +msgid "Contents" +msgstr "Turinys" + +msgid "Copyright" +msgstr "Autorių teisės" + +msgid "Download notebook file" +msgstr "Atsisiųsti nešiojamojo kompiuterio failą" + +msgid "Download source file" +msgstr "Atsisiųsti šaltinio failą" + +msgid "Download this page" +msgstr "Atsisiųskite šį puslapį" + +msgid "Edit this page" +msgstr "Redaguoti šį puslapį" + +msgid "Fullscreen mode" +msgstr "Pilno ekrano režimas" + +msgid "Last updated on" +msgstr "Paskutinį kartą atnaujinta" + +msgid "Launch" +msgstr "Paleiskite" + +msgid "Open an issue" +msgstr "Atidarykite problemą" + +msgid "Print to PDF" +msgstr "Spausdinti į PDF" + +msgid "Source repository" +msgstr "Šaltinio saugykla" + +msgid "Sphinx Book Theme" +msgstr "Sfinkso knygos tema" + +msgid "Theme by the" +msgstr "Tema" + +msgid "Toggle navigation" +msgstr "Perjungti naršymą" + +msgid "next page" +msgstr "Kitas puslapis" + +msgid "open issue" +msgstr "atviras klausimas" + +msgid "previous page" +msgstr "Ankstesnis puslapis" + +msgid "repository" +msgstr "saugykla" + +msgid "suggest edit" +msgstr "pasiūlyti redaguoti" diff --git a/_static/locales/lv/LC_MESSAGES/booktheme.mo b/_static/locales/lv/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..74aa4d8 Binary files /dev/null and b/_static/locales/lv/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/lv/LC_MESSAGES/booktheme.po b/_static/locales/lv/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..b741c28 --- /dev/null +++ b/_static/locales/lv/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: lv\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Ar" + +msgid "By" +msgstr "Autors" + +msgid "Contents" +msgstr "Saturs" + +msgid "Copyright" +msgstr "Autortiesības" + +msgid "Download notebook file" +msgstr "Lejupielādēt piezīmju grāmatiņu" + +msgid "Download source file" +msgstr "Lejupielādēt avota failu" + +msgid "Download this page" +msgstr "Lejupielādējiet šo lapu" + +msgid "Edit this page" +msgstr "Rediģēt šo lapu" + +msgid "Fullscreen mode" +msgstr "Pilnekrāna režīms" + +msgid "Last updated on" +msgstr "Pēdējoreiz atjaunināts" + +msgid "Launch" +msgstr "Uzsākt" + +msgid "Open an issue" +msgstr "Atveriet problēmu" + +msgid "Print to PDF" +msgstr "Drukāt PDF formātā" + +msgid "Source repository" +msgstr "Avota krātuve" + +msgid "Sphinx Book Theme" +msgstr "Sfinksa grāmatas tēma" + +msgid "Theme by the" +msgstr "Autora tēma" + +msgid "Toggle navigation" +msgstr "Pārslēgt navigāciju" + +msgid "next page" +msgstr "nākamā lapaspuse" + +msgid "open issue" +msgstr "atklāts jautājums" + +msgid "previous page" +msgstr "iepriekšējā lapa" + +msgid "repository" +msgstr "krātuve" + +msgid "suggest edit" +msgstr "ieteikt rediģēt" diff --git a/_static/locales/ml/LC_MESSAGES/booktheme.mo b/_static/locales/ml/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..2736e8f Binary files /dev/null and b/_static/locales/ml/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/ml/LC_MESSAGES/booktheme.po b/_static/locales/ml/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..bdad3de --- /dev/null +++ b/_static/locales/ml/LC_MESSAGES/booktheme.po @@ -0,0 +1,66 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: ml\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "എഴുതിയത്" + +msgid "By" +msgstr "എഴുതിയത്" + +msgid "Copyright" +msgstr "പകർപ്പവകാശം" + +msgid "Download notebook file" +msgstr "നോട്ട്ബുക്ക് ഫയൽ ഡൺലോഡ് ചെയ്യുക" + +msgid "Download source file" +msgstr "ഉറവിട ഫയൽ ഡൗൺലോഡുചെയ്യുക" + +msgid "Download this page" +msgstr "ഈ പേജ് ഡൗൺലോഡുചെയ്യുക" + +msgid "Edit this page" +msgstr "ഈ പേജ് എഡിറ്റുചെയ്യുക" + +msgid "Last updated on" +msgstr "അവസാനം അപ്‌ഡേറ്റുചെയ്‌തത്" + +msgid "Launch" +msgstr "സമാരംഭിക്കുക" + +msgid "Open an issue" +msgstr "ഒരു പ്രശ്നം തുറക്കുക" + +msgid "Print to PDF" +msgstr "PDF- ലേക്ക് പ്രിന്റുചെയ്യുക" + +msgid "Source repository" +msgstr "ഉറവിട ശേഖരം" + +msgid "Sphinx Book Theme" +msgstr "സ്ഫിങ്ക്സ് പുസ്തക തീം" + +msgid "Theme by the" +msgstr "പ്രമേയം" + +msgid "Toggle navigation" +msgstr "നാവിഗേഷൻ ടോഗിൾ ചെയ്യുക" + +msgid "next page" +msgstr "അടുത്ത പേജ്" + +msgid "open issue" +msgstr "തുറന്ന പ്രശ്നം" + +msgid "previous page" +msgstr "മുൻപത്തെ താൾ" + +msgid "suggest edit" +msgstr "എഡിറ്റുചെയ്യാൻ നിർദ്ദേശിക്കുക" diff --git a/_static/locales/mr/LC_MESSAGES/booktheme.mo b/_static/locales/mr/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..fe53010 Binary files /dev/null and b/_static/locales/mr/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/mr/LC_MESSAGES/booktheme.po b/_static/locales/mr/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..61bfad4 --- /dev/null +++ b/_static/locales/mr/LC_MESSAGES/booktheme.po @@ -0,0 +1,66 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: mr\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "द्वारा" + +msgid "By" +msgstr "द्वारा" + +msgid "Copyright" +msgstr "कॉपीराइट" + +msgid "Download notebook file" +msgstr "नोटबुक फाईल डाउनलोड करा" + +msgid "Download source file" +msgstr "स्त्रोत फाइल डाउनलोड करा" + +msgid "Download this page" +msgstr "हे पृष्ठ डाउनलोड करा" + +msgid "Edit this page" +msgstr "हे पृष्ठ संपादित करा" + +msgid "Last updated on" +msgstr "अखेरचे अद्यतनित" + +msgid "Launch" +msgstr "लाँच करा" + +msgid "Open an issue" +msgstr "एक मुद्दा उघडा" + +msgid "Print to PDF" +msgstr "पीडीएफवर मुद्रित करा" + +msgid "Source repository" +msgstr "स्त्रोत भांडार" + +msgid "Sphinx Book Theme" +msgstr "स्फिंक्स बुक थीम" + +msgid "Theme by the" +msgstr "द्वारा थीम" + +msgid "Toggle navigation" +msgstr "नेव्हिगेशन टॉगल करा" + +msgid "next page" +msgstr "पुढील पृष्ठ" + +msgid "open issue" +msgstr "खुला मुद्दा" + +msgid "previous page" +msgstr "मागील पान" + +msgid "suggest edit" +msgstr "संपादन सुचवा" diff --git a/_static/locales/ms/LC_MESSAGES/booktheme.mo b/_static/locales/ms/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..f02603f Binary files /dev/null and b/_static/locales/ms/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/ms/LC_MESSAGES/booktheme.po b/_static/locales/ms/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..ade6515 --- /dev/null +++ b/_static/locales/ms/LC_MESSAGES/booktheme.po @@ -0,0 +1,66 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: ms\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Oleh" + +msgid "By" +msgstr "Oleh" + +msgid "Copyright" +msgstr "hak cipta" + +msgid "Download notebook file" +msgstr "Muat turun fail buku nota" + +msgid "Download source file" +msgstr "Muat turun fail sumber" + +msgid "Download this page" +msgstr "Muat turun halaman ini" + +msgid "Edit this page" +msgstr "Edit halaman ini" + +msgid "Last updated on" +msgstr "Terakhir dikemas kini pada" + +msgid "Launch" +msgstr "Lancarkan" + +msgid "Open an issue" +msgstr "Buka masalah" + +msgid "Print to PDF" +msgstr "Cetak ke PDF" + +msgid "Source repository" +msgstr "Repositori sumber" + +msgid "Sphinx Book Theme" +msgstr "Tema Buku Sphinx" + +msgid "Theme by the" +msgstr "Tema oleh" + +msgid "Toggle navigation" +msgstr "Togol navigasi" + +msgid "next page" +msgstr "muka surat seterusnya" + +msgid "open issue" +msgstr "isu terbuka" + +msgid "previous page" +msgstr "halaman sebelumnya" + +msgid "suggest edit" +msgstr "cadangkan edit" diff --git a/_static/locales/nl/LC_MESSAGES/booktheme.mo b/_static/locales/nl/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..e59e7ec Binary files /dev/null and b/_static/locales/nl/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/nl/LC_MESSAGES/booktheme.po b/_static/locales/nl/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..e114611 --- /dev/null +++ b/_static/locales/nl/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Door de" + +msgid "By" +msgstr "Door" + +msgid "Contents" +msgstr "Inhoud" + +msgid "Copyright" +msgstr "auteursrechten" + +msgid "Download notebook file" +msgstr "Download notebookbestand" + +msgid "Download source file" +msgstr "Download het bronbestand" + +msgid "Download this page" +msgstr "Download deze pagina" + +msgid "Edit this page" +msgstr "bewerk deze pagina" + +msgid "Fullscreen mode" +msgstr "Volledig scherm" + +msgid "Last updated on" +msgstr "Laatst geupdate op" + +msgid "Launch" +msgstr "Lancering" + +msgid "Open an issue" +msgstr "Open een probleem" + +msgid "Print to PDF" +msgstr "Afdrukken naar pdf" + +msgid "Source repository" +msgstr "Bronopslagplaats" + +msgid "Sphinx Book Theme" +msgstr "Sphinx-boekthema" + +msgid "Theme by the" +msgstr "Thema door de" + +msgid "Toggle navigation" +msgstr "Schakel navigatie" + +msgid "next page" +msgstr "volgende bladzijde" + +msgid "open issue" +msgstr "open probleem" + +msgid "previous page" +msgstr "vorige pagina" + +msgid "repository" +msgstr "repository" + +msgid "suggest edit" +msgstr "suggereren bewerken" diff --git a/_static/locales/no/LC_MESSAGES/booktheme.mo b/_static/locales/no/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..6cd15c8 Binary files /dev/null and b/_static/locales/no/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/no/LC_MESSAGES/booktheme.po b/_static/locales/no/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..53fa9fc --- /dev/null +++ b/_static/locales/no/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: no\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Ved" + +msgid "By" +msgstr "Av" + +msgid "Contents" +msgstr "Innhold" + +msgid "Copyright" +msgstr "opphavsrett" + +msgid "Download notebook file" +msgstr "Last ned notatbokfilen" + +msgid "Download source file" +msgstr "Last ned kildefilen" + +msgid "Download this page" +msgstr "Last ned denne siden" + +msgid "Edit this page" +msgstr "Rediger denne siden" + +msgid "Fullscreen mode" +msgstr "Fullskjerm-modus" + +msgid "Last updated on" +msgstr "Sist oppdatert den" + +msgid "Launch" +msgstr "Start" + +msgid "Open an issue" +msgstr "Åpne et problem" + +msgid "Print to PDF" +msgstr "Skriv ut til PDF" + +msgid "Source repository" +msgstr "Kildedepot" + +msgid "Sphinx Book Theme" +msgstr "Sphinx boktema" + +msgid "Theme by the" +msgstr "Tema av" + +msgid "Toggle navigation" +msgstr "Bytt navigasjon" + +msgid "next page" +msgstr "neste side" + +msgid "open issue" +msgstr "åpent nummer" + +msgid "previous page" +msgstr "forrige side" + +msgid "repository" +msgstr "oppbevaringssted" + +msgid "suggest edit" +msgstr "foreslå redigering" diff --git a/_static/locales/pl/LC_MESSAGES/booktheme.mo b/_static/locales/pl/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..9ebb584 Binary files /dev/null and b/_static/locales/pl/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/pl/LC_MESSAGES/booktheme.po b/_static/locales/pl/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..a482215 --- /dev/null +++ b/_static/locales/pl/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Przez" + +msgid "By" +msgstr "Przez" + +msgid "Contents" +msgstr "Zawartość" + +msgid "Copyright" +msgstr "prawa autorskie" + +msgid "Download notebook file" +msgstr "Pobierz plik notatnika" + +msgid "Download source file" +msgstr "Pobierz plik źródłowy" + +msgid "Download this page" +msgstr "Pobierz tę stronę" + +msgid "Edit this page" +msgstr "Edytuj tę strone" + +msgid "Fullscreen mode" +msgstr "Pełny ekran" + +msgid "Last updated on" +msgstr "Ostatnia aktualizacja" + +msgid "Launch" +msgstr "Uruchomić" + +msgid "Open an issue" +msgstr "Otwórz problem" + +msgid "Print to PDF" +msgstr "Drukuj do PDF" + +msgid "Source repository" +msgstr "Repozytorium źródłowe" + +msgid "Sphinx Book Theme" +msgstr "Motyw książki Sphinx" + +msgid "Theme by the" +msgstr "Motyw autorstwa" + +msgid "Toggle navigation" +msgstr "Przełącz nawigację" + +msgid "next page" +msgstr "Następna strona" + +msgid "open issue" +msgstr "otwarty problem" + +msgid "previous page" +msgstr "Poprzednia strona" + +msgid "repository" +msgstr "magazyn" + +msgid "suggest edit" +msgstr "zaproponuj edycję" diff --git a/_static/locales/pt/LC_MESSAGES/booktheme.mo b/_static/locales/pt/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..d0ddb87 Binary files /dev/null and b/_static/locales/pt/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/pt/LC_MESSAGES/booktheme.po b/_static/locales/pt/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..bbc872d --- /dev/null +++ b/_static/locales/pt/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: pt\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Pelo" + +msgid "By" +msgstr "De" + +msgid "Contents" +msgstr "Conteúdo" + +msgid "Copyright" +msgstr "direito autoral" + +msgid "Download notebook file" +msgstr "Baixar arquivo de notebook" + +msgid "Download source file" +msgstr "Baixar arquivo fonte" + +msgid "Download this page" +msgstr "Baixe esta página" + +msgid "Edit this page" +msgstr "Edite essa página" + +msgid "Fullscreen mode" +msgstr "Modo tela cheia" + +msgid "Last updated on" +msgstr "Última atualização em" + +msgid "Launch" +msgstr "Lançamento" + +msgid "Open an issue" +msgstr "Abra um problema" + +msgid "Print to PDF" +msgstr "Imprimir em PDF" + +msgid "Source repository" +msgstr "Repositório fonte" + +msgid "Sphinx Book Theme" +msgstr "Tema do livro Sphinx" + +msgid "Theme by the" +msgstr "Tema por" + +msgid "Toggle navigation" +msgstr "Alternar de navegação" + +msgid "next page" +msgstr "próxima página" + +msgid "open issue" +msgstr "questão aberta" + +msgid "previous page" +msgstr "página anterior" + +msgid "repository" +msgstr "repositório" + +msgid "suggest edit" +msgstr "sugerir edição" diff --git a/_static/locales/ro/LC_MESSAGES/booktheme.mo b/_static/locales/ro/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..3c36ab1 Binary files /dev/null and b/_static/locales/ro/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/ro/LC_MESSAGES/booktheme.po b/_static/locales/ro/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..b9b8b4f --- /dev/null +++ b/_static/locales/ro/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: ro\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Langa" + +msgid "By" +msgstr "De" + +msgid "Contents" +msgstr "Cuprins" + +msgid "Copyright" +msgstr "Drepturi de autor" + +msgid "Download notebook file" +msgstr "Descărcați fișierul notebook" + +msgid "Download source file" +msgstr "Descărcați fișierul sursă" + +msgid "Download this page" +msgstr "Descarcă această pagină" + +msgid "Edit this page" +msgstr "Editați această pagină" + +msgid "Fullscreen mode" +msgstr "Modul ecran întreg" + +msgid "Last updated on" +msgstr "Ultima actualizare la" + +msgid "Launch" +msgstr "Lansa" + +msgid "Open an issue" +msgstr "Deschideți o problemă" + +msgid "Print to PDF" +msgstr "Imprimați în PDF" + +msgid "Source repository" +msgstr "Depozit sursă" + +msgid "Sphinx Book Theme" +msgstr "Tema Sphinx Book" + +msgid "Theme by the" +msgstr "Tema de" + +msgid "Toggle navigation" +msgstr "Comutare navigare" + +msgid "next page" +msgstr "pagina următoare" + +msgid "open issue" +msgstr "problema deschisă" + +msgid "previous page" +msgstr "pagina anterioară" + +msgid "repository" +msgstr "repertoriu" + +msgid "suggest edit" +msgstr "sugerează editare" diff --git a/_static/locales/ru/LC_MESSAGES/booktheme.mo b/_static/locales/ru/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..5ea2e5c Binary files /dev/null and b/_static/locales/ru/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/ru/LC_MESSAGES/booktheme.po b/_static/locales/ru/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..e0f3555 --- /dev/null +++ b/_static/locales/ru/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: ru\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Посредством" + +msgid "By" +msgstr "Автор:" + +msgid "Contents" +msgstr "Содержание" + +msgid "Copyright" +msgstr "авторское право" + +msgid "Download notebook file" +msgstr "Скачать файл записной книжки" + +msgid "Download source file" +msgstr "Скачать исходный файл" + +msgid "Download this page" +msgstr "Загрузите эту страницу" + +msgid "Edit this page" +msgstr "Редактировать эту страницу" + +msgid "Fullscreen mode" +msgstr "Полноэкранный режим" + +msgid "Last updated on" +msgstr "Последнее обновление" + +msgid "Launch" +msgstr "Запуск" + +msgid "Open an issue" +msgstr "Открыть вопрос" + +msgid "Print to PDF" +msgstr "Распечатать в PDF" + +msgid "Source repository" +msgstr "Исходный репозиторий" + +msgid "Sphinx Book Theme" +msgstr "Тема книги Сфинкс" + +msgid "Theme by the" +msgstr "Тема от" + +msgid "Toggle navigation" +msgstr "Переключить навигацию" + +msgid "next page" +msgstr "Следующая страница" + +msgid "open issue" +msgstr "открытый вопрос" + +msgid "previous page" +msgstr "Предыдущая страница" + +msgid "repository" +msgstr "хранилище" + +msgid "suggest edit" +msgstr "предложить редактировать" diff --git a/_static/locales/sk/LC_MESSAGES/booktheme.mo b/_static/locales/sk/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..59bd0dd Binary files /dev/null and b/_static/locales/sk/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/sk/LC_MESSAGES/booktheme.po b/_static/locales/sk/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..4b5225a --- /dev/null +++ b/_static/locales/sk/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: sk\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Podľa" + +msgid "By" +msgstr "Autor:" + +msgid "Contents" +msgstr "Obsah" + +msgid "Copyright" +msgstr "Autorské práva" + +msgid "Download notebook file" +msgstr "Stiahnite si zošit" + +msgid "Download source file" +msgstr "Stiahnite si zdrojový súbor" + +msgid "Download this page" +msgstr "Stiahnite si túto stránku" + +msgid "Edit this page" +msgstr "Upraviť túto stránku" + +msgid "Fullscreen mode" +msgstr "Režim celej obrazovky" + +msgid "Last updated on" +msgstr "Posledná aktualizácia dňa" + +msgid "Launch" +msgstr "Spustiť" + +msgid "Open an issue" +msgstr "Otvorte problém" + +msgid "Print to PDF" +msgstr "Tlač do PDF" + +msgid "Source repository" +msgstr "Zdrojové úložisko" + +msgid "Sphinx Book Theme" +msgstr "Téma knihy Sfinga" + +msgid "Theme by the" +msgstr "Téma od" + +msgid "Toggle navigation" +msgstr "Prepnúť navigáciu" + +msgid "next page" +msgstr "ďalšia strana" + +msgid "open issue" +msgstr "otvorené vydanie" + +msgid "previous page" +msgstr "predchádzajúca strana" + +msgid "repository" +msgstr "Úložisko" + +msgid "suggest edit" +msgstr "navrhnúť úpravu" diff --git a/_static/locales/sl/LC_MESSAGES/booktheme.mo b/_static/locales/sl/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..87bf26d Binary files /dev/null and b/_static/locales/sl/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/sl/LC_MESSAGES/booktheme.po b/_static/locales/sl/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..45592e7 --- /dev/null +++ b/_static/locales/sl/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: sl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Avtor" + +msgid "By" +msgstr "Avtor" + +msgid "Contents" +msgstr "Vsebina" + +msgid "Copyright" +msgstr "avtorske pravice" + +msgid "Download notebook file" +msgstr "Prenesite datoteko zvezka" + +msgid "Download source file" +msgstr "Prenesite izvorno datoteko" + +msgid "Download this page" +msgstr "Prenesite to stran" + +msgid "Edit this page" +msgstr "Uredite to stran" + +msgid "Fullscreen mode" +msgstr "Celozaslonski način" + +msgid "Last updated on" +msgstr "Nazadnje posodobljeno dne" + +msgid "Launch" +msgstr "Kosilo" + +msgid "Open an issue" +msgstr "Odprite številko" + +msgid "Print to PDF" +msgstr "Natisni v PDF" + +msgid "Source repository" +msgstr "Izvorno skladišče" + +msgid "Sphinx Book Theme" +msgstr "Tema knjige Sphinx" + +msgid "Theme by the" +msgstr "Tema avtorja" + +msgid "Toggle navigation" +msgstr "Preklopi navigacijo" + +msgid "next page" +msgstr "Naslednja stran" + +msgid "open issue" +msgstr "odprto vprašanje" + +msgid "previous page" +msgstr "Prejšnja stran" + +msgid "repository" +msgstr "odlagališče" + +msgid "suggest edit" +msgstr "predlagajte urejanje" diff --git a/_static/locales/sr/LC_MESSAGES/booktheme.mo b/_static/locales/sr/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..ec740f4 Binary files /dev/null and b/_static/locales/sr/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/sr/LC_MESSAGES/booktheme.po b/_static/locales/sr/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..4ddf693 --- /dev/null +++ b/_static/locales/sr/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: sr\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Од" + +msgid "By" +msgstr "Од стране" + +msgid "Contents" +msgstr "Садржај" + +msgid "Copyright" +msgstr "Ауторско право" + +msgid "Download notebook file" +msgstr "Преузмите датотеку бележнице" + +msgid "Download source file" +msgstr "Преузми изворну датотеку" + +msgid "Download this page" +msgstr "Преузмите ову страницу" + +msgid "Edit this page" +msgstr "Уредите ову страницу" + +msgid "Fullscreen mode" +msgstr "Режим целог екрана" + +msgid "Last updated on" +msgstr "Последње ажурирање" + +msgid "Launch" +msgstr "Лансирање" + +msgid "Open an issue" +msgstr "Отворите издање" + +msgid "Print to PDF" +msgstr "Испис у ПДФ" + +msgid "Source repository" +msgstr "Изворно спремиште" + +msgid "Sphinx Book Theme" +msgstr "Тема књиге Спхинк" + +msgid "Theme by the" +msgstr "Тхеме би" + +msgid "Toggle navigation" +msgstr "Укључи / искључи навигацију" + +msgid "next page" +msgstr "Следећа страна" + +msgid "open issue" +msgstr "отворено издање" + +msgid "previous page" +msgstr "Претходна страница" + +msgid "repository" +msgstr "спремиште" + +msgid "suggest edit" +msgstr "предложи уређивање" diff --git a/_static/locales/sv/LC_MESSAGES/booktheme.mo b/_static/locales/sv/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..b07dc76 Binary files /dev/null and b/_static/locales/sv/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/sv/LC_MESSAGES/booktheme.po b/_static/locales/sv/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..a5587a5 --- /dev/null +++ b/_static/locales/sv/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: sv\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Av den" + +msgid "By" +msgstr "Av" + +msgid "Contents" +msgstr "Innehåll" + +msgid "Copyright" +msgstr "Upphovsrätt" + +msgid "Download notebook file" +msgstr "Ladda ner notebook-fil" + +msgid "Download source file" +msgstr "Ladda ner källfil" + +msgid "Download this page" +msgstr "Ladda ner den här sidan" + +msgid "Edit this page" +msgstr "Redigera den här sidan" + +msgid "Fullscreen mode" +msgstr "Fullskärmsläge" + +msgid "Last updated on" +msgstr "Senast uppdaterad den" + +msgid "Launch" +msgstr "Öppna" + +msgid "Open an issue" +msgstr "Öppna en problemrapport" + +msgid "Print to PDF" +msgstr "Skriv ut till PDF" + +msgid "Source repository" +msgstr "Källkodsrepositorium" + +msgid "Sphinx Book Theme" +msgstr "Sphinx Boktema" + +msgid "Theme by the" +msgstr "Tema av" + +msgid "Toggle navigation" +msgstr "Växla navigering" + +msgid "next page" +msgstr "nästa sida" + +msgid "open issue" +msgstr "öppna problemrapport" + +msgid "previous page" +msgstr "föregående sida" + +msgid "repository" +msgstr "repositorium" + +msgid "suggest edit" +msgstr "föreslå ändring" diff --git a/_static/locales/ta/LC_MESSAGES/booktheme.mo b/_static/locales/ta/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..29f52e1 Binary files /dev/null and b/_static/locales/ta/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/ta/LC_MESSAGES/booktheme.po b/_static/locales/ta/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..fb871e2 --- /dev/null +++ b/_static/locales/ta/LC_MESSAGES/booktheme.po @@ -0,0 +1,66 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: ta\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "மூலம்" + +msgid "By" +msgstr "வழங்கியவர்" + +msgid "Copyright" +msgstr "பதிப்புரிமை" + +msgid "Download notebook file" +msgstr "நோட்புக் கோப்பைப் பதிவிறக்கவும்" + +msgid "Download source file" +msgstr "மூல கோப்பைப் பதிவிறக்குக" + +msgid "Download this page" +msgstr "இந்தப் பக்கத்தைப் பதிவிறக்கவும்" + +msgid "Edit this page" +msgstr "இந்தப் பக்கத்தைத் திருத்தவும்" + +msgid "Last updated on" +msgstr "கடைசியாக புதுப்பிக்கப்பட்டது" + +msgid "Launch" +msgstr "தொடங்க" + +msgid "Open an issue" +msgstr "சிக்கலைத் திறக்கவும்" + +msgid "Print to PDF" +msgstr "PDF இல் அச்சிடுக" + +msgid "Source repository" +msgstr "மூல களஞ்சியம்" + +msgid "Sphinx Book Theme" +msgstr "ஸ்பிங்க்ஸ் புத்தக தீம்" + +msgid "Theme by the" +msgstr "வழங்கிய தீம்" + +msgid "Toggle navigation" +msgstr "வழிசெலுத்தலை நிலைமாற்று" + +msgid "next page" +msgstr "அடுத்த பக்கம்" + +msgid "open issue" +msgstr "திறந்த பிரச்சினை" + +msgid "previous page" +msgstr "முந்தைய பக்கம்" + +msgid "suggest edit" +msgstr "திருத்த பரிந்துரைக்கவும்" diff --git a/_static/locales/te/LC_MESSAGES/booktheme.mo b/_static/locales/te/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..0a5f4b4 Binary files /dev/null and b/_static/locales/te/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/te/LC_MESSAGES/booktheme.po b/_static/locales/te/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..22ab77c --- /dev/null +++ b/_static/locales/te/LC_MESSAGES/booktheme.po @@ -0,0 +1,66 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: te\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "ద్వారా" + +msgid "By" +msgstr "ద్వారా" + +msgid "Copyright" +msgstr "కాపీరైట్" + +msgid "Download notebook file" +msgstr "నోట్బుక్ ఫైల్ను డౌన్లోడ్ చేయండి" + +msgid "Download source file" +msgstr "మూల ఫైల్‌ను డౌన్‌లోడ్ చేయండి" + +msgid "Download this page" +msgstr "ఈ పేజీని డౌన్‌లోడ్ చేయండి" + +msgid "Edit this page" +msgstr "ఈ పేజీని సవరించండి" + +msgid "Last updated on" +msgstr "చివరిగా నవీకరించబడింది" + +msgid "Launch" +msgstr "ప్రారంభించండి" + +msgid "Open an issue" +msgstr "సమస్యను తెరవండి" + +msgid "Print to PDF" +msgstr "PDF కి ముద్రించండి" + +msgid "Source repository" +msgstr "మూల రిపోజిటరీ" + +msgid "Sphinx Book Theme" +msgstr "సింహిక పుస్తక థీమ్" + +msgid "Theme by the" +msgstr "ద్వారా థీమ్" + +msgid "Toggle navigation" +msgstr "నావిగేషన్‌ను టోగుల్ చేయండి" + +msgid "next page" +msgstr "తరువాతి పేజీ" + +msgid "open issue" +msgstr "ఓపెన్ ఇష్యూ" + +msgid "previous page" +msgstr "ముందు పేజి" + +msgid "suggest edit" +msgstr "సవరించమని సూచించండి" diff --git a/_static/locales/tg/LC_MESSAGES/booktheme.mo b/_static/locales/tg/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..b21c6c6 Binary files /dev/null and b/_static/locales/tg/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/tg/LC_MESSAGES/booktheme.po b/_static/locales/tg/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..e499352 --- /dev/null +++ b/_static/locales/tg/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: tg\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Бо" + +msgid "By" +msgstr "Бо" + +msgid "Contents" +msgstr "Мундариҷа" + +msgid "Copyright" +msgstr "Ҳуқуқи муаллиф" + +msgid "Download notebook file" +msgstr "Файли дафтарро зеркашӣ кунед" + +msgid "Download source file" +msgstr "Файли манбаъро зеркашӣ кунед" + +msgid "Download this page" +msgstr "Ин саҳифаро зеркашӣ кунед" + +msgid "Edit this page" +msgstr "Ин саҳифаро таҳрир кунед" + +msgid "Fullscreen mode" +msgstr "Ҳолати экрани пурра" + +msgid "Last updated on" +msgstr "Last навсозӣ дар" + +msgid "Launch" +msgstr "Оғоз" + +msgid "Open an issue" +msgstr "Масъаларо кушоед" + +msgid "Print to PDF" +msgstr "Чоп ба PDF" + +msgid "Source repository" +msgstr "Анбори манбаъ" + +msgid "Sphinx Book Theme" +msgstr "Сфинкс Мавзӯи китоб" + +msgid "Theme by the" +msgstr "Мавзӯъи аз" + +msgid "Toggle navigation" +msgstr "Гузаришро иваз кунед" + +msgid "next page" +msgstr "саҳифаи оянда" + +msgid "open issue" +msgstr "барориши кушод" + +msgid "previous page" +msgstr "саҳифаи қаблӣ" + +msgid "repository" +msgstr "анбор" + +msgid "suggest edit" +msgstr "пешниҳод вироиш" diff --git a/_static/locales/th/LC_MESSAGES/booktheme.mo b/_static/locales/th/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..abede98 Binary files /dev/null and b/_static/locales/th/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/th/LC_MESSAGES/booktheme.po b/_static/locales/th/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..6f0103e --- /dev/null +++ b/_static/locales/th/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: th\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "โดย" + +msgid "By" +msgstr "โดย" + +msgid "Contents" +msgstr "สารบัญ" + +msgid "Copyright" +msgstr "ลิขสิทธิ์" + +msgid "Download notebook file" +msgstr "ดาวน์โหลดไฟล์สมุดบันทึก" + +msgid "Download source file" +msgstr "ดาวน์โหลดไฟล์ต้นฉบับ" + +msgid "Download this page" +msgstr "ดาวน์โหลดหน้านี้" + +msgid "Edit this page" +msgstr "แก้ไขหน้านี้" + +msgid "Fullscreen mode" +msgstr "โหมดเต็มหน้าจอ" + +msgid "Last updated on" +msgstr "ปรับปรุงล่าสุดเมื่อ" + +msgid "Launch" +msgstr "เปิด" + +msgid "Open an issue" +msgstr "เปิดปัญหา" + +msgid "Print to PDF" +msgstr "พิมพ์เป็น PDF" + +msgid "Source repository" +msgstr "ที่เก็บซอร์ส" + +msgid "Sphinx Book Theme" +msgstr "ธีมหนังสือสฟิงซ์" + +msgid "Theme by the" +msgstr "ธีมโดย" + +msgid "Toggle navigation" +msgstr "ไม่ต้องสลับช่องทาง" + +msgid "next page" +msgstr "หน้าต่อไป" + +msgid "open issue" +msgstr "เปิดปัญหา" + +msgid "previous page" +msgstr "หน้าที่แล้ว" + +msgid "repository" +msgstr "ที่เก็บ" + +msgid "suggest edit" +msgstr "แนะนำแก้ไข" diff --git a/_static/locales/tl/LC_MESSAGES/booktheme.mo b/_static/locales/tl/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..8df1b73 Binary files /dev/null and b/_static/locales/tl/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/tl/LC_MESSAGES/booktheme.po b/_static/locales/tl/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..dbeb256 --- /dev/null +++ b/_static/locales/tl/LC_MESSAGES/booktheme.po @@ -0,0 +1,66 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: tl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Sa pamamagitan ng" + +msgid "By" +msgstr "Ni" + +msgid "Copyright" +msgstr "Copyright" + +msgid "Download notebook file" +msgstr "Mag-download ng file ng notebook" + +msgid "Download source file" +msgstr "Mag-download ng file ng pinagmulan" + +msgid "Download this page" +msgstr "I-download ang pahinang ito" + +msgid "Edit this page" +msgstr "I-edit ang pahinang ito" + +msgid "Last updated on" +msgstr "Huling na-update noong" + +msgid "Launch" +msgstr "Ilunsad" + +msgid "Open an issue" +msgstr "Magbukas ng isyu" + +msgid "Print to PDF" +msgstr "I-print sa PDF" + +msgid "Source repository" +msgstr "Pinagmulan ng imbakan" + +msgid "Sphinx Book Theme" +msgstr "Tema ng Sphinx Book" + +msgid "Theme by the" +msgstr "Tema ng" + +msgid "Toggle navigation" +msgstr "I-toggle ang pag-navigate" + +msgid "next page" +msgstr "Susunod na pahina" + +msgid "open issue" +msgstr "bukas na isyu" + +msgid "previous page" +msgstr "Nakaraang pahina" + +msgid "suggest edit" +msgstr "iminumungkahi i-edit" diff --git a/_static/locales/tr/LC_MESSAGES/booktheme.mo b/_static/locales/tr/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..029ae18 Binary files /dev/null and b/_static/locales/tr/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/tr/LC_MESSAGES/booktheme.po b/_static/locales/tr/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..610c1ab --- /dev/null +++ b/_static/locales/tr/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: tr\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Tarafından" + +msgid "By" +msgstr "Tarafından" + +msgid "Contents" +msgstr "İçindekiler" + +msgid "Copyright" +msgstr "Telif hakkı" + +msgid "Download notebook file" +msgstr "Defter dosyasını indirin" + +msgid "Download source file" +msgstr "Kaynak dosyayı indirin" + +msgid "Download this page" +msgstr "Bu sayfayı indirin" + +msgid "Edit this page" +msgstr "Bu sayfayı düzenle" + +msgid "Fullscreen mode" +msgstr "Tam ekran modu" + +msgid "Last updated on" +msgstr "Son güncelleme tarihi" + +msgid "Launch" +msgstr "Başlatmak" + +msgid "Open an issue" +msgstr "Bir sorunu açın" + +msgid "Print to PDF" +msgstr "PDF olarak yazdır" + +msgid "Source repository" +msgstr "Kaynak kod deposu" + +msgid "Sphinx Book Theme" +msgstr "Sfenks Kitap Teması" + +msgid "Theme by the" +msgstr "Tarafından tema" + +msgid "Toggle navigation" +msgstr "Gezinmeyi değiştir" + +msgid "next page" +msgstr "sonraki Sayfa" + +msgid "open issue" +msgstr "Açık konu" + +msgid "previous page" +msgstr "önceki sayfa" + +msgid "repository" +msgstr "depo" + +msgid "suggest edit" +msgstr "düzenleme öner" diff --git a/_static/locales/uk/LC_MESSAGES/booktheme.mo b/_static/locales/uk/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..16ab789 Binary files /dev/null and b/_static/locales/uk/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/uk/LC_MESSAGES/booktheme.po b/_static/locales/uk/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..8ae61c4 --- /dev/null +++ b/_static/locales/uk/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: uk\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "По" + +msgid "By" +msgstr "Автор" + +msgid "Contents" +msgstr "Зміст" + +msgid "Copyright" +msgstr "Авторське право" + +msgid "Download notebook file" +msgstr "Завантажте файл блокнота" + +msgid "Download source file" +msgstr "Завантажити вихідний файл" + +msgid "Download this page" +msgstr "Завантажте цю сторінку" + +msgid "Edit this page" +msgstr "Редагувати цю сторінку" + +msgid "Fullscreen mode" +msgstr "Повноекранний режим" + +msgid "Last updated on" +msgstr "Останнє оновлення:" + +msgid "Launch" +msgstr "Запуск" + +msgid "Open an issue" +msgstr "Відкрийте випуск" + +msgid "Print to PDF" +msgstr "Друк у форматі PDF" + +msgid "Source repository" +msgstr "Джерело сховища" + +msgid "Sphinx Book Theme" +msgstr "Тема книги \"Сфінкс\"" + +msgid "Theme by the" +msgstr "Тема від" + +msgid "Toggle navigation" +msgstr "Переключити навігацію" + +msgid "next page" +msgstr "Наступна сторінка" + +msgid "open issue" +msgstr "відкритий випуск" + +msgid "previous page" +msgstr "Попередня сторінка" + +msgid "repository" +msgstr "сховище" + +msgid "suggest edit" +msgstr "запропонувати редагувати" diff --git a/_static/locales/ur/LC_MESSAGES/booktheme.mo b/_static/locales/ur/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..de8c84b Binary files /dev/null and b/_static/locales/ur/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/ur/LC_MESSAGES/booktheme.po b/_static/locales/ur/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..63018ea --- /dev/null +++ b/_static/locales/ur/LC_MESSAGES/booktheme.po @@ -0,0 +1,66 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: ur\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "کی طرف" + +msgid "By" +msgstr "بذریعہ" + +msgid "Copyright" +msgstr "کاپی رائٹ" + +msgid "Download notebook file" +msgstr "نوٹ بک فائل ڈاؤن لوڈ کریں" + +msgid "Download source file" +msgstr "سورس فائل ڈاؤن لوڈ کریں" + +msgid "Download this page" +msgstr "اس صفحے کو ڈاؤن لوڈ کریں" + +msgid "Edit this page" +msgstr "اس صفحے میں ترمیم کریں" + +msgid "Last updated on" +msgstr "آخری بار تازہ کاری ہوئی" + +msgid "Launch" +msgstr "لانچ کریں" + +msgid "Open an issue" +msgstr "ایک مسئلہ کھولیں" + +msgid "Print to PDF" +msgstr "پی ڈی ایف پرنٹ کریں" + +msgid "Source repository" +msgstr "ماخذ ذخیرہ" + +msgid "Sphinx Book Theme" +msgstr "سپنکس بک تھیم" + +msgid "Theme by the" +msgstr "کے ذریعہ تھیم" + +msgid "Toggle navigation" +msgstr "نیویگیشن ٹوگل کریں" + +msgid "next page" +msgstr "اگلا صفحہ" + +msgid "open issue" +msgstr "کھلا مسئلہ" + +msgid "previous page" +msgstr "سابقہ ​​صفحہ" + +msgid "suggest edit" +msgstr "ترمیم کی تجویز کریں" diff --git a/_static/locales/vi/LC_MESSAGES/booktheme.mo b/_static/locales/vi/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..2bb3255 Binary files /dev/null and b/_static/locales/vi/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/vi/LC_MESSAGES/booktheme.po b/_static/locales/vi/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..ac91b0f --- /dev/null +++ b/_static/locales/vi/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: vi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "Bằng" + +msgid "By" +msgstr "Bởi" + +msgid "Contents" +msgstr "Nội dung" + +msgid "Copyright" +msgstr "Bản quyền" + +msgid "Download notebook file" +msgstr "Tải xuống tệp sổ tay" + +msgid "Download source file" +msgstr "Tải xuống tệp nguồn" + +msgid "Download this page" +msgstr "Tải xuống trang này" + +msgid "Edit this page" +msgstr "chỉnh sửa trang này" + +msgid "Fullscreen mode" +msgstr "Chế độ toàn màn hình" + +msgid "Last updated on" +msgstr "Cập nhật lần cuối vào" + +msgid "Launch" +msgstr "Phóng" + +msgid "Open an issue" +msgstr "Mở một vấn đề" + +msgid "Print to PDF" +msgstr "In sang PDF" + +msgid "Source repository" +msgstr "Kho nguồn" + +msgid "Sphinx Book Theme" +msgstr "Chủ đề sách nhân sư" + +msgid "Theme by the" +msgstr "Chủ đề của" + +msgid "Toggle navigation" +msgstr "Chuyển đổi điều hướng thành" + +msgid "next page" +msgstr "Trang tiếp theo" + +msgid "open issue" +msgstr "vấn đề mở" + +msgid "previous page" +msgstr "trang trước" + +msgid "repository" +msgstr "kho" + +msgid "suggest edit" +msgstr "đề nghị chỉnh sửa" diff --git a/_static/locales/zh_CN/LC_MESSAGES/booktheme.mo b/_static/locales/zh_CN/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..0e3235d Binary files /dev/null and b/_static/locales/zh_CN/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/zh_CN/LC_MESSAGES/booktheme.po b/_static/locales/zh_CN/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..ff1c938 --- /dev/null +++ b/_static/locales/zh_CN/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "作者:" + +msgid "By" +msgstr "作者:" + +msgid "Contents" +msgstr "目录" + +msgid "Copyright" +msgstr "版权" + +msgid "Download notebook file" +msgstr "下载笔记本文件" + +msgid "Download source file" +msgstr "下载源文件" + +msgid "Download this page" +msgstr "下载此页面" + +msgid "Edit this page" +msgstr "编辑此页面" + +msgid "Fullscreen mode" +msgstr "全屏模式" + +msgid "Last updated on" +msgstr "上次更新时间:" + +msgid "Launch" +msgstr "启动" + +msgid "Open an issue" +msgstr "创建议题" + +msgid "Print to PDF" +msgstr "列印成 PDF" + +msgid "Source repository" +msgstr "源码库" + +msgid "Sphinx Book Theme" +msgstr "Sphinx Book 主题" + +msgid "Theme by the" +msgstr "主题作者:" + +msgid "Toggle navigation" +msgstr "显示或隐藏导航栏" + +msgid "next page" +msgstr "下一页" + +msgid "open issue" +msgstr "创建议题" + +msgid "previous page" +msgstr "上一页" + +msgid "repository" +msgstr "仓库" + +msgid "suggest edit" +msgstr "提出修改建议" diff --git a/_static/locales/zh_TW/LC_MESSAGES/booktheme.mo b/_static/locales/zh_TW/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..9116fa9 Binary files /dev/null and b/_static/locales/zh_TW/LC_MESSAGES/booktheme.mo differ diff --git a/_static/locales/zh_TW/LC_MESSAGES/booktheme.po b/_static/locales/zh_TW/LC_MESSAGES/booktheme.po new file mode 100644 index 0000000..f2b300f --- /dev/null +++ b/_static/locales/zh_TW/LC_MESSAGES/booktheme.po @@ -0,0 +1,75 @@ + +msgid "" +msgstr "" +"Project-Id-Version: Sphinx-Book-Theme\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: zh_TW\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "By the" +msgstr "作者:" + +msgid "By" +msgstr "作者:" + +msgid "Contents" +msgstr "目錄" + +msgid "Copyright" +msgstr "Copyright" + +msgid "Download notebook file" +msgstr "下載 Notebook 檔案" + +msgid "Download source file" +msgstr "下載原始檔" + +msgid "Download this page" +msgstr "下載此頁面" + +msgid "Edit this page" +msgstr "編輯此頁面" + +msgid "Fullscreen mode" +msgstr "全螢幕模式" + +msgid "Last updated on" +msgstr "最後更新時間:" + +msgid "Launch" +msgstr "啟動" + +msgid "Open an issue" +msgstr "開啟議題" + +msgid "Print to PDF" +msgstr "列印成 PDF" + +msgid "Source repository" +msgstr "來源儲存庫" + +msgid "Sphinx Book Theme" +msgstr "Sphinx Book 佈景主題" + +msgid "Theme by the" +msgstr "佈景主題作者:" + +msgid "Toggle navigation" +msgstr "顯示或隱藏導覽列" + +msgid "next page" +msgstr "下一頁" + +msgid "open issue" +msgstr "公開的問題" + +msgid "previous page" +msgstr "上一頁" + +msgid "repository" +msgstr "儲存庫" + +msgid "suggest edit" +msgstr "提出修改建議" diff --git a/src/logo.png b/_static/logo.png similarity index 100% rename from src/logo.png rename to _static/logo.png diff --git a/_static/minus.png b/_static/minus.png new file mode 100644 index 0000000..d96755f Binary files /dev/null and b/_static/minus.png differ diff --git a/_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css b/_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css new file mode 100644 index 0000000..3356631 --- /dev/null +++ b/_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css @@ -0,0 +1,2342 @@ +/* Variables */ +:root { + --mystnb-source-bg-color: #f7f7f7; + --mystnb-stdout-bg-color: #fcfcfc; + --mystnb-stderr-bg-color: #fdd; + --mystnb-traceback-bg-color: #fcfcfc; + --mystnb-source-border-color: #ccc; + --mystnb-source-margin-color: green; + --mystnb-stdout-border-color: #f7f7f7; + --mystnb-stderr-border-color: #f7f7f7; + --mystnb-traceback-border-color: #ffd6d6; + --mystnb-hide-prompt-opacity: 70%; + --mystnb-source-border-radius: .4em; + --mystnb-source-border-width: 1px; +} + +/* Whole cell */ +div.container.cell { + padding-left: 0; + margin-bottom: 1em; +} + +/* Removing all background formatting so we can control at the div level */ +.cell_input div.highlight, +.cell_output pre, +.cell_input pre, +.cell_output .output { + border: none; + box-shadow: none; +} + +.cell_output .output pre, +.cell_input pre { + margin: 0px; +} + +/* Input cells */ +div.cell div.cell_input, +div.cell details.above-input>summary { + padding-left: 0em; + padding-right: 0em; + border: var(--mystnb-source-border-width) var(--mystnb-source-border-color) solid; + background-color: var(--mystnb-source-bg-color); + border-left-color: var(--mystnb-source-margin-color); + border-left-width: medium; + border-radius: var(--mystnb-source-border-radius); +} + +div.cell_input>div, +div.cell_output div.output>div.highlight { + margin: 0em !important; + border: none !important; +} + +/* All cell outputs */ +.cell_output { + padding-left: 1em; + padding-right: 0em; + margin-top: 1em; +} + +/* Text outputs from cells */ +.cell_output .output.text_plain, +.cell_output .output.traceback, +.cell_output .output.stream, +.cell_output .output.stderr { + margin-top: 1em; + margin-bottom: 0em; + box-shadow: none; +} + +.cell_output .output.text_plain, +.cell_output .output.stream { + background: var(--mystnb-stdout-bg-color); + border: 1px solid var(--mystnb-stdout-border-color); +} + +.cell_output .output.stderr { + background: var(--mystnb-stderr-bg-color); + border: 1px solid var(--mystnb-stderr-border-color); +} + +.cell_output .output.traceback { + background: var(--mystnb-traceback-bg-color); + border: 1px solid var(--mystnb-traceback-border-color); +} + +/* Collapsible cell content */ +div.cell details.above-input div.cell_input { + border-top-left-radius: 0; + border-top-right-radius: 0; + border-top: var(--mystnb-source-border-width) var(--mystnb-source-border-color) dashed; +} + +div.cell div.cell_input.above-output-prompt { + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +div.cell details.above-input>summary { + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + border-bottom: var(--mystnb-source-border-width) var(--mystnb-source-border-color) dashed; + padding-left: 1em; + margin-bottom: 0; +} + +div.cell details.above-output>summary { + background-color: var(--mystnb-source-bg-color); + padding-left: 1em; + padding-right: 0em; + border: var(--mystnb-source-border-width) var(--mystnb-source-border-color) solid; + border-radius: var(--mystnb-source-border-radius); + border-left-color: var(--mystnb-source-margin-color); + border-left-width: medium; +} + +div.cell details.below-input>summary { + background-color: var(--mystnb-source-bg-color); + padding-left: 1em; + padding-right: 0em; + border: var(--mystnb-source-border-width) var(--mystnb-source-border-color) solid; + border-top: none; + border-bottom-left-radius: var(--mystnb-source-border-radius); + border-bottom-right-radius: var(--mystnb-source-border-radius); + border-left-color: var(--mystnb-source-margin-color); + border-left-width: medium; +} + +div.cell details.hide>summary>span { + opacity: var(--mystnb-hide-prompt-opacity); +} + +div.cell details.hide[open]>summary>span.collapsed { + display: none; +} + +div.cell details.hide:not([open])>summary>span.expanded { + display: none; +} + +@keyframes collapsed-fade-in { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} +div.cell details.hide[open]>summary~* { + -moz-animation: collapsed-fade-in 0.3s ease-in-out; + -webkit-animation: collapsed-fade-in 0.3s ease-in-out; + animation: collapsed-fade-in 0.3s ease-in-out; +} + +/* Math align to the left */ +.cell_output .MathJax_Display { + text-align: left !important; +} + +/* Pandas tables. Pulled from the Jupyter / nbsphinx CSS */ +div.cell_output table { + border: none; + border-collapse: collapse; + border-spacing: 0; + color: black; + font-size: 1em; + table-layout: fixed; +} + +div.cell_output thead { + border-bottom: 1px solid black; + vertical-align: bottom; +} + +div.cell_output tr, +div.cell_output th, +div.cell_output td { + text-align: right; + vertical-align: middle; + padding: 0.5em 0.5em; + line-height: normal; + white-space: normal; + max-width: none; + border: none; +} + +div.cell_output th { + font-weight: bold; +} + +div.cell_output tbody tr:nth-child(odd) { + background: #f5f5f5; +} + +div.cell_output tbody tr:hover { + background: rgba(66, 165, 245, 0.2); +} + +/** source code line numbers **/ +span.linenos { + opacity: 0.5; +} + +/* Inline text from `paste` operation */ + +span.pasted-text { + font-weight: bold; +} + +span.pasted-inline img { + max-height: 2em; +} + +tbody span.pasted-inline img { + max-height: none; +} + +/* Font colors for translated ANSI escape sequences +Color values are copied from Jupyter Notebook +https://github.com/jupyter/notebook/blob/52581f8eda9b319eb0390ac77fe5903c38f81e3e/notebook/static/notebook/less/ansicolors.less#L14-L21 +Background colors from +https://nbsphinx.readthedocs.io/en/latest/code-cells.html#ANSI-Colors +*/ +div.highlight .-Color-Bold { + font-weight: bold; +} + +div.highlight .-Color[class*=-Black] { + color: #3E424D +} + +div.highlight .-Color[class*=-Red] { + color: #E75C58 +} + +div.highlight .-Color[class*=-Green] { + color: #00A250 +} + +div.highlight .-Color[class*=-Yellow] { + color: #DDB62B +} + +div.highlight .-Color[class*=-Blue] { + color: #208FFB +} + +div.highlight .-Color[class*=-Magenta] { + color: #D160C4 +} + +div.highlight .-Color[class*=-Cyan] { + color: #60C6C8 +} + +div.highlight .-Color[class*=-White] { + color: #C5C1B4 +} + +div.highlight .-Color[class*=-BGBlack] { + background-color: #3E424D +} + +div.highlight .-Color[class*=-BGRed] { + background-color: #E75C58 +} + +div.highlight .-Color[class*=-BGGreen] { + background-color: #00A250 +} + +div.highlight .-Color[class*=-BGYellow] { + background-color: #DDB62B +} + +div.highlight .-Color[class*=-BGBlue] { + background-color: #208FFB +} + +div.highlight .-Color[class*=-BGMagenta] { + background-color: #D160C4 +} + +div.highlight .-Color[class*=-BGCyan] { + background-color: #60C6C8 +} + +div.highlight .-Color[class*=-BGWhite] { + background-color: #C5C1B4 +} + +/* Font colors for 8-bit ANSI */ + +div.highlight .-Color[class*=-C0] { + color: #000000 +} + +div.highlight .-Color[class*=-BGC0] { + background-color: #000000 +} + +div.highlight .-Color[class*=-C1] { + color: #800000 +} + +div.highlight .-Color[class*=-BGC1] { + background-color: #800000 +} + +div.highlight .-Color[class*=-C2] { + color: #008000 +} + +div.highlight .-Color[class*=-BGC2] { + background-color: #008000 +} + +div.highlight .-Color[class*=-C3] { + color: #808000 +} + +div.highlight .-Color[class*=-BGC3] { + background-color: #808000 +} + +div.highlight .-Color[class*=-C4] { + color: #000080 +} + +div.highlight .-Color[class*=-BGC4] { + background-color: #000080 +} + +div.highlight .-Color[class*=-C5] { + color: #800080 +} + +div.highlight .-Color[class*=-BGC5] { + background-color: #800080 +} + +div.highlight .-Color[class*=-C6] { + color: #008080 +} + +div.highlight .-Color[class*=-BGC6] { + background-color: #008080 +} + +div.highlight .-Color[class*=-C7] { + color: #C0C0C0 +} + +div.highlight .-Color[class*=-BGC7] { + background-color: #C0C0C0 +} + +div.highlight .-Color[class*=-C8] { + color: #808080 +} + +div.highlight .-Color[class*=-BGC8] { + background-color: #808080 +} + +div.highlight .-Color[class*=-C9] { + color: #FF0000 +} + +div.highlight .-Color[class*=-BGC9] { + background-color: #FF0000 +} + +div.highlight .-Color[class*=-C10] { + color: #00FF00 +} + +div.highlight .-Color[class*=-BGC10] { + background-color: #00FF00 +} + +div.highlight .-Color[class*=-C11] { + color: #FFFF00 +} + +div.highlight .-Color[class*=-BGC11] { + background-color: #FFFF00 +} + +div.highlight .-Color[class*=-C12] { + color: #0000FF +} + +div.highlight .-Color[class*=-BGC12] { + background-color: #0000FF +} + +div.highlight .-Color[class*=-C13] { + color: #FF00FF +} + +div.highlight .-Color[class*=-BGC13] { + background-color: #FF00FF +} + +div.highlight .-Color[class*=-C14] { + color: #00FFFF +} + +div.highlight .-Color[class*=-BGC14] { + background-color: #00FFFF +} + +div.highlight .-Color[class*=-C15] { + color: #FFFFFF +} + +div.highlight .-Color[class*=-BGC15] { + background-color: #FFFFFF +} + +div.highlight .-Color[class*=-C16] { + color: #000000 +} + +div.highlight .-Color[class*=-BGC16] { + background-color: #000000 +} + +div.highlight .-Color[class*=-C17] { + color: #00005F +} + +div.highlight .-Color[class*=-BGC17] { + background-color: #00005F +} + +div.highlight .-Color[class*=-C18] { + color: #000087 +} + +div.highlight .-Color[class*=-BGC18] { + background-color: #000087 +} + +div.highlight .-Color[class*=-C19] { + color: #0000AF +} + +div.highlight .-Color[class*=-BGC19] { + background-color: #0000AF +} + +div.highlight .-Color[class*=-C20] { + color: #0000D7 +} + +div.highlight .-Color[class*=-BGC20] { + background-color: #0000D7 +} + +div.highlight .-Color[class*=-C21] { + color: #0000FF +} + +div.highlight .-Color[class*=-BGC21] { + background-color: #0000FF +} + +div.highlight .-Color[class*=-C22] { + color: #005F00 +} + +div.highlight .-Color[class*=-BGC22] { + background-color: #005F00 +} + +div.highlight .-Color[class*=-C23] { + color: #005F5F +} + +div.highlight .-Color[class*=-BGC23] { + background-color: #005F5F +} + +div.highlight .-Color[class*=-C24] { + color: #005F87 +} + +div.highlight .-Color[class*=-BGC24] { + background-color: #005F87 +} + +div.highlight .-Color[class*=-C25] { + color: #005FAF +} + +div.highlight .-Color[class*=-BGC25] { + background-color: #005FAF +} + +div.highlight .-Color[class*=-C26] { + color: #005FD7 +} + +div.highlight .-Color[class*=-BGC26] { + background-color: #005FD7 +} + +div.highlight .-Color[class*=-C27] { + color: #005FFF +} + +div.highlight .-Color[class*=-BGC27] { + background-color: #005FFF +} + +div.highlight .-Color[class*=-C28] { + color: #008700 +} + +div.highlight .-Color[class*=-BGC28] { + background-color: #008700 +} + +div.highlight .-Color[class*=-C29] { + color: #00875F +} + +div.highlight .-Color[class*=-BGC29] { + background-color: #00875F +} + +div.highlight .-Color[class*=-C30] { + color: #008787 +} + +div.highlight .-Color[class*=-BGC30] { + background-color: #008787 +} + +div.highlight .-Color[class*=-C31] { + color: #0087AF +} + +div.highlight .-Color[class*=-BGC31] { + background-color: #0087AF +} + +div.highlight .-Color[class*=-C32] { + color: #0087D7 +} + +div.highlight .-Color[class*=-BGC32] { + background-color: #0087D7 +} + +div.highlight .-Color[class*=-C33] { + color: #0087FF +} + +div.highlight .-Color[class*=-BGC33] { + background-color: #0087FF +} + +div.highlight .-Color[class*=-C34] { + color: #00AF00 +} + +div.highlight .-Color[class*=-BGC34] { + background-color: #00AF00 +} + +div.highlight .-Color[class*=-C35] { + color: #00AF5F +} + +div.highlight .-Color[class*=-BGC35] { + background-color: #00AF5F +} + +div.highlight .-Color[class*=-C36] { + color: #00AF87 +} + +div.highlight .-Color[class*=-BGC36] { + background-color: #00AF87 +} + +div.highlight .-Color[class*=-C37] { + color: #00AFAF +} + +div.highlight .-Color[class*=-BGC37] { + background-color: #00AFAF +} + +div.highlight .-Color[class*=-C38] { + color: #00AFD7 +} + +div.highlight .-Color[class*=-BGC38] { + background-color: #00AFD7 +} + +div.highlight .-Color[class*=-C39] { + color: #00AFFF +} + +div.highlight .-Color[class*=-BGC39] { + background-color: #00AFFF +} + +div.highlight .-Color[class*=-C40] { + color: #00D700 +} + +div.highlight .-Color[class*=-BGC40] { + background-color: #00D700 +} + +div.highlight .-Color[class*=-C41] { + color: #00D75F +} + +div.highlight .-Color[class*=-BGC41] { + background-color: #00D75F +} + +div.highlight .-Color[class*=-C42] { + color: #00D787 +} + +div.highlight .-Color[class*=-BGC42] { + background-color: #00D787 +} + +div.highlight .-Color[class*=-C43] { + color: #00D7AF +} + +div.highlight .-Color[class*=-BGC43] { + background-color: #00D7AF +} + +div.highlight .-Color[class*=-C44] { + color: #00D7D7 +} + +div.highlight .-Color[class*=-BGC44] { + background-color: #00D7D7 +} + +div.highlight .-Color[class*=-C45] { + color: #00D7FF +} + +div.highlight .-Color[class*=-BGC45] { + background-color: #00D7FF +} + +div.highlight .-Color[class*=-C46] { + color: #00FF00 +} + +div.highlight .-Color[class*=-BGC46] { + background-color: #00FF00 +} + +div.highlight .-Color[class*=-C47] { + color: #00FF5F +} + +div.highlight .-Color[class*=-BGC47] { + background-color: #00FF5F +} + +div.highlight .-Color[class*=-C48] { + color: #00FF87 +} + +div.highlight .-Color[class*=-BGC48] { + background-color: #00FF87 +} + +div.highlight .-Color[class*=-C49] { + color: #00FFAF +} + +div.highlight .-Color[class*=-BGC49] { + background-color: #00FFAF +} + +div.highlight .-Color[class*=-C50] { + color: #00FFD7 +} + +div.highlight .-Color[class*=-BGC50] { + background-color: #00FFD7 +} + +div.highlight .-Color[class*=-C51] { + color: #00FFFF +} + +div.highlight .-Color[class*=-BGC51] { + background-color: #00FFFF +} + +div.highlight .-Color[class*=-C52] { + color: #5F0000 +} + +div.highlight .-Color[class*=-BGC52] { + background-color: #5F0000 +} + +div.highlight .-Color[class*=-C53] { + color: #5F005F +} + +div.highlight .-Color[class*=-BGC53] { + background-color: #5F005F +} + +div.highlight .-Color[class*=-C54] { + color: #5F0087 +} + +div.highlight .-Color[class*=-BGC54] { + background-color: #5F0087 +} + +div.highlight .-Color[class*=-C55] { + color: #5F00AF +} + +div.highlight .-Color[class*=-BGC55] { + background-color: #5F00AF +} + +div.highlight .-Color[class*=-C56] { + color: #5F00D7 +} + +div.highlight .-Color[class*=-BGC56] { + background-color: #5F00D7 +} + +div.highlight .-Color[class*=-C57] { + color: #5F00FF +} + +div.highlight .-Color[class*=-BGC57] { + background-color: #5F00FF +} + +div.highlight .-Color[class*=-C58] { + color: #5F5F00 +} + +div.highlight .-Color[class*=-BGC58] { + background-color: #5F5F00 +} + +div.highlight .-Color[class*=-C59] { + color: #5F5F5F +} + +div.highlight .-Color[class*=-BGC59] { + background-color: #5F5F5F +} + +div.highlight .-Color[class*=-C60] { + color: #5F5F87 +} + +div.highlight .-Color[class*=-BGC60] { + background-color: #5F5F87 +} + +div.highlight .-Color[class*=-C61] { + color: #5F5FAF +} + +div.highlight .-Color[class*=-BGC61] { + background-color: #5F5FAF +} + +div.highlight .-Color[class*=-C62] { + color: #5F5FD7 +} + +div.highlight .-Color[class*=-BGC62] { + background-color: #5F5FD7 +} + +div.highlight .-Color[class*=-C63] { + color: #5F5FFF +} + +div.highlight .-Color[class*=-BGC63] { + background-color: #5F5FFF +} + +div.highlight .-Color[class*=-C64] { + color: #5F8700 +} + +div.highlight .-Color[class*=-BGC64] { + background-color: #5F8700 +} + +div.highlight .-Color[class*=-C65] { + color: #5F875F +} + +div.highlight .-Color[class*=-BGC65] { + background-color: #5F875F +} + +div.highlight .-Color[class*=-C66] { + color: #5F8787 +} + +div.highlight .-Color[class*=-BGC66] { + background-color: #5F8787 +} + +div.highlight .-Color[class*=-C67] { + color: #5F87AF +} + +div.highlight .-Color[class*=-BGC67] { + background-color: #5F87AF +} + +div.highlight .-Color[class*=-C68] { + color: #5F87D7 +} + +div.highlight .-Color[class*=-BGC68] { + background-color: #5F87D7 +} + +div.highlight .-Color[class*=-C69] { + color: #5F87FF +} + +div.highlight .-Color[class*=-BGC69] { + background-color: #5F87FF +} + +div.highlight .-Color[class*=-C70] { + color: #5FAF00 +} + +div.highlight .-Color[class*=-BGC70] { + background-color: #5FAF00 +} + +div.highlight .-Color[class*=-C71] { + color: #5FAF5F +} + +div.highlight .-Color[class*=-BGC71] { + background-color: #5FAF5F +} + +div.highlight .-Color[class*=-C72] { + color: #5FAF87 +} + +div.highlight .-Color[class*=-BGC72] { + background-color: #5FAF87 +} + +div.highlight .-Color[class*=-C73] { + color: #5FAFAF +} + +div.highlight .-Color[class*=-BGC73] { + background-color: #5FAFAF +} + +div.highlight .-Color[class*=-C74] { + color: #5FAFD7 +} + +div.highlight .-Color[class*=-BGC74] { + background-color: #5FAFD7 +} + +div.highlight .-Color[class*=-C75] { + color: #5FAFFF +} + +div.highlight .-Color[class*=-BGC75] { + background-color: #5FAFFF +} + +div.highlight .-Color[class*=-C76] { + color: #5FD700 +} + +div.highlight .-Color[class*=-BGC76] { + background-color: #5FD700 +} + +div.highlight .-Color[class*=-C77] { + color: #5FD75F +} + +div.highlight .-Color[class*=-BGC77] { + background-color: #5FD75F +} + +div.highlight .-Color[class*=-C78] { + color: #5FD787 +} + +div.highlight .-Color[class*=-BGC78] { + background-color: #5FD787 +} + +div.highlight .-Color[class*=-C79] { + color: #5FD7AF +} + +div.highlight .-Color[class*=-BGC79] { + background-color: #5FD7AF +} + +div.highlight .-Color[class*=-C80] { + color: #5FD7D7 +} + +div.highlight .-Color[class*=-BGC80] { + background-color: #5FD7D7 +} + +div.highlight .-Color[class*=-C81] { + color: #5FD7FF +} + +div.highlight .-Color[class*=-BGC81] { + background-color: #5FD7FF +} + +div.highlight .-Color[class*=-C82] { + color: #5FFF00 +} + +div.highlight .-Color[class*=-BGC82] { + background-color: #5FFF00 +} + +div.highlight .-Color[class*=-C83] { + color: #5FFF5F +} + +div.highlight .-Color[class*=-BGC83] { + background-color: #5FFF5F +} + +div.highlight .-Color[class*=-C84] { + color: #5FFF87 +} + +div.highlight .-Color[class*=-BGC84] { + background-color: #5FFF87 +} + +div.highlight .-Color[class*=-C85] { + color: #5FFFAF +} + +div.highlight .-Color[class*=-BGC85] { + background-color: #5FFFAF +} + +div.highlight .-Color[class*=-C86] { + color: #5FFFD7 +} + +div.highlight .-Color[class*=-BGC86] { + background-color: #5FFFD7 +} + +div.highlight .-Color[class*=-C87] { + color: #5FFFFF +} + +div.highlight .-Color[class*=-BGC87] { + background-color: #5FFFFF +} + +div.highlight .-Color[class*=-C88] { + color: #870000 +} + +div.highlight .-Color[class*=-BGC88] { + background-color: #870000 +} + +div.highlight .-Color[class*=-C89] { + color: #87005F +} + +div.highlight .-Color[class*=-BGC89] { + background-color: #87005F +} + +div.highlight .-Color[class*=-C90] { + color: #870087 +} + +div.highlight .-Color[class*=-BGC90] { + background-color: #870087 +} + +div.highlight .-Color[class*=-C91] { + color: #8700AF +} + +div.highlight .-Color[class*=-BGC91] { + background-color: #8700AF +} + +div.highlight .-Color[class*=-C92] { + color: #8700D7 +} + +div.highlight .-Color[class*=-BGC92] { + background-color: #8700D7 +} + +div.highlight .-Color[class*=-C93] { + color: #8700FF +} + +div.highlight .-Color[class*=-BGC93] { + background-color: #8700FF +} + +div.highlight .-Color[class*=-C94] { + color: #875F00 +} + +div.highlight .-Color[class*=-BGC94] { + background-color: #875F00 +} + +div.highlight .-Color[class*=-C95] { + color: #875F5F +} + +div.highlight .-Color[class*=-BGC95] { + background-color: #875F5F +} + +div.highlight .-Color[class*=-C96] { + color: #875F87 +} + +div.highlight .-Color[class*=-BGC96] { + background-color: #875F87 +} + +div.highlight .-Color[class*=-C97] { + color: #875FAF +} + +div.highlight .-Color[class*=-BGC97] { + background-color: #875FAF +} + +div.highlight .-Color[class*=-C98] { + color: #875FD7 +} + +div.highlight .-Color[class*=-BGC98] { + background-color: #875FD7 +} + +div.highlight .-Color[class*=-C99] { + color: #875FFF +} + +div.highlight .-Color[class*=-BGC99] { + background-color: #875FFF +} + +div.highlight .-Color[class*=-C100] { + color: #878700 +} + +div.highlight .-Color[class*=-BGC100] { + background-color: #878700 +} + +div.highlight .-Color[class*=-C101] { + color: #87875F +} + +div.highlight .-Color[class*=-BGC101] { + background-color: #87875F +} + +div.highlight .-Color[class*=-C102] { + color: #878787 +} + +div.highlight .-Color[class*=-BGC102] { + background-color: #878787 +} + +div.highlight .-Color[class*=-C103] { + color: #8787AF +} + +div.highlight .-Color[class*=-BGC103] { + background-color: #8787AF +} + +div.highlight .-Color[class*=-C104] { + color: #8787D7 +} + +div.highlight .-Color[class*=-BGC104] { + background-color: #8787D7 +} + +div.highlight .-Color[class*=-C105] { + color: #8787FF +} + +div.highlight .-Color[class*=-BGC105] { + background-color: #8787FF +} + +div.highlight .-Color[class*=-C106] { + color: #87AF00 +} + +div.highlight .-Color[class*=-BGC106] { + background-color: #87AF00 +} + +div.highlight .-Color[class*=-C107] { + color: #87AF5F +} + +div.highlight .-Color[class*=-BGC107] { + background-color: #87AF5F +} + +div.highlight .-Color[class*=-C108] { + color: #87AF87 +} + +div.highlight .-Color[class*=-BGC108] { + background-color: #87AF87 +} + +div.highlight .-Color[class*=-C109] { + color: #87AFAF +} + +div.highlight .-Color[class*=-BGC109] { + background-color: #87AFAF +} + +div.highlight .-Color[class*=-C110] { + color: #87AFD7 +} + +div.highlight .-Color[class*=-BGC110] { + background-color: #87AFD7 +} + +div.highlight .-Color[class*=-C111] { + color: #87AFFF +} + +div.highlight .-Color[class*=-BGC111] { + background-color: #87AFFF +} + +div.highlight .-Color[class*=-C112] { + color: #87D700 +} + +div.highlight .-Color[class*=-BGC112] { + background-color: #87D700 +} + +div.highlight .-Color[class*=-C113] { + color: #87D75F +} + +div.highlight .-Color[class*=-BGC113] { + background-color: #87D75F +} + +div.highlight .-Color[class*=-C114] { + color: #87D787 +} + +div.highlight .-Color[class*=-BGC114] { + background-color: #87D787 +} + +div.highlight .-Color[class*=-C115] { + color: #87D7AF +} + +div.highlight .-Color[class*=-BGC115] { + background-color: #87D7AF +} + +div.highlight .-Color[class*=-C116] { + color: #87D7D7 +} + +div.highlight .-Color[class*=-BGC116] { + background-color: #87D7D7 +} + +div.highlight .-Color[class*=-C117] { + color: #87D7FF +} + +div.highlight .-Color[class*=-BGC117] { + background-color: #87D7FF +} + +div.highlight .-Color[class*=-C118] { + color: #87FF00 +} + +div.highlight .-Color[class*=-BGC118] { + background-color: #87FF00 +} + +div.highlight .-Color[class*=-C119] { + color: #87FF5F +} + +div.highlight .-Color[class*=-BGC119] { + background-color: #87FF5F +} + +div.highlight .-Color[class*=-C120] { + color: #87FF87 +} + +div.highlight .-Color[class*=-BGC120] { + background-color: #87FF87 +} + +div.highlight .-Color[class*=-C121] { + color: #87FFAF +} + +div.highlight .-Color[class*=-BGC121] { + background-color: #87FFAF +} + +div.highlight .-Color[class*=-C122] { + color: #87FFD7 +} + +div.highlight .-Color[class*=-BGC122] { + background-color: #87FFD7 +} + +div.highlight .-Color[class*=-C123] { + color: #87FFFF +} + +div.highlight .-Color[class*=-BGC123] { + background-color: #87FFFF +} + +div.highlight .-Color[class*=-C124] { + color: #AF0000 +} + +div.highlight .-Color[class*=-BGC124] { + background-color: #AF0000 +} + +div.highlight .-Color[class*=-C125] { + color: #AF005F +} + +div.highlight .-Color[class*=-BGC125] { + background-color: #AF005F +} + +div.highlight .-Color[class*=-C126] { + color: #AF0087 +} + +div.highlight .-Color[class*=-BGC126] { + background-color: #AF0087 +} + +div.highlight .-Color[class*=-C127] { + color: #AF00AF +} + +div.highlight .-Color[class*=-BGC127] { + background-color: #AF00AF +} + +div.highlight .-Color[class*=-C128] { + color: #AF00D7 +} + +div.highlight .-Color[class*=-BGC128] { + background-color: #AF00D7 +} + +div.highlight .-Color[class*=-C129] { + color: #AF00FF +} + +div.highlight .-Color[class*=-BGC129] { + background-color: #AF00FF +} + +div.highlight .-Color[class*=-C130] { + color: #AF5F00 +} + +div.highlight .-Color[class*=-BGC130] { + background-color: #AF5F00 +} + +div.highlight .-Color[class*=-C131] { + color: #AF5F5F +} + +div.highlight .-Color[class*=-BGC131] { + background-color: #AF5F5F +} + +div.highlight .-Color[class*=-C132] { + color: #AF5F87 +} + +div.highlight .-Color[class*=-BGC132] { + background-color: #AF5F87 +} + +div.highlight .-Color[class*=-C133] { + color: #AF5FAF +} + +div.highlight .-Color[class*=-BGC133] { + background-color: #AF5FAF +} + +div.highlight .-Color[class*=-C134] { + color: #AF5FD7 +} + +div.highlight .-Color[class*=-BGC134] { + background-color: #AF5FD7 +} + +div.highlight .-Color[class*=-C135] { + color: #AF5FFF +} + +div.highlight .-Color[class*=-BGC135] { + background-color: #AF5FFF +} + +div.highlight .-Color[class*=-C136] { + color: #AF8700 +} + +div.highlight .-Color[class*=-BGC136] { + background-color: #AF8700 +} + +div.highlight .-Color[class*=-C137] { + color: #AF875F +} + +div.highlight .-Color[class*=-BGC137] { + background-color: #AF875F +} + +div.highlight .-Color[class*=-C138] { + color: #AF8787 +} + +div.highlight .-Color[class*=-BGC138] { + background-color: #AF8787 +} + +div.highlight .-Color[class*=-C139] { + color: #AF87AF +} + +div.highlight .-Color[class*=-BGC139] { + background-color: #AF87AF +} + +div.highlight .-Color[class*=-C140] { + color: #AF87D7 +} + +div.highlight .-Color[class*=-BGC140] { + background-color: #AF87D7 +} + +div.highlight .-Color[class*=-C141] { + color: #AF87FF +} + +div.highlight .-Color[class*=-BGC141] { + background-color: #AF87FF +} + +div.highlight .-Color[class*=-C142] { + color: #AFAF00 +} + +div.highlight .-Color[class*=-BGC142] { + background-color: #AFAF00 +} + +div.highlight .-Color[class*=-C143] { + color: #AFAF5F +} + +div.highlight .-Color[class*=-BGC143] { + background-color: #AFAF5F +} + +div.highlight .-Color[class*=-C144] { + color: #AFAF87 +} + +div.highlight .-Color[class*=-BGC144] { + background-color: #AFAF87 +} + +div.highlight .-Color[class*=-C145] { + color: #AFAFAF +} + +div.highlight .-Color[class*=-BGC145] { + background-color: #AFAFAF +} + +div.highlight .-Color[class*=-C146] { + color: #AFAFD7 +} + +div.highlight .-Color[class*=-BGC146] { + background-color: #AFAFD7 +} + +div.highlight .-Color[class*=-C147] { + color: #AFAFFF +} + +div.highlight .-Color[class*=-BGC147] { + background-color: #AFAFFF +} + +div.highlight .-Color[class*=-C148] { + color: #AFD700 +} + +div.highlight .-Color[class*=-BGC148] { + background-color: #AFD700 +} + +div.highlight .-Color[class*=-C149] { + color: #AFD75F +} + +div.highlight .-Color[class*=-BGC149] { + background-color: #AFD75F +} + +div.highlight .-Color[class*=-C150] { + color: #AFD787 +} + +div.highlight .-Color[class*=-BGC150] { + background-color: #AFD787 +} + +div.highlight .-Color[class*=-C151] { + color: #AFD7AF +} + +div.highlight .-Color[class*=-BGC151] { + background-color: #AFD7AF +} + +div.highlight .-Color[class*=-C152] { + color: #AFD7D7 +} + +div.highlight .-Color[class*=-BGC152] { + background-color: #AFD7D7 +} + +div.highlight .-Color[class*=-C153] { + color: #AFD7FF +} + +div.highlight .-Color[class*=-BGC153] { + background-color: #AFD7FF +} + +div.highlight .-Color[class*=-C154] { + color: #AFFF00 +} + +div.highlight .-Color[class*=-BGC154] { + background-color: #AFFF00 +} + +div.highlight .-Color[class*=-C155] { + color: #AFFF5F +} + +div.highlight .-Color[class*=-BGC155] { + background-color: #AFFF5F +} + +div.highlight .-Color[class*=-C156] { + color: #AFFF87 +} + +div.highlight .-Color[class*=-BGC156] { + background-color: #AFFF87 +} + +div.highlight .-Color[class*=-C157] { + color: #AFFFAF +} + +div.highlight .-Color[class*=-BGC157] { + background-color: #AFFFAF +} + +div.highlight .-Color[class*=-C158] { + color: #AFFFD7 +} + +div.highlight .-Color[class*=-BGC158] { + background-color: #AFFFD7 +} + +div.highlight .-Color[class*=-C159] { + color: #AFFFFF +} + +div.highlight .-Color[class*=-BGC159] { + background-color: #AFFFFF +} + +div.highlight .-Color[class*=-C160] { + color: #D70000 +} + +div.highlight .-Color[class*=-BGC160] { + background-color: #D70000 +} + +div.highlight .-Color[class*=-C161] { + color: #D7005F +} + +div.highlight .-Color[class*=-BGC161] { + background-color: #D7005F +} + +div.highlight .-Color[class*=-C162] { + color: #D70087 +} + +div.highlight .-Color[class*=-BGC162] { + background-color: #D70087 +} + +div.highlight .-Color[class*=-C163] { + color: #D700AF +} + +div.highlight .-Color[class*=-BGC163] { + background-color: #D700AF +} + +div.highlight .-Color[class*=-C164] { + color: #D700D7 +} + +div.highlight .-Color[class*=-BGC164] { + background-color: #D700D7 +} + +div.highlight .-Color[class*=-C165] { + color: #D700FF +} + +div.highlight .-Color[class*=-BGC165] { + background-color: #D700FF +} + +div.highlight .-Color[class*=-C166] { + color: #D75F00 +} + +div.highlight .-Color[class*=-BGC166] { + background-color: #D75F00 +} + +div.highlight .-Color[class*=-C167] { + color: #D75F5F +} + +div.highlight .-Color[class*=-BGC167] { + background-color: #D75F5F +} + +div.highlight .-Color[class*=-C168] { + color: #D75F87 +} + +div.highlight .-Color[class*=-BGC168] { + background-color: #D75F87 +} + +div.highlight .-Color[class*=-C169] { + color: #D75FAF +} + +div.highlight .-Color[class*=-BGC169] { + background-color: #D75FAF +} + +div.highlight .-Color[class*=-C170] { + color: #D75FD7 +} + +div.highlight .-Color[class*=-BGC170] { + background-color: #D75FD7 +} + +div.highlight .-Color[class*=-C171] { + color: #D75FFF +} + +div.highlight .-Color[class*=-BGC171] { + background-color: #D75FFF +} + +div.highlight .-Color[class*=-C172] { + color: #D78700 +} + +div.highlight .-Color[class*=-BGC172] { + background-color: #D78700 +} + +div.highlight .-Color[class*=-C173] { + color: #D7875F +} + +div.highlight .-Color[class*=-BGC173] { + background-color: #D7875F +} + +div.highlight .-Color[class*=-C174] { + color: #D78787 +} + +div.highlight .-Color[class*=-BGC174] { + background-color: #D78787 +} + +div.highlight .-Color[class*=-C175] { + color: #D787AF +} + +div.highlight .-Color[class*=-BGC175] { + background-color: #D787AF +} + +div.highlight .-Color[class*=-C176] { + color: #D787D7 +} + +div.highlight .-Color[class*=-BGC176] { + background-color: #D787D7 +} + +div.highlight .-Color[class*=-C177] { + color: #D787FF +} + +div.highlight .-Color[class*=-BGC177] { + background-color: #D787FF +} + +div.highlight .-Color[class*=-C178] { + color: #D7AF00 +} + +div.highlight .-Color[class*=-BGC178] { + background-color: #D7AF00 +} + +div.highlight .-Color[class*=-C179] { + color: #D7AF5F +} + +div.highlight .-Color[class*=-BGC179] { + background-color: #D7AF5F +} + +div.highlight .-Color[class*=-C180] { + color: #D7AF87 +} + +div.highlight .-Color[class*=-BGC180] { + background-color: #D7AF87 +} + +div.highlight .-Color[class*=-C181] { + color: #D7AFAF +} + +div.highlight .-Color[class*=-BGC181] { + background-color: #D7AFAF +} + +div.highlight .-Color[class*=-C182] { + color: #D7AFD7 +} + +div.highlight .-Color[class*=-BGC182] { + background-color: #D7AFD7 +} + +div.highlight .-Color[class*=-C183] { + color: #D7AFFF +} + +div.highlight .-Color[class*=-BGC183] { + background-color: #D7AFFF +} + +div.highlight .-Color[class*=-C184] { + color: #D7D700 +} + +div.highlight .-Color[class*=-BGC184] { + background-color: #D7D700 +} + +div.highlight .-Color[class*=-C185] { + color: #D7D75F +} + +div.highlight .-Color[class*=-BGC185] { + background-color: #D7D75F +} + +div.highlight .-Color[class*=-C186] { + color: #D7D787 +} + +div.highlight .-Color[class*=-BGC186] { + background-color: #D7D787 +} + +div.highlight .-Color[class*=-C187] { + color: #D7D7AF +} + +div.highlight .-Color[class*=-BGC187] { + background-color: #D7D7AF +} + +div.highlight .-Color[class*=-C188] { + color: #D7D7D7 +} + +div.highlight .-Color[class*=-BGC188] { + background-color: #D7D7D7 +} + +div.highlight .-Color[class*=-C189] { + color: #D7D7FF +} + +div.highlight .-Color[class*=-BGC189] { + background-color: #D7D7FF +} + +div.highlight .-Color[class*=-C190] { + color: #D7FF00 +} + +div.highlight .-Color[class*=-BGC190] { + background-color: #D7FF00 +} + +div.highlight .-Color[class*=-C191] { + color: #D7FF5F +} + +div.highlight .-Color[class*=-BGC191] { + background-color: #D7FF5F +} + +div.highlight .-Color[class*=-C192] { + color: #D7FF87 +} + +div.highlight .-Color[class*=-BGC192] { + background-color: #D7FF87 +} + +div.highlight .-Color[class*=-C193] { + color: #D7FFAF +} + +div.highlight .-Color[class*=-BGC193] { + background-color: #D7FFAF +} + +div.highlight .-Color[class*=-C194] { + color: #D7FFD7 +} + +div.highlight .-Color[class*=-BGC194] { + background-color: #D7FFD7 +} + +div.highlight .-Color[class*=-C195] { + color: #D7FFFF +} + +div.highlight .-Color[class*=-BGC195] { + background-color: #D7FFFF +} + +div.highlight .-Color[class*=-C196] { + color: #FF0000 +} + +div.highlight .-Color[class*=-BGC196] { + background-color: #FF0000 +} + +div.highlight .-Color[class*=-C197] { + color: #FF005F +} + +div.highlight .-Color[class*=-BGC197] { + background-color: #FF005F +} + +div.highlight .-Color[class*=-C198] { + color: #FF0087 +} + +div.highlight .-Color[class*=-BGC198] { + background-color: #FF0087 +} + +div.highlight .-Color[class*=-C199] { + color: #FF00AF +} + +div.highlight .-Color[class*=-BGC199] { + background-color: #FF00AF +} + +div.highlight .-Color[class*=-C200] { + color: #FF00D7 +} + +div.highlight .-Color[class*=-BGC200] { + background-color: #FF00D7 +} + +div.highlight .-Color[class*=-C201] { + color: #FF00FF +} + +div.highlight .-Color[class*=-BGC201] { + background-color: #FF00FF +} + +div.highlight .-Color[class*=-C202] { + color: #FF5F00 +} + +div.highlight .-Color[class*=-BGC202] { + background-color: #FF5F00 +} + +div.highlight .-Color[class*=-C203] { + color: #FF5F5F +} + +div.highlight .-Color[class*=-BGC203] { + background-color: #FF5F5F +} + +div.highlight .-Color[class*=-C204] { + color: #FF5F87 +} + +div.highlight .-Color[class*=-BGC204] { + background-color: #FF5F87 +} + +div.highlight .-Color[class*=-C205] { + color: #FF5FAF +} + +div.highlight .-Color[class*=-BGC205] { + background-color: #FF5FAF +} + +div.highlight .-Color[class*=-C206] { + color: #FF5FD7 +} + +div.highlight .-Color[class*=-BGC206] { + background-color: #FF5FD7 +} + +div.highlight .-Color[class*=-C207] { + color: #FF5FFF +} + +div.highlight .-Color[class*=-BGC207] { + background-color: #FF5FFF +} + +div.highlight .-Color[class*=-C208] { + color: #FF8700 +} + +div.highlight .-Color[class*=-BGC208] { + background-color: #FF8700 +} + +div.highlight .-Color[class*=-C209] { + color: #FF875F +} + +div.highlight .-Color[class*=-BGC209] { + background-color: #FF875F +} + +div.highlight .-Color[class*=-C210] { + color: #FF8787 +} + +div.highlight .-Color[class*=-BGC210] { + background-color: #FF8787 +} + +div.highlight .-Color[class*=-C211] { + color: #FF87AF +} + +div.highlight .-Color[class*=-BGC211] { + background-color: #FF87AF +} + +div.highlight .-Color[class*=-C212] { + color: #FF87D7 +} + +div.highlight .-Color[class*=-BGC212] { + background-color: #FF87D7 +} + +div.highlight .-Color[class*=-C213] { + color: #FF87FF +} + +div.highlight .-Color[class*=-BGC213] { + background-color: #FF87FF +} + +div.highlight .-Color[class*=-C214] { + color: #FFAF00 +} + +div.highlight .-Color[class*=-BGC214] { + background-color: #FFAF00 +} + +div.highlight .-Color[class*=-C215] { + color: #FFAF5F +} + +div.highlight .-Color[class*=-BGC215] { + background-color: #FFAF5F +} + +div.highlight .-Color[class*=-C216] { + color: #FFAF87 +} + +div.highlight .-Color[class*=-BGC216] { + background-color: #FFAF87 +} + +div.highlight .-Color[class*=-C217] { + color: #FFAFAF +} + +div.highlight .-Color[class*=-BGC217] { + background-color: #FFAFAF +} + +div.highlight .-Color[class*=-C218] { + color: #FFAFD7 +} + +div.highlight .-Color[class*=-BGC218] { + background-color: #FFAFD7 +} + +div.highlight .-Color[class*=-C219] { + color: #FFAFFF +} + +div.highlight .-Color[class*=-BGC219] { + background-color: #FFAFFF +} + +div.highlight .-Color[class*=-C220] { + color: #FFD700 +} + +div.highlight .-Color[class*=-BGC220] { + background-color: #FFD700 +} + +div.highlight .-Color[class*=-C221] { + color: #FFD75F +} + +div.highlight .-Color[class*=-BGC221] { + background-color: #FFD75F +} + +div.highlight .-Color[class*=-C222] { + color: #FFD787 +} + +div.highlight .-Color[class*=-BGC222] { + background-color: #FFD787 +} + +div.highlight .-Color[class*=-C223] { + color: #FFD7AF +} + +div.highlight .-Color[class*=-BGC223] { + background-color: #FFD7AF +} + +div.highlight .-Color[class*=-C224] { + color: #FFD7D7 +} + +div.highlight .-Color[class*=-BGC224] { + background-color: #FFD7D7 +} + +div.highlight .-Color[class*=-C225] { + color: #FFD7FF +} + +div.highlight .-Color[class*=-BGC225] { + background-color: #FFD7FF +} + +div.highlight .-Color[class*=-C226] { + color: #FFFF00 +} + +div.highlight .-Color[class*=-BGC226] { + background-color: #FFFF00 +} + +div.highlight .-Color[class*=-C227] { + color: #FFFF5F +} + +div.highlight .-Color[class*=-BGC227] { + background-color: #FFFF5F +} + +div.highlight .-Color[class*=-C228] { + color: #FFFF87 +} + +div.highlight .-Color[class*=-BGC228] { + background-color: #FFFF87 +} + +div.highlight .-Color[class*=-C229] { + color: #FFFFAF +} + +div.highlight .-Color[class*=-BGC229] { + background-color: #FFFFAF +} + +div.highlight .-Color[class*=-C230] { + color: #FFFFD7 +} + +div.highlight .-Color[class*=-BGC230] { + background-color: #FFFFD7 +} + +div.highlight .-Color[class*=-C231] { + color: #FFFFFF +} + +div.highlight .-Color[class*=-BGC231] { + background-color: #FFFFFF +} + +div.highlight .-Color[class*=-C232] { + color: #080808 +} + +div.highlight .-Color[class*=-BGC232] { + background-color: #080808 +} + +div.highlight .-Color[class*=-C233] { + color: #121212 +} + +div.highlight .-Color[class*=-BGC233] { + background-color: #121212 +} + +div.highlight .-Color[class*=-C234] { + color: #1C1C1C +} + +div.highlight .-Color[class*=-BGC234] { + background-color: #1C1C1C +} + +div.highlight .-Color[class*=-C235] { + color: #262626 +} + +div.highlight .-Color[class*=-BGC235] { + background-color: #262626 +} + +div.highlight .-Color[class*=-C236] { + color: #303030 +} + +div.highlight .-Color[class*=-BGC236] { + background-color: #303030 +} + +div.highlight .-Color[class*=-C237] { + color: #3A3A3A +} + +div.highlight .-Color[class*=-BGC237] { + background-color: #3A3A3A +} + +div.highlight .-Color[class*=-C238] { + color: #444444 +} + +div.highlight .-Color[class*=-BGC238] { + background-color: #444444 +} + +div.highlight .-Color[class*=-C239] { + color: #4E4E4E +} + +div.highlight .-Color[class*=-BGC239] { + background-color: #4E4E4E +} + +div.highlight .-Color[class*=-C240] { + color: #585858 +} + +div.highlight .-Color[class*=-BGC240] { + background-color: #585858 +} + +div.highlight .-Color[class*=-C241] { + color: #626262 +} + +div.highlight .-Color[class*=-BGC241] { + background-color: #626262 +} + +div.highlight .-Color[class*=-C242] { + color: #6C6C6C +} + +div.highlight .-Color[class*=-BGC242] { + background-color: #6C6C6C +} + +div.highlight .-Color[class*=-C243] { + color: #767676 +} + +div.highlight .-Color[class*=-BGC243] { + background-color: #767676 +} + +div.highlight .-Color[class*=-C244] { + color: #808080 +} + +div.highlight .-Color[class*=-BGC244] { + background-color: #808080 +} + +div.highlight .-Color[class*=-C245] { + color: #8A8A8A +} + +div.highlight .-Color[class*=-BGC245] { + background-color: #8A8A8A +} + +div.highlight .-Color[class*=-C246] { + color: #949494 +} + +div.highlight .-Color[class*=-BGC246] { + background-color: #949494 +} + +div.highlight .-Color[class*=-C247] { + color: #9E9E9E +} + +div.highlight .-Color[class*=-BGC247] { + background-color: #9E9E9E +} + +div.highlight .-Color[class*=-C248] { + color: #A8A8A8 +} + +div.highlight .-Color[class*=-BGC248] { + background-color: #A8A8A8 +} + +div.highlight .-Color[class*=-C249] { + color: #B2B2B2 +} + +div.highlight .-Color[class*=-BGC249] { + background-color: #B2B2B2 +} + +div.highlight .-Color[class*=-C250] { + color: #BCBCBC +} + +div.highlight .-Color[class*=-BGC250] { + background-color: #BCBCBC +} + +div.highlight .-Color[class*=-C251] { + color: #C6C6C6 +} + +div.highlight .-Color[class*=-BGC251] { + background-color: #C6C6C6 +} + +div.highlight .-Color[class*=-C252] { + color: #D0D0D0 +} + +div.highlight .-Color[class*=-BGC252] { + background-color: #D0D0D0 +} + +div.highlight .-Color[class*=-C253] { + color: #DADADA +} + +div.highlight .-Color[class*=-BGC253] { + background-color: #DADADA +} + +div.highlight .-Color[class*=-C254] { + color: #E4E4E4 +} + +div.highlight .-Color[class*=-BGC254] { + background-color: #E4E4E4 +} + +div.highlight .-Color[class*=-C255] { + color: #EEEEEE +} + +div.highlight .-Color[class*=-BGC255] { + background-color: #EEEEEE +} diff --git a/_static/play-solid.svg b/_static/play-solid.svg new file mode 100644 index 0000000..bcd81f7 --- /dev/null +++ b/_static/play-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/_static/plus.png b/_static/plus.png new file mode 100644 index 0000000..7107cec Binary files /dev/null and b/_static/plus.png differ diff --git a/_static/pygments.css b/_static/pygments.css new file mode 100644 index 0000000..d7dd577 --- /dev/null +++ b/_static/pygments.css @@ -0,0 +1,152 @@ +html[data-theme="light"] .highlight pre { line-height: 125%; } +html[data-theme="light"] .highlight td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +html[data-theme="light"] .highlight span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +html[data-theme="light"] .highlight td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +html[data-theme="light"] .highlight span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +html[data-theme="light"] .highlight .hll { background-color: #fae4c2 } +html[data-theme="light"] .highlight { background: #fefefe; color: #080808 } +html[data-theme="light"] .highlight .c { color: #515151 } /* Comment */ +html[data-theme="light"] .highlight .err { color: #A12236 } /* Error */ +html[data-theme="light"] .highlight .k { color: #6730C5 } /* Keyword */ +html[data-theme="light"] .highlight .l { color: #7F4707 } /* Literal */ +html[data-theme="light"] .highlight .n { color: #080808 } /* Name */ +html[data-theme="light"] .highlight .o { color: #00622F } /* Operator */ +html[data-theme="light"] .highlight .p { color: #080808 } /* Punctuation */ +html[data-theme="light"] .highlight .ch { color: #515151 } /* Comment.Hashbang */ +html[data-theme="light"] .highlight .cm { color: #515151 } /* Comment.Multiline */ +html[data-theme="light"] .highlight .cp { color: #515151 } /* Comment.Preproc */ +html[data-theme="light"] .highlight .cpf { color: #515151 } /* Comment.PreprocFile */ +html[data-theme="light"] .highlight .c1 { color: #515151 } /* Comment.Single */ +html[data-theme="light"] .highlight .cs { color: #515151 } /* Comment.Special */ +html[data-theme="light"] .highlight .gd { color: #005B82 } /* Generic.Deleted */ +html[data-theme="light"] .highlight .ge { font-style: italic } /* Generic.Emph */ +html[data-theme="light"] .highlight .gh { color: #005B82 } /* Generic.Heading */ +html[data-theme="light"] .highlight .gs { font-weight: bold } /* Generic.Strong */ +html[data-theme="light"] .highlight .gu { color: #005B82 } /* Generic.Subheading */ +html[data-theme="light"] .highlight .kc { color: #6730C5 } /* Keyword.Constant */ +html[data-theme="light"] .highlight .kd { color: #6730C5 } /* Keyword.Declaration */ +html[data-theme="light"] .highlight .kn { color: #6730C5 } /* Keyword.Namespace */ +html[data-theme="light"] .highlight .kp { color: #6730C5 } /* Keyword.Pseudo */ +html[data-theme="light"] .highlight .kr { color: #6730C5 } /* Keyword.Reserved */ +html[data-theme="light"] .highlight .kt { color: #7F4707 } /* Keyword.Type */ +html[data-theme="light"] .highlight .ld { color: #7F4707 } /* Literal.Date */ +html[data-theme="light"] .highlight .m { color: #7F4707 } /* Literal.Number */ +html[data-theme="light"] .highlight .s { color: #00622F } /* Literal.String */ +html[data-theme="light"] .highlight .na { color: #912583 } /* Name.Attribute */ +html[data-theme="light"] .highlight .nb { color: #7F4707 } /* Name.Builtin */ +html[data-theme="light"] .highlight .nc { color: #005B82 } /* Name.Class */ +html[data-theme="light"] .highlight .no { color: #005B82 } /* Name.Constant */ +html[data-theme="light"] .highlight .nd { color: #7F4707 } /* Name.Decorator */ +html[data-theme="light"] .highlight .ni { color: #00622F } /* Name.Entity */ +html[data-theme="light"] .highlight .ne { color: #6730C5 } /* Name.Exception */ +html[data-theme="light"] .highlight .nf { color: #005B82 } /* Name.Function */ +html[data-theme="light"] .highlight .nl { color: #7F4707 } /* Name.Label */ +html[data-theme="light"] .highlight .nn { color: #080808 } /* Name.Namespace */ +html[data-theme="light"] .highlight .nx { color: #080808 } /* Name.Other */ +html[data-theme="light"] .highlight .py { color: #005B82 } /* Name.Property */ +html[data-theme="light"] .highlight .nt { color: #005B82 } /* Name.Tag */ +html[data-theme="light"] .highlight .nv { color: #A12236 } /* Name.Variable */ +html[data-theme="light"] .highlight .ow { color: #6730C5 } /* Operator.Word */ +html[data-theme="light"] .highlight .pm { color: #080808 } /* Punctuation.Marker */ +html[data-theme="light"] .highlight .w { color: #080808 } /* Text.Whitespace */ +html[data-theme="light"] .highlight .mb { color: #7F4707 } /* Literal.Number.Bin */ +html[data-theme="light"] .highlight .mf { color: #7F4707 } /* Literal.Number.Float */ +html[data-theme="light"] .highlight .mh { color: #7F4707 } /* Literal.Number.Hex */ +html[data-theme="light"] .highlight .mi { color: #7F4707 } /* Literal.Number.Integer */ +html[data-theme="light"] .highlight .mo { color: #7F4707 } /* Literal.Number.Oct */ +html[data-theme="light"] .highlight .sa { color: #00622F } /* Literal.String.Affix */ +html[data-theme="light"] .highlight .sb { color: #00622F } /* Literal.String.Backtick */ +html[data-theme="light"] .highlight .sc { color: #00622F } /* Literal.String.Char */ +html[data-theme="light"] .highlight .dl { color: #00622F } /* Literal.String.Delimiter */ +html[data-theme="light"] .highlight .sd { color: #00622F } /* Literal.String.Doc */ +html[data-theme="light"] .highlight .s2 { color: #00622F } /* Literal.String.Double */ +html[data-theme="light"] .highlight .se { color: #00622F } /* Literal.String.Escape */ +html[data-theme="light"] .highlight .sh { color: #00622F } /* Literal.String.Heredoc */ +html[data-theme="light"] .highlight .si { color: #00622F } /* Literal.String.Interpol */ +html[data-theme="light"] .highlight .sx { color: #00622F } /* Literal.String.Other */ +html[data-theme="light"] .highlight .sr { color: #A12236 } /* Literal.String.Regex */ +html[data-theme="light"] .highlight .s1 { color: #00622F } /* Literal.String.Single */ +html[data-theme="light"] .highlight .ss { color: #005B82 } /* Literal.String.Symbol */ +html[data-theme="light"] .highlight .bp { color: #7F4707 } /* Name.Builtin.Pseudo */ +html[data-theme="light"] .highlight .fm { color: #005B82 } /* Name.Function.Magic */ +html[data-theme="light"] .highlight .vc { color: #A12236 } /* Name.Variable.Class */ +html[data-theme="light"] .highlight .vg { color: #A12236 } /* Name.Variable.Global */ +html[data-theme="light"] .highlight .vi { color: #A12236 } /* Name.Variable.Instance */ +html[data-theme="light"] .highlight .vm { color: #7F4707 } /* Name.Variable.Magic */ +html[data-theme="light"] .highlight .il { color: #7F4707 } /* Literal.Number.Integer.Long */ +html[data-theme="dark"] .highlight pre { line-height: 125%; } +html[data-theme="dark"] .highlight td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +html[data-theme="dark"] .highlight span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +html[data-theme="dark"] .highlight td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +html[data-theme="dark"] .highlight span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +html[data-theme="dark"] .highlight .hll { background-color: #ffd9002e } +html[data-theme="dark"] .highlight { background: #2b2b2b; color: #F8F8F2 } +html[data-theme="dark"] .highlight .c { color: #FFD900 } /* Comment */ +html[data-theme="dark"] .highlight .err { color: #FFA07A } /* Error */ +html[data-theme="dark"] .highlight .k { color: #DCC6E0 } /* Keyword */ +html[data-theme="dark"] .highlight .l { color: #FFD900 } /* Literal */ +html[data-theme="dark"] .highlight .n { color: #F8F8F2 } /* Name */ +html[data-theme="dark"] .highlight .o { color: #ABE338 } /* Operator */ +html[data-theme="dark"] .highlight .p { color: #F8F8F2 } /* Punctuation */ +html[data-theme="dark"] .highlight .ch { color: #FFD900 } /* Comment.Hashbang */ +html[data-theme="dark"] .highlight .cm { color: #FFD900 } /* Comment.Multiline */ +html[data-theme="dark"] .highlight .cp { color: #FFD900 } /* Comment.Preproc */ +html[data-theme="dark"] .highlight .cpf { color: #FFD900 } /* Comment.PreprocFile */ +html[data-theme="dark"] .highlight .c1 { color: #FFD900 } /* Comment.Single */ +html[data-theme="dark"] .highlight .cs { color: #FFD900 } /* Comment.Special */ +html[data-theme="dark"] .highlight .gd { color: #00E0E0 } /* Generic.Deleted */ +html[data-theme="dark"] .highlight .ge { font-style: italic } /* Generic.Emph */ +html[data-theme="dark"] .highlight .gh { color: #00E0E0 } /* Generic.Heading */ +html[data-theme="dark"] .highlight .gs { font-weight: bold } /* Generic.Strong */ +html[data-theme="dark"] .highlight .gu { color: #00E0E0 } /* Generic.Subheading */ +html[data-theme="dark"] .highlight .kc { color: #DCC6E0 } /* Keyword.Constant */ +html[data-theme="dark"] .highlight .kd { color: #DCC6E0 } /* Keyword.Declaration */ +html[data-theme="dark"] .highlight .kn { color: #DCC6E0 } /* Keyword.Namespace */ +html[data-theme="dark"] .highlight .kp { color: #DCC6E0 } /* Keyword.Pseudo */ +html[data-theme="dark"] .highlight .kr { color: #DCC6E0 } /* Keyword.Reserved */ +html[data-theme="dark"] .highlight .kt { color: #FFD900 } /* Keyword.Type */ +html[data-theme="dark"] .highlight .ld { color: #FFD900 } /* Literal.Date */ +html[data-theme="dark"] .highlight .m { color: #FFD900 } /* Literal.Number */ +html[data-theme="dark"] .highlight .s { color: #ABE338 } /* Literal.String */ +html[data-theme="dark"] .highlight .na { color: #FFD900 } /* Name.Attribute */ +html[data-theme="dark"] .highlight .nb { color: #FFD900 } /* Name.Builtin */ +html[data-theme="dark"] .highlight .nc { color: #00E0E0 } /* Name.Class */ +html[data-theme="dark"] .highlight .no { color: #00E0E0 } /* Name.Constant */ +html[data-theme="dark"] .highlight .nd { color: #FFD900 } /* Name.Decorator */ +html[data-theme="dark"] .highlight .ni { color: #ABE338 } /* Name.Entity */ +html[data-theme="dark"] .highlight .ne { color: #DCC6E0 } /* Name.Exception */ +html[data-theme="dark"] .highlight .nf { color: #00E0E0 } /* Name.Function */ +html[data-theme="dark"] .highlight .nl { color: #FFD900 } /* Name.Label */ +html[data-theme="dark"] .highlight .nn { color: #F8F8F2 } /* Name.Namespace */ +html[data-theme="dark"] .highlight .nx { color: #F8F8F2 } /* Name.Other */ +html[data-theme="dark"] .highlight .py { color: #00E0E0 } /* Name.Property */ +html[data-theme="dark"] .highlight .nt { color: #00E0E0 } /* Name.Tag */ +html[data-theme="dark"] .highlight .nv { color: #FFA07A } /* Name.Variable */ +html[data-theme="dark"] .highlight .ow { color: #DCC6E0 } /* Operator.Word */ +html[data-theme="dark"] .highlight .pm { color: #F8F8F2 } /* Punctuation.Marker */ +html[data-theme="dark"] .highlight .w { color: #F8F8F2 } /* Text.Whitespace */ +html[data-theme="dark"] .highlight .mb { color: #FFD900 } /* Literal.Number.Bin */ +html[data-theme="dark"] .highlight .mf { color: #FFD900 } /* Literal.Number.Float */ +html[data-theme="dark"] .highlight .mh { color: #FFD900 } /* Literal.Number.Hex */ +html[data-theme="dark"] .highlight .mi { color: #FFD900 } /* Literal.Number.Integer */ +html[data-theme="dark"] .highlight .mo { color: #FFD900 } /* Literal.Number.Oct */ +html[data-theme="dark"] .highlight .sa { color: #ABE338 } /* Literal.String.Affix */ +html[data-theme="dark"] .highlight .sb { color: #ABE338 } /* Literal.String.Backtick */ +html[data-theme="dark"] .highlight .sc { color: #ABE338 } /* Literal.String.Char */ +html[data-theme="dark"] .highlight .dl { color: #ABE338 } /* Literal.String.Delimiter */ +html[data-theme="dark"] .highlight .sd { color: #ABE338 } /* Literal.String.Doc */ +html[data-theme="dark"] .highlight .s2 { color: #ABE338 } /* Literal.String.Double */ +html[data-theme="dark"] .highlight .se { color: #ABE338 } /* Literal.String.Escape */ +html[data-theme="dark"] .highlight .sh { color: #ABE338 } /* Literal.String.Heredoc */ +html[data-theme="dark"] .highlight .si { color: #ABE338 } /* Literal.String.Interpol */ +html[data-theme="dark"] .highlight .sx { color: #ABE338 } /* Literal.String.Other */ +html[data-theme="dark"] .highlight .sr { color: #FFA07A } /* Literal.String.Regex */ +html[data-theme="dark"] .highlight .s1 { color: #ABE338 } /* Literal.String.Single */ +html[data-theme="dark"] .highlight .ss { color: #00E0E0 } /* Literal.String.Symbol */ +html[data-theme="dark"] .highlight .bp { color: #FFD900 } /* Name.Builtin.Pseudo */ +html[data-theme="dark"] .highlight .fm { color: #00E0E0 } /* Name.Function.Magic */ +html[data-theme="dark"] .highlight .vc { color: #FFA07A } /* Name.Variable.Class */ +html[data-theme="dark"] .highlight .vg { color: #FFA07A } /* Name.Variable.Global */ +html[data-theme="dark"] .highlight .vi { color: #FFA07A } /* Name.Variable.Instance */ +html[data-theme="dark"] .highlight .vm { color: #FFD900 } /* Name.Variable.Magic */ +html[data-theme="dark"] .highlight .il { color: #FFD900 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/_static/sbt-webpack-macros.html b/_static/sbt-webpack-macros.html new file mode 100644 index 0000000..6cbf559 --- /dev/null +++ b/_static/sbt-webpack-macros.html @@ -0,0 +1,11 @@ + +{% macro head_pre_bootstrap() %} + +{% endmacro %} + +{% macro body_post() %} + +{% endmacro %} diff --git a/_static/scripts/bootstrap.js b/_static/scripts/bootstrap.js new file mode 100644 index 0000000..c8178de --- /dev/null +++ b/_static/scripts/bootstrap.js @@ -0,0 +1,3 @@ +/*! For license information please see bootstrap.js.LICENSE.txt */ +(()=>{"use strict";var t={d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{afterMain:()=>E,afterRead:()=>v,afterWrite:()=>C,applyStyles:()=>$,arrow:()=>J,auto:()=>a,basePlacements:()=>l,beforeMain:()=>y,beforeRead:()=>_,beforeWrite:()=>A,bottom:()=>s,clippingParents:()=>d,computeStyles:()=>it,createPopper:()=>Dt,createPopperBase:()=>St,createPopperLite:()=>$t,detectOverflow:()=>_t,end:()=>h,eventListeners:()=>st,flip:()=>bt,hide:()=>wt,left:()=>r,main:()=>w,modifierPhases:()=>O,offset:()=>Et,placements:()=>g,popper:()=>f,popperGenerator:()=>Lt,popperOffsets:()=>At,preventOverflow:()=>Tt,read:()=>b,reference:()=>p,right:()=>o,start:()=>c,top:()=>n,variationPlacements:()=>m,viewport:()=>u,write:()=>T});var i={};t.r(i),t.d(i,{Alert:()=>Oe,Button:()=>ke,Carousel:()=>li,Collapse:()=>Ei,Dropdown:()=>Ki,Modal:()=>Ln,Offcanvas:()=>Kn,Popover:()=>bs,ScrollSpy:()=>Ls,Tab:()=>Js,Toast:()=>po,Tooltip:()=>fs});var n="top",s="bottom",o="right",r="left",a="auto",l=[n,s,o,r],c="start",h="end",d="clippingParents",u="viewport",f="popper",p="reference",m=l.reduce((function(t,e){return t.concat([e+"-"+c,e+"-"+h])}),[]),g=[].concat(l,[a]).reduce((function(t,e){return t.concat([e,e+"-"+c,e+"-"+h])}),[]),_="beforeRead",b="read",v="afterRead",y="beforeMain",w="main",E="afterMain",A="beforeWrite",T="write",C="afterWrite",O=[_,b,v,y,w,E,A,T,C];function x(t){return t?(t.nodeName||"").toLowerCase():null}function k(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function L(t){return t instanceof k(t).Element||t instanceof Element}function S(t){return t instanceof k(t).HTMLElement||t instanceof HTMLElement}function D(t){return"undefined"!=typeof ShadowRoot&&(t instanceof k(t).ShadowRoot||t instanceof ShadowRoot)}const $={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];S(s)&&x(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});S(n)&&x(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function I(t){return t.split("-")[0]}var N=Math.max,P=Math.min,M=Math.round;function j(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function F(){return!/^((?!chrome|android).)*safari/i.test(j())}function H(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,o=1;e&&S(t)&&(s=t.offsetWidth>0&&M(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&M(n.height)/t.offsetHeight||1);var r=(L(t)?k(t):window).visualViewport,a=!F()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,h=n.width/s,d=n.height/o;return{width:h,height:d,top:c,right:l+h,bottom:c+d,left:l,x:l,y:c}}function B(t){var e=H(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function W(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&D(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function z(t){return k(t).getComputedStyle(t)}function R(t){return["table","td","th"].indexOf(x(t))>=0}function q(t){return((L(t)?t.ownerDocument:t.document)||window.document).documentElement}function V(t){return"html"===x(t)?t:t.assignedSlot||t.parentNode||(D(t)?t.host:null)||q(t)}function Y(t){return S(t)&&"fixed"!==z(t).position?t.offsetParent:null}function K(t){for(var e=k(t),i=Y(t);i&&R(i)&&"static"===z(i).position;)i=Y(i);return i&&("html"===x(i)||"body"===x(i)&&"static"===z(i).position)?e:i||function(t){var e=/firefox/i.test(j());if(/Trident/i.test(j())&&S(t)&&"fixed"===z(t).position)return null;var i=V(t);for(D(i)&&(i=i.host);S(i)&&["html","body"].indexOf(x(i))<0;){var n=z(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function Q(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function X(t,e,i){return N(t,P(e,i))}function U(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function G(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const J={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,a=t.name,c=t.options,h=i.elements.arrow,d=i.modifiersData.popperOffsets,u=I(i.placement),f=Q(u),p=[r,o].indexOf(u)>=0?"height":"width";if(h&&d){var m=function(t,e){return U("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:G(t,l))}(c.padding,i),g=B(h),_="y"===f?n:r,b="y"===f?s:o,v=i.rects.reference[p]+i.rects.reference[f]-d[f]-i.rects.popper[p],y=d[f]-i.rects.reference[f],w=K(h),E=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0,A=v/2-y/2,T=m[_],C=E-g[p]-m[b],O=E/2-g[p]/2+A,x=X(T,O,C),k=f;i.modifiersData[a]=((e={})[k]=x,e.centerOffset=x-O,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&W(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Z(t){return t.split("-")[1]}var tt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function et(t){var e,i=t.popper,a=t.popperRect,l=t.placement,c=t.variation,d=t.offsets,u=t.position,f=t.gpuAcceleration,p=t.adaptive,m=t.roundOffsets,g=t.isFixed,_=d.x,b=void 0===_?0:_,v=d.y,y=void 0===v?0:v,w="function"==typeof m?m({x:b,y}):{x:b,y};b=w.x,y=w.y;var E=d.hasOwnProperty("x"),A=d.hasOwnProperty("y"),T=r,C=n,O=window;if(p){var x=K(i),L="clientHeight",S="clientWidth";x===k(i)&&"static"!==z(x=q(i)).position&&"absolute"===u&&(L="scrollHeight",S="scrollWidth"),(l===n||(l===r||l===o)&&c===h)&&(C=s,y-=(g&&x===O&&O.visualViewport?O.visualViewport.height:x[L])-a.height,y*=f?1:-1),l!==r&&(l!==n&&l!==s||c!==h)||(T=o,b-=(g&&x===O&&O.visualViewport?O.visualViewport.width:x[S])-a.width,b*=f?1:-1)}var D,$=Object.assign({position:u},p&&tt),I=!0===m?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:M(i*s)/s||0,y:M(n*s)/s||0}}({x:b,y},k(i)):{x:b,y};return b=I.x,y=I.y,f?Object.assign({},$,((D={})[C]=A?"0":"",D[T]=E?"0":"",D.transform=(O.devicePixelRatio||1)<=1?"translate("+b+"px, "+y+"px)":"translate3d("+b+"px, "+y+"px, 0)",D)):Object.assign({},$,((e={})[C]=A?y+"px":"",e[T]=E?b+"px":"",e.transform="",e))}const it={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:I(e.placement),variation:Z(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,et(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,et(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var nt={passive:!0};const st={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=k(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,nt)})),a&&l.addEventListener("resize",i.update,nt),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,nt)})),a&&l.removeEventListener("resize",i.update,nt)}},data:{}};var ot={left:"right",right:"left",bottom:"top",top:"bottom"};function rt(t){return t.replace(/left|right|bottom|top/g,(function(t){return ot[t]}))}var at={start:"end",end:"start"};function lt(t){return t.replace(/start|end/g,(function(t){return at[t]}))}function ct(t){var e=k(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ht(t){return H(q(t)).left+ct(t).scrollLeft}function dt(t){var e=z(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function ut(t){return["html","body","#document"].indexOf(x(t))>=0?t.ownerDocument.body:S(t)&&dt(t)?t:ut(V(t))}function ft(t,e){var i;void 0===e&&(e=[]);var n=ut(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=k(n),r=s?[o].concat(o.visualViewport||[],dt(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(ft(V(r)))}function pt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function mt(t,e,i){return e===u?pt(function(t,e){var i=k(t),n=q(t),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=F();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+ht(t),y:l}}(t,i)):L(e)?function(t,e){var i=H(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):pt(function(t){var e,i=q(t),n=ct(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=N(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=N(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+ht(t),l=-n.scrollTop;return"rtl"===z(s||i).direction&&(a+=N(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(q(t)))}function gt(t){var e,i=t.reference,a=t.element,l=t.placement,d=l?I(l):null,u=l?Z(l):null,f=i.x+i.width/2-a.width/2,p=i.y+i.height/2-a.height/2;switch(d){case n:e={x:f,y:i.y-a.height};break;case s:e={x:f,y:i.y+i.height};break;case o:e={x:i.x+i.width,y:p};break;case r:e={x:i.x-a.width,y:p};break;default:e={x:i.x,y:i.y}}var m=d?Q(d):null;if(null!=m){var g="y"===m?"height":"width";switch(u){case c:e[m]=e[m]-(i[g]/2-a[g]/2);break;case h:e[m]=e[m]+(i[g]/2-a[g]/2)}}return e}function _t(t,e){void 0===e&&(e={});var i=e,r=i.placement,a=void 0===r?t.placement:r,c=i.strategy,h=void 0===c?t.strategy:c,m=i.boundary,g=void 0===m?d:m,_=i.rootBoundary,b=void 0===_?u:_,v=i.elementContext,y=void 0===v?f:v,w=i.altBoundary,E=void 0!==w&&w,A=i.padding,T=void 0===A?0:A,C=U("number"!=typeof T?T:G(T,l)),O=y===f?p:f,k=t.rects.popper,D=t.elements[E?O:y],$=function(t,e,i,n){var s="clippingParents"===e?function(t){var e=ft(V(t)),i=["absolute","fixed"].indexOf(z(t).position)>=0&&S(t)?K(t):t;return L(i)?e.filter((function(t){return L(t)&&W(t,i)&&"body"!==x(t)})):[]}(t):[].concat(e),o=[].concat(s,[i]),r=o[0],a=o.reduce((function(e,i){var s=mt(t,i,n);return e.top=N(s.top,e.top),e.right=P(s.right,e.right),e.bottom=P(s.bottom,e.bottom),e.left=N(s.left,e.left),e}),mt(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(L(D)?D:D.contextElement||q(t.elements.popper),g,b,h),I=H(t.elements.reference),M=gt({reference:I,element:k,strategy:"absolute",placement:a}),j=pt(Object.assign({},k,M)),F=y===f?j:I,B={top:$.top-F.top+C.top,bottom:F.bottom-$.bottom+C.bottom,left:$.left-F.left+C.left,right:F.right-$.right+C.right},R=t.modifiersData.offset;if(y===f&&R){var Y=R[a];Object.keys(B).forEach((function(t){var e=[o,s].indexOf(t)>=0?1:-1,i=[n,s].indexOf(t)>=0?"y":"x";B[t]+=Y[i]*e}))}return B}const bt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,h=t.name;if(!e.modifiersData[h]._skip){for(var d=i.mainAxis,u=void 0===d||d,f=i.altAxis,p=void 0===f||f,_=i.fallbackPlacements,b=i.padding,v=i.boundary,y=i.rootBoundary,w=i.altBoundary,E=i.flipVariations,A=void 0===E||E,T=i.allowedAutoPlacements,C=e.options.placement,O=I(C),x=_||(O!==C&&A?function(t){if(I(t)===a)return[];var e=rt(t);return[lt(t),e,lt(e)]}(C):[rt(C)]),k=[C].concat(x).reduce((function(t,i){return t.concat(I(i)===a?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,c=i.allowedAutoPlacements,h=void 0===c?g:c,d=Z(n),u=d?a?m:m.filter((function(t){return Z(t)===d})):l,f=u.filter((function(t){return h.indexOf(t)>=0}));0===f.length&&(f=u);var p=f.reduce((function(e,i){return e[i]=_t(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[I(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:i,boundary:v,rootBoundary:y,padding:b,flipVariations:A,allowedAutoPlacements:T}):i)}),[]),L=e.rects.reference,S=e.rects.popper,D=new Map,$=!0,N=k[0],P=0;P=0,B=H?"width":"height",W=_t(e,{placement:M,boundary:v,rootBoundary:y,altBoundary:w,padding:b}),z=H?F?o:r:F?s:n;L[B]>S[B]&&(z=rt(z));var R=rt(z),q=[];if(u&&q.push(W[j]<=0),p&&q.push(W[z]<=0,W[R]<=0),q.every((function(t){return t}))){N=M,$=!1;break}D.set(M,q)}if($)for(var V=function(t){var e=k.find((function(e){var i=D.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return N=e,"break"},Y=A?3:1;Y>0&&"break"!==V(Y);Y--);e.placement!==N&&(e.modifiersData[h]._skip=!0,e.placement=N,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function vt(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function yt(t){return[n,o,s,r].some((function(e){return t[e]>=0}))}const wt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=_t(e,{elementContext:"reference"}),a=_t(e,{altBoundary:!0}),l=vt(r,n),c=vt(a,s,o),h=yt(l),d=yt(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},Et={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,s=t.name,a=i.offset,l=void 0===a?[0,0]:a,c=g.reduce((function(t,i){return t[i]=function(t,e,i){var s=I(t),a=[r,n].indexOf(s)>=0?-1:1,l="function"==typeof i?i(Object.assign({},e,{placement:t})):i,c=l[0],h=l[1];return c=c||0,h=(h||0)*a,[r,o].indexOf(s)>=0?{x:h,y:c}:{x:c,y:h}}(i,e.rects,l),t}),{}),h=c[e.placement],d=h.x,u=h.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=u),e.modifiersData[s]=c}},At={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=gt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Tt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,a=t.name,l=i.mainAxis,h=void 0===l||l,d=i.altAxis,u=void 0!==d&&d,f=i.boundary,p=i.rootBoundary,m=i.altBoundary,g=i.padding,_=i.tether,b=void 0===_||_,v=i.tetherOffset,y=void 0===v?0:v,w=_t(e,{boundary:f,rootBoundary:p,padding:g,altBoundary:m}),E=I(e.placement),A=Z(e.placement),T=!A,C=Q(E),O="x"===C?"y":"x",x=e.modifiersData.popperOffsets,k=e.rects.reference,L=e.rects.popper,S="function"==typeof y?y(Object.assign({},e.rects,{placement:e.placement})):y,D="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(x){if(h){var j,F="y"===C?n:r,H="y"===C?s:o,W="y"===C?"height":"width",z=x[C],R=z+w[F],q=z-w[H],V=b?-L[W]/2:0,Y=A===c?k[W]:L[W],U=A===c?-L[W]:-k[W],G=e.elements.arrow,J=b&&G?B(G):{width:0,height:0},tt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=tt[F],it=tt[H],nt=X(0,k[W],J[W]),st=T?k[W]/2-V-nt-et-D.mainAxis:Y-nt-et-D.mainAxis,ot=T?-k[W]/2+V+nt+it+D.mainAxis:U+nt+it+D.mainAxis,rt=e.elements.arrow&&K(e.elements.arrow),at=rt?"y"===C?rt.clientTop||0:rt.clientLeft||0:0,lt=null!=(j=null==$?void 0:$[C])?j:0,ct=z+ot-lt,ht=X(b?P(R,z+st-lt-at):R,z,b?N(q,ct):q);x[C]=ht,M[C]=ht-z}if(u){var dt,ut="x"===C?n:r,ft="x"===C?s:o,pt=x[O],mt="y"===O?"height":"width",gt=pt+w[ut],bt=pt-w[ft],vt=-1!==[n,r].indexOf(E),yt=null!=(dt=null==$?void 0:$[O])?dt:0,wt=vt?gt:pt-k[mt]-L[mt]-yt+D.altAxis,Et=vt?pt+k[mt]+L[mt]-yt-D.altAxis:bt,At=b&&vt?function(t,e,i){var n=X(t,e,i);return n>i?i:n}(wt,pt,Et):X(b?wt:gt,pt,b?Et:bt);x[O]=At,M[O]=At-pt}e.modifiersData[a]=M}},requiresIfExists:["offset"]};function Ct(t,e,i){void 0===i&&(i=!1);var n,s,o=S(e),r=S(e)&&function(t){var e=t.getBoundingClientRect(),i=M(e.width)/t.offsetWidth||1,n=M(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=q(e),l=H(t,r,i),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!i)&&(("body"!==x(e)||dt(a))&&(c=(n=e)!==k(n)&&S(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:ct(n)),S(e)?((h=H(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=ht(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function Ot(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}var xt={placement:"bottom",modifiers:[],strategy:"absolute"};function kt(){for(var t=arguments.length,e=new Array(t),i=0;iIt.has(t)&&It.get(t).get(e)||null,remove(t,e){if(!It.has(t))return;const i=It.get(t);i.delete(e),0===i.size&&It.delete(t)}},Pt="transitionend",Mt=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),jt=t=>{t.dispatchEvent(new Event(Pt))},Ft=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Ht=t=>Ft(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(Mt(t)):null,Bt=t=>{if(!Ft(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},Wt=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),zt=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?zt(t.parentNode):null},Rt=()=>{},qt=t=>{t.offsetHeight},Vt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Yt=[],Kt=()=>"rtl"===document.documentElement.dir,Qt=t=>{var e;e=()=>{const e=Vt();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(Yt.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of Yt)t()})),Yt.push(e)):e()},Xt=(t,e=[],i=t)=>"function"==typeof t?t(...e):i,Ut=(t,e,i=!0)=>{if(!i)return void Xt(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let s=!1;const o=({target:i})=>{i===e&&(s=!0,e.removeEventListener(Pt,o),Xt(t))};e.addEventListener(Pt,o),setTimeout((()=>{s||jt(e)}),n)},Gt=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},Jt=/[^.]*(?=\..*)\.|.*/,Zt=/\..*/,te=/::\d+$/,ee={};let ie=1;const ne={mouseenter:"mouseover",mouseleave:"mouseout"},se=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function oe(t,e){return e&&`${e}::${ie++}`||t.uidEvent||ie++}function re(t){const e=oe(t);return t.uidEvent=e,ee[e]=ee[e]||{},ee[e]}function ae(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function le(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=ue(t);return se.has(o)||(o=t),[n,s,o]}function ce(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=le(e,i,n);if(e in ne){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=re(t),c=l[a]||(l[a]={}),h=ae(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=oe(r,e.replace(Jt,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return pe(s,{delegateTarget:r}),n.oneOff&&fe.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return pe(n,{delegateTarget:t}),i.oneOff&&fe.off(t,n.type,e),e.apply(t,[n])}}(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function he(t,e,i,n,s){const o=ae(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function de(t,e,i,n){const s=e[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&he(t,e,i,r.callable,r.delegationSelector)}function ue(t){return t=t.replace(Zt,""),ne[t]||t}const fe={on(t,e,i,n){ce(t,e,i,n,!1)},one(t,e,i,n){ce(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=le(e,i,n),a=r!==e,l=re(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))de(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(te,"");a&&!e.includes(s)||he(t,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;he(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=Vt();let s=null,o=!0,r=!0,a=!1;e!==ue(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=pe(new Event(e,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function pe(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function me(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function ge(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const _e={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${ge(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${ge(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=me(t.dataset[n])}return e},getDataAttribute:(t,e)=>me(t.getAttribute(`data-bs-${ge(e)}`))};class be{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=Ft(e)?_e.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Ft(e)?_e.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,s]of Object.entries(e)){const e=t[n],o=Ft(e)?"element":null==(i=e)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${s}".`)}var i}}class ve extends be{constructor(t,e){super(),(t=Ht(t))&&(this._element=t,this._config=this._getConfig(e),Nt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Nt.remove(this._element,this.constructor.DATA_KEY),fe.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){Ut(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Nt.get(Ht(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const ye=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e?e.split(",").map((t=>Mt(t))).join(","):null},we={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!Wt(t)&&Bt(t)))},getSelectorFromElement(t){const e=ye(t);return e&&we.findOne(e)?e:null},getElementFromSelector(t){const e=ye(t);return e?we.findOne(e):null},getMultipleElementsFromSelector(t){const e=ye(t);return e?we.find(e):[]}},Ee=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;fe.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Wt(this))return;const s=we.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()}))},Ae=".bs.alert",Te=`close${Ae}`,Ce=`closed${Ae}`;class Oe extends ve{static get NAME(){return"alert"}close(){if(fe.trigger(this._element,Te).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),fe.trigger(this._element,Ce),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=Oe.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}Ee(Oe,"close"),Qt(Oe);const xe='[data-bs-toggle="button"]';class ke extends ve{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=ke.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}fe.on(document,"click.bs.button.data-api",xe,(t=>{t.preventDefault();const e=t.target.closest(xe);ke.getOrCreateInstance(e).toggle()})),Qt(ke);const Le=".bs.swipe",Se=`touchstart${Le}`,De=`touchmove${Le}`,$e=`touchend${Le}`,Ie=`pointerdown${Le}`,Ne=`pointerup${Le}`,Pe={endCallback:null,leftCallback:null,rightCallback:null},Me={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class je extends be{constructor(t,e){super(),this._element=t,t&&je.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Pe}static get DefaultType(){return Me}static get NAME(){return"swipe"}dispose(){fe.off(this._element,Le)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Xt(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&Xt(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(fe.on(this._element,Ie,(t=>this._start(t))),fe.on(this._element,Ne,(t=>this._end(t))),this._element.classList.add("pointer-event")):(fe.on(this._element,Se,(t=>this._start(t))),fe.on(this._element,De,(t=>this._move(t))),fe.on(this._element,$e,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Fe=".bs.carousel",He=".data-api",Be="ArrowLeft",We="ArrowRight",ze="next",Re="prev",qe="left",Ve="right",Ye=`slide${Fe}`,Ke=`slid${Fe}`,Qe=`keydown${Fe}`,Xe=`mouseenter${Fe}`,Ue=`mouseleave${Fe}`,Ge=`dragstart${Fe}`,Je=`load${Fe}${He}`,Ze=`click${Fe}${He}`,ti="carousel",ei="active",ii=".active",ni=".carousel-item",si=ii+ni,oi={[Be]:Ve,[We]:qe},ri={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ai={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class li extends ve{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=we.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ti&&this.cycle()}static get Default(){return ri}static get DefaultType(){return ai}static get NAME(){return"carousel"}next(){this._slide(ze)}nextWhenVisible(){!document.hidden&&Bt(this._element)&&this.next()}prev(){this._slide(Re)}pause(){this._isSliding&&jt(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?fe.one(this._element,Ke,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void fe.one(this._element,Ke,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?ze:Re;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&fe.on(this._element,Qe,(t=>this._keydown(t))),"hover"===this._config.pause&&(fe.on(this._element,Xe,(()=>this.pause())),fe.on(this._element,Ue,(()=>this._maybeEnableCycle()))),this._config.touch&&je.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of we.find(".carousel-item img",this._element))fe.on(t,Ge,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(qe)),rightCallback:()=>this._slide(this._directionToOrder(Ve)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new je(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=oi[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=we.findOne(ii,this._indicatorsElement);e.classList.remove(ei),e.removeAttribute("aria-current");const i=we.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(ei),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===ze,s=e||Gt(this._getItems(),i,n,this._config.wrap);if(s===i)return;const o=this._getItemIndex(s),r=e=>fe.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r(Ye).defaultPrevented)return;if(!i||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classList.add(c),qt(s),i.classList.add(l),s.classList.add(l),this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(ei),i.classList.remove(ei,c,l),this._isSliding=!1,r(Ke)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return we.findOne(si,this._element)}_getItems(){return we.find(ni,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Kt()?t===qe?Re:ze:t===qe?ze:Re}_orderToDirection(t){return Kt()?t===Re?qe:Ve:t===Re?Ve:qe}static jQueryInterface(t){return this.each((function(){const e=li.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}fe.on(document,Ze,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=we.getElementFromSelector(this);if(!e||!e.classList.contains(ti))return;t.preventDefault();const i=li.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===_e.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),fe.on(window,Je,(()=>{const t=we.find('[data-bs-ride="carousel"]');for(const e of t)li.getOrCreateInstance(e)})),Qt(li);const ci=".bs.collapse",hi=`show${ci}`,di=`shown${ci}`,ui=`hide${ci}`,fi=`hidden${ci}`,pi=`click${ci}.data-api`,mi="show",gi="collapse",_i="collapsing",bi=`:scope .${gi} .${gi}`,vi='[data-bs-toggle="collapse"]',yi={parent:null,toggle:!0},wi={parent:"(null|element)",toggle:"boolean"};class Ei extends ve{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=we.find(vi);for(const t of i){const e=we.getSelectorFromElement(t),i=we.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return yi}static get DefaultType(){return wi}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>Ei.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(fe.trigger(this._element,hi).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(gi),this._element.classList.add(_i),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(_i),this._element.classList.add(gi,mi),this._element.style[e]="",fe.trigger(this._element,di)}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(fe.trigger(this._element,ui).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,qt(this._element),this._element.classList.add(_i),this._element.classList.remove(gi,mi);for(const t of this._triggerArray){const e=we.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(_i),this._element.classList.add(gi),fe.trigger(this._element,fi)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(mi)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Ht(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(vi);for(const e of t){const t=we.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=we.find(bi,this._config.parent);return we.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=Ei.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}fe.on(document,pi,vi,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of we.getMultipleElementsFromSelector(this))Ei.getOrCreateInstance(t,{toggle:!1}).toggle()})),Qt(Ei);const Ai="dropdown",Ti=".bs.dropdown",Ci=".data-api",Oi="ArrowUp",xi="ArrowDown",ki=`hide${Ti}`,Li=`hidden${Ti}`,Si=`show${Ti}`,Di=`shown${Ti}`,$i=`click${Ti}${Ci}`,Ii=`keydown${Ti}${Ci}`,Ni=`keyup${Ti}${Ci}`,Pi="show",Mi='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ji=`${Mi}.${Pi}`,Fi=".dropdown-menu",Hi=Kt()?"top-end":"top-start",Bi=Kt()?"top-start":"top-end",Wi=Kt()?"bottom-end":"bottom-start",zi=Kt()?"bottom-start":"bottom-end",Ri=Kt()?"left-start":"right-start",qi=Kt()?"right-start":"left-start",Vi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Yi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ki extends ve{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=we.next(this._element,Fi)[0]||we.prev(this._element,Fi)[0]||we.findOne(Fi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Vi}static get DefaultType(){return Yi}static get NAME(){return Ai}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Wt(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!fe.trigger(this._element,Si,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))fe.on(t,"mouseover",Rt);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Pi),this._element.classList.add(Pi),fe.trigger(this._element,Di,t)}}hide(){if(Wt(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!fe.trigger(this._element,ki,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))fe.off(t,"mouseover",Rt);this._popper&&this._popper.destroy(),this._menu.classList.remove(Pi),this._element.classList.remove(Pi),this._element.setAttribute("aria-expanded","false"),_e.removeDataAttribute(this._menu,"popper"),fe.trigger(this._element,Li,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Ft(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Ai.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:Ft(this._config.reference)?t=Ht(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const i=this._getPopperConfig();this._popper=Dt(t,this._menu,i)}_isShown(){return this._menu.classList.contains(Pi)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Ri;if(t.classList.contains("dropstart"))return qi;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Bi:Hi:e?zi:Wi}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(_e.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Xt(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=we.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>Bt(t)));i.length&&Gt(i,e,t===xi,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Ki.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=we.find(ji);for(const i of e){const e=Ki.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),s=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[Oi,xi].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const s=this.matches(Mi)?this:we.prev(this,Mi)[0]||we.next(this,Mi)[0]||we.findOne(Mi,t.delegateTarget.parentNode),o=Ki.getOrCreateInstance(s);if(n)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}fe.on(document,Ii,Mi,Ki.dataApiKeydownHandler),fe.on(document,Ii,Fi,Ki.dataApiKeydownHandler),fe.on(document,$i,Ki.clearMenus),fe.on(document,Ni,Ki.clearMenus),fe.on(document,$i,Mi,(function(t){t.preventDefault(),Ki.getOrCreateInstance(this).toggle()})),Qt(Ki);const Qi="backdrop",Xi="show",Ui=`mousedown.bs.${Qi}`,Gi={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ji={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Zi extends be{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Gi}static get DefaultType(){return Ji}static get NAME(){return Qi}show(t){if(!this._config.isVisible)return void Xt(t);this._append();const e=this._getElement();this._config.isAnimated&&qt(e),e.classList.add(Xi),this._emulateAnimation((()=>{Xt(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Xi),this._emulateAnimation((()=>{this.dispose(),Xt(t)}))):Xt(t)}dispose(){this._isAppended&&(fe.off(this._element,Ui),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Ht(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),fe.on(t,Ui,(()=>{Xt(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){Ut(t,this._getElement(),this._config.isAnimated)}}const tn=".bs.focustrap",en=`focusin${tn}`,nn=`keydown.tab${tn}`,sn="backward",on={autofocus:!0,trapElement:null},rn={autofocus:"boolean",trapElement:"element"};class an extends be{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return on}static get DefaultType(){return rn}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),fe.off(document,tn),fe.on(document,en,(t=>this._handleFocusin(t))),fe.on(document,nn,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,fe.off(document,tn))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=we.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===sn?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?sn:"forward")}}const ln=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",cn=".sticky-top",hn="padding-right",dn="margin-right";class un{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,hn,(e=>e+t)),this._setElementAttributes(ln,hn,(e=>e+t)),this._setElementAttributes(cn,dn,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,hn),this._resetElementAttributes(ln,hn),this._resetElementAttributes(cn,dn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&_e.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=_e.getDataAttribute(t,e);null!==i?(_e.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(Ft(t))e(t);else for(const i of we.find(t,this._element))e(i)}}const fn=".bs.modal",pn=`hide${fn}`,mn=`hidePrevented${fn}`,gn=`hidden${fn}`,_n=`show${fn}`,bn=`shown${fn}`,vn=`resize${fn}`,yn=`click.dismiss${fn}`,wn=`mousedown.dismiss${fn}`,En=`keydown.dismiss${fn}`,An=`click${fn}.data-api`,Tn="modal-open",Cn="show",On="modal-static",xn={backdrop:!0,focus:!0,keyboard:!0},kn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ln extends ve{constructor(t,e){super(t,e),this._dialog=we.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new un,this._addEventListeners()}static get Default(){return xn}static get DefaultType(){return kn}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||fe.trigger(this._element,_n,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Tn),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(fe.trigger(this._element,pn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Cn),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){fe.off(window,fn),fe.off(this._dialog,fn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Zi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new an({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=we.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),qt(this._element),this._element.classList.add(Cn),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,fe.trigger(this._element,bn,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){fe.on(this._element,En,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),fe.on(window,vn,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),fe.on(this._element,wn,(t=>{fe.one(this._element,yn,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(Tn),this._resetAdjustments(),this._scrollBar.reset(),fe.trigger(this._element,gn)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(fe.trigger(this._element,mn).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(On)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(On),this._queueCallback((()=>{this._element.classList.remove(On),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=Kt()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=Kt()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=Ln.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}fe.on(document,An,'[data-bs-toggle="modal"]',(function(t){const e=we.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),fe.one(e,_n,(t=>{t.defaultPrevented||fe.one(e,gn,(()=>{Bt(this)&&this.focus()}))}));const i=we.findOne(".modal.show");i&&Ln.getInstance(i).hide(),Ln.getOrCreateInstance(e).toggle(this)})),Ee(Ln),Qt(Ln);const Sn=".bs.offcanvas",Dn=".data-api",$n=`load${Sn}${Dn}`,In="show",Nn="showing",Pn="hiding",Mn=".offcanvas.show",jn=`show${Sn}`,Fn=`shown${Sn}`,Hn=`hide${Sn}`,Bn=`hidePrevented${Sn}`,Wn=`hidden${Sn}`,zn=`resize${Sn}`,Rn=`click${Sn}${Dn}`,qn=`keydown.dismiss${Sn}`,Vn={backdrop:!0,keyboard:!0,scroll:!1},Yn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Kn extends ve{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Vn}static get DefaultType(){return Yn}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||fe.trigger(this._element,jn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new un).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Nn),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(In),this._element.classList.remove(Nn),fe.trigger(this._element,Fn,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(fe.trigger(this._element,Hn).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Pn),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(In,Pn),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new un).reset(),fe.trigger(this._element,Wn)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Zi({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():fe.trigger(this._element,Bn)}:null})}_initializeFocusTrap(){return new an({trapElement:this._element})}_addEventListeners(){fe.on(this._element,qn,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():fe.trigger(this._element,Bn))}))}static jQueryInterface(t){return this.each((function(){const e=Kn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}fe.on(document,Rn,'[data-bs-toggle="offcanvas"]',(function(t){const e=we.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Wt(this))return;fe.one(e,Wn,(()=>{Bt(this)&&this.focus()}));const i=we.findOne(Mn);i&&i!==e&&Kn.getInstance(i).hide(),Kn.getOrCreateInstance(e).toggle(this)})),fe.on(window,$n,(()=>{for(const t of we.find(Mn))Kn.getOrCreateInstance(t).show()})),fe.on(window,zn,(()=>{for(const t of we.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Kn.getOrCreateInstance(t).hide()})),Ee(Kn),Qt(Kn);const Qn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Xn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Un=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Gn=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Xn.has(i)||Boolean(Un.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},Jn={allowList:Qn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Zn={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ts={entry:"(string|element|function|null)",selector:"(string|element)"};class es extends be{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Jn}static get DefaultType(){return Zn}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},ts)}_setContent(t,e,i){const n=we.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?Ft(e)?this._putElementInTemplate(Ht(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[i]||[]);for(const e of n)Gn(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Xt(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const is=new Set(["sanitize","allowList","sanitizeFn"]),ns="fade",ss="show",os=".tooltip-inner",rs=".modal",as="hide.bs.modal",ls="hover",cs="focus",hs={AUTO:"auto",TOP:"top",RIGHT:Kt()?"left":"right",BOTTOM:"bottom",LEFT:Kt()?"right":"left"},ds={allowList:Qn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},us={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class fs extends ve{constructor(t,i){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,i),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ds}static get DefaultType(){return us}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),fe.off(this._element.closest(rs),as,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=fe.trigger(this._element,this.constructor.eventName("show")),e=(zt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),fe.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(ss),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))fe.on(t,"mouseover",Rt);this._queueCallback((()=>{fe.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!fe.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(ss),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))fe.off(t,"mouseover",Rt);this._activeTrigger.click=!1,this._activeTrigger[cs]=!1,this._activeTrigger[ls]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),fe.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(ns,ss),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(ns),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new es({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[os]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ns)}_isShown(){return this.tip&&this.tip.classList.contains(ss)}_createPopper(t){const e=Xt(this._config.placement,[this,t,this._element]),i=hs[e.toUpperCase()];return Dt(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Xt(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...Xt(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)fe.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===ls?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===ls?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");fe.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?cs:ls]=!0,e._enter()})),fe.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?cs:ls]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},fe.on(this._element.closest(rs),as,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=_e.getDataAttributes(this._element);for(const t of Object.keys(e))is.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:Ht(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=fs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Qt(fs);const ps=".popover-header",ms=".popover-body",gs={...fs.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},_s={...fs.DefaultType,content:"(null|string|element|function)"};class bs extends fs{static get Default(){return gs}static get DefaultType(){return _s}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ps]:this._getTitle(),[ms]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=bs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Qt(bs);const vs=".bs.scrollspy",ys=`activate${vs}`,ws=`click${vs}`,Es=`load${vs}.data-api`,As="active",Ts="[href]",Cs=".nav-link",Os=`${Cs}, .nav-item > ${Cs}, .list-group-item`,xs={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},ks={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ls extends ve{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return xs}static get DefaultType(){return ks}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Ht(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(fe.off(this._config.target,ws),fe.on(this._config.target,ws,Ts,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(i(o),!n)return}else s||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=we.find(Ts,this._config.target);for(const e of t){if(!e.hash||Wt(e))continue;const t=we.findOne(decodeURI(e.hash),this._element);Bt(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(As),this._activateParents(t),fe.trigger(this._element,ys,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))we.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(As);else for(const e of we.parents(t,".nav, .list-group"))for(const t of we.prev(e,Os))t.classList.add(As)}_clearActiveClass(t){t.classList.remove(As);const e=we.find(`${Ts}.${As}`,t);for(const t of e)t.classList.remove(As)}static jQueryInterface(t){return this.each((function(){const e=Ls.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}fe.on(window,Es,(()=>{for(const t of we.find('[data-bs-spy="scroll"]'))Ls.getOrCreateInstance(t)})),Qt(Ls);const Ss=".bs.tab",Ds=`hide${Ss}`,$s=`hidden${Ss}`,Is=`show${Ss}`,Ns=`shown${Ss}`,Ps=`click${Ss}`,Ms=`keydown${Ss}`,js=`load${Ss}`,Fs="ArrowLeft",Hs="ArrowRight",Bs="ArrowUp",Ws="ArrowDown",zs="Home",Rs="End",qs="active",Vs="fade",Ys="show",Ks=".dropdown-toggle",Qs=`:not(${Ks})`,Xs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Us=`.nav-link${Qs}, .list-group-item${Qs}, [role="tab"]${Qs}, ${Xs}`,Gs=`.${qs}[data-bs-toggle="tab"], .${qs}[data-bs-toggle="pill"], .${qs}[data-bs-toggle="list"]`;class Js extends ve{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),fe.on(this._element,Ms,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?fe.trigger(e,Ds,{relatedTarget:t}):null;fe.trigger(t,Is,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(qs),this._activate(we.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),fe.trigger(t,Ns,{relatedTarget:e})):t.classList.add(Ys)}),t,t.classList.contains(Vs)))}_deactivate(t,e){t&&(t.classList.remove(qs),t.blur(),this._deactivate(we.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),fe.trigger(t,$s,{relatedTarget:e})):t.classList.remove(Ys)}),t,t.classList.contains(Vs)))}_keydown(t){if(![Fs,Hs,Bs,Ws,zs,Rs].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!Wt(t)));let i;if([zs,Rs].includes(t.key))i=e[t.key===zs?0:e.length-1];else{const n=[Hs,Ws].includes(t.key);i=Gt(e,t.target,n,!0)}i&&(i.focus({preventScroll:!0}),Js.getOrCreateInstance(i).show())}_getChildren(){return we.find(Us,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=we.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const s=we.findOne(t,i);s&&s.classList.toggle(n,e)};n(Ks,qs),n(".dropdown-menu",Ys),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(qs)}_getInnerElement(t){return t.matches(Us)?t:we.findOne(Us,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=Js.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}fe.on(document,Ps,Xs,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),Wt(this)||Js.getOrCreateInstance(this).show()})),fe.on(window,js,(()=>{for(const t of we.find(Gs))Js.getOrCreateInstance(t)})),Qt(Js);const Zs=".bs.toast",to=`mouseover${Zs}`,eo=`mouseout${Zs}`,io=`focusin${Zs}`,no=`focusout${Zs}`,so=`hide${Zs}`,oo=`hidden${Zs}`,ro=`show${Zs}`,ao=`shown${Zs}`,lo="hide",co="show",ho="showing",uo={animation:"boolean",autohide:"boolean",delay:"number"},fo={animation:!0,autohide:!0,delay:5e3};class po extends ve{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return fo}static get DefaultType(){return uo}static get NAME(){return"toast"}show(){fe.trigger(this._element,ro).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(lo),qt(this._element),this._element.classList.add(co,ho),this._queueCallback((()=>{this._element.classList.remove(ho),fe.trigger(this._element,ao),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(fe.trigger(this._element,so).defaultPrevented||(this._element.classList.add(ho),this._queueCallback((()=>{this._element.classList.add(lo),this._element.classList.remove(ho,co),fe.trigger(this._element,oo)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(co),super.dispose()}isShown(){return this._element.classList.contains(co)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){fe.on(this._element,to,(t=>this._onInteraction(t,!0))),fe.on(this._element,eo,(t=>this._onInteraction(t,!1))),fe.on(this._element,io,(t=>this._onInteraction(t,!0))),fe.on(this._element,no,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=po.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}function mo(t){"loading"!=document.readyState?t():document.addEventListener("DOMContentLoaded",t)}Ee(po),Qt(po),mo((function(){[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new fs(t,{delay:{show:500,hide:100}})}))})),mo((function(){document.getElementById("pst-back-to-top").addEventListener("click",(function(){document.body.scrollTop=0,document.documentElement.scrollTop=0}))})),mo((function(){var t=document.getElementById("pst-back-to-top"),e=document.getElementsByClassName("bd-header")[0].getBoundingClientRect();window.addEventListener("scroll",(function(){this.oldScroll>this.scrollY&&this.scrollY>e.bottom?t.style.display="block":t.style.display="none",this.oldScroll=this.scrollY}))})),window.bootstrap=i})(); +//# sourceMappingURL=bootstrap.js.map \ No newline at end of file diff --git a/_static/scripts/bootstrap.js.LICENSE.txt b/_static/scripts/bootstrap.js.LICENSE.txt new file mode 100644 index 0000000..28755c2 --- /dev/null +++ b/_static/scripts/bootstrap.js.LICENSE.txt @@ -0,0 +1,5 @@ +/*! + * Bootstrap v5.3.3 (https://getbootstrap.com/) + * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */ diff --git a/_static/scripts/bootstrap.js.map b/_static/scripts/bootstrap.js.map new file mode 100644 index 0000000..e9e8158 --- /dev/null +++ b/_static/scripts/bootstrap.js.map @@ -0,0 +1 @@ +{"version":3,"file":"scripts/bootstrap.js","mappings":";mBACA,IAAIA,EAAsB,CCA1BA,EAAwB,CAACC,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDH,EAAwB,CAACS,EAAKC,IAAUL,OAAOM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CAAgBqH,GACrB,OAAO9D,KAAKwH,MAAK,WACf,MAAMnd,EAAO6/B,GAAM5kB,oBAAoBtF,KAAM8D,GAC7C,GAAsB,iBAAXA,EAAqB,CAC9B,QAA4B,IAAjBzZ,EAAKyZ,GACd,MAAM,IAAIU,UAAU,oBAAoBV,MAE1CzZ,EAAKyZ,GAAQ9D,KACf,CACF,GACF,ECr0IK,SAAS0qB,GAAcruB,GACD,WAAvBhX,SAASuX,WAAyBP,IACjChX,SAASyF,iBAAiB,mBAAoBuR,EACrD,CDy0IAwK,GAAqBqjB,IAMrB/tB,GAAmB+tB,IEpyInBQ,IAzCA,WAC2B,GAAGt4B,MAAM5U,KAChC6H,SAAS+a,iBAAiB,+BAETtd,KAAI,SAAU6nC,GAC/B,OAAO,IAAI,GAAkBA,EAAkB,CAC7CpK,MAAO,CAAE1Q,KAAM,IAAKD,KAAM,MAE9B,GACF,IAiCA8a,IA5BA,WACYrlC,SAASm9B,eAAe,mBAC9B13B,iBAAiB,SAAS,WAC5BzF,SAAS6G,KAAKT,UAAY,EAC1BpG,SAASC,gBAAgBmG,UAAY,CACvC,GACF,IAuBAi/B,IArBA,WACE,IAAIE,EAAMvlC,SAASm9B,eAAe,mBAC9BqI,EAASxlC,SACVylC,uBAAuB,aAAa,GACpCxnC,wBACH1D,OAAOkL,iBAAiB,UAAU,WAC5BkV,KAAK+qB,UAAY/qB,KAAKgrB,SAAWhrB,KAAKgrB,QAAUH,EAAOjtC,OACzDgtC,EAAI7pC,MAAMgxB,QAAU,QAEpB6Y,EAAI7pC,MAAMgxB,QAAU,OAEtB/R,KAAK+qB,UAAY/qB,KAAKgrB,OACxB,GACF,IAUAprC,OAAOqrC,UAAY","sources":["webpack://pydata_sphinx_theme/webpack/bootstrap","webpack://pydata_sphinx_theme/webpack/runtime/define property getters","webpack://pydata_sphinx_theme/webpack/runtime/hasOwnProperty shorthand","webpack://pydata_sphinx_theme/webpack/runtime/make namespace object","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/enums.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getWindow.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/applyStyles.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/getBasePlacement.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/math.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/userAgent.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/contains.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/within.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/expandToHashMap.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/arrow.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/getVariation.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/computeStyles.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/eventListeners.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/rectToClientRect.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/computeOffsets.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/detectOverflow.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/flip.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/hide.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/offset.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/getAltAxis.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/orderModifiers.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/createPopper.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/debounce.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/mergeByName.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/popper.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/popper-lite.js","webpack://pydata_sphinx_theme/./node_modules/bootstrap/dist/js/bootstrap.esm.js","webpack://pydata_sphinx_theme/./src/pydata_sphinx_theme/assets/scripts/mixin.js","webpack://pydata_sphinx_theme/./src/pydata_sphinx_theme/assets/scripts/bootstrap.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow };","/*!\n * Bootstrap v5.3.3 (https://getbootstrap.com/)\n * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */\nimport * as Popper from '@popperjs/core';\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/data.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * Constants\n */\n\nconst elementMap = new Map();\nconst Data = {\n set(element, key, instance) {\n if (!elementMap.has(element)) {\n elementMap.set(element, new Map());\n }\n const instanceMap = elementMap.get(element);\n\n // make it clear we only want one instance per element\n // can be removed later when multiple key/instances are fine to be used\n if (!instanceMap.has(key) && instanceMap.size !== 0) {\n // eslint-disable-next-line no-console\n console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`);\n return;\n }\n instanceMap.set(key, instance);\n },\n get(element, key) {\n if (elementMap.has(element)) {\n return elementMap.get(element).get(key) || null;\n }\n return null;\n },\n remove(element, key) {\n if (!elementMap.has(element)) {\n return;\n }\n const instanceMap = elementMap.get(element);\n instanceMap.delete(key);\n\n // free up element references if there are no instances left for an element\n if (instanceMap.size === 0) {\n elementMap.delete(element);\n }\n }\n};\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/index.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst MAX_UID = 1000000;\nconst MILLISECONDS_MULTIPLIER = 1000;\nconst TRANSITION_END = 'transitionend';\n\n/**\n * Properly escape IDs selectors to handle weird IDs\n * @param {string} selector\n * @returns {string}\n */\nconst parseSelector = selector => {\n if (selector && window.CSS && window.CSS.escape) {\n // document.querySelector needs escaping to handle IDs (html5+) containing for instance /\n selector = selector.replace(/#([^\\s\"#']+)/g, (match, id) => `#${CSS.escape(id)}`);\n }\n return selector;\n};\n\n// Shout-out Angus Croll (https://goo.gl/pxwQGp)\nconst toType = object => {\n if (object === null || object === undefined) {\n return `${object}`;\n }\n return Object.prototype.toString.call(object).match(/\\s([a-z]+)/i)[1].toLowerCase();\n};\n\n/**\n * Public Util API\n */\n\nconst getUID = prefix => {\n do {\n prefix += Math.floor(Math.random() * MAX_UID);\n } while (document.getElementById(prefix));\n return prefix;\n};\nconst getTransitionDurationFromElement = element => {\n if (!element) {\n return 0;\n }\n\n // Get transition-duration of the element\n let {\n transitionDuration,\n transitionDelay\n } = window.getComputedStyle(element);\n const floatTransitionDuration = Number.parseFloat(transitionDuration);\n const floatTransitionDelay = Number.parseFloat(transitionDelay);\n\n // Return 0 if element or transition duration is not found\n if (!floatTransitionDuration && !floatTransitionDelay) {\n return 0;\n }\n\n // If multiple durations are defined, take the first\n transitionDuration = transitionDuration.split(',')[0];\n transitionDelay = transitionDelay.split(',')[0];\n return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;\n};\nconst triggerTransitionEnd = element => {\n element.dispatchEvent(new Event(TRANSITION_END));\n};\nconst isElement = object => {\n if (!object || typeof object !== 'object') {\n return false;\n }\n if (typeof object.jquery !== 'undefined') {\n object = object[0];\n }\n return typeof object.nodeType !== 'undefined';\n};\nconst getElement = object => {\n // it's a jQuery object or a node element\n if (isElement(object)) {\n return object.jquery ? object[0] : object;\n }\n if (typeof object === 'string' && object.length > 0) {\n return document.querySelector(parseSelector(object));\n }\n return null;\n};\nconst isVisible = element => {\n if (!isElement(element) || element.getClientRects().length === 0) {\n return false;\n }\n const elementIsVisible = getComputedStyle(element).getPropertyValue('visibility') === 'visible';\n // Handle `details` element as its content may falsie appear visible when it is closed\n const closedDetails = element.closest('details:not([open])');\n if (!closedDetails) {\n return elementIsVisible;\n }\n if (closedDetails !== element) {\n const summary = element.closest('summary');\n if (summary && summary.parentNode !== closedDetails) {\n return false;\n }\n if (summary === null) {\n return false;\n }\n }\n return elementIsVisible;\n};\nconst isDisabled = element => {\n if (!element || element.nodeType !== Node.ELEMENT_NODE) {\n return true;\n }\n if (element.classList.contains('disabled')) {\n return true;\n }\n if (typeof element.disabled !== 'undefined') {\n return element.disabled;\n }\n return element.hasAttribute('disabled') && element.getAttribute('disabled') !== 'false';\n};\nconst findShadowRoot = element => {\n if (!document.documentElement.attachShadow) {\n return null;\n }\n\n // Can find the shadow root otherwise it'll return the document\n if (typeof element.getRootNode === 'function') {\n const root = element.getRootNode();\n return root instanceof ShadowRoot ? root : null;\n }\n if (element instanceof ShadowRoot) {\n return element;\n }\n\n // when we don't find a shadow root\n if (!element.parentNode) {\n return null;\n }\n return findShadowRoot(element.parentNode);\n};\nconst noop = () => {};\n\n/**\n * Trick to restart an element's animation\n *\n * @param {HTMLElement} element\n * @return void\n *\n * @see https://www.charistheo.io/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation\n */\nconst reflow = element => {\n element.offsetHeight; // eslint-disable-line no-unused-expressions\n};\nconst getjQuery = () => {\n if (window.jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {\n return window.jQuery;\n }\n return null;\n};\nconst DOMContentLoadedCallbacks = [];\nconst onDOMContentLoaded = callback => {\n if (document.readyState === 'loading') {\n // add listener on the first call when the document is in loading state\n if (!DOMContentLoadedCallbacks.length) {\n document.addEventListener('DOMContentLoaded', () => {\n for (const callback of DOMContentLoadedCallbacks) {\n callback();\n }\n });\n }\n DOMContentLoadedCallbacks.push(callback);\n } else {\n callback();\n }\n};\nconst isRTL = () => document.documentElement.dir === 'rtl';\nconst defineJQueryPlugin = plugin => {\n onDOMContentLoaded(() => {\n const $ = getjQuery();\n /* istanbul ignore if */\n if ($) {\n const name = plugin.NAME;\n const JQUERY_NO_CONFLICT = $.fn[name];\n $.fn[name] = plugin.jQueryInterface;\n $.fn[name].Constructor = plugin;\n $.fn[name].noConflict = () => {\n $.fn[name] = JQUERY_NO_CONFLICT;\n return plugin.jQueryInterface;\n };\n }\n });\n};\nconst execute = (possibleCallback, args = [], defaultValue = possibleCallback) => {\n return typeof possibleCallback === 'function' ? possibleCallback(...args) : defaultValue;\n};\nconst executeAfterTransition = (callback, transitionElement, waitForTransition = true) => {\n if (!waitForTransition) {\n execute(callback);\n return;\n }\n const durationPadding = 5;\n const emulatedDuration = getTransitionDurationFromElement(transitionElement) + durationPadding;\n let called = false;\n const handler = ({\n target\n }) => {\n if (target !== transitionElement) {\n return;\n }\n called = true;\n transitionElement.removeEventListener(TRANSITION_END, handler);\n execute(callback);\n };\n transitionElement.addEventListener(TRANSITION_END, handler);\n setTimeout(() => {\n if (!called) {\n triggerTransitionEnd(transitionElement);\n }\n }, emulatedDuration);\n};\n\n/**\n * Return the previous/next element of a list.\n *\n * @param {array} list The list of elements\n * @param activeElement The active element\n * @param shouldGetNext Choose to get next or previous element\n * @param isCycleAllowed\n * @return {Element|elem} The proper element\n */\nconst getNextActiveElement = (list, activeElement, shouldGetNext, isCycleAllowed) => {\n const listLength = list.length;\n let index = list.indexOf(activeElement);\n\n // if the element does not exist in the list return an element\n // depending on the direction and if cycle is allowed\n if (index === -1) {\n return !shouldGetNext && isCycleAllowed ? list[listLength - 1] : list[0];\n }\n index += shouldGetNext ? 1 : -1;\n if (isCycleAllowed) {\n index = (index + listLength) % listLength;\n }\n return list[Math.max(0, Math.min(index, listLength - 1))];\n};\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/event-handler.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst namespaceRegex = /[^.]*(?=\\..*)\\.|.*/;\nconst stripNameRegex = /\\..*/;\nconst stripUidRegex = /::\\d+$/;\nconst eventRegistry = {}; // Events storage\nlet uidEvent = 1;\nconst customEvents = {\n mouseenter: 'mouseover',\n mouseleave: 'mouseout'\n};\nconst nativeEvents = new Set(['click', 'dblclick', 'mouseup', 'mousedown', 'contextmenu', 'mousewheel', 'DOMMouseScroll', 'mouseover', 'mouseout', 'mousemove', 'selectstart', 'selectend', 'keydown', 'keypress', 'keyup', 'orientationchange', 'touchstart', 'touchmove', 'touchend', 'touchcancel', 'pointerdown', 'pointermove', 'pointerup', 'pointerleave', 'pointercancel', 'gesturestart', 'gesturechange', 'gestureend', 'focus', 'blur', 'change', 'reset', 'select', 'submit', 'focusin', 'focusout', 'load', 'unload', 'beforeunload', 'resize', 'move', 'DOMContentLoaded', 'readystatechange', 'error', 'abort', 'scroll']);\n\n/**\n * Private methods\n */\n\nfunction makeEventUid(element, uid) {\n return uid && `${uid}::${uidEvent++}` || element.uidEvent || uidEvent++;\n}\nfunction getElementEvents(element) {\n const uid = makeEventUid(element);\n element.uidEvent = uid;\n eventRegistry[uid] = eventRegistry[uid] || {};\n return eventRegistry[uid];\n}\nfunction bootstrapHandler(element, fn) {\n return function handler(event) {\n hydrateObj(event, {\n delegateTarget: element\n });\n if (handler.oneOff) {\n EventHandler.off(element, event.type, fn);\n }\n return fn.apply(element, [event]);\n };\n}\nfunction bootstrapDelegationHandler(element, selector, fn) {\n return function handler(event) {\n const domElements = element.querySelectorAll(selector);\n for (let {\n target\n } = event; target && target !== this; target = target.parentNode) {\n for (const domElement of domElements) {\n if (domElement !== target) {\n continue;\n }\n hydrateObj(event, {\n delegateTarget: target\n });\n if (handler.oneOff) {\n EventHandler.off(element, event.type, selector, fn);\n }\n return fn.apply(target, [event]);\n }\n }\n };\n}\nfunction findHandler(events, callable, delegationSelector = null) {\n return Object.values(events).find(event => event.callable === callable && event.delegationSelector === delegationSelector);\n}\nfunction normalizeParameters(originalTypeEvent, handler, delegationFunction) {\n const isDelegated = typeof handler === 'string';\n // TODO: tooltip passes `false` instead of selector, so we need to check\n const callable = isDelegated ? delegationFunction : handler || delegationFunction;\n let typeEvent = getTypeEvent(originalTypeEvent);\n if (!nativeEvents.has(typeEvent)) {\n typeEvent = originalTypeEvent;\n }\n return [isDelegated, callable, typeEvent];\n}\nfunction addHandler(element, originalTypeEvent, handler, delegationFunction, oneOff) {\n if (typeof originalTypeEvent !== 'string' || !element) {\n return;\n }\n let [isDelegated, callable, typeEvent] = normalizeParameters(originalTypeEvent, handler, delegationFunction);\n\n // in case of mouseenter or mouseleave wrap the handler within a function that checks for its DOM position\n // this prevents the handler from being dispatched the same way as mouseover or mouseout does\n if (originalTypeEvent in customEvents) {\n const wrapFunction = fn => {\n return function (event) {\n if (!event.relatedTarget || event.relatedTarget !== event.delegateTarget && !event.delegateTarget.contains(event.relatedTarget)) {\n return fn.call(this, event);\n }\n };\n };\n callable = wrapFunction(callable);\n }\n const events = getElementEvents(element);\n const handlers = events[typeEvent] || (events[typeEvent] = {});\n const previousFunction = findHandler(handlers, callable, isDelegated ? handler : null);\n if (previousFunction) {\n previousFunction.oneOff = previousFunction.oneOff && oneOff;\n return;\n }\n const uid = makeEventUid(callable, originalTypeEvent.replace(namespaceRegex, ''));\n const fn = isDelegated ? bootstrapDelegationHandler(element, handler, callable) : bootstrapHandler(element, callable);\n fn.delegationSelector = isDelegated ? handler : null;\n fn.callable = callable;\n fn.oneOff = oneOff;\n fn.uidEvent = uid;\n handlers[uid] = fn;\n element.addEventListener(typeEvent, fn, isDelegated);\n}\nfunction removeHandler(element, events, typeEvent, handler, delegationSelector) {\n const fn = findHandler(events[typeEvent], handler, delegationSelector);\n if (!fn) {\n return;\n }\n element.removeEventListener(typeEvent, fn, Boolean(delegationSelector));\n delete events[typeEvent][fn.uidEvent];\n}\nfunction removeNamespacedHandlers(element, events, typeEvent, namespace) {\n const storeElementEvent = events[typeEvent] || {};\n for (const [handlerKey, event] of Object.entries(storeElementEvent)) {\n if (handlerKey.includes(namespace)) {\n removeHandler(element, events, typeEvent, event.callable, event.delegationSelector);\n }\n }\n}\nfunction getTypeEvent(event) {\n // allow to get the native events from namespaced events ('click.bs.button' --> 'click')\n event = event.replace(stripNameRegex, '');\n return customEvents[event] || event;\n}\nconst EventHandler = {\n on(element, event, handler, delegationFunction) {\n addHandler(element, event, handler, delegationFunction, false);\n },\n one(element, event, handler, delegationFunction) {\n addHandler(element, event, handler, delegationFunction, true);\n },\n off(element, originalTypeEvent, handler, delegationFunction) {\n if (typeof originalTypeEvent !== 'string' || !element) {\n return;\n }\n const [isDelegated, callable, typeEvent] = normalizeParameters(originalTypeEvent, handler, delegationFunction);\n const inNamespace = typeEvent !== originalTypeEvent;\n const events = getElementEvents(element);\n const storeElementEvent = events[typeEvent] || {};\n const isNamespace = originalTypeEvent.startsWith('.');\n if (typeof callable !== 'undefined') {\n // Simplest case: handler is passed, remove that listener ONLY.\n if (!Object.keys(storeElementEvent).length) {\n return;\n }\n removeHandler(element, events, typeEvent, callable, isDelegated ? handler : null);\n return;\n }\n if (isNamespace) {\n for (const elementEvent of Object.keys(events)) {\n removeNamespacedHandlers(element, events, elementEvent, originalTypeEvent.slice(1));\n }\n }\n for (const [keyHandlers, event] of Object.entries(storeElementEvent)) {\n const handlerKey = keyHandlers.replace(stripUidRegex, '');\n if (!inNamespace || originalTypeEvent.includes(handlerKey)) {\n removeHandler(element, events, typeEvent, event.callable, event.delegationSelector);\n }\n }\n },\n trigger(element, event, args) {\n if (typeof event !== 'string' || !element) {\n return null;\n }\n const $ = getjQuery();\n const typeEvent = getTypeEvent(event);\n const inNamespace = event !== typeEvent;\n let jQueryEvent = null;\n let bubbles = true;\n let nativeDispatch = true;\n let defaultPrevented = false;\n if (inNamespace && $) {\n jQueryEvent = $.Event(event, args);\n $(element).trigger(jQueryEvent);\n bubbles = !jQueryEvent.isPropagationStopped();\n nativeDispatch = !jQueryEvent.isImmediatePropagationStopped();\n defaultPrevented = jQueryEvent.isDefaultPrevented();\n }\n const evt = hydrateObj(new Event(event, {\n bubbles,\n cancelable: true\n }), args);\n if (defaultPrevented) {\n evt.preventDefault();\n }\n if (nativeDispatch) {\n element.dispatchEvent(evt);\n }\n if (evt.defaultPrevented && jQueryEvent) {\n jQueryEvent.preventDefault();\n }\n return evt;\n }\n};\nfunction hydrateObj(obj, meta = {}) {\n for (const [key, value] of Object.entries(meta)) {\n try {\n obj[key] = value;\n } catch (_unused) {\n Object.defineProperty(obj, key, {\n configurable: true,\n get() {\n return value;\n }\n });\n }\n }\n return obj;\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/manipulator.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nfunction normalizeData(value) {\n if (value === 'true') {\n return true;\n }\n if (value === 'false') {\n return false;\n }\n if (value === Number(value).toString()) {\n return Number(value);\n }\n if (value === '' || value === 'null') {\n return null;\n }\n if (typeof value !== 'string') {\n return value;\n }\n try {\n return JSON.parse(decodeURIComponent(value));\n } catch (_unused) {\n return value;\n }\n}\nfunction normalizeDataKey(key) {\n return key.replace(/[A-Z]/g, chr => `-${chr.toLowerCase()}`);\n}\nconst Manipulator = {\n setDataAttribute(element, key, value) {\n element.setAttribute(`data-bs-${normalizeDataKey(key)}`, value);\n },\n removeDataAttribute(element, key) {\n element.removeAttribute(`data-bs-${normalizeDataKey(key)}`);\n },\n getDataAttributes(element) {\n if (!element) {\n return {};\n }\n const attributes = {};\n const bsKeys = Object.keys(element.dataset).filter(key => key.startsWith('bs') && !key.startsWith('bsConfig'));\n for (const key of bsKeys) {\n let pureKey = key.replace(/^bs/, '');\n pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length);\n attributes[pureKey] = normalizeData(element.dataset[key]);\n }\n return attributes;\n },\n getDataAttribute(element, key) {\n return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`));\n }\n};\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/config.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Class definition\n */\n\nclass Config {\n // Getters\n static get Default() {\n return {};\n }\n static get DefaultType() {\n return {};\n }\n static get NAME() {\n throw new Error('You have to implement the static method \"NAME\", for each component!');\n }\n _getConfig(config) {\n config = this._mergeConfigObj(config);\n config = this._configAfterMerge(config);\n this._typeCheckConfig(config);\n return config;\n }\n _configAfterMerge(config) {\n return config;\n }\n _mergeConfigObj(config, element) {\n const jsonConfig = isElement(element) ? Manipulator.getDataAttribute(element, 'config') : {}; // try to parse\n\n return {\n ...this.constructor.Default,\n ...(typeof jsonConfig === 'object' ? jsonConfig : {}),\n ...(isElement(element) ? Manipulator.getDataAttributes(element) : {}),\n ...(typeof config === 'object' ? config : {})\n };\n }\n _typeCheckConfig(config, configTypes = this.constructor.DefaultType) {\n for (const [property, expectedTypes] of Object.entries(configTypes)) {\n const value = config[property];\n const valueType = isElement(value) ? 'element' : toType(value);\n if (!new RegExp(expectedTypes).test(valueType)) {\n throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option \"${property}\" provided type \"${valueType}\" but expected type \"${expectedTypes}\".`);\n }\n }\n }\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap base-component.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst VERSION = '5.3.3';\n\n/**\n * Class definition\n */\n\nclass BaseComponent extends Config {\n constructor(element, config) {\n super();\n element = getElement(element);\n if (!element) {\n return;\n }\n this._element = element;\n this._config = this._getConfig(config);\n Data.set(this._element, this.constructor.DATA_KEY, this);\n }\n\n // Public\n dispose() {\n Data.remove(this._element, this.constructor.DATA_KEY);\n EventHandler.off(this._element, this.constructor.EVENT_KEY);\n for (const propertyName of Object.getOwnPropertyNames(this)) {\n this[propertyName] = null;\n }\n }\n _queueCallback(callback, element, isAnimated = true) {\n executeAfterTransition(callback, element, isAnimated);\n }\n _getConfig(config) {\n config = this._mergeConfigObj(config, this._element);\n config = this._configAfterMerge(config);\n this._typeCheckConfig(config);\n return config;\n }\n\n // Static\n static getInstance(element) {\n return Data.get(getElement(element), this.DATA_KEY);\n }\n static getOrCreateInstance(element, config = {}) {\n return this.getInstance(element) || new this(element, typeof config === 'object' ? config : null);\n }\n static get VERSION() {\n return VERSION;\n }\n static get DATA_KEY() {\n return `bs.${this.NAME}`;\n }\n static get EVENT_KEY() {\n return `.${this.DATA_KEY}`;\n }\n static eventName(name) {\n return `${name}${this.EVENT_KEY}`;\n }\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/selector-engine.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst getSelector = element => {\n let selector = element.getAttribute('data-bs-target');\n if (!selector || selector === '#') {\n let hrefAttribute = element.getAttribute('href');\n\n // The only valid content that could double as a selector are IDs or classes,\n // so everything starting with `#` or `.`. If a \"real\" URL is used as the selector,\n // `document.querySelector` will rightfully complain it is invalid.\n // See https://github.com/twbs/bootstrap/issues/32273\n if (!hrefAttribute || !hrefAttribute.includes('#') && !hrefAttribute.startsWith('.')) {\n return null;\n }\n\n // Just in case some CMS puts out a full URL with the anchor appended\n if (hrefAttribute.includes('#') && !hrefAttribute.startsWith('#')) {\n hrefAttribute = `#${hrefAttribute.split('#')[1]}`;\n }\n selector = hrefAttribute && hrefAttribute !== '#' ? hrefAttribute.trim() : null;\n }\n return selector ? selector.split(',').map(sel => parseSelector(sel)).join(',') : null;\n};\nconst SelectorEngine = {\n find(selector, element = document.documentElement) {\n return [].concat(...Element.prototype.querySelectorAll.call(element, selector));\n },\n findOne(selector, element = document.documentElement) {\n return Element.prototype.querySelector.call(element, selector);\n },\n children(element, selector) {\n return [].concat(...element.children).filter(child => child.matches(selector));\n },\n parents(element, selector) {\n const parents = [];\n let ancestor = element.parentNode.closest(selector);\n while (ancestor) {\n parents.push(ancestor);\n ancestor = ancestor.parentNode.closest(selector);\n }\n return parents;\n },\n prev(element, selector) {\n let previous = element.previousElementSibling;\n while (previous) {\n if (previous.matches(selector)) {\n return [previous];\n }\n previous = previous.previousElementSibling;\n }\n return [];\n },\n // TODO: this is now unused; remove later along with prev()\n next(element, selector) {\n let next = element.nextElementSibling;\n while (next) {\n if (next.matches(selector)) {\n return [next];\n }\n next = next.nextElementSibling;\n }\n return [];\n },\n focusableChildren(element) {\n const focusables = ['a', 'button', 'input', 'textarea', 'select', 'details', '[tabindex]', '[contenteditable=\"true\"]'].map(selector => `${selector}:not([tabindex^=\"-\"])`).join(',');\n return this.find(focusables, element).filter(el => !isDisabled(el) && isVisible(el));\n },\n getSelectorFromElement(element) {\n const selector = getSelector(element);\n if (selector) {\n return SelectorEngine.findOne(selector) ? selector : null;\n }\n return null;\n },\n getElementFromSelector(element) {\n const selector = getSelector(element);\n return selector ? SelectorEngine.findOne(selector) : null;\n },\n getMultipleElementsFromSelector(element) {\n const selector = getSelector(element);\n return selector ? SelectorEngine.find(selector) : [];\n }\n};\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/component-functions.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst enableDismissTrigger = (component, method = 'hide') => {\n const clickEvent = `click.dismiss${component.EVENT_KEY}`;\n const name = component.NAME;\n EventHandler.on(document, clickEvent, `[data-bs-dismiss=\"${name}\"]`, function (event) {\n if (['A', 'AREA'].includes(this.tagName)) {\n event.preventDefault();\n }\n if (isDisabled(this)) {\n return;\n }\n const target = SelectorEngine.getElementFromSelector(this) || this.closest(`.${name}`);\n const instance = component.getOrCreateInstance(target);\n\n // Method argument is left, for Alert and only, as it doesn't implement the 'hide' method\n instance[method]();\n });\n};\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap alert.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$f = 'alert';\nconst DATA_KEY$a = 'bs.alert';\nconst EVENT_KEY$b = `.${DATA_KEY$a}`;\nconst EVENT_CLOSE = `close${EVENT_KEY$b}`;\nconst EVENT_CLOSED = `closed${EVENT_KEY$b}`;\nconst CLASS_NAME_FADE$5 = 'fade';\nconst CLASS_NAME_SHOW$8 = 'show';\n\n/**\n * Class definition\n */\n\nclass Alert extends BaseComponent {\n // Getters\n static get NAME() {\n return NAME$f;\n }\n\n // Public\n close() {\n const closeEvent = EventHandler.trigger(this._element, EVENT_CLOSE);\n if (closeEvent.defaultPrevented) {\n return;\n }\n this._element.classList.remove(CLASS_NAME_SHOW$8);\n const isAnimated = this._element.classList.contains(CLASS_NAME_FADE$5);\n this._queueCallback(() => this._destroyElement(), this._element, isAnimated);\n }\n\n // Private\n _destroyElement() {\n this._element.remove();\n EventHandler.trigger(this._element, EVENT_CLOSED);\n this.dispose();\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Alert.getOrCreateInstance(this);\n if (typeof config !== 'string') {\n return;\n }\n if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config](this);\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\nenableDismissTrigger(Alert, 'close');\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Alert);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap button.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$e = 'button';\nconst DATA_KEY$9 = 'bs.button';\nconst EVENT_KEY$a = `.${DATA_KEY$9}`;\nconst DATA_API_KEY$6 = '.data-api';\nconst CLASS_NAME_ACTIVE$3 = 'active';\nconst SELECTOR_DATA_TOGGLE$5 = '[data-bs-toggle=\"button\"]';\nconst EVENT_CLICK_DATA_API$6 = `click${EVENT_KEY$a}${DATA_API_KEY$6}`;\n\n/**\n * Class definition\n */\n\nclass Button extends BaseComponent {\n // Getters\n static get NAME() {\n return NAME$e;\n }\n\n // Public\n toggle() {\n // Toggle class and sync the `aria-pressed` attribute with the return value of the `.toggle()` method\n this._element.setAttribute('aria-pressed', this._element.classList.toggle(CLASS_NAME_ACTIVE$3));\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Button.getOrCreateInstance(this);\n if (config === 'toggle') {\n data[config]();\n }\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API$6, SELECTOR_DATA_TOGGLE$5, event => {\n event.preventDefault();\n const button = event.target.closest(SELECTOR_DATA_TOGGLE$5);\n const data = Button.getOrCreateInstance(button);\n data.toggle();\n});\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Button);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/swipe.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$d = 'swipe';\nconst EVENT_KEY$9 = '.bs.swipe';\nconst EVENT_TOUCHSTART = `touchstart${EVENT_KEY$9}`;\nconst EVENT_TOUCHMOVE = `touchmove${EVENT_KEY$9}`;\nconst EVENT_TOUCHEND = `touchend${EVENT_KEY$9}`;\nconst EVENT_POINTERDOWN = `pointerdown${EVENT_KEY$9}`;\nconst EVENT_POINTERUP = `pointerup${EVENT_KEY$9}`;\nconst POINTER_TYPE_TOUCH = 'touch';\nconst POINTER_TYPE_PEN = 'pen';\nconst CLASS_NAME_POINTER_EVENT = 'pointer-event';\nconst SWIPE_THRESHOLD = 40;\nconst Default$c = {\n endCallback: null,\n leftCallback: null,\n rightCallback: null\n};\nconst DefaultType$c = {\n endCallback: '(function|null)',\n leftCallback: '(function|null)',\n rightCallback: '(function|null)'\n};\n\n/**\n * Class definition\n */\n\nclass Swipe extends Config {\n constructor(element, config) {\n super();\n this._element = element;\n if (!element || !Swipe.isSupported()) {\n return;\n }\n this._config = this._getConfig(config);\n this._deltaX = 0;\n this._supportPointerEvents = Boolean(window.PointerEvent);\n this._initEvents();\n }\n\n // Getters\n static get Default() {\n return Default$c;\n }\n static get DefaultType() {\n return DefaultType$c;\n }\n static get NAME() {\n return NAME$d;\n }\n\n // Public\n dispose() {\n EventHandler.off(this._element, EVENT_KEY$9);\n }\n\n // Private\n _start(event) {\n if (!this._supportPointerEvents) {\n this._deltaX = event.touches[0].clientX;\n return;\n }\n if (this._eventIsPointerPenTouch(event)) {\n this._deltaX = event.clientX;\n }\n }\n _end(event) {\n if (this._eventIsPointerPenTouch(event)) {\n this._deltaX = event.clientX - this._deltaX;\n }\n this._handleSwipe();\n execute(this._config.endCallback);\n }\n _move(event) {\n this._deltaX = event.touches && event.touches.length > 1 ? 0 : event.touches[0].clientX - this._deltaX;\n }\n _handleSwipe() {\n const absDeltaX = Math.abs(this._deltaX);\n if (absDeltaX <= SWIPE_THRESHOLD) {\n return;\n }\n const direction = absDeltaX / this._deltaX;\n this._deltaX = 0;\n if (!direction) {\n return;\n }\n execute(direction > 0 ? this._config.rightCallback : this._config.leftCallback);\n }\n _initEvents() {\n if (this._supportPointerEvents) {\n EventHandler.on(this._element, EVENT_POINTERDOWN, event => this._start(event));\n EventHandler.on(this._element, EVENT_POINTERUP, event => this._end(event));\n this._element.classList.add(CLASS_NAME_POINTER_EVENT);\n } else {\n EventHandler.on(this._element, EVENT_TOUCHSTART, event => this._start(event));\n EventHandler.on(this._element, EVENT_TOUCHMOVE, event => this._move(event));\n EventHandler.on(this._element, EVENT_TOUCHEND, event => this._end(event));\n }\n }\n _eventIsPointerPenTouch(event) {\n return this._supportPointerEvents && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH);\n }\n\n // Static\n static isSupported() {\n return 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;\n }\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap carousel.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$c = 'carousel';\nconst DATA_KEY$8 = 'bs.carousel';\nconst EVENT_KEY$8 = `.${DATA_KEY$8}`;\nconst DATA_API_KEY$5 = '.data-api';\nconst ARROW_LEFT_KEY$1 = 'ArrowLeft';\nconst ARROW_RIGHT_KEY$1 = 'ArrowRight';\nconst TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch\n\nconst ORDER_NEXT = 'next';\nconst ORDER_PREV = 'prev';\nconst DIRECTION_LEFT = 'left';\nconst DIRECTION_RIGHT = 'right';\nconst EVENT_SLIDE = `slide${EVENT_KEY$8}`;\nconst EVENT_SLID = `slid${EVENT_KEY$8}`;\nconst EVENT_KEYDOWN$1 = `keydown${EVENT_KEY$8}`;\nconst EVENT_MOUSEENTER$1 = `mouseenter${EVENT_KEY$8}`;\nconst EVENT_MOUSELEAVE$1 = `mouseleave${EVENT_KEY$8}`;\nconst EVENT_DRAG_START = `dragstart${EVENT_KEY$8}`;\nconst EVENT_LOAD_DATA_API$3 = `load${EVENT_KEY$8}${DATA_API_KEY$5}`;\nconst EVENT_CLICK_DATA_API$5 = `click${EVENT_KEY$8}${DATA_API_KEY$5}`;\nconst CLASS_NAME_CAROUSEL = 'carousel';\nconst CLASS_NAME_ACTIVE$2 = 'active';\nconst CLASS_NAME_SLIDE = 'slide';\nconst CLASS_NAME_END = 'carousel-item-end';\nconst CLASS_NAME_START = 'carousel-item-start';\nconst CLASS_NAME_NEXT = 'carousel-item-next';\nconst CLASS_NAME_PREV = 'carousel-item-prev';\nconst SELECTOR_ACTIVE = '.active';\nconst SELECTOR_ITEM = '.carousel-item';\nconst SELECTOR_ACTIVE_ITEM = SELECTOR_ACTIVE + SELECTOR_ITEM;\nconst SELECTOR_ITEM_IMG = '.carousel-item img';\nconst SELECTOR_INDICATORS = '.carousel-indicators';\nconst SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]';\nconst SELECTOR_DATA_RIDE = '[data-bs-ride=\"carousel\"]';\nconst KEY_TO_DIRECTION = {\n [ARROW_LEFT_KEY$1]: DIRECTION_RIGHT,\n [ARROW_RIGHT_KEY$1]: DIRECTION_LEFT\n};\nconst Default$b = {\n interval: 5000,\n keyboard: true,\n pause: 'hover',\n ride: false,\n touch: true,\n wrap: true\n};\nconst DefaultType$b = {\n interval: '(number|boolean)',\n // TODO:v6 remove boolean support\n keyboard: 'boolean',\n pause: '(string|boolean)',\n ride: '(boolean|string)',\n touch: 'boolean',\n wrap: 'boolean'\n};\n\n/**\n * Class definition\n */\n\nclass Carousel extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n this._interval = null;\n this._activeElement = null;\n this._isSliding = false;\n this.touchTimeout = null;\n this._swipeHelper = null;\n this._indicatorsElement = SelectorEngine.findOne(SELECTOR_INDICATORS, this._element);\n this._addEventListeners();\n if (this._config.ride === CLASS_NAME_CAROUSEL) {\n this.cycle();\n }\n }\n\n // Getters\n static get Default() {\n return Default$b;\n }\n static get DefaultType() {\n return DefaultType$b;\n }\n static get NAME() {\n return NAME$c;\n }\n\n // Public\n next() {\n this._slide(ORDER_NEXT);\n }\n nextWhenVisible() {\n // FIXME TODO use `document.visibilityState`\n // Don't call next when the page isn't visible\n // or the carousel or its parent isn't visible\n if (!document.hidden && isVisible(this._element)) {\n this.next();\n }\n }\n prev() {\n this._slide(ORDER_PREV);\n }\n pause() {\n if (this._isSliding) {\n triggerTransitionEnd(this._element);\n }\n this._clearInterval();\n }\n cycle() {\n this._clearInterval();\n this._updateInterval();\n this._interval = setInterval(() => this.nextWhenVisible(), this._config.interval);\n }\n _maybeEnableCycle() {\n if (!this._config.ride) {\n return;\n }\n if (this._isSliding) {\n EventHandler.one(this._element, EVENT_SLID, () => this.cycle());\n return;\n }\n this.cycle();\n }\n to(index) {\n const items = this._getItems();\n if (index > items.length - 1 || index < 0) {\n return;\n }\n if (this._isSliding) {\n EventHandler.one(this._element, EVENT_SLID, () => this.to(index));\n return;\n }\n const activeIndex = this._getItemIndex(this._getActive());\n if (activeIndex === index) {\n return;\n }\n const order = index > activeIndex ? ORDER_NEXT : ORDER_PREV;\n this._slide(order, items[index]);\n }\n dispose() {\n if (this._swipeHelper) {\n this._swipeHelper.dispose();\n }\n super.dispose();\n }\n\n // Private\n _configAfterMerge(config) {\n config.defaultInterval = config.interval;\n return config;\n }\n _addEventListeners() {\n if (this._config.keyboard) {\n EventHandler.on(this._element, EVENT_KEYDOWN$1, event => this._keydown(event));\n }\n if (this._config.pause === 'hover') {\n EventHandler.on(this._element, EVENT_MOUSEENTER$1, () => this.pause());\n EventHandler.on(this._element, EVENT_MOUSELEAVE$1, () => this._maybeEnableCycle());\n }\n if (this._config.touch && Swipe.isSupported()) {\n this._addTouchEventListeners();\n }\n }\n _addTouchEventListeners() {\n for (const img of SelectorEngine.find(SELECTOR_ITEM_IMG, this._element)) {\n EventHandler.on(img, EVENT_DRAG_START, event => event.preventDefault());\n }\n const endCallBack = () => {\n if (this._config.pause !== 'hover') {\n return;\n }\n\n // If it's a touch-enabled device, mouseenter/leave are fired as\n // part of the mouse compatibility events on first tap - the carousel\n // would stop cycling until user tapped out of it;\n // here, we listen for touchend, explicitly pause the carousel\n // (as if it's the second time we tap on it, mouseenter compat event\n // is NOT fired) and after a timeout (to allow for mouse compatibility\n // events to fire) we explicitly restart cycling\n\n this.pause();\n if (this.touchTimeout) {\n clearTimeout(this.touchTimeout);\n }\n this.touchTimeout = setTimeout(() => this._maybeEnableCycle(), TOUCHEVENT_COMPAT_WAIT + this._config.interval);\n };\n const swipeConfig = {\n leftCallback: () => this._slide(this._directionToOrder(DIRECTION_LEFT)),\n rightCallback: () => this._slide(this._directionToOrder(DIRECTION_RIGHT)),\n endCallback: endCallBack\n };\n this._swipeHelper = new Swipe(this._element, swipeConfig);\n }\n _keydown(event) {\n if (/input|textarea/i.test(event.target.tagName)) {\n return;\n }\n const direction = KEY_TO_DIRECTION[event.key];\n if (direction) {\n event.preventDefault();\n this._slide(this._directionToOrder(direction));\n }\n }\n _getItemIndex(element) {\n return this._getItems().indexOf(element);\n }\n _setActiveIndicatorElement(index) {\n if (!this._indicatorsElement) {\n return;\n }\n const activeIndicator = SelectorEngine.findOne(SELECTOR_ACTIVE, this._indicatorsElement);\n activeIndicator.classList.remove(CLASS_NAME_ACTIVE$2);\n activeIndicator.removeAttribute('aria-current');\n const newActiveIndicator = SelectorEngine.findOne(`[data-bs-slide-to=\"${index}\"]`, this._indicatorsElement);\n if (newActiveIndicator) {\n newActiveIndicator.classList.add(CLASS_NAME_ACTIVE$2);\n newActiveIndicator.setAttribute('aria-current', 'true');\n }\n }\n _updateInterval() {\n const element = this._activeElement || this._getActive();\n if (!element) {\n return;\n }\n const elementInterval = Number.parseInt(element.getAttribute('data-bs-interval'), 10);\n this._config.interval = elementInterval || this._config.defaultInterval;\n }\n _slide(order, element = null) {\n if (this._isSliding) {\n return;\n }\n const activeElement = this._getActive();\n const isNext = order === ORDER_NEXT;\n const nextElement = element || getNextActiveElement(this._getItems(), activeElement, isNext, this._config.wrap);\n if (nextElement === activeElement) {\n return;\n }\n const nextElementIndex = this._getItemIndex(nextElement);\n const triggerEvent = eventName => {\n return EventHandler.trigger(this._element, eventName, {\n relatedTarget: nextElement,\n direction: this._orderToDirection(order),\n from: this._getItemIndex(activeElement),\n to: nextElementIndex\n });\n };\n const slideEvent = triggerEvent(EVENT_SLIDE);\n if (slideEvent.defaultPrevented) {\n return;\n }\n if (!activeElement || !nextElement) {\n // Some weirdness is happening, so we bail\n // TODO: change tests that use empty divs to avoid this check\n return;\n }\n const isCycling = Boolean(this._interval);\n this.pause();\n this._isSliding = true;\n this._setActiveIndicatorElement(nextElementIndex);\n this._activeElement = nextElement;\n const directionalClassName = isNext ? CLASS_NAME_START : CLASS_NAME_END;\n const orderClassName = isNext ? CLASS_NAME_NEXT : CLASS_NAME_PREV;\n nextElement.classList.add(orderClassName);\n reflow(nextElement);\n activeElement.classList.add(directionalClassName);\n nextElement.classList.add(directionalClassName);\n const completeCallBack = () => {\n nextElement.classList.remove(directionalClassName, orderClassName);\n nextElement.classList.add(CLASS_NAME_ACTIVE$2);\n activeElement.classList.remove(CLASS_NAME_ACTIVE$2, orderClassName, directionalClassName);\n this._isSliding = false;\n triggerEvent(EVENT_SLID);\n };\n this._queueCallback(completeCallBack, activeElement, this._isAnimated());\n if (isCycling) {\n this.cycle();\n }\n }\n _isAnimated() {\n return this._element.classList.contains(CLASS_NAME_SLIDE);\n }\n _getActive() {\n return SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element);\n }\n _getItems() {\n return SelectorEngine.find(SELECTOR_ITEM, this._element);\n }\n _clearInterval() {\n if (this._interval) {\n clearInterval(this._interval);\n this._interval = null;\n }\n }\n _directionToOrder(direction) {\n if (isRTL()) {\n return direction === DIRECTION_LEFT ? ORDER_PREV : ORDER_NEXT;\n }\n return direction === DIRECTION_LEFT ? ORDER_NEXT : ORDER_PREV;\n }\n _orderToDirection(order) {\n if (isRTL()) {\n return order === ORDER_PREV ? DIRECTION_LEFT : DIRECTION_RIGHT;\n }\n return order === ORDER_PREV ? DIRECTION_RIGHT : DIRECTION_LEFT;\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Carousel.getOrCreateInstance(this, config);\n if (typeof config === 'number') {\n data.to(config);\n return;\n }\n if (typeof config === 'string') {\n if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config]();\n }\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API$5, SELECTOR_DATA_SLIDE, function (event) {\n const target = SelectorEngine.getElementFromSelector(this);\n if (!target || !target.classList.contains(CLASS_NAME_CAROUSEL)) {\n return;\n }\n event.preventDefault();\n const carousel = Carousel.getOrCreateInstance(target);\n const slideIndex = this.getAttribute('data-bs-slide-to');\n if (slideIndex) {\n carousel.to(slideIndex);\n carousel._maybeEnableCycle();\n return;\n }\n if (Manipulator.getDataAttribute(this, 'slide') === 'next') {\n carousel.next();\n carousel._maybeEnableCycle();\n return;\n }\n carousel.prev();\n carousel._maybeEnableCycle();\n});\nEventHandler.on(window, EVENT_LOAD_DATA_API$3, () => {\n const carousels = SelectorEngine.find(SELECTOR_DATA_RIDE);\n for (const carousel of carousels) {\n Carousel.getOrCreateInstance(carousel);\n }\n});\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Carousel);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap collapse.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$b = 'collapse';\nconst DATA_KEY$7 = 'bs.collapse';\nconst EVENT_KEY$7 = `.${DATA_KEY$7}`;\nconst DATA_API_KEY$4 = '.data-api';\nconst EVENT_SHOW$6 = `show${EVENT_KEY$7}`;\nconst EVENT_SHOWN$6 = `shown${EVENT_KEY$7}`;\nconst EVENT_HIDE$6 = `hide${EVENT_KEY$7}`;\nconst EVENT_HIDDEN$6 = `hidden${EVENT_KEY$7}`;\nconst EVENT_CLICK_DATA_API$4 = `click${EVENT_KEY$7}${DATA_API_KEY$4}`;\nconst CLASS_NAME_SHOW$7 = 'show';\nconst CLASS_NAME_COLLAPSE = 'collapse';\nconst CLASS_NAME_COLLAPSING = 'collapsing';\nconst CLASS_NAME_COLLAPSED = 'collapsed';\nconst CLASS_NAME_DEEPER_CHILDREN = `:scope .${CLASS_NAME_COLLAPSE} .${CLASS_NAME_COLLAPSE}`;\nconst CLASS_NAME_HORIZONTAL = 'collapse-horizontal';\nconst WIDTH = 'width';\nconst HEIGHT = 'height';\nconst SELECTOR_ACTIVES = '.collapse.show, .collapse.collapsing';\nconst SELECTOR_DATA_TOGGLE$4 = '[data-bs-toggle=\"collapse\"]';\nconst Default$a = {\n parent: null,\n toggle: true\n};\nconst DefaultType$a = {\n parent: '(null|element)',\n toggle: 'boolean'\n};\n\n/**\n * Class definition\n */\n\nclass Collapse extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n this._isTransitioning = false;\n this._triggerArray = [];\n const toggleList = SelectorEngine.find(SELECTOR_DATA_TOGGLE$4);\n for (const elem of toggleList) {\n const selector = SelectorEngine.getSelectorFromElement(elem);\n const filterElement = SelectorEngine.find(selector).filter(foundElement => foundElement === this._element);\n if (selector !== null && filterElement.length) {\n this._triggerArray.push(elem);\n }\n }\n this._initializeChildren();\n if (!this._config.parent) {\n this._addAriaAndCollapsedClass(this._triggerArray, this._isShown());\n }\n if (this._config.toggle) {\n this.toggle();\n }\n }\n\n // Getters\n static get Default() {\n return Default$a;\n }\n static get DefaultType() {\n return DefaultType$a;\n }\n static get NAME() {\n return NAME$b;\n }\n\n // Public\n toggle() {\n if (this._isShown()) {\n this.hide();\n } else {\n this.show();\n }\n }\n show() {\n if (this._isTransitioning || this._isShown()) {\n return;\n }\n let activeChildren = [];\n\n // find active children\n if (this._config.parent) {\n activeChildren = this._getFirstLevelChildren(SELECTOR_ACTIVES).filter(element => element !== this._element).map(element => Collapse.getOrCreateInstance(element, {\n toggle: false\n }));\n }\n if (activeChildren.length && activeChildren[0]._isTransitioning) {\n return;\n }\n const startEvent = EventHandler.trigger(this._element, EVENT_SHOW$6);\n if (startEvent.defaultPrevented) {\n return;\n }\n for (const activeInstance of activeChildren) {\n activeInstance.hide();\n }\n const dimension = this._getDimension();\n this._element.classList.remove(CLASS_NAME_COLLAPSE);\n this._element.classList.add(CLASS_NAME_COLLAPSING);\n this._element.style[dimension] = 0;\n this._addAriaAndCollapsedClass(this._triggerArray, true);\n this._isTransitioning = true;\n const complete = () => {\n this._isTransitioning = false;\n this._element.classList.remove(CLASS_NAME_COLLAPSING);\n this._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW$7);\n this._element.style[dimension] = '';\n EventHandler.trigger(this._element, EVENT_SHOWN$6);\n };\n const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);\n const scrollSize = `scroll${capitalizedDimension}`;\n this._queueCallback(complete, this._element, true);\n this._element.style[dimension] = `${this._element[scrollSize]}px`;\n }\n hide() {\n if (this._isTransitioning || !this._isShown()) {\n return;\n }\n const startEvent = EventHandler.trigger(this._element, EVENT_HIDE$6);\n if (startEvent.defaultPrevented) {\n return;\n }\n const dimension = this._getDimension();\n this._element.style[dimension] = `${this._element.getBoundingClientRect()[dimension]}px`;\n reflow(this._element);\n this._element.classList.add(CLASS_NAME_COLLAPSING);\n this._element.classList.remove(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW$7);\n for (const trigger of this._triggerArray) {\n const element = SelectorEngine.getElementFromSelector(trigger);\n if (element && !this._isShown(element)) {\n this._addAriaAndCollapsedClass([trigger], false);\n }\n }\n this._isTransitioning = true;\n const complete = () => {\n this._isTransitioning = false;\n this._element.classList.remove(CLASS_NAME_COLLAPSING);\n this._element.classList.add(CLASS_NAME_COLLAPSE);\n EventHandler.trigger(this._element, EVENT_HIDDEN$6);\n };\n this._element.style[dimension] = '';\n this._queueCallback(complete, this._element, true);\n }\n _isShown(element = this._element) {\n return element.classList.contains(CLASS_NAME_SHOW$7);\n }\n\n // Private\n _configAfterMerge(config) {\n config.toggle = Boolean(config.toggle); // Coerce string values\n config.parent = getElement(config.parent);\n return config;\n }\n _getDimension() {\n return this._element.classList.contains(CLASS_NAME_HORIZONTAL) ? WIDTH : HEIGHT;\n }\n _initializeChildren() {\n if (!this._config.parent) {\n return;\n }\n const children = this._getFirstLevelChildren(SELECTOR_DATA_TOGGLE$4);\n for (const element of children) {\n const selected = SelectorEngine.getElementFromSelector(element);\n if (selected) {\n this._addAriaAndCollapsedClass([element], this._isShown(selected));\n }\n }\n }\n _getFirstLevelChildren(selector) {\n const children = SelectorEngine.find(CLASS_NAME_DEEPER_CHILDREN, this._config.parent);\n // remove children if greater depth\n return SelectorEngine.find(selector, this._config.parent).filter(element => !children.includes(element));\n }\n _addAriaAndCollapsedClass(triggerArray, isOpen) {\n if (!triggerArray.length) {\n return;\n }\n for (const element of triggerArray) {\n element.classList.toggle(CLASS_NAME_COLLAPSED, !isOpen);\n element.setAttribute('aria-expanded', isOpen);\n }\n }\n\n // Static\n static jQueryInterface(config) {\n const _config = {};\n if (typeof config === 'string' && /show|hide/.test(config)) {\n _config.toggle = false;\n }\n return this.each(function () {\n const data = Collapse.getOrCreateInstance(this, _config);\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config]();\n }\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$4, function (event) {\n // preventDefault only for elements (which change the URL) not inside the collapsible element\n if (event.target.tagName === 'A' || event.delegateTarget && event.delegateTarget.tagName === 'A') {\n event.preventDefault();\n }\n for (const element of SelectorEngine.getMultipleElementsFromSelector(this)) {\n Collapse.getOrCreateInstance(element, {\n toggle: false\n }).toggle();\n }\n});\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Collapse);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap dropdown.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$a = 'dropdown';\nconst DATA_KEY$6 = 'bs.dropdown';\nconst EVENT_KEY$6 = `.${DATA_KEY$6}`;\nconst DATA_API_KEY$3 = '.data-api';\nconst ESCAPE_KEY$2 = 'Escape';\nconst TAB_KEY$1 = 'Tab';\nconst ARROW_UP_KEY$1 = 'ArrowUp';\nconst ARROW_DOWN_KEY$1 = 'ArrowDown';\nconst RIGHT_MOUSE_BUTTON = 2; // MouseEvent.button value for the secondary button, usually the right button\n\nconst EVENT_HIDE$5 = `hide${EVENT_KEY$6}`;\nconst EVENT_HIDDEN$5 = `hidden${EVENT_KEY$6}`;\nconst EVENT_SHOW$5 = `show${EVENT_KEY$6}`;\nconst EVENT_SHOWN$5 = `shown${EVENT_KEY$6}`;\nconst EVENT_CLICK_DATA_API$3 = `click${EVENT_KEY$6}${DATA_API_KEY$3}`;\nconst EVENT_KEYDOWN_DATA_API = `keydown${EVENT_KEY$6}${DATA_API_KEY$3}`;\nconst EVENT_KEYUP_DATA_API = `keyup${EVENT_KEY$6}${DATA_API_KEY$3}`;\nconst CLASS_NAME_SHOW$6 = 'show';\nconst CLASS_NAME_DROPUP = 'dropup';\nconst CLASS_NAME_DROPEND = 'dropend';\nconst CLASS_NAME_DROPSTART = 'dropstart';\nconst CLASS_NAME_DROPUP_CENTER = 'dropup-center';\nconst CLASS_NAME_DROPDOWN_CENTER = 'dropdown-center';\nconst SELECTOR_DATA_TOGGLE$3 = '[data-bs-toggle=\"dropdown\"]:not(.disabled):not(:disabled)';\nconst SELECTOR_DATA_TOGGLE_SHOWN = `${SELECTOR_DATA_TOGGLE$3}.${CLASS_NAME_SHOW$6}`;\nconst SELECTOR_MENU = '.dropdown-menu';\nconst SELECTOR_NAVBAR = '.navbar';\nconst SELECTOR_NAVBAR_NAV = '.navbar-nav';\nconst SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';\nconst PLACEMENT_TOP = isRTL() ? 'top-end' : 'top-start';\nconst PLACEMENT_TOPEND = isRTL() ? 'top-start' : 'top-end';\nconst PLACEMENT_BOTTOM = isRTL() ? 'bottom-end' : 'bottom-start';\nconst PLACEMENT_BOTTOMEND = isRTL() ? 'bottom-start' : 'bottom-end';\nconst PLACEMENT_RIGHT = isRTL() ? 'left-start' : 'right-start';\nconst PLACEMENT_LEFT = isRTL() ? 'right-start' : 'left-start';\nconst PLACEMENT_TOPCENTER = 'top';\nconst PLACEMENT_BOTTOMCENTER = 'bottom';\nconst Default$9 = {\n autoClose: true,\n boundary: 'clippingParents',\n display: 'dynamic',\n offset: [0, 2],\n popperConfig: null,\n reference: 'toggle'\n};\nconst DefaultType$9 = {\n autoClose: '(boolean|string)',\n boundary: '(string|element)',\n display: 'string',\n offset: '(array|string|function)',\n popperConfig: '(null|object|function)',\n reference: '(string|element|object)'\n};\n\n/**\n * Class definition\n */\n\nclass Dropdown extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n this._popper = null;\n this._parent = this._element.parentNode; // dropdown wrapper\n // TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/\n this._menu = SelectorEngine.next(this._element, SELECTOR_MENU)[0] || SelectorEngine.prev(this._element, SELECTOR_MENU)[0] || SelectorEngine.findOne(SELECTOR_MENU, this._parent);\n this._inNavbar = this._detectNavbar();\n }\n\n // Getters\n static get Default() {\n return Default$9;\n }\n static get DefaultType() {\n return DefaultType$9;\n }\n static get NAME() {\n return NAME$a;\n }\n\n // Public\n toggle() {\n return this._isShown() ? this.hide() : this.show();\n }\n show() {\n if (isDisabled(this._element) || this._isShown()) {\n return;\n }\n const relatedTarget = {\n relatedTarget: this._element\n };\n const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$5, relatedTarget);\n if (showEvent.defaultPrevented) {\n return;\n }\n this._createPopper();\n\n // If this is a touch-enabled device we add extra\n // empty mouseover listeners to the body's immediate children;\n // only needed because of broken event delegation on iOS\n // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n if ('ontouchstart' in document.documentElement && !this._parent.closest(SELECTOR_NAVBAR_NAV)) {\n for (const element of [].concat(...document.body.children)) {\n EventHandler.on(element, 'mouseover', noop);\n }\n }\n this._element.focus();\n this._element.setAttribute('aria-expanded', true);\n this._menu.classList.add(CLASS_NAME_SHOW$6);\n this._element.classList.add(CLASS_NAME_SHOW$6);\n EventHandler.trigger(this._element, EVENT_SHOWN$5, relatedTarget);\n }\n hide() {\n if (isDisabled(this._element) || !this._isShown()) {\n return;\n }\n const relatedTarget = {\n relatedTarget: this._element\n };\n this._completeHide(relatedTarget);\n }\n dispose() {\n if (this._popper) {\n this._popper.destroy();\n }\n super.dispose();\n }\n update() {\n this._inNavbar = this._detectNavbar();\n if (this._popper) {\n this._popper.update();\n }\n }\n\n // Private\n _completeHide(relatedTarget) {\n const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$5, relatedTarget);\n if (hideEvent.defaultPrevented) {\n return;\n }\n\n // If this is a touch-enabled device we remove the extra\n // empty mouseover listeners we added for iOS support\n if ('ontouchstart' in document.documentElement) {\n for (const element of [].concat(...document.body.children)) {\n EventHandler.off(element, 'mouseover', noop);\n }\n }\n if (this._popper) {\n this._popper.destroy();\n }\n this._menu.classList.remove(CLASS_NAME_SHOW$6);\n this._element.classList.remove(CLASS_NAME_SHOW$6);\n this._element.setAttribute('aria-expanded', 'false');\n Manipulator.removeDataAttribute(this._menu, 'popper');\n EventHandler.trigger(this._element, EVENT_HIDDEN$5, relatedTarget);\n }\n _getConfig(config) {\n config = super._getConfig(config);\n if (typeof config.reference === 'object' && !isElement(config.reference) && typeof config.reference.getBoundingClientRect !== 'function') {\n // Popper virtual elements require a getBoundingClientRect method\n throw new TypeError(`${NAME$a.toUpperCase()}: Option \"reference\" provided type \"object\" without a required \"getBoundingClientRect\" method.`);\n }\n return config;\n }\n _createPopper() {\n if (typeof Popper === 'undefined') {\n throw new TypeError('Bootstrap\\'s dropdowns require Popper (https://popper.js.org)');\n }\n let referenceElement = this._element;\n if (this._config.reference === 'parent') {\n referenceElement = this._parent;\n } else if (isElement(this._config.reference)) {\n referenceElement = getElement(this._config.reference);\n } else if (typeof this._config.reference === 'object') {\n referenceElement = this._config.reference;\n }\n const popperConfig = this._getPopperConfig();\n this._popper = Popper.createPopper(referenceElement, this._menu, popperConfig);\n }\n _isShown() {\n return this._menu.classList.contains(CLASS_NAME_SHOW$6);\n }\n _getPlacement() {\n const parentDropdown = this._parent;\n if (parentDropdown.classList.contains(CLASS_NAME_DROPEND)) {\n return PLACEMENT_RIGHT;\n }\n if (parentDropdown.classList.contains(CLASS_NAME_DROPSTART)) {\n return PLACEMENT_LEFT;\n }\n if (parentDropdown.classList.contains(CLASS_NAME_DROPUP_CENTER)) {\n return PLACEMENT_TOPCENTER;\n }\n if (parentDropdown.classList.contains(CLASS_NAME_DROPDOWN_CENTER)) {\n return PLACEMENT_BOTTOMCENTER;\n }\n\n // We need to trim the value because custom properties can also include spaces\n const isEnd = getComputedStyle(this._menu).getPropertyValue('--bs-position').trim() === 'end';\n if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {\n return isEnd ? PLACEMENT_TOPEND : PLACEMENT_TOP;\n }\n return isEnd ? PLACEMENT_BOTTOMEND : PLACEMENT_BOTTOM;\n }\n _detectNavbar() {\n return this._element.closest(SELECTOR_NAVBAR) !== null;\n }\n _getOffset() {\n const {\n offset\n } = this._config;\n if (typeof offset === 'string') {\n return offset.split(',').map(value => Number.parseInt(value, 10));\n }\n if (typeof offset === 'function') {\n return popperData => offset(popperData, this._element);\n }\n return offset;\n }\n _getPopperConfig() {\n const defaultBsPopperConfig = {\n placement: this._getPlacement(),\n modifiers: [{\n name: 'preventOverflow',\n options: {\n boundary: this._config.boundary\n }\n }, {\n name: 'offset',\n options: {\n offset: this._getOffset()\n }\n }]\n };\n\n // Disable Popper if we have a static display or Dropdown is in Navbar\n if (this._inNavbar || this._config.display === 'static') {\n Manipulator.setDataAttribute(this._menu, 'popper', 'static'); // TODO: v6 remove\n defaultBsPopperConfig.modifiers = [{\n name: 'applyStyles',\n enabled: false\n }];\n }\n return {\n ...defaultBsPopperConfig,\n ...execute(this._config.popperConfig, [defaultBsPopperConfig])\n };\n }\n _selectMenuItem({\n key,\n target\n }) {\n const items = SelectorEngine.find(SELECTOR_VISIBLE_ITEMS, this._menu).filter(element => isVisible(element));\n if (!items.length) {\n return;\n }\n\n // if target isn't included in items (e.g. when expanding the dropdown)\n // allow cycling to get the last item in case key equals ARROW_UP_KEY\n getNextActiveElement(items, target, key === ARROW_DOWN_KEY$1, !items.includes(target)).focus();\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Dropdown.getOrCreateInstance(this, config);\n if (typeof config !== 'string') {\n return;\n }\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config]();\n });\n }\n static clearMenus(event) {\n if (event.button === RIGHT_MOUSE_BUTTON || event.type === 'keyup' && event.key !== TAB_KEY$1) {\n return;\n }\n const openToggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE_SHOWN);\n for (const toggle of openToggles) {\n const context = Dropdown.getInstance(toggle);\n if (!context || context._config.autoClose === false) {\n continue;\n }\n const composedPath = event.composedPath();\n const isMenuTarget = composedPath.includes(context._menu);\n if (composedPath.includes(context._element) || context._config.autoClose === 'inside' && !isMenuTarget || context._config.autoClose === 'outside' && isMenuTarget) {\n continue;\n }\n\n // Tab navigation through the dropdown menu or events from contained inputs shouldn't close the menu\n if (context._menu.contains(event.target) && (event.type === 'keyup' && event.key === TAB_KEY$1 || /input|select|option|textarea|form/i.test(event.target.tagName))) {\n continue;\n }\n const relatedTarget = {\n relatedTarget: context._element\n };\n if (event.type === 'click') {\n relatedTarget.clickEvent = event;\n }\n context._completeHide(relatedTarget);\n }\n }\n static dataApiKeydownHandler(event) {\n // If not an UP | DOWN | ESCAPE key => not a dropdown command\n // If input/textarea && if key is other than ESCAPE => not a dropdown command\n\n const isInput = /input|textarea/i.test(event.target.tagName);\n const isEscapeEvent = event.key === ESCAPE_KEY$2;\n const isUpOrDownEvent = [ARROW_UP_KEY$1, ARROW_DOWN_KEY$1].includes(event.key);\n if (!isUpOrDownEvent && !isEscapeEvent) {\n return;\n }\n if (isInput && !isEscapeEvent) {\n return;\n }\n event.preventDefault();\n\n // TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/\n const getToggleButton = this.matches(SELECTOR_DATA_TOGGLE$3) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$3)[0] || SelectorEngine.next(this, SELECTOR_DATA_TOGGLE$3)[0] || SelectorEngine.findOne(SELECTOR_DATA_TOGGLE$3, event.delegateTarget.parentNode);\n const instance = Dropdown.getOrCreateInstance(getToggleButton);\n if (isUpOrDownEvent) {\n event.stopPropagation();\n instance.show();\n instance._selectMenuItem(event);\n return;\n }\n if (instance._isShown()) {\n // else is escape and we check if it is shown\n event.stopPropagation();\n instance.hide();\n getToggleButton.focus();\n }\n }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$3, Dropdown.dataApiKeydownHandler);\nEventHandler.on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown.dataApiKeydownHandler);\nEventHandler.on(document, EVENT_CLICK_DATA_API$3, Dropdown.clearMenus);\nEventHandler.on(document, EVENT_KEYUP_DATA_API, Dropdown.clearMenus);\nEventHandler.on(document, EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$3, function (event) {\n event.preventDefault();\n Dropdown.getOrCreateInstance(this).toggle();\n});\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Dropdown);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/backdrop.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$9 = 'backdrop';\nconst CLASS_NAME_FADE$4 = 'fade';\nconst CLASS_NAME_SHOW$5 = 'show';\nconst EVENT_MOUSEDOWN = `mousedown.bs.${NAME$9}`;\nconst Default$8 = {\n className: 'modal-backdrop',\n clickCallback: null,\n isAnimated: false,\n isVisible: true,\n // if false, we use the backdrop helper without adding any element to the dom\n rootElement: 'body' // give the choice to place backdrop under different elements\n};\nconst DefaultType$8 = {\n className: 'string',\n clickCallback: '(function|null)',\n isAnimated: 'boolean',\n isVisible: 'boolean',\n rootElement: '(element|string)'\n};\n\n/**\n * Class definition\n */\n\nclass Backdrop extends Config {\n constructor(config) {\n super();\n this._config = this._getConfig(config);\n this._isAppended = false;\n this._element = null;\n }\n\n // Getters\n static get Default() {\n return Default$8;\n }\n static get DefaultType() {\n return DefaultType$8;\n }\n static get NAME() {\n return NAME$9;\n }\n\n // Public\n show(callback) {\n if (!this._config.isVisible) {\n execute(callback);\n return;\n }\n this._append();\n const element = this._getElement();\n if (this._config.isAnimated) {\n reflow(element);\n }\n element.classList.add(CLASS_NAME_SHOW$5);\n this._emulateAnimation(() => {\n execute(callback);\n });\n }\n hide(callback) {\n if (!this._config.isVisible) {\n execute(callback);\n return;\n }\n this._getElement().classList.remove(CLASS_NAME_SHOW$5);\n this._emulateAnimation(() => {\n this.dispose();\n execute(callback);\n });\n }\n dispose() {\n if (!this._isAppended) {\n return;\n }\n EventHandler.off(this._element, EVENT_MOUSEDOWN);\n this._element.remove();\n this._isAppended = false;\n }\n\n // Private\n _getElement() {\n if (!this._element) {\n const backdrop = document.createElement('div');\n backdrop.className = this._config.className;\n if (this._config.isAnimated) {\n backdrop.classList.add(CLASS_NAME_FADE$4);\n }\n this._element = backdrop;\n }\n return this._element;\n }\n _configAfterMerge(config) {\n // use getElement() with the default \"body\" to get a fresh Element on each instantiation\n config.rootElement = getElement(config.rootElement);\n return config;\n }\n _append() {\n if (this._isAppended) {\n return;\n }\n const element = this._getElement();\n this._config.rootElement.append(element);\n EventHandler.on(element, EVENT_MOUSEDOWN, () => {\n execute(this._config.clickCallback);\n });\n this._isAppended = true;\n }\n _emulateAnimation(callback) {\n executeAfterTransition(callback, this._getElement(), this._config.isAnimated);\n }\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/focustrap.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$8 = 'focustrap';\nconst DATA_KEY$5 = 'bs.focustrap';\nconst EVENT_KEY$5 = `.${DATA_KEY$5}`;\nconst EVENT_FOCUSIN$2 = `focusin${EVENT_KEY$5}`;\nconst EVENT_KEYDOWN_TAB = `keydown.tab${EVENT_KEY$5}`;\nconst TAB_KEY = 'Tab';\nconst TAB_NAV_FORWARD = 'forward';\nconst TAB_NAV_BACKWARD = 'backward';\nconst Default$7 = {\n autofocus: true,\n trapElement: null // The element to trap focus inside of\n};\nconst DefaultType$7 = {\n autofocus: 'boolean',\n trapElement: 'element'\n};\n\n/**\n * Class definition\n */\n\nclass FocusTrap extends Config {\n constructor(config) {\n super();\n this._config = this._getConfig(config);\n this._isActive = false;\n this._lastTabNavDirection = null;\n }\n\n // Getters\n static get Default() {\n return Default$7;\n }\n static get DefaultType() {\n return DefaultType$7;\n }\n static get NAME() {\n return NAME$8;\n }\n\n // Public\n activate() {\n if (this._isActive) {\n return;\n }\n if (this._config.autofocus) {\n this._config.trapElement.focus();\n }\n EventHandler.off(document, EVENT_KEY$5); // guard against infinite focus loop\n EventHandler.on(document, EVENT_FOCUSIN$2, event => this._handleFocusin(event));\n EventHandler.on(document, EVENT_KEYDOWN_TAB, event => this._handleKeydown(event));\n this._isActive = true;\n }\n deactivate() {\n if (!this._isActive) {\n return;\n }\n this._isActive = false;\n EventHandler.off(document, EVENT_KEY$5);\n }\n\n // Private\n _handleFocusin(event) {\n const {\n trapElement\n } = this._config;\n if (event.target === document || event.target === trapElement || trapElement.contains(event.target)) {\n return;\n }\n const elements = SelectorEngine.focusableChildren(trapElement);\n if (elements.length === 0) {\n trapElement.focus();\n } else if (this._lastTabNavDirection === TAB_NAV_BACKWARD) {\n elements[elements.length - 1].focus();\n } else {\n elements[0].focus();\n }\n }\n _handleKeydown(event) {\n if (event.key !== TAB_KEY) {\n return;\n }\n this._lastTabNavDirection = event.shiftKey ? TAB_NAV_BACKWARD : TAB_NAV_FORWARD;\n }\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/scrollBar.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';\nconst SELECTOR_STICKY_CONTENT = '.sticky-top';\nconst PROPERTY_PADDING = 'padding-right';\nconst PROPERTY_MARGIN = 'margin-right';\n\n/**\n * Class definition\n */\n\nclass ScrollBarHelper {\n constructor() {\n this._element = document.body;\n }\n\n // Public\n getWidth() {\n // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes\n const documentWidth = document.documentElement.clientWidth;\n return Math.abs(window.innerWidth - documentWidth);\n }\n hide() {\n const width = this.getWidth();\n this._disableOverFlow();\n // give padding to element to balance the hidden scrollbar width\n this._setElementAttributes(this._element, PROPERTY_PADDING, calculatedValue => calculatedValue + width);\n // trick: We adjust positive paddingRight and negative marginRight to sticky-top elements to keep showing fullwidth\n this._setElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING, calculatedValue => calculatedValue + width);\n this._setElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN, calculatedValue => calculatedValue - width);\n }\n reset() {\n this._resetElementAttributes(this._element, 'overflow');\n this._resetElementAttributes(this._element, PROPERTY_PADDING);\n this._resetElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING);\n this._resetElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN);\n }\n isOverflowing() {\n return this.getWidth() > 0;\n }\n\n // Private\n _disableOverFlow() {\n this._saveInitialAttribute(this._element, 'overflow');\n this._element.style.overflow = 'hidden';\n }\n _setElementAttributes(selector, styleProperty, callback) {\n const scrollbarWidth = this.getWidth();\n const manipulationCallBack = element => {\n if (element !== this._element && window.innerWidth > element.clientWidth + scrollbarWidth) {\n return;\n }\n this._saveInitialAttribute(element, styleProperty);\n const calculatedValue = window.getComputedStyle(element).getPropertyValue(styleProperty);\n element.style.setProperty(styleProperty, `${callback(Number.parseFloat(calculatedValue))}px`);\n };\n this._applyManipulationCallback(selector, manipulationCallBack);\n }\n _saveInitialAttribute(element, styleProperty) {\n const actualValue = element.style.getPropertyValue(styleProperty);\n if (actualValue) {\n Manipulator.setDataAttribute(element, styleProperty, actualValue);\n }\n }\n _resetElementAttributes(selector, styleProperty) {\n const manipulationCallBack = element => {\n const value = Manipulator.getDataAttribute(element, styleProperty);\n // We only want to remove the property if the value is `null`; the value can also be zero\n if (value === null) {\n element.style.removeProperty(styleProperty);\n return;\n }\n Manipulator.removeDataAttribute(element, styleProperty);\n element.style.setProperty(styleProperty, value);\n };\n this._applyManipulationCallback(selector, manipulationCallBack);\n }\n _applyManipulationCallback(selector, callBack) {\n if (isElement(selector)) {\n callBack(selector);\n return;\n }\n for (const sel of SelectorEngine.find(selector, this._element)) {\n callBack(sel);\n }\n }\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap modal.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$7 = 'modal';\nconst DATA_KEY$4 = 'bs.modal';\nconst EVENT_KEY$4 = `.${DATA_KEY$4}`;\nconst DATA_API_KEY$2 = '.data-api';\nconst ESCAPE_KEY$1 = 'Escape';\nconst EVENT_HIDE$4 = `hide${EVENT_KEY$4}`;\nconst EVENT_HIDE_PREVENTED$1 = `hidePrevented${EVENT_KEY$4}`;\nconst EVENT_HIDDEN$4 = `hidden${EVENT_KEY$4}`;\nconst EVENT_SHOW$4 = `show${EVENT_KEY$4}`;\nconst EVENT_SHOWN$4 = `shown${EVENT_KEY$4}`;\nconst EVENT_RESIZE$1 = `resize${EVENT_KEY$4}`;\nconst EVENT_CLICK_DISMISS = `click.dismiss${EVENT_KEY$4}`;\nconst EVENT_MOUSEDOWN_DISMISS = `mousedown.dismiss${EVENT_KEY$4}`;\nconst EVENT_KEYDOWN_DISMISS$1 = `keydown.dismiss${EVENT_KEY$4}`;\nconst EVENT_CLICK_DATA_API$2 = `click${EVENT_KEY$4}${DATA_API_KEY$2}`;\nconst CLASS_NAME_OPEN = 'modal-open';\nconst CLASS_NAME_FADE$3 = 'fade';\nconst CLASS_NAME_SHOW$4 = 'show';\nconst CLASS_NAME_STATIC = 'modal-static';\nconst OPEN_SELECTOR$1 = '.modal.show';\nconst SELECTOR_DIALOG = '.modal-dialog';\nconst SELECTOR_MODAL_BODY = '.modal-body';\nconst SELECTOR_DATA_TOGGLE$2 = '[data-bs-toggle=\"modal\"]';\nconst Default$6 = {\n backdrop: true,\n focus: true,\n keyboard: true\n};\nconst DefaultType$6 = {\n backdrop: '(boolean|string)',\n focus: 'boolean',\n keyboard: 'boolean'\n};\n\n/**\n * Class definition\n */\n\nclass Modal extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n this._dialog = SelectorEngine.findOne(SELECTOR_DIALOG, this._element);\n this._backdrop = this._initializeBackDrop();\n this._focustrap = this._initializeFocusTrap();\n this._isShown = false;\n this._isTransitioning = false;\n this._scrollBar = new ScrollBarHelper();\n this._addEventListeners();\n }\n\n // Getters\n static get Default() {\n return Default$6;\n }\n static get DefaultType() {\n return DefaultType$6;\n }\n static get NAME() {\n return NAME$7;\n }\n\n // Public\n toggle(relatedTarget) {\n return this._isShown ? this.hide() : this.show(relatedTarget);\n }\n show(relatedTarget) {\n if (this._isShown || this._isTransitioning) {\n return;\n }\n const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$4, {\n relatedTarget\n });\n if (showEvent.defaultPrevented) {\n return;\n }\n this._isShown = true;\n this._isTransitioning = true;\n this._scrollBar.hide();\n document.body.classList.add(CLASS_NAME_OPEN);\n this._adjustDialog();\n this._backdrop.show(() => this._showElement(relatedTarget));\n }\n hide() {\n if (!this._isShown || this._isTransitioning) {\n return;\n }\n const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$4);\n if (hideEvent.defaultPrevented) {\n return;\n }\n this._isShown = false;\n this._isTransitioning = true;\n this._focustrap.deactivate();\n this._element.classList.remove(CLASS_NAME_SHOW$4);\n this._queueCallback(() => this._hideModal(), this._element, this._isAnimated());\n }\n dispose() {\n EventHandler.off(window, EVENT_KEY$4);\n EventHandler.off(this._dialog, EVENT_KEY$4);\n this._backdrop.dispose();\n this._focustrap.deactivate();\n super.dispose();\n }\n handleUpdate() {\n this._adjustDialog();\n }\n\n // Private\n _initializeBackDrop() {\n return new Backdrop({\n isVisible: Boolean(this._config.backdrop),\n // 'static' option will be translated to true, and booleans will keep their value,\n isAnimated: this._isAnimated()\n });\n }\n _initializeFocusTrap() {\n return new FocusTrap({\n trapElement: this._element\n });\n }\n _showElement(relatedTarget) {\n // try to append dynamic modal\n if (!document.body.contains(this._element)) {\n document.body.append(this._element);\n }\n this._element.style.display = 'block';\n this._element.removeAttribute('aria-hidden');\n this._element.setAttribute('aria-modal', true);\n this._element.setAttribute('role', 'dialog');\n this._element.scrollTop = 0;\n const modalBody = SelectorEngine.findOne(SELECTOR_MODAL_BODY, this._dialog);\n if (modalBody) {\n modalBody.scrollTop = 0;\n }\n reflow(this._element);\n this._element.classList.add(CLASS_NAME_SHOW$4);\n const transitionComplete = () => {\n if (this._config.focus) {\n this._focustrap.activate();\n }\n this._isTransitioning = false;\n EventHandler.trigger(this._element, EVENT_SHOWN$4, {\n relatedTarget\n });\n };\n this._queueCallback(transitionComplete, this._dialog, this._isAnimated());\n }\n _addEventListeners() {\n EventHandler.on(this._element, EVENT_KEYDOWN_DISMISS$1, event => {\n if (event.key !== ESCAPE_KEY$1) {\n return;\n }\n if (this._config.keyboard) {\n this.hide();\n return;\n }\n this._triggerBackdropTransition();\n });\n EventHandler.on(window, EVENT_RESIZE$1, () => {\n if (this._isShown && !this._isTransitioning) {\n this._adjustDialog();\n }\n });\n EventHandler.on(this._element, EVENT_MOUSEDOWN_DISMISS, event => {\n // a bad trick to segregate clicks that may start inside dialog but end outside, and avoid listen to scrollbar clicks\n EventHandler.one(this._element, EVENT_CLICK_DISMISS, event2 => {\n if (this._element !== event.target || this._element !== event2.target) {\n return;\n }\n if (this._config.backdrop === 'static') {\n this._triggerBackdropTransition();\n return;\n }\n if (this._config.backdrop) {\n this.hide();\n }\n });\n });\n }\n _hideModal() {\n this._element.style.display = 'none';\n this._element.setAttribute('aria-hidden', true);\n this._element.removeAttribute('aria-modal');\n this._element.removeAttribute('role');\n this._isTransitioning = false;\n this._backdrop.hide(() => {\n document.body.classList.remove(CLASS_NAME_OPEN);\n this._resetAdjustments();\n this._scrollBar.reset();\n EventHandler.trigger(this._element, EVENT_HIDDEN$4);\n });\n }\n _isAnimated() {\n return this._element.classList.contains(CLASS_NAME_FADE$3);\n }\n _triggerBackdropTransition() {\n const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED$1);\n if (hideEvent.defaultPrevented) {\n return;\n }\n const isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;\n const initialOverflowY = this._element.style.overflowY;\n // return if the following background transition hasn't yet completed\n if (initialOverflowY === 'hidden' || this._element.classList.contains(CLASS_NAME_STATIC)) {\n return;\n }\n if (!isModalOverflowing) {\n this._element.style.overflowY = 'hidden';\n }\n this._element.classList.add(CLASS_NAME_STATIC);\n this._queueCallback(() => {\n this._element.classList.remove(CLASS_NAME_STATIC);\n this._queueCallback(() => {\n this._element.style.overflowY = initialOverflowY;\n }, this._dialog);\n }, this._dialog);\n this._element.focus();\n }\n\n /**\n * The following methods are used to handle overflowing modals\n */\n\n _adjustDialog() {\n const isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;\n const scrollbarWidth = this._scrollBar.getWidth();\n const isBodyOverflowing = scrollbarWidth > 0;\n if (isBodyOverflowing && !isModalOverflowing) {\n const property = isRTL() ? 'paddingLeft' : 'paddingRight';\n this._element.style[property] = `${scrollbarWidth}px`;\n }\n if (!isBodyOverflowing && isModalOverflowing) {\n const property = isRTL() ? 'paddingRight' : 'paddingLeft';\n this._element.style[property] = `${scrollbarWidth}px`;\n }\n }\n _resetAdjustments() {\n this._element.style.paddingLeft = '';\n this._element.style.paddingRight = '';\n }\n\n // Static\n static jQueryInterface(config, relatedTarget) {\n return this.each(function () {\n const data = Modal.getOrCreateInstance(this, config);\n if (typeof config !== 'string') {\n return;\n }\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config](relatedTarget);\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API$2, SELECTOR_DATA_TOGGLE$2, function (event) {\n const target = SelectorEngine.getElementFromSelector(this);\n if (['A', 'AREA'].includes(this.tagName)) {\n event.preventDefault();\n }\n EventHandler.one(target, EVENT_SHOW$4, showEvent => {\n if (showEvent.defaultPrevented) {\n // only register focus restorer if modal will actually get shown\n return;\n }\n EventHandler.one(target, EVENT_HIDDEN$4, () => {\n if (isVisible(this)) {\n this.focus();\n }\n });\n });\n\n // avoid conflict when clicking modal toggler while another one is open\n const alreadyOpen = SelectorEngine.findOne(OPEN_SELECTOR$1);\n if (alreadyOpen) {\n Modal.getInstance(alreadyOpen).hide();\n }\n const data = Modal.getOrCreateInstance(target);\n data.toggle(this);\n});\nenableDismissTrigger(Modal);\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Modal);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap offcanvas.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$6 = 'offcanvas';\nconst DATA_KEY$3 = 'bs.offcanvas';\nconst EVENT_KEY$3 = `.${DATA_KEY$3}`;\nconst DATA_API_KEY$1 = '.data-api';\nconst EVENT_LOAD_DATA_API$2 = `load${EVENT_KEY$3}${DATA_API_KEY$1}`;\nconst ESCAPE_KEY = 'Escape';\nconst CLASS_NAME_SHOW$3 = 'show';\nconst CLASS_NAME_SHOWING$1 = 'showing';\nconst CLASS_NAME_HIDING = 'hiding';\nconst CLASS_NAME_BACKDROP = 'offcanvas-backdrop';\nconst OPEN_SELECTOR = '.offcanvas.show';\nconst EVENT_SHOW$3 = `show${EVENT_KEY$3}`;\nconst EVENT_SHOWN$3 = `shown${EVENT_KEY$3}`;\nconst EVENT_HIDE$3 = `hide${EVENT_KEY$3}`;\nconst EVENT_HIDE_PREVENTED = `hidePrevented${EVENT_KEY$3}`;\nconst EVENT_HIDDEN$3 = `hidden${EVENT_KEY$3}`;\nconst EVENT_RESIZE = `resize${EVENT_KEY$3}`;\nconst EVENT_CLICK_DATA_API$1 = `click${EVENT_KEY$3}${DATA_API_KEY$1}`;\nconst EVENT_KEYDOWN_DISMISS = `keydown.dismiss${EVENT_KEY$3}`;\nconst SELECTOR_DATA_TOGGLE$1 = '[data-bs-toggle=\"offcanvas\"]';\nconst Default$5 = {\n backdrop: true,\n keyboard: true,\n scroll: false\n};\nconst DefaultType$5 = {\n backdrop: '(boolean|string)',\n keyboard: 'boolean',\n scroll: 'boolean'\n};\n\n/**\n * Class definition\n */\n\nclass Offcanvas extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n this._isShown = false;\n this._backdrop = this._initializeBackDrop();\n this._focustrap = this._initializeFocusTrap();\n this._addEventListeners();\n }\n\n // Getters\n static get Default() {\n return Default$5;\n }\n static get DefaultType() {\n return DefaultType$5;\n }\n static get NAME() {\n return NAME$6;\n }\n\n // Public\n toggle(relatedTarget) {\n return this._isShown ? this.hide() : this.show(relatedTarget);\n }\n show(relatedTarget) {\n if (this._isShown) {\n return;\n }\n const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$3, {\n relatedTarget\n });\n if (showEvent.defaultPrevented) {\n return;\n }\n this._isShown = true;\n this._backdrop.show();\n if (!this._config.scroll) {\n new ScrollBarHelper().hide();\n }\n this._element.setAttribute('aria-modal', true);\n this._element.setAttribute('role', 'dialog');\n this._element.classList.add(CLASS_NAME_SHOWING$1);\n const completeCallBack = () => {\n if (!this._config.scroll || this._config.backdrop) {\n this._focustrap.activate();\n }\n this._element.classList.add(CLASS_NAME_SHOW$3);\n this._element.classList.remove(CLASS_NAME_SHOWING$1);\n EventHandler.trigger(this._element, EVENT_SHOWN$3, {\n relatedTarget\n });\n };\n this._queueCallback(completeCallBack, this._element, true);\n }\n hide() {\n if (!this._isShown) {\n return;\n }\n const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$3);\n if (hideEvent.defaultPrevented) {\n return;\n }\n this._focustrap.deactivate();\n this._element.blur();\n this._isShown = false;\n this._element.classList.add(CLASS_NAME_HIDING);\n this._backdrop.hide();\n const completeCallback = () => {\n this._element.classList.remove(CLASS_NAME_SHOW$3, CLASS_NAME_HIDING);\n this._element.removeAttribute('aria-modal');\n this._element.removeAttribute('role');\n if (!this._config.scroll) {\n new ScrollBarHelper().reset();\n }\n EventHandler.trigger(this._element, EVENT_HIDDEN$3);\n };\n this._queueCallback(completeCallback, this._element, true);\n }\n dispose() {\n this._backdrop.dispose();\n this._focustrap.deactivate();\n super.dispose();\n }\n\n // Private\n _initializeBackDrop() {\n const clickCallback = () => {\n if (this._config.backdrop === 'static') {\n EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);\n return;\n }\n this.hide();\n };\n\n // 'static' option will be translated to true, and booleans will keep their value\n const isVisible = Boolean(this._config.backdrop);\n return new Backdrop({\n className: CLASS_NAME_BACKDROP,\n isVisible,\n isAnimated: true,\n rootElement: this._element.parentNode,\n clickCallback: isVisible ? clickCallback : null\n });\n }\n _initializeFocusTrap() {\n return new FocusTrap({\n trapElement: this._element\n });\n }\n _addEventListeners() {\n EventHandler.on(this._element, EVENT_KEYDOWN_DISMISS, event => {\n if (event.key !== ESCAPE_KEY) {\n return;\n }\n if (this._config.keyboard) {\n this.hide();\n return;\n }\n EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);\n });\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Offcanvas.getOrCreateInstance(this, config);\n if (typeof config !== 'string') {\n return;\n }\n if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config](this);\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE$1, function (event) {\n const target = SelectorEngine.getElementFromSelector(this);\n if (['A', 'AREA'].includes(this.tagName)) {\n event.preventDefault();\n }\n if (isDisabled(this)) {\n return;\n }\n EventHandler.one(target, EVENT_HIDDEN$3, () => {\n // focus on trigger when it is closed\n if (isVisible(this)) {\n this.focus();\n }\n });\n\n // avoid conflict when clicking a toggler of an offcanvas, while another is open\n const alreadyOpen = SelectorEngine.findOne(OPEN_SELECTOR);\n if (alreadyOpen && alreadyOpen !== target) {\n Offcanvas.getInstance(alreadyOpen).hide();\n }\n const data = Offcanvas.getOrCreateInstance(target);\n data.toggle(this);\n});\nEventHandler.on(window, EVENT_LOAD_DATA_API$2, () => {\n for (const selector of SelectorEngine.find(OPEN_SELECTOR)) {\n Offcanvas.getOrCreateInstance(selector).show();\n }\n});\nEventHandler.on(window, EVENT_RESIZE, () => {\n for (const element of SelectorEngine.find('[aria-modal][class*=show][class*=offcanvas-]')) {\n if (getComputedStyle(element).position !== 'fixed') {\n Offcanvas.getOrCreateInstance(element).hide();\n }\n }\n});\nenableDismissTrigger(Offcanvas);\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Offcanvas);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/sanitizer.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n// js-docs-start allow-list\nconst ARIA_ATTRIBUTE_PATTERN = /^aria-[\\w-]*$/i;\nconst DefaultAllowlist = {\n // Global attributes allowed on any supplied element below.\n '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],\n a: ['target', 'href', 'title', 'rel'],\n area: [],\n b: [],\n br: [],\n col: [],\n code: [],\n dd: [],\n div: [],\n dl: [],\n dt: [],\n em: [],\n hr: [],\n h1: [],\n h2: [],\n h3: [],\n h4: [],\n h5: [],\n h6: [],\n i: [],\n img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],\n li: [],\n ol: [],\n p: [],\n pre: [],\n s: [],\n small: [],\n span: [],\n sub: [],\n sup: [],\n strong: [],\n u: [],\n ul: []\n};\n// js-docs-end allow-list\n\nconst uriAttributes = new Set(['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']);\n\n/**\n * A pattern that recognizes URLs that are safe wrt. XSS in URL navigation\n * contexts.\n *\n * Shout-out to Angular https://github.com/angular/angular/blob/15.2.8/packages/core/src/sanitization/url_sanitizer.ts#L38\n */\n// eslint-disable-next-line unicorn/better-regex\nconst SAFE_URL_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i;\nconst allowedAttribute = (attribute, allowedAttributeList) => {\n const attributeName = attribute.nodeName.toLowerCase();\n if (allowedAttributeList.includes(attributeName)) {\n if (uriAttributes.has(attributeName)) {\n return Boolean(SAFE_URL_PATTERN.test(attribute.nodeValue));\n }\n return true;\n }\n\n // Check if a regular expression validates the attribute.\n return allowedAttributeList.filter(attributeRegex => attributeRegex instanceof RegExp).some(regex => regex.test(attributeName));\n};\nfunction sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {\n if (!unsafeHtml.length) {\n return unsafeHtml;\n }\n if (sanitizeFunction && typeof sanitizeFunction === 'function') {\n return sanitizeFunction(unsafeHtml);\n }\n const domParser = new window.DOMParser();\n const createdDocument = domParser.parseFromString(unsafeHtml, 'text/html');\n const elements = [].concat(...createdDocument.body.querySelectorAll('*'));\n for (const element of elements) {\n const elementName = element.nodeName.toLowerCase();\n if (!Object.keys(allowList).includes(elementName)) {\n element.remove();\n continue;\n }\n const attributeList = [].concat(...element.attributes);\n const allowedAttributes = [].concat(allowList['*'] || [], allowList[elementName] || []);\n for (const attribute of attributeList) {\n if (!allowedAttribute(attribute, allowedAttributes)) {\n element.removeAttribute(attribute.nodeName);\n }\n }\n }\n return createdDocument.body.innerHTML;\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/template-factory.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$5 = 'TemplateFactory';\nconst Default$4 = {\n allowList: DefaultAllowlist,\n content: {},\n // { selector : text , selector2 : text2 , }\n extraClass: '',\n html: false,\n sanitize: true,\n sanitizeFn: null,\n template: '
'\n};\nconst DefaultType$4 = {\n allowList: 'object',\n content: 'object',\n extraClass: '(string|function)',\n html: 'boolean',\n sanitize: 'boolean',\n sanitizeFn: '(null|function)',\n template: 'string'\n};\nconst DefaultContentType = {\n entry: '(string|element|function|null)',\n selector: '(string|element)'\n};\n\n/**\n * Class definition\n */\n\nclass TemplateFactory extends Config {\n constructor(config) {\n super();\n this._config = this._getConfig(config);\n }\n\n // Getters\n static get Default() {\n return Default$4;\n }\n static get DefaultType() {\n return DefaultType$4;\n }\n static get NAME() {\n return NAME$5;\n }\n\n // Public\n getContent() {\n return Object.values(this._config.content).map(config => this._resolvePossibleFunction(config)).filter(Boolean);\n }\n hasContent() {\n return this.getContent().length > 0;\n }\n changeContent(content) {\n this._checkContent(content);\n this._config.content = {\n ...this._config.content,\n ...content\n };\n return this;\n }\n toHtml() {\n const templateWrapper = document.createElement('div');\n templateWrapper.innerHTML = this._maybeSanitize(this._config.template);\n for (const [selector, text] of Object.entries(this._config.content)) {\n this._setContent(templateWrapper, text, selector);\n }\n const template = templateWrapper.children[0];\n const extraClass = this._resolvePossibleFunction(this._config.extraClass);\n if (extraClass) {\n template.classList.add(...extraClass.split(' '));\n }\n return template;\n }\n\n // Private\n _typeCheckConfig(config) {\n super._typeCheckConfig(config);\n this._checkContent(config.content);\n }\n _checkContent(arg) {\n for (const [selector, content] of Object.entries(arg)) {\n super._typeCheckConfig({\n selector,\n entry: content\n }, DefaultContentType);\n }\n }\n _setContent(template, content, selector) {\n const templateElement = SelectorEngine.findOne(selector, template);\n if (!templateElement) {\n return;\n }\n content = this._resolvePossibleFunction(content);\n if (!content) {\n templateElement.remove();\n return;\n }\n if (isElement(content)) {\n this._putElementInTemplate(getElement(content), templateElement);\n return;\n }\n if (this._config.html) {\n templateElement.innerHTML = this._maybeSanitize(content);\n return;\n }\n templateElement.textContent = content;\n }\n _maybeSanitize(arg) {\n return this._config.sanitize ? sanitizeHtml(arg, this._config.allowList, this._config.sanitizeFn) : arg;\n }\n _resolvePossibleFunction(arg) {\n return execute(arg, [this]);\n }\n _putElementInTemplate(element, templateElement) {\n if (this._config.html) {\n templateElement.innerHTML = '';\n templateElement.append(element);\n return;\n }\n templateElement.textContent = element.textContent;\n }\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap tooltip.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$4 = 'tooltip';\nconst DISALLOWED_ATTRIBUTES = new Set(['sanitize', 'allowList', 'sanitizeFn']);\nconst CLASS_NAME_FADE$2 = 'fade';\nconst CLASS_NAME_MODAL = 'modal';\nconst CLASS_NAME_SHOW$2 = 'show';\nconst SELECTOR_TOOLTIP_INNER = '.tooltip-inner';\nconst SELECTOR_MODAL = `.${CLASS_NAME_MODAL}`;\nconst EVENT_MODAL_HIDE = 'hide.bs.modal';\nconst TRIGGER_HOVER = 'hover';\nconst TRIGGER_FOCUS = 'focus';\nconst TRIGGER_CLICK = 'click';\nconst TRIGGER_MANUAL = 'manual';\nconst EVENT_HIDE$2 = 'hide';\nconst EVENT_HIDDEN$2 = 'hidden';\nconst EVENT_SHOW$2 = 'show';\nconst EVENT_SHOWN$2 = 'shown';\nconst EVENT_INSERTED = 'inserted';\nconst EVENT_CLICK$1 = 'click';\nconst EVENT_FOCUSIN$1 = 'focusin';\nconst EVENT_FOCUSOUT$1 = 'focusout';\nconst EVENT_MOUSEENTER = 'mouseenter';\nconst EVENT_MOUSELEAVE = 'mouseleave';\nconst AttachmentMap = {\n AUTO: 'auto',\n TOP: 'top',\n RIGHT: isRTL() ? 'left' : 'right',\n BOTTOM: 'bottom',\n LEFT: isRTL() ? 'right' : 'left'\n};\nconst Default$3 = {\n allowList: DefaultAllowlist,\n animation: true,\n boundary: 'clippingParents',\n container: false,\n customClass: '',\n delay: 0,\n fallbackPlacements: ['top', 'right', 'bottom', 'left'],\n html: false,\n offset: [0, 6],\n placement: 'top',\n popperConfig: null,\n sanitize: true,\n sanitizeFn: null,\n selector: false,\n template: '
' + '
' + '
' + '
',\n title: '',\n trigger: 'hover focus'\n};\nconst DefaultType$3 = {\n allowList: 'object',\n animation: 'boolean',\n boundary: '(string|element)',\n container: '(string|element|boolean)',\n customClass: '(string|function)',\n delay: '(number|object)',\n fallbackPlacements: 'array',\n html: 'boolean',\n offset: '(array|string|function)',\n placement: '(string|function)',\n popperConfig: '(null|object|function)',\n sanitize: 'boolean',\n sanitizeFn: '(null|function)',\n selector: '(string|boolean)',\n template: 'string',\n title: '(string|element|function)',\n trigger: 'string'\n};\n\n/**\n * Class definition\n */\n\nclass Tooltip extends BaseComponent {\n constructor(element, config) {\n if (typeof Popper === 'undefined') {\n throw new TypeError('Bootstrap\\'s tooltips require Popper (https://popper.js.org)');\n }\n super(element, config);\n\n // Private\n this._isEnabled = true;\n this._timeout = 0;\n this._isHovered = null;\n this._activeTrigger = {};\n this._popper = null;\n this._templateFactory = null;\n this._newContent = null;\n\n // Protected\n this.tip = null;\n this._setListeners();\n if (!this._config.selector) {\n this._fixTitle();\n }\n }\n\n // Getters\n static get Default() {\n return Default$3;\n }\n static get DefaultType() {\n return DefaultType$3;\n }\n static get NAME() {\n return NAME$4;\n }\n\n // Public\n enable() {\n this._isEnabled = true;\n }\n disable() {\n this._isEnabled = false;\n }\n toggleEnabled() {\n this._isEnabled = !this._isEnabled;\n }\n toggle() {\n if (!this._isEnabled) {\n return;\n }\n this._activeTrigger.click = !this._activeTrigger.click;\n if (this._isShown()) {\n this._leave();\n return;\n }\n this._enter();\n }\n dispose() {\n clearTimeout(this._timeout);\n EventHandler.off(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler);\n if (this._element.getAttribute('data-bs-original-title')) {\n this._element.setAttribute('title', this._element.getAttribute('data-bs-original-title'));\n }\n this._disposePopper();\n super.dispose();\n }\n show() {\n if (this._element.style.display === 'none') {\n throw new Error('Please use show on visible elements');\n }\n if (!(this._isWithContent() && this._isEnabled)) {\n return;\n }\n const showEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOW$2));\n const shadowRoot = findShadowRoot(this._element);\n const isInTheDom = (shadowRoot || this._element.ownerDocument.documentElement).contains(this._element);\n if (showEvent.defaultPrevented || !isInTheDom) {\n return;\n }\n\n // TODO: v6 remove this or make it optional\n this._disposePopper();\n const tip = this._getTipElement();\n this._element.setAttribute('aria-describedby', tip.getAttribute('id'));\n const {\n container\n } = this._config;\n if (!this._element.ownerDocument.documentElement.contains(this.tip)) {\n container.append(tip);\n EventHandler.trigger(this._element, this.constructor.eventName(EVENT_INSERTED));\n }\n this._popper = this._createPopper(tip);\n tip.classList.add(CLASS_NAME_SHOW$2);\n\n // If this is a touch-enabled device we add extra\n // empty mouseover listeners to the body's immediate children;\n // only needed because of broken event delegation on iOS\n // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n if ('ontouchstart' in document.documentElement) {\n for (const element of [].concat(...document.body.children)) {\n EventHandler.on(element, 'mouseover', noop);\n }\n }\n const complete = () => {\n EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOWN$2));\n if (this._isHovered === false) {\n this._leave();\n }\n this._isHovered = false;\n };\n this._queueCallback(complete, this.tip, this._isAnimated());\n }\n hide() {\n if (!this._isShown()) {\n return;\n }\n const hideEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDE$2));\n if (hideEvent.defaultPrevented) {\n return;\n }\n const tip = this._getTipElement();\n tip.classList.remove(CLASS_NAME_SHOW$2);\n\n // If this is a touch-enabled device we remove the extra\n // empty mouseover listeners we added for iOS support\n if ('ontouchstart' in document.documentElement) {\n for (const element of [].concat(...document.body.children)) {\n EventHandler.off(element, 'mouseover', noop);\n }\n }\n this._activeTrigger[TRIGGER_CLICK] = false;\n this._activeTrigger[TRIGGER_FOCUS] = false;\n this._activeTrigger[TRIGGER_HOVER] = false;\n this._isHovered = null; // it is a trick to support manual triggering\n\n const complete = () => {\n if (this._isWithActiveTrigger()) {\n return;\n }\n if (!this._isHovered) {\n this._disposePopper();\n }\n this._element.removeAttribute('aria-describedby');\n EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDDEN$2));\n };\n this._queueCallback(complete, this.tip, this._isAnimated());\n }\n update() {\n if (this._popper) {\n this._popper.update();\n }\n }\n\n // Protected\n _isWithContent() {\n return Boolean(this._getTitle());\n }\n _getTipElement() {\n if (!this.tip) {\n this.tip = this._createTipElement(this._newContent || this._getContentForTemplate());\n }\n return this.tip;\n }\n _createTipElement(content) {\n const tip = this._getTemplateFactory(content).toHtml();\n\n // TODO: remove this check in v6\n if (!tip) {\n return null;\n }\n tip.classList.remove(CLASS_NAME_FADE$2, CLASS_NAME_SHOW$2);\n // TODO: v6 the following can be achieved with CSS only\n tip.classList.add(`bs-${this.constructor.NAME}-auto`);\n const tipId = getUID(this.constructor.NAME).toString();\n tip.setAttribute('id', tipId);\n if (this._isAnimated()) {\n tip.classList.add(CLASS_NAME_FADE$2);\n }\n return tip;\n }\n setContent(content) {\n this._newContent = content;\n if (this._isShown()) {\n this._disposePopper();\n this.show();\n }\n }\n _getTemplateFactory(content) {\n if (this._templateFactory) {\n this._templateFactory.changeContent(content);\n } else {\n this._templateFactory = new TemplateFactory({\n ...this._config,\n // the `content` var has to be after `this._config`\n // to override config.content in case of popover\n content,\n extraClass: this._resolvePossibleFunction(this._config.customClass)\n });\n }\n return this._templateFactory;\n }\n _getContentForTemplate() {\n return {\n [SELECTOR_TOOLTIP_INNER]: this._getTitle()\n };\n }\n _getTitle() {\n return this._resolvePossibleFunction(this._config.title) || this._element.getAttribute('data-bs-original-title');\n }\n\n // Private\n _initializeOnDelegatedTarget(event) {\n return this.constructor.getOrCreateInstance(event.delegateTarget, this._getDelegateConfig());\n }\n _isAnimated() {\n return this._config.animation || this.tip && this.tip.classList.contains(CLASS_NAME_FADE$2);\n }\n _isShown() {\n return this.tip && this.tip.classList.contains(CLASS_NAME_SHOW$2);\n }\n _createPopper(tip) {\n const placement = execute(this._config.placement, [this, tip, this._element]);\n const attachment = AttachmentMap[placement.toUpperCase()];\n return Popper.createPopper(this._element, tip, this._getPopperConfig(attachment));\n }\n _getOffset() {\n const {\n offset\n } = this._config;\n if (typeof offset === 'string') {\n return offset.split(',').map(value => Number.parseInt(value, 10));\n }\n if (typeof offset === 'function') {\n return popperData => offset(popperData, this._element);\n }\n return offset;\n }\n _resolvePossibleFunction(arg) {\n return execute(arg, [this._element]);\n }\n _getPopperConfig(attachment) {\n const defaultBsPopperConfig = {\n placement: attachment,\n modifiers: [{\n name: 'flip',\n options: {\n fallbackPlacements: this._config.fallbackPlacements\n }\n }, {\n name: 'offset',\n options: {\n offset: this._getOffset()\n }\n }, {\n name: 'preventOverflow',\n options: {\n boundary: this._config.boundary\n }\n }, {\n name: 'arrow',\n options: {\n element: `.${this.constructor.NAME}-arrow`\n }\n }, {\n name: 'preSetPlacement',\n enabled: true,\n phase: 'beforeMain',\n fn: data => {\n // Pre-set Popper's placement attribute in order to read the arrow sizes properly.\n // Otherwise, Popper mixes up the width and height dimensions since the initial arrow style is for top placement\n this._getTipElement().setAttribute('data-popper-placement', data.state.placement);\n }\n }]\n };\n return {\n ...defaultBsPopperConfig,\n ...execute(this._config.popperConfig, [defaultBsPopperConfig])\n };\n }\n _setListeners() {\n const triggers = this._config.trigger.split(' ');\n for (const trigger of triggers) {\n if (trigger === 'click') {\n EventHandler.on(this._element, this.constructor.eventName(EVENT_CLICK$1), this._config.selector, event => {\n const context = this._initializeOnDelegatedTarget(event);\n context.toggle();\n });\n } else if (trigger !== TRIGGER_MANUAL) {\n const eventIn = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSEENTER) : this.constructor.eventName(EVENT_FOCUSIN$1);\n const eventOut = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSELEAVE) : this.constructor.eventName(EVENT_FOCUSOUT$1);\n EventHandler.on(this._element, eventIn, this._config.selector, event => {\n const context = this._initializeOnDelegatedTarget(event);\n context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;\n context._enter();\n });\n EventHandler.on(this._element, eventOut, this._config.selector, event => {\n const context = this._initializeOnDelegatedTarget(event);\n context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = context._element.contains(event.relatedTarget);\n context._leave();\n });\n }\n }\n this._hideModalHandler = () => {\n if (this._element) {\n this.hide();\n }\n };\n EventHandler.on(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler);\n }\n _fixTitle() {\n const title = this._element.getAttribute('title');\n if (!title) {\n return;\n }\n if (!this._element.getAttribute('aria-label') && !this._element.textContent.trim()) {\n this._element.setAttribute('aria-label', title);\n }\n this._element.setAttribute('data-bs-original-title', title); // DO NOT USE IT. Is only for backwards compatibility\n this._element.removeAttribute('title');\n }\n _enter() {\n if (this._isShown() || this._isHovered) {\n this._isHovered = true;\n return;\n }\n this._isHovered = true;\n this._setTimeout(() => {\n if (this._isHovered) {\n this.show();\n }\n }, this._config.delay.show);\n }\n _leave() {\n if (this._isWithActiveTrigger()) {\n return;\n }\n this._isHovered = false;\n this._setTimeout(() => {\n if (!this._isHovered) {\n this.hide();\n }\n }, this._config.delay.hide);\n }\n _setTimeout(handler, timeout) {\n clearTimeout(this._timeout);\n this._timeout = setTimeout(handler, timeout);\n }\n _isWithActiveTrigger() {\n return Object.values(this._activeTrigger).includes(true);\n }\n _getConfig(config) {\n const dataAttributes = Manipulator.getDataAttributes(this._element);\n for (const dataAttribute of Object.keys(dataAttributes)) {\n if (DISALLOWED_ATTRIBUTES.has(dataAttribute)) {\n delete dataAttributes[dataAttribute];\n }\n }\n config = {\n ...dataAttributes,\n ...(typeof config === 'object' && config ? config : {})\n };\n config = this._mergeConfigObj(config);\n config = this._configAfterMerge(config);\n this._typeCheckConfig(config);\n return config;\n }\n _configAfterMerge(config) {\n config.container = config.container === false ? document.body : getElement(config.container);\n if (typeof config.delay === 'number') {\n config.delay = {\n show: config.delay,\n hide: config.delay\n };\n }\n if (typeof config.title === 'number') {\n config.title = config.title.toString();\n }\n if (typeof config.content === 'number') {\n config.content = config.content.toString();\n }\n return config;\n }\n _getDelegateConfig() {\n const config = {};\n for (const [key, value] of Object.entries(this._config)) {\n if (this.constructor.Default[key] !== value) {\n config[key] = value;\n }\n }\n config.selector = false;\n config.trigger = 'manual';\n\n // In the future can be replaced with:\n // const keysWithDifferentValues = Object.entries(this._config).filter(entry => this.constructor.Default[entry[0]] !== this._config[entry[0]])\n // `Object.fromEntries(keysWithDifferentValues)`\n return config;\n }\n _disposePopper() {\n if (this._popper) {\n this._popper.destroy();\n this._popper = null;\n }\n if (this.tip) {\n this.tip.remove();\n this.tip = null;\n }\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Tooltip.getOrCreateInstance(this, config);\n if (typeof config !== 'string') {\n return;\n }\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config]();\n });\n }\n}\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Tooltip);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap popover.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$3 = 'popover';\nconst SELECTOR_TITLE = '.popover-header';\nconst SELECTOR_CONTENT = '.popover-body';\nconst Default$2 = {\n ...Tooltip.Default,\n content: '',\n offset: [0, 8],\n placement: 'right',\n template: '
' + '
' + '

' + '
' + '
',\n trigger: 'click'\n};\nconst DefaultType$2 = {\n ...Tooltip.DefaultType,\n content: '(null|string|element|function)'\n};\n\n/**\n * Class definition\n */\n\nclass Popover extends Tooltip {\n // Getters\n static get Default() {\n return Default$2;\n }\n static get DefaultType() {\n return DefaultType$2;\n }\n static get NAME() {\n return NAME$3;\n }\n\n // Overrides\n _isWithContent() {\n return this._getTitle() || this._getContent();\n }\n\n // Private\n _getContentForTemplate() {\n return {\n [SELECTOR_TITLE]: this._getTitle(),\n [SELECTOR_CONTENT]: this._getContent()\n };\n }\n _getContent() {\n return this._resolvePossibleFunction(this._config.content);\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Popover.getOrCreateInstance(this, config);\n if (typeof config !== 'string') {\n return;\n }\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config]();\n });\n }\n}\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Popover);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap scrollspy.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$2 = 'scrollspy';\nconst DATA_KEY$2 = 'bs.scrollspy';\nconst EVENT_KEY$2 = `.${DATA_KEY$2}`;\nconst DATA_API_KEY = '.data-api';\nconst EVENT_ACTIVATE = `activate${EVENT_KEY$2}`;\nconst EVENT_CLICK = `click${EVENT_KEY$2}`;\nconst EVENT_LOAD_DATA_API$1 = `load${EVENT_KEY$2}${DATA_API_KEY}`;\nconst CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';\nconst CLASS_NAME_ACTIVE$1 = 'active';\nconst SELECTOR_DATA_SPY = '[data-bs-spy=\"scroll\"]';\nconst SELECTOR_TARGET_LINKS = '[href]';\nconst SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';\nconst SELECTOR_NAV_LINKS = '.nav-link';\nconst SELECTOR_NAV_ITEMS = '.nav-item';\nconst SELECTOR_LIST_ITEMS = '.list-group-item';\nconst SELECTOR_LINK_ITEMS = `${SELECTOR_NAV_LINKS}, ${SELECTOR_NAV_ITEMS} > ${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}`;\nconst SELECTOR_DROPDOWN = '.dropdown';\nconst SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle';\nconst Default$1 = {\n offset: null,\n // TODO: v6 @deprecated, keep it for backwards compatibility reasons\n rootMargin: '0px 0px -25%',\n smoothScroll: false,\n target: null,\n threshold: [0.1, 0.5, 1]\n};\nconst DefaultType$1 = {\n offset: '(number|null)',\n // TODO v6 @deprecated, keep it for backwards compatibility reasons\n rootMargin: 'string',\n smoothScroll: 'boolean',\n target: 'element',\n threshold: 'array'\n};\n\n/**\n * Class definition\n */\n\nclass ScrollSpy extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n\n // this._element is the observablesContainer and config.target the menu links wrapper\n this._targetLinks = new Map();\n this._observableSections = new Map();\n this._rootElement = getComputedStyle(this._element).overflowY === 'visible' ? null : this._element;\n this._activeTarget = null;\n this._observer = null;\n this._previousScrollData = {\n visibleEntryTop: 0,\n parentScrollTop: 0\n };\n this.refresh(); // initialize\n }\n\n // Getters\n static get Default() {\n return Default$1;\n }\n static get DefaultType() {\n return DefaultType$1;\n }\n static get NAME() {\n return NAME$2;\n }\n\n // Public\n refresh() {\n this._initializeTargetsAndObservables();\n this._maybeEnableSmoothScroll();\n if (this._observer) {\n this._observer.disconnect();\n } else {\n this._observer = this._getNewObserver();\n }\n for (const section of this._observableSections.values()) {\n this._observer.observe(section);\n }\n }\n dispose() {\n this._observer.disconnect();\n super.dispose();\n }\n\n // Private\n _configAfterMerge(config) {\n // TODO: on v6 target should be given explicitly & remove the {target: 'ss-target'} case\n config.target = getElement(config.target) || document.body;\n\n // TODO: v6 Only for backwards compatibility reasons. Use rootMargin only\n config.rootMargin = config.offset ? `${config.offset}px 0px -30%` : config.rootMargin;\n if (typeof config.threshold === 'string') {\n config.threshold = config.threshold.split(',').map(value => Number.parseFloat(value));\n }\n return config;\n }\n _maybeEnableSmoothScroll() {\n if (!this._config.smoothScroll) {\n return;\n }\n\n // unregister any previous listeners\n EventHandler.off(this._config.target, EVENT_CLICK);\n EventHandler.on(this._config.target, EVENT_CLICK, SELECTOR_TARGET_LINKS, event => {\n const observableSection = this._observableSections.get(event.target.hash);\n if (observableSection) {\n event.preventDefault();\n const root = this._rootElement || window;\n const height = observableSection.offsetTop - this._element.offsetTop;\n if (root.scrollTo) {\n root.scrollTo({\n top: height,\n behavior: 'smooth'\n });\n return;\n }\n\n // Chrome 60 doesn't support `scrollTo`\n root.scrollTop = height;\n }\n });\n }\n _getNewObserver() {\n const options = {\n root: this._rootElement,\n threshold: this._config.threshold,\n rootMargin: this._config.rootMargin\n };\n return new IntersectionObserver(entries => this._observerCallback(entries), options);\n }\n\n // The logic of selection\n _observerCallback(entries) {\n const targetElement = entry => this._targetLinks.get(`#${entry.target.id}`);\n const activate = entry => {\n this._previousScrollData.visibleEntryTop = entry.target.offsetTop;\n this._process(targetElement(entry));\n };\n const parentScrollTop = (this._rootElement || document.documentElement).scrollTop;\n const userScrollsDown = parentScrollTop >= this._previousScrollData.parentScrollTop;\n this._previousScrollData.parentScrollTop = parentScrollTop;\n for (const entry of entries) {\n if (!entry.isIntersecting) {\n this._activeTarget = null;\n this._clearActiveClass(targetElement(entry));\n continue;\n }\n const entryIsLowerThanPrevious = entry.target.offsetTop >= this._previousScrollData.visibleEntryTop;\n // if we are scrolling down, pick the bigger offsetTop\n if (userScrollsDown && entryIsLowerThanPrevious) {\n activate(entry);\n // if parent isn't scrolled, let's keep the first visible item, breaking the iteration\n if (!parentScrollTop) {\n return;\n }\n continue;\n }\n\n // if we are scrolling up, pick the smallest offsetTop\n if (!userScrollsDown && !entryIsLowerThanPrevious) {\n activate(entry);\n }\n }\n }\n _initializeTargetsAndObservables() {\n this._targetLinks = new Map();\n this._observableSections = new Map();\n const targetLinks = SelectorEngine.find(SELECTOR_TARGET_LINKS, this._config.target);\n for (const anchor of targetLinks) {\n // ensure that the anchor has an id and is not disabled\n if (!anchor.hash || isDisabled(anchor)) {\n continue;\n }\n const observableSection = SelectorEngine.findOne(decodeURI(anchor.hash), this._element);\n\n // ensure that the observableSection exists & is visible\n if (isVisible(observableSection)) {\n this._targetLinks.set(decodeURI(anchor.hash), anchor);\n this._observableSections.set(anchor.hash, observableSection);\n }\n }\n }\n _process(target) {\n if (this._activeTarget === target) {\n return;\n }\n this._clearActiveClass(this._config.target);\n this._activeTarget = target;\n target.classList.add(CLASS_NAME_ACTIVE$1);\n this._activateParents(target);\n EventHandler.trigger(this._element, EVENT_ACTIVATE, {\n relatedTarget: target\n });\n }\n _activateParents(target) {\n // Activate dropdown parents\n if (target.classList.contains(CLASS_NAME_DROPDOWN_ITEM)) {\n SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE$1, target.closest(SELECTOR_DROPDOWN)).classList.add(CLASS_NAME_ACTIVE$1);\n return;\n }\n for (const listGroup of SelectorEngine.parents(target, SELECTOR_NAV_LIST_GROUP)) {\n // Set triggered links parents as active\n // With both