diff --git a/.buildinfo b/.buildinfo new file mode 100644 index 0000000..242e556 --- /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: 67080d1201dfcba5c991889b959fb678 +tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md new file mode 100644 index 0000000..f641cde --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +#GitHub Pages + +Last update of sphinx html documentation from [ae51ba4](https://github.com/NSLS-II-BMM/BeamlineManual/tree/ae51ba48a613a013cf87d3058ba5d35dd4d8225f) diff --git a/_downloads/1dc54fa3966864a6d9a6482fafe73e28/HutchSearch.docx b/_downloads/1dc54fa3966864a6d9a6482fafe73e28/HutchSearch.docx new file mode 100644 index 0000000..a5e2f8c Binary files /dev/null and b/_downloads/1dc54fa3966864a6d9a6482fafe73e28/HutchSearch.docx differ diff --git a/_downloads/55576a1ae002c3af9e018e120e040c09/Binder-instructions.pdf b/_downloads/55576a1ae002c3af9e018e120e040c09/Binder-instructions.pdf new file mode 100644 index 0000000..fba78da Binary files /dev/null and b/_downloads/55576a1ae002c3af9e018e120e040c09/Binder-instructions.pdf differ diff --git a/_images/1element.jpg b/_images/1element.jpg new file mode 100644 index 0000000..ce845b5 Binary files /dev/null and b/_images/1element.jpg differ diff --git a/_images/25ldewar.jpg b/_images/25ldewar.jpg new file mode 100644 index 0000000..27e266f Binary files /dev/null and b/_images/25ldewar.jpg differ diff --git a/_images/4element.jpg b/_images/4element.jpg new file mode 100644 index 0000000..d69ed0b Binary files /dev/null and b/_images/4element.jpg differ diff --git a/_images/743lobby.jpg b/_images/743lobby.jpg new file mode 100644 index 0000000..d8861dd Binary files /dev/null and b/_images/743lobby.jpg differ diff --git a/_images/BMM_utilities.png b/_images/BMM_utilities.png new file mode 100644 index 0000000..589041e Binary files /dev/null and b/_images/BMM_utilities.png differ diff --git a/_images/BMMcontrolstation.jpg b/_images/BMMcontrolstation.jpg new file mode 100644 index 0000000..60398a9 Binary files /dev/null and b/_images/BMMcontrolstation.jpg differ diff --git a/_images/Beamline-bananagrams.jpg b/_images/Beamline-bananagrams.jpg new file mode 100644 index 0000000..23e75a0 Binary files /dev/null and b/_images/Beamline-bananagrams.jpg differ diff --git a/_images/Bnc_map.png b/_images/Bnc_map.png new file mode 100644 index 0000000..66ea4bb Binary files /dev/null and b/_images/Bnc_map.png differ diff --git a/_images/Calibration_111.png b/_images/Calibration_111.png new file mode 100644 index 0000000..df885c5 Binary files /dev/null and b/_images/Calibration_111.png differ diff --git a/_images/DM3_first_cat6.jpg b/_images/DM3_first_cat6.jpg new file mode 100644 index 0000000..cdf9e1f Binary files /dev/null and b/_images/DM3_first_cat6.jpg differ diff --git a/_images/DM3_patch_panel.jpg b/_images/DM3_patch_panel.jpg new file mode 100644 index 0000000..1db2a03 Binary files /dev/null and b/_images/DM3_patch_panel.jpg differ diff --git a/_images/Gas_handling.png b/_images/Gas_handling.png new file mode 100644 index 0000000..2b44019 Binary files /dev/null and b/_images/Gas_handling.png differ diff --git a/_images/Kill_switch_connector.png b/_images/Kill_switch_connector.png new file mode 100644 index 0000000..f7d123d Binary files /dev/null and b/_images/Kill_switch_connector.png differ diff --git a/_images/Kill_switches.jpg b/_images/Kill_switches.jpg new file mode 100644 index 0000000..bdc9014 Binary files /dev/null and b/_images/Kill_switches.jpg differ diff --git a/_images/LOB-3.png b/_images/LOB-3.png new file mode 100644 index 0000000..68f2853 Binary files /dev/null and b/_images/LOB-3.png differ diff --git a/_images/Linkam_info.png b/_images/Linkam_info.png new file mode 100644 index 0000000..782c89f Binary files /dev/null and b/_images/Linkam_info.png differ diff --git a/_images/Linkam_main.png b/_images/Linkam_main.png new file mode 100644 index 0000000..7c39f5e Binary files /dev/null and b/_images/Linkam_main.png differ diff --git a/_images/Linkam_reboot.png b/_images/Linkam_reboot.png new file mode 100644 index 0000000..93c49fe Binary files /dev/null and b/_images/Linkam_reboot.png differ diff --git a/_images/Logitech.png b/_images/Logitech.png new file mode 100644 index 0000000..bac06ac Binary files /dev/null and b/_images/Logitech.png differ diff --git a/_images/Nd-6510.png b/_images/Nd-6510.png new file mode 100644 index 0000000..f0baac9 Binary files /dev/null and b/_images/Nd-6510.png differ diff --git a/_images/Nd-6560.png b/_images/Nd-6560.png new file mode 100644 index 0000000..45197c0 Binary files /dev/null and b/_images/Nd-6560.png differ diff --git a/_images/Nd-compare.png b/_images/Nd-compare.png new file mode 100644 index 0000000..034e0a2 Binary files /dev/null and b/_images/Nd-compare.png differ diff --git a/_images/Ref_wheel.jpg b/_images/Ref_wheel.jpg new file mode 100644 index 0000000..037cdbf Binary files /dev/null and b/_images/Ref_wheel.jpg differ diff --git a/_images/Samplewheel.jpg b/_images/Samplewheel.jpg new file mode 100644 index 0000000..a4484ca Binary files /dev/null and b/_images/Samplewheel.jpg differ diff --git a/_images/Vortex_pressure.jpeg b/_images/Vortex_pressure.jpeg new file mode 100644 index 0000000..3ee658d Binary files /dev/null and b/_images/Vortex_pressure.jpeg differ diff --git a/_images/Water_flow_CSS.png b/_images/Water_flow_CSS.png new file mode 100644 index 0000000..0d8ff16 Binary files /dev/null and b/_images/Water_flow_CSS.png differ diff --git a/_images/Water_flow_valves_1.jpg b/_images/Water_flow_valves_1.jpg new file mode 100644 index 0000000..400fe61 Binary files /dev/null and b/_images/Water_flow_valves_1.jpg differ diff --git a/_images/Water_flow_valves_2.jpg b/_images/Water_flow_valves_2.jpg new file mode 100644 index 0000000..72394a4 Binary files /dev/null and b/_images/Water_flow_valves_2.jpg differ diff --git a/_images/Winvm_startup.png b/_images/Winvm_startup.png new file mode 100644 index 0000000..60da217 Binary files /dev/null and b/_images/Winvm_startup.png differ diff --git a/_images/XAFS_live_view.png b/_images/XAFS_live_view.png new file mode 100644 index 0000000..ac17d83 Binary files /dev/null and b/_images/XAFS_live_view.png differ diff --git a/_images/XASwebcam.jpg b/_images/XASwebcam.jpg new file mode 100644 index 0000000..6fbf0bb Binary files /dev/null and b/_images/XASwebcam.jpg differ diff --git a/_images/Xf06bm-ws5.jpg b/_images/Xf06bm-ws5.jpg new file mode 100644 index 0000000..6066ea2 Binary files /dev/null and b/_images/Xf06bm-ws5.jpg differ diff --git a/_images/analog.jpg b/_images/analog.jpg new file mode 100644 index 0000000..5f04de2 Binary files /dev/null and b/_images/analog.jpg differ diff --git a/_images/bad_evaluation.png b/_images/bad_evaluation.png new file mode 100644 index 0000000..4560676 Binary files /dev/null and b/_images/bad_evaluation.png differ diff --git a/_images/biologic.png b/_images/biologic.png new file mode 100644 index 0000000..be7ce5b Binary files /dev/null and b/_images/biologic.png differ diff --git a/_images/bsui_startup.png b/_images/bsui_startup.png new file mode 100644 index 0000000..b112726 Binary files /dev/null and b/_images/bsui_startup.png differ diff --git a/_images/bsui_startup2.png b/_images/bsui_startup2.png new file mode 100644 index 0000000..2d5f2ed Binary files /dev/null and b/_images/bsui_startup2.png differ diff --git a/_images/cadashboard.png b/_images/cadashboard.png new file mode 100644 index 0000000..231907a Binary files /dev/null and b/_images/cadashboard.png differ diff --git a/_images/consumer.png b/_images/consumer.png new file mode 100644 index 0000000..70d3c54 Binary files /dev/null and b/_images/consumer.png differ diff --git a/_images/consumer_startup.png b/_images/consumer_startup.png new file mode 100644 index 0000000..fe929ad Binary files /dev/null and b/_images/consumer_startup.png differ diff --git a/_images/corridor.jpg b/_images/corridor.jpg new file mode 100644 index 0000000..1a6a820 Binary files /dev/null and b/_images/corridor.jpg differ diff --git a/_images/cryostat.jpg b/_images/cryostat.jpg new file mode 100644 index 0000000..12de205 Binary files /dev/null and b/_images/cryostat.jpg differ diff --git a/_images/ctrl-z.jpg b/_images/ctrl-z.jpg new file mode 100644 index 0000000..18f0567 Binary files /dev/null and b/_images/ctrl-z.jpg differ diff --git a/_images/dewar.jpg b/_images/dewar.jpg new file mode 100644 index 0000000..4e90ddd Binary files /dev/null and b/_images/dewar.jpg differ diff --git a/_images/dossier.png b/_images/dossier.png new file mode 100644 index 0000000..bd912cf Binary files /dev/null and b/_images/dossier.png differ diff --git a/_images/double_wheel_sm.jpg b/_images/double_wheel_sm.jpg new file mode 100644 index 0000000..193b911 Binary files /dev/null and b/_images/double_wheel_sm.jpg differ diff --git a/_images/doublewheel_spreadsheet.png b/_images/doublewheel_spreadsheet.png new file mode 100644 index 0000000..3aec911 Binary files /dev/null and b/_images/doublewheel_spreadsheet.png differ diff --git a/_images/find_slot.png b/_images/find_slot.png new file mode 100644 index 0000000..ded91e8 Binary files /dev/null and b/_images/find_slot.png differ diff --git a/_images/glancing_angle_stage.jpg b/_images/glancing_angle_stage.jpg new file mode 100644 index 0000000..638c460 Binary files /dev/null and b/_images/glancing_angle_stage.jpg differ diff --git a/_images/glancingangle_spreadsheet.png b/_images/glancingangle_spreadsheet.png new file mode 100644 index 0000000..b2933b9 Binary files /dev/null and b/_images/glancingangle_spreadsheet.png differ diff --git a/_images/good_evaluation.png b/_images/good_evaluation.png new file mode 100644 index 0000000..626b1cf Binary files /dev/null and b/_images/good_evaluation.png differ diff --git a/_images/grid_spreadsheet.png b/_images/grid_spreadsheet.png new file mode 100644 index 0000000..3cbbd72 Binary files /dev/null and b/_images/grid_spreadsheet.png differ diff --git a/_images/halfwheel.jpg b/_images/halfwheel.jpg new file mode 100644 index 0000000..e72d4dd Binary files /dev/null and b/_images/halfwheel.jpg differ diff --git a/_images/hdmi.jpg b/_images/hdmi.jpg new file mode 100644 index 0000000..202e115 Binary files /dev/null and b/_images/hdmi.jpg differ diff --git a/_images/lakeshore331.png b/_images/lakeshore331.png new file mode 100644 index 0000000..a15262d Binary files /dev/null and b/_images/lakeshore331.png differ diff --git a/_images/lakeshore_spreadsheet.png b/_images/lakeshore_spreadsheet.png new file mode 100644 index 0000000..7cf3b51 Binary files /dev/null and b/_images/lakeshore_spreadsheet.png differ diff --git a/_images/linkam.jpg b/_images/linkam.jpg new file mode 100644 index 0000000..f9d15ca Binary files /dev/null and b/_images/linkam.jpg differ diff --git a/_images/linkam_spreadsheet.png b/_images/linkam_spreadsheet.png new file mode 100644 index 0000000..12272ec Binary files /dev/null and b/_images/linkam_spreadsheet.png differ diff --git a/_images/map.png b/_images/map.png new file mode 100644 index 0000000..9574f91 Binary files /dev/null and b/_images/map.png differ diff --git a/_images/monitoring.png b/_images/monitoring.png new file mode 100644 index 0000000..159a1b5 Binary files /dev/null and b/_images/monitoring.png differ diff --git a/_images/new_IC.jpg b/_images/new_IC.jpg new file mode 100644 index 0000000..09c32b7 Binary files /dev/null and b/_images/new_IC.jpg differ diff --git a/_images/old_IC.jpg b/_images/old_IC.jpg new file mode 100644 index 0000000..8a15cf7 Binary files /dev/null and b/_images/old_IC.jpg differ diff --git a/_images/pilatus.jpg b/_images/pilatus.jpg new file mode 100644 index 0000000..fcb2a1f Binary files /dev/null and b/_images/pilatus.jpg differ diff --git a/_images/prompt.png b/_images/prompt.png new file mode 100644 index 0000000..c8df43a Binary files /dev/null and b/_images/prompt.png differ diff --git a/_images/quadem.jpg b/_images/quadem.jpg new file mode 100644 index 0000000..645d24d Binary files /dev/null and b/_images/quadem.jpg differ diff --git a/_images/ref_wheel.jpg b/_images/ref_wheel.jpg new file mode 100644 index 0000000..037cdbf Binary files /dev/null and b/_images/ref_wheel.jpg differ diff --git a/_images/rocking_curve_333_E=3716.png b/_images/rocking_curve_333_E=3716.png new file mode 100644 index 0000000..5066fc5 Binary files /dev/null and b/_images/rocking_curve_333_E=3716.png differ diff --git a/_images/segfault.png b/_images/segfault.png new file mode 100644 index 0000000..657aa3e Binary files /dev/null and b/_images/segfault.png differ diff --git a/_images/slack.png b/_images/slack.png new file mode 100644 index 0000000..a79c73a Binary files /dev/null and b/_images/slack.png differ diff --git a/_images/spinner-alignment.png b/_images/spinner-alignment.png new file mode 100644 index 0000000..808e625 Binary files /dev/null and b/_images/spinner-alignment.png differ diff --git a/_images/triplot.png b/_images/triplot.png new file mode 100644 index 0000000..212b03b Binary files /dev/null and b/_images/triplot.png differ diff --git a/_images/usbcam1.jpg b/_images/usbcam1.jpg new file mode 100644 index 0000000..8ea12a5 Binary files /dev/null and b/_images/usbcam1.jpg differ diff --git a/_images/usbcam2.jpg b/_images/usbcam2.jpg new file mode 100644 index 0000000..3fd6c41 Binary files /dev/null and b/_images/usbcam2.jpg differ diff --git a/_images/wheel_spreadsheet.png b/_images/wheel_spreadsheet.png new file mode 100644 index 0000000..0b6d189 Binary files /dev/null and b/_images/wheel_spreadsheet.png differ diff --git a/_images/wheel_stage.jpg b/_images/wheel_stage.jpg new file mode 100644 index 0000000..e8c55ef Binary files /dev/null and b/_images/wheel_stage.jpg differ diff --git a/_sources/automation.rst b/_sources/automation.rst new file mode 100644 index 0000000..8b4a687 --- /dev/null +++ b/_sources/automation.rst @@ -0,0 +1,530 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. _automation: + +Beamline automation +=================== + +BMM currently supports five categories of spreadsheet-based automation: + +#. Sample wheels, both single (`spreadsheet + `__) + and double (`spreadsheet `__) ring +#. Linkam stage temperature control (`spreadsheet + `__) +#. LakeShore 331 controller for Displex cryostat (`spreadsheet `__) +#. Glancing angle stage (`spreadsheet + `__) +#. Generic XY grids (`spreadsheet + `__) + +The latest spreadsheets for each of these can always be found at +https://github.com/NSLS-II-BMM/profile_collection/tree/master/startup/xlsx + + +Each of the spreadsheets looks much like this, although there are some +differences in the columns corresponding to the different instruments. + +.. _fig-wheel-spreadsheet: +.. figure:: _images/wheel_spreadsheet.png + :target: _images/wheel_spreadsheet.png + :width: 70% + :align: center + + Example spreadsheet for running an experiment from a wheel with a + single sample ring. + +Make sure you are using the most up-to-date version of the spreadsheet. + +.. note:: The current spreadsheet version is **12**, as of 26 + January, 2024. You should *always* use a current + spreadsheet. + + +Common features +--------------- + +Default information +~~~~~~~~~~~~~~~~~~~ + +All the spreadsheets use the concept of "default" scan information, +that is, information that is expected to be used for most or all of the +indicated measurements. In :numref:`Figure %s +`, the defults are entered into the row with the +green background. All rows underneath the green line are used to +describe individual measurements. + +For an individual measurement, if a white cell is left blank, the +default value from the corresponding green cell will be used. If a +white cell is filled in, that value will be used for that measurement. + +Experimenters +~~~~~~~~~~~~~ + +The other green part of the spreadsheet is a cell for entering the +names of all the experimenters involved in the measurement. + +This should **always** be filled in. Doing so allows for the +possibility of searching BMM's master database for data associated +with a particular user. + +.. _spreadsheet_options: + +Measurement options +~~~~~~~~~~~~~~~~~~~ + +Beneath the experimenter cell, there are three drop-down menus for +setting aspects of the sequence of measurements described on the +spreadsheet tab. + +#. A yes/no menu for forcing Bluesky to run the ``change_edge()`` + command at the beginning of the measurement sequence. + +#. A yes/no menu for telling Bluesky to close the shutter at the end + of the measurement sequence. + +#. A menu of options for modifying filenames to contain information + about things like absorber element, edge symbol, LInkam stage + temperature, and so on. This simplifies data entry into the + ``filename`` column of the spreadsheet. + +#. A place for specifying the number of repetitions of the entire + spreadsheet. This is different from the column labeled + "repetitions", which specifies the number of repeated XAS scans of + the sample in that row of the spreadsheet. + + +Selecting a spreadsheet +~~~~~~~~~~~~~~~~~~~~~~~ + +All spreadsheets are imported using the :file:`xlsx()` command. The +spreadsheets are self-identifying. Every spreadsheet has an +identifying string spanning cells B1:C1. This is the cell with the +pink background. + +.. caution:: **Never** change the text in the pink cell or your + spreadsheet will likely be interpreted incorrectly. + +To convert a spreadsheet into a macro then run the macro, do the +following: + +.. sourcecode:: python + + xlsx() + +This will show a numbered list of all :file:`.xlsx` files in your data +folder, something like this: + +.. sourcecode:: text + + Select your xlsx file: + + 1: 20210127-KB1.xlsx + 2: 20210127-KB3.xlsx + 3: 20210128-KB2.xlsx + 4: 20210128-KB4.xlsx + 5: 20210128-KB5.xlsx + 6: wheel_template.xlsx + + r: return + + Select a file > + +Select the :file:`.xlsx` file you want to import. Based on the +content of the pink identifying cell, your spreadsheet will be +interpreted appropriately. + +You may have multiple tabs in the spreadsheet file. If the file you +selected from the menu shown above has multiple tabs, you will be +presented with a menu of tabs, something like this: + +.. sourcecode:: text + + Select a sheet from yourfile.xlsx: + + 1: tab1 + 2: tab2 + 3: tab3 + + r: return + + Select a file > + +Enter the number corresponding to the tab to be measured. + +The menu of tab selections will only be presented if there is more +than one tab in the spreadsheet file. + +You may organize your experiment in a single file with multiple tabs +or in multiple files (each with one or more tabs). That is enturely +up to you. + +Generating Bluesky instructions +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The tab on the selected spreadsheet file will be parsed, then a macro +file generated called :file:`_macro.py` and an INI file called +:file:`.ini`, where :file:`` is the name of the tab from +which the instructions were read. + +It is, therefor, a very good idea to give your tabs names that +indicate something about the experiment being described on that tab. + +The INI file (:numref:`Section %s `) contains the default values +from the green line (see :numref:`Figure %s `). +The macro file is imported into the BlueSky session, providing a new +with the name of the spreadsheet file. If the tab in the spreadsheet +was called :file:`mysamples`, the new BlueSky command is called +``mysamples_macro()``. + +.. todo:: + + Convert spreadsheets to Bluesky queueserver input. + + +.. _sample_wheel_automation: + +Sample wheel automation +----------------------- + +The standard *ex situ* sample holder at BMM is a plastic wheel that +get mounted on a rotation stage. Examples are shown in figures +:numref:`fig-wheels`. The rotation stage is mounted on an XY stage, +so when one slot on the sample wheel is aligned, all the slots are +aligned. + +.. subfigure:: AB + :layout-sm: AB + :gap: 8px + :subcaptions: above + :name: fig-wheels + :class-grid: outline + + .. image:: _images/Samplewheel.jpg + + .. image:: _images/double_wheel_sm.jpg + + (Left) A single-ring sample wheel with 24 sample positions. + (Right) Double-ring sample wheels with 48 sample positions. There + are options for both wheel styles with 13mm x 3 mm slots or 13mm + diameter holes. The rings on the double wheel are 26 mm apart + (center to center of slots/holes). + +The automation concept is that each slot on the sample wheel is +described by a row in the spreadsheet. Each column of the spreadsheet +carries one parameter of the XAFS scan. + + +.. _fig-doublewheel-spreadsheet: +.. figure:: _images/doublewheel_spreadsheet.png + :target: _images/doublewheel_spreadsheet.png + :width: 70% + :align: center + + Example spreadsheet for running an experiment from a wheel with a + two sample rings. Links: `single wheel spreadsheet + `_ + and `double wheel spreadsheet `_. + + +If you have read :numref:`Section %s ` about the INI file, then +most of the columns in this spreadsheet will be quite familiar. Most +of the columns are used to specify the same set of parameters as in +the INI file |nd| file name, element, edge, and so on. + +.. note:: February 2020 + + The E\ :sub:`0` column is no longer used. E\ :sub:`0` is now + always taken from the tabulated value for ``element`` and + ``edge``. Some effort is made to read spreadsheets from before + Feb. 2020, but they are deprecated and no longer guaranteed to + work. + +The green cell in the first row is used to input the names of all the +people involved in the experiment, as explained above. + +As explained above, row 6, row with an entirely green background, is +used to specify the default values for all the parameters. The +concept here is to try to avoid having to input repetitive +information. For instance, in this case, all measurements will be +made at the Fe K edge. The element and edge are all specified in the +green row. Those cells are left blank for all subsequent rows, so the +default values will be used. + +In short, any cell that is left blank will use the value from the +green, default row. Any cell for which a value is specified will be +used in the macro that gets generated. + +The first column is used to specify the slot number for each sample on +the sample wheel. + +The second column is a simple way of excluding the slot from +measurement simply by specifying *No*. + +The next several columns correspond to lines in the INI file as +explained in :numref:`Section %s `. + +Energy changes can be included in the macro by specifying different +values for element and/or edge in a row. When specified +and different from the previous row, a call to the ``change_edge()`` +command (:numref:`Section {number} `) is inserted into the macro. + +Not shown in :numref:`Figure %s ` are columns for +tweaking the ``xafs_x`` and ``xafs_y`` positions, adjusting the +horizontal size of :numref:`slits3 (see Section %s) `, and +adjusting the fluorescence detector position. + + +Again, assuming the tab in the spreadsheet was called ``mysamples``, +you can then run the macro generated from the spreadsheet by:: + + RE(mysamples_macro()) + + +Here are the first few lines of the macro generated from this +spreadsheet. Note that for each sample, the macro first moves using +the ``slot()`` command, then measures XAS using the ``xafs()`` +command. The ``xafs()`` command uses the INI file (:numref:`Section +{number} `) generated from the green default line and has +explicit arguments for the filled-in spreadsheet cells. + +.. sourcecode:: python + :linenos: + + yield from slot(1) + yield from xafs('MnFewheel.ini', filename='Fe-Rhodonite', sample='MnSiO3', comment='ID:93 Russia') + close_last_plot() + + yield from slot(2) + yield from xafs('MnFewheel.ini', filename='Fe-Johannsonite', sample='CaMnSi2O6 - LT', comment='B –Iron Cap Mine; Graham Country, Arizona') + close_last_plot() + + yield from slot(3) + yield from xafs('MnFewheel.ini', filename='Fe-Spessartine', sample='Mn3Al2(SiO4)3', comment='Grants Mining District; New Mexico') + close_last_plot() + + +Linkam stage automation +----------------------- + +One of the temperature control options at BMM is a `Linkam stage +`_. Ours is the kind that can cool +using liquid nitrogen flow or heat up to 600 C using a resistive +heater. The linkam stage is typically mounted upright on top fo the +XY stage. + + +.. subfigure:: AB + :layout-sm: AB + :subcaptions: above + :gap: 8px + :name: fig-linkamstage + :class-grid: outline + + .. image:: _images/linkam.jpg + + .. image:: _images/dewar.jpg + + (Left) The Linkham stage mounted for transmission on the sample + stage. (Right) The 25 L dewar used for cooling the Linkam stage. + + +The automation concept for the Linkam stage is quite similar to the +*ex situ* sample holder. Instead of specifying the slot position of the +sample, you will specify the target temperature for the measurement. +There is also a column for specifying the holding time after arriving +at temperature before beginning the XAFS measurement. + +The feature described in :numref:`Section %s ` +for modifying filenames is particularly useful in this context. It +can be used to put the measurement temperature in the filename, +allowing you to simply specify a default filename, leaving that cell +in each row blank. The generated data files will then have sensible +names. + + +.. _fig-linkam-spreadsheet: +.. figure:: _images/linkam_spreadsheet.png + :target: _images/linkam_spreadsheet.png + :width: 70% + :align: center + + Example spreadsheet for running a temperature-dependent experiment + using the Linkam stage. Link to the `Linkam spreadsheet + `_ + +LakeShore/Displex automation +---------------------------- + +For extremely low temperature experiments, BMM has a Displex crystat +which uses a two-stage helium compressor to cool the cold head down as +low as 10K with temperature control between 10K and 500K using a +resistive heater and a `LakeShore temperature controller +`__. + +This is a somewhat unusual version of the Displex system in that it is +suitable for low-vibration applications. The compressor is +mechanically decoupled from the cold head, reducing the motion of the +sample. As a result of this cooling system, it is somewhat +time-consuming to temperature cycle and replace samples. Expect that +cooling from room temperature to 10K will take about 2 hours and +budget up to an an hour for returning to room temperature and changing +samples. + +.. subfigure:: AB + :layout-sm: AB + :gap: 8px + :subcaptions: above + :name: fig-displex + :class-grid: outline + + .. image:: _images/cryostat.jpg + + .. image:: _images/lakeshore331.png + + (Left) The Displex cryostat and it's compressor. (Right) The + LakeShore 331 controller, used to control temperature for the + cryostat shown to the left. + + +The automation for the LakeShore 331 works much the same as for the +Linkam stage. Again, you will specify the target temperature for the +measurement. And there is a column for specifying the holding time +after arriving at temperature before beginning the XAFS measurement. + +There is a column for specifying the power level of the heater in the +cryostat. There are three power settings. + +.. _fig-lakeshore-spreadsheet: +.. figure:: _images/lakeshore_spreadsheet.png + :target: _images/lakeshore_spreadsheet.png + :width: 70% + :align: center + + Example spreadsheet for running a temperature-dependent experiment + using the Displex cryostat and the LakeShore 331. Link to the + `LakeShore spreadsheet `_. + + +.. + .. _fig-lakeshoreCSS: + .. figure:: _images/lakeshoreCSS.png + :target: _images/lakeshoreCSS.png + :width: 30% + :align: center + + The CSS screen for the LakeShore 331. + + +Glancing angle stage automation +------------------------------- + +This stage is used to automate measurement at glancing angle, usually +on thin film samples. The stage can be mounted horizontally or +vertically, allowing measurement of in- or out-of-plane strain in thin +films. + +.. _fig-glancinganglestage: +.. figure:: _images/glancing_angle_stage.jpg + :target: _images/glancing_angle_stage.jpg + :width: 50% + :align: center + + The glancing angle stage with 8 sample positions. + +This stage is mounted on a rotation stage to move between samples. +The rotation stage is mounted on a tilt stage to set the incident +angle of the beam relative to the sample surface. This entire set up +is mounted on the XY stage for alignment on the beam. + +Each sample is affixed to a sample spinner (which is simply a cheap, 24 VDC +CPU fan). The 8 spinners are independently controlled via slip ring +electrical connection that runs through the axis of the rotation +stage. In practice, only the sample that is being measured is spinning. + +Again, the automation concept is very similar to the *ex situ* sample +wheel. Instead of specifying slot number, the spinner number is +specified on each row. There is also a yes/no menu for specifying +whether the sample spins during measurement. + +.. _fig-glancingangle-spreadsheet: +.. figure:: _images/glancingangle_spreadsheet.png + :target: _images/glancingangle_spreadsheet.png + :width: 70% + :align: center + + Example spreadsheet for running an experiment using the glancing + angle stage. Link to the `glancing angle spreadsheet + `_. + +Not shown in :numref:`Figure %s ` are +columns for specifying how sample alignment is handled. The default +is to do automated alignment. This works by following this script: + +#. Move the stage to an incident angle that is close to flat for the + sample and start the sample spinning. +#. Do a scan in the vertical direction, measuring the signal in the + transmission chamber. Fit an error function to the transmission + signal. The centroid of that function is the position with the + sample half-way in the beam. +#. Do a scan in pitch, measuring the signal in the transmission + chamber. The peak of that measurement is the position where the + sample is flat relative to the beam direction. +#. Repeat steps 2 and 3. +#. Move the sample tilt to the angle specified by the user in the + spreadsheet. +#. Do a scan in the vertical direction, measuring the signal in the + fluorescence detector. The center of mass of that measurement is + the position where the beam is well-centered on the sample. + +The result of this fully automated sequence is shown in +:numref:`Figure %s `. + +.. _fig-spinner_alignment: +.. figure:: _images/spinner-alignment.png + :target: _images/spinner-alignment.png + :width: 50% + :align: center + + This visual representation of the automated glancing angle + alignment is posted to Slack and presented in the measurement + :numref:`dossier (Section %s) `. + +For some samples, the automated alignment is unreliable, so there is +an option in the spreadsheet for manual alignment. In that case, find +the ``xafs_y`` and ``xafs_pitch`` positions for the sample at its +measurement angle and well-aligned in the beam. Enter those numbers +and they will be used by the macro rather than performing the +automated alignment. + +Motor grid automation +--------------------- + +The final kind of automation-via-spreadsheet available is BMM is for a +generic motor grid. The most common motor grid used for measurement +is the sample XY stage, ``xafs_x`` and ``xafs_y``. However, any two +motors on the beamline can be used for the grid. + +There are columns (to the left of the view shown in :numref:`Figure %s +`) for specifying the axes in the grid. + +In all other ways |nd| except for the ``slot`` column |nd| this +spreadsheet is identical to the *ex situ* sample wheel spreadsheet. + +.. _fig-grid-spreadsheet: +.. figure:: _images/grid_spreadsheet.png + :target: _images/grid_spreadsheet.png + :width: 70% + :align: center + + Example spreadsheet for running an experiment on an XY grid. Link + to the `motor grid spreadsheet + `_. + diff --git a/_sources/before.rst b/_sources/before.rst new file mode 100644 index 0000000..587a1ef --- /dev/null +++ b/_sources/before.rst @@ -0,0 +1,204 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. _before: + +Before your Beamtime +==================== + +Register for BNL Site Access +---------------------------- + +Upon receipt of notification of your beamtime, verify that all +the team members attending your experiment have a valid BNL Guest +registration. + +.. note:: + + + New registration requests as well as extension requests for + expired registrations should be submitted as soon as possible. + + Approvals for guest registrations require two months for non-US + citizens and longer for certain nationalities. + +Apply for a BNL Guest appointment: https://www.bnl.gov/ps/userguide/beforearrival.php + +.. caution:: Without an active appointment, you will not be allowed + on site and will be turned away at the main gate. + +BNL Domain Account +------------------ + +When your BNL Guest registration becomes active, you should receive an +email with instructions for enabling your BNL domain account. You must +do this, including setting your password and signing up for DUO +Federal two-factor authentication. + +If you need to request an account, go to https://www.bnl.gov/accounts/ +and click the button that says "Submit account registration form". + +Enabling your BNL account is non-optional. You must have an active +account in order to unlock the computers at the beamline. + +.. caution:: Without an active account, a known password, and DUO + Federal two-factor authentication, you will be unable to + perform your experiment. + +Safety Approval Form +-------------------- + +Submit your Safety Approval Form (SAF) **at least** two weeks before +the start date for your experiment. Your SAF should provide a +complete and accurate description of the experiment, including all +samples, chemicals, solvents, reference materials, and equipment that +will be used during the experiment and for sample preparation. In +addition, any additional equipment not provided by the beamline has to +be identified and described in the SAF. Provide detailed information +on sample processing and any safety measures necessary. + +.. caution:: An approved SAF is required on the first day of beamtime. + Without enough time for approval, you may lose your + beamtime. + +To submit a SAF: https://pass.bnl.gov + +If your experiment requires chemicals, compressed gases, lab access, +or other equipment, please contact `Bruce Ravel +`__ well ahead of your expriment. +Transportation of hazardous materials related to your experiment to +the BNL site and back to the home institution is your responsibility. + + +Support Laboratories +-------------------- + +Currently, four labs support user activities at BMM. They are: + ++ Lab 3L-L06: XAS Sample Prep Lab ++ Lab 3L-L07: Environmental Science Wet Lab ++ Lab 3L-L09: XAS Chemistry Lab ++ Lab 4L-L09: Electrochemistry Lab + +See https://www.bnl.gov/nsls2/labs/ for details of what equipment is +available in each lab. + +If you prepare or treat samples on-site, you **must** request use of +the appropriate NSLS-II User Laboratory when you submit your Safety +Approval Form. + +You cannot request a laboratory after an SAF has been approved. + +Here is some advice on selecting the correct lab: + +Unbound nanoparticles + Please note that supported nanoparticles or nanoparticles in + solution are not considered “unbound”. If your samples are indeed + unbound, please contact BMM beamline scientist Bruce Ravel + (bravel@bnl.gov) as soon as possible. + +Solid sample preparation (pellet pressing, spreading on tape, etc) + Request Lab 3L-L06. + +Liquid samples (organic solvents, acids, bases) and simple chemistry + Request Lab 3L-L09. + +Hydrofluoric acid treatment + Request Lab 3L-L09 and notify the Cognizant Space Manager, Syed Khalid + (khalid@bnl.gov), as soon as possible. + +Environmental and earth science sample preparation and treatment + Request Lab 3L-L07. + +Electrochemistry and battery science + Request Lab 4L-L09. + +.. admonition:: Radiological samples + + Radionuclide samples must be prepared and properly contained at the + home institution. NSLS-II has no lab available for work on + radiological materials. Samples with depleted uranium and uranium + at low or environmentally relevant concentrations **are** + considered to be radiological samples at NSLS-II and must be + treated as such. + +Requests for using gloveboxes should be discussed prior to submitting +the SAF, contact Bruce Ravel (bravel@bnl.gov) and/or Syed Khalid +(khalid@bnl.gov) + +.. important:: Each lab you select on your safety approval form makes work + for the lab stewards. Only request the lab(s) that you + actually intend to use. + +Training +-------- + +Please complete all required online user training at least one week +before the starting date. Failure to complete training will result in a +delay starting your experiment. + +To complete your training, follow the training instructions at: +https://www.bnl.gov/ps/userguide/beforearrival.php + + +Electrical Equipment +-------------------- + +Any equipment with an electrical cable including low-voltage +instruments and sample holderss are considered electrical equipment +(laptop computers are excluded). + +If you plan to bring electrical equipment for your experiment, please +contact Jerome Malley, Electrical Equipment Inspection (EEI) Manager +at malley@bnl.gov as soon as practical and at least two weeks before +the start of your experiment. Be prepared to provide manuals, photos, +electrical diagrams, and schematics. + +Please include beamline staff (Bruce Ravel for all +experiments; Vesna Stanic & Jean Jordan-Sweet + for XRD experiments) in your communication as some +pre-approved electrical equipment (e.g., potentiostat, heaters, +temperature meters, and controllers) may be available at the beamline. + +.. note:: Failure to comply with EEI will result in a delay to your + experiment. Equipment that cannot pass EEI may not be used + at NSLS-II. + +Research Equipment Pool +----------------------- + +Many experimental tools are available from `the NSLS-II Research +Equipment Pool +`__. If you +wish to use any items from equipment pool, contact `Bruce Ravel +`__ well ahead of your experiment. + + +Shipping things to the beamline +------------------------------- + +Things should be shipped to + +.. code-block:: none + + Bruce Ravel / Beamline 6BM + Building 740 + Brookhaven National Laboratory + Upton NY 11973 + +The Day of your Experiment +-------------------------- + +.. note:: Unless told otherwise, your experiment starts at 8 am. + +You should consider having all team members arrive the afternoon prior +to the first day of the beamtime to check in at `the GUV Center +`__ and to complete beamline specific +training. + +Please consult `NSLS-II user guide `__ +or contact BMM beamline staff for more information. diff --git a/_sources/cheatsheet.rst b/_sources/cheatsheet.rst new file mode 100644 index 0000000..3bba406 --- /dev/null +++ b/_sources/cheatsheet.rst @@ -0,0 +1,363 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. role:: key + :class: key + +.. _cheatsheet: + +Command cheatsheet +================== + +This section provides a quick summary of the data acquisition commands +discussed in the previous sections. + +.. admonition:: Stopping a measurement + + To stop any command do :key:`Ctrl`-:key:`C` :key:`Ctrl`-:key:`C` + + That is, hit :key:`Ctrl`-:key:`C` twice! + + This will **pause** the running command and return you to the command line. + + Do ``RE.resume()`` to continue the command from where it stopped. + + Do ``RE.stop()`` to fully stop the command. + + +The most essential information +------------------------------ + +.. note:: Parentheses |nd| ``()`` |nd| are an essential part of the + syntax. Same for ``RE()`` and ``%`` when specified. + + +Most common commands +~~~~~~~~~~~~~~~~~~~~ + + +``shb.open()`` / ``shb.close()`` + Open / close the photon shutter + +``RE(mv(dcm.energy, ))`` + Move TO an energy value + +``RE(mv(xafs_y, ))`` + Move any named motor TO a position (``xafs_y`` is an example) + +``RE(mvr(xafs_y, ))`` + Move any named motor BY an amount (``xafs_y`` is an example) + +``RE(change_edge('Xx'))`` + setup beamline for an absorption edge, ``Xx`` = 1- or 2-letter symbol, + e.g. ``Cu`` or ``Y``. + +``RE(slot())`` + Move sample wheel to slot #N (1 |le| N |le| 24) + +``RE(xafs_wheel.outer())`` / ``RE(xafs_wheel.inner())`` + move the *ex situ* wheel sample holder to the outer/inner ring + +``%xrf`` + measure and display an XRF spectrum + +``RE(linescan(, , , , ))`` + move a motor, plot a signal + +``RE(pluck())`` + Select a point from a plot on screen and move that motor to that position + +``xlsx()`` + import a spreadsheet + +``RE(xanes())`` + quick-n-dirty XANES scan at the current element and edge + + +Most common motors +~~~~~~~~~~~~~~~~~~ + +See :numref:`Section %s ` for the full list of +``xafs_`` motors. + + ============== =========== ========= ======================= ================================== + motor type units notes directions + ============== =========== ========= ======================= ================================== + ``xafs_x`` linear mm main sample stage |plus| outboard, - inboard + ``xafs_y`` linear mm main sample stage |plus| up, - down + ``xafs_det`` linear mm detector mount |plus| away from sample, - closer + ============== =========== ========= ======================= ================================== + + + +Full list of commands +--------------------- + +Note that some command must be run through the run engine, other do +not. The use of ``RE()`` is called explicitly in :numref:`Table %s +`. Any command that should be run through the run +engine will complain with this hint: + +.. code-block:: text + + BMM D.111 [48] > mvr(xafs_x, 2) + Out[48] Hint: enclose bsui commands in RE() + + + +.. table:: Main BlueSky commands used at BMM (don't type the ``<`` or + ``>``, those symbols indicate that the argument is numeric.) + :name: command-list + :align: left + + +------------------------------------------+----------------------------------------------------------------------------+ + | |mquad| |mquad| |mquad| |mquad| |mquad| **Shutter commands** | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``shb.open()`` / ``shb.close()`` | Open / close the photon shutter | + +------------------------------------------+----------------------------------------------------------------------------+ + | |mquad| |mquad| |mquad| |mquad| |mquad| **Mono tuning commands** | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(rocking_curve())`` | Measure the 2nd crystal rocking curve | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``tu()`` / ``td()`` | Tune the mono 2nd crystal by hand | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``TUNE_STEP=0.004`` | Tuning step size – 0.004 is good for Si(111), 0.002 for Si(311) | + +------------------------------------------+----------------------------------------------------------------------------+ + | |mquad| |mquad| |mquad| |mquad| |mquad| **Import an automation spreadsheet** | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``xlsx()`` | Select an existing spreadsheet from a list | + +------------------------------------------+----------------------------------------------------------------------------+ + | |mquad| |mquad| |mquad| |mquad| |mquad| **Mono movement commands** | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(mv(dcm.energy, ))`` | Move TO an energy value | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(mv(dcm.energy, + 50))`` | Move 50 eV **above** the edge | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(mv(dcm.energy, - 50))`` | Move 50 eV **below** the edge | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(mvr(dcm.energy, ))`` | Move BY an energy step | + +------------------------------------------+----------------------------------------------------------------------------+ + | |mquad| |mquad| |mquad| |mquad| |mquad| **Motor movement commands** | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(mv(xafs_y, ))`` | Move any named motor TO a position (``xafs_y`` is an example) | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(mvr(xafs_y, ))`` | Move any named motor BY an amount (``xafs_y`` is an example) | + +------------------------------------------+----------------------------------------------------------------------------+ + | |mquad| |mquad| |mquad| |mquad| |mquad| **Where are things?** | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``%w dcm`` | where's the mono? | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``%w slits3`` | where are the slits? | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``%w m2`` | where's mirror 2? (toroidal focusing mirror) | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``%w m3`` | where's mirror 3? (flat, harmonic rejection mirror) | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``%w xafs_table`` | where's the XAFS table? | + +------------------------------------------+----------------------------------------------------------------------------+ + | |mquad| |mquad| |mquad| |mquad| |mquad| **Change edge and mono crystal** | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(change_edge('Xx'))`` | setup beamline for an absorption edge, 1- or 2-letter symbol | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(change_xtals('h11'))`` | set monochromator, Si(111) or Si(311), h=1 or h=3 | + +------------------------------------------+----------------------------------------------------------------------------+ + | |mquad| |mquad| |mquad| |mquad| |mquad| **Experiment setup** | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(slit_height())`` | explore position of slits3 (then pluck to move dm3_bct) | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(dark_current())`` | measure electrometer dark currents | + +------------------------------------------+----------------------------------------------------------------------------+ + | |mquad| |mquad| |mquad| |mquad| |mquad| **ex situ sample stage** | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(slot())`` | Move sample wheel to slot #N (1 |le| N |le| 24) | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(find_slot())`` | align the *ex situ* wheel sample holder | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(xafs_wheel.outer())`` | move the *ex situ* wheel sample holder to the outer ring | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(xafs_wheel.inner())`` | move the *ex situ* wheel sample holder to the inner ring | + +------------------------------------------+----------------------------------------------------------------------------+ + | |mquad| |mquad| |mquad| |mquad| |mquad| **Glancing angle stage** | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(ga.to(N))`` | move glancing angle stage to sample N (1 |le| N |le| 8) + start spinner | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(ga.auto_align(pitch))`` | automatically align glancing angle stage and move to pitch | + +------------------------------------------+----------------------------------------------------------------------------+ + | |mquad| |mquad| |mquad| |mquad| |mquad| **Linkam stage** | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(mv(linkam, T))`` | move Linkam stage to temperature T | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``linkam.settle_time = 120`` | set Linkam settling time (in seconds) | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``linkam.status()`` | display Linkam status | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``linkam.on()`` / ``linkam.off()`` | turn Linkam on or off | + +------------------------------------------+----------------------------------------------------------------------------+ + | |mquad| |mquad| |mquad| |mquad| |mquad| **LakeShore temperature controller** | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(lakeshore.to(T, power))`` | move cryostat to temperature T with heater at ``power`` | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``lakeshore.settle_time = 120`` | set Linkam settling time (in seconds) | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``lakeshore.status()`` | display Linkam status | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(mv(lakeshore.power,3))`` | turn heater to full power | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(mv(lakeshore.power,0))`` | turn heater off | + +------------------------------------------+----------------------------------------------------------------------------+ + | |mquad| |mquad| |mquad| |mquad| |mquad| **Reference wheel** | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``RE(reference('Xx'))`` | Move to reference 'Xx' | + +------------------------------------------+----------------------------------------------------------------------------+ + | |mquad| |mquad| |mquad| |mquad| |mquad| **Get help** | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``%m`` | Show motors | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``%h`` | Show help | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``%k`` | Show keyboard shortcuts | + +------------------------------------------+----------------------------------------------------------------------------+ + | ``%se`` | Show reference foil and ROI configurations | + +------------------------------------------+----------------------------------------------------------------------------+ + + + +Photon delivery system modes +---------------------------- + +.. table:: Photon delivery system modes + :name: pds-mode-table + + ======= ============= ================= + Mode focused energy range + ======= ============= ================= + A |checkmark| 8 keV and up + B |checkmark| below 6 keV + C |checkmark| 6 keV to 8 keV + D |xmark| 8 keV and up + E |xmark| 6 keV to 8 keV + F |xmark| below 6 keV + XRD |checkmark| 8 keV and up + ======= ============= ================= + + +Slits3 coordinated motions +-------------------------- + +These coordinated motions behave just like single motors and can be +used with the motor movement commands in :numref:`Table %s `. + +Horizontal size + ``slits3.hsize`` (nominally 8 mm) + +Horizontal center + ``slits3.hcenter`` (nominally 0 mm) + + +Vertical size + ``slits3.vsize`` (nominally 1 mm) + +Vertical center + ``slits3.vcenter`` (nominally 0 mm) + + The vertical center should never be changed. Instead, align the + slits using ``dm3_bct`` and the ``slit_height()`` plan + (:numref:`Section %s `) + + + +Example movement: ``RE(mv(slits3.vsize, 0.5))`` + +Individual slits are named ``slits3.top``, ``slits3.bottom``, +``slits3.inboard``, ``slits3.outboard``. + + +Motor positions and limits +-------------------------- + +These commands work on any named motor (:numref:`Table %s `). + +Where is a sample motor? + ``%w xafs_x`` + +What are the soft limits? + ``xafs_x.hlm.value`` / ``xafs_x.llm.value`` + +Set a soft limit: + ``xafs_x.hlm.put(-95)`` / ``xafs_x.llm.put(-157)`` + + +Line scans +---------- + +.. code-block:: python + + RE(linescan(, , , , )) + +where + ++ ```` is a named motor, see :numref:`Table %s ` ++ ```` is one of: ``'it'``, ``'if'``, ``'ir'``, or ``'i0'`` ++ ````, ````, ```` are the boundaries relative to the + current position and the number of steps. + +The plot will be determined from the values of ```` and +```` + +This is a relative scan. + +After the scan, you will prompted to select a position to move to. +Single click the left button after a linescan to move to a position. + +.. code-block:: python + + RE(pluck()) + +to repeat that on the current plot. + + +Energy scans +------------ + +Start an XAFS scan, prompting for an :numref:`INI file (section %s) ` + +.. code-block:: python + + RE(xafs()) + +Start an XAFS scan using a specified :numref:`INI file (section %s) ` + +.. code-block:: python + + RE(xafs('myscan.ini')) + +In the INI file, set ``mode`` to transmission, fluorescence, +reference, or both to control the in-scan plotting display (both = +show transmission and fluorescence) + +Import a spreadsheet to perform automated XAFS measurements: + +.. code-block:: python + + xlsx() + +You will be prompted first for the name of a spreadsheet file, then +for the tab to be read. + +.. + Experiment log + -------------- + + Log entries are made for each scan. System and beamtime specific logs + are maintained. To insert a comment in the log, do: + + .. code-block:: text + + BMM_log_info(“This is my log entry”) + diff --git a/_sources/commonchores.rst b/_sources/commonchores.rst new file mode 100644 index 0000000..9b0d29f --- /dev/null +++ b/_sources/commonchores.rst @@ -0,0 +1,343 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. role:: key + :class: key + +.. _commonchores: + +Common chores +============= + +In this section, a variety of procedures around the beamline are +explained in detail. + + +Search the Hutch +---------------- + +The buttons on the hutch interlock panel are labeled with black +stickers with white numbers. Those labels correspond to the numbering +in these lists: + +To OPEN the hutch +~~~~~~~~~~~~~~~~~ + ++ 6. Close the shutter ++ 5. Press the "SBE" button ++ 4. ∙∙∙ ++ 3. Make sure the “Front Left Maglock” button is not green ++ 2. Press the green “Open Door” button, wait for the slow door to open ++ 1. Enter the hutch + + +To CLOSE the hutch +~~~~~~~~~~~~~~~~~~ + +Everyone but the person performing the search should leave the hutch. + +The search is done by and only one person. Only one person pushes all +the buttons. The serach **is not** a team sport! + +1. Complete the hutch search + + + Look in the mirror to see that no one is behind the table + + Press search button 1 + + Visually inspect the length of the hutch, verifying that it is empty of people + + Press search button 2 + + Exit the hutch + +2. ∙∙∙ +3. Push the “Front Left Maglock” button. It should be lit green +4. Push and hold the yellow “Close Door” button. Listen for the magnetic latch +5. Push the "SBE" button, wait for the loud noise to finish +6. You can now open the shutter + +Hutch search sign +~~~~~~~~~~~~~~~~~ + +These instructions are printed, laminated, mounted on a magnetic +sheet, and hung near the search station. I would like to make these +signs in various languages. If you would like to help by translating +this sign, download the Word document below. Make a translation into +your language and mail the Word doc back to Bruce. He will print and +mount the new translation! I am most eager for Chinese, Russian, and +German translations. + +:download:`Word document with hutch search instructions <_static/HutchSearch.docx>`. + + + +Change energy and prepare for fluorescence measurements +------------------------------------------------------- + +In this example, we are using Fe as the example. That is, we assume +your are moving the beamline to the state in which it is ready to +measure at the Fe K edge. For any other edge, simply change ``Fe`` to +the appropriate element in the following example. + +When you change samples, don’t forget to put the detector in a safe +state before swapping out the sample wheel. Move the detector all the +way back – ``RE(mv(xafs_det, 205))`` – then put the cap back on the +detector. Once you have secured the new sample wheel, remove the cap +before searching the hutch. + +Once the hutch is secured and you are back at the computer: + +#. Change edge with the ``RE(change_edge(‘Fe’))`` command. Wait for it + to finish and return to the command line. (See :numref:`{name}, + Section {number} ` for details.) + +#. Move the detector to middle position, say, 100: ``RE(mv(xafs_det, + 100))`` The range of positions for that motor is 205 (farthest back) + to about 20 (very close to sample). You can check the lower limit + with ``xafs_det.limits``. + +#. Measure an XRF spectra: ``%xrf``. Remember that you want the OCR + (total count rate) to be 200,000 or less on each of the four + channels. + +#. Adjust the detector position ``RE(mv(xafs_det, ))``. + Remeasure ``%xrf``. Iterate on the detector position until you get + a sensible signal on the detector. + +#. Record the detector position (``xafs_det.position`` or the number + next to ``det:`` in the :numref:`display (Section %s) + ` at the top of the top screen) for the current sample + in the spreadsheet. + +#. Move to a new sample position. To change slots on the *ex situ* + sample wheel: ``RE(slot(##))``, where the number (``##``) is + between 1 and 24. To change between inner and outer rings of + samples: ``RE(xafs_wheel.inner())`` and ``RE(xafs_wheel.outer())``. + For other sample holders, move the appropriate sample stages. + +#. To import the spreadsheet into bsui (the data acquisition program): + ``xlsx()`` You will be presented with a list of .xlsx file choices, + pick the correct one by number and hit :key:`Enter`. You will then be + presented with a list of tabs in the spreadsheet file, pick the + correct tab by number and hit :key:`Enter`. (See :numref:`{name}, + Section {number} ` for details.) + +#. The output of the ``xlsx()`` command will display the command for + reviewing the file (the one with ``??``) and the command for + running the measurement sequence (the one with ``RE( + ... )``). Check to make sure it looks like ``bsui`` correctly + imported the information from the spreadsheet (you did remember to + save the spreadsheet, yes...?), then start the measurements. + +Align the *ex situ* sample wheel +-------------------------------- + +The attractive feature of the *ex situ* sample wheel is that it makes +it easy to move from sample to sample. Once the wheel is properly +aligned in the beam, the command ``RE(slot(#))``, +``RE(xafs_wheel.inner())``, and ``RE(xafs_wheel.inner())`` are all +that's needed to move from sample to sample. + +For this to work, the wheel has to be properly aligned in the frist +place. + +Once the rotation stage is in place and a wheel is mounted on the +stage, place a phosphor screen in front of any slot *on the outer +ring*. It is essential that the initial alignment be done of the +outer ring. + +#. Rotate the wheel such that the phosphor screen is in the beam path + using ``RE(slot(#))``, where # is between 1 and 24. + +#. Make sure that at least one camera is looking at the phosphor screen. + +#. Secure the hutch and open the shutter. + +#. Move the sample stage in X and Y until you can see the spot of the + beam on the phosphor screen when looking through one of the + cameras. Use ``RE(mvr(xafs_x, ))`` and ``RE(mvr(xafs_y, + ))`` to move the stage in X and Y. ```` is a + *number* |nd| some sensible distance in millimeters, something like + 5 is often a good choice. + +#. Using ``RE(mvr(xafs_x, ))`` and ``RE(mvr(xafs_y, + ))``, move the stage such that the beam is approximately in + position to go through a slot on the outer ring. + +#. Rotate the stage to an empty slot using ``RE(slot(#))``. + +#. Run the alignment procedure ``RE(find_slot())``. This will perform + linescans in X and Y to find the position such that the beam is + passing through the middle of the slot. The resulting plot should + look like something like this: + + .. _fig-find_slot_chore: + .. figure:: _images/find_slot.png + :target: _images/find_slot.png + :width: 50% + :align: center + + An example of the final plot for an alignment of the *ex situ* + sample wheel. The green X marks shows the aligned positions in + ``xafs_x`` and ``xafs_y``. + + + + +This procedure sets a parameter specifying the ``xafs_x`` position of +the outer ring. The inner ring is known to be 26 mm away. Thus, the +positions of both rings are set. This is why it is important to run +``RE(find_slot())`` on an outer ring slot. + +Restart the Linkam stage +------------------------ + +When it comes time to change samples in the Linkam stage, it is +usually much easier to dismount the stage so that it can be loaded +while flat. + +Dismount +~~~~~~~~ + +#. Turn off the Linkam controller, the black box sitting on the half + rack underneath the XAS table. Reach around behind the unit and + press the power button. If using the LN2 siphon, you do not need + to power down the siphon box. + +#. Remove the control cable from the stage. This is the black cable + with the barrel connector seen in :numref:`Figure %s + `. If using the LN2 siphon, also remove the + two LN2 hoses, the thick gray and thinner white hoses in that + photo. + + .. _fig-linkam_chore: + .. figure:: _images/linkam.jpg + :target: _images/linkam.jpg + :width: 50% + :align: center + +#. Unbolt the metal bracket supporting the Linkam stage from the + sample stage. + +Remount +~~~~~~~ + +#. Affix the metal bracket to the same position on the sample stage. + +#. Reattach the control cable and the LN2 hoses (if using the LN2 + siphon). + +#. If using the LN2 siphon, you may need to blow dry nitrogen gas + through the various parts of the system to avoid obstruction of LN2 + flow by water ice. 30 seconds of flowing dry nitrogen should be + enough to clean out all the lines. + +#. Power up the main Llinkam controller by pressing the power button + on the backside of the black box. + +#. At any computer with CSS, reboot the Linkam control software, by + following these steps: + + #. Click the "Info" button on the Linkam screen: + + .. _fig-linkam_main: + .. figure:: _images/Linkam_main.png + :target: _images/Linkam_main.png + :width: 50% + :align: center + + #. Click the "Reboot" button in the middle of the "IOC Diagnostics" + screen + + .. _fig-linkam_info: + .. figure:: _images/Linkam_info.png + :target: _images/Linkam_info.png + :width: 50% + :align: center + + #. Click the "Reboot now!" button on the "IOC Reboot Confirmation" + page. + + .. _fig-linkam_reboot: + .. figure:: _images/Linkam_reboot.png + :target: _images/Linkam_reboot.png + :width: 50% + :align: center + + The "Reboot Now!" button will be surrounded by a dashed pink + outline while rebooting. When the dashed pink outline goes + away, the reboot is finished. + + You can close the reboot screen by clicking the little x on its + tab. You can then return to the main Linkam screen by clicking + the yellow arrow at the top of the "IOC Diagnostics" screen. + +You are now ready to begin using the Linkam stage. + + +Filling the 25 liter LN2 dewar +------------------------------ + +#. Open both hutch doors. To open the right (manual) door, press the + :green:`Front Right Maglock` button (the green light should go out) on + the HMI panel. Push the door open manually. + +#. Open main LN2 valve. Use the button on the "06BM utilities" CSS + screen or at the bsui command line do ``ln2.open()``. + + .. _fig-utilities: + .. figure:: _images/BMM_utilities.png + :target: _images/BMM_utilities.png + :width: 60% + :align: center + +#. Lower the dewar to the lowest possible position on the blue lift + cart. + + .. _fig-25ldewar: + .. figure:: _images/25ldewar.jpg + :target: _images/25ldewar.jpg + :width: 60% + :align: center + +#. Place the dewar close to the LN2 tap, but some distance away from + the O2 sensor on the ODH monitor. If using the 25 L dewar, move it + on the cart at all times. (If using the 2 L dewar, secure the top + while moving the dewar.) + +#. Don safety glasses, face shield, lab coat, and insulated gloves. + All of those things can be found in the hutch. + +#. With gloved hand, place feed line securely in the dewar with the + outlet at the bottom of the dewar. + +#. With gloved hand, open the manual valve. Listen to make sure the + flow sounds OK. The noise should quiet down once liquid starts + flowing. That should take a minute or less. + +#. Monitor the dewar **AT ALL TIMES** while filling. + +#. Look for the styrofoam float to know when the LN2 level is + approaching the top. **DO NOT OVERFILL**. + +#. When full, using a gloved hand, close the valve in the hutch to + stop LN2 flow. + +#. With a gloved hand, remove the feed line from dewar. Slide it into + its resting place against the back wall, behind the cable trays. + +#. Move the blue cart back to its position near the experiment. Lift + the dewar to its operating height such that the siphon reaches the + Linkam stage. + +#. Do not remove glasses, face shield, lab coat, or gloves from the + hutch. + +#. Open main LN2 valve. Use the button on the "06BM utilities" CSS + screen or at the bsui command line do ``ln2.close()``. + +#. Press the :green:`Front Right Maglock` button. The green light should be + on. Manually close the right hutch door. diff --git a/_sources/desktop.rst b/_sources/desktop.rst new file mode 100644 index 0000000..641db6d --- /dev/null +++ b/_sources/desktop.rst @@ -0,0 +1,132 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. role:: key + :class: key + +.. _desktop: + +BMM's Desktop +============= + +This section provides an explanation of how to recover BMM's data +collection workspace after restarting the computer. + +This is made a bit easier if a couple of symbolic links are made in +``~/bin/``. If not already done, do this at the command line: + +.. code-block:: sh + + ln -s ~/.ipython/profile_collection/startup/consumer/run-consumer ~/bin/run-consumer + ln -s ~/git/BMM-beamline-configuration/tools/run-cadashboard ~/bin/run-cadashboard + +Monitoring +---------- + +To have eyeballs on the operation of the beamline, we want ``Phoebus`` +for engineering screens and the ``cadashboard`` application for the +heads-up overview of the state of the beamline. + +Phoebus (engineering screens) + There are two ways to start Phoebus. + + The more hands-on way is to open a new terminal window or tab, the + type ``run-phoebus`` at the command line. This will open the + Phoebus window and it should remember to place it on the top screen. + + It is not necessary to keep open the terminal window used to launch + Phoebus. Phoebus is **very noisy**, spewing en endless stream of + logging messages to the screen. Happily, it forks itself upon + launch, so it is not necessary to keep that terminal window open. + If you first opened a new window or tab, you can safely close it. + + There should be an icon for Phoebus on the icon bar at the bottom of + the screen. It looks like a red eyeball. Click on it. + + Once Phoebus is open, if the layout was not restored, click on the + "Window" menu, then on "Load Layout", then select "Two cameras". + +cadashboard + Open a new terminal window. Resize the window so it is a few lines + tall, and the full width of the screen. + + At the command line run ``run-cadashboard``. Make the font much + bigger by hitting :key:`Ctrl`-\ :key:`Shift`-\ :key:`+` several + times |nd| maybe as many as 10 |nd| until it takes up the full width + of the screen. + + Resize the height to just cover the three lines of the dashboard. + Move the terminal to the very top of the top screen. You can hide + the window decoration by using :key:`Windows`-\ :mark:`rightclick,.` + to position the terminal window. + + + +.. _fig-monitoring: +.. figure:: _images/monitoring.png + :target: _images/monitoring.png + :width: 80% + :align: center + + Once Phoebus and cadashboard are open, they should look something + like this. + + + +Data collection and visualization +--------------------------------- + +The easiest way to manage data collection and visualization is to have +a terminal window with 3 tabs. One tab is used for ``bsui``, the data +acquisition program. A second tab is for the Kafka consumer which +handles most data visualization chores. The third tab is just a +normal bash command line, which is always handy to have available. + +Once you have a three-tab setup, go to the tab for ``bsui``. At the +command line type ``bsui``. ``bsui`` startup at BMM is rather +time-consuming, but after a couple minutes it is ready to go. + + +Now go to the tab for the Kafka consumer. At the command line, type +``run-consumer``. This will take a minute or so to start, eventually +saying ``Ready to receive documents...``. At this point, scans will +generate plots. + + +.. subfigure:: AB + :layout-sm: AB + :subcaptions: above + :name: startup + :class-grid: outline + + .. image:: _images/bsui_startup2.png + + .. image:: _images/consumer_startup.png + + (Right) The tail end of the ``bsui`` startup messages and the + command prompt in the ``bsui`` tab. (Left) The Kafka plotting + consumer in its tab awaiting commands from ``bsui``. + + + + +All the rest +------------ + +Some other things that are handy to have on the desktop during an +experiment: + ++ Firefox, with tabs open to :numref:`the command cheatsheet (Section + %s) ` and the XAS webcam. ++ Slack ++ A dolphin (file browser) window with a tab open to the current + experiment + +Note that there are buttons on the icon bar at the bottom of the +screen for Athena and Hephaestus. diff --git a/_sources/details.rst b/_sources/details.rst new file mode 100644 index 0000000..6e4e43b --- /dev/null +++ b/_sources/details.rst @@ -0,0 +1,829 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. _details: + +Instrumentation Details +======================= + +This section is a scattershot assortment of details about things at +the beamline. This is basically an attempt to capture institutional +knowledge ... someplace. + +xf06bm-ws5, in-hutch Zoom calls +------------------------------- + +``xf06bm-ws5`` (``10.68.40.225``) is the System 76 Meerkat mounted on +the upstream wall of the end station. This machine is intended to +allow the users in the hutch to join a Zoom chat from within the +hutch. This helps Bruce provide user support from home. + +.. _fig-ws5: +.. figure:: _images/Xf06bm-ws5.jpg + :target: _images/Xf06bm-ws5.jpg + :width: 70% + :align: center + + +There are a number of peripherals attached to ``xf06bm-ws5``: + ++ A wireless mouse and keyboard clearly labeled as being for this + computer. These are normally tucked away on the ledge formed by the + panel seam on the upstream wall. I usually place these on the long + table when I want to use them + ++ A screen. This is the rather large screen mounted in the corner of + the hutch. It can be moved around somewhat for better viewing. + ++ A reasonably loud speaker. This is the Nylavee sitting on top of the + DIODE box above the beampipe next to the teddy bear in soldier + clothing. + ++ A good microphone. This is the Blue Yeti on stand above the IT + chamber on the XAS table. It has good noise cancellation so the din + from the XSpress3 should not effect voice quality. + ++ A decent camera. This is the Nexigo mounted overhead next to the + Axis webcam. + + +While these devices are all connected to ``xf06bm-ws5`` and powered +on, there are no long running processes that connect to the camera or +microphone. You are not being spied upon while in the hutch -- unless +you are on a Zoom call, in which case the Zoom session will be on +screen. + +``xf06bm-ws5`` is available via Guacamole. When needed for remote +support, Bruce will usually initiate the Zoom call and have the hutch +computer join in. + +Note that the speaker is a Bluetooth speaker. It shows up as SK100 +when you go into Settings and run a Bluetooth probe. The USB cable is +for power only. + +.. note:: To connect the speaker, select it in Settings then the + volume button on the right end of the speaker must be + pressed twice. + + + + +BNC Cable Map +------------- + +Here is an explanation of the BNC and SHV patch panels going between +rack D at the control station, Rack C on the roof of the hutch, and +the in-hutch patch panel. + + +.. _fig-bncpatch: +.. figure:: _images/Bnc_map.png + :target: _images/Bnc_map.png + :width: 100% + :align: center + +Inert Gas Plumbing +------------------ + +Needle valves are mounted on the outboard side of DM3. Quick connect +outlets for the gases are mounted on the upstream/inboard corner of +the XAFS table. + +.. _fig-inertgas: +.. figure:: _images/Gas_handling.png + :target: _images/Gas_handling.png + :width: 100% + :align: center + +Vendor link for quick-disconnect fixture: https://www.mcmaster.com/5012K122/ + +In practice, the H\ :sub:`2`/N\ :sub:`2` and N\ :sub:`2`/Ar mixing +channels are not much used. Unless measuring with the incident beam +below 5 keV or above 21 keV, it is a poor use of time to make changes +to the gas content of the ion chambers. This is because it takes +quite some time for the volume of the ion chamber to equillibrate. + +N\ :sub:`2` is adequate for almost all experiments at BMM. + + + +Analog Video Capture +-------------------- + +Implementing `this USB video adapter +`__ +to capture video from the small analog cameras in the hutch took a bit +of doing. + +First, the adapter must be plugged directly into the computer. Using +a USB hub makes for an unreliable interface to the camera. + +Second, the file ``/etc/udev/rules.d/99-usb-camera-capture.rules`` is +needed to set permissions on ``/dev/video0`` correctly when the adapter is +plugged in. + +.. code-block:: none + + ACTION!="add|change", GOTO="webcam_capture_end" + SUBSYSTEM=="usb", ATTRS{idVendor}=="534d", ATTRS{idProduct}=="0021", MODE="0666" + KERNEL=="video*", ATTRS{idVendor}=="534d", ATTRS{idProduct}=="0021", GROUP="video", MODE="0666" + KERNEL=="video*", ATTRS{idVendor}=="534d", ATTRS{idProduct}=="0021", ATTRS{avoid_reset_quirk}=1 + KERNEL=="video*", ATTRS{idVendor}=="534d", ATTRS{idProduct}=="0021", ATTRS{quirks}=0x100 + LABEL="webcam_capture_end" + +Putting this file in place will require assistance from DSSI. Beamline +staff do not have permission to make a file in that folder. See `this +Jira ticket `__ for an +example of what to ask for. + +This recognizes the vendor and product IDs of the specific adapter +that I bought. When inserted, it sets the device to RW for all users +and sets a couple of possibly relevant attributes. (This udev rules +file was adapted from the rules file that comes with the easycap dc60 +package – info and links `here +`__). + +Next a small function was written as a wrapper around `fswebcam +`__ to grab frames from the +camera. The function is basically a wrapper around a call to +``fswebcam`` like so: + +.. code-block:: sh + + fswebcam -d /dev/video0 -r 640x480 -S 30 -F 5 foo.jpg + +along with some image processing using python's ``wand`` package. + +Required packages: + ++ ``fswebcam`` ++ ``python-wand`` ++ ``imagemagick`` + +This whole setup is filled with quirk. There is a delay accessing the +video capture. The ``-S`` switch builds in a 1 second delay, giving the +capture device enough time to begin displaying the image. The ``-F`` +switch tells the script how many frames to accumulate for good signal. +5 is probably overkill. + +In any case, it is now possible to grab screen shots of the currently +displayed analog video while collecting data. + +All of this is implemented in ``BMM/camera_device.py`` for use in +Bluesky. The heart of the implementation is a system call to +``fswebcam``. From there, the image is saved as an asset and correctly +pointed to in databroker. See: + ++ `BMM/user_ns/detectors.py `__ ++ `BMM/camera_device.py `__ + + +Pilatus 100K +------------ + +.. todo:: Need to verify what's on the wiki page. + + + +DI Water Flow +------------- + +The DI water is controled by manual valves, which should only be +operated by the utilities group, and by solenoid valves in the FOE. +The solenoid valves are triggered by a water-sensing strip along the +floor of the FOE. They are also actuated by switches on the CSS +utilities screen. These toggles are the ones circled in pink inthe +screenshot on the left. + +The valves themselves are the large yellow and black boxes mounted +high on the back wall of the FOE. The valve indicators are the rods +with orange markings. When the valves are open, the orange marks are +facing downstream. When closed, the orange marks are rotated towards +the wall. Opening and closing those valves is managed through CSS. +They must be open for the utilities group to do their work on the DI +delivery to the mono and the filter assemblies. + +.. subfigure:: ABC + :layout-sm: ABC + :gap: 8px + :subcaptions: above + :name: fig-diwater + :class-grid: outline + + .. image:: _images/Water_flow_CSS.png + + .. image:: _images/Water_flow_valves_1.jpg + + .. image:: _images/Water_flow_valves_2.jpg + + (Left) The CSS utilities screen where the water valve controls are + found. (Middle) A view into the FOE. (Right) The inboard wall + where the physical valve is found. + +Disabling an MCS8 axis after a move +----------------------------------- + +From Adam Young at FMBO +~~~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: none + + The motors can be disabled after a movement and this can be set at the + Delta Tau level. + + First you will need to connect to each MCS8+ with the beamline laptop + and start PEWin. + + Then please do the following: + + + Click on the 'View' menu at the top of the window. Then click + 'Program/PLC Status (and upload)'. + + Select PLC1 and click 'Upload'. An editor showing PLC1 will appear. + + Scroll down to find the variables P105 to P805. The '1' to '8' part + of these variables represent axis 1 to 8 on the MCS8+. The value of + these variables determines whether or not the motors will be + disabled after a move. They are likely all set to '0' meaning power + stays on. The lateral motors are on axis 4 and 5 so P405 and P505 + should be set to '1'. + + Click on the yellow downwards pointing arrow on the toolbar in the + editor. This downloads the modified PLC1 from the editor to the + Delta Tau. Close the editor. + + In the terminal window issue a 'save' to save the modified + configuration to the Delta Tau non-volatile memory and issue '$$$' + to refresh the controller. + +A follow up from Graeme Elliner, FMBO +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. code-block:: none + + Just done a fast scan of the config file and I think it is probably + because P302=1. + + Px02 and Px05 (where x is the motor number) are special Pvars for + setting the final state of the motor once it has stopped moving, they + are used in PLC1x and set as you know in PLC1 + + If Px02=1 the PLC to check if the motor is in position and its + desired velocity is zero, if these two conditions are set a Flag is + set, If the conditions are still met 1second later then the motor + is put into OPEN LOOP. This means the motor is still enabled but + will ignore the encoder and the motor will hold its current rotary + location. This is useful for the motors that have DPTs pushing + against them in flexures (trapezoidal roll and pitch assy on the + DCMs), it gives a firm base for the DPT to push against but will + not try to hold position (as it would in closed loop) when the DPT + pushes the top part of the stage and moves the encoder. If Px05=1 + then the PLC checks to see if the motor is in position and has zero + velocity, then 1second later it will kill that motor + + Due to the way the code is ordered (it looks for thePx02 first) it + will enter Px02 check first, when the conditions are met it will + set the first Flag After that check it then see the Px05 check and + kills the motor. However on the next pass through the PLC it will + again enter the Px02 check, see that the first flag has been set + then trigger the open loop command, re-enabling the motor. + + Hence by setting P302=0 in PLC1, it will not go into the check and + not accidentally enable the motor. If this does not fix it then + the issue is in EPICS + +Conclusion +~~~~~~~~~~ + +The above suggestions were done for ``dm3_bct``, a motor that was +showing the re-enable behavior. This made that motor tricky to +operate in bluesky. Setting ``P302=0`` and ``P305=1`` did the trick. + + +Vortex pressure +--------------- + +Using a probe to measure the voltage on the IP port of the Vortex ME4. +This reading will tell you the internal pressure according to the +table in the snapshot below. + +.. _fig-votexpressure: +.. figure:: _images/Vortex_pressure.jpeg + :target: _images/Vortex_pressure.jpeg + :width: 40% + :align: center + + +====================== ========== + IP reading (Voltage) Pressure +====================== ========== + -0.01 5E-9 + -0.1 5E-8 + -1 5E-7 + -10 5E-6 +====================== ========== + + +Temperature reading should be 1.5 V when the TEC is at proper +temperature. + +`Vortex SDD manual +`__ +(link to copy at APS detector pool). + +DM3 CAT6 Patch Panel +-------------------- + +13 more CAT6 ports for use in the hutch. Note that ports listed as +SCI/EPICS are tagged ports on both subnets. + +This is needed by workstations (like ``xf06bm-ws5``), display machines +running CSS (like ``xf06bm-disp1``), and machines running IOCs (like +``xf06bm-xspress3``). + +Note that ``xf06bm-em1`` needs to be on an INST port while the ion +chambers are on EPICS ports. The difference is that the ion chambers +are running their own on-board IOCs, making them more like IOC servers +than instruments. + + + + ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| **Patch** | **Port** | **xf06bm-a port** | **Network** | **Role** | **Cable number** | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| **DM3-A** | 1 | 44 | EPICS | xf06bm-ic1 | 200235 | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| | 2 | 45 | EPICS | xf06bm-ic2 | 200236 | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| | 3 | 46 | EPICS | xf06bm-ic3 | 200237 | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| | 4 | 06bm-agg 36 | INST | xf06bm-em1 | 200238 | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| **DM3-B** | 1 | 17 | SCI/EPICS | xf06bm-ws5 | 200239 | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| | 2 | 18 | SCI/EPICS | xf06bm-disp1 | 200240 | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| | 3 | 19 | SCI/EPICS | xf06bm-xspress3 | 200241 | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| | 4 | | SCI/EPICS | | 200242 | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| **DM3-C** | 1 | | | | 200243 | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| | 2 | | | | 200244 | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| | 3 | | | | 200245 | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| | 4 | | | | 200246 | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| **DM3-D** | 1 | | | | 200247 | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| | 2 | | | unused | | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| | 3 | | | unused | | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ +| | 4 | | | unused | | ++-----------+----------+--------------------+----------------+---------------------+-------------------+ + + +Some photos of the patch panel: + +.. subfigure:: AB + :layout-sm: AB + :gap: 8px + :subcaptions: above + :name: fig-dm3cat6 + :class-grid: outline + + .. image:: _images/DM3_patch_panel.jpg + + .. image:: _images/DM3_first_cat6.jpg + + (Left) CAT6 patch panel at DM3. (Right) Lowest numbered label on + the CAT6 cables in the DM3 patch panel + + +Logitech controller +------------------- + +.. _fig-logitech: +.. figure:: _images/Logitech.png + :target: _images/Logitech.png + :width: 100% + :align: center + + +.. todo:: + + Explain how to configure buttons in CSS + + +Motor controllers +----------------- + +This section is a big, long list of all the motor PV names at BMM. + +Most motors have aliases. The alias is an alternate, easier-to-type +name for the axis. These are equivalent: + +.. code-block:: sh + + caget XF:06BMA-OP{Mono:DCM1-Ax:Bragg}Mtr + caget xafs_bragg + +Aliases work with most motor record fields, as well. The following are +also equivalent: + +.. code-block:: sh + + caget XF:06BMA-OP{Mono:DCM1-Ax:Bragg}Mtr.VELO + caget xafs_bragg.VELO + + +The following tables give PV name and alias, a brief description of +the purpose of the motor, the controller and location of that +controller, and the channel number in the controller. A few +abbreviations are used: + +:us: upstream +:ds: downsteam +:ib: inboard +:ob: outboard +:para: parallel +:perp: perpendicular + + +Collimating mirror, M1 +~~~~~~~~~~~~~~~~~~~~~~ + +================================ ========= ========================= ====================== ============== +PV alias Motor Description controller motor number +================================ ========= ========================= ====================== ============== +XF:06BM-OP{Mir:M1-Ax:YU}Mtr m1_yu us jack MC01 (mezzanine) 1 +XF:06BM-OP{Mir:M1-Ax:YDO}Mtr m1_ydo ds, outboard jack MC01 (mezzanine) 2 +XF:06BM-OP{Mir:M1-Ax:YDI}Mtr m1_ydi ds, inboard jack MC01 (mezzanine) 3 +XF:06BM-OP{Mir:M1-Ax:XU}Mtr m1_xu us lateral MC01 (mezzanine) 4 +XF:06BM-OP{Mir:M1-Ax:XD}Mtr m1_xd ds lateral MC01 (mezzanine) 5 +================================ ========= ========================= ====================== ============== + +Filters, DM1 +~~~~~~~~~~~~ + +================================ ============ ========================= ====================== ============== +PV alias Motor Description controller motor number +================================ ============ ========================= ====================== ============== +XF:06BMA-BI{Fltr:01-Ax:Y1}Mtr dm1_filters1 assembly #1 MC05 (RGA) 6 +XF:06BMA-BI{Fltr:01-Ax:Y2}Mtr dm1_filters2 assembly #2 MC05 (RGA) 7 +================================ ============ ========================= ====================== ============== + +DCM +~~~ + +=================================== ============ ==================== ====================== ============== +PV alias Motor Description controller motor number +=================================== ============ ==================== ====================== ============== +XF:06BMA-OP{Mono:DCM1-Ax:Bragg}Mtr dcm_bragg DCM Bragg MC02 (RGA) 1 +XF:06BMA-OP{Mono:DCM1-Ax:Bragg2}Mtr dcm_bragg2 Bragg 2nd encoder MC02 (RGA) +XF:06BMA-OP{Mono:DCM1-Ax:P2}Mtr dcm_pitch 2nd xtal pitch MC02 (RGA) 3 +XF:06BMA-OP{Mono:DCM1-Ax:R2}Mtr dcm_roll 2nd xtal roll MC02 (RGA) 4 +XF:06BMA-OP{Mono:DCM1-Ax:Per2}Mtr dcm_para 2nd xtal perp MC02 (RGA) 5 +XF:06BMA-OP{Mono:DCM1-Ax:Par2}Mtr dcm_perp 2nd xtal para MC02 (RGA) 6 +XF:06BMA-OP{Mono:DCM1-Ax:X}Mtr dcm_x lateral MC02 (RGA) 7 +XF:06BMA-OP{Mono:DCM1-Ax:Y}Mtr dcm_y vertical MC02 (RGA) 8 +=================================== ============ ==================== ====================== ============== + +Slits 2, DM2 +~~~~~~~~~~~~ + +============================== ============ ==================== ====================== ============== +PV alias Motor Description controller motor number +============================== ============ ==================== ====================== ============== +XF:06BMA-OP{Slt:01-Ax:O}Mtr dm2_slits_o outboard MC03 (RGA) 1 +XF:06BMA-OP{Slt:01-Ax:I}Mtr dm2_slits_i inboard MC03 (RGA) 2 +XF:06BMA-OP{Slt:01-Ax:T}Mtr dm2_slits_t top MC03 (RGA) 3 +XF:06BMA-OP{Slt:01-Ax:B}Mtr dm2_slits_b bottom MC03 (RGA) 4 +============================== ============ ==================== ====================== ============== + + +DM2 fluorescence screen +~~~~~~~~~~~~~~~~~~~~~~~ + +============================== ============ ==================== ====================== ============== +PV alias Motor Description controller motor number +============================== ============ ==================== ====================== ============== +XF:06BMA-BI{Diag:02-Ax:Y}Mtr dm2_fs vertical MC04 (RGA) 7 +============================== ============ ==================== ====================== ============== + +Focusing mirror, M2 +~~~~~~~~~~~~~~~~~~~ + + +============================== ============ ==================== ====================== ============== +PV alias Motor Description controller motor number +============================== ============ ==================== ====================== ============== +XF:06BMA-OP{Mir:M2-Ax:YU}Mtr m2_yu us jack MC04 (RGA) 1 +XF:06BMA-OP{Mir:M2-Ax:YDO}Mtr m2_ydo ds, outboard jack MC04 (RGA) 2 +XF:06BMA-OP{Mir:M2-Ax:YDI}Mtr m2_ydi ds, inboard jack MC04 (RGA) 3 +XF:06BMA-OP{Mir:M2-Ax:XU}Mtr m2_xu us lateral MC04 (RGA) 4 +XF:06BMA-OP{Mir:M2-Ax:XD}Mtr m2_xd ds lateral MC04 (RGA) 5 +XF:06BMA-OP{Mir:M2-Ax:Bend}Mtr m2_bender bender MC04 (RGA) 6 +============================== ============ ==================== ====================== ============== + +Harmonic rejection mirror, M3 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +============================== ============ ==================== ====================== ============== +PV alias Motor Description controller motor number +============================== ============ ==================== ====================== ============== +XF:06BMA-OP{Mir:M3-Ax:YU}Mtr m3_yu us jack MC05 (RGA) 1 +XF:06BMA-OP{Mir:M3-Ax:YDO}Mtr m3_ydo ds, outboard jack MC05 (RGA) 2 +XF:06BMA-OP{Mir:M3-Ax:YDI}Mtr m3_ydi ds, inboard jack MC05 (RGA) 3 +XF:06BMA-OP{Mir:M3-Ax:XU}Mtr m3_xu us lateral MC05 (RGA) 4 +XF:06BMA-OP{Mir:M3-Ax:XD}Mtr m3_xd ds lateral MC05 (RGA) 5 +============================== ============ ==================== ====================== ============== + +Slits 3, DM3 +~~~~~~~~~~~~ + +============================== ============ ==================== ====================== ============== +PV alias Motor Description controller motor number +============================== ============ ==================== ====================== ============== +XF:06BM-BI{Slt:02-Ax:O}Mtr dm3_slits_o outboard MC06 (RGC1) 5 +XF:06BM-BI{Slt:02-Ax:I}Mtr dm3_slits_i inboard MC06 (RGC1) 6 +XF:06BM-BI{Slt:02-Ax:T}Mtr dm3_slits_t top MC06 (RGC1) 7 +XF:06BM-BI{Slt:02-Ax:B}Mtr dm3_slits_b bottom MC06 (RGC1) 8 +============================== ============ ==================== ====================== ============== + +DM3 +~~~ + +============================== ============ ==================== ====================== ============== +PV alias Motor Description controller motor number +============================== ============ ==================== ====================== ============== +XF:06BM-BI{FS:03-Ax:Y}Mtr dm3_fs fluorescent screen MC06 (RGC1) 1 +XF:06BM-BI{Fltr:01-Ax:Y}Mtr dm3_foils foils actuator MC06 (RGC1) 4 +XF:06BM-BI{BCT-Ax:Y}Mtr dm3_bct vertical stage MC06 (RGC1) 3 +XF:06BM-BI{BPM:1-Ax:Y}Mtr dm3_bpm NanoBPM MC06 (RGC1) 2 +============================== ============ ==================== ====================== ============== + +XAFS Table +~~~~~~~~~~ + +=============================== ============ ==================== ====================== ============== +PV alias Motor Description controller motor number +=============================== ============ ==================== ====================== ============== +XF:06BMA-BI{XAFS-Ax:Tbl_YU}Mtr xafs_yu xafs table y us MC07 (RGC1) 1 +XF:06BMA-BI{XAFS-Ax:Tbl_YDO}Mtr xafs_ydo xafs table y ds ob MC07 (RGC1) 2 +XF:06BMA-BI{XAFS-Ax:Tbl_YDI}Mtr xafs_ydi xafs table y ds ib MC07 (RGC1) 3 +XF:06BMA-BI{XAFS-Ax:Tbl_XU}Mtr xafs_xu xafs table x us MC07 (RGC1) 4 +XF:06BMA-BI{XAFS-Ax:Tbl_XD}Mtr xafs_xd xafs table x ds MC07 (RGC1) 5 +=============================== ============ ==================== ====================== ============== + + +XAFS Stages +~~~~~~~~~~~ + +.. todo:: This table needs attention + + +================================ ============ ==================== ====================== ============== +PV alias Motor Description controller motor number +================================ ============ ==================== ====================== ============== +XF:06BMA-BI{XAFS-Ax:LinY}Mtr xafs_liny xafs sample y MC08 (RGC1) 1 +XF:06BMA-BI{XAFS-Ax:LinX}Mtr xafs_linx xafs sample x MC08 (RGC1) 2 +XF:06BMA-BI{XAFS-Ax:LinS}Mtr xafs_lins xafs sample small MC08 (RGC1) 3 +XF:06BMA-BI{XAFS-Ax:LinXS}Mtr xafs_linxs xafs reference MC08 (RGC1) 4 +XF:06BMA-BI{XAFS-Ax:Pitch}Mtr xafs_pitch xafs pitch stage MC08 (RGC1) 5 +XF:06BMA-BI{XAFS-Ax:Roll}Mtr xafs_roll xafs tilt stage MC08 (RGC1) 6 +. . xafs reference wheel MC08 (RGC1) 7 +. . glancing rotation MC08 (RGC1) 8 +XF:06BMA-BI{XAFS-Ax:Tbl_RotH}Mtr xafs_roth xafs Huber MC07 (RGC1) 6 +XF:06BMA-BI{XAFS-Ax:Tbl_RotB}Mtr xafs_rotb xafs black rot stage MC07 (RGC1) 7 +XF:06BMA-BI{XAFS-Ax:Tbl_RotS}Mtr xafs_rots xafs small rot stage MC07 (RGC1) 8 +================================ ============ ==================== ====================== ============== + +Gonimeter circles +~~~~~~~~~~~~~~~~~ + +============================= ============= ===================== ====================== ============== +PV alias Motor Description controller motor number +============================= ============= ===================== ====================== ============== +XF:06BM-ES{SixC-Ax:VTTH}Mtr 6bm:sixc_vtth Vertical two theta MC11 (RGC2) 1 +XF:06BM-ES{SixC-Ax:VTH}Mtr 6bm:sixc_vth Vertical theta MC11 (RGC2) 2 +XF:06BM-ES{SixC-Ax:CHI}Mtr 6bm:sixc_chi Chi MC11 (RGC2) 3 +XF:06BM-ES{SixC-Ax:PHI}Mtr 6bm:sixc_phi Phi MC11 (RGC2) 4 +XF:06BM-ES{SixC-Ax:HTH}Mtr 6bm:sixc_hth Horizontal theta MC11 (RGC2) 5 +XF:06BM-ES{SixC-Ax:HTTH}Mtr 6bm:sixc_htth Horizontal two theta MC11 (RGC2) 6 +XF:06BM-ES{SixC-Ax:ANAL}Mtr 6bm:sixc_anal Analyzer MC11 (RGC2) 7 +XF:06BM-ES{SixC-Ax:DET}Mtr 6bm:sixc_det Detector MC11 (RGC2) 8 +============================= ============= ===================== ====================== ============== + +Goniometer motors +~~~~~~~~~~~~~~~~~ + +============================== ============== ==================== ====================== ============== +PV alias Motor Description controller motor number +============================== ============== ==================== ====================== ============== +XF:06BM-ES{SixC-Ax:DETHOR}Mtr 6bm:sixc_det_h det horiz MC12 (RGC2) 1 +XF:06BM-ES{SixC-Ax:WHEEL1}Mtr 6bm:sixc_wh1 wheel 1 MC12 (RGC2) 2 +XF:06BM-ES{SixC-Ax:WHEEL2}Mtr 6bm:sixc_wh2 wheel 2 MC12 (RGC2) 3 +XF:06BM-ES{SixC-Ax:SAMX}Mtr 6bm:sixc_samx sample X MC12 (RGC2) 4 +XF:06BM-ES{SixC-Ax:SAMY}Mtr 6bm:sixc_samy sample Y MC12 (RGC2) 5 +XF:06BM-ES{SixC-Ax:SAMZ}Mtr 6bm:sixc_samz sample Z MC12 (RGC2) 6 +XF:06BM-ES{SixC-Ax:Tbl_YD}Mtr 6bm:sixc_tyd table Y ds MC12 (RGC2) 7 +XF:06BM-ES{SixC-Ax:Tbl_YUI}Mtr 6bm:sixc_tyui table Y us ib MC12 (RGC2) 8 +============================== ============== ==================== ====================== ============== + + + +Goniometer table +~~~~~~~~~~~~~~~~ + +============================== =============== ==================== ====================== ============== +PV alias Motor Description controller motor number +============================== =============== ==================== ====================== ============== +XF:06BM-ES{SixC-Ax:Tbl_YUO}Mtr 6bm:sixc_tyuo table Y us ob MC13 (RGC2) 1 +XF:06BM-ES{SixC-Ax:Tbl_XU}Mtr 6bm:sixc_txu table X us MC13 (RGC2) 2 +XF:06BM-ES{SixC-Ax:Tbl_XD}Mtr 6bm:sixc_txd table X ds MC13 (RGC2) 3 +XF:06BM-ES{SixC-Ax:Tbl_Z}Mtr 6bm:sixc_tz table Z MC13 (RGC2) 4 +XF:06BM-ES{SixC-Ax:Slt1_T}Mtr 6bm:sixc_slt1_t top slit MC13 (RGC2) 5 +XF:06BM-ES{SixC-Ax:Slt1_B}Mtr 6bm:sixc_slt1_b bottom slit MC13 (RGC2) 6 +XF:06BM-ES{SixC-Ax:Slt1_I}Mtr 6bm:sixc_slt1_i inboard slit MC13 (RGC2) 7 +XF:06BM-ES{SixC-Ax:Slt1_O}Mtr 6bm:sixc_slt1_o outboard slit MC13 (RGC2) 8 +============================== =============== ==================== ====================== ============== + + + +Shutters and screen +~~~~~~~~~~~~~~~~~~~ + +================================ ========= ====================== ====================== ============== +PV alias Motor Description controller motor number +================================ ========= ====================== ====================== ============== +XF:06BM-PPS{Sh:FE}Pos-Sts front end shutter PPS +XF:06BM-PPS{Sh:A}Pos-Sts A hutch shutter PPS +XF:06BMA-OP{FS:1}Pos-Sts fluorescent screen EPS +================================ ========= ====================== ====================== ============== + + + +Front-end slits +~~~~~~~~~~~~~~~ + +================================ ========= ====================== ====================== ============== +PV alias Motor Description controller motor number +================================ ========= ====================== ====================== ============== +FE:C06B-OP{Slt:12-Ax:X}size horizontal size geobrick (mezzanine) virtual +FE:C06B-OP{Slt:12-Ax:X}center horizontal center geobrick (mezzanine) virtual +FE:C06B-OP{Slt:12-Ax:Y}size vertical size geobrick (mezzanine) virtual +FE:C06B-OP{Slt:12-Ax:Y}center vertical center geobrick (mezzanine) virtual +FE:C06B-OP{Slt:1-Ax:Hrz}Mtr Slit 1 horizontal geobrick (mezzanine) +FE:C06B-OP{Slt:1-Ax:Inc}Mtr Slit 1 incline geobrick (mezzanine) +FE:C06B-OP{Slt:1-Ax:O}Mtr Slit 1 X outboard geobrick (mezzanine) +FE:C06B-OP{Slt:1-Ax:T}Mtr Slit 1 Y top geobrick (mezzanine) +FE:C06B-OP{Slt:2-Ax:Hrz}Mtr Slit 2 horizontal geobrick (mezzanine) +FE:C06B-OP{Slt:2-Ax:Inc}Mtr Slit 2 incline geobrick (mezzanine) +FE:C06B-OP{Slt:2-Ax:I}Mtr Slit 2 X inboard geobrick (mezzanine) +FE:C06B-OP{Slt:2-Ax:B}Mtr Slit 2 Y bottom geobrick (mezzanine) +================================ ========= ====================== ====================== ============== + + +Encoder loss second crystal roll +-------------------------------- + +On 9 January, 2018, when attempting to home the mono motors following +the schduled power outage in December, the 2\ :sup:`nd` crystal roll +motor moved to its negative limit, then reported an encoder loss. +With Graeme Elliner's (an FMB-O controls engineer) help, I came to a +resolution of the problem. It has left that axis in an unusual state +that needs to be documented. + +Executive summary: that axis does not use its encoder. It homes by +running to its negative limit, then running back to it's home +position. It does this by counting controller pulses rather than +encoder + +Here are a couple of useful emails from Graeme to me from January 11 +and 12, 2018. + +.. code-block:: text + + Hi Bruce + + We now need to work out where the problem is. + NOTE you will not be able to drive anything while you're doing this or you potentially can break more. + 1: Unplug the Disable Plug from the back of the DCM (this will + force all motors to be disabled) - it’s the small black connector + (bottom right as you look at the back) + 2: Disconnect PL102 & SK102 from IF2 + 3: Disconnect PL103 & SK103 from IF3 + 4: Connect PL103 & SK103 to IF2 + 5: Connect PL102 & SK102 to IF3 + + IF the Red light on the Interpolator stayed with IF3 then there is + a problem with Interpolator - Need to put motor into Open Loop + + IF the Red light on the Interpolator has moved to IF2 then the + Interpolator is fine and it is cabling somewhere - GOTO STEP 6 + + 6: SWAP PL102 and PL103 + + IF the red light has moved back to IF3 then the problem is between + PL103 to the read head on the Xtal2 Roll stage - GOTO STEP 7 + + IF the red light has stayed with IF2 then the problem is between SK103 to the MCS8 + + This cabling is Pin to Pin so a simple continuity test on each pin should identify what has broken + + 7: SWAP SK102 and SK103. The cabling should now be back to the original layout + 8: SWAP SK203-2 and SK203-3 at the feedthroughs on the DCM (FD3-2 & FD3-3 respectively) + + IF the red light has moved to IF2 then the problem is INSIDE the + DCM vessel - Need to put motor into Open Loop (and ultimately open + the vessel to find it) + + If the red light has stayed on IF3 then there is a problem with the + cable to the DCM. This cable is should be Pin to Pin so a simple + continuity test on each pin should identify what has broken + + + To Put the Roll Axis into Open Loop + Have you got PeWin working now?? + Using Pewin backup the config for the DCM and send it to me please. + +A lot of the cable swapping Graeme called for was to try to isolate a +bad connection. The connection between read-head and motor controller +is rather lengthy, with a vacuum feedthrough, a feedtrough on the side +of the service box, and two connections to the interpolators inside +the service box. + +Following the steps laid out by Graeme, I isolated the problem to +being inside the vacuum vessel. Drat! Using the `old MC02 +configuration +`__ +I saved to a file, Graeme made some edits as described below and sent +me `a new configuration file +`__. + +.. code-block:: text + + Hi Bruce + I have modified the config file to now not use the encoder for + position feedback. I have tested that it downloads with no errors + + Details of the mods are listed at the top of the file and below, I + have marked all modifications with either GRE+ (for added code) or + GRE- (for commented code) + + In PLC1 + P446=0 this disables encoder loss detection for axis4 + + + In the Ivars + I430=700 changed to default stepper gain for no encoder + I432=0 changed to default value for no encoder + I7040=8 this forces the system to use steps for feedback + + Use restore config from the backup menu in PEWin to install this + CHECK that the box at the bottom reports NO ERRORS, + in the terminal window you will need to "SAVE" and "$$$". + + You will now find that the position scaling will be completely + different now that you are not using the encoder. This means that + your jog speeds will also be different + + I strongly suggest NOT trying to use EPICS imediately. + + Use the PeWin terminal (or the Jog Ribbon) to move axis 4 to the -ve + limit ("#4j-") at the -ve limit type "#4HMZ" to zero the postion + display and then to the +ve limit ("#4j+"). + + This will tell you how many steps there are between the limits. + + Using this info and the data for the encoded version you should be + able to move th axis to approximately the correct location. + + I have noticed that in PLC14 (the homing PLC for axis 4) that even + when the axis was using the encoder the home routine was not using + the encoder home refernce. + + It is moving to the -ve limit then moving off 51926 encoder counts, + then setting this to be HOME - search for GRE*** in the file. + + This will not be correct now the system is using steps and might + actually be more than you have measured as the range in steps. + + You will need to change this value before you can use EPICS to home the axis. + + Once all this is working in PeWin you can test the homing routine + by entering M1416=1 in the Pewin terminal. + +Following this set of instructions, I found that there are 1,218,299 +steps between the two limits on the 2\ :sup:`nd` crystal roll motor. +It would seem that there are about 10 or 12 steps per encoder count. +The homing procedure works in the sense of finding the negative limit, +then moving to a home position. But that home position seems to be +about 1/10 of the way between the negative limit and the +home-using-encoder-counts. diff --git a/_sources/index.rst b/_sources/index.rst new file mode 100644 index 0000000..ed965d0 --- /dev/null +++ b/_sources/index.rst @@ -0,0 +1,56 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + + +BMM Users Manual +================ + +BMM is NIST's :red:`B`\ eamline for :red:`M`\ aterials :red:`M`\ easurement. + +.. _fig-bananagrams: +.. figure:: _images/Beamline-bananagrams.jpg + :target: _images/Beamline-bananagrams.jpg + :width: 50% + :align: left + + BMM at a glance! + + +**Contents:** + +.. toctree:: + :maxdepth: 2 + :numbered: + :caption: Running the beamline + + intro.rst + before.rst + instruments.rst + motors.rst + pds.rst + linescans.rst + xafs.rst + automation.rst + log.rst + manage.rst + commonchores.rst + cheatsheet.rst + trouble.rst + +.. appendix:: + :maxdepth: 2 + :numbered: + :caption: Developer documentation + + desktop.rst + profile.rst + plotting.rst + ionchambers.rst + details.rst + todo.rst diff --git a/_sources/instruments.rst b/_sources/instruments.rst new file mode 100644 index 0000000..a5ab626 --- /dev/null +++ b/_sources/instruments.rst @@ -0,0 +1,279 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. _instruments: + +Beamline instrumentation +======================== + +This section provides a brief overview of the instrumentation +available for various kinds of routine and *in situ* experiments. + +If you have questions about any of these tools or wish to pursue other +experimental options, contact the beamline staff. + +Fluorescence detectors +---------------------- + +The standard fluorescence detector at BMM is a `four element silicon +drift detector +`__ +with an `Xspress3 `_ +readout. This normally sits on a linear stage so that distance to the +sample can be user-controlled and incorporated into :numref:`beamline +automation (Section %s) `. + +We also have a `single element silicon drift detector +`__ +which is useful in certain situations. If your experimental setup +requires placing the detector in an unusual orientation, the single +element detector can be used. Unlike the 4-element detector, the +single element is not required to remain in an upright orientation +during operation. While the single element detector sees fewer +photons, this versatility of setup is occasionally very helpful. + + +.. subfigure:: AB + :layout-sm: AB + :gap: 8px + :subcaptions: above + :name: fig-XRFINST + :class-grid: outline + + .. image:: _images/4element.jpg + + .. image:: _images/1element.jpg + + (Left) Four element silicon drift detector. (Right) One element + silicon drift detector. + + +.. note:: + Thanks to funding from the CHIPS Act, BMM is the process of + procuring a new 7-element SDD! Look for that in late 2024 or + early 2025. + + +Area detector +------------- + +An older model of the `Pilatus 100K +`_ +is available. + +.. _fig-pilatusINST: +.. figure:: _images/pilatus.jpg + :target: _images/pilatus.jpg + :width: 50% + :align: center + + Dectris Pilatus 100K + + +Please note: + ++ BMM offers only limited integration of data output into the beamline + workflow. ++ BMM has limited options for mounting and integrating the Pilatus + into your experiments. ++ This Pilatus has a rather small detection area and a rather large + pixel size (about 170 microns). + +BMM does not have access to a larger/better/faster detector and has no +plans of getting a new area detector in the near future. + + +.. _sample-wheel: + +Sample wheel +------------ + +At BMM, the standard *ex situ* sample stage is a laser-cut plastic +disk. The disk has 24 or 48 slots cut from the disk. These are the +sample positions. + +This disk is mounted on a rotation stage. The slots are 15 degrees +apart, so moving from sample to sample only involves moving through a +known rotation angle. + +The rotation stage is mounted on the XY stage, allowing alignment of +the sample holder to the incident beam. + + +.. _fig-wheel_stageINST: +.. figure:: _images/wheel_stage.jpg + :target: _images/wheel_stage.jpg + :width: 70% + :align: center + + The standard *ex situ* sample holder is a plastic disk with slots + for the sample positions. + + +Here are photos of some of the sample holder options. There are +designs which use slots or circles for the sample position. The +circular holes are 13 mm, which is a common size for a pellet press. +13 mm pellets can usually slip snugly into those holes. + +Samples can be packed into the slots or holes. More commonly, samples +are prepared in some manner and affixed to the front of the sample +holder with tape. + +There is also a design which is, essentially, a normal disk cut in +half. That one holds fewer samples, but is easier to load and unload +from a glove box during sample preparation. + + +.. subfigure:: ABC + :layout-sm: ABC + :subcaptions: above + :gap: 8px + :name: fig-wheelINST + :class-grid: outline + + .. image:: _images/Samplewheel.jpg + + .. image:: _images/double_wheel_sm.jpg + + .. image:: _images/halfwheel.jpg + + (Left) A single-ring sample wheel with 24 sample positions. + (Center) Double-ring sample wheels with 48 sample positions. For + both styles, there are options with 13mm x 3 mm slots or 13mm + diameter holes. (Right) A half wheel suitable for loading in a + glove box. + + + + +Electrochemistry +---------------- + +At BMM, we have a `BioLogic VSP-300 Potentiostat +`_ which is available for +all manner of electrochemistry experimentation. This is a 6 channel +model, allowing you to prep samples during measurements or to run +multiple electrochemistry experiments in parallel, moving those cells +into and out of the beam. + + +.. _fig-biologiclINST: +.. figure:: _images/biologic.png + :target: _images/biologic.png + :width: 50% + :align: center + + The BioLogic VSP-300 Potentiostat + +We run the vendor-supplied control software on a Windows 10 instance +running in a virtual container. + +We do not, at this time, have full EPICS-level control of the +potentiostat, limiting the level of automation and integration with +the rest of the beamline. + +Also, BMM does not provide electrochemical cells. The user is +expected to bring their own cells. + + +Temperature control +------------------- + +BMM has two options for experiments as elevated or reduced temperature. + + +Linkam stage +~~~~~~~~~~~~ + +The `Linkam stage `_ has LN2 flow +for cooling a sample down to 77K and a resistive heater to go up to +600C. The volume inside can be pumped or exposed to flowing gas. The +sample stage at the center is modified to have a 3mm diameter hole for +transmission XAFS. + + +.. subfigure:: AB + :layout-sm: AB + :subcaptions: above + :gap: 8px + :name: fig-linkamstageINST + :class-grid: outline + + .. image:: _images/linkam.jpg + + .. image:: _images/dewar.jpg + + (Left) The Linkham stage mounted for transmission on the sample + stage. (Right) The 25 L dewar used for cooling the Linkam stage. + +BMM has two dewars for use with the Linkam. The 2 L dewar has enough +capacity for about 2 hours of measurement. The 25 L dewar runs for +about 14 hours and is the standard choice. The advantage of the +smaller dewar is that it is smaller and might be needed for +complicated setups were space is at a premium. + +Displex Cryostat +~~~~~~~~~~~~~~~~ + +BMM also has a helium compression cryostat capable of reducing +temperature at the sample to around 10K and with a resistive heater +allowing a sample temperature range of 10K to about 400K. + +This Displex model is designed for low-vibration applications. as a +result, it is a bit slow to cool down, requiring about 2 hours to get +to 10K from room temperature. Sample changes are a bit laborious +due to the construction of the vacuum shroud. + + +.. subfigure:: AB + :layout-sm: AB + :subcaptions: above + :gap: 8px + :name: fig-displexINST + :class-grid: outline + + .. image:: _images/cryostat.jpg + + .. image:: _images/lakeshore331.png + + (Left) The Displex cryostat and it's compressor. (Right) The + `LakeShore 331 controller + `__, + used to control temperature for the cryostat shown to the left. + + + +.. _glancing-angle-stage: + +Glancing angle and thin film stage +---------------------------------- + +We use this glancing angle stage for high throughput studies of thin +film and other flat samples. The apparatus shown below rests on a +rotation stage for moving up to 8 samples into and out of the beam. +The rotation stage sits on a tilt stage, allowing fine control of the +incident angle. Each sample position is a spinner, which is used to +suppress diffraction from the substrate. +In most cases, sample translation and sample alignment is fully +automated. + +.. _fig-glancinganglestageINST: +.. figure:: _images/glancing_angle_stage.jpg + :target: _images/glancing_angle_stage.jpg + :width: 50% + :align: center + + The glancing angle stage with 8 sample positions. + + +While a standing wave experiment might be feasible at BMM, the much +more typical application is a simple glancing angle measurement in +which the point of the shallow angle is to spread the beam out over +the full length of the sample. This significantly increases the +number of atoms involved in the measurement. diff --git a/_sources/intro.rst b/_sources/intro.rst new file mode 100644 index 0000000..b99a241 --- /dev/null +++ b/_sources/intro.rst @@ -0,0 +1,450 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. _intro: + +Introduction to BMM +=================== + +BMM is NIST's :red:`B`\ eamline for :red:`M`\ aterials :red:`M`\ easurement. + +At the unix command line, type ``bsui`` to start the BlueSky user +interface. bsui is simply an `Ipython shell `_ +with some customizations specific to BlueSky. On top of that, there +are a number of customizations specific to BMM. + + +In this user manual, there are chapters covering most of the chores +one will need to do at the beamline, including: + +#. moving motors +#. changing the state of the photon delivery system +#. making motor scans +#. making energy scans +#. interacting with the beamline's electronic log book +#. troubleshooting common problems + +TL;DR +----- + +**Open/close the shutter** + ``shb.open()`` and ``shb.close()``, see :numref:`{name}, Section {number} ` + +**Change energy** + Use the ``RE(change_edge())`` command, see :numref:`{name}, Section {number} ` + +**Sample alignment scans** + Use the ``RE(linescan())`` command, see :numref:`{name}, Section {number} ` + +**XAFS scan** + Use the ``RE(xafs())`` command, see :numref:`{name}, Section {number} ` + +**Import an automation spreadsheet** + Prepare a spreadsheet, then ``xlsx()``, see :numref:`{name}, Section {number} ` + +**Details, details, details** + :numref:`Command cheatsheet, Section {number} ` + +**Start the live plotting utility** + At a command line (but not the bsui command line), + ``run-consumer``, see :numref:`{name}, Section {number} + ` + + +Essential links +--------------- + +:NSLS-II: https://www.bnl.gov/nsls2/ +:BMM's page: https://www.bnl.gov/nsls2/beamlines/beamline.php?r=6-BM +:Operations schedule: https://www.bnl.gov/nsls2/schedule/ +:Beamtime schedule: https://scheduler.nsls2.bnl.gov/ +:NSLS Status: https://www.bnl.gov/nsls2/operating-status.php +:BMM's at Github: https://github.com/NSLS-II-BMM + + +The user experience +------------------- + +The Ipython/bsui prompt at BMM is modified to provide at-a-glance +information about the state of the beamline. + +.. _fig-prompt: +.. figure:: _images/prompt.png + :target: _images/prompt.png + :width: 40% + :align: center + + The BlueSky user prompt at BMM + +* The green ``BMM`` indicates that the beamline is :numref:`set up and + ready for the user (see Section %s) `. When the beamline + is not ready for users, the ``BMM`` string is red. + +* The string ``D.111`` indicates that the photon delivery system is in + :numref:`mode D (see Table %s) ` and that :numref:`the + Si(111) monochromator (Section %s) ` is in use. + +* The green number in square brackets is an incremented count of how + many commands have been issued since ``bsui`` was started. + +* If the prompt starts with three red exclamation points |nd| something like + + :red:`!!!` :green:`BMM` D.111 :green:`[1]` + + that means that some motors were not connected when Bluesky started. + Contact beamline staff immediately! + +.. _cadashboard: + +CA Dashboard +~~~~~~~~~~~~ + +At the top of the some screens, you see a crude-but-handy beamline +monitor. It looks like this: + +.. _fig-cadashboard: +.. figure:: _images/cadashboard.png + :target: _images/cadashboard.png + :width: 100% + :align: center + + The CA dashboard beamline monitor + +This provides a (very) concise overview of the state of the beamline. + +**Top line** + In short, if the top line has no red text, the beamline is all ready to go. + + + BMM is enabled (green) or disabled (gray) + + The BM, FE, & user photon shutters are open (green) or closed (gray) + + Indicators that the temperature sensors in the racks are in range + (green) or running hot (red) + + The state of vacuum sections 1 through 7 |nd| green means vacuum + level is OK, red means vacuum level is high + + The state of the in-vacuum motors, 4 on the DCM, 2 on the + focusing mirror, 2 on the harmonic rejection mirror |nd| green + means temperature is OK, red means temperature is high + + The open (green) or closed (red) state of the 3 front end gate + valves and the 6 beamline gate valves + +**Middle line** + + The energy position of the monochromator + + The current element and edge configuration of the beamline + + The ring current + + The signals on the I\ :sub:`0`, I\ :sub:`t`, and I\ :sub:`r` ion + chambers, measured in nanoamps + + The current operation at the beamline, options are: idle (white), + XAFS scan (pink), line scan (cyan), area scan (yellow), or time + scan (blue) + +**Bottom line** + + Positions of common sample motors + + size of sample slits + + the element currently in the reference position + + the state of the instrument being used |nd| in this example, *the + ex-situ* sample wheel + + the brown block at the end is a heartbeat monitor to visually + verify that the dashboard is functioning correctly + +For more information about this tool, `follow this link +`_. + + +.. _slack: + +Slack and Google Drive +~~~~~~~~~~~~~~~~~~~~~~ + +At the beginning of your experiment, you will be invited to the BMM +Slack workspace. There you can follow along with the progress of the +experiment in the #beamtime channel. + +Throughout the course of the experiment, messages and figures will be +automatically posted to that channel. This allows someone to keep +track of progress and to keep an eye on data quality without being +physically at the beamline. + +.. _fig-slack: +.. figure:: _images/slack.png + :target: _images/slack.png + :width: 50% + :align: center + + An example of messages and a picture of measured data posted to the + beamline Slack channel. + +.. attention:: + + In the 2024-1 cycle, BMM is no longer synching data automatically + to Google Drive, although data will be manually transferred to a + Google Drive for the time being. Soon, data will be available to + users via sftp with proper integration into new data storage and + authentication services in the 2024-2 cycle. + +The measured data along with the entire contents of the +:numref:`measurement dossier (Section %s) ` will be synched +to Google Drive. At the beginning of the experiment (in fact, when +the ``start_experiment()`` command described in the next session is +run), a folder for the experiment will be created on Google Drive. +The contents of the user's data folder will be synched frequently to +that folder throughout the course of the experiment, including +every time an individual XAFS scan finishes. + +This allows a remote user to examine the data being measured in +almost-real time. The data will be available on Google Drive within a +few seconds of the end of each scan. + +Along with an invitation to the Slack workspace, the user will receive +an invitation to share the Google Drive. + + + +.. + Electrochemistry experiments + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + .. note:: January 2022 + + Electrochemistry is not yet properly supported in the experimental + work flow. This section is remains aspirational. + + The data acquisition system at BMM has rudimentary support for + electrochemistry experiments using the BioLogic potentiostat. When + starting a new experiment, do this:: + + BMMuser.start_experiment(name='Betty Cooper', date='2019-02-29', gup=123456, saf=654321, echem=True) + + The ``echem`` argument, when set to ``True`` tells the system to look + for data from the potentiostat in the appropriate place on the Windows + computer running the EC-Lab software. It will make a folder called + ``electrochemistry`` in the data folder and make a folder on the + Windows machine at ``C:Users\xf06nm\My Documents\EC-Lab\Data``. + There will be a folder with the PI's name and a subfolder with the + start date of the experiment. + + At the end of the experiment, the electrochemistry files are copied + from the Windows machine to the data folder. This puts all of the + data in one place and makes sure that the electrochemistry data are + backed up correctly. + + +Getting help at the command line +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +To see a summary of common commands, use ``%h``: + +.. code-block:: text + + Open the shutter: shb.open() + Close the shutter: shb.close() + + Change energy: RE(mv(dcm.energy, )) + Move a motor, absolute: RE(mv(, )) + Move a motor, relative: RE(mvr(, )) + Where is a motor? %w + + Where is the DCM? %w dcm + Where is M2? %w m2 + Where is M3? %w m3 + Where are the slits? %w slits3 + Where is the XAFS table? %w xafs_table + + Summarize all motor positions: %m + Summarize utilities: %ut + + How long will a scan seq. be? howlong('scan.ini') + Run a scan sequence: RE(xafs('scan.ini')) + Scan a motor, plot a detector: RE(linescan(, , , , )) + Scan 2 motors, plot a detector: RE(areascan(, , , , , , , , )) + Make a log entry: BMM_log_info("blah blah blah") + + DATA = /home/bravel/BMM_Data/bucket + + All the details: https://nsls-ii-bmm.github.io/BeamlineManual/index.html + +and to see a summary of some useful command line hotkeys, use ``%k``: + +.. code-block:: text + + Abort scan: Ctrl-c twice! + Search backwards: Ctrl-r + Quit search: Ctrl-g + Beginning of line: Ctrl-a + End of line: Ctrl-e + Delete character Ctrl-d + Cut text to eol Ctrl-k + Cut text from bol Ctrl-u + Paste text Ctrl-y + + More details: http://readline.kablamo.org/emacs.html + + +The day will come that we have a GUI for running XAFS experiments at +BMM. For now, we have the command line. Read on |nd| it's not too +difficult! + + +BMM and Building 743 +-------------------- + + +BMM is on the south side of the NSLS-II building: `what3words: +///width.corrugated.support +`__ + +You should park at building 743 and enter through the main entrance +of 743. + +.. _fig-sitemap: +.. figure:: _images/map.png + :target: _images/map.png + :width: 60% + :align: center + + Route from the Main Gate to Building 743 + + +Walk though the lobby to the doors that lead out onto the experimental +floor. BMM is just across the walk way from the doors to the 743 lobby. + +.. subfigure:: ABC + :layout-sm: ABC + :gap: 8px + :subcaptions: above + :name: fig-BMMlocation + :class-grid: outline + + .. image:: _images/743lobby.jpg + + .. image:: _images/corridor.jpg + + .. image:: _images/BMMcontrolstation.jpg + + (Left) Approaching the floor through the lobby of + Building 743. (Center) BMM is just across the corridor from the + door to the 743 lobby. (Right) Walk past the diagonal support beam + and head into the BMM control station + + + + +BMM's staff have offices on the outer hallway of Building 743. + + +.. _fig-lob3: +.. figure:: _images/LOB-3.png + :target: _images/LOB-3.png + :width: 90% + :align: center + + Bruce's, Jean's and Vesna's offices in Building 743 + + + + +A Bit about BMM +--------------- + +BMM is an XAS beamline. As such it is on the simpler end of things at +NSLS-II. We use an NSLS-II `three-pole wiggler (3PW) +`_ as our +photon source. This provides broadband radiation throughout the hard +X-ray range, up to about 30 keV. It is a small device |nd| only about +40 cm long and with a magnetic path length of about 12 cm |nd| which +is inserted in a short section between the two bend magnets in the +dual-bend achromat lattice at NSLS-II. The flux is certainly not the +equal of any of the many-pole insertion devices in the straight, but +it is highly performant for many XAS experiment. + +About 13 meters from the source, we have a paraboloid collimating +mirror. This position is well within the storage ring tunnel and +about 12 meters from the entrance to the BMM first optical enclosure. +We placed a mirror at that location to capture the largest possible +swath of the divergent light coming from the 3PW source. A paraboloid +is the correct shape for focusing light in both the horizontal and +vertical directions. However, a paraboloid must be a fixed figure, +fixed angle device in order to optimally collimate the light. Because +the mirror is in the front end, thus inaccessible during operations, +we found the paraboloid to be an attractive solution. Once aligned in +the beam, it should never need adjustment. + +The collimated light is delivered to a double crystal monochromator +(DCM). The DCM has pairs of Si(111) and Si(311) crystals which are +accessed by :numref:`translating the DCM vacuum vessel laterally +(Section %s) ` . A transition between the two +crystal sets takes about 2 minutes. + +After the DCM, we have a toroidal focusing mirror followed by a flat +harmonic rejection mirror. One or both of these mirrors is in the +beam depending on :numref:`the configuration of the XAS experiment +(Section %s) ` in the end station. Because the beam is +deflected upward after the collimating mirror, at least one of the +mirrors after the DCM must be used in order to deflect the beam +through the lengthy transport pipe and into the end station. + +Because the collimating mirror is at a fixed angle, it only serves as +a harmonic rejection mirror above an energy determined by its +operating angle. That turns out to be about 23.5 keV. For XAS +experiments conducted above 8 keV, then, the harmonic rejection +provided by the collimating mirror is adequate. At lower energies, +the flat harmonic rejection mirror is used to provide clean beam. + +With just the harmonic rejection mirror in place, a beam of size 8 mm +by 1 mm is delivered to the end station. For many XAS experiments, +this rather large beam is desirable. Indeed, many of the visitors to +BMM specifically request the large beam for their experiments. With +the focusing mirror in place, that large swath is reduced to a spot of +about 300 |mu| m by 250 |mu| m. + +Acknowledgements +---------------- + +This documentation project uses the lovely `{book}theme +`__ +from the `The Executable Book Project +`__. Appendices are numbered properly using the ``appendix.py`` extension from https://github.com/heig-tin-info/handout. + +BMM's `Bluesky `__ profile was mostly +written by Bruce. But this would not have happened without the help +of several members of NSLS-II's DSSI program. In particular, I want +to thank Dan Allan, Tom Caswell, Josh Lynch, Max Rakitin, Dmitri +Gavrilov, Stuart Campbell, Abby Giles, and Garrett Bishof. And I need +to thank every BMM user |nd| being a BMM user and being a beta tester +for the beamline software are the same thing! + +BMM makes use of `lots of great python tools +`__. +Matt Newville's `Larch `__ is used +to process every XAS scan that gets measured and Matt's `lmfit +`__ is used for many alignment +chores. + +This project uses a GitHub action to build and deploy `(see details +here) +`__ +this document whenever a ``git push`` happens. We are grateful to the +`UIBCDF `__ +developers for this continuous deployment capability. + + + +A note about copyright +---------------------- + +This document and `the BlueSky data collection profile +`__ it covers was +developed primarily by a NIST employee. Pursuant to title 17 United +States Code Section 105, works of NIST employees are not subject to +copyright protection in the United States. Thus this repository may +not be licensed under the same terms as Bluesky itself or its +documentation. + +See the `LICENSE file +`__ +for details. diff --git a/_sources/ionchambers.rst b/_sources/ionchambers.rst new file mode 100644 index 0000000..8a4529e --- /dev/null +++ b/_sources/ionchambers.rst @@ -0,0 +1,119 @@ + +.. _ionchambers: + +Managing ion chamber signal chains +================================== + +In the 2023-3 and 2024-1 cycles, BMM went through a transition in how +direct beam signals (I\ :sub:`0`, I\ :sub:`t`, I\ :sub:`r`) are +measured. + +The old system +-------------- + +BMM has been using the same ion chambers that were used at X23A2 at +the old NSLS. They are excellent ion chambers |nd| robust, linear, +easy to use. At BMM, we used a `QuadEM +`__ +electrometer to read the current signal from each ion chamber. The +QuadEm is a four-channel device, so I\ :sub:`0`, I\ :sub:`t`, and I\ +:sub:`r` were fed into channels 1, 2, and 3. The fourth channel was +occasionally used for an electron yield detector. + +Voltage was supplied from the same Ortec high voltage supply used at +X23A2. The Ortec device sits outside the hutch. The high voltage +was fed via cabling through a roof labyrinth and patch panels. + +An IOC for reading the QuadEM lives on ``xf06bm-ioc2`` and +communicates with the QuadEM device via a cat6 cable. + +.. subfigure:: AB + :layout-sm: AB + :gap: 8px + :subcaptions: above + :name: old_IC + :class-grid: outline + + .. image:: _images/old_IC.jpg + + .. image:: _images/quadem.jpg + + (Left) The old I\ :sub:`r` detector. (Right) The quadem + electrometer used to measure the three old-style ion chambers. + + +The new system +-------------- + +The new ion chambers are integrated devices. The low half of the +enclosure is a gas-filled volume with capacitor plates made from +printed circuit board. The plates are guarded at both ends and +upright print circuit board pieces are used to guard the fringes of +the fields. These upright pieces are strips of copper bridged by +surface-mounted resistors acting as a sequence of voltage dividers. +This keeps the field lines art the periphery of the capacitor plates +nicely parallel. + +The upper part of the enclosure has the full signal chain and a +voltage supply. This includes an amplifier, an analog-to-digital +converter, and a microprocessor running an embedded Debian system and +a two-channel version of the QuadEM IOC. The voltage supply is fully +adjustable up to 2000 V, but are run at 200 V. + +The electronics package and the voltage supply are powered a 6 V DC +power supply. A cat6 cable for each ion chamber allows the IOCs to +communicate on the INST network. + +The ion chambers also have an optical fiber input port so that data +can be time stamped with the global timing signal from the +accelerator. This will be used in the near future to implement +continuous scanning on the monochromator. + + + +.. _fig-new_IC: +.. figure:: _images/new_IC.jpg + :target: _images/new_IC.jpg + :width: 70% + :align: center + + The new I\ :sub:`0` detector with integrated electronics and + voltage supply. + +Configuration in bsui profile +----------------------------- + +I am trying to make it easy to configure ``bsui`` to switch easily +between ion chambers and electrometers. This is a work in progress. +Here I document the current, slightly awkward, state of affairs. + +In `BMM/user_ns/dwelltime +`__ +three boolean parameters are set: ``with_ic0``, ``with_ic1``, and +``with_ic2``. + +These are used to synchronize setting integration times across the +various signal chains via the `LockedDwellTimes +`__ +object. + +Each new ion chamber in use needs to have its flag set to ``True``. + +The detectors themselves need to be configured correctly in `this file +`__ +using the flag values. + +The QuadEM and each individual ion chamber will be configured if +available on the network. If the network connection cannot be +established, a ``noisy_det`` from ``ophyd.sim`` is created with the +same name. + +Notes: + +#. If the ion chamber device can be made, it will be made even if its + flag is set to ``False``. This allows interaction with an ion + chamber even if it is not expected to be used in a scan. +#. Once all 3 new ion chambers are in place and in use, the QuadEM + device will still be made. This will allow use of electron yield + and other detectors as well as measurement of any other current + signals. diff --git a/_sources/linescans.rst b/_sources/linescans.rst new file mode 100644 index 0000000..af2905e --- /dev/null +++ b/_sources/linescans.rst @@ -0,0 +1,307 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. role:: key + :class: key + + +.. _linescan: + +Sample position scans +===================== + +General line scans +------------------ + +In the nomenclature of BMM, a line scan is a simple scan of a single +motor axis with an on-screen plot. At BMM this sort of scan is +typically done using the ``linescan()`` plan. This is a wrapper +around BlueSky's `rel_scan() +`_. + +In BMM's ``linescan()`` plan, the scan is always a relative scan +around the current position of the motor being scanned. It works like +this:: + + RE(linescan(xafs_x, 'it', -4, 4, 81)) + +The arguments are: + +#. The motor axis to be scanned. This can be either the motor's + BlueSky name or the nickname string from :numref:`Table %s + `. So, these are equivalent:: + + RE(linescan('x', 'it', -4, 4, 81)) + RE(linescan('xafs', it_x, -4, 4, 81)) + + For a motor that does not have a nickname, you must use the ophyd + symbol, as in:: + + RE(linescan(slits3.outboard, 'i0', -1, 1, 21)) + +#. A string indicating the detector for the plotted signal. The + choices are: + + * ``it``: display the ratio of ``It/I0`` + * ``if``: display the sum of four silicon drift channels normalized + by ``I0`` + * ``i0``: display the signal on ``I0`` + * ``ir``: display the ratio of ``Ir/It`` + +#. The starting position of the motor scan, relative to the current + position. + +#. The ending position of the motor scan, relative to the current + position. + +#. The number of steps in the scan. + +Note that the first two arguments can be in either order. The plan +will sort it out for you. These are equivalent:: + + RE(linescan('it', xafs_x, -4, 4, 81)) + RE(linescan(xafs_x, 'it', -4, 4, 81)) + + +At the end of the scan, you are prompted with the following question:: + + Pluck motor position from the plot? [Yn] + +If you answer :key:`y` then :key:`Enter`, or simply hit +:key:`Enter`, you will be prompted to single click the left mouse +button :mark:`leftclick,.` on the plot. The motor that was scanned +will then move to the motor position you clicked on. + +You can skip the "click for motor position" step by typing +:key:`n` and hitting :key:`Enter`. + + +Plucking a point from a line scan +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +If you want to repeat the action of clicking on a point and moving the +motor to the click-upon point, do:: + + RE(pluck()) + +This will enable the left mouse :mark:`leftclick,.` click and +subsequent motion on the most recent plot. + +.. warning:: + The ``pluck()`` command works on any plot made through the Kafka + plotter. Be sure you are clicking on the plot you intend to pluck + from! + + +Revisit a line scan +~~~~~~~~~~~~~~~~~~~ + +Retrieve data from the database using the database key or scan ID:: + + ls2dat('/path/to/output.file', '') + +This writes from the database to an output file. The output file is a +simple column data file without header or metadata. + + +The first argument is the name of the output data file. The second +argument is either the scan's unique ID |nd| something like +``42447313-46a5-42ef-bf8a-46fedc2c2bd1`` |nd| or the scan's transient +id number. + + + +.. _special-linescans: + +Specific line scans +------------------- + +Some scan types are performed often enough and always with the same +arguments that they have special names. + +**Rocking curve scan** + This command:: + + RE(rocking_curve()) + + does a scan of the pitch of the second mono crystal and plots the + signal on I0. At the end of the scan, it moves to the position of + the center of mass of the rocking curve. This scan is useful after + a large change of energy. It also opens the slits to 3 mm in + vertical size before starting the scan, then returns the slits to + their original height after the scan. + + You can put this scan in a macro using:: + + yield from rocking_curve() + +**Slit height scan** + This command:: + + RE(slit_height()) + + Runs a scan of the DM3 BCT motor around its current position. At + the end of the scan, you are prompted to left click + :mark:`leftclick,.` on the plot to choose a position to move the + slit height to. This scan is useful for verifying that the slits + are in the correct orientation for the delivery of beam from the + mirrors. + + Optionally, the scan will move to the center of mass of the + measurement, skipping the prompt and plot interaction:: + + RE(slit_height(move=True)) + + You can put this scan in a macro using:: + + yield from slit_height() + +**Align ex situ sample holder** + If the *ex situ* sample wheel is in approximately the right + position such that X-rays are passing through a slot on the outer + ring, you can center the slot around the beam with:: + + RE(find_slot()) + + This will run linescans in the X and Y directions, fitting a + lineshape to each scan in order to find the center position. The + same can be done by hand by doing:: + + RE(linescan(xafs_y, 'It', -3, 3, 31)) + RE(linescan(xafs_x, 'It', -10, 10, 31)) + + each time selecting the center when prompted. + + You can put this scan in a macro using:: + + yield from find_slot() + +Area scans +---------- + + +.. todo:: A raster scan type |nd| i.e. ``RE(raster())`` |nd| that does + an areascan as described here, makes a nice figure using + `matplotlib's contourf + `_, + exports data in formats used by popular plotting programs, + and writes a dossier was tested in 2022-2. Current status: + dossier is written, scan works, documentation needs to be written. + + +An area scan is a simple scan of a two motor axes with an on-screen +heat map. At BMM this sort of scan is typically done using the +``areascan()`` plan. This is a wrapper around BlueSky's +`rel_grid_scan() +`_. +Because the sample stages at BMM do not have encoders, the area scan +is made by `retreading the direction +`_ +of the fast motor rather than snaking back and forth. + +In BMM's ``areascan()`` plan, the scan is always a relative scan +around the current positions of both motors being scanned. It works +like this:: + + RE(areascan('it', '', -4, 4, 81, '', -2, 2, 41)) + +The arguments are: + +#. The slow motor axis. This can be either the motor's + BlueSky name or the nickname in :numref:`Table %s `. So, + these are equivalent:: + + RE(areascan('it', 'x', -4, 4, 81, 'y', -2, 2, 41)) + RE(areascan('it', xafs_x, -4, 4, 81, xafs_y, -2, 2, 41)) + RE(areascan('it', xafs_x, -4, 4, 81, 'y', -2, 2, 41)) + + For a motor that does not have a nickname, you must use the BlueSky + name, as in this very silly example:: + + RE(areascan('it', slits3_outboard, -1, 1, 21, dcm_pitch, -2, 2, 41)) + +#. The starting position of the slow motor, relative to the current + position. + +#. The ending position of the slow motor, relative to the current + position. + +#. The number of steps to take on the slow motor. + +#. The fast motor axis. This can be either the motor's + BlueSky name or the nickname in :numref:`Table %s `. + +#. The starting position of the fast motor, relative to the current + position. + +#. The ending position of the fast motor, relative to the current + position. + +#. The number of steps to take on the fast motor. + +#. The detector for the plotted signal. The choices are ``it``, + ``if``, and ``i0``. For the ``it`` choice, the plot will display + the ratio of It/I0. Similarly for the ``if`` choice, the plot will + display the sum of four silicon drift channels normalized by I0. + For the ``i0`` choice, the signal on the I0 chamber will be plotted. + +At the end of the scan, you are prompted with the following question:: + + Pluck motor position from the plot? [Yn] + +If you answer :key:`Y`, or simply hit :key:`Return`, you will be +prompted to single click the left mouse button :mark:`leftclick,.` on +the plot. Both motors will then move to the position you clicked on. + +You can skip the "click for motor position" step by typing +:key:`n` and hitting :key:`Return`. + + +Plucking a point from an area scan +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +If you want to repeat the action of clicking on a point and moving the +motor to the click-upon point, do:: + + RE(pluck()) + +This will enable the left mouse click :mark:`leftclick,.` and +subsequent motion on the most recent plot. The ``pluck()`` command +*only* works on the most recent plot. You may not pluck from an older +plot that is still displayed on the screen. + +Of course, an older plot remains active in the sense that you can pass +the cursor over the plot and read the mouse coordinates in the bottom, +left corner of the plot window. You can find a point in this way, +then do a movement command:: + + RE(mv(xafs_x, 28.31, xafs_y, 113.97)) + + + +Revisit an area scan +~~~~~~~~~~~~~~~~~~~~ + +Retrieve data from the database using the database key or scan ID:: + + as2dat('/path/to/output.file', '') + +This writes from the database to an output file. The output file is a +simple column data file. The format of this data file is columns with +datablocks (i.e. rows of constant value of the slow motor) separated by +blank lines. This is a format that `works with Gnuplot +`_ and other +plotting programs. + +The first argument is the name of the output data file. The second +argument is either the scan's unique ID |nd| something like +``42447313-46a5-42ef-bf8a-46fedc2c2bd1`` |nd| or the scan's transient +id number. + + diff --git a/_sources/log.rst b/_sources/log.rst new file mode 100644 index 0000000..5bc90a2 --- /dev/null +++ b/_sources/log.rst @@ -0,0 +1,219 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. _log: + +Experimental Log +================ + +At BMM, we are trying to run the system in a way that automatically +generates a useful electronic log book. This is meant to complement +|nd| not replace |nd| a paper log book or an online system like `Olog +`_. + +The point of the BMM experimental log is to capture with time stamps +all the significant actions at the beamline. In part, this provides a +record of the actions in an experimental campaign. It also is an +attempt to provide enough information to recover from mistakes and +confusions about sample positions and other experimental issues. + +.. _logfile: + +Log file +-------- + +At the beginning of a user experiment, run something like this command:: + + BMMuser.start_experiment('Betty Cooper', date='2019-02-28', gup=123456, saf=654321) + +Among other things, this instruments the logger to maintain a log file +specifically for the current experiment. The logger also maintains a +master log file which is, effectively, a concatenation of all the +individual experimental logs. + +The log is an attempt to capture a record of all significant actions +taken during an experimental campaign. It errs of the conservative +side in that it likely captures way too much information. + +Experimental events are captures with a time stamp and a brief +explanation of what happened. For example, when a motor is moved, the +motor name and target position are written to the log with a time +stamp. + +Similarly, a line scan or an XAFS scan is captured with enough +information to understand what the scan accomplished. For a line +scan, the motor name, scan range, and starting position are captured. +For an XAFS scan, the contents of the :numref:`INI file (See Section +%s) ` are written to the log along with the motor positions as +reported by the ``ms()`` command :numref:`(see Section %s) `. +The names of the output data files are recorded with timestamps +indicating when they were written. + +Several other activities specific to BMM also recorded to the log file. +The snapshot tool described above is an example. + +Writing to the log file is accomplished in two ways. This function:: + + BMM_log_info('text of message') + +is used to insert most messages into the log. ``BMM_log_info()`` can +be called at any time from the command line to insert any message into +the log. + +BMM also uses `Bluesky's msg_hook +`_. +This is how ``mv()`` and ``mvr()`` commands are captured in the log. +This bespoke message hook parses the document returned by BlueSky for +specific kinds of events and captures a log message when appropriate. + +.. _snap: + +Snapshots +--------- + +.. todo:: Document the USB cameras + +The XAFS scan plan described in :numref:`Section %s ` includes a +step where snapshots are taken from the XAS webcam and the small +analog camera. These photos are written to JPG files with names +related to the XAS data file written as part of the call to the +``xafs()`` plan. This provides automated photographic documentation +of the state of the measurement as it is being made. + +Snapshots can be taken at any time using this command:: + + snap('', filename='/path/to/image.jpg') + +The choices for ```` are + +``XAS`` + Take a snapshot from the XAS webcam + +``XRD`` + Take a snapshot from the XRD webcam + +``analog`` + Take a snapshot of the image currently displayed on the monitor to + the left of the control station. + +The image will then be written to the file specified by the +``filename=`` argument. + +The ``xafs()`` plan does something equivalent to the ``snap()`` +function for each available camera. These are recorded to the scan's +:numref:`dossier (Section %s) `. + + + + +.. subfigure:: AB|CD + :layout-sm: AB|CD + :gap: 8px + :subcaptions: above + :name: fig-snapshots + :class-grid: outline + + .. image:: _images/analog.jpg + + .. image:: _images/XASwebcam.jpg + + .. image:: _images/usbcam1.jpg + + .. image:: _images/usbcam2.jpg + + Snapshots from an experiment using the Linkam stage. Note that + each snapshot is annotated along the bottom, visually displaying + the time and identifying the sample being measured. + (Top left) Snapshot taken with the analog camera. (Top right) + Snapshot taken with the XAS web camera. (Bottom left) Snapshot + taken with USB camera #1. (Bottom left) Snapshot taken with USB + camera #2. + + +.. _video: + +Recording videos +---------------- + +.. todo:: Does this actually work? + +The USB cameras can be used to record short videos of whatever they +are pointing at. The resulting video will be saved to a `.avi +`__ file in +the ``video`` folder under the experiment folder. + +The simplest way to record a video is by this command: + +.. code-block:: python + + usbvideo1.record_video(name, time) + +Here the arguments are: + +``name`` + The stub of the file to be written to disk. The ``.avi`` extension + will be added +``time`` + The length in seconds of the recording + +This is, perhaps, a bit clunky since you have to specify the time of +the recording. You can do the recording in a more hands on manner by +explicitly starting the recording. + +.. code-block:: python + + usbvideo1.start() + +Do whatever you want to capture, then explicitly stop the recording. +Finally, you save the video to a name which means the same thing as is +explained above. + +.. code-block:: python + + usbvideo1.stop() + usbvideo1.save_video(name) + + +.. _dossier: + +Scan dossier +------------ + +The BMM data collection system now captures a dossier for each scan +sequence that is run. The definition of a scan sequence is a call to +:numref:`the xafs plan (Section %s) `, which may +involve multiple repetitions of the scan. + +The dossier is a static html file which captures most of the +information discussed on this page. It includes, links to each +individual data file, the transient ID and UID for each scan, links to +the snapshots, tables of information from :numref:`the INI file +(Section %s) `, a verbatim copy of the INI file, and a table of +motor positions at the time of the beginning of the scan sequence. + +These dossiers aggregate other assets described on this page and +complement the user's paper logbook by providing comprehensive +summaries of all the information relevant to the scan sequence +provided by the user and gleaned from beamline instrumentation. + +.. _fig-dossier: +.. figure:: _images/dossier.png + :target: _images/dossier.png + :width: 70% + :align: center + + An example of the scan sequence dossier, displayed in a web browser. + + +.. admonition:: New in April 2023 + + Along with the dossier, the beamline now records a flat HTML file + which records all the messages sent to :numref:`Slack (Section %s) + `. This can be accessed by the "Timeline" link at the top + of every dossier page. diff --git a/_sources/manage.rst b/_sources/manage.rst new file mode 100644 index 0000000..4cc636b --- /dev/null +++ b/_sources/manage.rst @@ -0,0 +1,750 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. _manage: + +Managing the beamline +===================== + + +In this section, some recipes are provided for managing the beamline +and meeting the needs and expectations of different experiments. + + + +.. _start_end: + +Starting and ending an experiment +--------------------------------- + +When a new experiment begins, run the command:: + + BMMuser.start_experiment(name='Betty Cooper', date='2019-02-29', gup=123456, saf=654321) + +This will create that data folder and populate it with an +:numref:`experimental log (Section %s) `, write a template for a +:numref:`macro file (Section %s) `, configure the logger to +write a :numref:`user log file (Section %s) ` for this +experiment, set the GUP and SAF numbers as metadata for output files, +set up :numref:`snapshot (Section %s) ` and :numref:`dossier +(Section %s) ` folders, and perform other experiment start-up +chores. + +.. note:: + + In the near future, the ``start_experiment()`` command will grab + metadata from PASS (or UPS, or whatever) and set access permissions + on data. When that happens, the only argument needed will be the + SAF number. + +The ``name`` should be the PI's full name, preferably transliterated +into normal ASCII. The ``date`` should be the starting day of the +experiment in the ``YYYY-MM-DD`` format. The ```GUP`` and ``SAF`` +numbers can be found on the posted safety approval form. + +Once the experiment is finished, run this command:: + + BMMuser.end_experiment() + +This will reset the logger and the ``DATA`` variable and unset the GUP +and SAF numbers. + + + +Change energy +------------- + +Changing energy is simple. Usually, it is as simple as doing + +.. code-block:: python + + RE(change_edge('Fe')) + +replacing the two-letter element symbol with the element you actually +want to measure. This command will move the monochromator, put the +photon delivery system in the correct mode, move the M2 bender to +approximately the correct setting, run a rocking curve scan, +optimize the slit height, move the reference foil holder to the +correct position (if configured), and select the correct ROI channel +(if configured). + + +If you want to reproduce this by hand, here is the command sequence: + + +#. First move the DCM to the new energy position. It is usually a + good idea to move a bit above the target edge energy. Here's an + example for moving 50 eV above the iron K edge energy: + + .. code-block:: python + + RE(mv(dcm.energy, 7112+50)) + +#. Put the beamline in the correct photon delivery system mode. (See + the table just above.) Continuing with the example of the iron K + edge, for unfocused beam: + + .. code-block:: python + + RE(change_mode('E')) + + If the new edge energy is in the same energy range according to the + table above, you can skip this step. For example, Mn and Fe are + both in mode E (or mode C). The ``change_mode()`` command does not + need to be run to move between those edges. + +#. Measure a :numref:`rocking curve scan (Sec %s) ` + to verify that the second crystal of the rocking curve is parallel + to the first crystal. This is more important for large energy + changes. You may find that you can skip this step if you are + changing between nearby edges. + + .. code-block:: python + + RE(rocking_curve()) + + At the end of the scan, the mono pitch will be moved to the top of + the rocking curve. + +#. If using focused beam, make sure that the mirror bender is in the + correct position. For focusing at the XAS table, ``m2_bender`` + should be at about 212000 counts. For focusing at the position of + the goniometer, ``m2_bender`` should be about 112000 counts. + + .. code-block:: python + + RE(mv(m2_bender, 212000)) + +#. Next, verify that the :numref:`height of the hutch slits (Sec %s) + ` is optimized for the beam height. In + principle, this should be correct after changing photon delivery + system mode. But it doesn't hurt to verify. + + .. code-block:: python + + RE(slit_height()) + + At the end of the scan, you will need to pluck the correct position + from the plot. + +#. Next, if you are using a reference foil, you should move the + reference foil holder to the slot containing the correct foil. The + command is something like: + + .. code-block:: python + + RE(reference('Fe')) + + choosing the correct element for your measurement. + +#. Finally, select the correct ROI channel: + + .. code-block:: python + + BMMuser.verify_roi(xs, 'Fe', 'K') + + +As a reminder, here is the table of operating modes. + +.. _pds_modes: +.. table:: Photon delivery modes + :name: pds-modes2 + :align: left + + ====== ============ ========================= + Mode focused energy range + ====== ============ ========================= + A |checkmark| above 8 keV + B |checkmark| below 6 keV + C |checkmark| 6 keV |nd| 8 keV + D |xmark| above 8 keV + E |xmark| 6 keV |nd| 8 keV + F |xmark| below 6 keV + XRD |checkmark| above 8 keV + ====== ============ ========================= + + +.. + Change mode + ----------- + + Suppose that you want to change from high-energy, unfocused operations + to low energy, focused. That is, you are changing from mode D to mode + B, for example moving from a large sample at the yttrium K edge to a + small sample at the vanadium K edge. + + .. code-block:: python + + RE(change_mode('B')) + RE(mv(dcm.energy, 5465+50)) + RE(rocking_curve()) + RE(slit_height()) + + + #. If the beam has recently been focused at the XRD station, you will + also need to adjust the bender on M2 to optimize vertical focus at + the XAS station (or vice versa). This is best done with the small + CCD camera sitting in the XAS sample stage. + + #. Again, iterating the optimization of the rocking curve and slit + height might be necessary. + +Change crystals +--------------- + +Suppose you wanted to change from the Pt L3 edge (11564 eV) on the +Si(111) crystal to the same energy on the Si(311) crystal. + +.. code-block:: python + + RE(change_xtal('311')) + +This will move the lateral motor of the DCM and optimize the roll and +pitch of the second crystal. It will then move the DCM to the energy +that you started at with the other crystal set and run a rocking curve +scan. + +Note that some of these motions can be a bit surprising in the sense +that the monochromator will end up outside the normal operating range +of the beamline. They will, however, eventually return to sensible +places. + + +Change XAS |harr| XRD +--------------------- + +Begin this transition by leaving the I0 chamber in place to monitor +the incidence flux. In most cases, this should do the trick: + +.. code-block:: python + + RE(change_edge('Ni', xrd=True, energy=8600)) + +The element symbol in the first argument is not actually used in any +way when ``xrd=True`` is used, however the funtion requires +`something` as its first argument. Setting ``xrd=True`` forces the +``focus=True`` and ``target=0`` arguments to the ``change_edge()`` +command to be set. This will move to the specified energy, place the +photon delivery mode in `XRD` mode, optimize the second +crystal and the slit height, and move to an approximately M2 bender +position. + +To do all of that by hand, you would do the follow commands: + +.. code-block:: python + + RE(change_mode('XRD')) + RE(mv(dcm.energy, 8600)) + RE(rocking_curve()) + RE(slit_height()) + +This change of mode should have the beam in good focus at the position +of the goniometer. 8000 eV is the nominal operating energy for the +goniometer. If a higher energy is required, substitute the correct +energy for ``8600`` in the second line. + +.. todo:: Determine look-up table for lower energy operations using + both M2 and M3. This will require a new XAFS table and + adjustments to the limit switches on ``m3_ydo`` and + ``m3_ydi``. + +Once the photon delivery system is set, remove the ion chambers and +insert the XRD flight path into its place. + + +.. _use333: + +XAFS with Si(333) +----------------- + +Using the Si(111) monochromator, it is possible to use the third +harmonic |nd| the Si(333) reflection |nd| to measure XAS with slightly +higher energy resolution. In this section, we explain how to set up +the beamline to measure the Ge K edge at 11103 eV using the Si(333). + +You cannot use the ``change_edge()`` command to do this. Use of the +Si(111) (or Si(311)) is hard-wired into that plan. You have to set up +the beamline by hand. + +First, put the photon delivery system in mode D (or mode A if using +the focusing mirror): + +.. code-block:: python + + RE(change_mode('D')) + +Next, move the monochromator to a few 10s of eV above the absorption +edge, as measured with the third harmonic. The Ge K edge is at 11103 +eV, so we need to move the monochromator to 11103/3 = 3701 eV. + +.. code-block:: python + + RE(mv(dcm.energy, (11103+27)/3)) + +or simply + +.. code-block:: python + + RE(mv(dcm.energy, 3701+9)) + +This will put the third harmonic energy 27 eV above the Ge K edge. + +Now, run a rocking curve scan: + +.. code-block:: python + + RE(rocking_curve()) + +This will produce a plot that looks something like this: + +.. _fig-rocking333: +.. figure:: _images/rocking_curve_333_E=3716.png + :target: _images/rocking_curve_333_E=3716.png + :width: 70% + :align: center + + A rocking curve scan with the photon delivery system in mode D and + the mono at 3716 eV. + +The broad base of this curve is the Si(111) rocking curve with photons +at 3710 eV. The sharp spike in the middle is the Si(333) rocking curve +with photons at 11130 eV. + +Optimize the slit_height: + +.. code-block:: python + + RE(slit_height()) + +You are ready to measure XAS with the Si(333) reflection! + +Here's an example ``scan.ini`` file for XANES of elemental Ge: + +.. code-block:: ini + + [scan] + experimenters = Bruce Ravel + + filename = Ge + sample = elemental Ge, crystalline + prep = standard sample + comment = measured with Si(333) reflection, 25um Al foil in beam path before I0 + + ththth = True + e0 = 11103 + element = Ge + edge = K + + nscans = 1 + start = next + + ## mode is one of transmission, fluorescence, both, or reference + mode = transmission + + ## Ge Si(333) + bounds = -45 -18 -9 36 150 + steps = 9 0.9 0.3 0.9 + times = 0.5 0.5 0.5 0.5 + + +Several things to note: + +#. Note that the actual value for E0 is specified, not the divided-by-3 value. +#. Actual energy bounds and steps are specified, the xafs scan plan + will convert them to appropriately sized steps for the Si(111). +#. By setting the 333 flag to True, the correct thing will happen, + including writing the correct energy axis to the output data file. +#. The on-screen plot will show the fundamental |nd| Si(111) |nd| energy, however. +#. Also, you still need to set up the photon delivery system up by hand. + + + +Motor controller kill switches +------------------------------ + +The MCS8 motor controllers supplied by FMBO have a kill switch for +power cycling the Phytron amplifier cards. This is implemented by the +vendor as connector plugged into the back of the chassis which shorts +the two leads of the receptacle. To kill the amplifiers, this plug is +removed and reinserted. + +That's fine, but the motor controllers are on top of the FOE |nd| not +a convenient location. + +The new kill switch system uses DIODE to close the kill switch +circuit. Two-conductor cable is run from each motor controller to a +remote DIODE box mounted on the inboard wall of the end station. + +The Bluesky interface is defined `here +`__ + + + +From the docstring of the class: + +.. code-block:: none + + A simple interface to the DIODE kill switches for the Phytron + amplifiers on the FMBO Delta Tau motor controllers. + + In the BMM DIODE box, these are implemented on channels 0 to 4 of + slot 4. + + attributes + ---------- + dcm + kill switch for MC02, monochromator + slits2 + kill switch for MC03, DM2 slits + m2 + kill switch for MC04, focusing mirror + m3 + kill switch for MC05, harmonic rejection mirror + dm3 + kill switch for MC06, hutch slits and diagnostics + + methods + ------- + kill(mc) + disable Phytron + enable(mc) + activate Phytron + cycle(mc) + disable, wait 5 seconds, reactivate, then re-enable all motors + + Specify the motor controller as a string, i.e. 'dcm', 'slits2', 'm2', 'm3', 'dm3' + + Here is a common problem which is resolved using a kill switch. + + BMM E.111 [36] ▶ RE(mvr(m2.pitch, 0.05)) + INFO:BMM_logger: Moving m2_pitch to 2.550 + + Moving m2_pitch to 2.550 + ERROR:ophyd.objects:Motion failed: m2_yu is in an alarm state status=AlarmStatus.STATE severity=AlarmSeverity.MAJOR + ERROR:ophyd.objects:Motion failed: m2_yu is in an alarm state status=AlarmStatus.STATE severity=AlarmSeverity.MAJOR + ERROR:ophyd.objects:Motion failed: m2_ydi is in an alarm state status=AlarmStatus.STATE severity=AlarmSeverity.MAJOR + ERROR:ophyd.objects:Motion failed: m2_ydi is in an alarm state status=AlarmStatus.STATE severity=AlarmSeverity.MAJOR + Out[36]: () + + This is telling you that the amplifiers for two of the M2 jacks + went into an alarm state. In the vast majority of cases, this + simply requires killing and reactivating those amplifiers. + + The solution to this one is: + + BMM E.111 [1] ▶ ks.cycle('m2') + Cycling amplifiers on m2 motor controller + killing amplifiers + reactivating amplifiers + enabling motors + + +Old kill switch system +~~~~~~~~~~~~~~~~~~~~~~ + +There is a row of switches on rack D, the rack next to the control +station, that are used to disable the amplifiers for the MCS8 motor +controllers. The cabling for this system still exists, but is not +plugged into the controllers. Should the DIODE system somehow fail, +this can be redeployed easily. + + +.. _fig-killswitches: +.. figure:: _images/Kill_switches.jpg + :target: _images/Kill_switches.jpg + :width: 70% + :align: center + + The manual kill switch system + + +When you suspect that a motor has an amplifier fault, toggle the +appropriate switch to the off position. Wait 10 seconds (to be very +safe...). Then toggle the switch back to the on position. The motor +should be ready to go. These switches replace the shorted plugs that +came attached to the "disable" port on the back side of the MCS8s. + +======= ========================== =============================== ================================= + MCS8 RGA label RGD label motors +======= ========================== =============================== ================================= + MC02 6BM-100149-RG:A1-PT1B3-A 6BM-100149-RG:A1-PT1B3-B DCM + MC03 6BM-100150-RG:A1-PT1B3-A 6BM-100150-RG:A1-PT1B3-B slits2 + MC04 6BM-100151-RG:A1-PT1B3-A 6BM-100151-RG:A1-PT1B3-B M2 + DM2 FS + MC05 6BM-100152-RG:A1-PT1B3-A 6BM-100152-RG:A1-PT1B3-B M3 + Filters + MC06 DM3 (bct,bpm,fs,foils)+ Slits3 +======= ========================== =============================== ================================= + +In the situation where toggling the switch does not clear the +amplifier fault, the next troubleshooting step is to power cycle the +MCS8. This is done by toggling the red, illuminated switch on the +front of the MCS8. Wait for the red amplifier lights to stop +flickering after turning off the MCS8, then turn the MCS8 back on. + +After power cycling the MCS8, it is necessary to re-home all the +motors controlled by the MCS8. + + +MCS8 Connector +~~~~~~~~~~~~~~ + +The disable plug on the back of the MCS8 controllers is a Binder RS +connector, part number 468-885. `Here's an +example. `__ + +And here is the wiring diagram. Short the prongs on the side opposite +to the alignment groove. + +.. _fig-killswitcheconnector: +.. figure:: _images/Kill_switch_connector.png + :target: _images/Kill_switch_connector.png + :width: 30% + :align: center + +Tutorial for how to put together the Binder connectors: :download:`PDF <_static/Binder-instructions.pdf>` + + + +Windows VM and BioLogic +----------------------- + +We use the `BioLogic EC_lab software +`__ to run +the `VSP-300 potentiostat +`__. Since there is not a +dedicated Windows machine at BMM, EC-Lab is run on a virtual machine +that is spun up when needed. Here are the instructions for starting +and interacting with the the VM. + +Starting the virtual machine +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ++ At a command line, do ``rdesktop xf06bm-srv2`` ++ This will open a new window and display a Windows login + screen. Normal credentials do not work. Log in as xf06bm using the + password provided by beamline staff. ++ The Windows desktop will start with a full-screen management + application that looks like the figure below. You can close + or minimize that window. ++ Double-click on the EC-lab icon. ++ Start doing electrochemistry. ++ Save your data to the Echem folder on the Windows desktop. In that + folder you will find a folder with the name of the PI for the + experiment. In that, you will find a folder with the start dat of + the experiment. Save your data in that folder. + +.. _fig-winvm: +.. figure:: _images/Winvm_startup.png + :target: _images/Winvm_startup.png + :width: 70% + :align: center + + VM management window. You can minimize or close this. + +Transferring echem data +~~~~~~~~~~~~~~~~~~~~~~~ + +The VM is on the INST network, thus data must be transferred to a +machine on the INST network. This means an IOC server needs to be used +for data transfer. Here is how this can be done using the bravel +account. + ++ Open a CMD window on the VM ++ cd to the location of the current user's Echem data ++ do something like ``scp * bravel@10.68.42.26:/nsls2/users/bravel/temp_folder`` ++ on IOC2, zip up the temp_folder and transfer the file to the xf06bm + user via the ``/tmp/`` folder. + +Obviously, this needs streamlining. + + +Calibrate the mono +------------------ + +The typical calibration procedure involves measuring the angular +position of the Bragg axis for the edge energies of 10 metals: Fe, Co, +Ni, Cu, Zn, Pt, Au, Pb, Nb, and Mo. + +The tabulated values of edge energies from Table 1 in `Kraft, et +al. `__ are used in the +calibration. + + +#. Be sure that all 10 of these elements are actually mounted on the + reference wheel and configured in the ``xafs_ref.mapping`` dict. + (They should be. It would be very unusual for any of these foils + to have been removed from the reference wheel.) + +#. Run the command + + .. code-block:: python + + RE(calibrate(mono='111')) + + Use the ``mono='311'`` argument for the Si(311) monochromator. + This will, in sequence, move to each edge and measure a XANES scan + over a wide enough range that it should cover the edge (unless the + mono is currently calibrated VERY wrongly). This will write a file + called :file:`edges111.ini` (or :file:`edges3111.ini`). Each XANES + scan uses the file + :file:`/home/xf06bm/Data/Staff/mono_calibration/cal.ini` as the INI + file. Edge appropriate command line parameters will be added by + the ``calibrate()`` plan. + +#. Examine the data in Athena. Make sure E\ :sub:`0` is selected + correctly for all 10 edges. Copy those values into the first column + of :file:`edges111.ini` (or :file:`edges311.ini`). + + .. attention:: + + It is no longer necessary to compute the angular positions of + the monochromator. Those will be computed from the edge energy + values you edited into the INI file by hand. + + .. todo:: + + Implement on-the-fly determination of E\ :sub:`0` to obviate the + step of editing the INI file. Pb is tricky. Nb and Mo are kind + of tricky. + + + .. + Compute the + angular positions using + .. code-block:: python + dcm.e2a() + and copy those numbers into the :file:`edgeH11.ini` file. + +#. Run the command + + .. code-block:: python + + calibrate_mono(mono='111') + + (or use the ``'311'`` argument). This will show the fitting + results and plot the best fit. It will also print in a text box + instructions for modifying the :file:`BMM/dcm-parameters.py` file + to use the new calibration values. + + .. _fig-calibrate: + .. figure:: _images/Calibration_111.png + :target: _images/Calibration_111.png + :width: 70% + :align: center + + Example calibration curve + + +#. Edit :file:`BMM/dcm-parameters.py` as indicated. + +#. Do + + .. code-block:: python + + %run -i 'home/xf06bm/.ipython/profile_collection/startup/BMM/dcm-parameters.py' + + then do + + .. code-block:: python + + dcm.set_crystal() + + Or simply restart ``bsui``, which is usually the easier thing. + +#. Finally, do + + .. code-block:: python + + calibrate_pitch(mono='111') + + This performs a simple linear fit to the rocking curve peak + positions for ``dcm_pitch`` found at each edge. Use the fitted + slope and offset to modify ``approximate_pitch`` in + :file:`BMM/functions.py`. + +The mono should now be correctly calibrated using the new calibration +parameters. + + +Provision a new beamline computer +--------------------------------- + +This is a list of notes on how to finish the provisioning of a new +beamline computer. + +install additional packages +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ++ plasma-desktop (just ... better) ++ redis (essential for operation of bsui) ++ most (used as the pager in BMM's bsui profile) ++ ag (powerful ack-like grep alternative) ++ sddm (also just ... better) ++ fswebcam (used to capture analog pinhole camera) ++ demeter and perl-Graphics-GnuplotIF (something silly, no doubt) ++ slack (communications) ++ ark (compression, useful in file manager) + + +To install these, do: + +.. code-block:: sh + + dzdo dnf install redis most ag sddm fswebcam demeter perl-Graphics-GnuplotIF slack ark + dzdo dnf install --skip-broken --nobest @kde-desktop + +The second command installs the KDE metapackage, skipping missing +packages. + +To finish installing ``sddm``, do + +.. code-block:: sh + + dzdo systemctl stop gdm + dzdo systemctl start sddm + +Desktop wallpaper +~~~~~~~~~~~~~~~~~ + +This may not be provisioned correctly out of the box. Find the +beamline wallpapers in ``/usr/share/nsls2/wallpapers/beamlines``. + +Right click on the desktop and select "Configure Desktop and +Wallpaper". Click on "Add Image" and navigate to the folder above. + +Things to install from git +~~~~~~~~~~~~~~~~~~~~~~~~~~ + ++ BMM stuff: ``git clone git@github.com:NSLS-II-BMM/BMM-beamline-configuration.git`` + + then, ``cd ~/bin`` and ``ln -s ~/git/BMM-beamline-configuration/tools/run-cadashboard`` ++ BMM user manual: ``git clone git@github.com:NSLS-II-BMM/BeamlineManual.git`` ++ BMM standards: ``git clone git@github.com:NSLS-II-BMM/bmm-standards.git`` ++ Switch visualization: ``git clone git@github.com:NSLS-II-BMM/switch-pretty-printer.git`` + +Also do ``cd ~/bin`` and ``ln -s ~/.ipython/profile_collection/startup/consumer/run-consumer`` + +Data collection folders +~~~~~~~~~~~~~~~~~~~~~~~ + +Make the local data collection folders. The +:numref:`BMMuser.start_experiment() command (Section %s) ` +will make symlinks under those folders to the correct place on central +storage. + +.. code-block:: text + + mkdir ~/Data + mkdir ~/Data/Visitors + mkdir ~/Data/Staff + +Next need to recreate historical symlinks using the correct tool. + +.. todo:: capture the ``make_links.py`` script and the ``ls-lR`` + files. Also need to automate generating the ``ls-lR`` files. + + diff --git a/_sources/modules.rst b/_sources/modules.rst new file mode 100644 index 0000000..824cc6c --- /dev/null +++ b/_sources/modules.rst @@ -0,0 +1,6 @@ +BeamlineManual +============== + +.. toctree:: + :maxdepth: 4 + diff --git a/_sources/motors.rst b/_sources/motors.rst new file mode 100644 index 0000000..39a9d0a --- /dev/null +++ b/_sources/motors.rst @@ -0,0 +1,432 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. |nbsp| unicode:: 0xA0 + :trim: + +.. _motors: + +Moving and querying motors +========================== + +To get an overview of the state of the beamline motors, do ``%m`` at +the bsui command line. Here is an example: + +.. code-block:: text + + In [1897]: %m + ============================================================================== + Energy = 19300.1 reflection = Si(111) mode = fixed + Bragg = 5.87946 2nd Xtal Perp = 15.0792 2nd Xtal Para = 146.4328 + + M2 + vertical = 6.000 mm YU = 6.000 + lateral = 0.000 mm YDO = 6.000 + pitch = 0.000 mrad YDI = 6.000 + roll = -0.001 mrad XU = -0.129 + yaw = 0.200 mrad XD = 0.129 + + M3 + vertical = 0.000 mm YU = -1.167 + lateral = 15.001 mm YDO = 1.167 + pitch = 3.500 mrad YDI = 1.167 + roll = 0.000 mrad XU = 15.001 + yaw = 0.001 mrad XD = 15.001 + + Slits3: vsize vcenter hsize hcenter top bottom outboard inboard + 1.350 0.000 8.000 -0.000 0.675 -0.675 4.000 -4.000 + + DM3_BCT: 45.004 mm + + XAFS table: + vertical pitch roll YU YDO YDI + 132.000 0.000 0.000 132.000 132.000 132.000 + + XAFS stages: + x y roll pitch linxs roth wheel rots + 9.224 115.000 0.840 0.000 -45.000 0.000 -59.000 0.000 + ============================================================================== + + +.. _sample_stages: + +Sample stages +------------- + +These stages sit on top of the XAFS optical table. The nickname is a +short string that can be used in the ``linescan()`` plan and certain +other places instead of writing out the BlueSky name for the motor. + +.. table:: XAFS sample stages + :name: xafs-stages + :align: left + + ============== =========== ========= ======================= ===================================== + motor type units notes directions + ============== =========== ========= ======================= ===================================== + ``xafs_x`` linear mm main sample stage |plus| outboard, - inboard + ``xafs_y`` linear mm main sample stage |plus| up, - down + ``xafs_det`` linear mm detector mount |plus| away from sample, - closer + ``xafs_wheel`` rotary degrees *ex situ* sample wheel |plus| clockwise, - widdershins + ``xafs_linxs`` linear mm ref wheel vertical |plus| up, - down + ``xafs_ref`` rotary degrees reference stage |plus| clockwise, - widdershins + ``xafs_refx`` linear mm reference stage |plus| outboard, - inboard + ``xafs_refy`` linear mm reference stage |plus| up, - down + ``xafs_pitch`` tilt degrees Huber tilt stage |plus| more positive + ``xafs_roll`` tilt degrees Huber tilt stage |plus| more positive + ``xafs_rots`` rotary degrees small rotary stage + ============== =========== ========= ======================= ===================================== + +Configuration and position of the motors can be queried easily. In +the following examples, the ``xafs_y`` motor is used. The commands +are the same for all sample stage motors. + +**Querying position** + The position of any motor can be queried with a command line like :: + + %w xafs_y + + or :: + + xafs_y.position + +**Moving to a new position** + Always move motors through the run engine, for example: :: + + RE(mvr(xafs_y, 10)) + + ``mvr`` is the relative move command |nd| the numerical argument is + the amount by which the motor will move from the current position. + + ``mv``, as in:: + + RE(mv(xafs_y, 37.63)) + + is the absolute move command. The numerical argument is the + position to which the motor will move. + + All movements are logged in the :numref:`experimental log (Section %s) ` + +**Moving to a new position in a plan** + To move a sample stage as part of a :numref:`macro (Section %s) + ` , do:: + + yield from mv(xafs_y, 37.36) + + You can combine motions of two or more motors in a single + synchronous movement:: + + yield from mv(xafs_y, 37.36, xafs_x, 15.79) + + Similarly:: + + yield from mvr(xafs_y, 5) + +**Querying soft limits** + To know the soft limits on a sample stage, do ``xafs_y.limits`` or + ``xafs_y.llm.get()`` or ``xafs_y.hlm.get()`` to query the low or + high limits individually. + +**Setting soft limits** + To set the soft limits on a sample stage, do something like + ``xafs_y.llm.put(5)`` or ``xafs_y.hlm.put(85)`` + +**Reference wheel** + :numref:`The reference stage (Section %s) ` is a + rotation stage with a sample wheel holding up to 48 reference + foils. It is calibrated such that the beam passes through the + center of a slot every 15 degrees. The slots are indexed such that + they can be accessed by the symbol of the element being measured. + To move to a new reference foil:: + + RE(reference('Fe')) + + To see the available foils, do ``%se`` or look at the value of + ``xafs_ref.mapping``. + + BMM has foils or stable oxides for each of these elements:: + + Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Zr Nb Mo Pt Au Pb Bi Sr Y + Cs La Ce Pr Nd Sm Eu Gd Tb Dy Ho Er Tm Yb Lu Rb Ba Hf Ta W Re Os Ir Ru + + (A few of these |nd| Ba, Os, Ir |nd| are missing as of 2 + November, 2023. We are working to obtain the missing ones.) + + `Here is a complete list of standards + `__ + in BMM's collection. These standards are mounted on sample wheels + and stored in the hutch for ready access by users. + + +Sample wheel +------------ + +The ``xafs_wheel`` motor is a rotary stage that is typically mounted +on the XY stage. It can be mounted face-on to the beam or at 45 +degrees for use with the fluorescence detector. + +Sample plates laser cut from plastic sheet (initially we used `Delrin +`_, since COVID made +supply difficult, we use whatever we can get) are attached to the +rotation stage. The single-ring version of these plates have 24 slots +arranged around the periphery, evenly spaced 15 degree apart. The +double-ring version has concentric rings of 24 slots each. These are +still 15 degrees apart. The radius of the outer ring is 26 mm larger +than the radius of the inner ring. + +While you can move from slot to slot in increments of 15 degrees, i.e. + +.. code-block:: python + + RE(mvr(xafs_wheel, 15*3)) + +it is somewhat easier to move by slot number. The sample plates are +cut with sample numbers for slots 1, 7, 13, and 19, making it clear +which slot is which. The wheel is mounted such that the numbers can +be read normally on the side facing the beam. + +To move, for instance, to slot 5, do: + +.. code-block:: python + + RE(slot(5)) + +In a macro, do + +.. code-block:: python + + yield from slot(5) + +To move to the inner or outer ring, do + +.. code-block:: python + + RE(xafs_wheel.inner()) + RE(xafs_wheel.outer()) + +This translates ``xafs_x`` by |nbsp| |pm| 26 mm. + +In a macro, do + +.. code-block:: python + + yield from xafs_wheel.inner() + yield from xafs_wheel.outer() + + +.. + Sample spinner + -------------- + + The sample spinner is a 12 volt CPU cooling fan mounted on a plate + which is mounted on the tilt stage. It is used to spin crystalline + samples in an effort to suppress Bragg peaks which might enter the + fluorescence detector. + + To turn the spinner on and off:: + + fan.on() + fan.off() + + To turn the spinner on or off in a :numref:`macro (Section %s) `:: + + yield from fan.on_plan() + yield from fan.off_plan() + + The spinner should **always** be turned off before entering the end + station. It is a good idea to always have a camera pointed at the + spinner while it is use. + + +Glancing angle stage +-------------------- + +The glancing angle stage, shown in :numref:`Figure %s `, +can hold up to eight samples and allows each sample to spin +independently. The spinning allows spurious diffraction from a +crystalline substrate into the fluorescence detector to be suppressed. + +.. _fig-gastage: +.. figure:: _images/glancing_angle_stage.jpg + :target: _images/glancing_angle_stage.jpg + :width: 50% + :align: center + + The glancing angle stage with 8 sample positions. + +To move to a sample position:: + + RE(ga.to(3)) + +where the argument is a number from 1 to 8, as shown by the labels in +:numref:`Figure %s `. This command will turn off all +other spinners, rotate that sample into the beam path, and start the +sample spinning. + +To turn a spinner on or off, where the argument is a number from 1 to 8:: + + RE(ga.on(3)) + RE(ga.off(3)) + +To turn off all spinners:: + + RE(ga.alloff()) + +In a plan:: + + yield from ga.on_plan() + yield from ga.off_plan() + yield from ga.alloff_plan() + + + +Sample alignment +~~~~~~~~~~~~~~~~ + +A sample is aligned into the beam by moving the tilt stage to an +approximately flat position:: + + RE(mv(xafs_pitch(0)) + +Then performing the following sequence:: + + RE(linescan(xafs_y, 'It', -1, 1, 41)) + RE(linescan(xafs_pitch, 'It', -2, 2, 41)) + +At the and of the ``xafs_y`` scan, pick the position halfway down the +edge in the It signal. At the end of the ``xafs_pitch`` scan, select +the peak position. This will place the sample such that it is flat +relative to the incident beam direction and halfway blocking the beam. + +You may choose to iterate those two scans. + +Next move the sample to the measurement angle. Suppose the +measurement angle is 2.5 degrees:: + + RE(mv(xafs_pitch, 2.5)) + +Finally, position the sample so that the beam is hitting the center of +the sample:: + + RE(linescan(xafs_y, 'If', -1, 1, 41)) + +Since the sample is not at the eucentric of the tilt stage, this final +vertical scan is always necessary. When first aligning the sample, +you may need to center the sample in ``xafs_x`` as well:: + + RE(linescan(xafs_x, 'If', -6, 6, 41)) + +You will almost certainly need to scan over a longer range. Make sure +the detector is retracted far enough to allow for this motion. + + +Automated alignment +~~~~~~~~~~~~~~~~~~~ + +The sequence described above can be automated in many cases:: + + RE(ga.auto_align(2.5)) + +This will run the sequence of alignment scans described above, +pitching the sample to the user-specified angle before the vertical +scan measuring the fluorescence signal. This works by fitting an +error function to the ``xafs_y`` scan versus It, selecting the peak of +the pitch scan, then selecting the peak of the ``xafs_y`` scan versus +fluorescence. + +.. _fig-ga_alignment: +.. figure:: _images/spinner-alignment.png + :target: _images/spinner-alignment.png + :width: 50% + :align: center + + If all goes well, the result of the sample alignment looks like + this. A picture like this is posted to :numref:`Slack (Section %s) + `. + + +For very flat samples which are square or circular and about 5mm +across or larger, this alignment algorithm is very robust. For oddly +shaped samples, verify that the automation works before relying upon +it. Otherwise, simply do the alignment by hand. + +Table motors +------------ + +Typically, table motors are not moved individually. When changing +:numref:`photon delivery system modes (Section %s) `, the +table should be put into the correct orientation such that the beam +passes through the center of the ion chambers. It is very easy to put +the beamline in a confusing state by changing the table motors outside +of the ``change_mode()`` command. + +The lateral table motors |nd| and its yaw |nd| are normally disabled. + + +.. table:: XAFS table motors + :name: xafs-table + :align: left + + ============== ======== ================================= + motor units notes + ============== ======== ================================= + xafs_yu mm upstream table jack + xafs_ydi mm downstream, inboard table jack + xafs_ydo mm downstream, outboard table jack + xafs_vertical mm coordinated linear motion + xafs_pitch degrees coordinated table pitch + xafs_roll degrees coordinated table roll + ============== ======== ================================= + + +**Querying table position** + The position of any motor can be queried with a command line like + ``%w xafs_table``. + +**Moving table motors** + The normal movement commands work on the real and virtual motors, + e.g.:: + + RE(mvr(xafs_ydi, 3)) + RE(mv(xafs_vertical, 107)) + + Again, this is rarely necessary. The mode changing plan should + leave the table in the correct location for your experiment. + + All table movements are recorded in the :numref:`experimental log + (Section %s) `. + +Examine Motor Axes +------------------ + +Some BlueSky functionality related to the axes controlled by the FMBO +MCS8 motor controllers. These include: + ++ Collimating mirror (``m1_*``) ++ Filter assemblies (``dm1_*``) ++ Monochromator (``dcm_*``) ++ Second diagnostic module (``dm2_*``) ++ Focusing mirror (``m2_*``) ++ Harmonic rejection mirror (``m3_*``) ++ Third diagnostic module (``dm3_*``) + +(38 axes motors in total) but not any of the end station motors +(``xafs_*``), which are run using NSLS-II standard GeoBricks. + +**Homing** + Any of these axes can be homed with, for example, ``dm3_bct.home()`` + +**Summarize the status of a motor** + To show the values of all the status flags, for example, ``dm3_bct.status()`` + +**Which motors have been homed?** + Do this command: ``homed()`` + +**Which motors have their amplifiers enabled?** + Do this command: ``ampen()`` diff --git a/_sources/pds.rst b/_sources/pds.rst new file mode 100644 index 0000000..ca722af --- /dev/null +++ b/_sources/pds.rst @@ -0,0 +1,592 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. _pds: + +Photon Delivery System +====================== + +Configure the Photon Delivery System +------------------------------------ + +Configuring the photon delivery system for a specific measurement is +usually quite simple. When moving to a new absorption edge, do the +following: + +.. code-block:: python + + RE(change_edge('Fe')) + +substituting the two-letter symbol for the element you want to +measure. This will: + +* move the monochromator :numref:`(Section %s) ` +* put the photon delivery system in the correct mode :numref:`(Section + %s) ` +* measure the rocking curve of the monochromator :numref:`(Section %s) + ` +* optimize the height of the hutch slits :numref:`(Section %s) + ` +* move the reference foil holder to the correct position + :numref:`(Section %s) ` +* set the active Xspress3 ROI to the correct emission line + +This whole process takes at most 7 minutes, sometimes under 3 +minutes. After that, the beamline is ready to collect data. + +If using the focusing mirror, do this: + +.. code-block:: python + + RE(change_edge('Fe', focus=True)) + +Excluding the ``focus`` argument |nd| or setting it to False |nd| +indicates setup for unfocused beam. + +This edge change can be put into a :numref:`macro (see Section %s) +` like so: + +.. code-block:: python + + yield from change_edge('Fe') + +or + +.. code-block:: python + + yield from change_edge('Fe', focus=True) + +In this way, a macro can manage energy changes while you sleep! + +.. _foilholder: + +Automating reference foil changes +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +A wheel is used to hold and switch between reference foils and stable +oxides. The standard reference wheel has most of the elements +accessible at BMM, including all the lanthanides (except Pm!). A +double wheel (:numref:`see Figure %s `) is used +to hold the standards. The wheel is mounted on a rotation stage which +is, in turn, mounted on an XY stage for alignment. + +.. _fig-ref_wheel: +.. figure:: _images/ref_wheel.jpg + :target: _images/ref_wheel.jpg + :width: 50% + :align: center + + The reference wheel. + + +To select, for example, the iron reference foil: + +.. code-block:: python + + RE(reference('Fe')) + +In a plan: + +.. code-block:: python + + yield from reference('Fe') + +The argument is simply the one- or two-element symbol for the target +element. + +This selects the correct reference by rotating to the correct slot and +translating to the correct ring on the wheel. + +The ``change_edge()`` command does this automatically, so long as the +target edge is available on the reference holder. + +The foil holder interface is configured as a python dictionary. See +``xafs_ref.mapping``. + +This dictionary identifies the positions in ``xafs_ref`` and +``xafs_refx`` for each reference sample. It also identifies the form +of the reference samples and its chemical composition. + +To see the available reference materials and their positions on the +reference wheel, do ``%se``. + +`Here is a complete list of standards +`__ in +BMM's collection. + + +.. _roichannels: + +.. + Automating fluorescence ROI changes + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + To make sure that the correct ROI channel is selected, you need to + configure the ROI readout. Suppose that you have configured the + analog detector readout system to measure three of those transition + metals. Then you would execute a command like this to configure the + detector readout: + + .. code-block:: python + + rois.set('Fe Co Ni') + + Unfortunately, the ROI channels and reference holder have the hot + dog/hot dog bun problem. There are only three output channels for the + analog detector readout system, thus only three elements can be + configured at a time. + + When you change edge to an element that is configured as an ROI + channel, the data acquisition system will take its fluorescence data + from the corresponding channels of the Struck multichannel scalar. It + will also perform the dead-time correction using the correct signal + chains for the selected element. + +Parameters for the change_edge() command +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Typically the ``change_edge()`` command is called with one or two +arguments, the mandatory element symbol and the the ``focus`` +argument, which can be ``True`` or ``False``. + +The full set of parameters for the ``change_edge()`` plan are: + +.. code-block:: python + + RE(change_edge(element, focus=False, edge='K', energy=None, tune=True, slits=True, calibrating=False, target=300.)) + +where, + +``element`` + The one- or two-letter element symbol or Z number. + +``focus`` + ``True``: set up for using the focusing mirror, modes A, B, C; + ``False``: unfocused beam, modes D, E, F. Default is ``False``. + +``edge`` + If not specified, use K or L3, as appropriate for the energy range + of the beamline. Use this argument to specify an L1, L2, or M edge. + +``energy`` + Use an E0 value that is not obtained from the look-up table. + Default is unspecified, i.e. use ``element`` and look-up table. + This is rarely necessary, except when setting up for XRD. + +``tune`` + ``True``: optimize DCM second crystal pitch; ``False``: skip ``rocking_curve()`` + scan. Default is ``True``. Skipping this is rarely a good idea. + +``slits`` + ``True``: optimize slit height; ``False``: skip ``slit_hight()`` + scan. Default is ``True``. Skipping this is rarely a good idea. + +``calibrating`` + ``True``: used when performing beamline maintenance. Default is + ``False``. Rarely used. + +``target`` + The energy above e0 at which to perform the rocking curve scan. + Default is 300. + + +Most of those parameters are rarely used, except for ``edge`` and +``focus``. If you need to set up for measuring an L\ :sub:`2` or L\ +:sub:`1` edge, you must specify ``edge``. + + +For all the details about the individual parts of the photon delivery +system, read on! + + +.. _shutters: + +Shutters +-------- + +**Open and close the photon shutter** + In the nomenclature of BMM, the photon shutter is ``shb``. Open + and close this shutter with:: + + shb.open() + shb.close() + + These plans are somewhat more elaborate than simply toggling the + state of the shutters. It happens from time to time that the + shutter does not trigger when told to open or close. So, these + plans try up to three times to open or close the photon shutter, + with a 1.5 second pause between attempts. + + If you wish to open or close the photon shutter (using the same + multiple attempt algorithm) in a :numref:`macro (Section %s) + `, do:: + + yield from shb.open_plan() + yield from shb.close_plan() + +**Open and close the safety shutter** + This is the front-end shutter. Closing it takes light off the + monochromator, which is not something you typically want to do + during an experiment. That said, the safety shutter is ``sha`` in + the BMM nomenclature:: + + sha.open() + sha.close() + + and:: + + yield from sha.open_plan() + yield from sha.close_plan() + + +.. _dcm: + +Monochromator +------------- + +The monochromator consists of 8 motors. It should never be necessary +to interact directly with any of the physical motors. Plans exist for +facilitating any actions a user should ever need. + +**Query the current energy** + To know the position and energy of the monochromator: ``%w dcm`` + + This returns a short report like this: + + .. code-block:: text + + Energy = 19300.1 reflection = Si(111) + current: Bragg = 5.87946 2nd Xtal Perp = 15.0792 2nd Xtal Para = 146.4328 + + + This report shows the current energy, the crystal set currently in + use, and the position of the parallel and perpendicular motors of + the second crystal carriage. + +**Move to a new energy** + The ``dcm.energy`` virtual motor coordinates the Bragg, parallel, + and perpendicular motors to maintain a fixed exit height and set + the energy of the mono. To move to the copper K edge energy:: + + RE(mv(dcm.energy, 8979)) + + To move 50 eV above the copper K edge energy:: + + RE(mv(dcm.energy, 8979+50)) + + Note that the BlueSky command line is able to do simple arithmetic + (and a whole lot more!). It is a good idea to leave the arithmetic + to the computer. + +**Move to a new energy in a macro** + An energy change can be a part of a :numref:`macro (Section %s) + `. Simply do:: + + yield from mv(dcm.energy, 8979+50)) + +**Tune the second crystal of the mono** + After a long move, you might need to retune the second crystal. To + find the peak of the rocking curve and move to that peak:: + + RE(rocking_curve()) + + This will run a scan of the pitch of the second crystal. At the + end of the scan, it moves to the center of mass of the measured + intensity profile. + + You can do the rocking curve scan by looking at the signal on the + Bicron which is used as the incident beam monitor for the XRD end + station. Do:: + + RE(rocking_curve(detector='Bicron')) + + You can tune the second crystal by hand with these commands:: + + tu() + td() + + Those stand for "tune up" and "tune down". Do not + think that "up" and "down" refer to measured + intensity. Rather, they refer to the direction of motion of the + motor which adjusts the second crystal pitch. When you move to + higher energy, you usually need to tune in ``td()`` direction. + When you move to a lower energy, you usually need to tune in the + ``tu()`` direction. Obviously..... + +**Fixed-exit and pseudo-channelcut modes** + The mono can be run in either fixed-exit or pseudo-channelcut + modes. + + Fixed exit means that the second monochromator crystal will be + moved in directions parallel and perpendicular to its diffracting + surface in order to maintain a fixed exit height of the beam coming + from the second crystal. Without fixed-exit mode, it would not be + possible to change the energy over the entire energy range of the + beamline. The aperture after the monochromator is only a few + millimeters tall. The vertical displacement of the beam over a + lerge energy change would be sufficient to move the beam out of the + aperture. + + However, the stability of the monochromator suffers with respect to + EXAFS data quality when measuring an energy scan in fixed-exit + mode. We find it is better to disable the parallel and + perpendicular motions when measuring XAFS, suffering a small + vertical displacement of the beam. + + The mono mode is controlled by a parameter: + + .. code-block:: python + + dcm.mode = 'fixed' + + or + + .. code-block:: python + + dcm.mode = 'channelcut' + + In practice, the monochromator is normally left in fixed-exit mode. + That way, the monochromator can be moved without having to worry + about the beam height and the monochromator exit aperture. In the + :numref:`XAFS scan plan (Section %s) `, the monochromator + first moves |nd| in fixed-exit mode |nd| to the center of the + angular range of the scan, then sets ``dcm.mode`` to + ``channelcut``. Once the sequence of scan repititions is finished, + the monochromator is moved back to the center of the angular range + and the monochromator is returned to fixed-exit mode. + + +Post-mono slits +--------------- + +After the mono, before the focusing mirror, in Diagnostic Module 2, +there is a four-blade slit system. These are used to define the beam +size on the mirrors and to refine energy resolution for the focused +beam.. + + +.. table:: Post mono slit motors + :name: slits2-motors + :align: left + + =============== ======== ======================= =================== + motor units notes motion type + =============== ======== ======================= =================== + slits2_top mm top blade position single axis + slits2_bottom mm bottom blade position single axis + slits2_inboard mm inboard blade position single axis + slits2_outboard mm outboard blade position single axis + slits2_hsize mm horizontal size coordinated motion + slits2_hcenter mm horizontal center coordinated motion + slits2_vsize mm vertical size coordinated motion + slits2_vcenter mm vertical center coordinated motion + =============== ======== ======================= =================== + + +The individual blades are moved like any other motor:: + + RE(mv(slits2.outboard, -0.5)) + RE(mvr(slits2.top, -0.1)) + + +Coordinated motions are moved the same way:: + + RE(mv(slits2.hsize, 6)) + RE(mvr(slits2.vcenter, -0.1)) + +To know the current positions of the slit blades and their coordinated +motions, use ``%w slits2`` + +.. code-block:: text + + In [1966]: %w slits2 + SLITS2: + vertical size = 1.350 mm Top = 0.675 + vertical center = 0.000 mm Bottom = -0.675 + horizontal size = 8.000 mm Outboard = 4.000 + horizontal center = 0.000 mm Inboard = -4.000 + +Mirrors +------- + +Mirrors are set as part of the mode changing plan. Unless you know +exactly what you are doing, you probably don't want to move the +mirrors outside of the ``change_mode()`` command. (Adjusting M1 by +hand is a horrible idea -- unless you know exactly what you are doing +and why.) Changing the mirror positions in any way changes the height +and inclination of the beam as it enters the end station. This +requires changes in positions of the slits, the XAFS table, and other +parts of the photon delivery system. + +Outside of the use of the ``change_mode()`` command, it should not be +necessary for users to move the mirror motors. It is **very easy** to +lose the beam entirely when moving mirror motors. Without a clear +understanding of how the optics work, re-finding the beam can be quite +challenging. If you loose the beam by moving motors, the best +solution is probably to rerun the ``change_mode()`` command. + +That said, if you want to know the current positions of the motors on +the focusing mirror, use ``%w m2`` + + +.. code-block:: text + + In [1903]: %w m2 + M2: + vertical = 6.000 mm YU = 6.000 + lateral = 0.000 mm YDO = 6.000 + pitch = 0.000 mrad YDI = 6.000 + roll = -0.001 mrad XU = -0.129 + yaw = 0.200 mrad XD = 0.129 + bender = 163789.0 steps + +For the harmonic rejection mirror, use ``%w m3`` + +.. code-block:: text + + In [1904]: %w m3 + M3: (Rh/Pt stripe) + vertical = 0.000 mm YU = -1.167 + lateral = 15.001 mm YDO = 1.167 + pitch = 3.500 mrad YDI = 1.167 + roll = 0.000 mrad XU = 15.001 + yaw = 0.001 mrad XD = 15.001 + +.. _slits3: + +End station slits +----------------- + +Near the end of the photon delivery system, in Diagnostic Module 3 in +the end station, there is a four-blade slit system. These are used +to define the beam size on the sample. + + +.. table:: End station slit motors + :name: slits3-motors + :align: left + + =============== ======== ======================= =================== + motor units notes motion type + =============== ======== ======================= =================== + slits3_top mm top blade position single axis + slits3_bottom mm bottom blade position single axis + slits3_inboard mm inboard blade position single axis + slits3_outboard mm outboard blade position single axis + slits3_hsize mm horizontal size coordinated motion + slits3_hcenter mm horizontal center coordinated motion + slits3_vsize mm vertical size coordinated motion + slits3_vcenter mm vertical center coordinated motion + =============== ======== ======================= =================== + + +The individual blades are moved like any other motor, for example:: + + RE(mv(slits3.outboard, -0.5)) + RE(mvr(slits3.top, -0.1)) + + +Coordinated motions are moved the same way, for example:: + + RE(mv(slits3.hsize, 6)) + RE(mvr(slits3.vcenter, -0.1)) + +To know the current positions of the slit blades and their coordinated +motions, use ``%w slits3`` + +.. code-block:: text + + In [1966]: %w slits3 + SLITS3: + vertical size = 1.350 mm Top = 0.675 + vertical center = 0.000 mm Bottom = -0.675 + horizontal size = 8.000 mm Outboard = 4.000 + horizontal center = 0.000 mm Inboard = -4.000 + +Configurations +-------------- + +.. _change-mode: + +Photon delivery modes +~~~~~~~~~~~~~~~~~~~~~ + +A look-up table is used to move the elements of the photon delivery +system to their correct locations for the different energy ranges and +focusing conditions. Here is a table of different photon delivery +modes. Modes A-F are for delivery of light to the XAS end station. +Mode XRD delivers high energy, focused beam to the goniometer. + + +.. _photon_delivery_modes: + +.. table:: Photon delivery modes + :name: pds-modes + :align: left + + ====== ============ ========================= + Mode focused energy range + ====== ============ ========================= + A |checkmark| above 8 keV + B |checkmark| below 6 keV + C |checkmark| 6 keV |nd| 8 keV + D |xmark| above 8 keV + E |xmark| 6 keV |nd| 8 keV + F |xmark| below 6 keV + XRD |checkmark| above 8 keV + ====== ============ ========================= + +.. todo:: The lookup table is not complete for mode B. In fact, the + ydo and ydi jacks of M3 cannot move low enough to enter mode B. In + practice, mode B is not available. Elements that should be + measured in mode B are, instead, measured in mode C and we live + with incomplete harmonic rejection. + + +To move between modes, do:: + + RE(change_mode('')) + +where ```` is one of the strings in the first column of +:numref:`Table %s `. For example:: + + RE(change_mode('D')) + +This will move 17 motors all at the same time and should take less +than 5 minutes. + +Focusing at the XAS end station requires that bender be near its upper +limit. Focusing at the XRD station has the bender near the middle of +its range. + +.. _change-crystals: + +Monochromator crystals +~~~~~~~~~~~~~~~~~~~~~~ + +To change between the Si(111) and Si(311) crystals, do:: + + RE(change_xtals('111')) + +or:: + + RE(change_xtals('311')) + +This will move the lateral motor of the monochromator between the two +crystal sets and adjust the pitch of the second crystal to be nearly +in tune and the roll to deliver the beam to nearly the same location +for both crystals. It will also return the monochromator to the +starting energy. + +This takes about 5 minutes. + +The ``change_xtals()`` plan also runs the :numref:`rocking curve +(Section %s) ` macro to fix the tuning of the +second crystal. + diff --git a/_sources/plotting.rst b/_sources/plotting.rst new file mode 100644 index 0000000..b267c77 --- /dev/null +++ b/_sources/plotting.rst @@ -0,0 +1,384 @@ + +.. _plotting: + +Plotting via Kafka at BMM +========================= + +For years, plotting at BMM used a `BlueSky preprocessor +`__ +and specially constructed functions for extracting data from Bluesky +event documents. That was fine and provided useful real-time views +of data for our users. + +The problem with using these modified BlueSky `LivePlots +`__ +is that they are tied to the machine which is running the Run Engine. +As BMM began to use `BlueSky queueserver +`__, which is +typically `not` run on the same machine as ``bsui``, this plotting +scheme stopped being helpful. + +The solution was to move all plotting chores out of the main data +collection profile and into a Kafka consumer. Using the +`bluesky-kafka producer and consumer +`__ and with the help of +DSSI, the beamline computers were given access to the same Kafka +server used by BlueSky to orchestrate it's communications. We were +also given a private Kafka topic over which to send BMM-specific +messages intended for use by a BMM-specific consumer. + +.. _start_consumer: + +Starting the Kafka consumer +--------------------------- + +In the ``consumer/`` folder, there is a bash script called +``run-consumer``. This script establishes the correct shell and conda +environments for running the data plotter. It then starts an ipython +instance, loads ``consumer/consume_measurement.py``, and starts the +Kafka consumer. + +For ease of use, ``run-consumer`` can be copied into ``$HOME/bin`` so +that it is in the execution path. + +Bruce's preference for this is to open a new terminal window on a +virtual desktop that is not the main desktop. In that terminal +window, run ``run-consumer``. + + +.. _fig-consumer: +.. figure:: _images/consumer.png + :target: _images/consumer.png + :width: 70% + :align: center + + A terminal window in which the Kafka consumer has just been started. + + + +Various types of plots +---------------------- + +Communicating over the ``bmm-test`` topic, two sorts of plotting +chores are managed. In each case, the document is a simple dictionary +which the consumer parses to perform a plotting chore using +`matplotlib `__. + +.. todo:: Would a browser-y solution like `Bokeh + `__ be an + alternative? + +The dictionary sent as the document is not structured like a BlueSky +document. There is no schema. The dictionary simply contains +keywords which the consumer is programmed to recognize. + +Over time, more plotting chores will be added to the consumer. At the +time of this writing, these plotting chores are supported. The +explanation here will hopefully lower the barrier of understanding how +plotting via Kafka consumer works at BMM. It is, admittedly, a rather +baroque system using a lot of infrastructure. + + + + + +.. _liveline: + +Live linescan plots +~~~~~~~~~~~~~~~~~~~ + +At BMM, :numref:`a linescan (Sec %s) ` is a scan where a +motor is moved and a signal is plotted. A linescan begins by issuing +a message telling the consumer to start a new plot and to begin +looking for BlueSky event documents: + +.. code-block:: python + + {'linescan' : 'start', + 'motor' : 'xafs_x', + 'detector' : 'I0',} + +Those event documents will be parsed to obtain the result of the most +recently measured data point. The new data point is added to the plot +and the plot is redrawn. + +When the linescan finishes, a *stop* message is issued: + +.. code-block:: python + + {'linescan': 'end',} + +This replicates very closely how the BlueSky `LivePlot +`__ +has been used to display linescsan data. + +.. _livetime: + +Live timescan plots +~~~~~~~~~~~~~~~~~~~ + +With the BMM plotter, a timescan and a line scan are made with the +same code. The only difference is that no motor is given for a +timescan and the X-axis is plotted as the time stamp of the current +point minus the time stamp of the first point. Thus the X-axis is in +units of seconds. The signal plotted on the Y-axis is determined the +same as for a linescan and all the internal mechanics of the time plot +are the same as for a motor plot. + + +.. _livearea: + +Live areascan plots +~~~~~~~~~~~~~~~~~~~ + +.. todo:: Make and document live areascan plots. Currently, a + LivePlot is used when running ``areascan()`` and the Kafka + consumer replicates the plot afterwards. The replicated + plot has the correct axes and is saved in the dossier. + + This (along with the ``%xrf`` plot) is the only remaining + plot not yet made via the Kafka consumer. + +.. _livealignment: + +Alignment plots +~~~~~~~~~~~~~~~ + +Various alignment chores at the beamline |nd| for example, aligning a +slot on a :numref:`sample wheel (Sec %s) ` or aligning +the :numref:`glancing angle stage (Sec %s) ` +|nd| involve a series of :numref:`linescans (Sec %s) `, each +of which is plotted in real time |nd| as shown :numref:`below (Sec %s) +` |nd| followed by a plot summarizing the result of the +alignment. + +Using the sample wheel alignment as an example, the sequence is +initiated by this document: + +.. code-block:: python + + {'align_wheel' : 'start'} + +As each linescan in the alignment procedure is completed, some +automated analysis is performed to determine the optimal position of +the motor axis being scanned. The results of this analysis are issued +in a document like this. + +.. code-block:: python + + {'align_wheel' : 'find_slot', + 'motor' : 'xafs_x', + 'detector' : 'it', + 'xaxis' : list_of_axis_positions, + 'data' : list_of_signal_values, + 'best_fit' : list_of_fitted_values, + 'center' : midpoint_value, + 'amplitude' : amplitude_value, + 'uid' : uid} + +From this a plot showing the measured data and the results of the +analysis is made. + +Once all parts of the alignment procedure are finished, this document +is issued: + +.. code-block:: python + + {'align_wheel' : 'end'} + +This tells the consumer to create a plot summarizing the results of +the alignment. + +The alignment of the glancing angle stage works in much the same +manner. + + +.. _fig-find_slot: +.. figure:: _images/find_slot.png + :target: _images/find_slot.png + :width: 50% + :align: center + + An example of the final plot for an alignment of the *ex situ* + sample wheel. The green X marks shows the aligned positions in + ``xafs_x`` and ``xafs_y``. + + +.. _livexafs: + +Live XAFS plots +~~~~~~~~~~~~~~~ + +The problem of making live XAFS plots is quite similar to live +linescan plots, but with some additional considerations: + +#. It is common to make multiple repetitions of XAFS scans, thus + successive scans should be overplotted. +#. There are various interesting views of the XAFS data, including + both transmission and fluorescence of the data, transmission of the + energy calibration standard, and a view of the raw I0 spectrum (to + keep an eye on monochromator glitches and other issues). + +.. todo:: Panel for live |chi|\ (k) plots, begin plotting this panel, + say, 60 eV above the edge. + +Like with the linescan, the plot begins with a message issued to tell +the consumer to begin preparing for an XAFS plot and providing enough +information to make that plot. This ``start`` message is issued at +the beginning of the entire scan sequence. + +.. code-block:: python + + {'xafsscan' : 'start', + 'element' : 'Fe', + 'edge' : 'K', + 'mode' : 'fluorescence', + 'filename' : 'example' + 'repetitions': 3, + 'sample' : 'Fe sample', + 'reference_material': 'Fe foil', } + +At the beginning of each individual repetition, a ``next`` message is +sent, telling the consumer to prepare to add a new set of traces to +the plot for the repetition about to begin. + + +.. code-block:: python + + {'xafsscan': 'next', + 'count': 2, } + +Finally, a message is sent telling the consumer that the sequence of +scans has finished, putting the consumer back into a state where it is +ready to receive the next sequence of messages for the next plot. + +.. code-block:: python + + {'xafsscan': 'end',} + +The plot that is made for an XAFS scan depends on whether fluorescence +measurement is available. If so, a 2x2 grid is shown with the +transmission and fluorescence |mu| (E) on the top, a plot of I0 on the +bottom left, and plot of the transmission |mu| (E) of the reference +material on the bottom right. + +For a scan not using the fluorescence detector, the plot is a 3x1 grid +of transmission |mu| (E), I\ :sub:`0`, and the reference spectrum. + + +.. _fig-xafs_live_view: +.. figure:: _images/XAFS_live_view.png + :target: _images/XAFS_live_view.png + :width: 80% + :align: center + + An example of the XAFS live plot made for a fluorescence XAFS scan. + +.. note:: I\ :sub:`0` is now normalized by the dwell time, thus is + plotting in units of amperes rather than ampere*seconds, + as shown. + + Also, as of January 2024, the live plot at the end of the + scan sequence is posted to Slack and included in the + :numref:`dossier (Section %s) `. + + +.. _xafssequence: + +Scan sequence data reduction +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +At the end of a scan sequence, we show the user a 3-panel plot showing +|mu| (E), |chi| (k), and |chi| (R). (This is the same 3-panel plot +that is written to the :numref:`dossier (Section %s) `. This +plot is of the merge of the scans measured in the scan sequence. +Behind the scenes, Larch is used to make the merge, remove the +background function, and perform the Fourier transform. Additionally, +every time an individual repetition in the scan sequence is finished, +this 3-panel plot is made from the merge of the scans measured thus far. + +At the beginning of a scan sequence, a Kafka document with a payload +like this is issued: + +.. code-block:: python + + {'xafs_sequence' : 'start', + 'element' : 'Fe', + 'edge' : 'K', + 'folder' : BMMuser.folder, + 'repetitions' : 3, + 'mode' : 'fluorescence'} + +The presence of the ``xafs_sequence`` key tells the Kafka consumer to +interpret this document as relevant to the creation of the 3-panel +plot. The value of ``start`` tells the consumer to prepare for making +this plot from data under the conditions specified by the remainder of +the keywords. + +As each scan finishes, the following document is issued. This tells +the consumer that a repetition finished and supplies the UID of the +just-completed scan. `Tiled `__ is +used to grab the data from the just-completed scan. This triggers a +recalculation of the merge and the recreation of the 3-panel plot. + +.. code-block:: python + + {'xafs_sequence' :'add', + 'uid' : uid} + +Finally, at the end of the scan sequence, this document is issued: + +.. code-block:: python + + {'xafs_sequence' : 'stop', + 'filename' : '/path/to/dossier/image'} + +This tells the consumer to make the final version of the 3-panel plot +using all the data and to save a png image of the plot for use in the +dossier. + +.. _fig-triplot: +.. figure:: _images/triplot.png + :target: _images/triplot.png + :width: 50% + :align: center + + An example of a 3-panel plot created by the Kafka consumer. + + + +This motif of issuing a ``start`` message to begin crafting a plot, +messages to ``add`` to the plot, and a message to ``stop`` the plot is +the common thread to how BMM uses Kafka to make plots, both static and +real-time plots. + + +Cleaning up the screen +---------------------- + +Most of the plotting options from the Kafka consumer are good about +closing the last plot before starting a new one. However, linescans, +in general, do not clean up prior plots. + +You can close some or all of the plots made by the Kafka consumer by +issuing a suitable message, either at the command line or in a plan. + +This will close all plots on screen made by the consumer: + +.. code-block:: python + + kafka_message({'close': 'all'}) + +This will close all plots associated with linescans, but not close +plots associated with XAFS scans: + +.. code-block:: python + + kafka_message({'close': 'line'}) + +And this will close the most recent plot: + +.. code-block:: python + + kafka_message({'close': 'last'}) + diff --git a/_sources/profile.rst b/_sources/profile.rst new file mode 100644 index 0000000..9837618 --- /dev/null +++ b/_sources/profile.rst @@ -0,0 +1,363 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. _profile: + +An overview of BMM's profile +============================ + +Once upon a time, the advice from Bluesky's developers was to populate +a ``profile_collection`` folder with python files containing the +beamline customizations. These files would start with a two digit +number from ``00-`` to ``99-`` |nd| that is, files like +``30-detectors.py`` or ``17-motors.py``. These files would be +imported into the main namespace of the IPython session in +numeric order. + +As BMM's profile grew in size and complexity, this system of ordered, +numbered files all imported into the main namespace became +increasingly unweilding, hard to maintain, and hard to extend. + +At Dan Allan's suggestion, we took a different approach. + +The startup folder +------------------ + +The startup folder is a symlink to a folder on Lustre where BMM's +profile is kept. If bsui does not start with BMM's profile, make that +symlink by doing the following: + +.. code-block:: sh + + cd ~/.ipython + ln -s /nsls2/data3/bmm/shared/config/bluesky/profile_collection + +If a folder called ``profile_collection`` already exists at that +location |nd| which would be the case if you have already used bsui +or ipython |nd| go ahead and rename or delete that folder. + +The top folder of the profile contains a single python file. It +follows the old convention in that it is named +``00-populate-namespace.py`` and is read as soon as IPython starts. + +Beneath the ``startup`` folder, there are several sub-folders: + +``BMM`` + the bulk of the code used for data acquisition. + +``consumer`` + the code used by the process that captures Kafka messages and + generates plots for real-time and other data visualization + :numref:`(Section %s) ` + +``BMM_common`` + code shared by data acquisition and the Kafka consumer + +``lookup_table`` + the spreadsheet with the look up table of motor positions used by + the ``change_edge()`` command :numref:`(Section %s) ` + +``standards`` + the spreadsheet for working with `BMM's collection of measurement + standards `__ + +``ML`` + the data used for the machine learning data evaluation + model :numref:`(Section %s) ` + +``telemetry`` + the data used for the time estimates of XAFS and other + scans :numref:`(Section %s) ` + +``dossier`` + files used to construct dossiers :numref:`(Section %s) ` + +``tmpl`` + template files used for dossiers files, INI files, and other + templated materials + +``xlsx`` + empty spreadsheet examples for the various forms of + automation :numref:`(Section %s) ` + +.. todo:: Explain other three files in top folder. Explain folder + above top folder. + + +The IPython namespace +--------------------- + +The ``00-populate-namespace.py`` file contains a single line: + +.. sourcecode:: python + + from BMM.user_ns import * + +This tells python to read the ``BMM/user_ns/__init__.py`` file and +follow it's instructions. That file, in turn, imports each of the +files in the ``BMM/user_ns/`` and imports those symbols into the main +IPython namespace. + +This is different from the old-fashioned approach in that the files in +``BMM/user_ns/`` contain a more carefully curated group of symbols to +be imported into the main namespace. + +Most of the code for creating ophyd objects, defining plans, +establishing automation, and so on is contained in the files found in +the ``BMM`` folder. And most of that is not imported into the main +namespace. + +A motif used in almost every file in the profile is this one: + +.. sourcecode:: python + + from BMM import user_ns as user_ns_module + user_ns = vars(user_ns_module) + +This allows functions and plans defined in the files in the ``BMM`` +folder to have access to symbols from the user namespace without +either importing the entire main namespace or exporting additional +symbols to the main namespace. + +This, perhaps, makes the code in ``BMM`` a bit clunkier. For example, +a motor name like ``xafs_x`` which is defined in the main namespace +cannot be directly accessed by a module in ``BMM``. Instead, it is +accessed as ``user_ns['xafs_x']``. A bit of extra typing, but it +makes for code that is more robust and more readily maintainable and +extensible. + + +Managing *bsui* and *queueserver* +--------------------------------- + +A common motif found in many files, including +``BMM/user_ns/__init__.py``, looks like this: + +.. sourcecode:: python + + try: + from bluesky_queueserver import is_re_worker_active + except ImportError: + def is_re_worker_active(): + return False + +This is used to allow a plan or some other bit of code to know whether +it is being run under *bsui* or *queueserver.* + +*bsui* is, by design, run on the same workstation with which the +experimenter is interacting. *queueserver* is, by design, run on a +remote server. Having a way to distinguish the two is essential. For +example, there are many plans which, when run with *bsui*, stop to +prompt for an interaction from the user. Such prompts need to be +disabled when running under *queueserver*. + + +Profile start-up as a narrative +------------------------------- + +Early in the loading of the profile, a function called +``run_report()`` is defined. This function is defined in +``BMM/functions.py`` and called near the top of +``BMM/user_ns/bmm.py``, which is the second file loaded by +``BMM/user_ns/__init__.py``. So, it is defined very early in the +process of loading the profile. + +This is used to write a message to the screen explaining what chore is +being done during start-up or what file is being loaded. As such it +is very similar to the common python idiom of + +.. sourcecode:: python + + print(__file__) + +to identify the module or source code file being loaded. While +similar in concept, it is a bit more suited to our purpose. + +.. _fig-bsui_startup: +.. figure:: _images/bsui_startup.png + :target: _images/bsui_startup.png + :width: 80% + :align: center + + Screen messages during *bsui* start-up. + + +For one thing, it applies consistent coloring to the text. In that +way the user knows that that color is a progress report explaining +what is happening at that moment. That is helpful for debugging +problems in that it gives a hint where to look when the problem +presents itself. + +For another, it is a consistent way to write any progress message to +the screen. For example, + +.. sourcecode:: python + + run_report(__file__) + +would behave very similarly to the idiom. However, the way it is used +throughout the profile is in lines like this: + +.. sourcecode:: python + + run_report('\tglancing angle stage') + +This is the message that appears on screen as the ophyd objects and +automation procedures related to the glancing angle stage +:numref:`(Section %s) ` are imported. As you +can see in the screenshot, one such message is issued for every major +component of the profile. + +Taken together, this sequence of messages provides a start-up +narrative that tells the user something about what capabilities are +available and provides the code maintainer/developer some hints about +where to look in the code base for various features. + + +Profile start-up as acceptance testing +-------------------------------------- + +At NSLS-II, beamline staff are asked to develop ways to do acceptance +testing to verify things like recovery from power failures, or upgrades +of computer operating systems, upgrades of conda and python. + +At BMM, we have chosen *not* to develop one-off or on-delivery +acceptance testing practices. Instead, acceptance testing is built +right into BMM's profile. + +Very early in profile start-up, several basic functions are checked +for, including: + +#. Verify that Channel Access Security is configured for read/write + access +#. Verify that the LAN is up and that IOC servers can be pinged +#. Verify that various necessary folders on the local machine can be + found +#. Verify that Lustre mounts can be found +#. Verify that authentication keys (e.g. for Slack) can be found +#. Verify that a redis server can be found + +If any of these tests fail, the profile stops loading and issues a +(hopefully) useful error message. + +As the profile continues loading, it runs a variety of tests, such as: + +#. Verify that beamline state and user configuration can be obtained + from redis +#. Establish all necessary user configuration +#. Check each axis to verify that it is connected +#. Check each axis to verify that it is homed, or identify those that + are used without homing +#. Verify that detectors are started correctly (e.g. the XSpress3 + needs to save an HDF5 file to initialize file saving) +#. Initialize the hinted ROI from the XSpress3 using data from redis + +In short, the concept is that the profile is instrumented to do +acceptance testing *every time it starts*. If anything is found to be +missing, it can be noticed and addressed immediately. + + +Core Bluesky functionality +-------------------------- + +The file ``BMM/user_ns/base.py`` is used to define core features of +the bluesky ecosystem: + ++ The plan stubs ``mv``, ``mvr``, and ``sleep`` are imported into the + main namespace + ++ `nslsii.configure_base() + `__ + is called appropriately for *bsui* or *queueserver* + ++ Some configuration of best effort callbacks is done + ++ A `Tiled `__ catalog is created + ++ A ZeroMQ publisher is defined. + +All of this happens before any BMM-specific code is run. + + +Everything in the BMM folder +---------------------------- + +Here's a brief summary of every module in the BMM profile. + + ============================ ============================================= + file purpose + ============================ ============================================= + ``actuators.py`` define shutters and valves + ``agent_plans.py`` BMM-specific ML agents + ``areascan.py`` define an area scan plan + ``busy.py`` define a "wall clock" motor + ``camera_device.py`` interact with AD and non-AD cameras + ``db.py`` utilities for working with *DataBroker* + ``dcm.py`` define monochromator ophyd objects + ``dcm_parameters.py`` mono calibration parameters + ``demeter.py`` Athena and Hephaestus integration + ``derivedplot.py`` deprecated plotting capabilities + ``desc_string.py`` fix epics motor ``DESC`` fields for CSS + ``detector_mount.py`` deprecated tools for ``xafs_det`` + ``dossier.py`` manage writing of dossier files + ``dwelltime.py`` coordinate dwell time across detectors + ``edge.py`` change edge + ``electrometer.py`` ophyd objects for QuadEM and related + ``energystep.py`` simple plan for I0 vs. energy + ``fmbo.py`` FMBO motor controller tools + ``frontend.py`` ophyd objects for front-end devices + ``functions.py`` miscellaneous utilities + ``gdrive.py`` interact with Google drive + ``glancing_angle.py`` define glancing angle stage + automation + ``grid.py`` generic grid automation + ``handler.py`` DataBroker handler for images + ``kafka.py`` Kafka producer for profile + ``killswitch.py`` interact with FMBO controller kill switches + ``lakeshore.py`` LakeShore temp. controller + ``larch_interface.py`` connect to Larch XAFS functionality + ``linescans.py`` generic and specific motor scans + ``linkam.py`` Linkam stage temp. controller + ``logging.py`` various logging tools + ``macrobuilder.py`` base class for automation + ``metadata.py`` manage metadata + ``mirror_trigonometry.py`` incomplete tools for mirrors and distances + ``ml.py`` data evaluation tools + ``modes.py`` manage lookup table and PDS modes + ``mono_calibration.py`` energy calibration tools + ``motor_status.py`` motor status reporting tools + ``motors.py`` ophyd objects for motors + ``periodictable.py`` periodic table tools + ``pilatus.py`` Pilatus tools + ``plans.py`` simple plans, power cycle recovery plans + ``prompt.py`` customize IPython prompts + ``purpose.py`` deprecated + ``raster.py`` areascan measurement + dossier + ``resting_state.py`` put beamline in a defined resting state + ``rois.py`` deprecated + ``slits.py`` ophyd objects and tools for BL slits + ``struck.py`` deprecated |nd| interact with Struck + ``suspenders.py`` define suspenders + ``telemetry.py`` tools for scan telemetry and time estimates + ``timescan.py`` time sequence plan + ``usb_camera.py`` interact with USB cameras + ``user.py`` define and manage the BMMuser object + ``utilities.py`` inetract with BL EPS and utilities + ``video.py`` record videos from USB cameras + ``wafer.py`` tools for wafer samples + ``wdywtd.py`` deprecated user help tools + ``webcam_device.py`` interact with Axis webcams + ``wheel.py`` tools for *ex situ* sample wheel + ``workspace.py`` acceptance tests for working environment + ``xafs.py`` XAFS plan definition + dossier + ``xafs_functions.py`` XAFS-related tools + ``xdi.py`` XDI formatting tools + ``xspress3.py`` XSpress3 tools + ``xspress3_1element.py`` customizations for 4 element detector + ``xspress3_4element.py`` customizations for 1 element detector + ============================ ============================================= diff --git a/_sources/todo.rst b/_sources/todo.rst new file mode 100644 index 0000000..6a909b8 --- /dev/null +++ b/_sources/todo.rst @@ -0,0 +1,64 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + + +.. role:: strike + :class: strike + +.. _todo_list: + +To Do List +========== + +Chapters needed: + +#. Dealing with XRF spectra, including ``%xrf``, ``xrfat()``, saving + XRF spectra +#. Valence maps +#. Document why M1 is the way it is, explain why moving it is a BAD + idea, explain front end slits + + +This is an aggregate list of things missing from the BMM beamline +documentation manual. + +#. Replace ``db.v2`` with explicit use of Tiled catalog +#. Document use of ``XDI_record`` to control what motors get recorded + in the XDI header +#. Flesh out documentation on using automation + spreadsheets +#. Explain contents of dossier more fully +#. Current batch of cameras +#. Document using the Xspress3 +#. Better abstraction of spreadsheet-to-macro components, less cargo-cult code +#. Document how redis is used at the BL, explain state+redis+BMMuser object +#. Section about instrumentation development plans at BL +#. Document timescan and SEAD, discuss in plotting section + Citation: A Filipponi et al 1998 J. Phys.: Condens. Matter 10 235 DOI: + 10.1088/0953-8984/10/1/026 + + +This is an aggregate list of things mentioned in this document that +the BMM data collection system needs to do. + +#. Mode C lookup table +#. Lookup table for E < 8 keV at goniometer + + +How to add a scan.ini parameter +------------------------------- + +#. Add its entry into ``scan_metadata()`` in :file:`BMM/energyscan.py` +#. Add its default value to the ``BMM_configuration`` class in :file:`BMM/modes.py` +#. Add it to ``html_dict`` in :file:`BMM/energyscan.py` around line 912 +#. Correspondingly, add to the call arguments of + ``scan_sequence_static_html()`` in :file:`BMM/energyscan.py` +#. make corresponding entries in the various automation spreadsheets + +and, of course, use the new parameter in whatever way it needs to be used. + diff --git a/_sources/trouble.rst b/_sources/trouble.rst new file mode 100644 index 0000000..2e5d670 --- /dev/null +++ b/_sources/trouble.rst @@ -0,0 +1,145 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + + +Troubleshooting +=============== + +In this section, solutions are given for problems that BMM's visitors +occasionally encounter. + +Pausing BlueSky +--------------- + +There are a small number of ways that you can unintentionally find +yourself outside of BlueSky. One of them is to accidentally hit +``Ctrl-z``, which is unfortunately located close +to ``Ctrl-c``. + +``Ctrl-z`` serves to suspend BlueSky, temporarily +returning you to the Unix command line. It looks like this: + +.. _fig-ctrlz: +.. figure:: _images/ctrl-z.jpg + :target: _images/ctrl-z.jpg + :width: 70% + :align: center + + Accidentally exiting BlueSky and returning to the Unix command line. + +Note that BlueSky said ``Stopped``, then the yellow and magenta +prompt is presented. This indicates that BlueSky is paused rather +than exited. + +To resume BlueSky, type the command ``fg`` and hit ``Enter``. +You will find yourself back at the BlueSky prompt and can carry on +normally. + +Exiting or crashing bsui +------------------------ + +Another possibility is that BlueSky has exited entirely |nd| possibly +because something has happened to put the program into an unworkable +state. This will often be accompanied by a lengthy `stack trace`, +i.e. a bunch of weird code and error messages printed to the terminal +window, followed by the yellow and magenta prompt seen in the picture +above. Other times, there may simply be a message about a +"Segmentation fault" and a "core dump". An example of a segmentation +fault is shown here: + +.. _fig-segfault: +.. figure:: _images/segfault.png + :target: _images/segfault.png + :width: 100% + :align: center + + An example of bsui crashing with a segfault + +The previous bsui session cannot be recovered at this point. You will +have to restart bsui and restart your data collection. + +In this case, at the command line, type ``bsui`` and hit ``Enter``. + +This will start a new BlueSky session and should restore the state of +your experiment from before the crash. + + +Amplifier fault +--------------- + +From time to time, a fault is triggered on one of the motor +amplifiers. The most common examples involve the jacks controlling +the height and pitch of the focusing and harmonic rejection mirrors, +M2 and M3. This is usually observed when trying to use the +``change_edge()`` command (which, among other things, moves the +mirrors to the correct positions). + +The error message on screen will look something like this + +.. todo:: Capture an example of this + +This problem is usually resolved by cycling the kill switch to the amplifiers. + +.. code-block:: python + + ks.cycle('m2') + +where the possible arguments (one for each FMB Oxford motor +controller) are ``m2``, ``m3``, ``slits2``, ``dcm``, or ``dm3``. + +Once that finishes, try doing the thing that triggered the fault +message. Should work.... + + + + +.. + The first solution is to try killing the power to the amplifiers on + the correct MCS8. Switch the corresponding switch to the off + |circle| position, wait at least 10 seconds, then flip the + switch back to the on |verbar| position. Try moving + the motors again. + + .. _fig-killswitch: + .. figure:: _images/Kill_switches.jpg + :target: _images/Kill_switches.jpg + :width: 70% + :align: center + + The MCS8 kill switches on rack D. + + If toggling the switch does not clear the problem, the next solution + to try is to power cycle the appropriate MCS8. You should stop the + corresponding IOC before cycling the power, then restart the IOC + afterwards. Contact Bruce or other beamline staff before doing this. + +Failed hutch search +------------------- + +Sometimes the hutch search fails for mysterious reasons. A likely +cause is that the door `bounced` a bit as it closed. This +confuses the circuit that checks to see that the magnetic latch +holding the door closed is engaged. + +When that (or some other thing out of your control) happens to confuse +the personnel protection system, the search fails and reports the +failure by printing a message in yellow text on the HDMI screen. Here +is what that looks like: + +.. _fig-hdmi: +.. figure:: _images/hdmi.jpg + :target: _images/hdmi.jpg + :width: 70% + :align: center + + The hutch HDMI display showing the yellow text of a failed search. + +When this happens, it is usually sufficient to simply repeat the +search. If the yellow text failure happens again, call the floor +coordinator at extension 5046. diff --git a/_sources/xafs.rst b/_sources/xafs.rst new file mode 100644 index 0000000..9a367de --- /dev/null +++ b/_sources/xafs.rst @@ -0,0 +1,1175 @@ +.. + This document was developed primarily by a NIST employee. Pursuant + to title 17 United States Code Section 105, works of NIST employees + are not subject to copyright protection in the United States. Thus + this repository may not be licensed under the same terms as Bluesky + itself. + + See the LICENSE file for details. + +.. role:: key + :class: key + +.. _xafs: + +XAFS scans +========== + +The simplest access to an XAFS scan starts by editing an `INI file +`_. This is a simple +keyword/value system where the keyword is separated from the value by +an equals sign and each line contains a single keyword/value pair. + +This file captures the set of metadata that the user supplies to +specify the details of the step scan, the basic configuration of the +beamline, and some details about the sample preparation. Most of this +metadata is captured in the beamline database and written to the +header of the output data files. + +This file is typically stored in the same folder where the data files +are written and is called by name when running an XAFS scan. + +Note that the concepts and language used in the INI file is repeated +throughout the spreadsheets used for :numref:`beamline automation +(Section %s) `. + + +.. _ini: + +The INI file +------------ + +.. sourcecode:: ini + :linenos: + + [scan] + filename = cufoil + experimenters = Betty Cooper, Veronica Lodge, Archibald Andrews + + element = Cu + edge = K + sample = Cu metal + prep = standard foil + comment = Welcome to BMM + + nscans = 3 + start = next + + # mode is transmission, fluorescence, both, or reference + mode = transmission + + ## regions relative + ## to e0: 1 2 3 4 + bounds = -200 -30 -10 15.5 15k + steps = 10 2.0 0.3 0.05k + times = 0.5 0.5 0.5 0.25k + + +Here is a complete explanation of the contents of the INI file. + +``filename`` (line 2) + The stub for the names of the output data files and the + snapshots. In the example above, the files written disk will be + called ``cufoil.001``, ``cufoil.002``, and so on. + +``experimenters`` (line 3) + The name of the participants in the measurement. Because all data + and metadata reside in a database, specifying experimenter names + makes it easy to search the database for data associated with a + specific person. + +``element`` (line 5) + The one- or two-letter symbol for the element. The edge energy, + ``e0``, will be determined from ``element`` and ``edge``. + +``edge`` (line 6) + The symbol (``K``, ``L3``, ``L2``, ``L1``) of the edge being + measured. + +``sample`` (line 7) + This is intended to capture the stoichiometry or composition of the + sample being measured. + +``prep`` (line 8) + This is intended to capture the details of how the sample was + prepared for the XAFS measurement. + +``comment`` (line 9) + This is for anything else you might want to say about your sample. + +``nscans`` and ``start`` (lines 11 - 12) + These are used to form the file extension of the output data file. + They indicate the starting value of the number used as the file + extension and how many repetitions of the scan to make. The file + extension is always a zero-padded, three-digit number, + e.g. :file:`cufoil.001`, :file:`cufoil.002`, and so on. + + The most common value for this parameters is the word ``next``, in + which case the ``folder`` will be searched for files starting with + ``filename`` and ending in a number. The subsequent number will be + used. E.g. if ``cuedge.007`` is the highest numbered file in the + ``cuedge`` sequence, running XAFS again using the same INI file + will start with ``cuedge.008``. + + ``start`` can also be a positive integer, in which case it will be + the first number used in the sequence of scans. So if the value is + 137, the first file will be called ``cufoil.137``. + +``mode`` (line 15) + Indicate how data should be displayed on screen during a scan. The + options are ``transmission``, ``fluorescence``, ``both``, or + ``reference``. ``both`` means to display *both* the transmission + and fluorescence during the scan. + + This parameter also controls what gets written to the output data + files. In all cases, the signals from I0, It, and Ir are written to + the data file. If ``mode`` is ``fluorescence`` or ``both``, then 4 + columns related to the fluorescence detector are also written. The + columns are labeled something like ``Cu1``, ``Cu2``, ``Cu3``, and + ``Cu4`` (where ``Cu`` would be replaced by the symbol of the element + +Comments begin with the hash (``#``) character and are ignored. + +.. note:: + + The E\ :sub:`0` keyword in the INI file is no longer used in normal + operations. E\ :sub:`0` by default determined from ``element`` and + ``edge``. (February 2020) + + +Scan regions +~~~~~~~~~~~~ + +In a typical step scan, we measure data on a coarse grid in the +pre-edge, a fine grid through the edge region, and on a constant grid +in photoelectron wavenumber in the extended region. The ``bounds``, +``steps``, and ``times`` keywords (lines 19-21) are used to set this +grid. + + +``bounds`` indicates the energies |nd| relative to the ``e0`` value +|nd| where the step sizes and dwell times will change. There **must** +always be one more value in the ``bounds`` list than in the ``steps`` +and ``times`` lists. + +For the ``bounds`` and ``steps`` lists, values **must** be either a +number or a string consisting of a number followed by the letter +``k``. Numbers followed by ``k`` are interpreted as being values in +photoelectron wavenumber and are only sensible above the edge. + +You may switch back and forth between energy and wavenumber values. +The ``bounds`` and ``steps`` lists are converted to energy values +before being used. + +In the ``bounds`` lists, an energy value indicates an energy below or +above the ``e0`` value. A wavenumber value inidcates a wavenumber +value above the edge. + +In the ``steps`` list, an energy value indicates a step size in eV. A +wavenumber value indicates a step size in |AA|:sup:`-1`. + +In the ``times`` list, a number indicates a dwell time in seconds. A +number followed by ``k`` indicates that the dwell time will grow as a +function of wavenumber above the edge. I.e., a value of ``0.25k`` +means that the dwell time will be 1 second at 4 |AA|:sup:`-1`, 2 +seconds at 8 |AA|:sup:`-1`, and so on. + + +More options +~~~~~~~~~~~~ + +There are several aspects of the XAFS scan plan that can be enabled or +disabled from the INI file. The sample INI file written by the +:numref:`BMMuser.start_experiment() command (Section %s) ` +does not include these options, but they can be added to the INI file +if needed. + +``e0`` + The edge energy for the element and edge of this measurement. This + is the energy reference for the ``bounds``. Normally, the + tabulated value determined from ``element`` and ``edge`` will be + used. This can be specified to override the tabulated value. + +``usbstick`` + ``True`` will examine the user-supplied filename for characters + that cannot be part of a `filename + `_ + on a standard USB memory stick. If any are found, the filename + will be modified in a way that retains the meaning of the replaced + characters, but which can be successfully written to a memory + stick. Since this is mostly an issue with Windows file systems, + users who want to do their data analysis on a Windows computer + should use this option. :numref:`See Section %s `. + Default: ``True`` + +``snapshots`` + ``True`` to take :numref:`snapshots (Section %s) ` from the + XAS webcam and analog camera before beginning the scan sequence. + ``False`` to skip the snapshots. Default: ``True`` + +``channelcut`` + ``True`` to measure XAFS with the monochromator in pseudo-channelcut + mode. ``False`` to measure in fixed exit mode. Default: ``True`` + +``rockingcurve`` + ``True`` to measure a :numref:`rocking curve scan (Section %s) + ` after moving to the pseudo-channelcut mode + energy. Default: ``False`` + +``bothways`` + ``True`` to measure XAFS in both directions of the monochromator. + ``False`` to always measure in the positive energy (negative angle) + direction. Default: ``False`` + +``htmlpage`` + ``False`` to disable writing of the :numref:`static HTML dossier + (Section %s) `. Default: ``True`` + +``ththth`` + ``True`` to measure with :numref:`Si(333) reflection (Section %s) + ` of the Si(111) monochromator . Default: ``False`` + + +You can explicitly specify a destination folder for the data and other +output files. This is not a great idea, but might be useful in +special situations. The output folder is usually specified +:numref:`when starting an experiment (Section %s) ` and +rarely needs to be changed during the course of an experiment. + +``folder`` + The fully resolved path to the data folder + + +k-weighted integration times +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +As discussed above, you can specify k-weighted integration times in +the EXAFS region. While not strictly necessary, it is nice to choose +scan boundaries and integration times that do not result in a +discontinuity in integration time at the transition into the EXAFS +region. + +Here are some suggestions for scan parameters that transition smoothly +between the XANES and EXAFS regions: + +Here are parameters for a 1/2 second base integration time +transitioning into k-weighted integration multiplied by 1/4 (e.g. 2.5 +second integration at k=10). + +.. code-block:: ini + + bounds = -200 -30 -2 15.5 25, '14k' + steps = 10 2 0.3 0.3 '0.05k' + times = 0.5 0.5 0.5 '0.25k' '0.25k' + +Here are parameters for a 1 second base integration time transitioning +into k-weighted integration multiplied by 1/4 (e.g. 2.5 second +integration at k=10). This is Bruce's favorite suggestion for an +experiment needing k-weighted integration time. It's a good balance +between good statistics and reasonable scan time (about 17 minutes). + +.. code-block:: ini + + bounds = -200 -30 -2 25 61 '14k' + steps = 10 2 0.3 '0.05k' '0.05k' + times = 1 1 1 1 '0.25k' + +Here are parameters for a 1/2 second base integration time +transitioning into k-weighted integration multiplied by 1/2 (e.g. 5 +second integration at k=10). This results in quite long integration +times by the end of the scan, which may be useful for +low-concentration or otherwise noisy EXAFS data.. + +.. code-block:: ini + + bounds = -200 -30 -2 3.81 25 '14k' + steps = 10 2 0.3 0.3 '0.05k' + times = 0.5 0.5 0.5 '0.5k' '0.5k' + +Here are parameters for a 1 second base integration time transitioning +into k-weighted integration multiplied by 1/2 (e.g. 5 second +integration at k=10). This results in quite long integration times by +the end of the scan, which may be useful for low-concentration or +otherwise noisy EXAFS data.. + +.. code-block:: ini + + bounds = -200 -30 -2 15.3 25 '14k' + steps = 10 2 0.3 0.3 '0.05k' + times = 1 1 1 '0.5k' '0.5k' + + + +.. _howlong: + +Scan run time +------------- + +To get an approximation of the time a scan will take, do:: + + howlong('scan') + +The argument is the path to the INI file described above. Like for +the ``xafs()`` command, the INI file is presumed to be in the user's +data folder and the ``.ini`` need not be specified. It is assumed +that the INI file ends in ``.ini``. + +If you leave off the argument, you will be shown a numbered list of +all :file:`.ini` files in your data folder, something like this: + +.. sourcecode:: text + + Select your INI file: + + 1: Fe.ini + 2: Mn.ini + 3: Zr.ini + 4: scan.ini + + r: return + + Select a file > + +Select number of the :file:`.ini` file you want to read. + +This will make a guess of scan time for an individual scan using a +rather crude heuristic for scan overhead. It will also multiply by +the number of scans to give a total time in hours for the scan +sequence. + +.. code-block:: text + + reading ini file: /home/bravel/BMM_Data/303169/scan.ini + + Each scan will take about 17.9 minutes + The sequence of 6 scans will take about 1.8 hours + + + +.. _usbsafe: + +Safe filenames for USB sticks +----------------------------- + +`These characters are problematic for filenames +`_: + +.. code-block:: text + + ? * / \ % : | " < > + +While there is no issue using these characters in filenames on the +beamline computer, you will find that files containing these names +cannot be written to a normal USB memory stick. The file system used +on many memory sticks (`FAT32 +`__) does +not allow those characters in filenames. This is true even if the +system the memory stick is connected to will allow those characters +(i.e. the beamline linux computer). + + +.. table:: Character translations in filenames + :name: usb-characters + + ================ ================== ======================= + character name character substitution string + ================ ================== ======================= + question mark |mquad| ? ``_QM_`` + asterisk |mquad| |ast| ``_STAR_`` + forward slash |mquad| / ``_SLASH_`` + backslash |mquad| \\ ``_BACKSLASH_`` + percent |mquad| % ``_PERCENT_`` + colon |mquad| : ``_COLON_`` + vertical bar |mquad| |verbar| ``_VERBAR_`` + greater than |mquad| > ``_GT_`` + less than |mquad| < ``_LT_`` + ================ ================== ======================= + + +As an example, a filename like + +.. code-block:: text + + Fe precipitate <60 mM + +will be converted to + +.. code-block:: text + + Fe precipitate _LT_60 mM + +such that the output files will be called + +.. code-block:: text + + Fe precipitate _LT_60 mM.001 + Fe precipitate _LT_60 mM.002 + ... + +Note that spaces are fine in filenames as are all the other keyboard +characters. + + +.. _xafsscan: + +Run an XAFS scan +---------------- + +To run a scan, do this:: + + RE(xafs('scan')) + +The argument is the path to the INI file, as described above. +Specifically, the INI file is assumed to be in the user's data folder +and is assumed to have the ``.ini`` extension. The location of the +user's data folder is set when :numref:`beginning an experiment +(Section %s) `. + +This plan is a wrapper around `BlueSky's scan_nd() plan +`_. +It does the following chores: + +#. Verifies the content of the INI file with a user prompt + +#. Makes an entry in the :numref:`experimental log (Section %s) + ` indicating the INI contents and the current motor + positions of all the important motors + +#. Takes :numref:`snapshots (Section %s) ` of the XAS webcam and + the analog camera near the sample + +#. Moves the monochromator to the center of the angular range of + motion of the scan and enters pseudo-channel-cut mode + +#. If using the Xspress3 to measure fluorescence with the Si-drift + detector, an XRF spectrum will be recorded at that energy. + +#. Generates a plotting subscription appropriate to the value of + ``mode`` in the INI file + +#. Enables a :numref:`set of suspenders (Section %s) ` + which will suspend the current XAFS scan in the event of a beam + dump or a shutter closing (the suspenders are disabled at the end + of the scan sequence) + +#. Moves to the beginning of the scan range and begins taking scans + using the ``scan_nd()`` plan and `cyclers + `_ for energy values and dwell + times constructed from the values of ``bounds``, ``steps``, and + ``times`` read from the INI file + +#. For each scan, notes the start and end times of the scan in the + :numref:`experimental log (Section %s) ` along with the + unique and transient IDs of the scan in the beamline database + +#. After each scan, extracts the data table from the database and writes + an ASCII file in the `XDI format + `_ + +#. After the full sequence of scans, write :numref:`a dossier (Section + %s) ` containing a fairly complete record of the + measurement |nd| including a crude first pass at the data reduction + and processing |nd| made by the XAFS plan. + +The plan also provides some tools to cleanup correctly (i.e. kill +certain motors, reset certain parameters) after a scan sequence ends +or is terminated. + + +Location of scan.ini file +~~~~~~~~~~~~~~~~~~~~~~~~~ + +You may start the XAFS scan by doing:: + + RE(xafs()) + +without specifying an argument. In that case, your data folder will +be searched for INI files and you will presented with an option menu +of the INI files found, as explained in :numref:`Section %s `. + +You may also specify which INI file to use. When you launch an XAFS +scan doing:: + + RE(xafs('myscan')) + +This assumes that there is a file called ``myscan.ini`` in the user's +data directory. Note that you can drop the ``.ini`` |nd| the program +is smart enough to know that you want the ``.ini`` file by that name. +So that is completely equivalent to:: + + RE(xafs('myscan.ini')) + +For instance, if the user's directory (``DATA``) is +``/home/bravel/BMM_Data/303303/``, then the scan plan will look for +the file ``/home/bravel/BMM_Data/303303/scan.ini``. This is +equivalent to:: + + RE(xafs(DATA + 'scan.ini')) + +where ``+`` is the python string concatenation operator. + +You can also explicitly state where your INI file is located, as in:: + + RE(xafs('/home/bravel/BMM_Data/303303/scan.ini')) + +In that case, the explicit location of the INI file will be used. + +The ``DATA`` variable is set when the ``new_experiment()`` command is +run at the beginning of the experiment (:numref:`see Section %s +`). To know the value of the ``DATA`` variable, simply +type ``DATA`` at the command line and hit :key:`Enter`. + + +.. _interrupt: + +Interrupt an XAFS scan +~~~~~~~~~~~~~~~~~~~~~~ + +There are several scenarios where you may need to interrupt or halt an +XAFS scan. + +Pause a scan and *resume* + You can pause a scan at any time by + hitting :key:`Ctrl`-:key:`C` twice. This will return you to + the command line, leaving the scan in a paused state. To *resume* + the scan, do:: + + RE.resume() + + The scan will then continue from where it left off. + +*Stop* a scan + You can pause a scan at any time by hitting + :key:`Ctrl`-:key:`C` twice. This will return you to the + command line, leaving the scan in a paused state. To *end* the + scan, do:: + + RE.stop() + + The scan will then terminate, returning all motors and detectors to + their resting state. + + This will also terminate a paused scan:: + + RE.abort() + + The difference is that ``RE.stop()`` will tag the database entry of + the current scan as ``success`` while ``RE.abort()`` will tag it as + ``failed``. In every other way, the two are equivalent |nd| each + one will shut the scan down gracefully. + +Pause a scan due to external events + When the XAFS scan starts, it initiates a set of `suspenders + `_ + which respond to various external events, such as a shutter closing + or the ring current dumping. When one of these suspenders triggers, + the scan will enter a paused state. It will resume once the + condition causing the suspension is resolved. For example, when the + closed shutter is re-opened or current is restored to the ring. In + general, a short bit of time is required to pass once the suspension + condition is resolved before the scan resumes. For instance, + 5 seconds are allowed to pass after a shutter is re-opened. + +`Here is a summary of pausing, resuming, and stopping scans using +BlueSky +`_. + +Revisit an XAFS scan +-------------------- + +Grab a database entry and write it to an XDI file:: + + db2xdi('/path/to/data/file', '') + +The first argument is the name of the output data file. The second +argument is either the scan's unique ID |nd| something like +``f6619ed7-a8e5-41c2-a499-f793b0fcacec`` |nd| or the scan's transient +id number. Both the unique and transient ids can be found in +:numref:`the dossier (Section %s) `. + +.. _macro: + +Scan sequence macro +------------------- + +.. note:: + + Many types of experiments can be automated using the established, + spreadsheet-based systems described in :numref:`Section %s + `. This section is helpful for those situation where + you need to roll your own bespoke automation plans. + +A macro at BMM is a short bit of python code which sequentially moves +motors and initiates scans. A common way of doing this is to make an +INI file for each sample that intend to measure. The macro then moves +to each sample and runs the ``xafs()`` for each sample using the same +INI file. + +.. sourcecode:: python + :linenos: + + def sample_sequence(): + '''User-defined macro for running a sequence of motor motions and + XAFS measurements''' + (ok, text) = BMM_clear_to_start() + if ok is False: + print(error_msg('\n'+text) + bold_msg('Quitting macro....\n')) + return(yield from null()) + + BMMuser.macro_dryrun = False + BMMuser.prompt = False + BMM_log_info('Beginning sample macro') + def main_plan(): + ### --------------------------------------------------------------------------------------- + ### BOILERPLATE ABOVE THIS LINE ----------------------------------------------------------- + ## EDIT BELOW THIS LINE + #<--indentation matters! + + ## sample 1 + yield from slot(1) + yield from xafs('sample1.ini') + close_last_plot() # this command closes the plot on screen + + ## sample 2 + yield from slot(2) + yield from xafs('sample2.ini') + close_last_plot() + + ## EDIT ABOVE THIS LINE + ### BOILERPLATE BELOW THIS LINE ----------------------------------------------------------- + ### --------------------------------------------------------------------------------------- + def cleanup_plan(): + yield from end_of_macro() + + yield from bluesky.preprocessors.finalize_wrapper(main_plan(), cleanup_plan()) + yield from end_of_macro() + BMM_log_info('Sample macro finished!') + +The commented (by ``#``) lines at lines 13-16 and 28-30 are comments +indicating that parts of the macro are intended for editing by the +user while other parts are boilerplate that make the macro work +correctly. In general, you only want to edit the lines between those +two comment blocks, leaving the lines above and below untouched. + +The calls to ``BMM_info()`` at lines 11 and 35 insert lines in the +:numref:`experiment log (Section %s) ` indicating the times that +the scan sequence begins and ends. + +Setting the ``BMMuser.prompt`` parameter to ``False`` at line 9 skips +the step in the ``xafs()`` macro where the user is prompted to verify +that the scan is set up correctly. + +This macro is for samples mounted on the sample wheel. At lines 19 +and 24, the wheel is rotated to the correct slot before launching the +``xafs()`` command. + +Alternately, you can use a single, master :file:`scan.ini` file that +covers all the metadata common to all the samples in a sequence. +Then, as part of the argument to the ``xafs()`` plan, specify those +metadata items specific to the sample. (This has proven to be the more +popular option among BMM users.) + +.. sourcecode:: python + :linenos: + + def sample_sequence(): + '''User-defined macro for running a sequence of motor motions and + XAFS measurements''' + (ok, text) = BMM_clear_to_start() + if ok is False: + print(error_msg('\n'+text) + bold_msg('Quitting macro....\n')) + return(yield from null()) + + BMMuser.macro_dryrun = False + BMMuser.prompt = False + BMM_log_info('Beginning sample macro') + def main_plan(): + ### --------------------------------------------------------------------------------------- + ### BOILERPLATE ABOVE THIS LINE ----------------------------------------------------------- + ## EDIT BELOW THIS LINE + #<--indentation matters! + + ## sample 1 + yield from slot(1) + yield from xafs('scan.ini', filename='samp1', sample='first sample') + close_last_plot() # this command closes the plot on screen + + ## sample 2 + yield from slot(2) + yield from xafs('scan.ini', filename='samp2', sample='another sample', comment='my comment') + close_last_plot() + + ## EDIT ABOVE THIS LINE + ### BOILERPLATE BELOW THIS LINE ----------------------------------------------------------- + ### --------------------------------------------------------------------------------------- + def cleanup_plan(): + yield from end_of_macro() + + yield from bluesky.preprocessors.finalize_wrapper(main_plan(), cleanup_plan()) + yield from end_of_macro() + BMM_log_info('Sample macro finished!') + +:numref:`Any keyword (Section %s) ` from the INI file can be used +as a command argument in the call to ``xafs()``. Arguments to +``xafs()`` will take priority over values in the INI file. + + +Assuming your macro file is stored in your data folder under the name +``macro.py``, you can load or reload the macro into the running +BlueSky session:: + + %run -i BMMuser.data+'macro.py' + +This creates (or overwrites) a new kind of plan called +``sample_sequence()`` (at line 1, you ``def``\ -ine a function of that +name). + +You can then run the macro by invoking the ``sample_sequence()`` +function through the run engine:: + + RE(scan_sequence()) + +Every time you edit the macro file, you **must** reload it into the +running BlueSky session. + +The name of the macro file is not proscribed. If it would be +convenient to have, say, ``macroFe.py`` and ``macroPt.py``, that's +fine. Just be sure to explicitly ``%run -i`` the file using the +correct name. Neither is the name of the command defined in the macro +proscribed. It can be called almost anything (you should avoid +reserved words in Python and names already used for other things in +BlueSky) and run through the run engine (i.e. ``RE()``) like any other +BlueSky plan. + + + + +.. _xdiexample: + + +XAFS data file +-------------- + +XAFS data files are written to the `XDI format +`_. Here is +an example. You can see how the metadata from the INI file and +elsewhere is captured in the output XDI file. + +.. todo:: Document use of ``XDI_record`` dictionary to control which + xafs motors and/or temperatures get recorded in the XDI header + +.. code-block:: text + + # XDI/1.0 BlueSky/1.3.0 + # Beamline.name: BMM (06BM) -- Beamline for Materials Measurement + # Beamline.xray_source: NSLS-II three-pole wiggler + # Beamline.collimation: paraboloid mirror, 5 nm Rh on 30 nm Pt + # Beamline.focusing: torroidal mirror with bender, 5 nm Rh on 30 nm Pt + # Beamline.harmonic_rejection: none + # Detector.I0: 10 cm N2 + # Detector.I1: 25 cm N2 + # Detector.I2: 25 cm N2 + # Detector.fluorescence: SII Vortex ME4 (4-element silicon drift) + # Element.symbol: Mo + # Element.edge: K + # Facility.name: NSLS-II + # Facility.current: 374.3 mA + # Facility.energy: 3.0 GeV + # Facility.mode: top-off + # Facility.GUP: 333333 + # Facility.SAF: 344344 + # Mono.name: Si(311) + # Mono.d_spacing: 1.6376385 Å + # Mono.encoder_resolution: 0.0000050 deg/ct + # Mono.angle_offset: 15.9943932 deg + # Mono.scan_mode: pseudo channel cut + # Mono.scan_type: step + # Mono.direction: forward in energy + # Sample.name: Sedovite + # Sample.prep: speck of mineral in a holder in a gel cap + # Sample.x_position: 2.750 + # Sample.y_position: 147.670 + # Scan.edge_energy: 20000.0 + # Scan.start_time: 2018-07-08T16:26:49 + # Scan.end_time: 2018-07-08T16:44:22 + # Scan.transient_id: 1447 + # Scan.uid: 442bb882-1e46-4607-a12d-1bca2efa74af + # Scan.plot_hint: (DTC1 + DTC2 + DTC3 + DTC4) / I0 -- ($7+$8+$9+$10) / $4 + # Column.1: energy eV + # Column.2: requested_energy eV + # Column.3: measurement_time seconds + # Column.4: I0 nA + # Column.5: It nA + # Column.6: Ir nA + # Column.7: DTC1 + # Column.8: DTC2 + # Column.9: DTC3 + # Column.10: DTC4 + # Column.11: ROI1 counts + # Column.12: ICR1 counts + # Column.13: OCR1 counts + # Column.14: ROI2 counts + # Column.15: ICR2 counts + # Column.16: OCR2 counts + # Column.17: ROI3 counts + # Column.18: ICR3 counts + # Column.19: OCR3 counts + # Column.20: ROI4 counts + # Column.21: ICR4 counts + # Column.22: OCR4 counts + # /////////// + # focused beam, Kyzylsai Dep., Chu-lli Mts., Zhambyl Dist., Kazakhstan 3852 + # ----------- + # energy requested_energy measurement_time I0 It Ir DTC1 DTC2 DTC3 DTC4 ROI1 ICR1 OCR1 ROI2 ICR2 OCR2 ROI3 ICR3 OCR3 ROI4 ICR4 OCR4 + 19809.967 19810.000 0.500 22.780277 28.026418 5.844915 3393.671531 3512.331211 2189.485830 2294.254018 2984.0 86162.0 79706.0 3085.0 86771.0 80213.0 2018.0 57884.0 55169.0 2085.0 64398.0 60757.0 + 19820.016 19820.000 0.500 23.017712 28.316410 5.912596 3607.981130 3515.807498 2272.542220 2255.901234 3160.0 87991.0 81171.0 3088.0 87790.0 81205.0 2093.0 58242.0 55481.0 2036.0 66029.0 61927.0 + 19830.022 19830.000 0.500 23.191409 28.546075 5.971688 3398.408050 3343.071835 2237.827496 2348.453171 2983.0 88018.0 81376.0 2930.0 88064.0 81298.0 2061.0 59218.0 56443.0 2120.0 66896.0 62787.0 + 19840.073 19840.000 0.500 23.022700 28.346179 5.941913 3424.112880 3464.005608 2199.187023 2294.868496 3007.0 87171.0 80589.0 3042.0 87734.0 81137.0 2023.0 58516.0 55684.0 2075.0 66318.0 62324.0 + . + . + . + + +.. _telemetry: + +Telemetry +--------- + +Whenever you run the ``xafs()`` plan or :numref:`import a spreadsheet +(Section %s) ` with the ``xlsx()``, you are given an +estimate of how long it will take. This is estimate is ... pretty +good. Not great, but decent. Here's where it comes from. + +``xafs()`` plan time + For each element, the database is searched for XAFS scans on that + element that ran to completion. The data base record has start and + stop times for the scan as well as a record of point-by-point + integration times. + + For each scan at an element, the sum of integration times is + computed, as is the difference between the end and start times. The + difference between those is the overhead (monochromator movement and + anything else the plan does between the issuing of the start and + stop documents). The average difference is computed and recorded. + + So, the estimated time for an ``xafs()`` plan is the sum of its + integration times plus this historical average of overhead. + +Additional ``xafs()`` plan overhead + The ``xafs()`` plan does a bunch of measurements related to metadata + prior to the start document for the scan being issued. This is a + little harder to compute from the database (certainly not + impossible, but it hasn't yet been worked on), so Bruce has made an + observation through experience to approximate the amount of time + needed to capture photos, measure an XRF spectrum, move to the + :numref:`pseudo-channelcut energy (Section %s) `, etc. When + computing time for a spreadsheet, this is added to the time for each + ``xafs()`` plan run. Until this is measured properly, the value of + ``BMMuser.tweak_xas_time`` is used. + +Changing temperature + For spreadsheets using the Linkam stage or Lakeshore temperature + controller, times for temperature changes are made considering the + ramp rate and the settling time. + +Moving motors, rotating sample wheels + Motor movement for a grid spreadsheet or wheel rotation for wheel + spreadsheet are not considered in the time estimate. The assumption + is that the motors are fast compared to almost everything else. + +Changing edges + For the time estimate in a spreadsheet file, a flat 5 minutes is + used. The range of time for the :numref:`change_edge() (Sample %s) + ` command is about 2.5 minutes when moving between nearby edges + in the same :numref:`photon delivery mode (Table %s) + ` to about 7 minutes for a change between + modes. So this is a source of error in a spreadsheet time estimate. + +Aligning the glancing angle stage + A flat 3 minutes is used to account for the time it takes to do the + automated alignment. + +For a single XAFS scan, the time estimate is the sum of the first two +items in the list above. For a spreadsheet, all applicable items from +the list are added together for each row of the spreadsheet. The +times for each row are added up. + +.. caution:: The time estimate is a good faith estimate. It should be + used as a decent suggestion, but high accuracy should not + be expected! + + +.. _dataevaluation: + +Data evaluation +--------------- + +The thing about :numref:`automation of measurements (Section %s) +` is that the beamline is left unattended for extended +periods. Sometimes things happen at the unattended beamline, +detectors can malfunction, software can get into a weird state, +samples can fall off of sample holders. In short, things can happen +that need human attention and intervention. + +At BMM, we have a sort of a warning system for such things. A machine +agent has been trained to recognize what XAFS data looks like. When a +spectrum is measured that looks like data, i.e. it has an obvious edge +step towards the beginning of the spectrum which is followed by +oscillations, the data evaluator returns a positive result. If the +measurement does not look like that, it returns a negative result. +Examples are shown in :numref:`Figure %s `. + +The result of the data evaluation is printed to the screen. More +importantly, it is posted to :numref:`Slack (Section %s) ` +where it might be seen by the user or the beamline staff. + + +.. subfigure:: AB + :layout-sm: AB + :subcaptions: above + :name: dataeval + :class-grid: outline + + .. image:: _images/good_evaluation.png + + .. image:: _images/bad_evaluation.png + + Examples of data being evaluated as good (left) and bad (right) XAS + data. The data on the left has an obvious edge step followed by + oscillations. It, therefore, looks like XAFS data. The data on + the right is an example of a marginal measurement. There `is` a + step, but it's not very big. Thus it looks like it might be a + problematic measurement. It certainly is something that needs the + attention of a human. + +This machine agent is a trained learning model. It uses a corpus of +data measured at BMM and tagged by Bruce. The corpus includes +hundreds of examples of good spectra and hundreds of examples of +problematic measurements of all sorts. These are human-tagged as such +and trained using a `random forest classifier +`__. +Subsequent spectra are evaluated using this trained classifier. This +evaluation happens upon completion of each XAFS scan repetition. + +Experience so far with this model has been quite good. The training +set is over 98% successful when tested against a subset of the +training corpus. False positives (i.e. bad data identified as being +good data) are exceedingly rare. False negatives (i.e. good data +falsely identified as bad data) are much more common, happening most +days. + +That's a fundamentally useful result. A false negative draws human +attention to the beamline for a situation that might not require it. +Frequent false positives would be much more problematic. + +All negative results are logged so that the training model can be +further refined by having a human tag each those negatives +appropriately and adding them to the training corpus. + +The random forest (RF) classifier was chosen because it is fairly simple +and because it works well. Also tested were K-neighbors (KN) and a +Multi-layer Perceptron (MLP). KN is certainly the simplest of the +models tried |nd| it is the model usually associated with the `classic +iris classification problem +`__. It +actually works quite well, although RF and MLP are both improvements. +MLP was the suggestion of a local machine learning expert and performs +similarly to RF on this trained data corpus. + + +Extract XRF spectra from fluorescence XAS +----------------------------------------- + +BMM offers a handy tool for examining the XRF spectra of a +fluorescence XAS scan on a point-by-point basis. Given the UID of a +scan |nd| which can be found in :numref:`the dossier (Section %s) +` or in :numref:`the header of the data file (Section %s) +` |nd| you can plot the XRF spectrum at a given point in +the scan. + +.. sourcecode:: python + + xrfat(uid, energy) + +Here, ``uid`` is a string containing the scan UID and ``energy`` is +one of the following: + ++ an energy point in the scan range, the nearest energy point will be + used ++ a negative integer, the energy point that many steps from the *end* + of the scan will be used ++ a positive integer (smaller than the first energy value in the + scan), the energy point that many steps from the *beginning* of the + scan will be used + +For example, + +.. sourcecode:: python + + xrfat(uid, -1) + +will plot the XRF spectrum measured at the last point in the scan. + +Here's a good example of why this is useful. Some visitors to BMM +were measuring a sample with a rather low concentration of neodymium +(L\ :sub:`3`\ edge energy of 6208). The |chi|\ (k) data were +noticeably distorted about 330 eV (or about 9.3 inverse Angstrom) +above the edge. This corresponds to the K edge energy (about 6539) of +Mn. We eventually determined that the BN used as a diluant was +slightly contaminated with Mn. + +Here are the plots from below and above the Mn K edge: + +.. sourcecode:: python + + xrfat(uid, 6510) + xrfat(uid, 6560) + +.. subfigure:: AB + :layout-sm: AB + :gap: 8px + :subcaptions: above + :name: Ndsample + :class-grid: outline + + .. image:: _images/Nd-6510.png + + .. image:: _images/Nd-6560.png + + (Left) The XRF spectra from the Nd-bearing sample measured at 6510 eV. + (Right) The XRF spectra from the Nd-bearing sample measured at 6560 eV. + +Those don't look very different. However, overplotting the two +spectra and displaying on a log scale on the y-axis: + +.. _fig-Ndcompare: +.. figure:: _images/Nd-compare.png + :target: _images/Nd-compare.png + :width: 70% + :align: center + + The XRF spectra from the Nd-bearing sample measured at 6510 eV and + at 6560 eV. There is a very small peak at the Mn K\ |alpha| + energy, marked by the green circle. + +While tiny, this Mn contamination had a noticeable impact on the +measured EXAFS data. This sort of forensic work is enabled by the +``xrfat`` command. + +The full signature of this function is + +.. sourcecode:: python + + def xrfat(uid, energy=-1, xrffile=None, add=True, only=None, xmax=1500): + +where + +``xrffile`` + If not None, is the name of the column data file to be written to + the users ``XRF`` folder. + +``add`` + If True, add the signals from the four channels + +``only`` + If specified as an integer (1, 2, 3, or 4), plot only that detector + channel + +``xmax`` + Specify the maximum energy plotted on the x-axis in units of energy + above the measured fluorescence line energy + + +Reference spectra +----------------- + +BMM has a wide variety of reference materials mounted in the reference +position. The collection includes metal foils, metal powders, stable +oxides, or other stable compound of 44 of the elements measurable at +BMM. + +The materials shown and listed below are always available for +measurement. As part of the `command for changing edge +`__, +the reference wheel will rotate to the position of the selected +element. Every XAS scan will include the signal from the I\ :sub:`r` +chamber (whether any signal makes it to that detector depends on the +sample being measured, of course). + +.. _fig-refwheel: +.. figure:: _images/Ref_wheel.jpg + :target: _images/Ref_wheel.jpg + :width: 70% + :align: center + + The reference wheel at BMM + +.. |Gaoxide| replace:: Ga\ :sub:`2`\ O\ :sub:`3` +.. |Geoxide| replace:: GeO\ :sub:`2` +.. |Asoxide| replace:: As\ :sub:`2`\ O\ :sub:`3` +.. |Bioxide| replace:: BiO\ :sub:`2` +.. |Yoxide| replace:: Y\ :sub:`2`\ O\ :sub:`3` +.. |Srtitanate| replace:: SrTiO\ :sub:`3` +.. |Csnitrate| replace:: CsNO\ :sub:`3` +.. |Lahydroxide| replace:: La(OH)\ :sub:`3` +.. |Ceoxide| replace:: Ce\ :sub:`2`\ O\ :sub:`3` +.. |Proxide| replace:: Pr\ :sub:`6`\ O\ :sub:`11` +.. |Ndoxide| replace:: Nd\ :sub:`2`\ O\ :sub:`3` +.. |Smoxide| replace:: Sm\ :sub:`2`\ O\ :sub:`3` +.. |Euoxide| replace:: Eu\ :sub:`2`\ O\ :sub:`3` +.. |Gdoxide| replace:: Gd\ :sub:`2`\ O\ :sub:`3` +.. |Tboxide| replace:: Tb\ :sub:`4`\ O\ :sub:`9` +.. |Dyoxide| replace:: Dy\ :sub:`2`\ O\ :sub:`3` +.. |Hooxide| replace:: Ho\ :sub:`2`\ O\ :sub:`3` +.. |Eroxide| replace:: Er\ :sub:`2`\ O\ :sub:`3` +.. |Tmoxide| replace:: Tm\ :sub:`2`\ O\ :sub:`3` +.. |Yboxide| replace:: Yb\ :sub:`2`\ O\ :sub:`3` +.. |Luoxide| replace:: Lu\ :sub:`2`\ O\ :sub:`3` +.. |Rbcarbonate| replace:: RbCO\ :sub:`3` +.. |Hfoxide| replace:: HfO\ :sub:`2` +.. |Taoxide| replace:: Ta\ :sub:`2`\ O\ :sub:`5` +.. |Reoxide| replace:: ReO\ :sub:`2` +.. |Ruoxide| replace:: RuO\ :sub:`2` + +============ ======== =================== ============ ======== =============== + Ring / slot Element Material Ring / slot Element Material +============ ======== =================== ============ ======== =============== + Outer 1 empty for alignment Inner 1 Cs |Csnitrate| + Outer 2 Ti foil Inner 2 La |Lahydroxide| + Outer 3 V foil Inner 3 Ce |Ceoxide| + Outer 4 Cr foil Inner 4 Pr |Proxide| + Outer 5 Mn metal powder Inner 5 Nd |Ndoxide| + Outer 6 Fe foil Inner 6 Sm |Smoxide| + Outer 7 Co foil Inner 7 Eu |Euoxide| + Outer 8 Ni foil Inner 8 Gd |Gdoxide| + Outer 9 Cu foil Inner 9 Tb |Tboxide| + Outer 10 Zn foil Inner 10 Dy |Dyoxide| + Outer 11 Ga |Gaoxide| Inner 11 Ho |Hooxide| + Outer 12 Ge |Geoxide| Inner 12 Er |Eroxide| + Outer 13 As |Asoxide| Inner 13 Tm |Tmoxide| + Outer 14 Se metal powder Inner 14 Yb |Yboxide| + Outer 15 Br bromophenol blue Inner 15 Lu |Luoxide| + Outer 16 Zr foil Inner 16 Rb |Rbcarbonate| + Outer 17 Nb foil Inner 17 Ba ** + Outer 18 Mo foil Inner 18 Hf |Hfoxide| + Outer 19 Pt foil Inner 19 Ta |Taoxide| + Outer 20 Au foil Inner 20 W ** + Outer 21 Pb foil Inner 21 Re |Reoxide| + Outer 22 Bi |Bioxide| Inner 22 Os ** + Outer 23 Sr |Srtitanate| Inner 23 Sc metal powder + Outer 24 Y |Yoxide| Inner 24 Ru |Ruoxide| +============ ======== =================== ============ ======== =============== + ++ For Th L3: Bi will be used (outer 20) ++ For U L3: Y will be used (outer 24) ++ For Pu L3: Zr will be used (outer 16) + +The missing elements (Ba, W, & Os, Ir) will be added when they are acquired. + +See also `BMM's complete list of standard materials +`__. + +Here is a `spreadsheet +`__ +for :numref:`automation (see Section %s) ` +with the content of standards wheel. diff --git a/_static/Binder-instructions.pdf b/_static/Binder-instructions.pdf new file mode 100644 index 0000000..fba78da Binary files /dev/null and b/_static/Binder-instructions.pdf differ diff --git a/_static/HutchSearch.docx b/_static/HutchSearch.docx new file mode 100644 index 0000000..a5e2f8c Binary files /dev/null and b/_static/HutchSearch.docx differ diff --git a/_static/basic.css b/_static/basic.css new file mode 100644 index 0000000..6157296 --- /dev/null +++ b/_static/basic.css @@ -0,0 +1,903 @@ +/* + * basic.css + * ~~~~~~~~~ + * + * Sphinx stylesheet -- basic theme. + * + * :copyright: Copyright 2007-2023 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; +} + +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; +} + +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; +} + +/* -- 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/color.css b/_static/color.css new file mode 100644 index 0000000..7827d66 --- /dev/null +++ b/_static/color.css @@ -0,0 +1,130 @@ +/* + * CSS hacks and small modification for my Sphinx website + * :copyright: Copyright 2013-2016 Lilian Besson + * :license: GPLv3, see LICENSE for details. + */ + + +/* Colors and text decoration. + For example, :black:`text in black` or :blink:`text blinking` in rST. */ + +.black { + color: black; +} + +.gray { + color: gray; +} + +.grey { + color: gray; +} + +.silver { + color: silver; +} + +.white { + color: white; +} + +.maroon { + color: maroon; +} + +.red { + color: red; +} + +.magenta { + color: magenta; +} + +.fuchsia { + color: fuchsia; +} + +.pink { + color: pink; +} + +.orange { + color: orange; +} + +.yellow { + color: yellow; +} + +.lime { + color: lime; +} + +.green { + color: green; +} + +.olive { + color: olive; +} + +.teal { + color: teal; +} + +.cyan { + color: cyan; +} + +.aqua { + color: aqua; +} + +.blue { + color: blue; +} + +.navy { + color: navy; +} + +.purple { + color: purple; +} + +.under { + text-decoration: underline; +} + +.over { + text-decoration: overline; +} + +.blink { + text-decoration: blink; +} + +.line { + text-decoration: line-through; +} + +.strike { + text-decoration: line-through; +} + +.it { + font-style: italic; +} + +.ob { + font-style: oblique; +} + +.small { + font-size: small; +} + +.large { + font-size: large; +} + diff --git a/_static/demeter.css b/_static/demeter.css new file mode 100644 index 0000000..76bb708 --- /dev/null +++ b/_static/demeter.css @@ -0,0 +1,62 @@ +/***********************************************************************/ +/* some css swiped from sphinxtr to get subfigures to display sensibly */ +/***********************************************************************/ + +/* change figure captions to get highlighted when targeted with a link */ +div.figure:target > p.caption, +div.subfigure:target > p.caption, +div.figure:target > center > p.caption, +div.math:target span.eqno { + background-color: #FFA; +} +div.figure:target, +div.subfigure:target { + border: 1px dashed #333; +} +div.figure.compound { + padding: 0; + padding-top: 10px; +} +div.figure.compound > p.caption { + margin-left: 7px; + margin-right: 7px; +} +div.subfigure { + display: inline-block; + vertical-align: top; + padding-left: 7px; + padding-right: 7px; +} + + +cite { + background-color: #2e3434; + color: #eff0f1; + outline-style: double; + outline-color: #2e3434; + margin-left: 5px; + margin-right: 5px; +} + + +/*****************************************/ +/* some color for the caution admonition */ +/*****************************************/ + +div.caution { + background-color: #ffeaea; + border: 1px solid #c00; +} + +div.admonition-note { + background-color: #ffeaea; + border: 1px solid #c00; +} + +.strike { + text-decoration: line-through; +} + +/* code, pre { */ +/* padding: 0; */ +/* } */ diff --git a/_static/doctools.js b/_static/doctools.js new file mode 100644 index 0000000..d06a71d --- /dev/null +++ b/_static/doctools.js @@ -0,0 +1,156 @@ +/* + * doctools.js + * ~~~~~~~~~~~ + * + * Base JavaScript utilities for all Sphinx HTML documentation. + * + * :copyright: Copyright 2007-2023 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..8fba697 --- /dev/null +++ b/_static/documentation_options.js @@ -0,0 +1,14 @@ +var DOCUMENTATION_OPTIONS = { + URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), + VERSION: '0.1', + 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/floor_mat.png b/_static/floor_mat.png new file mode 100644 index 0000000..e661ff8 Binary files /dev/null and b/_static/floor_mat.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/keys.css b/_static/keys.css new file mode 100644 index 0000000..a3a8c5d --- /dev/null +++ b/_static/keys.css @@ -0,0 +1,81 @@ +/** + * KEYS.css + * + * A simple stylesheet for rendering beautiful keyboard-style elements. + * + * Author: Michael Hüneburg + * Website: http://michaelhue.com/keyscss + * License: MIT License (see LICENSE.txt) + */ + +/* Base style, essential for every key. */ +kbd, .key { + display: inline; + display: inline-block; + min-width: 1em; + padding: .2em .3em; + font: normal .85em/1 "Lucida Grande", Lucida, Arial, sans-serif; + text-align: center; + text-decoration: none; + font-weight: bold; + -moz-border-radius: .3em; + -webkit-border-radius: .3em; + border-radius: .3em; + border: none; + cursor: default; + -moz-user-select: none; + -webkit-user-select: none; + user-select: none; +} +kbd[title], .key[title] { + cursor: help; +} + +/* I added 20 to all the dark numbers to make it a little less dark (BR) */ +/* Dark style for display on light background. This is the default style. */ +kbd, kbd.dark, .dark-keys kbd, .key, .key.dark, .dark-keys .key { + background: rgb(100, 100, 100); + background: -moz-linear-gradient(top, rgb(80, 80, 80), rgb(100, 100, 100)); + background: -webkit-gradient(linear, left top, left bottom, from(rgb(80, 80, 80)), to(rgb(100, 100, 100))); + color: rgb(250, 250, 250); + text-shadow: -1px -1px 0 rgb(90, 90, 90); + -moz-box-shadow: inset 0 0 1px rgb(170, 170, 170), inset 0 -.05em .4em rgb(100, 100, 100), 0 .1em 0 rgb(50, 50, 50), 0 .1em .1em rgba(0, 0, 0, .3); + -webkit-box-shadow: inset 0 0 1px rgb(170, 170, 170), inset 0 -.05em .4em rgb(100, 100, 100), 0 .1em 0 rgb(50, 50, 50), 0 .1em .1em rgba(0, 0, 0, .3); + box-shadow: inset 0 0 1px rgb(170, 170, 170), inset 0 -.05em .4em rgb(100, 100, 100), 0 .1em 0 rgb(50, 50, 50), 0 .1em .1em rgba(0, 0, 0, .3); +} + +/* Light style for display on dark background. */ +/* kbd.light, .light-keys kbd, .key.light, .light-keys .key { */ +/* background: rgb(250, 250, 250); */ +/* background: -moz-linear-gradient(top, rgb(210, 210, 210), rgb(255, 255, 255)); */ +/* background: -webkit-gradient(linear, left top, left bottom, from(rgb(210, 210, 210)), to(rgb(255, 255, 255))); */ +/* color: rgb(50, 50, 50); */ +/* text-shadow: 0 0 2px rgb(255, 255, 255); */ +/* -moz-box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9); */ +/* -webkit-box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9); */ +/* box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9); */ +/* } */ + +/* /\* purple and orange styles added for demeter document *\/ */ + +/* kbd.purple, .purple-keys kbd, .key, .key.purple, .purple-keys { */ +/* background: rgb(163, 113, 250); */ +/* background: -moz-linear-gradient(top, rgb(137, 123, 250), rgb(163, 113, 250)); */ +/* background: -webkit-gradient(linear, left top, left bottom, from(rgb(137, 123, 250)), to(rgb(163, 113, 250))); */ +/* color: rgb(250, 250, 250); */ +/* text-shadow: -1px -1px 0 rgb(139, 133, 250); */ +/* -moz-box-shadow: inset 0 0 1px rgb(87, 50, 250), inset 0 -.05em .4em rgb(163, 113, 250), 0 .1em 0 rgb(186, 156, 250), 0 .1em .1em rgba(0, 0, 0, .3); */ +/* -webkit-box-shadow: inset 0 0 1px rgb(87, 50, 250), inset 0 -.05em .4em rgb(163, 113, 250), 0 .1em 0 rgb(186, 156, 250), 0 .1em .1em rgba(0, 0, 0, .3); */ +/* box-shadow: inset 0 0 1px rgb(87, 50, 250), inset 0 -.05em .4em rgb(163, 113, 250), 0 .1em 0 rgb(186, 156, 250), 0 .1em .1em rgba(0, 0, 0, .3); */ +/* } */ + +/* kbd.orange, .orange-keys kbd, .key, .key.orange, .orange-keys { */ +/* background: rgb(252, 221, 159); */ +/* background: -moz-linear-gradient(top, rgb(252, 227, 182), rgb(252, 221, 159)); */ +/* background: -webkit-gradient(linear, left top, left bottom, from(rgb(252, 227, 182)), to(rgb(252, 221, 159))); */ +/* color: rgb(50, 50, 50); */ +/* text-shadow: -1px -1px 0 rgb(252, 185, 129); */ +/* -moz-box-shadow: inset 0 0 1px rgb(252, 153, 91), inset 0 -.05em .4em rgb(252, 221, 159), 0 .1em 0 rgb(252, 173, 53), 0 .1em .1em rgba(0, 0, 0, .3); */ +/* -webkit-box-shadow: inset 0 0 1px rgb(252, 153, 91), inset 0 -.05em .4em rgb(252, 221, 159), 0 .1em 0 rgb(252, 173, 53), 0 .1em .1em rgba(0, 0, 0, .3); */ +/* box-shadow: inset 0 0 1px rgb(252, 153, 91), inset 0 -.05em .4em rgb(252, 221, 159), 0 .1em 0 rgb(252, 173, 53), 0 .1em .1em rgba(0, 0, 0, .3); */ +/* } */ diff --git a/_static/language_data.js b/_static/language_data.js new file mode 100644 index 0000000..250f566 --- /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-2023 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, is 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/leftclick.png b/_static/leftclick.png new file mode 100644 index 0000000..a9f559f Binary files /dev/null and b/_static/leftclick.png differ diff --git a/_static/linksbox.html b/_static/linksbox.html new file mode 100644 index 0000000..a24a89f --- /dev/null +++ b/_static/linksbox.html @@ -0,0 +1,13 @@ + 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..1237f34 --- /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 "Download source file" +msgstr "تنزيل ملف المصدر" + +msgid "suggest edit" +msgstr "أقترح تحرير" + +msgid "Toggle navigation" +msgstr "تبديل التنقل" + +msgid "open issue" +msgstr "قضية مفتوحة" + +msgid "Download notebook file" +msgstr "تنزيل ملف دفتر الملاحظات" + +msgid "repository" +msgstr "مخزن" + +msgid "Theme by the" +msgstr "موضوع بواسطة" + +msgid "Print to PDF" +msgstr "طباعة إلى PDF" + +msgid "Download this page" +msgstr "قم بتنزيل هذه الصفحة" + +msgid "Copyright" +msgstr "حقوق النشر" + +msgid "Last updated on" +msgstr "آخر تحديث في" + +msgid "Launch" +msgstr "إطلاق" + +msgid "Open an issue" +msgstr "افتح قضية" + +msgid "Fullscreen mode" +msgstr "وضع ملء الشاشة" + +msgid "Sphinx Book Theme" +msgstr "موضوع كتاب أبو الهول" + +msgid "Contents" +msgstr "محتويات" + +msgid "Edit this page" +msgstr "قم بتحرير هذه الصفحة" + +msgid "next page" +msgstr "الصفحة التالية" + +msgid "Source repository" +msgstr "مستودع المصدر" + +msgid "By" +msgstr "بواسطة" + +msgid "By the" +msgstr "بواسطة" + +msgid "previous page" +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..45a6ed0 --- /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 "Download source file" +msgstr "Изтеглете изходния файл" + +msgid "suggest edit" +msgstr "предложи редактиране" + +msgid "Toggle navigation" +msgstr "Превключване на навигацията" + +msgid "open issue" +msgstr "отворен брой" + +msgid "Download notebook file" +msgstr "Изтеглете файла на бележника" + +msgid "repository" +msgstr "хранилище" + +msgid "Theme by the" +msgstr "Тема от" + +msgid "Print to PDF" +msgstr "Печат в PDF" + +msgid "Download this page" +msgstr "Изтеглете тази страница" + +msgid "Copyright" +msgstr "Авторско право" + +msgid "Last updated on" +msgstr "Последна актуализация на" + +msgid "Launch" +msgstr "Стартиране" + +msgid "Open an issue" +msgstr "Отворете проблем" + +msgid "Fullscreen mode" +msgstr "Режим на цял екран" + +msgid "Sphinx Book Theme" +msgstr "Тема на книгата Sphinx" + +msgid "Contents" +msgstr "Съдържание" + +msgid "Edit this page" +msgstr "Редактирайте тази страница" + +msgid "next page" +msgstr "Следваща страница" + +msgid "Source repository" +msgstr "Хранилище на източника" + +msgid "By" +msgstr "От" + +msgid "By the" +msgstr "По" + +msgid "previous page" +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..122a369 --- /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 "Download source file" +msgstr "উত্স ফাইল ডাউনলোড করুন" + +msgid "Toggle navigation" +msgstr "নেভিগেশন টগল করুন" + +msgid "open issue" +msgstr "খোলা সমস্যা" + +msgid "Download notebook file" +msgstr "নোটবুক ফাইল ডাউনলোড করুন" + +msgid "Theme by the" +msgstr "থিম দ্বারা" + +msgid "Print to PDF" +msgstr "পিডিএফ প্রিন্ট করুন" + +msgid "Download this page" +msgstr "এই পৃষ্ঠাটি ডাউনলোড করুন" + +msgid "Copyright" +msgstr "কপিরাইট" + +msgid "Last updated on" +msgstr "সর্বশেষ আপডেট" + +msgid "Launch" +msgstr "শুরু করা" + +msgid "Open an issue" +msgstr "একটি সমস্যা খুলুন" + +msgid "Sphinx Book Theme" +msgstr "স্পিনিক্স বুক থিম" + +msgid "Edit this page" +msgstr "এই পৃষ্ঠাটি সম্পাদনা করুন" + +msgid "next page" +msgstr "পরবর্তী পৃষ্ঠা" + +msgid "Source repository" +msgstr "উত্স সংগ্রহস্থল" + +msgid "By" +msgstr "দ্বারা" + +msgid "By the" +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..c757deb --- /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 "Download source file" +msgstr "Baixeu el fitxer font" + +msgid "suggest edit" +msgstr "suggerir edició" + +msgid "Toggle navigation" +msgstr "Commuta la navegació" + +msgid "open issue" +msgstr "número obert" + +msgid "Download notebook file" +msgstr "Descarregar fitxer de quadern" + +msgid "Theme by the" +msgstr "Tema del" + +msgid "Print to PDF" +msgstr "Imprimeix a PDF" + +msgid "Download this page" +msgstr "Descarregueu aquesta pàgina" + +msgid "Copyright" +msgstr "Copyright" + +msgid "Last updated on" +msgstr "Darrera actualització el" + +msgid "Launch" +msgstr "Llançament" + +msgid "Open an issue" +msgstr "Obriu un número" + +msgid "Sphinx Book Theme" +msgstr "Tema del llibre Esfinx" + +msgid "Edit this page" +msgstr "Editeu aquesta pàgina" + +msgid "next page" +msgstr "pàgina següent" + +msgid "Source repository" +msgstr "Dipòsit de fonts" + +msgid "By" +msgstr "Per" + +msgid "By the" +msgstr "Per la" + +msgid "previous page" +msgstr "Pàgina anterior" 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..3571c23 --- /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 "Download source file" +msgstr "Stáhněte si zdrojový soubor" + +msgid "suggest edit" +msgstr "navrhnout úpravy" + +msgid "Toggle navigation" +msgstr "Přepnout navigaci" + +msgid "open issue" +msgstr "otevřené číslo" + +msgid "Download notebook file" +msgstr "Stáhnout soubor poznámkového bloku" + +msgid "repository" +msgstr "úložiště" + +msgid "Theme by the" +msgstr "Téma od" + +msgid "Print to PDF" +msgstr "Tisk do PDF" + +msgid "Download this page" +msgstr "Stáhněte si tuto stránku" + +msgid "Copyright" +msgstr "autorská práva" + +msgid "Last updated on" +msgstr "Naposledy aktualizováno" + +msgid "Launch" +msgstr "Zahájení" + +msgid "Open an issue" +msgstr "Otevřete problém" + +msgid "Fullscreen mode" +msgstr "Režim celé obrazovky" + +msgid "Sphinx Book Theme" +msgstr "Téma knihy Sfinga" + +msgid "Contents" +msgstr "Obsah" + +msgid "Edit this page" +msgstr "Upravit tuto stránku" + +msgid "next page" +msgstr "další strana" + +msgid "Source repository" +msgstr "Zdrojové úložiště" + +msgid "By" +msgstr "Podle" + +msgid "By the" +msgstr "Podle" + +msgid "previous page" +msgstr "předchozí stránka" 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..c39223f --- /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 "Download source file" +msgstr "Download kildefil" + +msgid "suggest edit" +msgstr "foreslå redigering" + +msgid "Toggle navigation" +msgstr "Skift navigation" + +msgid "open issue" +msgstr "åbent nummer" + +msgid "Download notebook file" +msgstr "Download notesbog-fil" + +msgid "repository" +msgstr "lager" + +msgid "Theme by the" +msgstr "Tema af" + +msgid "Print to PDF" +msgstr "Udskriv til PDF" + +msgid "Download this page" +msgstr "Download denne side" + +msgid "Copyright" +msgstr "ophavsret" + +msgid "Last updated on" +msgstr "Sidst opdateret den" + +msgid "Launch" +msgstr "Start" + +msgid "Open an issue" +msgstr "Åbn et problem" + +msgid "Fullscreen mode" +msgstr "Fuldskærmstilstand" + +msgid "Sphinx Book Theme" +msgstr "Sphinx bogtema" + +msgid "Contents" +msgstr "Indhold" + +msgid "Edit this page" +msgstr "Rediger denne side" + +msgid "next page" +msgstr "Næste side" + +msgid "Source repository" +msgstr "Kildelager" + +msgid "By" +msgstr "Ved" + +msgid "By the" +msgstr "Ved" + +msgid "previous page" +msgstr "forrige side" 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..e22b505 --- /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 "Download source file" +msgstr "Quelldatei herunterladen" + +msgid "suggest edit" +msgstr "vorschlagen zu bearbeiten" + +msgid "Toggle navigation" +msgstr "Navigation umschalten" + +msgid "open issue" +msgstr "offenes Thema" + +msgid "Download notebook file" +msgstr "Notebook-Datei herunterladen" + +msgid "repository" +msgstr "Repository" + +msgid "Theme by the" +msgstr "Thema von der" + +msgid "Print to PDF" +msgstr "In PDF drucken" + +msgid "Download this page" +msgstr "Laden Sie diese Seite herunter" + +msgid "Copyright" +msgstr "Urheberrechte ©" + +msgid "Last updated on" +msgstr "Zuletzt aktualisiert am" + +msgid "Launch" +msgstr "Starten" + +msgid "Open an issue" +msgstr "Öffnen Sie ein Problem" + +msgid "Fullscreen mode" +msgstr "Vollbildmodus" + +msgid "Sphinx Book Theme" +msgstr "Sphinx-Buch-Thema" + +msgid "Contents" +msgstr "Inhalt" + +msgid "Edit this page" +msgstr "Bearbeite diese Seite" + +msgid "next page" +msgstr "Nächste Seite" + +msgid "Source repository" +msgstr "Quell-Repository" + +msgid "By" +msgstr "Durch" + +msgid "By the" +msgstr "Bis zum" + +msgid "previous page" +msgstr "vorherige Seite" 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..588f2ef --- /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 "Download source file" +msgstr "Λήψη αρχείου προέλευσης" + +msgid "suggest edit" +msgstr "προτείνω επεξεργασία" + +msgid "Toggle navigation" +msgstr "Εναλλαγή πλοήγησης" + +msgid "open issue" +msgstr "ανοιχτό ζήτημα" + +msgid "Download notebook file" +msgstr "Λήψη αρχείου σημειωματάριου" + +msgid "repository" +msgstr "αποθήκη" + +msgid "Theme by the" +msgstr "Θέμα από το" + +msgid "Print to PDF" +msgstr "Εκτύπωση σε PDF" + +msgid "Download this page" +msgstr "Λήψη αυτής της σελίδας" + +msgid "Copyright" +msgstr "Πνευματική ιδιοκτησία" + +msgid "Last updated on" +msgstr "Τελευταία ενημέρωση στις" + +msgid "Launch" +msgstr "Εκτόξευση" + +msgid "Open an issue" +msgstr "Ανοίξτε ένα ζήτημα" + +msgid "Fullscreen mode" +msgstr "ΛΕΙΤΟΥΡΓΙΑ ΠΛΗΡΟΥΣ ΟΘΟΝΗΣ" + +msgid "Sphinx Book Theme" +msgstr "Θέμα βιβλίου Sphinx" + +msgid "Contents" +msgstr "Περιεχόμενα" + +msgid "Edit this page" +msgstr "Επεξεργαστείτε αυτήν τη σελίδα" + +msgid "next page" +msgstr "επόμενη σελίδα" + +msgid "Source repository" +msgstr "Αποθήκη πηγής" + +msgid "By" +msgstr "Με" + +msgid "By the" +msgstr "Από το" + +msgid "previous page" +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..4614fe0 --- /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 "Download source file" +msgstr "Elŝutu fontodosieron" + +msgid "suggest edit" +msgstr "sugesti redaktadon" + +msgid "Toggle navigation" +msgstr "Ŝalti navigadon" + +msgid "open issue" +msgstr "malferma numero" + +msgid "Download notebook file" +msgstr "Elŝutu kajeran dosieron" + +msgid "repository" +msgstr "deponejo" + +msgid "Theme by the" +msgstr "Temo de la" + +msgid "Print to PDF" +msgstr "Presi al PDF" + +msgid "Download this page" +msgstr "Elŝutu ĉi tiun paĝon" + +msgid "Copyright" +msgstr "Kopirajto" + +msgid "Last updated on" +msgstr "Laste ĝisdatigita la" + +msgid "Launch" +msgstr "Lanĉo" + +msgid "Open an issue" +msgstr "Malfermu numeron" + +msgid "Fullscreen mode" +msgstr "Plenekrana reĝimo" + +msgid "Sphinx Book Theme" +msgstr "Sfinksa Libro-Temo" + +msgid "Contents" +msgstr "Enhavo" + +msgid "Edit this page" +msgstr "Redaktu ĉi tiun paĝon" + +msgid "next page" +msgstr "sekva paĝo" + +msgid "Source repository" +msgstr "Fonto-deponejo" + +msgid "By" +msgstr "De" + +msgid "By the" +msgstr "Per la" + +msgid "previous page" +msgstr "antaŭa paĝo" 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..b4fccf1 --- /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 "Download source file" +msgstr "Descargar archivo fuente" + +msgid "suggest edit" +msgstr "sugerir editar" + +msgid "Toggle navigation" +msgstr "Navegación de palanca" + +msgid "open issue" +msgstr "Tema abierto" + +msgid "Download notebook file" +msgstr "Descargar archivo de cuaderno" + +msgid "repository" +msgstr "repositorio" + +msgid "Theme by the" +msgstr "Tema por el" + +msgid "Print to PDF" +msgstr "Imprimir en PDF" + +msgid "Download this page" +msgstr "Descarga esta pagina" + +msgid "Copyright" +msgstr "Derechos de autor" + +msgid "Last updated on" +msgstr "Ultima actualización en" + +msgid "Launch" +msgstr "Lanzamiento" + +msgid "Open an issue" +msgstr "Abrir un problema" + +msgid "Fullscreen mode" +msgstr "Modo de pantalla completa" + +msgid "Sphinx Book Theme" +msgstr "Tema del libro de la esfinge" + +msgid "Contents" +msgstr "Contenido" + +msgid "Edit this page" +msgstr "Edita esta página" + +msgid "next page" +msgstr "siguiente página" + +msgid "Source repository" +msgstr "Repositorio de origen" + +msgid "By" +msgstr "Por" + +msgid "By the" +msgstr "Por el" + +msgid "previous page" +msgstr "pagina anterior" 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..b748b37 --- /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 "Download source file" +msgstr "Laadige alla lähtefail" + +msgid "suggest edit" +msgstr "soovita muuta" + +msgid "Toggle navigation" +msgstr "Lülita navigeerimine sisse" + +msgid "open issue" +msgstr "avatud küsimus" + +msgid "Download notebook file" +msgstr "Laadige sülearvuti fail alla" + +msgid "repository" +msgstr "hoidla" + +msgid "Theme by the" +msgstr "Teema" + +msgid "Print to PDF" +msgstr "Prindi PDF-i" + +msgid "Download this page" +msgstr "Laadige see leht alla" + +msgid "Copyright" +msgstr "Autoriõigus" + +msgid "Last updated on" +msgstr "Viimati uuendatud" + +msgid "Launch" +msgstr "Käivitage" + +msgid "Open an issue" +msgstr "Avage probleem" + +msgid "Fullscreen mode" +msgstr "Täisekraanirežiim" + +msgid "Sphinx Book Theme" +msgstr "Sfinksiraamatu teema" + +msgid "Contents" +msgstr "Sisu" + +msgid "Edit this page" +msgstr "Muutke seda lehte" + +msgid "next page" +msgstr "järgmine leht" + +msgid "Source repository" +msgstr "Allikahoidla" + +msgid "By" +msgstr "Kõrval" + +msgid "By the" +msgstr "Autor" + +msgid "previous page" +msgstr "eelmine leht" 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..f58cf58 --- /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 "Download source file" +msgstr "Lataa lähdetiedosto" + +msgid "suggest edit" +msgstr "ehdottaa muokkausta" + +msgid "Toggle navigation" +msgstr "Vaihda navigointia" + +msgid "open issue" +msgstr "avoin ongelma" + +msgid "Download notebook file" +msgstr "Lataa muistikirjatiedosto" + +msgid "repository" +msgstr "arkisto" + +msgid "Theme by the" +msgstr "Teeman tekijä" + +msgid "Print to PDF" +msgstr "Tulosta PDF-tiedostoon" + +msgid "Download this page" +msgstr "Lataa tämä sivu" + +msgid "Copyright" +msgstr "Tekijänoikeus" + +msgid "Last updated on" +msgstr "Viimeksi päivitetty" + +msgid "Launch" +msgstr "Tuoda markkinoille" + +msgid "Open an issue" +msgstr "Avaa ongelma" + +msgid "Fullscreen mode" +msgstr "Koko näytön tila" + +msgid "Sphinx Book Theme" +msgstr "Sphinx-kirjan teema" + +msgid "Contents" +msgstr "Sisällys" + +msgid "Edit this page" +msgstr "Muokkaa tätä sivua" + +msgid "next page" +msgstr "seuraava sivu" + +msgid "Source repository" +msgstr "Lähteen arkisto" + +msgid "By" +msgstr "Tekijä" + +msgid "By the" +msgstr "Mukaan" + +msgid "previous page" +msgstr "Edellinen sivu" 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..8a6c946 --- /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 "Download source file" +msgstr "Télécharger le fichier source" + +msgid "suggest edit" +msgstr "suggestion de modification" + +msgid "Toggle navigation" +msgstr "Basculer la navigation" + +msgid "open issue" +msgstr "signaler un problème" + +msgid "Download notebook file" +msgstr "Télécharger le fichier notebook" + +msgid "repository" +msgstr "dépôt" + +msgid "Theme by the" +msgstr "Thème par le" + +msgid "Print to PDF" +msgstr "Imprimer au format PDF" + +msgid "Download this page" +msgstr "Téléchargez cette page" + +msgid "Copyright" +msgstr "droits d'auteur" + +msgid "Last updated on" +msgstr "Dernière mise à jour le" + +msgid "Launch" +msgstr "lancement" + +msgid "Open an issue" +msgstr "Ouvrez un problème" + +msgid "Fullscreen mode" +msgstr "Mode plein écran" + +msgid "Sphinx Book Theme" +msgstr "Thème du livre Sphinx" + +msgid "Contents" +msgstr "Contenu" + +msgid "Edit this page" +msgstr "Modifier cette page" + +msgid "next page" +msgstr "page suivante" + +msgid "Source repository" +msgstr "Dépôt source" + +msgid "By" +msgstr "Par" + +msgid "By the" +msgstr "Par le" + +msgid "previous page" +msgstr "page précédente" 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..4ceb389 --- /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 "Download source file" +msgstr "Preuzmi izvornu datoteku" + +msgid "suggest edit" +msgstr "predloži uređivanje" + +msgid "Toggle navigation" +msgstr "Uključi / isključi navigaciju" + +msgid "open issue" +msgstr "otvoreno izdanje" + +msgid "Download notebook file" +msgstr "Preuzmi datoteku bilježnice" + +msgid "repository" +msgstr "spremište" + +msgid "Theme by the" +msgstr "Tema autora" + +msgid "Print to PDF" +msgstr "Ispis u PDF" + +msgid "Download this page" +msgstr "Preuzmite ovu stranicu" + +msgid "Copyright" +msgstr "Autorska prava" + +msgid "Last updated on" +msgstr "Posljednje ažuriranje:" + +msgid "Launch" +msgstr "Pokrenite" + +msgid "Open an issue" +msgstr "Otvorite izdanje" + +msgid "Fullscreen mode" +msgstr "Način preko cijelog zaslona" + +msgid "Sphinx Book Theme" +msgstr "Tema knjige Sphinx" + +msgid "Contents" +msgstr "Sadržaj" + +msgid "Edit this page" +msgstr "Uredite ovu stranicu" + +msgid "next page" +msgstr "sljedeća stranica" + +msgid "Source repository" +msgstr "Izvorno spremište" + +msgid "By" +msgstr "Po" + +msgid "By the" +msgstr "Od strane" + +msgid "previous page" +msgstr "Prethodna stranica" 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..1eca599 --- /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 "Download source file" +msgstr "Unduh file sumber" + +msgid "suggest edit" +msgstr "menyarankan edit" + +msgid "Toggle navigation" +msgstr "Alihkan navigasi" + +msgid "open issue" +msgstr "masalah terbuka" + +msgid "Download notebook file" +msgstr "Unduh file notebook" + +msgid "repository" +msgstr "gudang" + +msgid "Theme by the" +msgstr "Tema oleh" + +msgid "Print to PDF" +msgstr "Cetak ke PDF" + +msgid "Download this page" +msgstr "Unduh halaman ini" + +msgid "Copyright" +msgstr "hak cipta" + +msgid "Last updated on" +msgstr "Terakhir diperbarui saat" + +msgid "Launch" +msgstr "Meluncurkan" + +msgid "Open an issue" +msgstr "Buka masalah" + +msgid "Fullscreen mode" +msgstr "Mode layar penuh" + +msgid "Sphinx Book Theme" +msgstr "Tema Buku Sphinx" + +msgid "Contents" +msgstr "Isi" + +msgid "Edit this page" +msgstr "Edit halaman ini" + +msgid "next page" +msgstr "halaman selanjutnya" + +msgid "Source repository" +msgstr "Repositori sumber" + +msgid "By" +msgstr "Oleh" + +msgid "By the" +msgstr "Oleh" + +msgid "previous page" +msgstr "halaman sebelumnya" 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..f316900 --- /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 "Download source file" +msgstr "Scarica il file sorgente" + +msgid "suggest edit" +msgstr "suggerisci modifica" + +msgid "Toggle navigation" +msgstr "Attiva / disattiva la navigazione" + +msgid "open issue" +msgstr "questione aperta" + +msgid "Download notebook file" +msgstr "Scarica il file del taccuino" + +msgid "repository" +msgstr "repository" + +msgid "Theme by the" +msgstr "Tema di" + +msgid "Print to PDF" +msgstr "Stampa in PDF" + +msgid "Download this page" +msgstr "Scarica questa pagina" + +msgid "Copyright" +msgstr "Diritto d'autore" + +msgid "Last updated on" +msgstr "Ultimo aggiornamento il" + +msgid "Launch" +msgstr "Lanciare" + +msgid "Open an issue" +msgstr "Apri un problema" + +msgid "Fullscreen mode" +msgstr "Modalità schermo intero" + +msgid "Sphinx Book Theme" +msgstr "Tema del libro della Sfinge" + +msgid "Contents" +msgstr "Contenuti" + +msgid "Edit this page" +msgstr "Modifica questa pagina" + +msgid "next page" +msgstr "pagina successiva" + +msgid "Source repository" +msgstr "Repository di origine" + +msgid "By" +msgstr "Di" + +msgid "By the" +msgstr "Dal" + +msgid "previous page" +msgstr "pagina precedente" 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..9e6d753 --- /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 "Download source file" +msgstr "הורד את קובץ המקור" + +msgid "suggest edit" +msgstr "מציע לערוך" + +msgid "Toggle navigation" +msgstr "החלף ניווט" + +msgid "open issue" +msgstr "בעיה פתוחה" + +msgid "Download notebook file" +msgstr "הורד קובץ מחברת" + +msgid "repository" +msgstr "מאגר" + +msgid "Theme by the" +msgstr "נושא מאת" + +msgid "Print to PDF" +msgstr "הדפס לקובץ PDF" + +msgid "Download this page" +msgstr "הורד דף זה" + +msgid "Copyright" +msgstr "זכויות יוצרים" + +msgid "Last updated on" +msgstr "עודכן לאחרונה ב" + +msgid "Launch" +msgstr "לְהַשִׁיק" + +msgid "Open an issue" +msgstr "פתח גיליון" + +msgid "Fullscreen mode" +msgstr "מצב מסך מלא" + +msgid "Sphinx Book Theme" +msgstr "נושא ספר ספינקס" + +msgid "Contents" +msgstr "תוכן" + +msgid "Edit this page" +msgstr "ערוך דף זה" + +msgid "next page" +msgstr "עמוד הבא" + +msgid "Source repository" +msgstr "מאגר המקורות" + +msgid "By" +msgstr "על ידי" + +msgid "By the" +msgstr "דרך" + +msgid "previous page" +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..c1a3148 --- /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 "Download source file" +msgstr "ソースファイルをダウンロード" + +msgid "suggest edit" +msgstr "編集を提案する" + +msgid "Toggle navigation" +msgstr "ナビゲーションを切り替え" + +msgid "open issue" +msgstr "未解決の問題" + +msgid "Download notebook file" +msgstr "ノートブックファイルをダウンロード" + +msgid "repository" +msgstr "リポジトリ" + +msgid "Theme by the" +msgstr "のテーマ" + +msgid "Print to PDF" +msgstr "PDFに印刷" + +msgid "Download this page" +msgstr "このページをダウンロード" + +msgid "Copyright" +msgstr "Copyright" + +msgid "Last updated on" +msgstr "最終更新日" + +msgid "Launch" +msgstr "起動" + +msgid "Open an issue" +msgstr "問題を報告" + +msgid "Fullscreen mode" +msgstr "全画面モード" + +msgid "Sphinx Book Theme" +msgstr "スフィンクスの本のテーマ" + +msgid "Contents" +msgstr "目次" + +msgid "Edit this page" +msgstr "このページを編集" + +msgid "next page" +msgstr "次のページ" + +msgid "Source repository" +msgstr "ソースリポジトリ" + +msgid "By" +msgstr "著者" + +msgid "By the" +msgstr "によって" + +msgid "previous page" +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..8014231 --- /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 "Download source file" +msgstr "소스 파일 다운로드" + +msgid "suggest edit" +msgstr "편집 제안" + +msgid "Toggle navigation" +msgstr "탐색 전환" + +msgid "open issue" +msgstr "열린 문제" + +msgid "Download notebook file" +msgstr "노트북 파일 다운로드" + +msgid "repository" +msgstr "저장소" + +msgid "Theme by the" +msgstr "테마별" + +msgid "Print to PDF" +msgstr "PDF로 인쇄" + +msgid "Download this page" +msgstr "이 페이지 다운로드" + +msgid "Copyright" +msgstr "저작권" + +msgid "Last updated on" +msgstr "마지막 업데이트" + +msgid "Launch" +msgstr "시작하다" + +msgid "Open an issue" +msgstr "이슈 열기" + +msgid "Fullscreen mode" +msgstr "전체 화면으로보기" + +msgid "Sphinx Book Theme" +msgstr "스핑크스 도서 테마" + +msgid "Contents" +msgstr "내용" + +msgid "Edit this page" +msgstr "이 페이지 편집" + +msgid "next page" +msgstr "다음 페이지" + +msgid "Source repository" +msgstr "소스 저장소" + +msgid "By" +msgstr "으로" + +msgid "By the" +msgstr "에 의해" + +msgid "previous page" +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..2e6915a --- /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 "Download source file" +msgstr "Atsisiųsti šaltinio failą" + +msgid "suggest edit" +msgstr "pasiūlyti redaguoti" + +msgid "Toggle navigation" +msgstr "Perjungti naršymą" + +msgid "open issue" +msgstr "atviras klausimas" + +msgid "Download notebook file" +msgstr "Atsisiųsti nešiojamojo kompiuterio failą" + +msgid "repository" +msgstr "saugykla" + +msgid "Theme by the" +msgstr "Tema" + +msgid "Print to PDF" +msgstr "Spausdinti į PDF" + +msgid "Download this page" +msgstr "Atsisiųskite šį puslapį" + +msgid "Copyright" +msgstr "Autorių teisės" + +msgid "Last updated on" +msgstr "Paskutinį kartą atnaujinta" + +msgid "Launch" +msgstr "Paleiskite" + +msgid "Open an issue" +msgstr "Atidarykite problemą" + +msgid "Fullscreen mode" +msgstr "Pilno ekrano režimas" + +msgid "Sphinx Book Theme" +msgstr "Sfinkso knygos tema" + +msgid "Contents" +msgstr "Turinys" + +msgid "Edit this page" +msgstr "Redaguoti šį puslapį" + +msgid "next page" +msgstr "Kitas puslapis" + +msgid "Source repository" +msgstr "Šaltinio saugykla" + +msgid "By" +msgstr "Iki" + +msgid "By the" +msgstr "Prie" + +msgid "previous page" +msgstr "Ankstesnis puslapis" 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..d4f4b15 --- /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 "Download source file" +msgstr "Lejupielādēt avota failu" + +msgid "suggest edit" +msgstr "ieteikt rediģēt" + +msgid "Toggle navigation" +msgstr "Pārslēgt navigāciju" + +msgid "open issue" +msgstr "atklāts jautājums" + +msgid "Download notebook file" +msgstr "Lejupielādēt piezīmju grāmatiņu" + +msgid "repository" +msgstr "krātuve" + +msgid "Theme by the" +msgstr "Autora tēma" + +msgid "Print to PDF" +msgstr "Drukāt PDF formātā" + +msgid "Download this page" +msgstr "Lejupielādējiet šo lapu" + +msgid "Copyright" +msgstr "Autortiesības" + +msgid "Last updated on" +msgstr "Pēdējoreiz atjaunināts" + +msgid "Launch" +msgstr "Uzsākt" + +msgid "Open an issue" +msgstr "Atveriet problēmu" + +msgid "Fullscreen mode" +msgstr "Pilnekrāna režīms" + +msgid "Sphinx Book Theme" +msgstr "Sfinksa grāmatas tēma" + +msgid "Contents" +msgstr "Saturs" + +msgid "Edit this page" +msgstr "Rediģēt šo lapu" + +msgid "next page" +msgstr "nākamā lapaspuse" + +msgid "Source repository" +msgstr "Avota krātuve" + +msgid "By" +msgstr "Autors" + +msgid "By the" +msgstr "Ar" + +msgid "previous page" +msgstr "iepriekšējā lapa" 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..5d8ed33 --- /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 "Download source file" +msgstr "ഉറവിട ഫയൽ ഡൗൺലോഡുചെയ്യുക" + +msgid "suggest edit" +msgstr "എഡിറ്റുചെയ്യാൻ നിർദ്ദേശിക്കുക" + +msgid "Toggle navigation" +msgstr "നാവിഗേഷൻ ടോഗിൾ ചെയ്യുക" + +msgid "open issue" +msgstr "തുറന്ന പ്രശ്നം" + +msgid "Download notebook file" +msgstr "നോട്ട്ബുക്ക് ഫയൽ ഡൺലോഡ് ചെയ്യുക" + +msgid "Theme by the" +msgstr "പ്രമേയം" + +msgid "Print to PDF" +msgstr "PDF- ലേക്ക് പ്രിന്റുചെയ്യുക" + +msgid "Download this page" +msgstr "ഈ പേജ് ഡൗൺലോഡുചെയ്യുക" + +msgid "Copyright" +msgstr "പകർപ്പവകാശം" + +msgid "Last updated on" +msgstr "അവസാനം അപ്‌ഡേറ്റുചെയ്‌തത്" + +msgid "Launch" +msgstr "സമാരംഭിക്കുക" + +msgid "Open an issue" +msgstr "ഒരു പ്രശ്നം തുറക്കുക" + +msgid "Sphinx Book Theme" +msgstr "സ്ഫിങ്ക്സ് പുസ്തക തീം" + +msgid "Edit this page" +msgstr "ഈ പേജ് എഡിറ്റുചെയ്യുക" + +msgid "next page" +msgstr "അടുത്ത പേജ്" + +msgid "Source repository" +msgstr "ഉറവിട ശേഖരം" + +msgid "By" +msgstr "എഴുതിയത്" + +msgid "By the" +msgstr "എഴുതിയത്" + +msgid "previous page" +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..64389fa --- /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 "Download source file" +msgstr "स्त्रोत फाइल डाउनलोड करा" + +msgid "suggest edit" +msgstr "संपादन सुचवा" + +msgid "Toggle navigation" +msgstr "नेव्हिगेशन टॉगल करा" + +msgid "open issue" +msgstr "खुला मुद्दा" + +msgid "Download notebook file" +msgstr "नोटबुक फाईल डाउनलोड करा" + +msgid "Theme by the" +msgstr "द्वारा थीम" + +msgid "Print to PDF" +msgstr "पीडीएफवर मुद्रित करा" + +msgid "Download this page" +msgstr "हे पृष्ठ डाउनलोड करा" + +msgid "Copyright" +msgstr "कॉपीराइट" + +msgid "Last updated on" +msgstr "अखेरचे अद्यतनित" + +msgid "Launch" +msgstr "लाँच करा" + +msgid "Open an issue" +msgstr "एक मुद्दा उघडा" + +msgid "Sphinx Book Theme" +msgstr "स्फिंक्स बुक थीम" + +msgid "Edit this page" +msgstr "हे पृष्ठ संपादित करा" + +msgid "next page" +msgstr "पुढील पृष्ठ" + +msgid "Source repository" +msgstr "स्त्रोत भांडार" + +msgid "By" +msgstr "द्वारा" + +msgid "By the" +msgstr "द्वारा" + +msgid "previous page" +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..4365ff5 --- /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 "Download source file" +msgstr "Muat turun fail sumber" + +msgid "suggest edit" +msgstr "cadangkan edit" + +msgid "Toggle navigation" +msgstr "Togol navigasi" + +msgid "open issue" +msgstr "isu terbuka" + +msgid "Download notebook file" +msgstr "Muat turun fail buku nota" + +msgid "Theme by the" +msgstr "Tema oleh" + +msgid "Print to PDF" +msgstr "Cetak ke PDF" + +msgid "Download this page" +msgstr "Muat turun halaman ini" + +msgid "Copyright" +msgstr "hak cipta" + +msgid "Last updated on" +msgstr "Terakhir dikemas kini pada" + +msgid "Launch" +msgstr "Lancarkan" + +msgid "Open an issue" +msgstr "Buka masalah" + +msgid "Sphinx Book Theme" +msgstr "Tema Buku Sphinx" + +msgid "Edit this page" +msgstr "Edit halaman ini" + +msgid "next page" +msgstr "muka surat seterusnya" + +msgid "Source repository" +msgstr "Repositori sumber" + +msgid "By" +msgstr "Oleh" + +msgid "By the" +msgstr "Oleh" + +msgid "previous page" +msgstr "halaman sebelumnya" 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..f7b18e5 --- /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 "Download source file" +msgstr "Download het bronbestand" + +msgid "suggest edit" +msgstr "suggereren bewerken" + +msgid "Toggle navigation" +msgstr "Schakel navigatie" + +msgid "open issue" +msgstr "open probleem" + +msgid "Download notebook file" +msgstr "Download notebookbestand" + +msgid "repository" +msgstr "repository" + +msgid "Theme by the" +msgstr "Thema door de" + +msgid "Print to PDF" +msgstr "Afdrukken naar pdf" + +msgid "Download this page" +msgstr "Download deze pagina" + +msgid "Copyright" +msgstr "auteursrechten" + +msgid "Last updated on" +msgstr "Laatst geupdate op" + +msgid "Launch" +msgstr "Lancering" + +msgid "Open an issue" +msgstr "Open een probleem" + +msgid "Fullscreen mode" +msgstr "Volledig scherm" + +msgid "Sphinx Book Theme" +msgstr "Sphinx-boekthema" + +msgid "Contents" +msgstr "Inhoud" + +msgid "Edit this page" +msgstr "bewerk deze pagina" + +msgid "next page" +msgstr "volgende bladzijde" + +msgid "Source repository" +msgstr "Bronopslagplaats" + +msgid "By" +msgstr "Door" + +msgid "By the" +msgstr "Door de" + +msgid "previous page" +msgstr "vorige pagina" 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..274823a --- /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 "Download source file" +msgstr "Last ned kildefilen" + +msgid "suggest edit" +msgstr "foreslå redigering" + +msgid "Toggle navigation" +msgstr "Bytt navigasjon" + +msgid "open issue" +msgstr "åpent nummer" + +msgid "Download notebook file" +msgstr "Last ned notatbokfilen" + +msgid "repository" +msgstr "oppbevaringssted" + +msgid "Theme by the" +msgstr "Tema av" + +msgid "Print to PDF" +msgstr "Skriv ut til PDF" + +msgid "Download this page" +msgstr "Last ned denne siden" + +msgid "Copyright" +msgstr "opphavsrett" + +msgid "Last updated on" +msgstr "Sist oppdatert den" + +msgid "Launch" +msgstr "Start" + +msgid "Open an issue" +msgstr "Åpne et problem" + +msgid "Fullscreen mode" +msgstr "Fullskjerm-modus" + +msgid "Sphinx Book Theme" +msgstr "Sphinx boktema" + +msgid "Contents" +msgstr "Innhold" + +msgid "Edit this page" +msgstr "Rediger denne siden" + +msgid "next page" +msgstr "neste side" + +msgid "Source repository" +msgstr "Kildedepot" + +msgid "By" +msgstr "Av" + +msgid "By the" +msgstr "Ved" + +msgid "previous page" +msgstr "forrige side" 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..dfba3f6 --- /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 "Download source file" +msgstr "Pobierz plik źródłowy" + +msgid "suggest edit" +msgstr "zaproponuj edycję" + +msgid "Toggle navigation" +msgstr "Przełącz nawigację" + +msgid "open issue" +msgstr "otwarty problem" + +msgid "Download notebook file" +msgstr "Pobierz plik notatnika" + +msgid "repository" +msgstr "magazyn" + +msgid "Theme by the" +msgstr "Motyw autorstwa" + +msgid "Print to PDF" +msgstr "Drukuj do PDF" + +msgid "Download this page" +msgstr "Pobierz tę stronę" + +msgid "Copyright" +msgstr "prawa autorskie" + +msgid "Last updated on" +msgstr "Ostatnia aktualizacja" + +msgid "Launch" +msgstr "Uruchomić" + +msgid "Open an issue" +msgstr "Otwórz problem" + +msgid "Fullscreen mode" +msgstr "Pełny ekran" + +msgid "Sphinx Book Theme" +msgstr "Motyw książki Sphinx" + +msgid "Contents" +msgstr "Zawartość" + +msgid "Edit this page" +msgstr "Edytuj tę strone" + +msgid "next page" +msgstr "Następna strona" + +msgid "Source repository" +msgstr "Repozytorium źródłowe" + +msgid "By" +msgstr "Przez" + +msgid "By the" +msgstr "Przez" + +msgid "previous page" +msgstr "Poprzednia strona" 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..4c24eb9 --- /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 "Download source file" +msgstr "Baixar arquivo fonte" + +msgid "suggest edit" +msgstr "sugerir edição" + +msgid "Toggle navigation" +msgstr "Alternar de navegação" + +msgid "open issue" +msgstr "questão aberta" + +msgid "Download notebook file" +msgstr "Baixar arquivo de notebook" + +msgid "repository" +msgstr "repositório" + +msgid "Theme by the" +msgstr "Tema por" + +msgid "Print to PDF" +msgstr "Imprimir em PDF" + +msgid "Download this page" +msgstr "Baixe esta página" + +msgid "Copyright" +msgstr "direito autoral" + +msgid "Last updated on" +msgstr "Última atualização em" + +msgid "Launch" +msgstr "Lançamento" + +msgid "Open an issue" +msgstr "Abra um problema" + +msgid "Fullscreen mode" +msgstr "Modo tela cheia" + +msgid "Sphinx Book Theme" +msgstr "Tema do livro Sphinx" + +msgid "Contents" +msgstr "Conteúdo" + +msgid "Edit this page" +msgstr "Edite essa página" + +msgid "next page" +msgstr "próxima página" + +msgid "Source repository" +msgstr "Repositório fonte" + +msgid "By" +msgstr "De" + +msgid "By the" +msgstr "Pelo" + +msgid "previous page" +msgstr "página anterior" 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..5f03d9c --- /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 "Download source file" +msgstr "Descărcați fișierul sursă" + +msgid "suggest edit" +msgstr "sugerează editare" + +msgid "Toggle navigation" +msgstr "Comutare navigare" + +msgid "open issue" +msgstr "problema deschisă" + +msgid "Download notebook file" +msgstr "Descărcați fișierul notebook" + +msgid "repository" +msgstr "repertoriu" + +msgid "Theme by the" +msgstr "Tema de" + +msgid "Print to PDF" +msgstr "Imprimați în PDF" + +msgid "Download this page" +msgstr "Descarcă această pagină" + +msgid "Copyright" +msgstr "Drepturi de autor" + +msgid "Last updated on" +msgstr "Ultima actualizare la" + +msgid "Launch" +msgstr "Lansa" + +msgid "Open an issue" +msgstr "Deschideți o problemă" + +msgid "Fullscreen mode" +msgstr "Modul ecran întreg" + +msgid "Sphinx Book Theme" +msgstr "Tema Sphinx Book" + +msgid "Contents" +msgstr "Cuprins" + +msgid "Edit this page" +msgstr "Editați această pagină" + +msgid "next page" +msgstr "pagina următoare" + +msgid "Source repository" +msgstr "Depozit sursă" + +msgid "By" +msgstr "De" + +msgid "By the" +msgstr "Langa" + +msgid "previous page" +msgstr "pagina anterioară" diff --git a/_static/locales/ru/LC_MESSAGES/booktheme.mo b/_static/locales/ru/LC_MESSAGES/booktheme.mo new file mode 100644 index 0000000..6b8ca41 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..2886570 --- /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 "Download source file" +msgstr "Скачать исходный файл" + +msgid "suggest edit" +msgstr "предложить редактировать" + +msgid "Toggle navigation" +msgstr "Переключить навигацию" + +msgid "open issue" +msgstr "открытый вопрос" + +msgid "Download notebook file" +msgstr "Скачать файл записной книжки" + +msgid "repository" +msgstr "хранилище" + +msgid "Theme by the" +msgstr "Тема от" + +msgid "Print to PDF" +msgstr "Распечатать в PDF" + +msgid "Download this page" +msgstr "Загрузите эту страницу" + +msgid "Copyright" +msgstr "авторское право" + +msgid "Last updated on" +msgstr "Последнее обновление" + +msgid "Launch" +msgstr "Запуск" + +msgid "Open an issue" +msgstr "Открыть вопрос" + +msgid "Fullscreen mode" +msgstr "Полноэкранный режим" + +msgid "Sphinx Book Theme" +msgstr "Тема книги Сфинкс" + +msgid "Contents" +msgstr "Содержание" + +msgid "Edit this page" +msgstr "Редактировать эту страницу" + +msgid "next page" +msgstr "Следующая страница" + +msgid "Source repository" +msgstr "Исходный репозиторий" + +msgid "By" +msgstr "По" + +msgid "By the" +msgstr "Посредством" + +msgid "previous page" +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..25517aa --- /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 "Download source file" +msgstr "Stiahnite si zdrojový súbor" + +msgid "suggest edit" +msgstr "navrhnúť úpravu" + +msgid "Toggle navigation" +msgstr "Prepnúť navigáciu" + +msgid "open issue" +msgstr "otvorené vydanie" + +msgid "Download notebook file" +msgstr "Stiahnite si zošit" + +msgid "repository" +msgstr "Úložisko" + +msgid "Theme by the" +msgstr "Téma od" + +msgid "Print to PDF" +msgstr "Tlač do PDF" + +msgid "Download this page" +msgstr "Stiahnite si túto stránku" + +msgid "Copyright" +msgstr "Autorské práva" + +msgid "Last updated on" +msgstr "Posledná aktualizácia dňa" + +msgid "Launch" +msgstr "Spustiť" + +msgid "Open an issue" +msgstr "Otvorte problém" + +msgid "Fullscreen mode" +msgstr "Režim celej obrazovky" + +msgid "Sphinx Book Theme" +msgstr "Téma knihy Sfinga" + +msgid "Contents" +msgstr "Obsah" + +msgid "Edit this page" +msgstr "Upraviť túto stránku" + +msgid "next page" +msgstr "ďalšia strana" + +msgid "Source repository" +msgstr "Zdrojové úložisko" + +msgid "By" +msgstr "Autor:" + +msgid "By the" +msgstr "Podľa" + +msgid "previous page" +msgstr "predchádzajúca strana" 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..346c364 --- /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 "Download source file" +msgstr "Prenesite izvorno datoteko" + +msgid "suggest edit" +msgstr "predlagajte urejanje" + +msgid "Toggle navigation" +msgstr "Preklopi navigacijo" + +msgid "open issue" +msgstr "odprto vprašanje" + +msgid "Download notebook file" +msgstr "Prenesite datoteko zvezka" + +msgid "repository" +msgstr "odlagališče" + +msgid "Theme by the" +msgstr "Tema avtorja" + +msgid "Print to PDF" +msgstr "Natisni v PDF" + +msgid "Download this page" +msgstr "Prenesite to stran" + +msgid "Copyright" +msgstr "avtorske pravice" + +msgid "Last updated on" +msgstr "Nazadnje posodobljeno dne" + +msgid "Launch" +msgstr "Kosilo" + +msgid "Open an issue" +msgstr "Odprite številko" + +msgid "Fullscreen mode" +msgstr "Celozaslonski način" + +msgid "Sphinx Book Theme" +msgstr "Tema knjige Sphinx" + +msgid "Contents" +msgstr "Vsebina" + +msgid "Edit this page" +msgstr "Uredite to stran" + +msgid "next page" +msgstr "Naslednja stran" + +msgid "Source repository" +msgstr "Izvorno skladišče" + +msgid "By" +msgstr "Avtor" + +msgid "By the" +msgstr "Avtor" + +msgid "previous page" +msgstr "Prejšnja stran" 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..b1a97ad --- /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 "Download source file" +msgstr "Преузми изворну датотеку" + +msgid "suggest edit" +msgstr "предложи уређивање" + +msgid "Toggle navigation" +msgstr "Укључи / искључи навигацију" + +msgid "open issue" +msgstr "отворено издање" + +msgid "Download notebook file" +msgstr "Преузмите датотеку бележнице" + +msgid "repository" +msgstr "спремиште" + +msgid "Theme by the" +msgstr "Тхеме би" + +msgid "Print to PDF" +msgstr "Испис у ПДФ" + +msgid "Download this page" +msgstr "Преузмите ову страницу" + +msgid "Copyright" +msgstr "Ауторско право" + +msgid "Last updated on" +msgstr "Последње ажурирање" + +msgid "Launch" +msgstr "Лансирање" + +msgid "Open an issue" +msgstr "Отворите издање" + +msgid "Fullscreen mode" +msgstr "Режим целог екрана" + +msgid "Sphinx Book Theme" +msgstr "Тема књиге Спхинк" + +msgid "Contents" +msgstr "Садржај" + +msgid "Edit this page" +msgstr "Уредите ову страницу" + +msgid "next page" +msgstr "Следећа страна" + +msgid "Source repository" +msgstr "Изворно спремиште" + +msgid "By" +msgstr "Од стране" + +msgid "By the" +msgstr "Од" + +msgid "previous page" +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..8fc0146 --- /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 "Download source file" +msgstr "Ladda ner källfil" + +msgid "suggest edit" +msgstr "föreslå ändring" + +msgid "Toggle navigation" +msgstr "Växla navigering" + +msgid "open issue" +msgstr "öppna problemrapport" + +msgid "Download notebook file" +msgstr "Ladda ner notebook-fil" + +msgid "repository" +msgstr "repositorium" + +msgid "Theme by the" +msgstr "Tema av" + +msgid "Print to PDF" +msgstr "Skriv ut till PDF" + +msgid "Download this page" +msgstr "Ladda ner den här sidan" + +msgid "Copyright" +msgstr "Upphovsrätt" + +msgid "Last updated on" +msgstr "Senast uppdaterad den" + +msgid "Launch" +msgstr "Öppna" + +msgid "Open an issue" +msgstr "Öppna en problemrapport" + +msgid "Fullscreen mode" +msgstr "Fullskärmsläge" + +msgid "Sphinx Book Theme" +msgstr "Sphinx Boktema" + +msgid "Contents" +msgstr "Innehåll" + +msgid "Edit this page" +msgstr "Redigera den här sidan" + +msgid "next page" +msgstr "nästa sida" + +msgid "Source repository" +msgstr "Källkodsrepositorium" + +msgid "By" +msgstr "Av" + +msgid "By the" +msgstr "Av den" + +msgid "previous page" +msgstr "föregående sida" 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..116d743 --- /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 "Download source file" +msgstr "மூல கோப்பைப் பதிவிறக்குக" + +msgid "suggest edit" +msgstr "திருத்த பரிந்துரைக்கவும்" + +msgid "Toggle navigation" +msgstr "வழிசெலுத்தலை நிலைமாற்று" + +msgid "open issue" +msgstr "திறந்த பிரச்சினை" + +msgid "Download notebook file" +msgstr "நோட்புக் கோப்பைப் பதிவிறக்கவும்" + +msgid "Theme by the" +msgstr "வழங்கிய தீம்" + +msgid "Print to PDF" +msgstr "PDF இல் அச்சிடுக" + +msgid "Download this page" +msgstr "இந்தப் பக்கத்தைப் பதிவிறக்கவும்" + +msgid "Copyright" +msgstr "பதிப்புரிமை" + +msgid "Last updated on" +msgstr "கடைசியாக புதுப்பிக்கப்பட்டது" + +msgid "Launch" +msgstr "தொடங்க" + +msgid "Open an issue" +msgstr "சிக்கலைத் திறக்கவும்" + +msgid "Sphinx Book Theme" +msgstr "ஸ்பிங்க்ஸ் புத்தக தீம்" + +msgid "Edit this page" +msgstr "இந்தப் பக்கத்தைத் திருத்தவும்" + +msgid "next page" +msgstr "அடுத்த பக்கம்" + +msgid "Source repository" +msgstr "மூல களஞ்சியம்" + +msgid "By" +msgstr "வழங்கியவர்" + +msgid "By the" +msgstr "மூலம்" + +msgid "previous page" +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..635bdf9 --- /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 "Download source file" +msgstr "మూల ఫైల్‌ను డౌన్‌లోడ్ చేయండి" + +msgid "suggest edit" +msgstr "సవరించమని సూచించండి" + +msgid "Toggle navigation" +msgstr "నావిగేషన్‌ను టోగుల్ చేయండి" + +msgid "open issue" +msgstr "ఓపెన్ ఇష్యూ" + +msgid "Download notebook file" +msgstr "నోట్బుక్ ఫైల్ను డౌన్లోడ్ చేయండి" + +msgid "Theme by the" +msgstr "ద్వారా థీమ్" + +msgid "Print to PDF" +msgstr "PDF కి ముద్రించండి" + +msgid "Download this page" +msgstr "ఈ పేజీని డౌన్‌లోడ్ చేయండి" + +msgid "Copyright" +msgstr "కాపీరైట్" + +msgid "Last updated on" +msgstr "చివరిగా నవీకరించబడింది" + +msgid "Launch" +msgstr "ప్రారంభించండి" + +msgid "Open an issue" +msgstr "సమస్యను తెరవండి" + +msgid "Sphinx Book Theme" +msgstr "సింహిక పుస్తక థీమ్" + +msgid "Edit this page" +msgstr "ఈ పేజీని సవరించండి" + +msgid "next page" +msgstr "తరువాతి పేజీ" + +msgid "Source repository" +msgstr "మూల రిపోజిటరీ" + +msgid "By" +msgstr "ద్వారా" + +msgid "By the" +msgstr "ద్వారా" + +msgid "previous page" +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..a92c069 --- /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 "Download source file" +msgstr "Файли манбаъро зеркашӣ кунед" + +msgid "suggest edit" +msgstr "пешниҳод вироиш" + +msgid "Toggle navigation" +msgstr "Гузаришро иваз кунед" + +msgid "open issue" +msgstr "барориши кушод" + +msgid "Download notebook file" +msgstr "Файли дафтарро зеркашӣ кунед" + +msgid "repository" +msgstr "анбор" + +msgid "Theme by the" +msgstr "Мавзӯъи аз" + +msgid "Print to PDF" +msgstr "Чоп ба PDF" + +msgid "Download this page" +msgstr "Ин саҳифаро зеркашӣ кунед" + +msgid "Copyright" +msgstr "Ҳуқуқи муаллиф" + +msgid "Last updated on" +msgstr "Last навсозӣ дар" + +msgid "Launch" +msgstr "Оғоз" + +msgid "Open an issue" +msgstr "Масъаларо кушоед" + +msgid "Fullscreen mode" +msgstr "Ҳолати экрани пурра" + +msgid "Sphinx Book Theme" +msgstr "Сфинкс Мавзӯи китоб" + +msgid "Contents" +msgstr "Мундариҷа" + +msgid "Edit this page" +msgstr "Ин саҳифаро таҳрир кунед" + +msgid "next page" +msgstr "саҳифаи оянда" + +msgid "Source repository" +msgstr "Анбори манбаъ" + +msgid "By" +msgstr "Бо" + +msgid "By the" +msgstr "Бо" + +msgid "previous page" +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..25d9837 --- /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 "Download source file" +msgstr "ดาวน์โหลดไฟล์ต้นฉบับ" + +msgid "suggest edit" +msgstr "แนะนำแก้ไข" + +msgid "Toggle navigation" +msgstr "ไม่ต้องสลับช่องทาง" + +msgid "open issue" +msgstr "เปิดปัญหา" + +msgid "Download notebook file" +msgstr "ดาวน์โหลดไฟล์สมุดบันทึก" + +msgid "repository" +msgstr "ที่เก็บ" + +msgid "Theme by the" +msgstr "ธีมโดย" + +msgid "Print to PDF" +msgstr "พิมพ์เป็น PDF" + +msgid "Download this page" +msgstr "ดาวน์โหลดหน้านี้" + +msgid "Copyright" +msgstr "ลิขสิทธิ์" + +msgid "Last updated on" +msgstr "ปรับปรุงล่าสุดเมื่อ" + +msgid "Launch" +msgstr "เปิด" + +msgid "Open an issue" +msgstr "เปิดปัญหา" + +msgid "Fullscreen mode" +msgstr "โหมดเต็มหน้าจอ" + +msgid "Sphinx Book Theme" +msgstr "ธีมหนังสือสฟิงซ์" + +msgid "Contents" +msgstr "สารบัญ" + +msgid "Edit this page" +msgstr "แก้ไขหน้านี้" + +msgid "next page" +msgstr "หน้าต่อไป" + +msgid "Source repository" +msgstr "ที่เก็บซอร์ส" + +msgid "By" +msgstr "โดย" + +msgid "By the" +msgstr "โดย" + +msgid "previous page" +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..7e28b05 --- /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 "Download source file" +msgstr "Mag-download ng file ng pinagmulan" + +msgid "suggest edit" +msgstr "iminumungkahi i-edit" + +msgid "Toggle navigation" +msgstr "I-toggle ang pag-navigate" + +msgid "open issue" +msgstr "bukas na isyu" + +msgid "Download notebook file" +msgstr "Mag-download ng file ng notebook" + +msgid "Theme by the" +msgstr "Tema ng" + +msgid "Print to PDF" +msgstr "I-print sa PDF" + +msgid "Download this page" +msgstr "I-download ang pahinang ito" + +msgid "Copyright" +msgstr "Copyright" + +msgid "Last updated on" +msgstr "Huling na-update noong" + +msgid "Launch" +msgstr "Ilunsad" + +msgid "Open an issue" +msgstr "Magbukas ng isyu" + +msgid "Sphinx Book Theme" +msgstr "Tema ng Sphinx Book" + +msgid "Edit this page" +msgstr "I-edit ang pahinang ito" + +msgid "next page" +msgstr "Susunod na pahina" + +msgid "Source repository" +msgstr "Pinagmulan ng imbakan" + +msgid "By" +msgstr "Ni" + +msgid "By the" +msgstr "Sa pamamagitan ng" + +msgid "previous page" +msgstr "Nakaraang pahina" 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..54d6f58 --- /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 "Download source file" +msgstr "Kaynak dosyayı indirin" + +msgid "suggest edit" +msgstr "düzenleme öner" + +msgid "Toggle navigation" +msgstr "Gezinmeyi değiştir" + +msgid "open issue" +msgstr "Açık konu" + +msgid "Download notebook file" +msgstr "Defter dosyasını indirin" + +msgid "repository" +msgstr "depo" + +msgid "Theme by the" +msgstr "Tarafından tema" + +msgid "Print to PDF" +msgstr "PDF olarak yazdır" + +msgid "Download this page" +msgstr "Bu sayfayı indirin" + +msgid "Copyright" +msgstr "Telif hakkı" + +msgid "Last updated on" +msgstr "Son güncelleme tarihi" + +msgid "Launch" +msgstr "Başlatmak" + +msgid "Open an issue" +msgstr "Bir sorunu açın" + +msgid "Fullscreen mode" +msgstr "Tam ekran modu" + +msgid "Sphinx Book Theme" +msgstr "Sfenks Kitap Teması" + +msgid "Contents" +msgstr "İçindekiler" + +msgid "Edit this page" +msgstr "Bu sayfayı düzenle" + +msgid "next page" +msgstr "sonraki Sayfa" + +msgid "Source repository" +msgstr "Kaynak kod deposu" + +msgid "By" +msgstr "Tarafından" + +msgid "By the" +msgstr "Tarafından" + +msgid "previous page" +msgstr "önceki sayfa" 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..6ecaec6 --- /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 "Download source file" +msgstr "Завантажити вихідний файл" + +msgid "suggest edit" +msgstr "запропонувати редагувати" + +msgid "Toggle navigation" +msgstr "Переключити навігацію" + +msgid "open issue" +msgstr "відкритий випуск" + +msgid "Download notebook file" +msgstr "Завантажте файл блокнота" + +msgid "repository" +msgstr "сховище" + +msgid "Theme by the" +msgstr "Тема від" + +msgid "Print to PDF" +msgstr "Друк у форматі PDF" + +msgid "Download this page" +msgstr "Завантажте цю сторінку" + +msgid "Copyright" +msgstr "Авторське право" + +msgid "Last updated on" +msgstr "Останнє оновлення:" + +msgid "Launch" +msgstr "Запуск" + +msgid "Open an issue" +msgstr "Відкрийте випуск" + +msgid "Fullscreen mode" +msgstr "Повноекранний режим" + +msgid "Sphinx Book Theme" +msgstr "Тема книги \"Сфінкс\"" + +msgid "Contents" +msgstr "Зміст" + +msgid "Edit this page" +msgstr "Редагувати цю сторінку" + +msgid "next page" +msgstr "Наступна сторінка" + +msgid "Source repository" +msgstr "Джерело сховища" + +msgid "By" +msgstr "Автор" + +msgid "By the" +msgstr "По" + +msgid "previous page" +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..818e03d --- /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 "Download source file" +msgstr "سورس فائل ڈاؤن لوڈ کریں" + +msgid "suggest edit" +msgstr "ترمیم کی تجویز کریں" + +msgid "Toggle navigation" +msgstr "نیویگیشن ٹوگل کریں" + +msgid "open issue" +msgstr "کھلا مسئلہ" + +msgid "Download notebook file" +msgstr "نوٹ بک فائل ڈاؤن لوڈ کریں" + +msgid "Theme by the" +msgstr "کے ذریعہ تھیم" + +msgid "Print to PDF" +msgstr "پی ڈی ایف پرنٹ کریں" + +msgid "Download this page" +msgstr "اس صفحے کو ڈاؤن لوڈ کریں" + +msgid "Copyright" +msgstr "کاپی رائٹ" + +msgid "Last updated on" +msgstr "آخری بار تازہ کاری ہوئی" + +msgid "Launch" +msgstr "لانچ کریں" + +msgid "Open an issue" +msgstr "ایک مسئلہ کھولیں" + +msgid "Sphinx Book Theme" +msgstr "سپنکس بک تھیم" + +msgid "Edit this page" +msgstr "اس صفحے میں ترمیم کریں" + +msgid "next page" +msgstr "اگلا صفحہ" + +msgid "Source repository" +msgstr "ماخذ ذخیرہ" + +msgid "By" +msgstr "بذریعہ" + +msgid "By the" +msgstr "کی طرف" + +msgid "previous page" +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..59db266 --- /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 "Download source file" +msgstr "Tải xuống tệp nguồn" + +msgid "suggest edit" +msgstr "đề nghị chỉnh sửa" + +msgid "Toggle navigation" +msgstr "Chuyển đổi điều hướng thành" + +msgid "open issue" +msgstr "vấn đề mở" + +msgid "Download notebook file" +msgstr "Tải xuống tệp sổ tay" + +msgid "repository" +msgstr "kho" + +msgid "Theme by the" +msgstr "Chủ đề của" + +msgid "Print to PDF" +msgstr "In sang PDF" + +msgid "Download this page" +msgstr "Tải xuống trang này" + +msgid "Copyright" +msgstr "Bản quyền" + +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 "Fullscreen mode" +msgstr "Chế độ toàn màn hình" + +msgid "Sphinx Book Theme" +msgstr "Chủ đề sách nhân sư" + +msgid "Contents" +msgstr "Nội dung" + +msgid "Edit this page" +msgstr "chỉnh sửa trang này" + +msgid "next page" +msgstr "Trang tiếp theo" + +msgid "Source repository" +msgstr "Kho nguồn" + +msgid "By" +msgstr "Bởi" + +msgid "By the" +msgstr "Bằng" + +msgid "previous page" +msgstr "trang trước" 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..e8d12dd --- /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 "Download source file" +msgstr "下载源文件" + +msgid "suggest edit" +msgstr "提出修改建议" + +msgid "Toggle navigation" +msgstr "显示或隐藏导航栏" + +msgid "open issue" +msgstr "创建议题" + +msgid "Download notebook file" +msgstr "下载笔记本文件" + +msgid "repository" +msgstr "仓库" + +msgid "Theme by the" +msgstr "主题作者:" + +msgid "Print to PDF" +msgstr "列印成 PDF" + +msgid "Download this page" +msgstr "下载此页面" + +msgid "Copyright" +msgstr "版权" + +msgid "Last updated on" +msgstr "上次更新时间:" + +msgid "Launch" +msgstr "启动" + +msgid "Open an issue" +msgstr "创建议题" + +msgid "Fullscreen mode" +msgstr "全屏模式" + +msgid "Sphinx Book Theme" +msgstr "Sphinx Book 主题" + +msgid "Contents" +msgstr "目录" + +msgid "Edit this page" +msgstr "编辑此页面" + +msgid "next page" +msgstr "下一页" + +msgid "Source repository" +msgstr "源码库" + +msgid "By" +msgstr "作者:" + +msgid "By the" +msgstr "作者:" + +msgid "previous page" +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..0ed32f7 --- /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 "Download source file" +msgstr "下載原始檔" + +msgid "suggest edit" +msgstr "提出修改建議" + +msgid "Toggle navigation" +msgstr "顯示或隱藏導覽列" + +msgid "open issue" +msgstr "公開的問題" + +msgid "Download notebook file" +msgstr "下載 Notebook 檔案" + +msgid "repository" +msgstr "儲存庫" + +msgid "Theme by the" +msgstr "佈景主題作者:" + +msgid "Print to PDF" +msgstr "列印成 PDF" + +msgid "Download this page" +msgstr "下載此頁面" + +msgid "Copyright" +msgstr "Copyright" + +msgid "Last updated on" +msgstr "最後更新時間:" + +msgid "Launch" +msgstr "啟動" + +msgid "Open an issue" +msgstr "開啟議題" + +msgid "Fullscreen mode" +msgstr "全螢幕模式" + +msgid "Sphinx Book Theme" +msgstr "Sphinx Book 佈景主題" + +msgid "Contents" +msgstr "目錄" + +msgid "Edit this page" +msgstr "編輯此頁面" + +msgid "next page" +msgstr "下一頁" + +msgid "Source repository" +msgstr "來源儲存庫" + +msgid "By" +msgstr "作者:" + +msgid "By the" +msgstr "作者:" + +msgid "previous page" +msgstr "上一頁" 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/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/program.css b/_static/program.css new file mode 100644 index 0000000..e8d3c0f --- /dev/null +++ b/_static/program.css @@ -0,0 +1,40 @@ + +/* color of top/bottom bars in nature theme */ +/* div.related { */ +/* background-color: #bc00bc; */ +/* } */ + + +/* div.body h1 { font-size: 150%; background-color: #ebb3c0; } */ +/* div.body h2 { font-size: 150%; background-color: #e2acb9; } */ +/* div.body h3 { font-size: 120%; background-color: #d3a1ac; } */ +/* div.body h4 { font-size: 110%; background-color: #d3a1ac; } */ +/* div.body h5 { font-size: 100%; background-color: #d3a1ac; } */ +/* div.body h6 { font-size: 100%; background-color: #d3a1ac; } */ + +/* div.body h1 { font-size: 150%; background-color: #BED4EB; } */ +/* div.body h2 { font-size: 150%; background-color: #C8D5E3; } */ +/* div.body h3 { font-size: 120%; background-color: #D8DEE3; } */ +/* div.body h4 { font-size: 110%; background-color: #D8DEE3; } */ +/* div.body h5 { font-size: 100%; background-color: #D8DEE3; } */ +/* div.body h6 { font-size: 100%; background-color: #D8DEE3; } */ + + + + +/* guzzle needs some table padding */ + +th, td { + padding-left: 3px; + padding-right: 3px; +} + + +.strike { + text-decoration: line-through; +} + + +#right-column { + max-width: 1100px; +} diff --git a/_static/pygments.css b/_static/pygments.css new file mode 100644 index 0000000..997797f --- /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: #7971292e } +html[data-theme="light"] .highlight { background: #fefefe; color: #545454 } +html[data-theme="light"] .highlight .c { color: #797129 } /* Comment */ +html[data-theme="light"] .highlight .err { color: #d91e18 } /* Error */ +html[data-theme="light"] .highlight .k { color: #7928a1 } /* Keyword */ +html[data-theme="light"] .highlight .l { color: #797129 } /* Literal */ +html[data-theme="light"] .highlight .n { color: #545454 } /* Name */ +html[data-theme="light"] .highlight .o { color: #008000 } /* Operator */ +html[data-theme="light"] .highlight .p { color: #545454 } /* Punctuation */ +html[data-theme="light"] .highlight .ch { color: #797129 } /* Comment.Hashbang */ +html[data-theme="light"] .highlight .cm { color: #797129 } /* Comment.Multiline */ +html[data-theme="light"] .highlight .cp { color: #797129 } /* Comment.Preproc */ +html[data-theme="light"] .highlight .cpf { color: #797129 } /* Comment.PreprocFile */ +html[data-theme="light"] .highlight .c1 { color: #797129 } /* Comment.Single */ +html[data-theme="light"] .highlight .cs { color: #797129 } /* Comment.Special */ +html[data-theme="light"] .highlight .gd { color: #007faa } /* Generic.Deleted */ +html[data-theme="light"] .highlight .ge { font-style: italic } /* Generic.Emph */ +html[data-theme="light"] .highlight .gh { color: #007faa } /* Generic.Heading */ +html[data-theme="light"] .highlight .gs { font-weight: bold } /* Generic.Strong */ +html[data-theme="light"] .highlight .gu { color: #007faa } /* Generic.Subheading */ +html[data-theme="light"] .highlight .kc { color: #7928a1 } /* Keyword.Constant */ +html[data-theme="light"] .highlight .kd { color: #7928a1 } /* Keyword.Declaration */ +html[data-theme="light"] .highlight .kn { color: #7928a1 } /* Keyword.Namespace */ +html[data-theme="light"] .highlight .kp { color: #7928a1 } /* Keyword.Pseudo */ +html[data-theme="light"] .highlight .kr { color: #7928a1 } /* Keyword.Reserved */ +html[data-theme="light"] .highlight .kt { color: #797129 } /* Keyword.Type */ +html[data-theme="light"] .highlight .ld { color: #797129 } /* Literal.Date */ +html[data-theme="light"] .highlight .m { color: #797129 } /* Literal.Number */ +html[data-theme="light"] .highlight .s { color: #008000 } /* Literal.String */ +html[data-theme="light"] .highlight .na { color: #797129 } /* Name.Attribute */ +html[data-theme="light"] .highlight .nb { color: #797129 } /* Name.Builtin */ +html[data-theme="light"] .highlight .nc { color: #007faa } /* Name.Class */ +html[data-theme="light"] .highlight .no { color: #007faa } /* Name.Constant */ +html[data-theme="light"] .highlight .nd { color: #797129 } /* Name.Decorator */ +html[data-theme="light"] .highlight .ni { color: #008000 } /* Name.Entity */ +html[data-theme="light"] .highlight .ne { color: #7928a1 } /* Name.Exception */ +html[data-theme="light"] .highlight .nf { color: #007faa } /* Name.Function */ +html[data-theme="light"] .highlight .nl { color: #797129 } /* Name.Label */ +html[data-theme="light"] .highlight .nn { color: #545454 } /* Name.Namespace */ +html[data-theme="light"] .highlight .nx { color: #545454 } /* Name.Other */ +html[data-theme="light"] .highlight .py { color: #007faa } /* Name.Property */ +html[data-theme="light"] .highlight .nt { color: #007faa } /* Name.Tag */ +html[data-theme="light"] .highlight .nv { color: #d91e18 } /* Name.Variable */ +html[data-theme="light"] .highlight .ow { color: #7928a1 } /* Operator.Word */ +html[data-theme="light"] .highlight .pm { color: #545454 } /* Punctuation.Marker */ +html[data-theme="light"] .highlight .w { color: #545454 } /* Text.Whitespace */ +html[data-theme="light"] .highlight .mb { color: #797129 } /* Literal.Number.Bin */ +html[data-theme="light"] .highlight .mf { color: #797129 } /* Literal.Number.Float */ +html[data-theme="light"] .highlight .mh { color: #797129 } /* Literal.Number.Hex */ +html[data-theme="light"] .highlight .mi { color: #797129 } /* Literal.Number.Integer */ +html[data-theme="light"] .highlight .mo { color: #797129 } /* Literal.Number.Oct */ +html[data-theme="light"] .highlight .sa { color: #008000 } /* Literal.String.Affix */ +html[data-theme="light"] .highlight .sb { color: #008000 } /* Literal.String.Backtick */ +html[data-theme="light"] .highlight .sc { color: #008000 } /* Literal.String.Char */ +html[data-theme="light"] .highlight .dl { color: #008000 } /* Literal.String.Delimiter */ +html[data-theme="light"] .highlight .sd { color: #008000 } /* Literal.String.Doc */ +html[data-theme="light"] .highlight .s2 { color: #008000 } /* Literal.String.Double */ +html[data-theme="light"] .highlight .se { color: #008000 } /* Literal.String.Escape */ +html[data-theme="light"] .highlight .sh { color: #008000 } /* Literal.String.Heredoc */ +html[data-theme="light"] .highlight .si { color: #008000 } /* Literal.String.Interpol */ +html[data-theme="light"] .highlight .sx { color: #008000 } /* Literal.String.Other */ +html[data-theme="light"] .highlight .sr { color: #d91e18 } /* Literal.String.Regex */ +html[data-theme="light"] .highlight .s1 { color: #008000 } /* Literal.String.Single */ +html[data-theme="light"] .highlight .ss { color: #007faa } /* Literal.String.Symbol */ +html[data-theme="light"] .highlight .bp { color: #797129 } /* Name.Builtin.Pseudo */ +html[data-theme="light"] .highlight .fm { color: #007faa } /* Name.Function.Magic */ +html[data-theme="light"] .highlight .vc { color: #d91e18 } /* Name.Variable.Class */ +html[data-theme="light"] .highlight .vg { color: #d91e18 } /* Name.Variable.Global */ +html[data-theme="light"] .highlight .vi { color: #d91e18 } /* Name.Variable.Instance */ +html[data-theme="light"] .highlight .vm { color: #797129 } /* Name.Variable.Magic */ +html[data-theme="light"] .highlight .il { color: #797129 } /* 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/rightclick.png b/_static/rightclick.png new file mode 100644 index 0000000..9c4de39 Binary files /dev/null and b/_static/rightclick.png differ 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..4e209b0 --- /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:()=>ri,Collapse:()=>yi,Dropdown:()=>Vi,Modal:()=>xn,Offcanvas:()=>Vn,Popover:()=>fs,ScrollSpy:()=>Ts,Tab:()=>Ks,Toast:()=>lo,Tooltip:()=>hs});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.2"}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?Mt(i.trim()):null}return e},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="next",We="prev",ze="left",Re="right",qe=`slide${Fe}`,Ve=`slid${Fe}`,Ye=`keydown${Fe}`,Ke=`mouseenter${Fe}`,Qe=`mouseleave${Fe}`,Xe=`dragstart${Fe}`,Ue=`load${Fe}${He}`,Ge=`click${Fe}${He}`,Je="carousel",Ze="active",ti=".active",ei=".carousel-item",ii=ti+ei,ni={ArrowLeft:Re,ArrowRight:ze},si={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},oi={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ri 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===Je&&this.cycle()}static get Default(){return si}static get DefaultType(){return oi}static get NAME(){return"carousel"}next(){this._slide(Be)}nextWhenVisible(){!document.hidden&&Bt(this._element)&&this.next()}prev(){this._slide(We)}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,Ve,(()=>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,Ve,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?Be:We;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,Ye,(t=>this._keydown(t))),"hover"===this._config.pause&&(fe.on(this._element,Ke,(()=>this.pause())),fe.on(this._element,Qe,(()=>this._maybeEnableCycle()))),this._config.touch&&je.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of we.find(".carousel-item img",this._element))fe.on(t,Xe,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(ze)),rightCallback:()=>this._slide(this._directionToOrder(Re)),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=ni[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(ti,this._indicatorsElement);e.classList.remove(Ze),e.removeAttribute("aria-current");const i=we.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(Ze),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===Be,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(qe).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(Ze),i.classList.remove(Ze,c,l),this._isSliding=!1,r(Ve)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return we.findOne(ii,this._element)}_getItems(){return we.find(ei,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Kt()?t===ze?We:Be:t===ze?Be:We}_orderToDirection(t){return Kt()?t===We?ze:Re:t===We?Re:ze}static jQueryInterface(t){return this.each((function(){const e=ri.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,Ge,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=we.getElementFromSelector(this);if(!e||!e.classList.contains(Je))return;t.preventDefault();const i=ri.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,Ue,(()=>{const t=we.find('[data-bs-ride="carousel"]');for(const e of t)ri.getOrCreateInstance(e)})),Qt(ri);const ai=".bs.collapse",li=`show${ai}`,ci=`shown${ai}`,hi=`hide${ai}`,di=`hidden${ai}`,ui=`click${ai}.data-api`,fi="show",pi="collapse",mi="collapsing",gi=`:scope .${pi} .${pi}`,_i='[data-bs-toggle="collapse"]',bi={parent:null,toggle:!0},vi={parent:"(null|element)",toggle:"boolean"};class yi extends ve{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=we.find(_i);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 bi}static get DefaultType(){return vi}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=>yi.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(fe.trigger(this._element,li).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(pi),this._element.classList.add(mi),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(mi),this._element.classList.add(pi,fi),this._element.style[e]="",fe.trigger(this._element,ci)}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(fe.trigger(this._element,hi).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,qt(this._element),this._element.classList.add(mi),this._element.classList.remove(pi,fi);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(mi),this._element.classList.add(pi),fe.trigger(this._element,di)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(fi)}_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(_i);for(const e of t){const t=we.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=we.find(gi,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=yi.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}fe.on(document,ui,_i,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of we.getMultipleElementsFromSelector(this))yi.getOrCreateInstance(t,{toggle:!1}).toggle()})),Qt(yi);const wi="dropdown",Ei=".bs.dropdown",Ai=".data-api",Ti="ArrowUp",Ci="ArrowDown",Oi=`hide${Ei}`,xi=`hidden${Ei}`,ki=`show${Ei}`,Li=`shown${Ei}`,Si=`click${Ei}${Ai}`,Di=`keydown${Ei}${Ai}`,$i=`keyup${Ei}${Ai}`,Ii="show",Ni='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Pi=`${Ni}.${Ii}`,Mi=".dropdown-menu",ji=Kt()?"top-end":"top-start",Fi=Kt()?"top-start":"top-end",Hi=Kt()?"bottom-end":"bottom-start",Bi=Kt()?"bottom-start":"bottom-end",Wi=Kt()?"left-start":"right-start",zi=Kt()?"right-start":"left-start",Ri={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},qi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Vi extends ve{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=we.next(this._element,Mi)[0]||we.prev(this._element,Mi)[0]||we.findOne(Mi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ri}static get DefaultType(){return qi}static get NAME(){return wi}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,ki,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(Ii),this._element.classList.add(Ii),fe.trigger(this._element,Li,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,Oi,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(Ii),this._element.classList.remove(Ii),this._element.setAttribute("aria-expanded","false"),_e.removeDataAttribute(this._menu,"popper"),fe.trigger(this._element,xi,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Ft(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${wi.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(Ii)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Wi;if(t.classList.contains("dropstart"))return zi;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?Fi:ji:e?Bi:Hi}_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===Ci,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Vi.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(Pi);for(const i of e){const e=Vi.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=[Ti,Ci].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const s=this.matches(Ni)?this:we.prev(this,Ni)[0]||we.next(this,Ni)[0]||we.findOne(Ni,t.delegateTarget.parentNode),o=Vi.getOrCreateInstance(s);if(n)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}fe.on(document,Di,Ni,Vi.dataApiKeydownHandler),fe.on(document,Di,Mi,Vi.dataApiKeydownHandler),fe.on(document,Si,Vi.clearMenus),fe.on(document,$i,Vi.clearMenus),fe.on(document,Si,Ni,(function(t){t.preventDefault(),Vi.getOrCreateInstance(this).toggle()})),Qt(Vi);const Yi="backdrop",Ki="show",Qi=`mousedown.bs.${Yi}`,Xi={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ui={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Gi extends be{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Xi}static get DefaultType(){return Ui}static get NAME(){return Yi}show(t){if(!this._config.isVisible)return void Xt(t);this._append();const e=this._getElement();this._config.isAnimated&&qt(e),e.classList.add(Ki),this._emulateAnimation((()=>{Xt(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Ki),this._emulateAnimation((()=>{this.dispose(),Xt(t)}))):Xt(t)}dispose(){this._isAppended&&(fe.off(this._element,Qi),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,Qi,(()=>{Xt(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){Ut(t,this._getElement(),this._config.isAnimated)}}const Ji=".bs.focustrap",Zi=`focusin${Ji}`,tn=`keydown.tab${Ji}`,en="backward",nn={autofocus:!0,trapElement:null},sn={autofocus:"boolean",trapElement:"element"};class on extends be{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return nn}static get DefaultType(){return sn}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),fe.off(document,Ji),fe.on(document,Zi,(t=>this._handleFocusin(t))),fe.on(document,tn,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,fe.off(document,Ji))}_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===en?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?en:"forward")}}const rn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",an=".sticky-top",ln="padding-right",cn="margin-right";class hn{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,ln,(e=>e+t)),this._setElementAttributes(rn,ln,(e=>e+t)),this._setElementAttributes(an,cn,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ln),this._resetElementAttributes(rn,ln),this._resetElementAttributes(an,cn)}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 dn=".bs.modal",un=`hide${dn}`,fn=`hidePrevented${dn}`,pn=`hidden${dn}`,mn=`show${dn}`,gn=`shown${dn}`,_n=`resize${dn}`,bn=`click.dismiss${dn}`,vn=`mousedown.dismiss${dn}`,yn=`keydown.dismiss${dn}`,wn=`click${dn}.data-api`,En="modal-open",An="show",Tn="modal-static",Cn={backdrop:!0,focus:!0,keyboard:!0},On={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class xn 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 hn,this._addEventListeners()}static get Default(){return Cn}static get DefaultType(){return On}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,mn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(En),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(fe.trigger(this._element,un).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(An),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){fe.off(window,dn),fe.off(this._dialog,dn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Gi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new on({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(An),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,fe.trigger(this._element,gn,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){fe.on(this._element,yn,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),fe.on(window,_n,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),fe.on(this._element,vn,(t=>{fe.one(this._element,bn,(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(En),this._resetAdjustments(),this._scrollBar.reset(),fe.trigger(this._element,pn)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(fe.trigger(this._element,fn).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(Tn)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Tn),this._queueCallback((()=>{this._element.classList.remove(Tn),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=xn.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,wn,'[data-bs-toggle="modal"]',(function(t){const e=we.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),fe.one(e,mn,(t=>{t.defaultPrevented||fe.one(e,pn,(()=>{Bt(this)&&this.focus()}))}));const i=we.findOne(".modal.show");i&&xn.getInstance(i).hide(),xn.getOrCreateInstance(e).toggle(this)})),Ee(xn),Qt(xn);const kn=".bs.offcanvas",Ln=".data-api",Sn=`load${kn}${Ln}`,Dn="show",$n="showing",In="hiding",Nn=".offcanvas.show",Pn=`show${kn}`,Mn=`shown${kn}`,jn=`hide${kn}`,Fn=`hidePrevented${kn}`,Hn=`hidden${kn}`,Bn=`resize${kn}`,Wn=`click${kn}${Ln}`,zn=`keydown.dismiss${kn}`,Rn={backdrop:!0,keyboard:!0,scroll:!1},qn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Vn 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 Rn}static get DefaultType(){return qn}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||fe.trigger(this._element,Pn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new hn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add($n),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Dn),this._element.classList.remove($n),fe.trigger(this._element,Mn,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(fe.trigger(this._element,jn).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(In),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Dn,In),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new hn).reset(),fe.trigger(this._element,Hn)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Gi({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():fe.trigger(this._element,Fn)}:null})}_initializeFocusTrap(){return new on({trapElement:this._element})}_addEventListeners(){fe.on(this._element,zn,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():fe.trigger(this._element,Fn))}))}static jQueryInterface(t){return this.each((function(){const e=Vn.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,Wn,'[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,Hn,(()=>{Bt(this)&&this.focus()}));const i=we.findOne(Nn);i&&i!==e&&Vn.getInstance(i).hide(),Vn.getOrCreateInstance(e).toggle(this)})),fe.on(window,Sn,(()=>{for(const t of we.find(Nn))Vn.getOrCreateInstance(t).show()})),fe.on(window,Bn,(()=>{for(const t of we.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Vn.getOrCreateInstance(t).hide()})),Ee(Vn),Qt(Vn);const Yn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],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:[]},Kn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Qn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Xn=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Kn.has(i)||Boolean(Qn.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},Un={allowList:Yn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Gn={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Jn={entry:"(string|element|function|null)",selector:"(string|element)"};class Zn extends be{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Un}static get DefaultType(){return Gn}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},Jn)}_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)Xn(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 ts=new Set(["sanitize","allowList","sanitizeFn"]),es="fade",is="show",ns=".modal",ss="hide.bs.modal",os="hover",rs="focus",as={AUTO:"auto",TOP:"top",RIGHT:Kt()?"left":"right",BOTTOM:"bottom",LEFT:Kt()?"right":"left"},ls={allowList:Yn,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"},cs={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 hs 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 ls}static get DefaultType(){return cs}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(ns),ss,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(is),"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(is),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))fe.off(t,"mouseover",Rt);this._activeTrigger.click=!1,this._activeTrigger[rs]=!1,this._activeTrigger[os]=!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(es,is),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(es),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Zn({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":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(es)}_isShown(){return this.tip&&this.tip.classList.contains(is)}_createPopper(t){const e=Xt(this._config.placement,[this,t,this._element]),i=as[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===os?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===os?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?rs:os]=!0,e._enter()})),fe.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?rs:os]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},fe.on(this._element.closest(ns),ss,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))ts.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=hs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Qt(hs);const ds={...hs.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},us={...hs.DefaultType,content:"(null|string|element|function)"};class fs extends hs{static get Default(){return ds}static get DefaultType(){return us}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}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=".bs.scrollspy",ms=`activate${ps}`,gs=`click${ps}`,_s=`load${ps}.data-api`,bs="active",vs="[href]",ys=".nav-link",ws=`${ys}, .nav-item > ${ys}, .list-group-item`,Es={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},As={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ts 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 Es}static get DefaultType(){return As}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,gs),fe.on(this._config.target,gs,vs,(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(vs,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(bs),this._activateParents(t),fe.trigger(this._element,ms,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))we.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(bs);else for(const e of we.parents(t,".nav, .list-group"))for(const t of we.prev(e,ws))t.classList.add(bs)}_clearActiveClass(t){t.classList.remove(bs);const e=we.find(`${vs}.${bs}`,t);for(const t of e)t.classList.remove(bs)}static jQueryInterface(t){return this.each((function(){const e=Ts.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,_s,(()=>{for(const t of we.find('[data-bs-spy="scroll"]'))Ts.getOrCreateInstance(t)})),Qt(Ts);const Cs=".bs.tab",Os=`hide${Cs}`,xs=`hidden${Cs}`,ks=`show${Cs}`,Ls=`shown${Cs}`,Ss=`click${Cs}`,Ds=`keydown${Cs}`,$s=`load${Cs}`,Is="ArrowLeft",Ns="ArrowRight",Ps="ArrowUp",Ms="ArrowDown",js="Home",Fs="End",Hs="active",Bs="fade",Ws="show",zs=".dropdown-toggle",Rs=`:not(${zs})`,qs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Vs=`.nav-link${Rs}, .list-group-item${Rs}, [role="tab"]${Rs}, ${qs}`,Ys=`.${Hs}[data-bs-toggle="tab"], .${Hs}[data-bs-toggle="pill"], .${Hs}[data-bs-toggle="list"]`;class Ks 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,Ds,(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,Os,{relatedTarget:t}):null;fe.trigger(t,ks,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(Hs),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,Ls,{relatedTarget:e})):t.classList.add(Ws)}),t,t.classList.contains(Bs)))}_deactivate(t,e){t&&(t.classList.remove(Hs),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,xs,{relatedTarget:e})):t.classList.remove(Ws)}),t,t.classList.contains(Bs)))}_keydown(t){if(![Is,Ns,Ps,Ms,js,Fs].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!Wt(t)));let i;if([js,Fs].includes(t.key))i=e[t.key===js?0:e.length-1];else{const n=[Ns,Ms].includes(t.key);i=Gt(e,t.target,n,!0)}i&&(i.focus({preventScroll:!0}),Ks.getOrCreateInstance(i).show())}_getChildren(){return we.find(Vs,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(zs,Hs),n(".dropdown-menu",Ws),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(Hs)}_getInnerElement(t){return t.matches(Vs)?t:we.findOne(Vs,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=Ks.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,Ss,qs,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),Wt(this)||Ks.getOrCreateInstance(this).show()})),fe.on(window,$s,(()=>{for(const t of we.find(Ys))Ks.getOrCreateInstance(t)})),Qt(Ks);const Qs=".bs.toast",Xs=`mouseover${Qs}`,Us=`mouseout${Qs}`,Gs=`focusin${Qs}`,Js=`focusout${Qs}`,Zs=`hide${Qs}`,to=`hidden${Qs}`,eo=`show${Qs}`,io=`shown${Qs}`,no="hide",so="show",oo="showing",ro={animation:"boolean",autohide:"boolean",delay:"number"},ao={animation:!0,autohide:!0,delay:5e3};class lo extends ve{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ao}static get DefaultType(){return ro}static get NAME(){return"toast"}show(){fe.trigger(this._element,eo).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(no),qt(this._element),this._element.classList.add(so,oo),this._queueCallback((()=>{this._element.classList.remove(oo),fe.trigger(this._element,io),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(fe.trigger(this._element,Zs).defaultPrevented||(this._element.classList.add(oo),this._queueCallback((()=>{this._element.classList.add(no),this._element.classList.remove(oo,so),fe.trigger(this._element,to)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(so),super.dispose()}isShown(){return this._element.classList.contains(so)}_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,Xs,(t=>this._onInteraction(t,!0))),fe.on(this._element,Us,(t=>this._onInteraction(t,!1))),fe.on(this._element,Gs,(t=>this._onInteraction(t,!0))),fe.on(this._element,Js,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=lo.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}function co(t){"loading"!=document.readyState?t():document.addEventListener("DOMContentLoaded",t)}Ee(lo),Qt(lo),co((function(){[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new hs(t,{delay:{show:500,hide:100}})}))})),co((function(){document.getElementById("pst-back-to-top").addEventListener("click",(function(){document.body.scrollTop=0,document.documentElement.scrollTop=0}))})),co((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..10f979d --- /dev/null +++ b/_static/scripts/bootstrap.js.LICENSE.txt @@ -0,0 +1,5 @@ +/*! + * Bootstrap v5.3.2 (https://getbootstrap.com/) + * Copyright 2011-2023 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..64e212b --- /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,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFV,EAAyBC,IACH,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,GAAO,01BCLvD,IAAI,EAAM,MACNC,EAAS,SACTC,EAAQ,QACRC,EAAO,OACPC,EAAO,OACPC,EAAiB,CAAC,EAAKJ,EAAQC,EAAOC,GACtCG,EAAQ,QACRC,EAAM,MACNC,EAAkB,kBAClBC,EAAW,WACXC,EAAS,SACTC,EAAY,YACZC,EAAmCP,EAAeQ,QAAO,SAAUC,EAAKC,GACjF,OAAOD,EAAIE,OAAO,CAACD,EAAY,IAAMT,EAAOS,EAAY,IAAMR,GAChE,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WAC5BkV,KAAKuqB,UAAYvqB,KAAKwqB,SAAWxqB,KAAKwqB,QAAUH,EAAOzsC,OACzDwsC,EAAIrpC,MAAM6wB,QAAU,QAEpBwY,EAAIrpC,MAAM6wB,QAAU,OAEtB5R,KAAKuqB,UAAYvqB,KAAKwqB,OACxB,GACF,IAUA5qC,OAAO6qC,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.2 (https://getbootstrap.com/)\n * Copyright 2011-2023 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};\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.2';\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 !== '#' ? parseSelector(hrefAttribute.trim()) : null;\n }\n return selector;\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};\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};\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 div: [],\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