Evan Lesmez commited on
Commit
fe37b5b
1 Parent(s): 9112f37

Cleanup notebooks to be nbdev_test friendly

Browse files

Use `#| eval: false` to avoid lengthy/ blocking execution times.
Update index for README.
Mod the scripts/nbdev_prepare_modded.sh to patch README with hface raw
yaml block for deployments.

This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +6 -6
  2. _proc/00_engineer_prompt.ipynb +2 -11
  3. _proc/01_app.ipynb +13 -73
  4. _proc/02_lchain_tool.ipynb +11 -3
  5. _proc/03_ingredient_vision.ipynb +190 -48
  6. _proc/04_edamam_api.ipynb +2 -2
  7. _proc/_docs/03_ingredient_vision_files/figure-html/cell-10-output-11.png +0 -0
  8. _proc/_docs/03_ingredient_vision_files/figure-html/cell-10-output-13.png +0 -0
  9. _proc/_docs/03_ingredient_vision_files/figure-html/cell-10-output-3.png +0 -0
  10. _proc/_docs/03_ingredient_vision_files/figure-html/cell-10-output-5.png +0 -0
  11. _proc/_docs/03_ingredient_vision_files/figure-html/cell-10-output-7.png +0 -0
  12. _proc/_docs/03_ingredient_vision_files/figure-html/cell-10-output-9.png +0 -0
  13. _proc/_docs/03_ingredient_vision_files/figure-html/cell-11-output-2.png +0 -0
  14. _proc/_docs/03_ingredient_vision_files/figure-html/cell-11-output-3.png +0 -0
  15. _proc/_docs/03_ingredient_vision_files/figure-html/cell-11-output-4.png +0 -0
  16. _proc/_docs/03_ingredient_vision_files/figure-html/cell-11-output-5.png +0 -0
  17. _proc/_docs/03_ingredient_vision_files/figure-html/cell-11-output-6.png +0 -0
  18. _proc/_docs/03_ingredient_vision_files/figure-html/cell-11-output-7.png +0 -0
  19. _proc/_docs/03_ingredient_vision_files/figure-html/cell-8-output-1.png +0 -0
  20. _proc/_docs/03_ingredient_vision_files/figure-html/cell-8-output-2.png +0 -0
  21. _proc/_docs/03_ingredient_vision_files/figure-html/cell-8-output-3.png +0 -0
  22. _proc/_docs/03_ingredient_vision_files/figure-html/cell-8-output-4.png +0 -0
  23. _proc/_docs/03_ingredient_vision_files/figure-html/cell-8-output-5.png +0 -0
  24. _proc/_docs/03_ingredient_vision_files/figure-html/cell-8-output-6.png +0 -0
  25. _proc/_docs/app.html +538 -0
  26. _proc/_docs/edamam_api.html +432 -0
  27. _proc/_docs/engineer_prompt.html +589 -0
  28. _proc/_docs/index.html +541 -8
  29. _proc/_docs/ingredient_vision.html +808 -0
  30. _proc/_docs/lchain_tool.html +937 -0
  31. _proc/_docs/search.json +86 -0
  32. _proc/_docs/site_libs/bootstrap/bootstrap-icons.css +2018 -0
  33. _proc/_docs/site_libs/bootstrap/bootstrap-icons.woff +0 -0
  34. _proc/_docs/site_libs/bootstrap/bootstrap.min.css +0 -0
  35. _proc/_docs/site_libs/bootstrap/bootstrap.min.js +7 -0
  36. _proc/_docs/site_libs/clipboard/clipboard.min.js +7 -0
  37. _proc/_docs/site_libs/quarto-html/anchor.min.js +9 -0
  38. _proc/_docs/site_libs/quarto-html/popper.min.js +6 -0
  39. _proc/_docs/site_libs/quarto-html/quarto-syntax-highlighting.css +203 -0
  40. _proc/_docs/site_libs/quarto-html/quarto.js +902 -0
  41. _proc/_docs/site_libs/quarto-html/tippy.css +1 -0
  42. _proc/_docs/site_libs/quarto-html/tippy.umd.min.js +2 -0
  43. _proc/_docs/site_libs/quarto-nav/headroom.min.js +7 -0
  44. _proc/_docs/site_libs/quarto-nav/quarto-nav.js +277 -0
  45. _proc/_docs/site_libs/quarto-search/autocomplete.umd.js +3 -0
  46. _proc/_docs/site_libs/quarto-search/fuse.min.js +9 -0
  47. _proc/_docs/site_libs/quarto-search/quarto-search.js +1140 -0
  48. _proc/_docs/sitemap.xml +24 -0
  49. _proc/_docs/styles.css +37 -0
  50. _proc/constants +0 -3
README.md CHANGED
@@ -13,13 +13,10 @@ license: unknown
13
 
14
  <!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
15
 
16
- This file will become your README and also the index of your
17
- documentation.
18
-
19
  ## Install
20
 
21
  ``` sh
22
- pip install lv_recipe_chatbot
23
  ```
24
 
25
  ## How to use
@@ -27,15 +24,18 @@ pip install lv_recipe_chatbot
27
  ``` python
28
  from dotenv import load_dotenv
29
 
30
- load_dotenv()
31
 
32
- app.launch_demo()
 
33
  ```
34
 
35
  Running on local URL: http://127.0.0.1:7860
36
 
37
  To create a public link, set `share=True` in `launch()`.
38
 
 
 
39
  or
40
 
41
  ``` sh
 
13
 
14
  <!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
15
 
 
 
 
16
  ## Install
17
 
18
  ``` sh
19
+ pip install -e '.[dev]'
20
  ```
21
 
22
  ## How to use
 
24
  ``` python
25
  from dotenv import load_dotenv
26
 
27
+ load_dotenv() # or load environment vars with different method
28
 
29
+ demo = app.create_demo(app.ConversationBot())
30
+ demo.launch()
31
  ```
32
 
33
  Running on local URL: http://127.0.0.1:7860
34
 
35
  To create a public link, set `share=True` in `launch()`.
36
 
37
+ <div><iframe src="http://127.0.0.1:7860/" width="100%" height="500" allow="autoplay; camera; microphone; clipboard-read; clipboard-write;" frameborder="0" allowfullscreen></iframe></div>
38
+
39
  or
40
 
41
  ``` sh
_proc/00_engineer_prompt.ipynb CHANGED
@@ -57,6 +57,7 @@
57
  }
58
  ],
59
  "source": [
 
60
  "load_dotenv()"
61
  ]
62
  },
@@ -190,6 +191,7 @@
190
  }
191
  ],
192
  "source": [
 
193
  "chat = PromptLayerChatOpenAI(temperature=1, pl_tags=[\"langchain\"], return_pl_id=True)\n",
194
  "memory = ConversationBufferMemory(return_messages=True)\n",
195
  "chat_msgs = init_prompt.format_prompt(\n",
@@ -215,17 +217,6 @@
215
  "result = conversation.predict(input=\"Recommend a different recipe please.\")\n",
216
  "print(result)"
217
  ]
218
- },
219
- {
220
- "cell_type": "code",
221
- "execution_count": null,
222
- "metadata": {
223
- "language": "python"
224
- },
225
- "outputs": [],
226
- "source": [
227
- "test_temp = HumanMessagePromptTemplate.from_template(\"Ingredients: {ingredients}\")"
228
- ]
229
  }
230
  ],
231
  "metadata": {
 
57
  }
58
  ],
59
  "source": [
60
+ "#| eval: false\n",
61
  "load_dotenv()"
62
  ]
63
  },
 
191
  }
192
  ],
193
  "source": [
194
+ "#| eval: false\n",
195
  "chat = PromptLayerChatOpenAI(temperature=1, pl_tags=[\"langchain\"], return_pl_id=True)\n",
196
  "memory = ConversationBufferMemory(return_messages=True)\n",
197
  "chat_msgs = init_prompt.format_prompt(\n",
 
217
  "result = conversation.predict(input=\"Recommend a different recipe please.\")\n",
218
  "print(result)"
219
  ]
 
 
 
 
 
 
 
 
 
 
 
220
  }
221
  ],
222
  "metadata": {
_proc/01_app.ipynb CHANGED
@@ -30,7 +30,7 @@
30
  "text/markdown": [
31
  "---\n",
32
  "\n",
33
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L32){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
34
  "\n",
35
  "### ConversationBot\n",
36
  "\n",
@@ -41,7 +41,7 @@
41
  "text/plain": [
42
  "---\n",
43
  "\n",
44
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L32){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
45
  "\n",
46
  "### ConversationBot\n",
47
  "\n",
@@ -71,12 +71,7 @@
71
  {
72
  "data": {
73
  "text/plain": [
74
- "['veggie-fridge.jpeg',\n",
75
- " 'veg-groceries-table.jpg',\n",
76
- " 'fridge-splendid.jpg',\n",
77
- " 'neat-veg-groceries.jpg',\n",
78
- " 'veg-groceries-table.jpeg',\n",
79
- " 'Fruits-and-vegetables-one-a-table.jpg']"
80
  ]
81
  },
82
  "execution_count": null,
@@ -85,7 +80,8 @@
85
  }
86
  ],
87
  "source": [
88
- "os.listdir(SAMPLE_IMG_DIR)"
 
89
  ]
90
  },
91
  {
@@ -118,6 +114,7 @@
118
  }
119
  ],
120
  "source": [
 
121
  "load_dotenv()"
122
  ]
123
  },
@@ -137,7 +134,9 @@
137
  ]
138
  }
139
  ],
140
- "source": []
 
 
141
  },
142
  {
143
  "cell_type": "code",
@@ -165,61 +164,10 @@
165
  ]
166
  }
167
  ],
168
- "source": []
169
- },
170
- {
171
- "cell_type": "code",
172
- "execution_count": null,
173
- "metadata": {
174
- "language": "python"
175
- },
176
- "outputs": [
177
- {
178
- "data": {
179
- "text/plain": [
180
- "HumanMessagePromptTemplate(prompt=PromptTemplate(input_variables=['ingredients'], output_parser=None, partial_variables={}, template='I uploaded an image that may contain vegan ingredients.\\nThe description of the image is: `a refrigerator with food inside`.\\nThe extracted ingredients are:\\n```\\ncabbage lettuce onion\\napples\\nrice\\nplant-based milk\\n```\\nI may type some more ingredients below.\\nIngredients: {ingredients}', template_format='f-string', validate_template=True), additional_kwargs={})"
181
- ]
182
- },
183
- "execution_count": null,
184
- "metadata": {},
185
- "output_type": "execute_result"
186
- }
187
- ],
188
- "source": [
189
- "bot.init_prompt.messages[2]"
190
- ]
191
- },
192
- {
193
- "cell_type": "code",
194
- "execution_count": null,
195
- "metadata": {
196
- "language": "python"
197
- },
198
- "outputs": [
199
- {
200
- "data": {
201
- "text/plain": [
202
- "HumanMessagePromptTemplate(prompt=PromptTemplate(input_variables=['ingredients'], output_parser=None, partial_variables={}, template='Ingredients: {ingredients}', template_format='f-string', validate_template=True), additional_kwargs={})"
203
- ]
204
- },
205
- "execution_count": null,
206
- "metadata": {},
207
- "output_type": "execute_result"
208
- }
209
- ],
210
  "source": [
211
- "INIT_PROMPT.messages[2]"
212
  ]
213
  },
214
- {
215
- "cell_type": "code",
216
- "execution_count": null,
217
- "metadata": {
218
- "language": "python"
219
- },
220
- "outputs": [],
221
- "source": []
222
- },
223
  {
224
  "cell_type": "code",
225
  "execution_count": 2,
@@ -230,7 +178,7 @@
230
  "text/markdown": [
231
  "---\n",
232
  "\n",
233
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L116){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
234
  "\n",
235
  "### create_demo\n",
236
  "\n",
@@ -239,7 +187,7 @@
239
  "text/plain": [
240
  "---\n",
241
  "\n",
242
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L116){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
243
  "\n",
244
  "### create_demo\n",
245
  "\n",
@@ -296,20 +244,12 @@
296
  }
297
  ],
298
  "source": [
 
299
  "if \"demo\" in globals():\n",
300
  " demo.close()\n",
301
  "demo = create_demo(bot)\n",
302
  "demo.launch()"
303
  ]
304
- },
305
- {
306
- "cell_type": "code",
307
- "execution_count": null,
308
- "metadata": {
309
- "language": "python"
310
- },
311
- "outputs": [],
312
- "source": []
313
  }
314
  ],
315
  "metadata": {
 
30
  "text/markdown": [
31
  "---\n",
32
  "\n",
33
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L32){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
34
  "\n",
35
  "### ConversationBot\n",
36
  "\n",
 
41
  "text/plain": [
42
  "---\n",
43
  "\n",
44
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L32){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
45
  "\n",
46
  "### ConversationBot\n",
47
  "\n",
 
71
  {
72
  "data": {
73
  "text/plain": [
74
+ "Path('/home/evylz/AnimalEquality/lv-recipe-chatbot/assets/images/vegan_ingredients')"
 
 
 
 
 
75
  ]
76
  },
77
  "execution_count": null,
 
80
  }
81
  ],
82
  "source": [
83
+ "os.listdir(SAMPLE_IMG_DIR)\n",
84
+ "SAMPLE_IMG_DIR"
85
  ]
86
  },
87
  {
 
114
  }
115
  ],
116
  "source": [
117
+ "#: eval: false\n",
118
  "load_dotenv()"
119
  ]
120
  },
 
134
  ]
135
  }
136
  ],
137
+ "source": [
138
+ "#| eval: false"
139
+ ]
140
  },
141
  {
142
  "cell_type": "code",
 
164
  ]
165
  }
166
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  "source": [
168
+ "#| eval: false"
169
  ]
170
  },
 
 
 
 
 
 
 
 
 
171
  {
172
  "cell_type": "code",
173
  "execution_count": 2,
 
178
  "text/markdown": [
179
  "---\n",
180
  "\n",
181
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L116){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
182
  "\n",
183
  "### create_demo\n",
184
  "\n",
 
187
  "text/plain": [
188
  "---\n",
189
  "\n",
190
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L116){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
191
  "\n",
192
  "### create_demo\n",
193
  "\n",
 
244
  }
245
  ],
246
  "source": [
247
+ "#| eval: false\n",
248
  "if \"demo\" in globals():\n",
249
  " demo.close()\n",
250
  "demo = create_demo(bot)\n",
251
  "demo.launch()"
252
  ]
 
 
 
 
 
 
 
 
 
253
  }
254
  ],
255
  "metadata": {
_proc/02_lchain_tool.ipynb CHANGED
@@ -156,6 +156,7 @@
156
  }
157
  ],
158
  "source": [
 
159
  "agent(\"What is the 3% of of 300 * 30?\")"
160
  ]
161
  },
@@ -217,6 +218,7 @@
217
  }
218
  ],
219
  "source": [
 
220
  "params = {\n",
221
  " \"q\": \"Vegan pad thai recipes\",\n",
222
  " \"location\": \"United States\",\n",
@@ -306,7 +308,7 @@
306
  "text/markdown": [
307
  "---\n",
308
  "\n",
309
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/lchain_tool.py#L19){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
310
  "\n",
311
  "### RecipeSerpAPIWrapper\n",
312
  "\n",
@@ -331,7 +333,7 @@
331
  "text/plain": [
332
  "---\n",
333
  "\n",
334
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/lchain_tool.py#L19){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
335
  "\n",
336
  "### RecipeSerpAPIWrapper\n",
337
  "\n",
@@ -373,6 +375,7 @@
373
  },
374
  "outputs": [],
375
  "source": [
 
376
  "params = {\n",
377
  " \"location\": \"United States\",\n",
378
  " \"hl\": \"en\",\n",
@@ -432,6 +435,7 @@
432
  }
433
  ],
434
  "source": [
 
435
  "vegan_recipes = search.run(\"Vegan fried rice recipes\")\n",
436
  "vegan_recipes[0:3]"
437
  ]
@@ -444,6 +448,7 @@
444
  },
445
  "outputs": [],
446
  "source": [
 
447
  "params = {\n",
448
  " \"engine\": \"google_images\",\n",
449
  " \"q\": \"Vegan pad thai recipes\",\n",
@@ -614,6 +619,7 @@
614
  }
615
  ],
616
  "source": [
 
617
  "for r in results[\"images_results\"][0:5]:\n",
618
  " display(r[\"title\"], r[\"link\"], Image(url=r[\"thumbnail\"]))"
619
  ]
@@ -806,7 +812,7 @@
806
  "outputs": [],
807
  "source": [
808
  "@tool\n",
809
- "def vegan_recipe_search_serpapi(text: str) -> str:\n",
810
  " \"\"\"Returns a JSON/Python list of dictionaries of recipe data with keys in format:\n",
811
  " ```\n",
812
  " 'title': str,\n",
@@ -963,6 +969,7 @@
963
  }
964
  ],
965
  "source": [
 
966
  "agent.run(\"Search vegan pad thai recipes\")"
967
  ]
968
  },
@@ -981,6 +988,7 @@
981
  },
982
  "outputs": [],
983
  "source": [
 
984
  "search = GoogleSerperAPIWrapper(type=\"search\")\n",
985
  "results = search.results(\"Lion\")"
986
  ]
 
156
  }
157
  ],
158
  "source": [
159
+ "#| eval: false\n",
160
  "agent(\"What is the 3% of of 300 * 30?\")"
161
  ]
162
  },
 
218
  }
219
  ],
220
  "source": [
221
+ "#| eval: false\n",
222
  "params = {\n",
223
  " \"q\": \"Vegan pad thai recipes\",\n",
224
  " \"location\": \"United States\",\n",
 
308
  "text/markdown": [
309
  "---\n",
310
  "\n",
311
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/lchain_tool.py#L19){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
312
  "\n",
313
  "### RecipeSerpAPIWrapper\n",
314
  "\n",
 
333
  "text/plain": [
334
  "---\n",
335
  "\n",
336
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/lchain_tool.py#L19){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
337
  "\n",
338
  "### RecipeSerpAPIWrapper\n",
339
  "\n",
 
375
  },
376
  "outputs": [],
377
  "source": [
378
+ "#| eval: false\n",
379
  "params = {\n",
380
  " \"location\": \"United States\",\n",
381
  " \"hl\": \"en\",\n",
 
435
  }
436
  ],
437
  "source": [
438
+ "#| eval: false\n",
439
  "vegan_recipes = search.run(\"Vegan fried rice recipes\")\n",
440
  "vegan_recipes[0:3]"
441
  ]
 
448
  },
449
  "outputs": [],
450
  "source": [
451
+ "#| eval: false\n",
452
  "params = {\n",
453
  " \"engine\": \"google_images\",\n",
454
  " \"q\": \"Vegan pad thai recipes\",\n",
 
619
  }
620
  ],
621
  "source": [
622
+ "#| eval: false\n",
623
  "for r in results[\"images_results\"][0:5]:\n",
624
  " display(r[\"title\"], r[\"link\"], Image(url=r[\"thumbnail\"]))"
625
  ]
 
812
  "outputs": [],
813
  "source": [
814
  "@tool\n",
815
+ "def vegan_recipe_serpapi_search(text: str) -> str:\n",
816
  " \"\"\"Returns a JSON/Python list of dictionaries of recipe data with keys in format:\n",
817
  " ```\n",
818
  " 'title': str,\n",
 
969
  }
970
  ],
971
  "source": [
972
+ "#| eval: false\n",
973
  "agent.run(\"Search vegan pad thai recipes\")"
974
  ]
975
  },
 
988
  },
989
  "outputs": [],
990
  "source": [
991
+ "#| eval: false\n",
992
  "search = GoogleSerperAPIWrapper(type=\"search\")\n",
993
  "results = search.results(\"Lion\")"
994
  ]
_proc/03_ingredient_vision.ipynb CHANGED
@@ -37,20 +37,28 @@
37
  "text/markdown": [
38
  "---\n",
39
  "\n",
40
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L24){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
41
  "\n",
42
  "### format_image\n",
43
  "\n",
44
- "> format_image (image)"
 
 
 
 
45
  ],
46
  "text/plain": [
47
  "---\n",
48
  "\n",
49
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L24){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
50
  "\n",
51
  "### format_image\n",
52
  "\n",
53
- "> format_image (image)"
 
 
 
 
54
  ]
55
  },
56
  "execution_count": 1,
@@ -74,7 +82,7 @@
74
  "text/markdown": [
75
  "---\n",
76
  "\n",
77
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L36){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
78
  "\n",
79
  "### BlipImageCaptioning\n",
80
  "\n",
@@ -85,7 +93,7 @@
85
  "text/plain": [
86
  "---\n",
87
  "\n",
88
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L36){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
89
  "\n",
90
  "### BlipImageCaptioning\n",
91
  "\n",
@@ -108,6 +116,63 @@
108
  {
109
  "cell_type": "code",
110
  "execution_count": 3,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  "metadata": {},
112
  "outputs": [
113
  {
@@ -115,33 +180,33 @@
115
  "text/markdown": [
116
  "---\n",
117
  "\n",
118
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L60){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
119
  "\n",
120
  "### BlipVQA\n",
121
  "\n",
122
  "> BlipVQA (device:str)\n",
123
  "\n",
124
  "BLIP Visual Question Answering\n",
125
- " Useful when you need an answer for a question based on an image.\n",
126
- " Examples:\n",
127
- "what is the background color of this image, how many cats are in this figure, what is in this figure?"
128
  ],
129
  "text/plain": [
130
  "---\n",
131
  "\n",
132
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L60){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
133
  "\n",
134
  "### BlipVQA\n",
135
  "\n",
136
  "> BlipVQA (device:str)\n",
137
  "\n",
138
  "BLIP Visual Question Answering\n",
139
- " Useful when you need an answer for a question based on an image.\n",
140
- " Examples:\n",
141
- "what is the background color of this image, how many cats are in this figure, what is in this figure?"
142
  ]
143
  },
144
- "execution_count": 3,
145
  "metadata": {},
146
  "output_type": "execute_result"
147
  }
@@ -152,6 +217,63 @@
152
  "show_doc(BlipVQA)"
153
  ]
154
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  {
156
  "cell_type": "code",
157
  "execution_count": null,
@@ -272,6 +394,7 @@
272
  },
273
  "outputs": [],
274
  "source": [
 
275
  "vqa = BlipVQA(\"cpu\")\n",
276
  "img_cap = BlipImageCaptioning(\"cpu\")"
277
  ]
@@ -447,6 +570,7 @@
447
  }
448
  ],
449
  "source": [
 
450
  "for img in sample_images:\n",
451
  " img = format_image(SAMPLE_IMG_DIR / img)\n",
452
  "\n",
@@ -600,6 +724,7 @@
600
  }
601
  ],
602
  "source": [
 
603
  "for img in sample_images:\n",
604
  " img = format_image(SAMPLE_IMG_DIR / img)\n",
605
  " desc = img_cap.inference(img)\n",
@@ -620,7 +745,7 @@
620
  },
621
  {
622
  "cell_type": "code",
623
- "execution_count": 4,
624
  "metadata": {},
625
  "outputs": [
626
  {
@@ -628,7 +753,7 @@
628
  "text/markdown": [
629
  "---\n",
630
  "\n",
631
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L89){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
632
  "\n",
633
  "### VeganIngredientFinder\n",
634
  "\n",
@@ -639,7 +764,7 @@
639
  "text/plain": [
640
  "---\n",
641
  "\n",
642
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L89){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
643
  "\n",
644
  "### VeganIngredientFinder\n",
645
  "\n",
@@ -648,7 +773,7 @@
648
  "Initialize self. See help(type(self)) for accurate signature."
649
  ]
650
  },
651
- "execution_count": 4,
652
  "metadata": {},
653
  "output_type": "execute_result"
654
  }
@@ -661,47 +786,51 @@
661
  },
662
  {
663
  "cell_type": "code",
664
- "execution_count": null,
665
  "metadata": {
666
  "language": "python"
667
  },
668
  "outputs": [
669
  {
670
  "data": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
671
  "text/plain": [
672
- "'cabbage lettuce onion\\napples\\nrice\\nplant-based milk'"
 
 
 
 
 
 
 
 
 
 
 
673
  ]
674
  },
675
- "execution_count": null,
676
  "metadata": {},
677
  "output_type": "execute_result"
678
  }
679
  ],
680
  "source": [
681
- "vegan_ingred_finder = VeganIngredientFinder()\n",
682
- "vegan_ingred_finder.list_ingredients(SAMPLE_IMG_DIR / sample_images[0])"
683
- ]
684
- },
685
- {
686
- "cell_type": "code",
687
- "execution_count": null,
688
- "metadata": {
689
- "language": "python"
690
- },
691
- "outputs": [],
692
- "source": [
693
- "vqa = BlipVQA(\"cpu\")"
694
- ]
695
- },
696
- {
697
- "cell_type": "code",
698
- "execution_count": null,
699
- "metadata": {
700
- "language": "python"
701
- },
702
- "outputs": [],
703
- "source": [
704
- "del vqa"
705
  ]
706
  },
707
  {
@@ -710,9 +839,22 @@
710
  "metadata": {
711
  "language": "python"
712
  },
713
- "outputs": [],
 
 
 
 
 
 
 
 
 
 
 
714
  "source": [
715
- "vif = VeganIngredientFinder()"
 
 
716
  ]
717
  },
718
  {
 
37
  "text/markdown": [
38
  "---\n",
39
  "\n",
40
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L24){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
41
  "\n",
42
  "### format_image\n",
43
  "\n",
44
+ "> format_image (image:str)\n",
45
+ "\n",
46
+ "| | **Type** | **Details** |\n",
47
+ "| -- | -------- | ----------- |\n",
48
+ "| image | str | Image file path |"
49
  ],
50
  "text/plain": [
51
  "---\n",
52
  "\n",
53
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L24){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
54
  "\n",
55
  "### format_image\n",
56
  "\n",
57
+ "> format_image (image:str)\n",
58
+ "\n",
59
+ "| | **Type** | **Details** |\n",
60
+ "| -- | -------- | ----------- |\n",
61
+ "| image | str | Image file path |"
62
  ]
63
  },
64
  "execution_count": 1,
 
82
  "text/markdown": [
83
  "---\n",
84
  "\n",
85
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L36){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
86
  "\n",
87
  "### BlipImageCaptioning\n",
88
  "\n",
 
93
  "text/plain": [
94
  "---\n",
95
  "\n",
96
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L36){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
97
  "\n",
98
  "### BlipImageCaptioning\n",
99
  "\n",
 
116
  {
117
  "cell_type": "code",
118
  "execution_count": 3,
119
+ "metadata": {
120
+ "language": "python"
121
+ },
122
+ "outputs": [
123
+ {
124
+ "data": {
125
+ "text/markdown": [
126
+ "---\n",
127
+ "\n",
128
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L51){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
129
+ "\n",
130
+ "### BlipImageCaptioning.inference\n",
131
+ "\n",
132
+ "> BlipImageCaptioning.inference\n",
133
+ "> (image:<module'PIL.Image'from'/home/evylz/\n",
134
+ "> AnimalEquality/lv-recipe-\n",
135
+ "> chatbot/env/lib/python3.10/site-\n",
136
+ "> packages/PIL/Image.py'>)\n",
137
+ "\n",
138
+ "| | **Type** | **Details** |\n",
139
+ "| -- | -------- | ----------- |\n",
140
+ "| image | PIL.Image | |\n",
141
+ "| **Returns** | **str** | **Caption for the image** |"
142
+ ],
143
+ "text/plain": [
144
+ "---\n",
145
+ "\n",
146
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L51){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
147
+ "\n",
148
+ "### BlipImageCaptioning.inference\n",
149
+ "\n",
150
+ "> BlipImageCaptioning.inference\n",
151
+ "> (image:<module'PIL.Image'from'/home/evylz/\n",
152
+ "> AnimalEquality/lv-recipe-\n",
153
+ "> chatbot/env/lib/python3.10/site-\n",
154
+ "> packages/PIL/Image.py'>)\n",
155
+ "\n",
156
+ "| | **Type** | **Details** |\n",
157
+ "| -- | -------- | ----------- |\n",
158
+ "| image | PIL.Image | |\n",
159
+ "| **Returns** | **str** | **Caption for the image** |"
160
+ ]
161
+ },
162
+ "execution_count": 3,
163
+ "metadata": {},
164
+ "output_type": "execute_result"
165
+ }
166
+ ],
167
+ "source": [
168
+ "#| echo: false\n",
169
+ "#| output: asis\n",
170
+ "show_doc(BlipImageCaptioning.inference)"
171
+ ]
172
+ },
173
+ {
174
+ "cell_type": "code",
175
+ "execution_count": 4,
176
  "metadata": {},
177
  "outputs": [
178
  {
 
180
  "text/markdown": [
181
  "---\n",
182
  "\n",
183
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L60){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
184
  "\n",
185
  "### BlipVQA\n",
186
  "\n",
187
  "> BlipVQA (device:str)\n",
188
  "\n",
189
  "BLIP Visual Question Answering\n",
190
+ "Useful when you need an answer for a question based on an image.\n",
191
+ "Examples:\n",
192
+ " what is the background color of this image, how many cats are in this figure, what is in this figure?"
193
  ],
194
  "text/plain": [
195
  "---\n",
196
  "\n",
197
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L60){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
198
  "\n",
199
  "### BlipVQA\n",
200
  "\n",
201
  "> BlipVQA (device:str)\n",
202
  "\n",
203
  "BLIP Visual Question Answering\n",
204
+ "Useful when you need an answer for a question based on an image.\n",
205
+ "Examples:\n",
206
+ " what is the background color of this image, how many cats are in this figure, what is in this figure?"
207
  ]
208
  },
209
+ "execution_count": 4,
210
  "metadata": {},
211
  "output_type": "execute_result"
212
  }
 
217
  "show_doc(BlipVQA)"
218
  ]
219
  },
220
+ {
221
+ "cell_type": "code",
222
+ "execution_count": 5,
223
+ "metadata": {
224
+ "language": "python"
225
+ },
226
+ "outputs": [
227
+ {
228
+ "data": {
229
+ "text/markdown": [
230
+ "---\n",
231
+ "\n",
232
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L76){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
233
+ "\n",
234
+ "### BlipVQA.inference\n",
235
+ "\n",
236
+ "> BlipVQA.inference\n",
237
+ "> (image:<module'PIL.Image'from'/home/evylz/AnimalEquali\n",
238
+ "> ty/lv-recipe-chatbot/env/lib/python3.10/site-\n",
239
+ "> packages/PIL/Image.py'>, question:str)\n",
240
+ "\n",
241
+ "| | **Type** | **Details** |\n",
242
+ "| -- | -------- | ----------- |\n",
243
+ "| image | PIL.Image | |\n",
244
+ "| question | str | |\n",
245
+ "| **Returns** | **str** | **Answer to the query on the image** |"
246
+ ],
247
+ "text/plain": [
248
+ "---\n",
249
+ "\n",
250
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L76){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
251
+ "\n",
252
+ "### BlipVQA.inference\n",
253
+ "\n",
254
+ "> BlipVQA.inference\n",
255
+ "> (image:<module'PIL.Image'from'/home/evylz/AnimalEquali\n",
256
+ "> ty/lv-recipe-chatbot/env/lib/python3.10/site-\n",
257
+ "> packages/PIL/Image.py'>, question:str)\n",
258
+ "\n",
259
+ "| | **Type** | **Details** |\n",
260
+ "| -- | -------- | ----------- |\n",
261
+ "| image | PIL.Image | |\n",
262
+ "| question | str | |\n",
263
+ "| **Returns** | **str** | **Answer to the query on the image** |"
264
+ ]
265
+ },
266
+ "execution_count": 5,
267
+ "metadata": {},
268
+ "output_type": "execute_result"
269
+ }
270
+ ],
271
+ "source": [
272
+ "#| echo: false\n",
273
+ "#| output: asis\n",
274
+ "show_doc(BlipVQA.inference)"
275
+ ]
276
+ },
277
  {
278
  "cell_type": "code",
279
  "execution_count": null,
 
394
  },
395
  "outputs": [],
396
  "source": [
397
+ "#| eval: false\n",
398
  "vqa = BlipVQA(\"cpu\")\n",
399
  "img_cap = BlipImageCaptioning(\"cpu\")"
400
  ]
 
570
  }
571
  ],
572
  "source": [
573
+ "#| eval: false\n",
574
  "for img in sample_images:\n",
575
  " img = format_image(SAMPLE_IMG_DIR / img)\n",
576
  "\n",
 
724
  }
725
  ],
726
  "source": [
727
+ "#| eval: false\n",
728
  "for img in sample_images:\n",
729
  " img = format_image(SAMPLE_IMG_DIR / img)\n",
730
  " desc = img_cap.inference(img)\n",
 
745
  },
746
  {
747
  "cell_type": "code",
748
+ "execution_count": 6,
749
  "metadata": {},
750
  "outputs": [
751
  {
 
753
  "text/markdown": [
754
  "---\n",
755
  "\n",
756
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L89){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
757
  "\n",
758
  "### VeganIngredientFinder\n",
759
  "\n",
 
764
  "text/plain": [
765
  "---\n",
766
  "\n",
767
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L89){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
768
  "\n",
769
  "### VeganIngredientFinder\n",
770
  "\n",
 
773
  "Initialize self. See help(type(self)) for accurate signature."
774
  ]
775
  },
776
+ "execution_count": 6,
777
  "metadata": {},
778
  "output_type": "execute_result"
779
  }
 
786
  },
787
  {
788
  "cell_type": "code",
789
+ "execution_count": 7,
790
  "metadata": {
791
  "language": "python"
792
  },
793
  "outputs": [
794
  {
795
  "data": {
796
+ "text/markdown": [
797
+ "---\n",
798
+ "\n",
799
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L93){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
800
+ "\n",
801
+ "### VeganIngredientFinder.list_ingredients\n",
802
+ "\n",
803
+ "> VeganIngredientFinder.list_ingredients (img:str)\n",
804
+ "\n",
805
+ "| | **Type** | **Details** |\n",
806
+ "| -- | -------- | ----------- |\n",
807
+ "| img | str | Image file path |\n",
808
+ "| **Returns** | **str** | |"
809
+ ],
810
  "text/plain": [
811
+ "---\n",
812
+ "\n",
813
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L93){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
814
+ "\n",
815
+ "### VeganIngredientFinder.list_ingredients\n",
816
+ "\n",
817
+ "> VeganIngredientFinder.list_ingredients (img:str)\n",
818
+ "\n",
819
+ "| | **Type** | **Details** |\n",
820
+ "| -- | -------- | ----------- |\n",
821
+ "| img | str | Image file path |\n",
822
+ "| **Returns** | **str** | |"
823
  ]
824
  },
825
+ "execution_count": 7,
826
  "metadata": {},
827
  "output_type": "execute_result"
828
  }
829
  ],
830
  "source": [
831
+ "#| echo: false\n",
832
+ "#| output: asis\n",
833
+ "show_doc(VeganIngredientFinder.list_ingredients)"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
834
  ]
835
  },
836
  {
 
839
  "metadata": {
840
  "language": "python"
841
  },
842
+ "outputs": [
843
+ {
844
+ "data": {
845
+ "text/plain": [
846
+ "'cabbage lettuce onion\\napples\\nrice\\nplant-based milk'"
847
+ ]
848
+ },
849
+ "execution_count": null,
850
+ "metadata": {},
851
+ "output_type": "execute_result"
852
+ }
853
+ ],
854
  "source": [
855
+ "#| eval: false\n",
856
+ "vegan_ingred_finder = VeganIngredientFinder()\n",
857
+ "vegan_ingred_finder.list_ingredients(SAMPLE_IMG_DIR / sample_images[0])"
858
  ]
859
  },
860
  {
_proc/04_edamam_api.ipynb CHANGED
@@ -30,7 +30,7 @@
30
  "text/markdown": [
31
  "---\n",
32
  "\n",
33
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/edamam_api.py#L7){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
34
  "\n",
35
  "### foo\n",
36
  "\n",
@@ -39,7 +39,7 @@
39
  "text/plain": [
40
  "---\n",
41
  "\n",
42
- "[source](https://github.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/edamam_api.py#L7){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
43
  "\n",
44
  "### foo\n",
45
  "\n",
 
30
  "text/markdown": [
31
  "---\n",
32
  "\n",
33
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/edamam_api.py#L7){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
34
  "\n",
35
  "### foo\n",
36
  "\n",
 
39
  "text/plain": [
40
  "---\n",
41
  "\n",
42
+ "[source](https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/edamam_api.py#L7){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
43
  "\n",
44
  "### foo\n",
45
  "\n",
_proc/_docs/03_ingredient_vision_files/figure-html/cell-10-output-11.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-10-output-13.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-10-output-3.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-10-output-5.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-10-output-7.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-10-output-9.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-11-output-2.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-11-output-3.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-11-output-4.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-11-output-5.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-11-output-6.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-11-output-7.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-8-output-1.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-8-output-2.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-8-output-3.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-8-output-4.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-8-output-5.png ADDED
_proc/_docs/03_ingredient_vision_files/figure-html/cell-8-output-6.png ADDED
_proc/_docs/app.html ADDED
@@ -0,0 +1,538 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
3
+
4
+ <meta charset="utf-8">
5
+ <meta name="generator" content="quarto-1.3.361">
6
+
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
8
+
9
+ <meta name="description" content="Gradio app.py">
10
+
11
+ <title>lv-recipe-chatbot - app</title>
12
+ <style>
13
+ code{white-space: pre-wrap;}
14
+ span.smallcaps{font-variant: small-caps;}
15
+ div.columns{display: flex; gap: min(4vw, 1.5em);}
16
+ div.column{flex: auto; overflow-x: auto;}
17
+ div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
18
+ ul.task-list{list-style: none;}
19
+ ul.task-list li input[type="checkbox"] {
20
+ width: 0.8em;
21
+ margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
22
+ vertical-align: middle;
23
+ }
24
+ /* CSS for syntax highlighting */
25
+ pre > code.sourceCode { white-space: pre; position: relative; }
26
+ pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
27
+ pre > code.sourceCode > span:empty { height: 1.2em; }
28
+ .sourceCode { overflow: visible; }
29
+ code.sourceCode > span { color: inherit; text-decoration: inherit; }
30
+ div.sourceCode { margin: 1em 0; }
31
+ pre.sourceCode { margin: 0; }
32
+ @media screen {
33
+ div.sourceCode { overflow: auto; }
34
+ }
35
+ @media print {
36
+ pre > code.sourceCode { white-space: pre-wrap; }
37
+ pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
38
+ }
39
+ pre.numberSource code
40
+ { counter-reset: source-line 0; }
41
+ pre.numberSource code > span
42
+ { position: relative; left: -4em; counter-increment: source-line; }
43
+ pre.numberSource code > span > a:first-child::before
44
+ { content: counter(source-line);
45
+ position: relative; left: -1em; text-align: right; vertical-align: baseline;
46
+ border: none; display: inline-block;
47
+ -webkit-touch-callout: none; -webkit-user-select: none;
48
+ -khtml-user-select: none; -moz-user-select: none;
49
+ -ms-user-select: none; user-select: none;
50
+ padding: 0 4px; width: 4em;
51
+ }
52
+ pre.numberSource { margin-left: 3em; padding-left: 4px; }
53
+ div.sourceCode
54
+ { }
55
+ @media screen {
56
+ pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
57
+ }
58
+ </style>
59
+
60
+
61
+ <script src="site_libs/quarto-nav/quarto-nav.js"></script>
62
+ <script src="site_libs/quarto-nav/headroom.min.js"></script>
63
+ <script src="site_libs/clipboard/clipboard.min.js"></script>
64
+ <script src="site_libs/quarto-search/autocomplete.umd.js"></script>
65
+ <script src="site_libs/quarto-search/fuse.min.js"></script>
66
+ <script src="site_libs/quarto-search/quarto-search.js"></script>
67
+ <meta name="quarto:offset" content="./">
68
+ <script src="site_libs/quarto-html/quarto.js"></script>
69
+ <script src="site_libs/quarto-html/popper.min.js"></script>
70
+ <script src="site_libs/quarto-html/tippy.umd.min.js"></script>
71
+ <script src="site_libs/quarto-html/anchor.min.js"></script>
72
+ <link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
73
+ <link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
74
+ <script src="site_libs/bootstrap/bootstrap.min.js"></script>
75
+ <link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
76
+ <link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
77
+ <script id="quarto-search-options" type="application/json">{
78
+ "location": "navbar",
79
+ "copy-button": false,
80
+ "collapse-after": 3,
81
+ "panel-placement": "end",
82
+ "type": "overlay",
83
+ "limit": 20,
84
+ "language": {
85
+ "search-no-results-text": "No results",
86
+ "search-matching-documents-text": "matching documents",
87
+ "search-copy-link-title": "Copy link to search",
88
+ "search-hide-matches-text": "Hide additional matches",
89
+ "search-more-match-text": "more match in this document",
90
+ "search-more-matches-text": "more matches in this document",
91
+ "search-clear-button-title": "Clear",
92
+ "search-detached-cancel-button-title": "Cancel",
93
+ "search-submit-button-title": "Submit",
94
+ "search-label": "Search"
95
+ }
96
+ }</script>
97
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" integrity="sha512-c3Nl8+7g4LMSTdrm621y7kf9v3SDPnhxLNhcjFJbKECVnmZHTdo+IRO05sNLTH/D3vA6u1X32ehoLC7WFVdheg==" crossorigin="anonymous"></script>
98
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" crossorigin="anonymous"></script>
99
+ <script type="application/javascript">define('jquery', [],function() {return window.jQuery;})</script>
100
+
101
+
102
+ <link rel="stylesheet" href="styles.css">
103
+ <meta property="og:title" content="lv-recipe-chatbot - app">
104
+ <meta property="og:description" content="Gradio app.py">
105
+ <meta property="og:site-name" content="lv-recipe-chatbot">
106
+ <meta name="twitter:title" content="lv-recipe-chatbot - app">
107
+ <meta name="twitter:description" content="Gradio app.py">
108
+ <meta name="twitter:card" content="summary">
109
+ </head>
110
+
111
+ <body class="nav-sidebar floating nav-fixed">
112
+
113
+ <div id="quarto-search-results"></div>
114
+ <header id="quarto-header" class="headroom fixed-top">
115
+ <nav class="navbar navbar-expand-lg navbar-dark ">
116
+ <div class="navbar-container container-fluid">
117
+ <div class="navbar-brand-container">
118
+ <a class="navbar-brand" href="./index.html">
119
+ <span class="navbar-title">lv-recipe-chatbot</span>
120
+ </a>
121
+ </div>
122
+ <div class="quarto-navbar-tools ms-auto">
123
+ </div>
124
+ <div id="quarto-search" class="" title="Search"></div>
125
+ </div> <!-- /container-fluid -->
126
+ </nav>
127
+ <nav class="quarto-secondary-nav">
128
+ <div class="container-fluid d-flex">
129
+ <button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
130
+ <i class="bi bi-layout-text-sidebar-reverse"></i>
131
+ </button>
132
+ <nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./app.html">app</a></li></ol></nav>
133
+ <a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
134
+ </a>
135
+ </div>
136
+ </nav>
137
+ </header>
138
+ <!-- content -->
139
+ <div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
140
+ <!-- sidebar -->
141
+ <nav id="quarto-sidebar" class="sidebar collapse collapse-horizontal sidebar-navigation floating overflow-auto">
142
+ <div class="sidebar-menu-container">
143
+ <ul class="list-unstyled mt-1">
144
+ <li class="sidebar-item">
145
+ <div class="sidebar-item-container">
146
+ <a href="./index.html" class="sidebar-item-text sidebar-link">
147
+ <span class="menu-text">lv-recipe-chatbot</span></a>
148
+ </div>
149
+ </li>
150
+ <li class="sidebar-item">
151
+ <div class="sidebar-item-container">
152
+ <a href="./engineer_prompt.html" class="sidebar-item-text sidebar-link">
153
+ <span class="menu-text">engineer_prompt</span></a>
154
+ </div>
155
+ </li>
156
+ <li class="sidebar-item">
157
+ <div class="sidebar-item-container">
158
+ <a href="./app.html" class="sidebar-item-text sidebar-link active">
159
+ <span class="menu-text">app</span></a>
160
+ </div>
161
+ </li>
162
+ <li class="sidebar-item">
163
+ <div class="sidebar-item-container">
164
+ <a href="./lchain_tool.html" class="sidebar-item-text sidebar-link">
165
+ <span class="menu-text">lchain_tool</span></a>
166
+ </div>
167
+ </li>
168
+ <li class="sidebar-item">
169
+ <div class="sidebar-item-container">
170
+ <a href="./ingredient_vision.html" class="sidebar-item-text sidebar-link">
171
+ <span class="menu-text">ingredient_vision</span></a>
172
+ </div>
173
+ </li>
174
+ <li class="sidebar-item">
175
+ <div class="sidebar-item-container">
176
+ <a href="./edamam_api.html" class="sidebar-item-text sidebar-link">
177
+ <span class="menu-text">edamam_api</span></a>
178
+ </div>
179
+ </li>
180
+ </ul>
181
+ </div>
182
+ </nav>
183
+ <div id="quarto-sidebar-glass" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass"></div>
184
+ <!-- margin-sidebar -->
185
+ <div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
186
+ <nav id="TOC" role="doc-toc" class="toc-active">
187
+ <h2 id="toc-title">On this page</h2>
188
+
189
+ <ul>
190
+ <li><a href="#conversationbot" id="toc-conversationbot" class="nav-link active" data-scroll-target="#conversationbot">ConversationBot</a></li>
191
+ <li><a href="#create_demo" id="toc-create_demo" class="nav-link" data-scroll-target="#create_demo">create_demo</a></li>
192
+ </ul>
193
+ <div class="toc-actions"><div><i class="bi bi-git"></i></div><div class="action-links"><p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/issues/new" class="toc-action">Report an issue</a></p></div></div></nav>
194
+ </div>
195
+ <!-- main -->
196
+ <main class="content" id="quarto-document-content">
197
+
198
+ <header id="title-block-header" class="quarto-title-block default">
199
+ <div class="quarto-title">
200
+ <h1 class="title">app</h1>
201
+ </div>
202
+
203
+ <div>
204
+ <div class="description">
205
+ Gradio app.py
206
+ </div>
207
+ </div>
208
+
209
+
210
+ <div class="quarto-title-meta">
211
+
212
+
213
+
214
+
215
+ </div>
216
+
217
+
218
+ </header>
219
+
220
+ <!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
221
+ <hr>
222
+ <p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L32" target="_blank" style="float:right; font-size:smaller">source</a></p>
223
+ <section id="conversationbot" class="level3">
224
+ <h3 class="anchored" data-anchor-id="conversationbot">ConversationBot</h3>
225
+ <blockquote class="blockquote">
226
+ <pre><code> ConversationBot (verbose=True)</code></pre>
227
+ </blockquote>
228
+ <p>Initialize self. See help(type(self)) for accurate signature.</p>
229
+ <div class="cell">
230
+ <div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>os.listdir(SAMPLE_IMG_DIR)</span>
231
+ <span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a>SAMPLE_IMG_DIR</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
232
+ <div class="cell-output cell-output-display">
233
+ <pre><code>Path('/home/evylz/AnimalEquality/lv-recipe-chatbot/assets/images/vegan_ingredients')</code></pre>
234
+ </div>
235
+ </div>
236
+ <div class="cell">
237
+ <div class="sourceCode cell-code" id="cb4"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> dotenv <span class="im">import</span> load_dotenv</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
238
+ </div>
239
+ <div class="cell">
240
+ <div class="sourceCode cell-code" id="cb5"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="co">#: eval: false</span></span>
241
+ <span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a>load_dotenv()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
242
+ <div class="cell-output cell-output-display">
243
+ <pre><code>True</code></pre>
244
+ </div>
245
+ </div>
246
+ <div class="cell">
247
+ <div class="sourceCode cell-code" id="cb7"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
248
+ <div class="cell-output cell-output-stdout">
249
+ <pre><code>CPU times: user 6.19 s, sys: 1.47 s, total: 7.66 s
250
+ Wall time: 4.68 s</code></pre>
251
+ </div>
252
+ </div>
253
+ <div class="cell">
254
+ <div class="sourceCode cell-code" id="cb9"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
255
+ <div class="cell-output cell-output-stdout">
256
+ <pre><code>I uploaded an image that may contain vegan ingredients.
257
+ The description of the image is: `a refrigerator with food inside`.
258
+ The extracted ingredients are:
259
+ ```
260
+ cabbage lettuce onion
261
+ apples
262
+ rice
263
+ plant-based milk
264
+ ```
265
+
266
+ CPU times: user 56.7 s, sys: 63.6 ms, total: 56.8 s
267
+ Wall time: 5.95 s</code></pre>
268
+ </div>
269
+ </div>
270
+ <hr>
271
+ <p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/app.py#L116" target="_blank" style="float:right; font-size:smaller">source</a></p>
272
+ </section>
273
+ <section id="create_demo" class="level3">
274
+ <h3 class="anchored" data-anchor-id="create_demo">create_demo</h3>
275
+ <blockquote class="blockquote">
276
+ <pre><code> create_demo (bot=&lt;class '__main__.ConversationBot'&gt;)</code></pre>
277
+ </blockquote>
278
+ <div class="cell">
279
+ <div class="sourceCode cell-code" id="cb12"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> <span class="st">"demo"</span> <span class="kw">in</span> <span class="bu">globals</span>():</span>
280
+ <span id="cb12-2"><a href="#cb12-2" aria-hidden="true" tabindex="-1"></a> demo.close()</span>
281
+ <span id="cb12-3"><a href="#cb12-3" aria-hidden="true" tabindex="-1"></a>demo <span class="op">=</span> create_demo(bot)</span>
282
+ <span id="cb12-4"><a href="#cb12-4" aria-hidden="true" tabindex="-1"></a>demo.launch()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
283
+ <div class="cell-output cell-output-stdout">
284
+ <pre><code>Closing server running on port: 7860
285
+ Running on local URL: http://127.0.0.1:7860
286
+
287
+ To create a public link, set `share=True` in `launch()`.</code></pre>
288
+ </div>
289
+ <div class="cell-output cell-output-display">
290
+ <div><iframe src="http://127.0.0.1:7860/" width="100%" height="500" allow="autoplay; camera; microphone; clipboard-read; clipboard-write;" frameborder="0" allowfullscreen=""></iframe></div>
291
+ </div>
292
+ <div class="cell-output cell-output-display">
293
+ <pre><code></code></pre>
294
+ </div>
295
+ </div>
296
+
297
+
298
+ </section>
299
+
300
+ </main> <!-- /main -->
301
+ <script id="quarto-html-after-body" type="application/javascript">
302
+ window.document.addEventListener("DOMContentLoaded", function (event) {
303
+ const toggleBodyColorMode = (bsSheetEl) => {
304
+ const mode = bsSheetEl.getAttribute("data-mode");
305
+ const bodyEl = window.document.querySelector("body");
306
+ if (mode === "dark") {
307
+ bodyEl.classList.add("quarto-dark");
308
+ bodyEl.classList.remove("quarto-light");
309
+ } else {
310
+ bodyEl.classList.add("quarto-light");
311
+ bodyEl.classList.remove("quarto-dark");
312
+ }
313
+ }
314
+ const toggleBodyColorPrimary = () => {
315
+ const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
316
+ if (bsSheetEl) {
317
+ toggleBodyColorMode(bsSheetEl);
318
+ }
319
+ }
320
+ toggleBodyColorPrimary();
321
+ const icon = "";
322
+ const anchorJS = new window.AnchorJS();
323
+ anchorJS.options = {
324
+ placement: 'right',
325
+ icon: icon
326
+ };
327
+ anchorJS.add('.anchored');
328
+ const isCodeAnnotation = (el) => {
329
+ for (const clz of el.classList) {
330
+ if (clz.startsWith('code-annotation-')) {
331
+ return true;
332
+ }
333
+ }
334
+ return false;
335
+ }
336
+ const clipboard = new window.ClipboardJS('.code-copy-button', {
337
+ text: function(trigger) {
338
+ const codeEl = trigger.previousElementSibling.cloneNode(true);
339
+ for (const childEl of codeEl.children) {
340
+ if (isCodeAnnotation(childEl)) {
341
+ childEl.remove();
342
+ }
343
+ }
344
+ return codeEl.innerText;
345
+ }
346
+ });
347
+ clipboard.on('success', function(e) {
348
+ // button target
349
+ const button = e.trigger;
350
+ // don't keep focus
351
+ button.blur();
352
+ // flash "checked"
353
+ button.classList.add('code-copy-button-checked');
354
+ var currentTitle = button.getAttribute("title");
355
+ button.setAttribute("title", "Copied!");
356
+ let tooltip;
357
+ if (window.bootstrap) {
358
+ button.setAttribute("data-bs-toggle", "tooltip");
359
+ button.setAttribute("data-bs-placement", "left");
360
+ button.setAttribute("data-bs-title", "Copied!");
361
+ tooltip = new bootstrap.Tooltip(button,
362
+ { trigger: "manual",
363
+ customClass: "code-copy-button-tooltip",
364
+ offset: [0, -8]});
365
+ tooltip.show();
366
+ }
367
+ setTimeout(function() {
368
+ if (tooltip) {
369
+ tooltip.hide();
370
+ button.removeAttribute("data-bs-title");
371
+ button.removeAttribute("data-bs-toggle");
372
+ button.removeAttribute("data-bs-placement");
373
+ }
374
+ button.setAttribute("title", currentTitle);
375
+ button.classList.remove('code-copy-button-checked');
376
+ }, 1000);
377
+ // clear code selection
378
+ e.clearSelection();
379
+ });
380
+ function tippyHover(el, contentFn) {
381
+ const config = {
382
+ allowHTML: true,
383
+ content: contentFn,
384
+ maxWidth: 500,
385
+ delay: 100,
386
+ arrow: false,
387
+ appendTo: function(el) {
388
+ return el.parentElement;
389
+ },
390
+ interactive: true,
391
+ interactiveBorder: 10,
392
+ theme: 'quarto',
393
+ placement: 'bottom-start'
394
+ };
395
+ window.tippy(el, config);
396
+ }
397
+ const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
398
+ for (var i=0; i<noterefs.length; i++) {
399
+ const ref = noterefs[i];
400
+ tippyHover(ref, function() {
401
+ // use id or data attribute instead here
402
+ let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
403
+ try { href = new URL(href).hash; } catch {}
404
+ const id = href.replace(/^#\/?/, "");
405
+ const note = window.document.getElementById(id);
406
+ return note.innerHTML;
407
+ });
408
+ }
409
+ let selectedAnnoteEl;
410
+ const selectorForAnnotation = ( cell, annotation) => {
411
+ let cellAttr = 'data-code-cell="' + cell + '"';
412
+ let lineAttr = 'data-code-annotation="' + annotation + '"';
413
+ const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
414
+ return selector;
415
+ }
416
+ const selectCodeLines = (annoteEl) => {
417
+ const doc = window.document;
418
+ const targetCell = annoteEl.getAttribute("data-target-cell");
419
+ const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
420
+ const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
421
+ const lines = annoteSpan.getAttribute("data-code-lines").split(",");
422
+ const lineIds = lines.map((line) => {
423
+ return targetCell + "-" + line;
424
+ })
425
+ let top = null;
426
+ let height = null;
427
+ let parent = null;
428
+ if (lineIds.length > 0) {
429
+ //compute the position of the single el (top and bottom and make a div)
430
+ const el = window.document.getElementById(lineIds[0]);
431
+ top = el.offsetTop;
432
+ height = el.offsetHeight;
433
+ parent = el.parentElement.parentElement;
434
+ if (lineIds.length > 1) {
435
+ const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
436
+ const bottom = lastEl.offsetTop + lastEl.offsetHeight;
437
+ height = bottom - top;
438
+ }
439
+ if (top !== null && height !== null && parent !== null) {
440
+ // cook up a div (if necessary) and position it
441
+ let div = window.document.getElementById("code-annotation-line-highlight");
442
+ if (div === null) {
443
+ div = window.document.createElement("div");
444
+ div.setAttribute("id", "code-annotation-line-highlight");
445
+ div.style.position = 'absolute';
446
+ parent.appendChild(div);
447
+ }
448
+ div.style.top = top - 2 + "px";
449
+ div.style.height = height + 4 + "px";
450
+ let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
451
+ if (gutterDiv === null) {
452
+ gutterDiv = window.document.createElement("div");
453
+ gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
454
+ gutterDiv.style.position = 'absolute';
455
+ const codeCell = window.document.getElementById(targetCell);
456
+ const gutter = codeCell.querySelector('.code-annotation-gutter');
457
+ gutter.appendChild(gutterDiv);
458
+ }
459
+ gutterDiv.style.top = top - 2 + "px";
460
+ gutterDiv.style.height = height + 4 + "px";
461
+ }
462
+ selectedAnnoteEl = annoteEl;
463
+ }
464
+ };
465
+ const unselectCodeLines = () => {
466
+ const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
467
+ elementsIds.forEach((elId) => {
468
+ const div = window.document.getElementById(elId);
469
+ if (div) {
470
+ div.remove();
471
+ }
472
+ });
473
+ selectedAnnoteEl = undefined;
474
+ };
475
+ // Attach click handler to the DT
476
+ const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
477
+ for (const annoteDlNode of annoteDls) {
478
+ annoteDlNode.addEventListener('click', (event) => {
479
+ const clickedEl = event.target;
480
+ if (clickedEl !== selectedAnnoteEl) {
481
+ unselectCodeLines();
482
+ const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
483
+ if (activeEl) {
484
+ activeEl.classList.remove('code-annotation-active');
485
+ }
486
+ selectCodeLines(clickedEl);
487
+ clickedEl.classList.add('code-annotation-active');
488
+ } else {
489
+ // Unselect the line
490
+ unselectCodeLines();
491
+ clickedEl.classList.remove('code-annotation-active');
492
+ }
493
+ });
494
+ }
495
+ const findCites = (el) => {
496
+ const parentEl = el.parentElement;
497
+ if (parentEl) {
498
+ const cites = parentEl.dataset.cites;
499
+ if (cites) {
500
+ return {
501
+ el,
502
+ cites: cites.split(' ')
503
+ };
504
+ } else {
505
+ return findCites(el.parentElement)
506
+ }
507
+ } else {
508
+ return undefined;
509
+ }
510
+ };
511
+ var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
512
+ for (var i=0; i<bibliorefs.length; i++) {
513
+ const ref = bibliorefs[i];
514
+ const citeInfo = findCites(ref);
515
+ if (citeInfo) {
516
+ tippyHover(citeInfo.el, function() {
517
+ var popup = window.document.createElement('div');
518
+ citeInfo.cites.forEach(function(cite) {
519
+ var citeDiv = window.document.createElement('div');
520
+ citeDiv.classList.add('hanging-indent');
521
+ citeDiv.classList.add('csl-entry');
522
+ var biblioDiv = window.document.getElementById('ref-' + cite);
523
+ if (biblioDiv) {
524
+ citeDiv.innerHTML = biblioDiv.innerHTML;
525
+ }
526
+ popup.appendChild(citeDiv);
527
+ });
528
+ return popup.innerHTML;
529
+ });
530
+ }
531
+ }
532
+ });
533
+ </script>
534
+ </div> <!-- /content -->
535
+
536
+
537
+
538
+ </body></html>
_proc/_docs/edamam_api.html ADDED
@@ -0,0 +1,432 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
3
+
4
+ <meta charset="utf-8">
5
+ <meta name="generator" content="quarto-1.3.361">
6
+
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
8
+
9
+ <meta name="description" content="Tinkering with the ">
10
+
11
+ <title>lv-recipe-chatbot - edamam_api</title>
12
+ <style>
13
+ code{white-space: pre-wrap;}
14
+ span.smallcaps{font-variant: small-caps;}
15
+ div.columns{display: flex; gap: min(4vw, 1.5em);}
16
+ div.column{flex: auto; overflow-x: auto;}
17
+ div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
18
+ ul.task-list{list-style: none;}
19
+ ul.task-list li input[type="checkbox"] {
20
+ width: 0.8em;
21
+ margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
22
+ vertical-align: middle;
23
+ }
24
+ </style>
25
+
26
+
27
+ <script src="site_libs/quarto-nav/quarto-nav.js"></script>
28
+ <script src="site_libs/quarto-nav/headroom.min.js"></script>
29
+ <script src="site_libs/clipboard/clipboard.min.js"></script>
30
+ <script src="site_libs/quarto-search/autocomplete.umd.js"></script>
31
+ <script src="site_libs/quarto-search/fuse.min.js"></script>
32
+ <script src="site_libs/quarto-search/quarto-search.js"></script>
33
+ <meta name="quarto:offset" content="./">
34
+ <script src="site_libs/quarto-html/quarto.js"></script>
35
+ <script src="site_libs/quarto-html/popper.min.js"></script>
36
+ <script src="site_libs/quarto-html/tippy.umd.min.js"></script>
37
+ <script src="site_libs/quarto-html/anchor.min.js"></script>
38
+ <link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
39
+ <link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
40
+ <script src="site_libs/bootstrap/bootstrap.min.js"></script>
41
+ <link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
42
+ <link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
43
+ <script id="quarto-search-options" type="application/json">{
44
+ "location": "navbar",
45
+ "copy-button": false,
46
+ "collapse-after": 3,
47
+ "panel-placement": "end",
48
+ "type": "overlay",
49
+ "limit": 20,
50
+ "language": {
51
+ "search-no-results-text": "No results",
52
+ "search-matching-documents-text": "matching documents",
53
+ "search-copy-link-title": "Copy link to search",
54
+ "search-hide-matches-text": "Hide additional matches",
55
+ "search-more-match-text": "more match in this document",
56
+ "search-more-matches-text": "more matches in this document",
57
+ "search-clear-button-title": "Clear",
58
+ "search-detached-cancel-button-title": "Cancel",
59
+ "search-submit-button-title": "Submit",
60
+ "search-label": "Search"
61
+ }
62
+ }</script>
63
+
64
+
65
+ <link rel="stylesheet" href="styles.css">
66
+ <meta property="og:title" content="lv-recipe-chatbot - edamam_api">
67
+ <meta property="og:description" content="Tinkering with the ">
68
+ <meta property="og:site-name" content="lv-recipe-chatbot">
69
+ <meta name="twitter:title" content="lv-recipe-chatbot - edamam_api">
70
+ <meta name="twitter:description" content="Tinkering with the ">
71
+ <meta name="twitter:card" content="summary">
72
+ </head>
73
+
74
+ <body class="nav-sidebar floating nav-fixed">
75
+
76
+ <div id="quarto-search-results"></div>
77
+ <header id="quarto-header" class="headroom fixed-top">
78
+ <nav class="navbar navbar-expand-lg navbar-dark ">
79
+ <div class="navbar-container container-fluid">
80
+ <div class="navbar-brand-container">
81
+ <a class="navbar-brand" href="./index.html">
82
+ <span class="navbar-title">lv-recipe-chatbot</span>
83
+ </a>
84
+ </div>
85
+ <div class="quarto-navbar-tools ms-auto">
86
+ </div>
87
+ <div id="quarto-search" class="" title="Search"></div>
88
+ </div> <!-- /container-fluid -->
89
+ </nav>
90
+ <nav class="quarto-secondary-nav">
91
+ <div class="container-fluid d-flex">
92
+ <button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
93
+ <i class="bi bi-layout-text-sidebar-reverse"></i>
94
+ </button>
95
+ <nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./edamam_api.html">edamam_api</a></li></ol></nav>
96
+ <a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
97
+ </a>
98
+ </div>
99
+ </nav>
100
+ </header>
101
+ <!-- content -->
102
+ <div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
103
+ <!-- sidebar -->
104
+ <nav id="quarto-sidebar" class="sidebar collapse collapse-horizontal sidebar-navigation floating overflow-auto">
105
+ <div class="sidebar-menu-container">
106
+ <ul class="list-unstyled mt-1">
107
+ <li class="sidebar-item">
108
+ <div class="sidebar-item-container">
109
+ <a href="./index.html" class="sidebar-item-text sidebar-link">
110
+ <span class="menu-text">lv-recipe-chatbot</span></a>
111
+ </div>
112
+ </li>
113
+ <li class="sidebar-item">
114
+ <div class="sidebar-item-container">
115
+ <a href="./engineer_prompt.html" class="sidebar-item-text sidebar-link">
116
+ <span class="menu-text">engineer_prompt</span></a>
117
+ </div>
118
+ </li>
119
+ <li class="sidebar-item">
120
+ <div class="sidebar-item-container">
121
+ <a href="./app.html" class="sidebar-item-text sidebar-link">
122
+ <span class="menu-text">app</span></a>
123
+ </div>
124
+ </li>
125
+ <li class="sidebar-item">
126
+ <div class="sidebar-item-container">
127
+ <a href="./lchain_tool.html" class="sidebar-item-text sidebar-link">
128
+ <span class="menu-text">lchain_tool</span></a>
129
+ </div>
130
+ </li>
131
+ <li class="sidebar-item">
132
+ <div class="sidebar-item-container">
133
+ <a href="./ingredient_vision.html" class="sidebar-item-text sidebar-link">
134
+ <span class="menu-text">ingredient_vision</span></a>
135
+ </div>
136
+ </li>
137
+ <li class="sidebar-item">
138
+ <div class="sidebar-item-container">
139
+ <a href="./edamam_api.html" class="sidebar-item-text sidebar-link active">
140
+ <span class="menu-text">edamam_api</span></a>
141
+ </div>
142
+ </li>
143
+ </ul>
144
+ </div>
145
+ </nav>
146
+ <div id="quarto-sidebar-glass" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass"></div>
147
+ <!-- margin-sidebar -->
148
+ <div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
149
+ <nav id="TOC" role="doc-toc" class="toc-active">
150
+ <h2 id="toc-title">On this page</h2>
151
+
152
+ <ul>
153
+ <li><a href="#foo" id="toc-foo" class="nav-link active" data-scroll-target="#foo">foo</a></li>
154
+ </ul>
155
+ <div class="toc-actions"><div><i class="bi bi-git"></i></div><div class="action-links"><p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/issues/new" class="toc-action">Report an issue</a></p></div></div></nav>
156
+ </div>
157
+ <!-- main -->
158
+ <main class="content" id="quarto-document-content">
159
+
160
+ <header id="title-block-header" class="quarto-title-block default">
161
+ <div class="quarto-title">
162
+ <h1 class="title">edamam_api</h1>
163
+ </div>
164
+
165
+ <div>
166
+ <div class="description">
167
+ Tinkering with the <a href="Edamam API"></a>
168
+ </div>
169
+ </div>
170
+
171
+
172
+ <div class="quarto-title-meta">
173
+
174
+
175
+
176
+
177
+ </div>
178
+
179
+
180
+ </header>
181
+
182
+ <!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
183
+ <hr>
184
+ <p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/edamam_api.py#L7" target="_blank" style="float:right; font-size:smaller">source</a></p>
185
+ <section id="foo" class="level3">
186
+ <h3 class="anchored" data-anchor-id="foo">foo</h3>
187
+ <blockquote class="blockquote">
188
+ <pre><code> foo ()</code></pre>
189
+ </blockquote>
190
+
191
+
192
+ </section>
193
+
194
+ </main> <!-- /main -->
195
+ <script id="quarto-html-after-body" type="application/javascript">
196
+ window.document.addEventListener("DOMContentLoaded", function (event) {
197
+ const toggleBodyColorMode = (bsSheetEl) => {
198
+ const mode = bsSheetEl.getAttribute("data-mode");
199
+ const bodyEl = window.document.querySelector("body");
200
+ if (mode === "dark") {
201
+ bodyEl.classList.add("quarto-dark");
202
+ bodyEl.classList.remove("quarto-light");
203
+ } else {
204
+ bodyEl.classList.add("quarto-light");
205
+ bodyEl.classList.remove("quarto-dark");
206
+ }
207
+ }
208
+ const toggleBodyColorPrimary = () => {
209
+ const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
210
+ if (bsSheetEl) {
211
+ toggleBodyColorMode(bsSheetEl);
212
+ }
213
+ }
214
+ toggleBodyColorPrimary();
215
+ const icon = "";
216
+ const anchorJS = new window.AnchorJS();
217
+ anchorJS.options = {
218
+ placement: 'right',
219
+ icon: icon
220
+ };
221
+ anchorJS.add('.anchored');
222
+ const isCodeAnnotation = (el) => {
223
+ for (const clz of el.classList) {
224
+ if (clz.startsWith('code-annotation-')) {
225
+ return true;
226
+ }
227
+ }
228
+ return false;
229
+ }
230
+ const clipboard = new window.ClipboardJS('.code-copy-button', {
231
+ text: function(trigger) {
232
+ const codeEl = trigger.previousElementSibling.cloneNode(true);
233
+ for (const childEl of codeEl.children) {
234
+ if (isCodeAnnotation(childEl)) {
235
+ childEl.remove();
236
+ }
237
+ }
238
+ return codeEl.innerText;
239
+ }
240
+ });
241
+ clipboard.on('success', function(e) {
242
+ // button target
243
+ const button = e.trigger;
244
+ // don't keep focus
245
+ button.blur();
246
+ // flash "checked"
247
+ button.classList.add('code-copy-button-checked');
248
+ var currentTitle = button.getAttribute("title");
249
+ button.setAttribute("title", "Copied!");
250
+ let tooltip;
251
+ if (window.bootstrap) {
252
+ button.setAttribute("data-bs-toggle", "tooltip");
253
+ button.setAttribute("data-bs-placement", "left");
254
+ button.setAttribute("data-bs-title", "Copied!");
255
+ tooltip = new bootstrap.Tooltip(button,
256
+ { trigger: "manual",
257
+ customClass: "code-copy-button-tooltip",
258
+ offset: [0, -8]});
259
+ tooltip.show();
260
+ }
261
+ setTimeout(function() {
262
+ if (tooltip) {
263
+ tooltip.hide();
264
+ button.removeAttribute("data-bs-title");
265
+ button.removeAttribute("data-bs-toggle");
266
+ button.removeAttribute("data-bs-placement");
267
+ }
268
+ button.setAttribute("title", currentTitle);
269
+ button.classList.remove('code-copy-button-checked');
270
+ }, 1000);
271
+ // clear code selection
272
+ e.clearSelection();
273
+ });
274
+ function tippyHover(el, contentFn) {
275
+ const config = {
276
+ allowHTML: true,
277
+ content: contentFn,
278
+ maxWidth: 500,
279
+ delay: 100,
280
+ arrow: false,
281
+ appendTo: function(el) {
282
+ return el.parentElement;
283
+ },
284
+ interactive: true,
285
+ interactiveBorder: 10,
286
+ theme: 'quarto',
287
+ placement: 'bottom-start'
288
+ };
289
+ window.tippy(el, config);
290
+ }
291
+ const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
292
+ for (var i=0; i<noterefs.length; i++) {
293
+ const ref = noterefs[i];
294
+ tippyHover(ref, function() {
295
+ // use id or data attribute instead here
296
+ let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
297
+ try { href = new URL(href).hash; } catch {}
298
+ const id = href.replace(/^#\/?/, "");
299
+ const note = window.document.getElementById(id);
300
+ return note.innerHTML;
301
+ });
302
+ }
303
+ let selectedAnnoteEl;
304
+ const selectorForAnnotation = ( cell, annotation) => {
305
+ let cellAttr = 'data-code-cell="' + cell + '"';
306
+ let lineAttr = 'data-code-annotation="' + annotation + '"';
307
+ const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
308
+ return selector;
309
+ }
310
+ const selectCodeLines = (annoteEl) => {
311
+ const doc = window.document;
312
+ const targetCell = annoteEl.getAttribute("data-target-cell");
313
+ const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
314
+ const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
315
+ const lines = annoteSpan.getAttribute("data-code-lines").split(",");
316
+ const lineIds = lines.map((line) => {
317
+ return targetCell + "-" + line;
318
+ })
319
+ let top = null;
320
+ let height = null;
321
+ let parent = null;
322
+ if (lineIds.length > 0) {
323
+ //compute the position of the single el (top and bottom and make a div)
324
+ const el = window.document.getElementById(lineIds[0]);
325
+ top = el.offsetTop;
326
+ height = el.offsetHeight;
327
+ parent = el.parentElement.parentElement;
328
+ if (lineIds.length > 1) {
329
+ const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
330
+ const bottom = lastEl.offsetTop + lastEl.offsetHeight;
331
+ height = bottom - top;
332
+ }
333
+ if (top !== null && height !== null && parent !== null) {
334
+ // cook up a div (if necessary) and position it
335
+ let div = window.document.getElementById("code-annotation-line-highlight");
336
+ if (div === null) {
337
+ div = window.document.createElement("div");
338
+ div.setAttribute("id", "code-annotation-line-highlight");
339
+ div.style.position = 'absolute';
340
+ parent.appendChild(div);
341
+ }
342
+ div.style.top = top - 2 + "px";
343
+ div.style.height = height + 4 + "px";
344
+ let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
345
+ if (gutterDiv === null) {
346
+ gutterDiv = window.document.createElement("div");
347
+ gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
348
+ gutterDiv.style.position = 'absolute';
349
+ const codeCell = window.document.getElementById(targetCell);
350
+ const gutter = codeCell.querySelector('.code-annotation-gutter');
351
+ gutter.appendChild(gutterDiv);
352
+ }
353
+ gutterDiv.style.top = top - 2 + "px";
354
+ gutterDiv.style.height = height + 4 + "px";
355
+ }
356
+ selectedAnnoteEl = annoteEl;
357
+ }
358
+ };
359
+ const unselectCodeLines = () => {
360
+ const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
361
+ elementsIds.forEach((elId) => {
362
+ const div = window.document.getElementById(elId);
363
+ if (div) {
364
+ div.remove();
365
+ }
366
+ });
367
+ selectedAnnoteEl = undefined;
368
+ };
369
+ // Attach click handler to the DT
370
+ const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
371
+ for (const annoteDlNode of annoteDls) {
372
+ annoteDlNode.addEventListener('click', (event) => {
373
+ const clickedEl = event.target;
374
+ if (clickedEl !== selectedAnnoteEl) {
375
+ unselectCodeLines();
376
+ const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
377
+ if (activeEl) {
378
+ activeEl.classList.remove('code-annotation-active');
379
+ }
380
+ selectCodeLines(clickedEl);
381
+ clickedEl.classList.add('code-annotation-active');
382
+ } else {
383
+ // Unselect the line
384
+ unselectCodeLines();
385
+ clickedEl.classList.remove('code-annotation-active');
386
+ }
387
+ });
388
+ }
389
+ const findCites = (el) => {
390
+ const parentEl = el.parentElement;
391
+ if (parentEl) {
392
+ const cites = parentEl.dataset.cites;
393
+ if (cites) {
394
+ return {
395
+ el,
396
+ cites: cites.split(' ')
397
+ };
398
+ } else {
399
+ return findCites(el.parentElement)
400
+ }
401
+ } else {
402
+ return undefined;
403
+ }
404
+ };
405
+ var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
406
+ for (var i=0; i<bibliorefs.length; i++) {
407
+ const ref = bibliorefs[i];
408
+ const citeInfo = findCites(ref);
409
+ if (citeInfo) {
410
+ tippyHover(citeInfo.el, function() {
411
+ var popup = window.document.createElement('div');
412
+ citeInfo.cites.forEach(function(cite) {
413
+ var citeDiv = window.document.createElement('div');
414
+ citeDiv.classList.add('hanging-indent');
415
+ citeDiv.classList.add('csl-entry');
416
+ var biblioDiv = window.document.getElementById('ref-' + cite);
417
+ if (biblioDiv) {
418
+ citeDiv.innerHTML = biblioDiv.innerHTML;
419
+ }
420
+ popup.appendChild(citeDiv);
421
+ });
422
+ return popup.innerHTML;
423
+ });
424
+ }
425
+ }
426
+ });
427
+ </script>
428
+ </div> <!-- /content -->
429
+
430
+
431
+
432
+ </body></html>
_proc/_docs/engineer_prompt.html ADDED
@@ -0,0 +1,589 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
3
+
4
+ <meta charset="utf-8">
5
+ <meta name="generator" content="quarto-1.3.361">
6
+
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
8
+
9
+ <meta name="description" content="Engineering prompts">
10
+
11
+ <title>lv-recipe-chatbot - engineer_prompt</title>
12
+ <style>
13
+ code{white-space: pre-wrap;}
14
+ span.smallcaps{font-variant: small-caps;}
15
+ div.columns{display: flex; gap: min(4vw, 1.5em);}
16
+ div.column{flex: auto; overflow-x: auto;}
17
+ div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
18
+ ul.task-list{list-style: none;}
19
+ ul.task-list li input[type="checkbox"] {
20
+ width: 0.8em;
21
+ margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
22
+ vertical-align: middle;
23
+ }
24
+ /* CSS for syntax highlighting */
25
+ pre > code.sourceCode { white-space: pre; position: relative; }
26
+ pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
27
+ pre > code.sourceCode > span:empty { height: 1.2em; }
28
+ .sourceCode { overflow: visible; }
29
+ code.sourceCode > span { color: inherit; text-decoration: inherit; }
30
+ div.sourceCode { margin: 1em 0; }
31
+ pre.sourceCode { margin: 0; }
32
+ @media screen {
33
+ div.sourceCode { overflow: auto; }
34
+ }
35
+ @media print {
36
+ pre > code.sourceCode { white-space: pre-wrap; }
37
+ pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
38
+ }
39
+ pre.numberSource code
40
+ { counter-reset: source-line 0; }
41
+ pre.numberSource code > span
42
+ { position: relative; left: -4em; counter-increment: source-line; }
43
+ pre.numberSource code > span > a:first-child::before
44
+ { content: counter(source-line);
45
+ position: relative; left: -1em; text-align: right; vertical-align: baseline;
46
+ border: none; display: inline-block;
47
+ -webkit-touch-callout: none; -webkit-user-select: none;
48
+ -khtml-user-select: none; -moz-user-select: none;
49
+ -ms-user-select: none; user-select: none;
50
+ padding: 0 4px; width: 4em;
51
+ }
52
+ pre.numberSource { margin-left: 3em; padding-left: 4px; }
53
+ div.sourceCode
54
+ { }
55
+ @media screen {
56
+ pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
57
+ }
58
+ </style>
59
+
60
+
61
+ <script src="site_libs/quarto-nav/quarto-nav.js"></script>
62
+ <script src="site_libs/quarto-nav/headroom.min.js"></script>
63
+ <script src="site_libs/clipboard/clipboard.min.js"></script>
64
+ <script src="site_libs/quarto-search/autocomplete.umd.js"></script>
65
+ <script src="site_libs/quarto-search/fuse.min.js"></script>
66
+ <script src="site_libs/quarto-search/quarto-search.js"></script>
67
+ <meta name="quarto:offset" content="./">
68
+ <script src="site_libs/quarto-html/quarto.js"></script>
69
+ <script src="site_libs/quarto-html/popper.min.js"></script>
70
+ <script src="site_libs/quarto-html/tippy.umd.min.js"></script>
71
+ <script src="site_libs/quarto-html/anchor.min.js"></script>
72
+ <link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
73
+ <link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
74
+ <script src="site_libs/bootstrap/bootstrap.min.js"></script>
75
+ <link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
76
+ <link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
77
+ <script id="quarto-search-options" type="application/json">{
78
+ "location": "navbar",
79
+ "copy-button": false,
80
+ "collapse-after": 3,
81
+ "panel-placement": "end",
82
+ "type": "overlay",
83
+ "limit": 20,
84
+ "language": {
85
+ "search-no-results-text": "No results",
86
+ "search-matching-documents-text": "matching documents",
87
+ "search-copy-link-title": "Copy link to search",
88
+ "search-hide-matches-text": "Hide additional matches",
89
+ "search-more-match-text": "more match in this document",
90
+ "search-more-matches-text": "more matches in this document",
91
+ "search-clear-button-title": "Clear",
92
+ "search-detached-cancel-button-title": "Cancel",
93
+ "search-submit-button-title": "Submit",
94
+ "search-label": "Search"
95
+ }
96
+ }</script>
97
+
98
+
99
+ <link rel="stylesheet" href="styles.css">
100
+ <meta property="og:title" content="lv-recipe-chatbot - engineer_prompt">
101
+ <meta property="og:description" content="Engineering prompts">
102
+ <meta property="og:site-name" content="lv-recipe-chatbot">
103
+ <meta name="twitter:title" content="lv-recipe-chatbot - engineer_prompt">
104
+ <meta name="twitter:description" content="Engineering prompts">
105
+ <meta name="twitter:card" content="summary">
106
+ </head>
107
+
108
+ <body class="nav-sidebar floating nav-fixed">
109
+
110
+ <div id="quarto-search-results"></div>
111
+ <header id="quarto-header" class="headroom fixed-top">
112
+ <nav class="navbar navbar-expand-lg navbar-dark ">
113
+ <div class="navbar-container container-fluid">
114
+ <div class="navbar-brand-container">
115
+ <a class="navbar-brand" href="./index.html">
116
+ <span class="navbar-title">lv-recipe-chatbot</span>
117
+ </a>
118
+ </div>
119
+ <div class="quarto-navbar-tools ms-auto">
120
+ </div>
121
+ <div id="quarto-search" class="" title="Search"></div>
122
+ </div> <!-- /container-fluid -->
123
+ </nav>
124
+ <nav class="quarto-secondary-nav">
125
+ <div class="container-fluid d-flex">
126
+ <button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
127
+ <i class="bi bi-layout-text-sidebar-reverse"></i>
128
+ </button>
129
+ <nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./engineer_prompt.html">engineer_prompt</a></li></ol></nav>
130
+ <a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
131
+ </a>
132
+ </div>
133
+ </nav>
134
+ </header>
135
+ <!-- content -->
136
+ <div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
137
+ <!-- sidebar -->
138
+ <nav id="quarto-sidebar" class="sidebar collapse collapse-horizontal sidebar-navigation floating overflow-auto">
139
+ <div class="sidebar-menu-container">
140
+ <ul class="list-unstyled mt-1">
141
+ <li class="sidebar-item">
142
+ <div class="sidebar-item-container">
143
+ <a href="./index.html" class="sidebar-item-text sidebar-link">
144
+ <span class="menu-text">lv-recipe-chatbot</span></a>
145
+ </div>
146
+ </li>
147
+ <li class="sidebar-item">
148
+ <div class="sidebar-item-container">
149
+ <a href="./engineer_prompt.html" class="sidebar-item-text sidebar-link active">
150
+ <span class="menu-text">engineer_prompt</span></a>
151
+ </div>
152
+ </li>
153
+ <li class="sidebar-item">
154
+ <div class="sidebar-item-container">
155
+ <a href="./app.html" class="sidebar-item-text sidebar-link">
156
+ <span class="menu-text">app</span></a>
157
+ </div>
158
+ </li>
159
+ <li class="sidebar-item">
160
+ <div class="sidebar-item-container">
161
+ <a href="./lchain_tool.html" class="sidebar-item-text sidebar-link">
162
+ <span class="menu-text">lchain_tool</span></a>
163
+ </div>
164
+ </li>
165
+ <li class="sidebar-item">
166
+ <div class="sidebar-item-container">
167
+ <a href="./ingredient_vision.html" class="sidebar-item-text sidebar-link">
168
+ <span class="menu-text">ingredient_vision</span></a>
169
+ </div>
170
+ </li>
171
+ <li class="sidebar-item">
172
+ <div class="sidebar-item-container">
173
+ <a href="./edamam_api.html" class="sidebar-item-text sidebar-link">
174
+ <span class="menu-text">edamam_api</span></a>
175
+ </div>
176
+ </li>
177
+ </ul>
178
+ </div>
179
+ </nav>
180
+ <div id="quarto-sidebar-glass" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass"></div>
181
+ <!-- margin-sidebar -->
182
+ <div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
183
+
184
+ </div>
185
+ <!-- main -->
186
+ <main class="content" id="quarto-document-content">
187
+
188
+ <header id="title-block-header" class="quarto-title-block default">
189
+ <div class="quarto-title">
190
+ <h1 class="title">engineer_prompt</h1>
191
+ </div>
192
+
193
+ <div>
194
+ <div class="description">
195
+ Engineering prompts
196
+ </div>
197
+ </div>
198
+
199
+
200
+ <div class="quarto-title-meta">
201
+
202
+
203
+
204
+
205
+ </div>
206
+
207
+
208
+ </header>
209
+
210
+ <!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
211
+ <p>Setup env</p>
212
+ <div class="cell">
213
+ <div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> dotenv <span class="im">import</span> load_dotenv</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
214
+ </div>
215
+ <div class="cell">
216
+ <div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>load_dotenv()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
217
+ <div class="cell-output cell-output-display">
218
+ <pre><code>True</code></pre>
219
+ </div>
220
+ </div>
221
+ <p>Evaluate chat backend</p>
222
+ <div class="cell">
223
+ <div class="sourceCode cell-code" id="cb4"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>chat <span class="op">=</span> PromptLayerChatOpenAI(temperature<span class="op">=</span><span class="dv">1</span>, pl_tags<span class="op">=</span>[<span class="st">"langchain"</span>], return_pl_id<span class="op">=</span><span class="va">True</span>)</span>
224
+ <span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a>memory <span class="op">=</span> ConversationBufferMemory(return_messages<span class="op">=</span><span class="va">True</span>)</span>
225
+ <span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a>chat_msgs <span class="op">=</span> init_prompt.format_prompt(</span>
226
+ <span id="cb4-4"><a href="#cb4-4" aria-hidden="true" tabindex="-1"></a> ingredients<span class="op">=</span><span class="st">"tofu, pickles, olives, tomatoes, lettuce, bell peppers, carrots, bread"</span>,</span>
227
+ <span id="cb4-5"><a href="#cb4-5" aria-hidden="true" tabindex="-1"></a> allergies<span class="op">=</span><span class="st">""</span>,</span>
228
+ <span id="cb4-6"><a href="#cb4-6" aria-hidden="true" tabindex="-1"></a> recipe_freeform_input<span class="op">=</span><span class="st">"The preparation time should be less than 30 minutes. I really love Thai food!"</span>,</span>
229
+ <span id="cb4-7"><a href="#cb4-7" aria-hidden="true" tabindex="-1"></a>)</span>
230
+ <span id="cb4-8"><a href="#cb4-8" aria-hidden="true" tabindex="-1"></a></span>
231
+ <span id="cb4-9"><a href="#cb4-9" aria-hidden="true" tabindex="-1"></a>chat_msgs <span class="op">=</span> chat_msgs.to_messages()</span>
232
+ <span id="cb4-10"><a href="#cb4-10" aria-hidden="true" tabindex="-1"></a>results <span class="op">=</span> chat.generate([chat_msgs])</span>
233
+ <span id="cb4-11"><a href="#cb4-11" aria-hidden="true" tabindex="-1"></a>chat_msgs.extend(</span>
234
+ <span id="cb4-12"><a href="#cb4-12" aria-hidden="true" tabindex="-1"></a> [</span>
235
+ <span id="cb4-13"><a href="#cb4-13" aria-hidden="true" tabindex="-1"></a> results.generations[<span class="dv">0</span>][<span class="dv">0</span>].message,</span>
236
+ <span id="cb4-14"><a href="#cb4-14" aria-hidden="true" tabindex="-1"></a> MessagesPlaceholder(variable_name<span class="op">=</span><span class="st">"history"</span>),</span>
237
+ <span id="cb4-15"><a href="#cb4-15" aria-hidden="true" tabindex="-1"></a> HumanMessagePromptTemplate.from_template(<span class="st">"</span><span class="sc">{input}</span><span class="st">"</span>),</span>
238
+ <span id="cb4-16"><a href="#cb4-16" aria-hidden="true" tabindex="-1"></a> ]</span>
239
+ <span id="cb4-17"><a href="#cb4-17" aria-hidden="true" tabindex="-1"></a>)</span>
240
+ <span id="cb4-18"><a href="#cb4-18" aria-hidden="true" tabindex="-1"></a>open_prompt <span class="op">=</span> ChatPromptTemplate.from_messages(chat_msgs)</span>
241
+ <span id="cb4-19"><a href="#cb4-19" aria-hidden="true" tabindex="-1"></a>conversation <span class="op">=</span> ConversationChain(</span>
242
+ <span id="cb4-20"><a href="#cb4-20" aria-hidden="true" tabindex="-1"></a> llm<span class="op">=</span>chat, verbose<span class="op">=</span><span class="va">True</span>, memory<span class="op">=</span>memory, prompt<span class="op">=</span>open_prompt</span>
243
+ <span id="cb4-21"><a href="#cb4-21" aria-hidden="true" tabindex="-1"></a>)</span>
244
+ <span id="cb4-22"><a href="#cb4-22" aria-hidden="true" tabindex="-1"></a></span>
245
+ <span id="cb4-23"><a href="#cb4-23" aria-hidden="true" tabindex="-1"></a>result <span class="op">=</span> conversation.predict(<span class="bu">input</span><span class="op">=</span><span class="st">"Recommend a different recipe please."</span>)</span>
246
+ <span id="cb4-24"><a href="#cb4-24" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(result)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
247
+ <div class="cell-output cell-output-stderr">
248
+ <pre><code>Anthropic module not found. Install with `pip install anthropic`.
249
+ WARNING: While logging your request PromptLayer had the following error: Invalid API key, please check your PromptLayer API key and try again
250
+ WARNING: While logging your request PromptLayer had the following error: Invalid API key, please check your PromptLayer API key and try again</code></pre>
251
+ </div>
252
+ <div class="cell-output cell-output-stdout">
253
+ <pre><code>
254
+
255
+ &gt; Entering new ConversationChain chain...
256
+ Prompt after formatting:
257
+ System: The following is a conversation between a human and a friendly AI chef.
258
+ The AI is compassionate to animals and only recommends vegan recipes based on the ingredients, allergies, and other preferences the human has.
259
+
260
+ Knowledge: A vegan diet implies a plant-based diet avoiding all animal foods such as meat (including fish, shellfish and insects), dairy, eggs and honey
261
+
262
+ Let's think step by step.
263
+ If the human messages are unrelated to vegan recipes, remind them of your purpose to recommend vegan recipes.
264
+ AI: What ingredients do you wish to cook with?
265
+ Human: Ingredients: tofu, pickles, olives, tomatoes, lettuce, bell peppers, carrots, bread
266
+ AI: Do you have any allergies I should be aware of?
267
+ Human: Allergies:
268
+ AI: Do you have any preferences I should consider for the recipe such as preparation time, difficulty, or cuisine region?
269
+ Human: Give me a vegan recipe that includes at least a few of the ingredients provided (if any).
270
+ Respect the human's allergies (if any).
271
+ Follow these other preferences as closely as possible if they are inline with your purpose of recommending vegan recipes:
272
+
273
+ ###
274
+ Preferences: The preparation time should be less than 30 minutes. I really love Thai food!
275
+ ###
276
+
277
+ Output format:
278
+
279
+ **Vegan recipe name**
280
+ Preparation time (humanized)
281
+
282
+ Ingredients (List of ingredients with quantities):
283
+ - &lt;quantity and unit&gt; &lt;ingredient&gt;
284
+
285
+ Steps (detailed):
286
+ 1.
287
+ 2.
288
+ 3.
289
+ ...
290
+ AI: Here is a Thai-inspired vegan recipe for you:
291
+
292
+ **Thai Tofu Lettuce Wraps**
293
+ Preparation time: Less than 30 minutes
294
+
295
+ Ingredients:
296
+ - 1/2 block of firm tofu, crumbled
297
+ - 1/4 cup pickles, chopped
298
+ - 1/4 cup olives, sliced
299
+ - 1/2 bell pepper, sliced
300
+ - 1/2 carrot, finely chopped
301
+ - 4-6 lettuce leaves
302
+ - 2 tablespoons soy sauce
303
+ - 1 tablespoon rice vinegar
304
+ - 1 tablespoon agave nectar
305
+ - 1/2 tablespoon garlic powder
306
+ - 1/2 tablespoon onion powder
307
+ - 1/2 teaspoon dried basil
308
+ - 1/2 teaspoon dried oregano
309
+ - 1/2 teaspoon salt
310
+ - 1/4 teaspoon black pepper
311
+ - 4-6 slices of bread, toasted
312
+
313
+ Steps:
314
+ 1. In a large bowl, combine crumbled tofu, pickles, olives, bell pepper, and carrot.
315
+ 2. In a small bowl, whisk together soy sauce, rice vinegar, agave nectar, garlic powder, onion powder, basil, oregano, salt, and black pepper.
316
+ 3. Pour the dressing over the tofu mixture, and stir until everything is coated.
317
+ 4. Place a spoonful of the tofu mixture into each lettuce leaf, and serve with a slice of toasted bread.
318
+ Human: Recommend a different recipe please.
319
+
320
+ &gt; Finished chain.
321
+ Sure, how about this recipe that incorporates more of the ingredients you provided?
322
+
323
+ **Vegan Mediterranean Tofu Sandwich**
324
+ Preparation time: Less than 30 minutes
325
+
326
+ Ingredients:
327
+ - 1/2 block of firm tofu, sliced
328
+ - 2 teaspoons olive oil
329
+ - 1/2 teaspoon dried oregano
330
+ - 1/2 teaspoon dried basil
331
+ - Salt and pepper to taste
332
+ - 2 slices of bread
333
+ - 1/4 cup hummus
334
+ - 2-3 lettuce leaves
335
+ - 1/4 cup sliced tomatoes
336
+ - 1/4 cup sliced bell peppers
337
+ - 1/4 cup grated carrot
338
+
339
+ Steps:
340
+ 1. Preheat the oven to 375°F.
341
+ 2. In a small bowl, mix olive oil, oregano, basil, salt, and pepper, and place tofu slices on a baking sheet. Brush tofu with the olive oil mixture, covering both sides.
342
+ 3. Place the baking sheet in the oven and bake the tofu for 15 minutes, flipping the slices halfway through.
343
+ 4. Toast the bread slices.
344
+ 5. Spread the hummus on one slice of bread, and layer lettuce, tomatoes, bell peppers, grated carrot, and baked tofu on top. Top with the other slice of bread.
345
+ 6. Slice the sandwich in half, and enjoy!</code></pre>
346
+ </div>
347
+ </div>
348
+
349
+
350
+
351
+ </main> <!-- /main -->
352
+ <script id="quarto-html-after-body" type="application/javascript">
353
+ window.document.addEventListener("DOMContentLoaded", function (event) {
354
+ const toggleBodyColorMode = (bsSheetEl) => {
355
+ const mode = bsSheetEl.getAttribute("data-mode");
356
+ const bodyEl = window.document.querySelector("body");
357
+ if (mode === "dark") {
358
+ bodyEl.classList.add("quarto-dark");
359
+ bodyEl.classList.remove("quarto-light");
360
+ } else {
361
+ bodyEl.classList.add("quarto-light");
362
+ bodyEl.classList.remove("quarto-dark");
363
+ }
364
+ }
365
+ const toggleBodyColorPrimary = () => {
366
+ const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
367
+ if (bsSheetEl) {
368
+ toggleBodyColorMode(bsSheetEl);
369
+ }
370
+ }
371
+ toggleBodyColorPrimary();
372
+ const icon = "";
373
+ const anchorJS = new window.AnchorJS();
374
+ anchorJS.options = {
375
+ placement: 'right',
376
+ icon: icon
377
+ };
378
+ anchorJS.add('.anchored');
379
+ const isCodeAnnotation = (el) => {
380
+ for (const clz of el.classList) {
381
+ if (clz.startsWith('code-annotation-')) {
382
+ return true;
383
+ }
384
+ }
385
+ return false;
386
+ }
387
+ const clipboard = new window.ClipboardJS('.code-copy-button', {
388
+ text: function(trigger) {
389
+ const codeEl = trigger.previousElementSibling.cloneNode(true);
390
+ for (const childEl of codeEl.children) {
391
+ if (isCodeAnnotation(childEl)) {
392
+ childEl.remove();
393
+ }
394
+ }
395
+ return codeEl.innerText;
396
+ }
397
+ });
398
+ clipboard.on('success', function(e) {
399
+ // button target
400
+ const button = e.trigger;
401
+ // don't keep focus
402
+ button.blur();
403
+ // flash "checked"
404
+ button.classList.add('code-copy-button-checked');
405
+ var currentTitle = button.getAttribute("title");
406
+ button.setAttribute("title", "Copied!");
407
+ let tooltip;
408
+ if (window.bootstrap) {
409
+ button.setAttribute("data-bs-toggle", "tooltip");
410
+ button.setAttribute("data-bs-placement", "left");
411
+ button.setAttribute("data-bs-title", "Copied!");
412
+ tooltip = new bootstrap.Tooltip(button,
413
+ { trigger: "manual",
414
+ customClass: "code-copy-button-tooltip",
415
+ offset: [0, -8]});
416
+ tooltip.show();
417
+ }
418
+ setTimeout(function() {
419
+ if (tooltip) {
420
+ tooltip.hide();
421
+ button.removeAttribute("data-bs-title");
422
+ button.removeAttribute("data-bs-toggle");
423
+ button.removeAttribute("data-bs-placement");
424
+ }
425
+ button.setAttribute("title", currentTitle);
426
+ button.classList.remove('code-copy-button-checked');
427
+ }, 1000);
428
+ // clear code selection
429
+ e.clearSelection();
430
+ });
431
+ function tippyHover(el, contentFn) {
432
+ const config = {
433
+ allowHTML: true,
434
+ content: contentFn,
435
+ maxWidth: 500,
436
+ delay: 100,
437
+ arrow: false,
438
+ appendTo: function(el) {
439
+ return el.parentElement;
440
+ },
441
+ interactive: true,
442
+ interactiveBorder: 10,
443
+ theme: 'quarto',
444
+ placement: 'bottom-start'
445
+ };
446
+ window.tippy(el, config);
447
+ }
448
+ const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
449
+ for (var i=0; i<noterefs.length; i++) {
450
+ const ref = noterefs[i];
451
+ tippyHover(ref, function() {
452
+ // use id or data attribute instead here
453
+ let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
454
+ try { href = new URL(href).hash; } catch {}
455
+ const id = href.replace(/^#\/?/, "");
456
+ const note = window.document.getElementById(id);
457
+ return note.innerHTML;
458
+ });
459
+ }
460
+ let selectedAnnoteEl;
461
+ const selectorForAnnotation = ( cell, annotation) => {
462
+ let cellAttr = 'data-code-cell="' + cell + '"';
463
+ let lineAttr = 'data-code-annotation="' + annotation + '"';
464
+ const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
465
+ return selector;
466
+ }
467
+ const selectCodeLines = (annoteEl) => {
468
+ const doc = window.document;
469
+ const targetCell = annoteEl.getAttribute("data-target-cell");
470
+ const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
471
+ const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
472
+ const lines = annoteSpan.getAttribute("data-code-lines").split(",");
473
+ const lineIds = lines.map((line) => {
474
+ return targetCell + "-" + line;
475
+ })
476
+ let top = null;
477
+ let height = null;
478
+ let parent = null;
479
+ if (lineIds.length > 0) {
480
+ //compute the position of the single el (top and bottom and make a div)
481
+ const el = window.document.getElementById(lineIds[0]);
482
+ top = el.offsetTop;
483
+ height = el.offsetHeight;
484
+ parent = el.parentElement.parentElement;
485
+ if (lineIds.length > 1) {
486
+ const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
487
+ const bottom = lastEl.offsetTop + lastEl.offsetHeight;
488
+ height = bottom - top;
489
+ }
490
+ if (top !== null && height !== null && parent !== null) {
491
+ // cook up a div (if necessary) and position it
492
+ let div = window.document.getElementById("code-annotation-line-highlight");
493
+ if (div === null) {
494
+ div = window.document.createElement("div");
495
+ div.setAttribute("id", "code-annotation-line-highlight");
496
+ div.style.position = 'absolute';
497
+ parent.appendChild(div);
498
+ }
499
+ div.style.top = top - 2 + "px";
500
+ div.style.height = height + 4 + "px";
501
+ let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
502
+ if (gutterDiv === null) {
503
+ gutterDiv = window.document.createElement("div");
504
+ gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
505
+ gutterDiv.style.position = 'absolute';
506
+ const codeCell = window.document.getElementById(targetCell);
507
+ const gutter = codeCell.querySelector('.code-annotation-gutter');
508
+ gutter.appendChild(gutterDiv);
509
+ }
510
+ gutterDiv.style.top = top - 2 + "px";
511
+ gutterDiv.style.height = height + 4 + "px";
512
+ }
513
+ selectedAnnoteEl = annoteEl;
514
+ }
515
+ };
516
+ const unselectCodeLines = () => {
517
+ const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
518
+ elementsIds.forEach((elId) => {
519
+ const div = window.document.getElementById(elId);
520
+ if (div) {
521
+ div.remove();
522
+ }
523
+ });
524
+ selectedAnnoteEl = undefined;
525
+ };
526
+ // Attach click handler to the DT
527
+ const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
528
+ for (const annoteDlNode of annoteDls) {
529
+ annoteDlNode.addEventListener('click', (event) => {
530
+ const clickedEl = event.target;
531
+ if (clickedEl !== selectedAnnoteEl) {
532
+ unselectCodeLines();
533
+ const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
534
+ if (activeEl) {
535
+ activeEl.classList.remove('code-annotation-active');
536
+ }
537
+ selectCodeLines(clickedEl);
538
+ clickedEl.classList.add('code-annotation-active');
539
+ } else {
540
+ // Unselect the line
541
+ unselectCodeLines();
542
+ clickedEl.classList.remove('code-annotation-active');
543
+ }
544
+ });
545
+ }
546
+ const findCites = (el) => {
547
+ const parentEl = el.parentElement;
548
+ if (parentEl) {
549
+ const cites = parentEl.dataset.cites;
550
+ if (cites) {
551
+ return {
552
+ el,
553
+ cites: cites.split(' ')
554
+ };
555
+ } else {
556
+ return findCites(el.parentElement)
557
+ }
558
+ } else {
559
+ return undefined;
560
+ }
561
+ };
562
+ var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
563
+ for (var i=0; i<bibliorefs.length; i++) {
564
+ const ref = bibliorefs[i];
565
+ const citeInfo = findCites(ref);
566
+ if (citeInfo) {
567
+ tippyHover(citeInfo.el, function() {
568
+ var popup = window.document.createElement('div');
569
+ citeInfo.cites.forEach(function(cite) {
570
+ var citeDiv = window.document.createElement('div');
571
+ citeDiv.classList.add('hanging-indent');
572
+ citeDiv.classList.add('csl-entry');
573
+ var biblioDiv = window.document.getElementById('ref-' + cite);
574
+ if (biblioDiv) {
575
+ citeDiv.innerHTML = biblioDiv.innerHTML;
576
+ }
577
+ popup.appendChild(citeDiv);
578
+ });
579
+ return popup.innerHTML;
580
+ });
581
+ }
582
+ }
583
+ });
584
+ </script>
585
+ </div> <!-- /content -->
586
+
587
+
588
+
589
+ <footer class="footer"><div class="nav-footer"><div class="nav-footer-center"><div class="toc-actions"><div><i class="bi bi-git"></i></div><div class="action-links"><p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/issues/new" class="toc-action">Report an issue</a></p></div></div></div></div></footer></body></html>
_proc/_docs/index.html CHANGED
@@ -1,8 +1,541 @@
1
- <html xmlns="http://www.w3.org/1999/xhtml">
2
- <head>
3
- <title>Redirect to ingredient_vision.html</title>
4
- <meta http-equiv="refresh" content="0;URL='ingredient_vision.html'" />
5
- </head>
6
- <body>
7
- </body>
8
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
3
+
4
+ <meta charset="utf-8">
5
+ <meta name="generator" content="quarto-1.3.361">
6
+
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
8
+
9
+ <meta name="description" content="An experimental Vegan recipe chatbot">
10
+
11
+ <title>lv-recipe-chatbot</title>
12
+ <style>
13
+ code{white-space: pre-wrap;}
14
+ span.smallcaps{font-variant: small-caps;}
15
+ div.columns{display: flex; gap: min(4vw, 1.5em);}
16
+ div.column{flex: auto; overflow-x: auto;}
17
+ div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
18
+ ul.task-list{list-style: none;}
19
+ ul.task-list li input[type="checkbox"] {
20
+ width: 0.8em;
21
+ margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
22
+ vertical-align: middle;
23
+ }
24
+ /* CSS for syntax highlighting */
25
+ pre > code.sourceCode { white-space: pre; position: relative; }
26
+ pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
27
+ pre > code.sourceCode > span:empty { height: 1.2em; }
28
+ .sourceCode { overflow: visible; }
29
+ code.sourceCode > span { color: inherit; text-decoration: inherit; }
30
+ div.sourceCode { margin: 1em 0; }
31
+ pre.sourceCode { margin: 0; }
32
+ @media screen {
33
+ div.sourceCode { overflow: auto; }
34
+ }
35
+ @media print {
36
+ pre > code.sourceCode { white-space: pre-wrap; }
37
+ pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
38
+ }
39
+ pre.numberSource code
40
+ { counter-reset: source-line 0; }
41
+ pre.numberSource code > span
42
+ { position: relative; left: -4em; counter-increment: source-line; }
43
+ pre.numberSource code > span > a:first-child::before
44
+ { content: counter(source-line);
45
+ position: relative; left: -1em; text-align: right; vertical-align: baseline;
46
+ border: none; display: inline-block;
47
+ -webkit-touch-callout: none; -webkit-user-select: none;
48
+ -khtml-user-select: none; -moz-user-select: none;
49
+ -ms-user-select: none; user-select: none;
50
+ padding: 0 4px; width: 4em;
51
+ }
52
+ pre.numberSource { margin-left: 3em; padding-left: 4px; }
53
+ div.sourceCode
54
+ { }
55
+ @media screen {
56
+ pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
57
+ }
58
+ </style>
59
+
60
+
61
+ <script src="site_libs/quarto-nav/quarto-nav.js"></script>
62
+ <script src="site_libs/quarto-nav/headroom.min.js"></script>
63
+ <script src="site_libs/clipboard/clipboard.min.js"></script>
64
+ <script src="site_libs/quarto-search/autocomplete.umd.js"></script>
65
+ <script src="site_libs/quarto-search/fuse.min.js"></script>
66
+ <script src="site_libs/quarto-search/quarto-search.js"></script>
67
+ <meta name="quarto:offset" content="./">
68
+ <script src="site_libs/quarto-html/quarto.js"></script>
69
+ <script src="site_libs/quarto-html/popper.min.js"></script>
70
+ <script src="site_libs/quarto-html/tippy.umd.min.js"></script>
71
+ <script src="site_libs/quarto-html/anchor.min.js"></script>
72
+ <link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
73
+ <link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
74
+ <script src="site_libs/bootstrap/bootstrap.min.js"></script>
75
+ <link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
76
+ <link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
77
+ <script id="quarto-search-options" type="application/json">{
78
+ "location": "navbar",
79
+ "copy-button": false,
80
+ "collapse-after": 3,
81
+ "panel-placement": "end",
82
+ "type": "overlay",
83
+ "limit": 20,
84
+ "language": {
85
+ "search-no-results-text": "No results",
86
+ "search-matching-documents-text": "matching documents",
87
+ "search-copy-link-title": "Copy link to search",
88
+ "search-hide-matches-text": "Hide additional matches",
89
+ "search-more-match-text": "more match in this document",
90
+ "search-more-matches-text": "more matches in this document",
91
+ "search-clear-button-title": "Clear",
92
+ "search-detached-cancel-button-title": "Cancel",
93
+ "search-submit-button-title": "Submit",
94
+ "search-label": "Search"
95
+ }
96
+ }</script>
97
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" integrity="sha512-c3Nl8+7g4LMSTdrm621y7kf9v3SDPnhxLNhcjFJbKECVnmZHTdo+IRO05sNLTH/D3vA6u1X32ehoLC7WFVdheg==" crossorigin="anonymous"></script>
98
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" crossorigin="anonymous"></script>
99
+ <script type="application/javascript">define('jquery', [],function() {return window.jQuery;})</script>
100
+
101
+
102
+ <link rel="stylesheet" href="styles.css">
103
+ <meta property="og:title" content="lv-recipe-chatbot">
104
+ <meta property="og:description" content="An experimental Vegan recipe chatbot">
105
+ <meta property="og:site-name" content="lv-recipe-chatbot">
106
+ <meta name="twitter:title" content="lv-recipe-chatbot">
107
+ <meta name="twitter:description" content="An experimental Vegan recipe chatbot">
108
+ <meta name="twitter:card" content="summary">
109
+ </head>
110
+
111
+ <body class="nav-sidebar floating nav-fixed">
112
+
113
+ <div id="quarto-search-results"></div>
114
+ <header id="quarto-header" class="headroom fixed-top">
115
+ <nav class="navbar navbar-expand-lg navbar-dark ">
116
+ <div class="navbar-container container-fluid">
117
+ <div class="navbar-brand-container">
118
+ <a class="navbar-brand" href="./index.html">
119
+ <span class="navbar-title">lv-recipe-chatbot</span>
120
+ </a>
121
+ </div>
122
+ <div class="quarto-navbar-tools ms-auto">
123
+ </div>
124
+ <div id="quarto-search" class="" title="Search"></div>
125
+ </div> <!-- /container-fluid -->
126
+ </nav>
127
+ <nav class="quarto-secondary-nav">
128
+ <div class="container-fluid d-flex">
129
+ <button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
130
+ <i class="bi bi-layout-text-sidebar-reverse"></i>
131
+ </button>
132
+ <nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./index.html">lv-recipe-chatbot</a></li></ol></nav>
133
+ <a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
134
+ </a>
135
+ </div>
136
+ </nav>
137
+ </header>
138
+ <!-- content -->
139
+ <div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
140
+ <!-- sidebar -->
141
+ <nav id="quarto-sidebar" class="sidebar collapse collapse-horizontal sidebar-navigation floating overflow-auto">
142
+ <div class="sidebar-menu-container">
143
+ <ul class="list-unstyled mt-1">
144
+ <li class="sidebar-item">
145
+ <div class="sidebar-item-container">
146
+ <a href="./index.html" class="sidebar-item-text sidebar-link active">
147
+ <span class="menu-text">lv-recipe-chatbot</span></a>
148
+ </div>
149
+ </li>
150
+ <li class="sidebar-item">
151
+ <div class="sidebar-item-container">
152
+ <a href="./engineer_prompt.html" class="sidebar-item-text sidebar-link">
153
+ <span class="menu-text">engineer_prompt</span></a>
154
+ </div>
155
+ </li>
156
+ <li class="sidebar-item">
157
+ <div class="sidebar-item-container">
158
+ <a href="./app.html" class="sidebar-item-text sidebar-link">
159
+ <span class="menu-text">app</span></a>
160
+ </div>
161
+ </li>
162
+ <li class="sidebar-item">
163
+ <div class="sidebar-item-container">
164
+ <a href="./lchain_tool.html" class="sidebar-item-text sidebar-link">
165
+ <span class="menu-text">lchain_tool</span></a>
166
+ </div>
167
+ </li>
168
+ <li class="sidebar-item">
169
+ <div class="sidebar-item-container">
170
+ <a href="./ingredient_vision.html" class="sidebar-item-text sidebar-link">
171
+ <span class="menu-text">ingredient_vision</span></a>
172
+ </div>
173
+ </li>
174
+ <li class="sidebar-item">
175
+ <div class="sidebar-item-container">
176
+ <a href="./edamam_api.html" class="sidebar-item-text sidebar-link">
177
+ <span class="menu-text">edamam_api</span></a>
178
+ </div>
179
+ </li>
180
+ </ul>
181
+ </div>
182
+ </nav>
183
+ <div id="quarto-sidebar-glass" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass"></div>
184
+ <!-- margin-sidebar -->
185
+ <div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
186
+ <nav id="TOC" role="doc-toc" class="toc-active">
187
+ <h2 id="toc-title">On this page</h2>
188
+
189
+ <ul>
190
+ <li><a href="#install" id="toc-install" class="nav-link active" data-scroll-target="#install">Install</a></li>
191
+ <li><a href="#how-to-use" id="toc-how-to-use" class="nav-link" data-scroll-target="#how-to-use">How to use</a></li>
192
+ <li><a href="#dev-quick-start" id="toc-dev-quick-start" class="nav-link" data-scroll-target="#dev-quick-start">Dev quick-start</a></li>
193
+ <li><a href="#dependencies" id="toc-dependencies" class="nav-link" data-scroll-target="#dependencies">Dependencies</a></li>
194
+ <li><a href="#development" id="toc-development" class="nav-link" data-scroll-target="#development">Development</a></li>
195
+ <li><a href="#useful-links" id="toc-useful-links" class="nav-link" data-scroll-target="#useful-links">Useful links</a></li>
196
+ </ul>
197
+ <div class="toc-actions"><div><i class="bi bi-git"></i></div><div class="action-links"><p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/issues/new" class="toc-action">Report an issue</a></p></div></div></nav>
198
+ </div>
199
+ <!-- main -->
200
+ <main class="content" id="quarto-document-content">
201
+
202
+ <header id="title-block-header" class="quarto-title-block default">
203
+ <div class="quarto-title">
204
+ <h1 class="title">lv-recipe-chatbot</h1>
205
+ </div>
206
+
207
+ <div>
208
+ <div class="description">
209
+ An experimental Vegan recipe chatbot
210
+ </div>
211
+ </div>
212
+
213
+
214
+ <div class="quarto-title-meta">
215
+
216
+
217
+
218
+
219
+ </div>
220
+
221
+
222
+ </header>
223
+
224
+ <!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
225
+ <section id="install" class="level2">
226
+ <h2 class="anchored" data-anchor-id="install">Install</h2>
227
+ <div class="sourceCode" id="cb1"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pip</span> install <span class="at">-e</span> <span class="st">'.[dev]'</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
228
+ </section>
229
+ <section id="how-to-use" class="level2">
230
+ <h2 class="anchored" data-anchor-id="how-to-use">How to use</h2>
231
+ <div class="cell">
232
+ <div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> dotenv <span class="im">import</span> load_dotenv</span>
233
+ <span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a></span>
234
+ <span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a>load_dotenv() <span class="co"># or load environment vars with different method</span></span>
235
+ <span id="cb2-4"><a href="#cb2-4" aria-hidden="true" tabindex="-1"></a></span>
236
+ <span id="cb2-5"><a href="#cb2-5" aria-hidden="true" tabindex="-1"></a>demo <span class="op">=</span> app.create_demo(app.ConversationBot())</span>
237
+ <span id="cb2-6"><a href="#cb2-6" aria-hidden="true" tabindex="-1"></a>demo.launch()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
238
+ <div class="cell-output cell-output-stdout">
239
+ <pre><code>Running on local URL: http://127.0.0.1:7860
240
+
241
+ To create a public link, set `share=True` in `launch()`.</code></pre>
242
+ </div>
243
+ <div class="cell-output cell-output-display">
244
+ <div><iframe src="http://127.0.0.1:7860/" width="100%" height="500" allow="autoplay; camera; microphone; clipboard-read; clipboard-write;" frameborder="0" allowfullscreen=""></iframe></div>
245
+ </div>
246
+ <div class="cell-output cell-output-display">
247
+ <pre><code></code></pre>
248
+ </div>
249
+ </div>
250
+ <p>or</p>
251
+ <div class="sourceCode" id="cb5"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="ex">python3</span> app.py</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
252
+ </section>
253
+ <section id="dev-quick-start" class="level2">
254
+ <h2 class="anchored" data-anchor-id="dev-quick-start">Dev quick-start</h2>
255
+ <p><code>git clone</code> the repo</p>
256
+ <div class="sourceCode" id="cb6"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="bu">cd</span> lv-recipe-chatbot</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
257
+ <p>Make sure to use the version of python specified in <code>py_version.txt</code><br>
258
+ Create a virtual environment.</p>
259
+ <div class="sourceCode" id="cb7"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a><span class="ex">python3</span> <span class="at">-m</span> venv env</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
260
+ <p>Activate the env and install dependencies.</p>
261
+ <div class="sourceCode" id="cb8"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a><span class="bu">source</span> env/bin/activate</span>
262
+ <span id="cb8-2"><a href="#cb8-2" aria-hidden="true" tabindex="-1"></a><span class="ex">pip</span> install <span class="at">-r</span> requirements.txt</span>
263
+ <span id="cb8-3"><a href="#cb8-3" aria-hidden="true" tabindex="-1"></a><span class="ex">pip</span> install <span class="at">-r</span> requirements/dev.txt</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
264
+ <p>To make the Jupyter environment, git friendly: <code>nbdev_install_hooks</code><br>
265
+ If you want to render documentation locally, you will want to <a href="https://nbdev.fast.ai/tutorials/tutorial.html#install-quarto">install Quarto</a>.</p>
266
+ <p><code>nbdev_install_quarto</code></p>
267
+ <p>Put API secrets in .env</p>
268
+ <div class="sourceCode" id="cb9"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a><span class="fu">cp</span> .env.example .env</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
269
+ <p>Edit .env with your secret key(s). Only <code>OPEN_AI_KEY</code> is required.</p>
270
+ <p>Then start the Gradio demo from within the virtual environment.</p>
271
+ <div class="sourceCode" id="cb10"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a><span class="ex">python3</span> app.py</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
272
+ <p>Preview documentation</p>
273
+ <div class="sourceCode" id="cb11"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb11-1"><a href="#cb11-1" aria-hidden="true" tabindex="-1"></a><span class="ex">nbdev_preview</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
274
+ </section>
275
+ <section id="dependencies" class="level2">
276
+ <h2 class="anchored" data-anchor-id="dependencies">Dependencies</h2>
277
+ <p>If a new dependency for development is helpful for developers, add it to <code>dev.txt</code>.<br>
278
+ If it is a dependency for the app that is imported in source code, add it to <code>core.txt</code>.<br>
279
+ Then run:</p>
280
+ <div class="sourceCode" id="cb12"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pipreqs</span> <span class="at">--force</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
281
+ <p>This will update our <code>requirements.txt</code> to include the dependency as it should be pinned in the environment.</p>
282
+ </section>
283
+ <section id="development" class="level2">
284
+ <h2 class="anchored" data-anchor-id="development">Development</h2>
285
+ <p><a href="https://nbdev.fast.ai/tutorials">quick nbdev tutorial</a></p>
286
+ <p>Make changes in <code>/nbs</code>.<br>
287
+ Update the package files with <code>nbdev_export</code> then reimport with <code>pip install -e '.[dev]'</code></p>
288
+ <p>Preview doc <code>nbdev_preview</code><br>
289
+ Build docs, test and update README <code>nbdev_prepare</code></p>
290
+ </section>
291
+ <section id="useful-links" class="level2">
292
+ <h2 class="anchored" data-anchor-id="useful-links">Useful links</h2>
293
+ <ul>
294
+ <li><a href="https://github.com/microsoft/TaskMatrix">Task Matrix (Formerly Visual ChatGPT)</a></li>
295
+ <li><a href="https://python.langchain.com/en/latest/index.html">LangChain</a></li>
296
+ <li><a href="https://www.promptingguide.ai">LLM Prompt Engineering</a></li>
297
+ <li><a href="https://help.openai.com/en/articles/6654000-best-practices-for-prompt-engineering-with-openai-api">OpenAI best practices for prompts</a></li>
298
+ </ul>
299
+
300
+
301
+ </section>
302
+
303
+ </main> <!-- /main -->
304
+ <script id="quarto-html-after-body" type="application/javascript">
305
+ window.document.addEventListener("DOMContentLoaded", function (event) {
306
+ const toggleBodyColorMode = (bsSheetEl) => {
307
+ const mode = bsSheetEl.getAttribute("data-mode");
308
+ const bodyEl = window.document.querySelector("body");
309
+ if (mode === "dark") {
310
+ bodyEl.classList.add("quarto-dark");
311
+ bodyEl.classList.remove("quarto-light");
312
+ } else {
313
+ bodyEl.classList.add("quarto-light");
314
+ bodyEl.classList.remove("quarto-dark");
315
+ }
316
+ }
317
+ const toggleBodyColorPrimary = () => {
318
+ const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
319
+ if (bsSheetEl) {
320
+ toggleBodyColorMode(bsSheetEl);
321
+ }
322
+ }
323
+ toggleBodyColorPrimary();
324
+ const icon = "";
325
+ const anchorJS = new window.AnchorJS();
326
+ anchorJS.options = {
327
+ placement: 'right',
328
+ icon: icon
329
+ };
330
+ anchorJS.add('.anchored');
331
+ const isCodeAnnotation = (el) => {
332
+ for (const clz of el.classList) {
333
+ if (clz.startsWith('code-annotation-')) {
334
+ return true;
335
+ }
336
+ }
337
+ return false;
338
+ }
339
+ const clipboard = new window.ClipboardJS('.code-copy-button', {
340
+ text: function(trigger) {
341
+ const codeEl = trigger.previousElementSibling.cloneNode(true);
342
+ for (const childEl of codeEl.children) {
343
+ if (isCodeAnnotation(childEl)) {
344
+ childEl.remove();
345
+ }
346
+ }
347
+ return codeEl.innerText;
348
+ }
349
+ });
350
+ clipboard.on('success', function(e) {
351
+ // button target
352
+ const button = e.trigger;
353
+ // don't keep focus
354
+ button.blur();
355
+ // flash "checked"
356
+ button.classList.add('code-copy-button-checked');
357
+ var currentTitle = button.getAttribute("title");
358
+ button.setAttribute("title", "Copied!");
359
+ let tooltip;
360
+ if (window.bootstrap) {
361
+ button.setAttribute("data-bs-toggle", "tooltip");
362
+ button.setAttribute("data-bs-placement", "left");
363
+ button.setAttribute("data-bs-title", "Copied!");
364
+ tooltip = new bootstrap.Tooltip(button,
365
+ { trigger: "manual",
366
+ customClass: "code-copy-button-tooltip",
367
+ offset: [0, -8]});
368
+ tooltip.show();
369
+ }
370
+ setTimeout(function() {
371
+ if (tooltip) {
372
+ tooltip.hide();
373
+ button.removeAttribute("data-bs-title");
374
+ button.removeAttribute("data-bs-toggle");
375
+ button.removeAttribute("data-bs-placement");
376
+ }
377
+ button.setAttribute("title", currentTitle);
378
+ button.classList.remove('code-copy-button-checked');
379
+ }, 1000);
380
+ // clear code selection
381
+ e.clearSelection();
382
+ });
383
+ function tippyHover(el, contentFn) {
384
+ const config = {
385
+ allowHTML: true,
386
+ content: contentFn,
387
+ maxWidth: 500,
388
+ delay: 100,
389
+ arrow: false,
390
+ appendTo: function(el) {
391
+ return el.parentElement;
392
+ },
393
+ interactive: true,
394
+ interactiveBorder: 10,
395
+ theme: 'quarto',
396
+ placement: 'bottom-start'
397
+ };
398
+ window.tippy(el, config);
399
+ }
400
+ const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
401
+ for (var i=0; i<noterefs.length; i++) {
402
+ const ref = noterefs[i];
403
+ tippyHover(ref, function() {
404
+ // use id or data attribute instead here
405
+ let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
406
+ try { href = new URL(href).hash; } catch {}
407
+ const id = href.replace(/^#\/?/, "");
408
+ const note = window.document.getElementById(id);
409
+ return note.innerHTML;
410
+ });
411
+ }
412
+ let selectedAnnoteEl;
413
+ const selectorForAnnotation = ( cell, annotation) => {
414
+ let cellAttr = 'data-code-cell="' + cell + '"';
415
+ let lineAttr = 'data-code-annotation="' + annotation + '"';
416
+ const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
417
+ return selector;
418
+ }
419
+ const selectCodeLines = (annoteEl) => {
420
+ const doc = window.document;
421
+ const targetCell = annoteEl.getAttribute("data-target-cell");
422
+ const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
423
+ const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
424
+ const lines = annoteSpan.getAttribute("data-code-lines").split(",");
425
+ const lineIds = lines.map((line) => {
426
+ return targetCell + "-" + line;
427
+ })
428
+ let top = null;
429
+ let height = null;
430
+ let parent = null;
431
+ if (lineIds.length > 0) {
432
+ //compute the position of the single el (top and bottom and make a div)
433
+ const el = window.document.getElementById(lineIds[0]);
434
+ top = el.offsetTop;
435
+ height = el.offsetHeight;
436
+ parent = el.parentElement.parentElement;
437
+ if (lineIds.length > 1) {
438
+ const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
439
+ const bottom = lastEl.offsetTop + lastEl.offsetHeight;
440
+ height = bottom - top;
441
+ }
442
+ if (top !== null && height !== null && parent !== null) {
443
+ // cook up a div (if necessary) and position it
444
+ let div = window.document.getElementById("code-annotation-line-highlight");
445
+ if (div === null) {
446
+ div = window.document.createElement("div");
447
+ div.setAttribute("id", "code-annotation-line-highlight");
448
+ div.style.position = 'absolute';
449
+ parent.appendChild(div);
450
+ }
451
+ div.style.top = top - 2 + "px";
452
+ div.style.height = height + 4 + "px";
453
+ let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
454
+ if (gutterDiv === null) {
455
+ gutterDiv = window.document.createElement("div");
456
+ gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
457
+ gutterDiv.style.position = 'absolute';
458
+ const codeCell = window.document.getElementById(targetCell);
459
+ const gutter = codeCell.querySelector('.code-annotation-gutter');
460
+ gutter.appendChild(gutterDiv);
461
+ }
462
+ gutterDiv.style.top = top - 2 + "px";
463
+ gutterDiv.style.height = height + 4 + "px";
464
+ }
465
+ selectedAnnoteEl = annoteEl;
466
+ }
467
+ };
468
+ const unselectCodeLines = () => {
469
+ const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
470
+ elementsIds.forEach((elId) => {
471
+ const div = window.document.getElementById(elId);
472
+ if (div) {
473
+ div.remove();
474
+ }
475
+ });
476
+ selectedAnnoteEl = undefined;
477
+ };
478
+ // Attach click handler to the DT
479
+ const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
480
+ for (const annoteDlNode of annoteDls) {
481
+ annoteDlNode.addEventListener('click', (event) => {
482
+ const clickedEl = event.target;
483
+ if (clickedEl !== selectedAnnoteEl) {
484
+ unselectCodeLines();
485
+ const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
486
+ if (activeEl) {
487
+ activeEl.classList.remove('code-annotation-active');
488
+ }
489
+ selectCodeLines(clickedEl);
490
+ clickedEl.classList.add('code-annotation-active');
491
+ } else {
492
+ // Unselect the line
493
+ unselectCodeLines();
494
+ clickedEl.classList.remove('code-annotation-active');
495
+ }
496
+ });
497
+ }
498
+ const findCites = (el) => {
499
+ const parentEl = el.parentElement;
500
+ if (parentEl) {
501
+ const cites = parentEl.dataset.cites;
502
+ if (cites) {
503
+ return {
504
+ el,
505
+ cites: cites.split(' ')
506
+ };
507
+ } else {
508
+ return findCites(el.parentElement)
509
+ }
510
+ } else {
511
+ return undefined;
512
+ }
513
+ };
514
+ var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
515
+ for (var i=0; i<bibliorefs.length; i++) {
516
+ const ref = bibliorefs[i];
517
+ const citeInfo = findCites(ref);
518
+ if (citeInfo) {
519
+ tippyHover(citeInfo.el, function() {
520
+ var popup = window.document.createElement('div');
521
+ citeInfo.cites.forEach(function(cite) {
522
+ var citeDiv = window.document.createElement('div');
523
+ citeDiv.classList.add('hanging-indent');
524
+ citeDiv.classList.add('csl-entry');
525
+ var biblioDiv = window.document.getElementById('ref-' + cite);
526
+ if (biblioDiv) {
527
+ citeDiv.innerHTML = biblioDiv.innerHTML;
528
+ }
529
+ popup.appendChild(citeDiv);
530
+ });
531
+ return popup.innerHTML;
532
+ });
533
+ }
534
+ }
535
+ });
536
+ </script>
537
+ </div> <!-- /content -->
538
+
539
+
540
+
541
+ </body></html>
_proc/_docs/ingredient_vision.html ADDED
@@ -0,0 +1,808 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
3
+
4
+ <meta charset="utf-8">
5
+ <meta name="generator" content="quarto-1.3.361">
6
+
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
8
+
9
+ <meta name="description" content="Exploring computer vision for vegan ingredient inferencing.">
10
+
11
+ <title>lv-recipe-chatbot - ingredient_vision</title>
12
+ <style>
13
+ code{white-space: pre-wrap;}
14
+ span.smallcaps{font-variant: small-caps;}
15
+ div.columns{display: flex; gap: min(4vw, 1.5em);}
16
+ div.column{flex: auto; overflow-x: auto;}
17
+ div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
18
+ ul.task-list{list-style: none;}
19
+ ul.task-list li input[type="checkbox"] {
20
+ width: 0.8em;
21
+ margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
22
+ vertical-align: middle;
23
+ }
24
+ /* CSS for syntax highlighting */
25
+ pre > code.sourceCode { white-space: pre; position: relative; }
26
+ pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
27
+ pre > code.sourceCode > span:empty { height: 1.2em; }
28
+ .sourceCode { overflow: visible; }
29
+ code.sourceCode > span { color: inherit; text-decoration: inherit; }
30
+ div.sourceCode { margin: 1em 0; }
31
+ pre.sourceCode { margin: 0; }
32
+ @media screen {
33
+ div.sourceCode { overflow: auto; }
34
+ }
35
+ @media print {
36
+ pre > code.sourceCode { white-space: pre-wrap; }
37
+ pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
38
+ }
39
+ pre.numberSource code
40
+ { counter-reset: source-line 0; }
41
+ pre.numberSource code > span
42
+ { position: relative; left: -4em; counter-increment: source-line; }
43
+ pre.numberSource code > span > a:first-child::before
44
+ { content: counter(source-line);
45
+ position: relative; left: -1em; text-align: right; vertical-align: baseline;
46
+ border: none; display: inline-block;
47
+ -webkit-touch-callout: none; -webkit-user-select: none;
48
+ -khtml-user-select: none; -moz-user-select: none;
49
+ -ms-user-select: none; user-select: none;
50
+ padding: 0 4px; width: 4em;
51
+ }
52
+ pre.numberSource { margin-left: 3em; padding-left: 4px; }
53
+ div.sourceCode
54
+ { }
55
+ @media screen {
56
+ pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
57
+ }
58
+ </style>
59
+
60
+
61
+ <script src="site_libs/quarto-nav/quarto-nav.js"></script>
62
+ <script src="site_libs/quarto-nav/headroom.min.js"></script>
63
+ <script src="site_libs/clipboard/clipboard.min.js"></script>
64
+ <script src="site_libs/quarto-search/autocomplete.umd.js"></script>
65
+ <script src="site_libs/quarto-search/fuse.min.js"></script>
66
+ <script src="site_libs/quarto-search/quarto-search.js"></script>
67
+ <meta name="quarto:offset" content="./">
68
+ <script src="site_libs/quarto-html/quarto.js"></script>
69
+ <script src="site_libs/quarto-html/popper.min.js"></script>
70
+ <script src="site_libs/quarto-html/tippy.umd.min.js"></script>
71
+ <script src="site_libs/quarto-html/anchor.min.js"></script>
72
+ <link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
73
+ <link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
74
+ <script src="site_libs/bootstrap/bootstrap.min.js"></script>
75
+ <link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
76
+ <link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
77
+ <script id="quarto-search-options" type="application/json">{
78
+ "location": "navbar",
79
+ "copy-button": false,
80
+ "collapse-after": 3,
81
+ "panel-placement": "end",
82
+ "type": "overlay",
83
+ "limit": 20,
84
+ "language": {
85
+ "search-no-results-text": "No results",
86
+ "search-matching-documents-text": "matching documents",
87
+ "search-copy-link-title": "Copy link to search",
88
+ "search-hide-matches-text": "Hide additional matches",
89
+ "search-more-match-text": "more match in this document",
90
+ "search-more-matches-text": "more matches in this document",
91
+ "search-clear-button-title": "Clear",
92
+ "search-detached-cancel-button-title": "Cancel",
93
+ "search-submit-button-title": "Submit",
94
+ "search-label": "Search"
95
+ }
96
+ }</script>
97
+
98
+
99
+ <link rel="stylesheet" href="styles.css">
100
+ <meta property="og:title" content="lv-recipe-chatbot - ingredient_vision">
101
+ <meta property="og:description" content="Exploring computer vision for vegan ingredient inferencing.">
102
+ <meta property="og:image" content="https://animalequality.github.io/lv-recipe-chatbot/03_ingredient_vision_files/figure-html/cell-8-output-1.png">
103
+ <meta property="og:site-name" content="lv-recipe-chatbot">
104
+ <meta property="og:image:height" content="256">
105
+ <meta property="og:image:width" content="512">
106
+ <meta name="twitter:title" content="lv-recipe-chatbot - ingredient_vision">
107
+ <meta name="twitter:description" content="Exploring computer vision for vegan ingredient inferencing.">
108
+ <meta name="twitter:image" content="https://animalequality.github.io/lv-recipe-chatbot/03_ingredient_vision_files/figure-html/cell-8-output-1.png">
109
+ <meta name="twitter:image-height" content="256">
110
+ <meta name="twitter:image-width" content="512">
111
+ <meta name="twitter:card" content="summary_large_image">
112
+ </head>
113
+
114
+ <body class="nav-sidebar floating nav-fixed">
115
+
116
+ <div id="quarto-search-results"></div>
117
+ <header id="quarto-header" class="headroom fixed-top">
118
+ <nav class="navbar navbar-expand-lg navbar-dark ">
119
+ <div class="navbar-container container-fluid">
120
+ <div class="navbar-brand-container">
121
+ <a class="navbar-brand" href="./index.html">
122
+ <span class="navbar-title">lv-recipe-chatbot</span>
123
+ </a>
124
+ </div>
125
+ <div class="quarto-navbar-tools ms-auto">
126
+ </div>
127
+ <div id="quarto-search" class="" title="Search"></div>
128
+ </div> <!-- /container-fluid -->
129
+ </nav>
130
+ <nav class="quarto-secondary-nav">
131
+ <div class="container-fluid d-flex">
132
+ <button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
133
+ <i class="bi bi-layout-text-sidebar-reverse"></i>
134
+ </button>
135
+ <nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./ingredient_vision.html">ingredient_vision</a></li></ol></nav>
136
+ <a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
137
+ </a>
138
+ </div>
139
+ </nav>
140
+ </header>
141
+ <!-- content -->
142
+ <div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
143
+ <!-- sidebar -->
144
+ <nav id="quarto-sidebar" class="sidebar collapse collapse-horizontal sidebar-navigation floating overflow-auto">
145
+ <div class="sidebar-menu-container">
146
+ <ul class="list-unstyled mt-1">
147
+ <li class="sidebar-item">
148
+ <div class="sidebar-item-container">
149
+ <a href="./index.html" class="sidebar-item-text sidebar-link">
150
+ <span class="menu-text">lv-recipe-chatbot</span></a>
151
+ </div>
152
+ </li>
153
+ <li class="sidebar-item">
154
+ <div class="sidebar-item-container">
155
+ <a href="./engineer_prompt.html" class="sidebar-item-text sidebar-link">
156
+ <span class="menu-text">engineer_prompt</span></a>
157
+ </div>
158
+ </li>
159
+ <li class="sidebar-item">
160
+ <div class="sidebar-item-container">
161
+ <a href="./app.html" class="sidebar-item-text sidebar-link">
162
+ <span class="menu-text">app</span></a>
163
+ </div>
164
+ </li>
165
+ <li class="sidebar-item">
166
+ <div class="sidebar-item-container">
167
+ <a href="./lchain_tool.html" class="sidebar-item-text sidebar-link">
168
+ <span class="menu-text">lchain_tool</span></a>
169
+ </div>
170
+ </li>
171
+ <li class="sidebar-item">
172
+ <div class="sidebar-item-container">
173
+ <a href="./ingredient_vision.html" class="sidebar-item-text sidebar-link active">
174
+ <span class="menu-text">ingredient_vision</span></a>
175
+ </div>
176
+ </li>
177
+ <li class="sidebar-item">
178
+ <div class="sidebar-item-container">
179
+ <a href="./edamam_api.html" class="sidebar-item-text sidebar-link">
180
+ <span class="menu-text">edamam_api</span></a>
181
+ </div>
182
+ </li>
183
+ </ul>
184
+ </div>
185
+ </nav>
186
+ <div id="quarto-sidebar-glass" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass"></div>
187
+ <!-- margin-sidebar -->
188
+ <div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
189
+ <nav id="TOC" role="doc-toc" class="toc-active">
190
+ <h2 id="toc-title">On this page</h2>
191
+
192
+ <ul>
193
+ <li><a href="#format_image" id="toc-format_image" class="nav-link active" data-scroll-target="#format_image">format_image</a></li>
194
+ <li><a href="#blipimagecaptioning" id="toc-blipimagecaptioning" class="nav-link" data-scroll-target="#blipimagecaptioning">BlipImageCaptioning</a></li>
195
+ <li><a href="#blipimagecaptioning.inference" id="toc-blipimagecaptioning.inference" class="nav-link" data-scroll-target="#blipimagecaptioning.inference">BlipImageCaptioning.inference</a></li>
196
+ <li><a href="#blipvqa" id="toc-blipvqa" class="nav-link" data-scroll-target="#blipvqa">BlipVQA</a></li>
197
+ <li><a href="#blipvqa.inference" id="toc-blipvqa.inference" class="nav-link" data-scroll-target="#blipvqa.inference">BlipVQA.inference</a></li>
198
+ <li><a href="#veganingredientfinder" id="toc-veganingredientfinder" class="nav-link" data-scroll-target="#veganingredientfinder">VeganIngredientFinder</a></li>
199
+ <li><a href="#veganingredientfinder.list_ingredients" id="toc-veganingredientfinder.list_ingredients" class="nav-link" data-scroll-target="#veganingredientfinder.list_ingredients">VeganIngredientFinder.list_ingredients</a></li>
200
+ </ul>
201
+ <div class="toc-actions"><div><i class="bi bi-git"></i></div><div class="action-links"><p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/issues/new" class="toc-action">Report an issue</a></p></div></div></nav>
202
+ </div>
203
+ <!-- main -->
204
+ <main class="content" id="quarto-document-content">
205
+
206
+ <header id="title-block-header" class="quarto-title-block default">
207
+ <div class="quarto-title">
208
+ <h1 class="title">ingredient_vision</h1>
209
+ </div>
210
+
211
+ <div>
212
+ <div class="description">
213
+ Exploring computer vision for vegan ingredient inferencing.
214
+ </div>
215
+ </div>
216
+
217
+
218
+ <div class="quarto-title-meta">
219
+
220
+
221
+
222
+
223
+ </div>
224
+
225
+
226
+ </header>
227
+
228
+ <!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
229
+ <p>Inspiration drawn from <a href="https://github.com/microsoft/TaskMatrix">TaskMartix aka Visual ChatGPT</a></p>
230
+ <hr>
231
+ <p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L24" target="_blank" style="float:right; font-size:smaller">source</a></p>
232
+ <section id="format_image" class="level3">
233
+ <h3 class="anchored" data-anchor-id="format_image">format_image</h3>
234
+ <blockquote class="blockquote">
235
+ <pre><code> format_image (image:str)</code></pre>
236
+ </blockquote>
237
+ <table class="table">
238
+ <thead>
239
+ <tr class="header">
240
+ <th></th>
241
+ <th><strong>Type</strong></th>
242
+ <th><strong>Details</strong></th>
243
+ </tr>
244
+ </thead>
245
+ <tbody>
246
+ <tr class="odd">
247
+ <td>image</td>
248
+ <td>str</td>
249
+ <td>Image file path</td>
250
+ </tr>
251
+ </tbody>
252
+ </table>
253
+ <hr>
254
+ <p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L36" target="_blank" style="float:right; font-size:smaller">source</a></p>
255
+ </section>
256
+ <section id="blipimagecaptioning" class="level3">
257
+ <h3 class="anchored" data-anchor-id="blipimagecaptioning">BlipImageCaptioning</h3>
258
+ <blockquote class="blockquote">
259
+ <pre><code> BlipImageCaptioning (device:str)</code></pre>
260
+ </blockquote>
261
+ <p>Useful when you want to know what is inside the photo.</p>
262
+ <hr>
263
+ <p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L51" target="_blank" style="float:right; font-size:smaller">source</a></p>
264
+ </section>
265
+ <section id="blipimagecaptioning.inference" class="level3">
266
+ <h3 class="anchored" data-anchor-id="blipimagecaptioning.inference">BlipImageCaptioning.inference</h3>
267
+ <blockquote class="blockquote">
268
+ <pre><code> BlipImageCaptioning.inference
269
+ (image:&lt;module'PIL.Image'from'/home/evylz/
270
+ AnimalEquality/lv-recipe-
271
+ chatbot/env/lib/python3.10/site-
272
+ packages/PIL/Image.py'&gt;)</code></pre>
273
+ </blockquote>
274
+ <table class="table">
275
+ <thead>
276
+ <tr class="header">
277
+ <th></th>
278
+ <th><strong>Type</strong></th>
279
+ <th><strong>Details</strong></th>
280
+ </tr>
281
+ </thead>
282
+ <tbody>
283
+ <tr class="odd">
284
+ <td>image</td>
285
+ <td>PIL.Image</td>
286
+ <td></td>
287
+ </tr>
288
+ <tr class="even">
289
+ <td><strong>Returns</strong></td>
290
+ <td><strong>str</strong></td>
291
+ <td><strong>Caption for the image</strong></td>
292
+ </tr>
293
+ </tbody>
294
+ </table>
295
+ <hr>
296
+ <p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L60" target="_blank" style="float:right; font-size:smaller">source</a></p>
297
+ </section>
298
+ <section id="blipvqa" class="level3">
299
+ <h3 class="anchored" data-anchor-id="blipvqa">BlipVQA</h3>
300
+ <blockquote class="blockquote">
301
+ <pre><code> BlipVQA (device:str)</code></pre>
302
+ </blockquote>
303
+ <p>BLIP Visual Question Answering Useful when you need an answer for a question based on an image. Examples: what is the background color of this image, how many cats are in this figure, what is in this figure?</p>
304
+ <hr>
305
+ <p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L76" target="_blank" style="float:right; font-size:smaller">source</a></p>
306
+ </section>
307
+ <section id="blipvqa.inference" class="level3">
308
+ <h3 class="anchored" data-anchor-id="blipvqa.inference">BlipVQA.inference</h3>
309
+ <blockquote class="blockquote">
310
+ <pre><code> BlipVQA.inference
311
+ (image:&lt;module'PIL.Image'from'/home/evylz/AnimalEquali
312
+ ty/lv-recipe-chatbot/env/lib/python3.10/site-
313
+ packages/PIL/Image.py'&gt;, question:str)</code></pre>
314
+ </blockquote>
315
+ <table class="table">
316
+ <thead>
317
+ <tr class="header">
318
+ <th></th>
319
+ <th><strong>Type</strong></th>
320
+ <th><strong>Details</strong></th>
321
+ </tr>
322
+ </thead>
323
+ <tbody>
324
+ <tr class="odd">
325
+ <td>image</td>
326
+ <td>PIL.Image</td>
327
+ <td></td>
328
+ </tr>
329
+ <tr class="even">
330
+ <td>question</td>
331
+ <td>str</td>
332
+ <td></td>
333
+ </tr>
334
+ <tr class="odd">
335
+ <td><strong>Returns</strong></td>
336
+ <td><strong>str</strong></td>
337
+ <td><strong>Answer to the query on the image</strong></td>
338
+ </tr>
339
+ </tbody>
340
+ </table>
341
+ <div class="cell">
342
+ <div class="sourceCode cell-code" id="cb6"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>sample_images <span class="op">=</span> os.listdir(SAMPLE_IMG_DIR)</span>
343
+ <span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a>sample_images</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
344
+ <div class="cell-output cell-output-display">
345
+ <pre><code>['veggie-fridge.jpeg',
346
+ 'veg-groceries-table.jpg',
347
+ 'fridge-splendid.jpg',
348
+ 'neat-veg-groceries.jpg',
349
+ 'veg-groceries-table.jpeg',
350
+ 'Fruits-and-vegetables-one-a-table.jpg']</code></pre>
351
+ </div>
352
+ </div>
353
+ <div class="cell">
354
+ <div class="sourceCode cell-code" id="cb8"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> img <span class="kw">in</span> sample_images:</span>
355
+ <span id="cb8-2"><a href="#cb8-2" aria-hidden="true" tabindex="-1"></a> display(format_image(SAMPLE_IMG_DIR <span class="op">/</span> img))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
356
+ <div class="cell-output cell-output-display">
357
+ <p><img src="03_ingredient_vision_files/figure-html/cell-8-output-1.png" class="img-fluid"></p>
358
+ </div>
359
+ <div class="cell-output cell-output-display">
360
+ <p><img src="03_ingredient_vision_files/figure-html/cell-8-output-2.png" class="img-fluid"></p>
361
+ </div>
362
+ <div class="cell-output cell-output-display">
363
+ <p><img src="03_ingredient_vision_files/figure-html/cell-8-output-3.png" class="img-fluid"></p>
364
+ </div>
365
+ <div class="cell-output cell-output-display">
366
+ <p><img src="03_ingredient_vision_files/figure-html/cell-8-output-4.png" class="img-fluid"></p>
367
+ </div>
368
+ <div class="cell-output cell-output-display">
369
+ <p><img src="03_ingredient_vision_files/figure-html/cell-8-output-5.png" class="img-fluid"></p>
370
+ </div>
371
+ <div class="cell-output cell-output-display">
372
+ <p><img src="03_ingredient_vision_files/figure-html/cell-8-output-6.png" class="img-fluid"></p>
373
+ </div>
374
+ </div>
375
+ <p>The process:</p>
376
+ <ol type="1">
377
+ <li>Format image</li>
378
+ <li>Get description (caption)</li>
379
+ <li>Pass caption and ingredient queries to VQA</li>
380
+ </ol>
381
+ <div class="cell">
382
+ <div class="sourceCode cell-code" id="cb9"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a>vqa <span class="op">=</span> BlipVQA(<span class="st">"cpu"</span>)</span>
383
+ <span id="cb9-2"><a href="#cb9-2" aria-hidden="true" tabindex="-1"></a>img_cap <span class="op">=</span> BlipImageCaptioning(<span class="st">"cpu"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
384
+ </div>
385
+ <div class="cell">
386
+ <div class="sourceCode cell-code" id="cb10"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> img <span class="kw">in</span> sample_images:</span>
387
+ <span id="cb10-2"><a href="#cb10-2" aria-hidden="true" tabindex="-1"></a> img <span class="op">=</span> format_image(SAMPLE_IMG_DIR <span class="op">/</span> img)</span>
388
+ <span id="cb10-3"><a href="#cb10-3" aria-hidden="true" tabindex="-1"></a></span>
389
+ <span id="cb10-4"><a href="#cb10-4" aria-hidden="true" tabindex="-1"></a> display(desc, img.resize((<span class="bu">int</span>(img.size[<span class="dv">0</span>] <span class="op">*</span> <span class="fl">0.5</span>), <span class="bu">int</span>(img.size[<span class="dv">1</span>] <span class="op">*</span> <span class="fl">0.5</span>))))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
390
+ <div class="cell-output cell-output-stdout">
391
+ <pre><code>CPU times: user 11.4 s, sys: 7.42 ms, total: 11.4 s
392
+ Wall time: 1.19 s
393
+ CPU times: user 13.5 s, sys: 7.5 ms, total: 13.5 s
394
+ Wall time: 1.36 s
395
+ CPU times: user 12 s, sys: 0 ns, total: 12 s
396
+ Wall time: 1.21 s
397
+ CPU times: user 12.5 s, sys: 0 ns, total: 12.5 s
398
+ Wall time: 1.27 s
399
+ CPU times: user 9.25 s, sys: 7.71 ms, total: 9.25 s
400
+ Wall time: 936 ms
401
+ CPU times: user 15.7 s, sys: 7.66 ms, total: 15.7 s
402
+ Wall time: 1.58 s</code></pre>
403
+ </div>
404
+ <div class="cell-output cell-output-display">
405
+ <pre><code>'a refrigerator with food inside'</code></pre>
406
+ </div>
407
+ <div class="cell-output cell-output-display">
408
+ <p><img src="03_ingredient_vision_files/figure-html/cell-10-output-3.png" class="img-fluid"></p>
409
+ </div>
410
+ <div class="cell-output cell-output-display">
411
+ <pre><code>'a table with a variety of fruits and vegetables'</code></pre>
412
+ </div>
413
+ <div class="cell-output cell-output-display">
414
+ <p><img src="03_ingredient_vision_files/figure-html/cell-10-output-5.png" class="img-fluid"></p>
415
+ </div>
416
+ <div class="cell-output cell-output-display">
417
+ <pre><code>'a refrigerator filled with food and drinks'</code></pre>
418
+ </div>
419
+ <div class="cell-output cell-output-display">
420
+ <p><img src="03_ingredient_vision_files/figure-html/cell-10-output-7.png" class="img-fluid"></p>
421
+ </div>
422
+ <div class="cell-output cell-output-display">
423
+ <pre><code>'a counter with various foods on it'</code></pre>
424
+ </div>
425
+ <div class="cell-output cell-output-display">
426
+ <p><img src="03_ingredient_vision_files/figure-html/cell-10-output-9.png" class="img-fluid"></p>
427
+ </div>
428
+ <div class="cell-output cell-output-display">
429
+ <pre><code>'a wooden table'</code></pre>
430
+ </div>
431
+ <div class="cell-output cell-output-display">
432
+ <p><img src="03_ingredient_vision_files/figure-html/cell-10-output-11.png" class="img-fluid"></p>
433
+ </div>
434
+ <div class="cell-output cell-output-display">
435
+ <pre><code>'a table with a variety of fruits and vegetables'</code></pre>
436
+ </div>
437
+ <div class="cell-output cell-output-display">
438
+ <p><img src="03_ingredient_vision_files/figure-html/cell-10-output-13.png" class="img-fluid"></p>
439
+ </div>
440
+ </div>
441
+ <div class="cell">
442
+ <div class="sourceCode cell-code" id="cb18"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb18-1"><a href="#cb18-1" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> img <span class="kw">in</span> sample_images:</span>
443
+ <span id="cb18-2"><a href="#cb18-2" aria-hidden="true" tabindex="-1"></a> img <span class="op">=</span> format_image(SAMPLE_IMG_DIR <span class="op">/</span> img)</span>
444
+ <span id="cb18-3"><a href="#cb18-3" aria-hidden="true" tabindex="-1"></a> desc <span class="op">=</span> img_cap.inference(img)</span>
445
+ <span id="cb18-4"><a href="#cb18-4" aria-hidden="true" tabindex="-1"></a></span>
446
+ <span id="cb18-5"><a href="#cb18-5" aria-hidden="true" tabindex="-1"></a> answer <span class="op">+=</span> <span class="st">"</span><span class="ch">\n</span><span class="st">"</span> <span class="op">+</span> vqa.inference(</span>
447
+ <span id="cb18-6"><a href="#cb18-6" aria-hidden="true" tabindex="-1"></a> img, <span class="ss">f"What are three of the fruits seen in the image if any?"</span></span>
448
+ <span id="cb18-7"><a href="#cb18-7" aria-hidden="true" tabindex="-1"></a> )</span>
449
+ <span id="cb18-8"><a href="#cb18-8" aria-hidden="true" tabindex="-1"></a> answer <span class="op">+=</span> <span class="st">"</span><span class="ch">\n</span><span class="st">"</span> <span class="op">+</span> vqa.inference(</span>
450
+ <span id="cb18-9"><a href="#cb18-9" aria-hidden="true" tabindex="-1"></a> img, <span class="ss">f"What grains and starches are in the image if any?"</span></span>
451
+ <span id="cb18-10"><a href="#cb18-10" aria-hidden="true" tabindex="-1"></a> )</span>
452
+ <span id="cb18-11"><a href="#cb18-11" aria-hidden="true" tabindex="-1"></a> answer <span class="op">+=</span> <span class="st">"</span><span class="ch">\n</span><span class="st">"</span> <span class="op">+</span> vqa.inference(img, <span class="ss">f"Is there plant-based milk in the image?"</span>)</span>
453
+ <span id="cb18-12"><a href="#cb18-12" aria-hidden="true" tabindex="-1"></a> <span class="bu">print</span>(</span>
454
+ <span id="cb18-13"><a href="#cb18-13" aria-hidden="true" tabindex="-1"></a> <span class="ss">f"""</span><span class="sc">{</span>desc<span class="sc">}</span></span>
455
+ <span id="cb18-14"><a href="#cb18-14" aria-hidden="true" tabindex="-1"></a><span class="sc">{</span>answer<span class="sc">}</span><span class="ss">"""</span></span>
456
+ <span id="cb18-15"><a href="#cb18-15" aria-hidden="true" tabindex="-1"></a> )</span>
457
+ <span id="cb18-16"><a href="#cb18-16" aria-hidden="true" tabindex="-1"></a> display(img.resize((<span class="bu">int</span>(img.size[<span class="dv">0</span>] <span class="op">*</span> <span class="fl">0.75</span>), <span class="bu">int</span>(img.size[<span class="dv">1</span>] <span class="op">*</span> <span class="fl">0.75</span>))))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
458
+ <div class="cell-output cell-output-stdout">
459
+ <pre><code>CPU times: user 7.67 s, sys: 12.1 ms, total: 7.68 s
460
+ Wall time: 779 ms
461
+ a refrigerator with food inside
462
+ cabbage lettuce onion
463
+ apples
464
+ rice
465
+ yes
466
+ CPU times: user 10.5 s, sys: 8.13 ms, total: 10.5 s
467
+ Wall time: 1.06 s
468
+ a table with a variety of fruits and vegetables
469
+ broccoli and tomatoes
470
+ bananas apples oranges
471
+ potatoes
472
+ yes
473
+ CPU times: user 11.7 s, sys: 0 ns, total: 11.7 s
474
+ Wall time: 1.18 s
475
+ a refrigerator filled with food and drinks
476
+ broccoli and zucchini
477
+ bananas
478
+ rice
479
+ yes
480
+ CPU times: user 11.5 s, sys: 12.2 ms, total: 11.5 s
481
+ Wall time: 1.16 s
482
+ a counter with various foods on it
483
+ carrots and broccoli
484
+ apples bananas and tomatoes
485
+ rice
486
+ yes
487
+ CPU times: user 9.62 s, sys: 4.22 ms, total: 9.63 s
488
+ Wall time: 973 ms
489
+ a wooden table
490
+ potatoes and carrots
491
+ apples
492
+ potatoes
493
+ yes
494
+ CPU times: user 11.1 s, sys: 8.23 ms, total: 11.1 s
495
+ Wall time: 1.12 s
496
+ a table with a variety of fruits and vegetables
497
+ peppers broccoli and squash
498
+ watermelon limes and pineapple
499
+ rice
500
+ no</code></pre>
501
+ </div>
502
+ <div class="cell-output cell-output-display">
503
+ <p><img src="03_ingredient_vision_files/figure-html/cell-11-output-2.png" class="img-fluid"></p>
504
+ </div>
505
+ <div class="cell-output cell-output-display">
506
+ <p><img src="03_ingredient_vision_files/figure-html/cell-11-output-3.png" class="img-fluid"></p>
507
+ </div>
508
+ <div class="cell-output cell-output-display">
509
+ <p><img src="03_ingredient_vision_files/figure-html/cell-11-output-4.png" class="img-fluid"></p>
510
+ </div>
511
+ <div class="cell-output cell-output-display">
512
+ <p><img src="03_ingredient_vision_files/figure-html/cell-11-output-5.png" class="img-fluid"></p>
513
+ </div>
514
+ <div class="cell-output cell-output-display">
515
+ <p><img src="03_ingredient_vision_files/figure-html/cell-11-output-6.png" class="img-fluid"></p>
516
+ </div>
517
+ <div class="cell-output cell-output-display">
518
+ <p><img src="03_ingredient_vision_files/figure-html/cell-11-output-7.png" class="img-fluid"></p>
519
+ </div>
520
+ </div>
521
+ <hr>
522
+ <p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L89" target="_blank" style="float:right; font-size:smaller">source</a></p>
523
+ </section>
524
+ <section id="veganingredientfinder" class="level3">
525
+ <h3 class="anchored" data-anchor-id="veganingredientfinder">VeganIngredientFinder</h3>
526
+ <blockquote class="blockquote">
527
+ <pre><code> VeganIngredientFinder ()</code></pre>
528
+ </blockquote>
529
+ <p>Initialize self. See help(type(self)) for accurate signature.</p>
530
+ <hr>
531
+ <p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/ingredient_vision.py#L93" target="_blank" style="float:right; font-size:smaller">source</a></p>
532
+ </section>
533
+ <section id="veganingredientfinder.list_ingredients" class="level3">
534
+ <h3 class="anchored" data-anchor-id="veganingredientfinder.list_ingredients">VeganIngredientFinder.list_ingredients</h3>
535
+ <blockquote class="blockquote">
536
+ <pre><code> VeganIngredientFinder.list_ingredients (img:str)</code></pre>
537
+ </blockquote>
538
+ <table class="table">
539
+ <thead>
540
+ <tr class="header">
541
+ <th></th>
542
+ <th><strong>Type</strong></th>
543
+ <th><strong>Details</strong></th>
544
+ </tr>
545
+ </thead>
546
+ <tbody>
547
+ <tr class="odd">
548
+ <td>img</td>
549
+ <td>str</td>
550
+ <td>Image file path</td>
551
+ </tr>
552
+ <tr class="even">
553
+ <td><strong>Returns</strong></td>
554
+ <td><strong>str</strong></td>
555
+ <td></td>
556
+ </tr>
557
+ </tbody>
558
+ </table>
559
+ <div class="cell">
560
+ <div class="sourceCode cell-code" id="cb22"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb22-1"><a href="#cb22-1" aria-hidden="true" tabindex="-1"></a>vegan_ingred_finder <span class="op">=</span> VeganIngredientFinder()</span>
561
+ <span id="cb22-2"><a href="#cb22-2" aria-hidden="true" tabindex="-1"></a>vegan_ingred_finder.list_ingredients(SAMPLE_IMG_DIR <span class="op">/</span> sample_images[<span class="dv">0</span>])</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
562
+ <div class="cell-output cell-output-display">
563
+ <pre><code>'cabbage lettuce onion\napples\nrice\nplant-based milk'</code></pre>
564
+ </div>
565
+ </div>
566
+
567
+
568
+ </section>
569
+
570
+ </main> <!-- /main -->
571
+ <script id="quarto-html-after-body" type="application/javascript">
572
+ window.document.addEventListener("DOMContentLoaded", function (event) {
573
+ const toggleBodyColorMode = (bsSheetEl) => {
574
+ const mode = bsSheetEl.getAttribute("data-mode");
575
+ const bodyEl = window.document.querySelector("body");
576
+ if (mode === "dark") {
577
+ bodyEl.classList.add("quarto-dark");
578
+ bodyEl.classList.remove("quarto-light");
579
+ } else {
580
+ bodyEl.classList.add("quarto-light");
581
+ bodyEl.classList.remove("quarto-dark");
582
+ }
583
+ }
584
+ const toggleBodyColorPrimary = () => {
585
+ const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
586
+ if (bsSheetEl) {
587
+ toggleBodyColorMode(bsSheetEl);
588
+ }
589
+ }
590
+ toggleBodyColorPrimary();
591
+ const icon = "";
592
+ const anchorJS = new window.AnchorJS();
593
+ anchorJS.options = {
594
+ placement: 'right',
595
+ icon: icon
596
+ };
597
+ anchorJS.add('.anchored');
598
+ const isCodeAnnotation = (el) => {
599
+ for (const clz of el.classList) {
600
+ if (clz.startsWith('code-annotation-')) {
601
+ return true;
602
+ }
603
+ }
604
+ return false;
605
+ }
606
+ const clipboard = new window.ClipboardJS('.code-copy-button', {
607
+ text: function(trigger) {
608
+ const codeEl = trigger.previousElementSibling.cloneNode(true);
609
+ for (const childEl of codeEl.children) {
610
+ if (isCodeAnnotation(childEl)) {
611
+ childEl.remove();
612
+ }
613
+ }
614
+ return codeEl.innerText;
615
+ }
616
+ });
617
+ clipboard.on('success', function(e) {
618
+ // button target
619
+ const button = e.trigger;
620
+ // don't keep focus
621
+ button.blur();
622
+ // flash "checked"
623
+ button.classList.add('code-copy-button-checked');
624
+ var currentTitle = button.getAttribute("title");
625
+ button.setAttribute("title", "Copied!");
626
+ let tooltip;
627
+ if (window.bootstrap) {
628
+ button.setAttribute("data-bs-toggle", "tooltip");
629
+ button.setAttribute("data-bs-placement", "left");
630
+ button.setAttribute("data-bs-title", "Copied!");
631
+ tooltip = new bootstrap.Tooltip(button,
632
+ { trigger: "manual",
633
+ customClass: "code-copy-button-tooltip",
634
+ offset: [0, -8]});
635
+ tooltip.show();
636
+ }
637
+ setTimeout(function() {
638
+ if (tooltip) {
639
+ tooltip.hide();
640
+ button.removeAttribute("data-bs-title");
641
+ button.removeAttribute("data-bs-toggle");
642
+ button.removeAttribute("data-bs-placement");
643
+ }
644
+ button.setAttribute("title", currentTitle);
645
+ button.classList.remove('code-copy-button-checked');
646
+ }, 1000);
647
+ // clear code selection
648
+ e.clearSelection();
649
+ });
650
+ function tippyHover(el, contentFn) {
651
+ const config = {
652
+ allowHTML: true,
653
+ content: contentFn,
654
+ maxWidth: 500,
655
+ delay: 100,
656
+ arrow: false,
657
+ appendTo: function(el) {
658
+ return el.parentElement;
659
+ },
660
+ interactive: true,
661
+ interactiveBorder: 10,
662
+ theme: 'quarto',
663
+ placement: 'bottom-start'
664
+ };
665
+ window.tippy(el, config);
666
+ }
667
+ const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
668
+ for (var i=0; i<noterefs.length; i++) {
669
+ const ref = noterefs[i];
670
+ tippyHover(ref, function() {
671
+ // use id or data attribute instead here
672
+ let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
673
+ try { href = new URL(href).hash; } catch {}
674
+ const id = href.replace(/^#\/?/, "");
675
+ const note = window.document.getElementById(id);
676
+ return note.innerHTML;
677
+ });
678
+ }
679
+ let selectedAnnoteEl;
680
+ const selectorForAnnotation = ( cell, annotation) => {
681
+ let cellAttr = 'data-code-cell="' + cell + '"';
682
+ let lineAttr = 'data-code-annotation="' + annotation + '"';
683
+ const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
684
+ return selector;
685
+ }
686
+ const selectCodeLines = (annoteEl) => {
687
+ const doc = window.document;
688
+ const targetCell = annoteEl.getAttribute("data-target-cell");
689
+ const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
690
+ const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
691
+ const lines = annoteSpan.getAttribute("data-code-lines").split(",");
692
+ const lineIds = lines.map((line) => {
693
+ return targetCell + "-" + line;
694
+ })
695
+ let top = null;
696
+ let height = null;
697
+ let parent = null;
698
+ if (lineIds.length > 0) {
699
+ //compute the position of the single el (top and bottom and make a div)
700
+ const el = window.document.getElementById(lineIds[0]);
701
+ top = el.offsetTop;
702
+ height = el.offsetHeight;
703
+ parent = el.parentElement.parentElement;
704
+ if (lineIds.length > 1) {
705
+ const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
706
+ const bottom = lastEl.offsetTop + lastEl.offsetHeight;
707
+ height = bottom - top;
708
+ }
709
+ if (top !== null && height !== null && parent !== null) {
710
+ // cook up a div (if necessary) and position it
711
+ let div = window.document.getElementById("code-annotation-line-highlight");
712
+ if (div === null) {
713
+ div = window.document.createElement("div");
714
+ div.setAttribute("id", "code-annotation-line-highlight");
715
+ div.style.position = 'absolute';
716
+ parent.appendChild(div);
717
+ }
718
+ div.style.top = top - 2 + "px";
719
+ div.style.height = height + 4 + "px";
720
+ let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
721
+ if (gutterDiv === null) {
722
+ gutterDiv = window.document.createElement("div");
723
+ gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
724
+ gutterDiv.style.position = 'absolute';
725
+ const codeCell = window.document.getElementById(targetCell);
726
+ const gutter = codeCell.querySelector('.code-annotation-gutter');
727
+ gutter.appendChild(gutterDiv);
728
+ }
729
+ gutterDiv.style.top = top - 2 + "px";
730
+ gutterDiv.style.height = height + 4 + "px";
731
+ }
732
+ selectedAnnoteEl = annoteEl;
733
+ }
734
+ };
735
+ const unselectCodeLines = () => {
736
+ const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
737
+ elementsIds.forEach((elId) => {
738
+ const div = window.document.getElementById(elId);
739
+ if (div) {
740
+ div.remove();
741
+ }
742
+ });
743
+ selectedAnnoteEl = undefined;
744
+ };
745
+ // Attach click handler to the DT
746
+ const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
747
+ for (const annoteDlNode of annoteDls) {
748
+ annoteDlNode.addEventListener('click', (event) => {
749
+ const clickedEl = event.target;
750
+ if (clickedEl !== selectedAnnoteEl) {
751
+ unselectCodeLines();
752
+ const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
753
+ if (activeEl) {
754
+ activeEl.classList.remove('code-annotation-active');
755
+ }
756
+ selectCodeLines(clickedEl);
757
+ clickedEl.classList.add('code-annotation-active');
758
+ } else {
759
+ // Unselect the line
760
+ unselectCodeLines();
761
+ clickedEl.classList.remove('code-annotation-active');
762
+ }
763
+ });
764
+ }
765
+ const findCites = (el) => {
766
+ const parentEl = el.parentElement;
767
+ if (parentEl) {
768
+ const cites = parentEl.dataset.cites;
769
+ if (cites) {
770
+ return {
771
+ el,
772
+ cites: cites.split(' ')
773
+ };
774
+ } else {
775
+ return findCites(el.parentElement)
776
+ }
777
+ } else {
778
+ return undefined;
779
+ }
780
+ };
781
+ var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
782
+ for (var i=0; i<bibliorefs.length; i++) {
783
+ const ref = bibliorefs[i];
784
+ const citeInfo = findCites(ref);
785
+ if (citeInfo) {
786
+ tippyHover(citeInfo.el, function() {
787
+ var popup = window.document.createElement('div');
788
+ citeInfo.cites.forEach(function(cite) {
789
+ var citeDiv = window.document.createElement('div');
790
+ citeDiv.classList.add('hanging-indent');
791
+ citeDiv.classList.add('csl-entry');
792
+ var biblioDiv = window.document.getElementById('ref-' + cite);
793
+ if (biblioDiv) {
794
+ citeDiv.innerHTML = biblioDiv.innerHTML;
795
+ }
796
+ popup.appendChild(citeDiv);
797
+ });
798
+ return popup.innerHTML;
799
+ });
800
+ }
801
+ }
802
+ });
803
+ </script>
804
+ </div> <!-- /content -->
805
+
806
+
807
+
808
+ </body></html>
_proc/_docs/lchain_tool.html ADDED
@@ -0,0 +1,937 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
3
+
4
+ <meta charset="utf-8">
5
+ <meta name="generator" content="quarto-1.3.361">
6
+
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
8
+
9
+ <meta name="description" content="Exploring Langchain Tool capabilities">
10
+
11
+ <title>lv-recipe-chatbot - lchain_tool</title>
12
+ <style>
13
+ code{white-space: pre-wrap;}
14
+ span.smallcaps{font-variant: small-caps;}
15
+ div.columns{display: flex; gap: min(4vw, 1.5em);}
16
+ div.column{flex: auto; overflow-x: auto;}
17
+ div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
18
+ ul.task-list{list-style: none;}
19
+ ul.task-list li input[type="checkbox"] {
20
+ width: 0.8em;
21
+ margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
22
+ vertical-align: middle;
23
+ }
24
+ /* CSS for syntax highlighting */
25
+ pre > code.sourceCode { white-space: pre; position: relative; }
26
+ pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
27
+ pre > code.sourceCode > span:empty { height: 1.2em; }
28
+ .sourceCode { overflow: visible; }
29
+ code.sourceCode > span { color: inherit; text-decoration: inherit; }
30
+ div.sourceCode { margin: 1em 0; }
31
+ pre.sourceCode { margin: 0; }
32
+ @media screen {
33
+ div.sourceCode { overflow: auto; }
34
+ }
35
+ @media print {
36
+ pre > code.sourceCode { white-space: pre-wrap; }
37
+ pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
38
+ }
39
+ pre.numberSource code
40
+ { counter-reset: source-line 0; }
41
+ pre.numberSource code > span
42
+ { position: relative; left: -4em; counter-increment: source-line; }
43
+ pre.numberSource code > span > a:first-child::before
44
+ { content: counter(source-line);
45
+ position: relative; left: -1em; text-align: right; vertical-align: baseline;
46
+ border: none; display: inline-block;
47
+ -webkit-touch-callout: none; -webkit-user-select: none;
48
+ -khtml-user-select: none; -moz-user-select: none;
49
+ -ms-user-select: none; user-select: none;
50
+ padding: 0 4px; width: 4em;
51
+ }
52
+ pre.numberSource { margin-left: 3em; padding-left: 4px; }
53
+ div.sourceCode
54
+ { }
55
+ @media screen {
56
+ pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
57
+ }
58
+ </style>
59
+
60
+
61
+ <script src="site_libs/quarto-nav/quarto-nav.js"></script>
62
+ <script src="site_libs/quarto-nav/headroom.min.js"></script>
63
+ <script src="site_libs/clipboard/clipboard.min.js"></script>
64
+ <script src="site_libs/quarto-search/autocomplete.umd.js"></script>
65
+ <script src="site_libs/quarto-search/fuse.min.js"></script>
66
+ <script src="site_libs/quarto-search/quarto-search.js"></script>
67
+ <meta name="quarto:offset" content="./">
68
+ <script src="site_libs/quarto-html/quarto.js"></script>
69
+ <script src="site_libs/quarto-html/popper.min.js"></script>
70
+ <script src="site_libs/quarto-html/tippy.umd.min.js"></script>
71
+ <script src="site_libs/quarto-html/anchor.min.js"></script>
72
+ <link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
73
+ <link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
74
+ <script src="site_libs/bootstrap/bootstrap.min.js"></script>
75
+ <link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
76
+ <link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
77
+ <script id="quarto-search-options" type="application/json">{
78
+ "location": "navbar",
79
+ "copy-button": false,
80
+ "collapse-after": 3,
81
+ "panel-placement": "end",
82
+ "type": "overlay",
83
+ "limit": 20,
84
+ "language": {
85
+ "search-no-results-text": "No results",
86
+ "search-matching-documents-text": "matching documents",
87
+ "search-copy-link-title": "Copy link to search",
88
+ "search-hide-matches-text": "Hide additional matches",
89
+ "search-more-match-text": "more match in this document",
90
+ "search-more-matches-text": "more matches in this document",
91
+ "search-clear-button-title": "Clear",
92
+ "search-detached-cancel-button-title": "Cancel",
93
+ "search-submit-button-title": "Submit",
94
+ "search-label": "Search"
95
+ }
96
+ }</script>
97
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" integrity="sha512-c3Nl8+7g4LMSTdrm621y7kf9v3SDPnhxLNhcjFJbKECVnmZHTdo+IRO05sNLTH/D3vA6u1X32ehoLC7WFVdheg==" crossorigin="anonymous"></script>
98
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" crossorigin="anonymous"></script>
99
+ <script type="application/javascript">define('jquery', [],function() {return window.jQuery;})</script>
100
+
101
+
102
+ <link rel="stylesheet" href="styles.css">
103
+ <meta property="og:title" content="lv-recipe-chatbot - lchain_tool">
104
+ <meta property="og:description" content="Exploring Langchain Tool capabilities">
105
+ <meta property="og:image" content="https://serpapi.com/searches/6480db18c56d93170a8e715f/images/6f34b4708ae4dd36a28ca4ca4a3abf6af168f575eef7bd2e8f81a12e175fcf53.jpeg">
106
+ <meta property="og:site-name" content="lv-recipe-chatbot">
107
+ <meta name="twitter:title" content="lv-recipe-chatbot - lchain_tool">
108
+ <meta name="twitter:description" content="Exploring Langchain Tool capabilities">
109
+ <meta name="twitter:image" content="https://serpapi.com/searches/6480db18c56d93170a8e715f/images/6f34b4708ae4dd36a28ca4ca4a3abf6af168f575eef7bd2e8f81a12e175fcf53.jpeg">
110
+ <meta name="twitter:card" content="summary_large_image">
111
+ </head>
112
+
113
+ <body class="nav-sidebar floating nav-fixed">
114
+
115
+ <div id="quarto-search-results"></div>
116
+ <header id="quarto-header" class="headroom fixed-top">
117
+ <nav class="navbar navbar-expand-lg navbar-dark ">
118
+ <div class="navbar-container container-fluid">
119
+ <div class="navbar-brand-container">
120
+ <a class="navbar-brand" href="./index.html">
121
+ <span class="navbar-title">lv-recipe-chatbot</span>
122
+ </a>
123
+ </div>
124
+ <div class="quarto-navbar-tools ms-auto">
125
+ </div>
126
+ <div id="quarto-search" class="" title="Search"></div>
127
+ </div> <!-- /container-fluid -->
128
+ </nav>
129
+ <nav class="quarto-secondary-nav">
130
+ <div class="container-fluid d-flex">
131
+ <button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
132
+ <i class="bi bi-layout-text-sidebar-reverse"></i>
133
+ </button>
134
+ <nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./lchain_tool.html">lchain_tool</a></li></ol></nav>
135
+ <a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
136
+ </a>
137
+ </div>
138
+ </nav>
139
+ </header>
140
+ <!-- content -->
141
+ <div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
142
+ <!-- sidebar -->
143
+ <nav id="quarto-sidebar" class="sidebar collapse collapse-horizontal sidebar-navigation floating overflow-auto">
144
+ <div class="sidebar-menu-container">
145
+ <ul class="list-unstyled mt-1">
146
+ <li class="sidebar-item">
147
+ <div class="sidebar-item-container">
148
+ <a href="./index.html" class="sidebar-item-text sidebar-link">
149
+ <span class="menu-text">lv-recipe-chatbot</span></a>
150
+ </div>
151
+ </li>
152
+ <li class="sidebar-item">
153
+ <div class="sidebar-item-container">
154
+ <a href="./engineer_prompt.html" class="sidebar-item-text sidebar-link">
155
+ <span class="menu-text">engineer_prompt</span></a>
156
+ </div>
157
+ </li>
158
+ <li class="sidebar-item">
159
+ <div class="sidebar-item-container">
160
+ <a href="./app.html" class="sidebar-item-text sidebar-link">
161
+ <span class="menu-text">app</span></a>
162
+ </div>
163
+ </li>
164
+ <li class="sidebar-item">
165
+ <div class="sidebar-item-container">
166
+ <a href="./lchain_tool.html" class="sidebar-item-text sidebar-link active">
167
+ <span class="menu-text">lchain_tool</span></a>
168
+ </div>
169
+ </li>
170
+ <li class="sidebar-item">
171
+ <div class="sidebar-item-container">
172
+ <a href="./ingredient_vision.html" class="sidebar-item-text sidebar-link">
173
+ <span class="menu-text">ingredient_vision</span></a>
174
+ </div>
175
+ </li>
176
+ <li class="sidebar-item">
177
+ <div class="sidebar-item-container">
178
+ <a href="./edamam_api.html" class="sidebar-item-text sidebar-link">
179
+ <span class="menu-text">edamam_api</span></a>
180
+ </div>
181
+ </li>
182
+ </ul>
183
+ </div>
184
+ </nav>
185
+ <div id="quarto-sidebar-glass" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass"></div>
186
+ <!-- margin-sidebar -->
187
+ <div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
188
+ <nav id="TOC" role="doc-toc" class="toc-active">
189
+ <h2 id="toc-title">On this page</h2>
190
+
191
+ <ul>
192
+ <li><a href="#serpapiwrapper" id="toc-serpapiwrapper" class="nav-link active" data-scroll-target="#serpapiwrapper">SerpAPIWrapper</a></li>
193
+ <li><a href="#recipeserpapiwrapper" id="toc-recipeserpapiwrapper" class="nav-link" data-scroll-target="#recipeserpapiwrapper">RecipeSerpAPIWrapper</a></li>
194
+ <li><a href="#load_tools" id="toc-load_tools" class="nav-link" data-scroll-target="#load_tools">load_tools</a></li>
195
+ </ul>
196
+ <div class="toc-actions"><div><i class="bi bi-git"></i></div><div class="action-links"><p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/issues/new" class="toc-action">Report an issue</a></p></div></div></nav>
197
+ </div>
198
+ <!-- main -->
199
+ <main class="content" id="quarto-document-content">
200
+
201
+ <header id="title-block-header" class="quarto-title-block default">
202
+ <div class="quarto-title">
203
+ <h1 class="title">lchain_tool</h1>
204
+ </div>
205
+
206
+ <div>
207
+ <div class="description">
208
+ Exploring Langchain Tool capabilities
209
+ </div>
210
+ </div>
211
+
212
+
213
+ <div class="quarto-title-meta">
214
+
215
+
216
+
217
+
218
+ </div>
219
+
220
+
221
+ </header>
222
+
223
+ <!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
224
+ <div class="cell">
225
+ <div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> dotenv <span class="im">import</span> load_dotenv</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
226
+ </div>
227
+ <div class="cell">
228
+ <div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>load_dotenv()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
229
+ <div class="cell-output cell-output-display">
230
+ <pre><code>True</code></pre>
231
+ </div>
232
+ </div>
233
+ <div class="cell">
234
+ <div class="sourceCode cell-code" id="cb4"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>llm <span class="op">=</span> ChatOpenAI(temperature<span class="op">=</span><span class="dv">0</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
235
+ </div>
236
+ <div class="cell">
237
+ <div class="sourceCode cell-code" id="cb5"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a>tools <span class="op">=</span> load_tools([<span class="st">"llm-math"</span>], llm<span class="op">=</span>llm)</span>
238
+ <span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a>agent <span class="op">=</span> initialize_agent(</span>
239
+ <span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a> tools,</span>
240
+ <span id="cb5-4"><a href="#cb5-4" aria-hidden="true" tabindex="-1"></a> llm,</span>
241
+ <span id="cb5-5"><a href="#cb5-5" aria-hidden="true" tabindex="-1"></a> agent<span class="op">=</span>AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,</span>
242
+ <span id="cb5-6"><a href="#cb5-6" aria-hidden="true" tabindex="-1"></a> handle_parsing_errors<span class="op">=</span><span class="va">True</span>,</span>
243
+ <span id="cb5-7"><a href="#cb5-7" aria-hidden="true" tabindex="-1"></a> verbose<span class="op">=</span><span class="va">True</span>,</span>
244
+ <span id="cb5-8"><a href="#cb5-8" aria-hidden="true" tabindex="-1"></a>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
245
+ </div>
246
+ <div class="cell">
247
+ <div class="sourceCode cell-code" id="cb6"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>agent(<span class="st">"What is the 3</span><span class="sc">% o</span><span class="st">f of 300 * 30?"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
248
+ <div class="cell-output cell-output-stdout">
249
+ <pre><code>
250
+
251
+ &gt; Entering new AgentExecutor chain...
252
+ We can calculate this using the Calculator tool.
253
+
254
+ Action:
255
+ ```
256
+ {
257
+ "action": "Calculator",
258
+ "action_input": "0.03 * 300 * 30"
259
+ }
260
+ ```
261
+
262
+
263
+ Observation: Answer: 270.0
264
+ Thought:Could not parse LLM output: This is the correct answer to the question.
265
+ Observation: Invalid or incomplete response
266
+ Thought:Let me try the same action again.
267
+
268
+ Action:
269
+ ```
270
+ {
271
+ "action": "Calculator",
272
+ "action_input": "0.03 * 300 * 30"
273
+ }
274
+ ```
275
+
276
+
277
+ Observation: Answer: 270.0
278
+ Thought:Could not parse LLM output: The tool gave the same answer, so I can be confident that it is correct.
279
+
280
+ Observation: Invalid or incomplete response
281
+ Thought:There seems to be an issue with the LLM response. Let me try a different way to calculate the answer.
282
+
283
+ Action:
284
+ ```
285
+ {
286
+ "action": "Calculator",
287
+ "action_input": "300 * 30 * 0.03"
288
+ }
289
+ ```
290
+
291
+
292
+ Observation: Answer: 270.0
293
+ Thought:I have successfully calculated the answer to the question using the calculator tool.
294
+
295
+ Final Answer: 270.0
296
+
297
+ &gt; Finished chain.</code></pre>
298
+ </div>
299
+ <div class="cell-output cell-output-display">
300
+ <pre><code>{'input': 'What is the 3% of of 300 * 30?', 'output': '270.0'}</code></pre>
301
+ </div>
302
+ </div>
303
+ <p><a href="https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html#searching-for-google-images">SerpAPI Google Images</a></p>
304
+ <div class="cell">
305
+ <div class="sourceCode cell-code" id="cb9"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a>params <span class="op">=</span> {</span>
306
+ <span id="cb9-2"><a href="#cb9-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"q"</span>: <span class="st">"Vegan pad thai recipes"</span>,</span>
307
+ <span id="cb9-3"><a href="#cb9-3" aria-hidden="true" tabindex="-1"></a> <span class="st">"location"</span>: <span class="st">"United States"</span>,</span>
308
+ <span id="cb9-4"><a href="#cb9-4" aria-hidden="true" tabindex="-1"></a> <span class="st">"hl"</span>: <span class="st">"en"</span>,</span>
309
+ <span id="cb9-5"><a href="#cb9-5" aria-hidden="true" tabindex="-1"></a> <span class="st">"gl"</span>: <span class="st">"us"</span>,</span>
310
+ <span id="cb9-6"><a href="#cb9-6" aria-hidden="true" tabindex="-1"></a> <span class="st">"api_key"</span>: os.environ[<span class="st">"SERPAPI_API_KEY"</span>],</span>
311
+ <span id="cb9-7"><a href="#cb9-7" aria-hidden="true" tabindex="-1"></a>}</span>
312
+ <span id="cb9-8"><a href="#cb9-8" aria-hidden="true" tabindex="-1"></a></span>
313
+ <span id="cb9-9"><a href="#cb9-9" aria-hidden="true" tabindex="-1"></a>search <span class="op">=</span> GoogleSearch(params)</span>
314
+ <span id="cb9-10"><a href="#cb9-10" aria-hidden="true" tabindex="-1"></a>results <span class="op">=</span> search.get_dict()</span>
315
+ <span id="cb9-11"><a href="#cb9-11" aria-hidden="true" tabindex="-1"></a>recipes_results <span class="op">=</span> results[<span class="st">"recipes_results"</span>]</span>
316
+ <span id="cb9-12"><a href="#cb9-12" aria-hidden="true" tabindex="-1"></a>recipes_results</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
317
+ <div class="cell-output cell-output-display">
318
+ <pre><code>[{'title': 'Easy Tofu Pad Thai',
319
+ 'link': 'https://minimalistbaker.com/easy-tofu-pad-thai/',
320
+ 'source': 'Minimalist Baker',
321
+ 'rating': 4.9,
322
+ 'reviews': 117,
323
+ 'total_time': '30 min',
324
+ 'ingredients': ['Pad thai rice',
325
+ 'peanut sauce',
326
+ 'thai red',
327
+ 'soy sauce',
328
+ 'bean sprouts']},
329
+ {'title': 'Vegan Pad Thai',
330
+ 'link': 'https://www.noracooks.com/vegan-pad-thai/',
331
+ 'source': 'Nora Cooks',
332
+ 'rating': 5.0,
333
+ 'reviews': 53,
334
+ 'total_time': '30 min',
335
+ 'ingredients': ['Stir fry rice',
336
+ 'mung bean sprouts',
337
+ 'soy sauce',
338
+ 'maple syrup',
339
+ 'sriracha hot sauce']},
340
+ {'title': 'Vegan Pad Thai',
341
+ 'link': 'https://www.pickuplimes.com/recipe/speedy-vegan-pad-thai-116',
342
+ 'source': 'Pick Up Limes',
343
+ 'rating': 5.0,
344
+ 'reviews': 34,
345
+ 'total_time': '30 min',
346
+ 'ingredients': ['Brown rice noodles',
347
+ 'red hot',
348
+ 'soy sauce',
349
+ 'bean sprouts',
350
+ 'sriracha hot sauce']}]</code></pre>
351
+ </div>
352
+ </div>
353
+ <hr>
354
+ <section id="serpapiwrapper" class="level3">
355
+ <h3 class="anchored" data-anchor-id="serpapiwrapper">SerpAPIWrapper</h3>
356
+ <blockquote class="blockquote">
357
+ <pre><code> SerpAPIWrapper (search_engine:Any=None, params:dict={'engine': 'google',
358
+ 'google_domain': 'google.com', 'gl': 'us', 'hl': 'en'},
359
+ serpapi_api_key:Optional[str]=None,
360
+ aiosession:Optional[aiohttp.client.ClientSession]=None)</code></pre>
361
+ </blockquote>
362
+ <p>Wrapper around SerpAPI.</p>
363
+ <p>To use, you should have the <code>google-search-results</code> python package installed, and the environment variable <code>SERPAPI_API_KEY</code> set with your API key, or pass <code>serpapi_api_key</code> as a named parameter to the constructor.</p>
364
+ <p>Example: .. code-block:: python</p>
365
+ <pre><code> from langchain import SerpAPIWrapper
366
+ serpapi = SerpAPIWrapper()</code></pre>
367
+ <hr>
368
+ <p><a href="https://gitlab.com/animalequality/lv-recipe-chatbot/blob/main/lv_recipe_chatbot/lchain_tool.py#L19" target="_blank" style="float:right; font-size:smaller">source</a></p>
369
+ </section>
370
+ <section id="recipeserpapiwrapper" class="level3">
371
+ <h3 class="anchored" data-anchor-id="recipeserpapiwrapper">RecipeSerpAPIWrapper</h3>
372
+ <blockquote class="blockquote">
373
+ <pre><code> RecipeSerpAPIWrapper (search_engine:Any=None, params:dict={'engine':
374
+ 'google', 'google_domain': 'google.com', 'gl':
375
+ 'us', 'hl': 'en'},
376
+ serpapi_api_key:Optional[str]=None, aiosession:Opti
377
+ onal[aiohttp.client.ClientSession]=None)</code></pre>
378
+ </blockquote>
379
+ <p>Wrapper around SerpAPI.</p>
380
+ <p>To use, you should have the <code>google-search-results</code> python package installed, and the environment variable <code>SERPAPI_API_KEY</code> set with your API key, or pass <code>serpapi_api_key</code> as a named parameter to the constructor.</p>
381
+ <p>Example: .. code-block:: python</p>
382
+ <pre><code> from langchain import SerpAPIWrapper
383
+ serpapi = SerpAPIWrapper()</code></pre>
384
+ <div class="cell">
385
+ <div class="sourceCode cell-code" id="cb15"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb15-1"><a href="#cb15-1" aria-hidden="true" tabindex="-1"></a>params <span class="op">=</span> {</span>
386
+ <span id="cb15-2"><a href="#cb15-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"location"</span>: <span class="st">"United States"</span>,</span>
387
+ <span id="cb15-3"><a href="#cb15-3" aria-hidden="true" tabindex="-1"></a> <span class="st">"hl"</span>: <span class="st">"en"</span>,</span>
388
+ <span id="cb15-4"><a href="#cb15-4" aria-hidden="true" tabindex="-1"></a> <span class="st">"gl"</span>: <span class="st">"us"</span>,</span>
389
+ <span id="cb15-5"><a href="#cb15-5" aria-hidden="true" tabindex="-1"></a>}</span>
390
+ <span id="cb15-6"><a href="#cb15-6" aria-hidden="true" tabindex="-1"></a>search <span class="op">=</span> RecipeSerpAPIWrapper(params<span class="op">=</span>params)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
391
+ </div>
392
+ <div class="cell">
393
+ <div class="sourceCode cell-code" id="cb16"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb16-1"><a href="#cb16-1" aria-hidden="true" tabindex="-1"></a>vegan_recipes <span class="op">=</span> search.run(<span class="st">"Vegan fried rice recipes"</span>)</span>
394
+ <span id="cb16-2"><a href="#cb16-2" aria-hidden="true" tabindex="-1"></a>vegan_recipes[<span class="dv">0</span>:<span class="dv">3</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
395
+ <div class="cell-output cell-output-display">
396
+ <pre><code>[{'title': 'Easy Vegan Fried Rice',
397
+ 'link': 'https://minimalistbaker.com/easy-vegan-fried-rice/',
398
+ 'source': 'Minimalist Baker',
399
+ 'rating': 4.8,
400
+ 'reviews': 457,
401
+ 'total_time': '1 hr 15 min',
402
+ 'ingredients': ['Peanut butter',
403
+ 'grain brown rice',
404
+ 'soy sauce',
405
+ 'maple syrup',
406
+ 'chili garlic sauce']},
407
+ {'title': 'The Best Vegan Fried Rice',
408
+ 'link': 'https://shortgirltallorder.com/best-vegan-fried-rice',
409
+ 'source': 'Short Girl Tall Order',
410
+ 'rating': 4.8,
411
+ 'reviews': 65,
412
+ 'total_time': '28 min',
413
+ 'ingredients': ['Soy sauce',
414
+ 'white rice',
415
+ 'rice wine vinegar',
416
+ 'sugar',
417
+ 'fresh peas']},
418
+ {'title': 'Vegan Fried Rice',
419
+ 'link': 'https://www.noracooks.com/vegan-fried-rice/',
420
+ 'source': 'Nora Cooks',
421
+ 'rating': 5.0,
422
+ 'reviews': 15,
423
+ 'total_time': '20 min',
424
+ 'ingredients': ['Gluten free',
425
+ 'nutritional yeast',
426
+ 'toasted sesame oil',
427
+ 'carrots',
428
+ 'olive oil']}]</code></pre>
429
+ </div>
430
+ </div>
431
+ <div class="cell">
432
+ <div class="sourceCode cell-code" id="cb18"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb18-1"><a href="#cb18-1" aria-hidden="true" tabindex="-1"></a>params <span class="op">=</span> {</span>
433
+ <span id="cb18-2"><a href="#cb18-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"engine"</span>: <span class="st">"google_images"</span>,</span>
434
+ <span id="cb18-3"><a href="#cb18-3" aria-hidden="true" tabindex="-1"></a> <span class="st">"q"</span>: <span class="st">"Vegan pad thai recipes"</span>,</span>
435
+ <span id="cb18-4"><a href="#cb18-4" aria-hidden="true" tabindex="-1"></a> <span class="st">"location"</span>: <span class="st">"United States"</span>,</span>
436
+ <span id="cb18-5"><a href="#cb18-5" aria-hidden="true" tabindex="-1"></a> <span class="st">"api_key"</span>: os.environ[<span class="st">"SERPAPI_API_KEY"</span>],</span>
437
+ <span id="cb18-6"><a href="#cb18-6" aria-hidden="true" tabindex="-1"></a>}</span>
438
+ <span id="cb18-7"><a href="#cb18-7" aria-hidden="true" tabindex="-1"></a></span>
439
+ <span id="cb18-8"><a href="#cb18-8" aria-hidden="true" tabindex="-1"></a>search <span class="op">=</span> GoogleSearch(params)</span>
440
+ <span id="cb18-9"><a href="#cb18-9" aria-hidden="true" tabindex="-1"></a>results <span class="op">=</span> search.get_dict()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
441
+ </div>
442
+ <div class="cell">
443
+ <div class="sourceCode cell-code" id="cb19"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb19-1"><a href="#cb19-1" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> r <span class="kw">in</span> results[<span class="st">"images_results"</span>][<span class="dv">0</span>:<span class="dv">5</span>]:</span>
444
+ <span id="cb19-2"><a href="#cb19-2" aria-hidden="true" tabindex="-1"></a> display(r[<span class="st">"title"</span>], r[<span class="st">"link"</span>], Image(url<span class="op">=</span>r[<span class="st">"thumbnail"</span>]))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
445
+ <div class="cell-output cell-output-display">
446
+ <pre><code>'Easy Tofu Pad Thai (Vegan) | Minimalist Baker Recipes'</code></pre>
447
+ </div>
448
+ <div class="cell-output cell-output-display">
449
+ <pre><code>'https://minimalistbaker.com/easy-tofu-pad-thai/'</code></pre>
450
+ </div>
451
+ <div class="cell-output cell-output-display">
452
+ <img src="https://serpapi.com/searches/6480db18c56d93170a8e715f/images/6f34b4708ae4dd36a28ca4ca4a3abf6af168f575eef7bd2e8f81a12e175fcf53.jpeg">
453
+ </div>
454
+ <div class="cell-output cell-output-display">
455
+ <pre><code>'Healthier vegan pad thai - Lazy Cat Kitchen'</code></pre>
456
+ </div>
457
+ <div class="cell-output cell-output-display">
458
+ <pre><code>'https://www.lazycatkitchen.com/healthier-vegan-pad-thai/'</code></pre>
459
+ </div>
460
+ <div class="cell-output cell-output-display">
461
+ <img src="https://serpapi.com/searches/6480db18c56d93170a8e715f/images/6f34b4708ae4dd36dee6fed89369c822a79ad529f726d1a65fdd09459c0a0b6a.jpeg">
462
+ </div>
463
+ <div class="cell-output cell-output-display">
464
+ <pre><code>'The Best Vegan Pad Thai - Full of Plants'</code></pre>
465
+ </div>
466
+ <div class="cell-output cell-output-display">
467
+ <pre><code>'https://fullofplants.com/the-best-vegan-pad-thai/'</code></pre>
468
+ </div>
469
+ <div class="cell-output cell-output-display">
470
+ <img src="https://serpapi.com/searches/6480db18c56d93170a8e715f/images/6f34b4708ae4dd3695828a207980e4280bb4e14cdccb84ebf5350f19237416f8.jpeg">
471
+ </div>
472
+ <div class="cell-output cell-output-display">
473
+ <pre><code>'Easy Vegan Pad Thai - Oh My Veggies'</code></pre>
474
+ </div>
475
+ <div class="cell-output cell-output-display">
476
+ <pre><code>'https://ohmyveggies.com/easy-vegan-pad-thai/'</code></pre>
477
+ </div>
478
+ <div class="cell-output cell-output-display">
479
+ <img src="https://serpapi.com/searches/6480db18c56d93170a8e715f/images/6f34b4708ae4dd36885ca51553e15b434e41039ef307ecbb4869522eeeefcfa5.jpeg">
480
+ </div>
481
+ <div class="cell-output cell-output-display">
482
+ <pre><code>'Easy Vegan Pad Thai - My Darling Vegan'</code></pre>
483
+ </div>
484
+ <div class="cell-output cell-output-display">
485
+ <pre><code>'https://www.mydarlingvegan.com/vegan-pad-thai/'</code></pre>
486
+ </div>
487
+ <div class="cell-output cell-output-display">
488
+ <img src="https://serpapi.com/searches/6480db18c56d93170a8e715f/images/6f34b4708ae4dd36a554bfded8055a9df50470d25fe62e19b9de5f16e262497f.jpeg">
489
+ </div>
490
+ </div>
491
+ <hr>
492
+ </section>
493
+ <section id="load_tools" class="level3">
494
+ <h3 class="anchored" data-anchor-id="load_tools">load_tools</h3>
495
+ <blockquote class="blockquote">
496
+ <pre><code> load_tools (tool_names:List[str],
497
+ llm:Optional[langchain.base_language.BaseLanguageModel]=None,
498
+ callbacks:Union[List[langchain.callbacks.base.BaseCallbackHan
499
+ dler],langchain.callbacks.base.BaseCallbackManager,NoneType]=
500
+ None, **kwargs:Any)</code></pre>
501
+ </blockquote>
502
+ <p>Load tools based on their name.</p>
503
+ <p>Args: tool_names: name of tools to load. llm: Optional language model, may be needed to initialize certain tools. callbacks: Optional callback manager or list of callback handlers. If not provided, default global callback manager will be used.</p>
504
+ <p>Returns: List of tools.</p>
505
+ <p>Here is the SerpAPIWrapper tool implementation</p>
506
+ <div class="cell">
507
+ <div class="sourceCode cell-code" id="cb31"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb31-1"><a href="#cb31-1" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> langchain.agents.load_tools <span class="im">import</span> _get_serpapi</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
508
+ </div>
509
+ <div class="cell">
510
+ <div class="sourceCode cell-code" id="cb32"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb32-1"><a href="#cb32-1" aria-hidden="true" tabindex="-1"></a>??_get_serpapi</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
511
+ <div class="cell-output cell-output-display">
512
+ <div class="ansi-escaped-output">
513
+ <pre><span class="ansi-red-fg">Signature:</span> _get_serpapi<span class="ansi-blue-fg">(</span><span class="ansi-blue-fg">**</span>kwargs<span class="ansi-blue-fg">:</span> Any<span class="ansi-blue-fg">)</span> <span class="ansi-blue-fg">-&gt;</span> langchain<span class="ansi-blue-fg">.</span>tools<span class="ansi-blue-fg">.</span>base<span class="ansi-blue-fg">.</span>BaseTool
514
+ <span class="ansi-red-fg">Docstring:</span> &lt;no docstring&gt;
515
+ <span class="ansi-red-fg">Source:</span>
516
+ <span class="ansi-green-fg">def</span> _get_serpapi<span class="ansi-blue-fg">(</span><span class="ansi-blue-fg">**</span>kwargs<span class="ansi-blue-fg">:</span> Any<span class="ansi-blue-fg">)</span> <span class="ansi-blue-fg">-&gt;</span> BaseTool<span class="ansi-blue-fg">:</span>
517
+ <span class="ansi-green-fg">return</span> Tool<span class="ansi-blue-fg">(</span>
518
+ name<span class="ansi-blue-fg">=</span><span class="ansi-blue-fg">"Search"</span><span class="ansi-blue-fg">,</span>
519
+ description<span class="ansi-blue-fg">=</span><span class="ansi-blue-fg">"A search engine. Useful for when you need to answer questions about current events. Input should be a search query."</span><span class="ansi-blue-fg">,</span>
520
+ func<span class="ansi-blue-fg">=</span>SerpAPIWrapper<span class="ansi-blue-fg">(</span><span class="ansi-blue-fg">**</span>kwargs<span class="ansi-blue-fg">)</span><span class="ansi-blue-fg">.</span>run<span class="ansi-blue-fg">,</span>
521
+ coroutine<span class="ansi-blue-fg">=</span>SerpAPIWrapper<span class="ansi-blue-fg">(</span><span class="ansi-blue-fg">**</span>kwargs<span class="ansi-blue-fg">)</span><span class="ansi-blue-fg">.</span>arun<span class="ansi-blue-fg">,</span>
522
+ <span class="ansi-blue-fg">)</span>
523
+ <span class="ansi-red-fg">File:</span> ~/AnimalEquality/lv-recipe-chatbot/env/lib/python3.10/site-packages/langchain/agents/load_tools.py
524
+ <span class="ansi-red-fg">Type:</span> function</pre>
525
+ </div>
526
+ </div>
527
+ </div>
528
+ <p>Let’s use that for inspiration for our recipe version of the tool</p>
529
+ <div class="cell">
530
+ <div class="sourceCode cell-code" id="cb33"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb33-1"><a href="#cb33-1" aria-hidden="true" tabindex="-1"></a>params <span class="op">=</span> {</span>
531
+ <span id="cb33-2"><a href="#cb33-2" aria-hidden="true" tabindex="-1"></a> <span class="st">"location"</span>: <span class="st">"United States"</span>,</span>
532
+ <span id="cb33-3"><a href="#cb33-3" aria-hidden="true" tabindex="-1"></a> <span class="st">"hl"</span>: <span class="st">"en"</span>,</span>
533
+ <span id="cb33-4"><a href="#cb33-4" aria-hidden="true" tabindex="-1"></a> <span class="st">"gl"</span>: <span class="st">"us"</span>,</span>
534
+ <span id="cb33-5"><a href="#cb33-5" aria-hidden="true" tabindex="-1"></a>}</span>
535
+ <span id="cb33-6"><a href="#cb33-6" aria-hidden="true" tabindex="-1"></a>search <span class="op">=</span> RecipeSerpAPIWrapper(params<span class="op">=</span>params)</span>
536
+ <span id="cb33-7"><a href="#cb33-7" aria-hidden="true" tabindex="-1"></a>serpapi_recipe_tool <span class="op">=</span> Tool(</span>
537
+ <span id="cb33-8"><a href="#cb33-8" aria-hidden="true" tabindex="-1"></a> name<span class="op">=</span><span class="st">"Vegan Recipe Search"</span>,</span>
538
+ <span id="cb33-9"><a href="#cb33-9" aria-hidden="true" tabindex="-1"></a> description<span class="op">=</span><span class="st">"A search engine. Useful for when you need to fetch existing vetted vegan recipes. Input should be a vegan recipe search query."</span>,</span>
539
+ <span id="cb33-10"><a href="#cb33-10" aria-hidden="true" tabindex="-1"></a> func<span class="op">=</span>search.run,</span>
540
+ <span id="cb33-11"><a href="#cb33-11" aria-hidden="true" tabindex="-1"></a>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
541
+ </div>
542
+ <div class="cell">
543
+ <div class="sourceCode cell-code" id="cb34"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb34-1"><a href="#cb34-1" aria-hidden="true" tabindex="-1"></a><span class="at">@tool</span></span>
544
+ <span id="cb34-2"><a href="#cb34-2" aria-hidden="true" tabindex="-1"></a><span class="kw">def</span> time(text: <span class="bu">str</span>) <span class="op">-&gt;</span> <span class="bu">str</span>:</span>
545
+ <span id="cb34-3"><a href="#cb34-3" aria-hidden="true" tabindex="-1"></a> <span class="co">"""Returns todays date, use this for any</span></span>
546
+ <span id="cb34-4"><a href="#cb34-4" aria-hidden="true" tabindex="-1"></a><span class="co"> questions related to knowing todays date.</span></span>
547
+ <span id="cb34-5"><a href="#cb34-5" aria-hidden="true" tabindex="-1"></a><span class="co"> The input should always be an empty string,</span></span>
548
+ <span id="cb34-6"><a href="#cb34-6" aria-hidden="true" tabindex="-1"></a><span class="co"> and this function will always return todays</span></span>
549
+ <span id="cb34-7"><a href="#cb34-7" aria-hidden="true" tabindex="-1"></a><span class="co"> date - any date mathmatics should occur</span></span>
550
+ <span id="cb34-8"><a href="#cb34-8" aria-hidden="true" tabindex="-1"></a><span class="co"> outside this function."""</span></span>
551
+ <span id="cb34-9"><a href="#cb34-9" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> <span class="bu">str</span>(date.today())</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
552
+ </div>
553
+ <div class="cell">
554
+ <div class="sourceCode cell-code" id="cb35"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb35-1"><a href="#cb35-1" aria-hidden="true" tabindex="-1"></a>agent <span class="op">=</span> initialize_agent(</span>
555
+ <span id="cb35-2"><a href="#cb35-2" aria-hidden="true" tabindex="-1"></a> [time],</span>
556
+ <span id="cb35-3"><a href="#cb35-3" aria-hidden="true" tabindex="-1"></a> llm,</span>
557
+ <span id="cb35-4"><a href="#cb35-4" aria-hidden="true" tabindex="-1"></a> agent<span class="op">=</span>AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,</span>
558
+ <span id="cb35-5"><a href="#cb35-5" aria-hidden="true" tabindex="-1"></a> handle_parsing_errors<span class="op">=</span><span class="va">True</span>,</span>
559
+ <span id="cb35-6"><a href="#cb35-6" aria-hidden="true" tabindex="-1"></a> verbose<span class="op">=</span><span class="va">True</span>,</span>
560
+ <span id="cb35-7"><a href="#cb35-7" aria-hidden="true" tabindex="-1"></a>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
561
+ </div>
562
+ <div class="cell">
563
+ <div class="sourceCode cell-code" id="cb36"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb36-1"><a href="#cb36-1" aria-hidden="true" tabindex="-1"></a><span class="at">@tool</span></span>
564
+ <span id="cb36-2"><a href="#cb36-2" aria-hidden="true" tabindex="-1"></a><span class="kw">def</span> vegan_recipe_serpapi_search(text: <span class="bu">str</span>) <span class="op">-&gt;</span> <span class="bu">str</span>:</span>
565
+ <span id="cb36-3"><a href="#cb36-3" aria-hidden="true" tabindex="-1"></a> <span class="co">"""Returns a JSON/Python list of dictionaries of recipe data with keys in format:</span></span>
566
+ <span id="cb36-4"><a href="#cb36-4" aria-hidden="true" tabindex="-1"></a><span class="co"> ```</span></span>
567
+ <span id="cb36-5"><a href="#cb36-5" aria-hidden="true" tabindex="-1"></a><span class="co"> 'title': str,</span></span>
568
+ <span id="cb36-6"><a href="#cb36-6" aria-hidden="true" tabindex="-1"></a><span class="co"> 'link': str,</span></span>
569
+ <span id="cb36-7"><a href="#cb36-7" aria-hidden="true" tabindex="-1"></a><span class="co"> 'source': str,</span></span>
570
+ <span id="cb36-8"><a href="#cb36-8" aria-hidden="true" tabindex="-1"></a><span class="co"> 'rating': int,</span></span>
571
+ <span id="cb36-9"><a href="#cb36-9" aria-hidden="true" tabindex="-1"></a><span class="co"> 'reviews': int,</span></span>
572
+ <span id="cb36-10"><a href="#cb36-10" aria-hidden="true" tabindex="-1"></a><span class="co"> 'total_time': str,</span></span>
573
+ <span id="cb36-11"><a href="#cb36-11" aria-hidden="true" tabindex="-1"></a><span class="co"> 'ingredients': [</span></span>
574
+ <span id="cb36-12"><a href="#cb36-12" aria-hidden="true" tabindex="-1"></a><span class="co"> str,</span></span>
575
+ <span id="cb36-13"><a href="#cb36-13" aria-hidden="true" tabindex="-1"></a><span class="co"> str,</span></span>
576
+ <span id="cb36-14"><a href="#cb36-14" aria-hidden="true" tabindex="-1"></a><span class="co"> ```</span></span>
577
+ <span id="cb36-15"><a href="#cb36-15" aria-hidden="true" tabindex="-1"></a><span class="co"> The input must be the name of a vegan recipe </span><span class="ch">\</span></span>
578
+ <span id="cb36-16"><a href="#cb36-16" aria-hidden="true" tabindex="-1"></a><span class="co"> or query parameters such as ingredients to include, prep time, cuisine region. </span><span class="ch">\</span></span>
579
+ <span id="cb36-17"><a href="#cb36-17" aria-hidden="true" tabindex="-1"></a><span class="co"> Only execute the search for vegan recipes and ingredients. </span><span class="ch">\</span></span>
580
+ <span id="cb36-18"><a href="#cb36-18" aria-hidden="true" tabindex="-1"></a><span class="co"> If the SerpAPI request errors or recipes are not found, </span><span class="ch">\</span></span>
581
+ <span id="cb36-19"><a href="#cb36-19" aria-hidden="true" tabindex="-1"></a><span class="co"> an explanation message will be returned instead of the recipe JSON."""</span></span>
582
+ <span id="cb36-20"><a href="#cb36-20" aria-hidden="true" tabindex="-1"></a> params <span class="op">=</span> {</span>
583
+ <span id="cb36-21"><a href="#cb36-21" aria-hidden="true" tabindex="-1"></a> <span class="st">"q"</span>: text,</span>
584
+ <span id="cb36-22"><a href="#cb36-22" aria-hidden="true" tabindex="-1"></a> <span class="st">"location"</span>: <span class="st">"United States"</span>,</span>
585
+ <span id="cb36-23"><a href="#cb36-23" aria-hidden="true" tabindex="-1"></a> <span class="st">"hl"</span>: <span class="st">"en"</span>,</span>
586
+ <span id="cb36-24"><a href="#cb36-24" aria-hidden="true" tabindex="-1"></a> <span class="st">"gl"</span>: <span class="st">"us"</span>,</span>
587
+ <span id="cb36-25"><a href="#cb36-25" aria-hidden="true" tabindex="-1"></a> <span class="st">"api_key"</span>: os.environ[<span class="st">"SERPAPI_API_KEY"</span>],</span>
588
+ <span id="cb36-26"><a href="#cb36-26" aria-hidden="true" tabindex="-1"></a> }</span>
589
+ <span id="cb36-27"><a href="#cb36-27" aria-hidden="true" tabindex="-1"></a></span>
590
+ <span id="cb36-28"><a href="#cb36-28" aria-hidden="true" tabindex="-1"></a> search <span class="op">=</span> GoogleSearch(params)</span>
591
+ <span id="cb36-29"><a href="#cb36-29" aria-hidden="true" tabindex="-1"></a> results <span class="op">=</span> search.get_dict()</span>
592
+ <span id="cb36-30"><a href="#cb36-30" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> <span class="st">"error"</span> <span class="kw">in</span> results.keys():</span>
593
+ <span id="cb36-31"><a href="#cb36-31" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> <span class="ss">f"Received an error from SerpAPI: </span><span class="sc">{</span>results[<span class="st">'error'</span>]<span class="sc">}</span><span class="ch">\n</span><span class="ss"> Query: </span><span class="sc">{</span>text<span class="sc">}</span><span class="ss">"</span></span>
594
+ <span id="cb36-32"><a href="#cb36-32" aria-hidden="true" tabindex="-1"></a></span>
595
+ <span id="cb36-33"><a href="#cb36-33" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> <span class="st">"recipes_results"</span> <span class="kw">in</span> results.keys():</span>
596
+ <span id="cb36-34"><a href="#cb36-34" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> <span class="bu">str</span>(results[<span class="st">"recipes_results"</span>])</span>
597
+ <span id="cb36-35"><a href="#cb36-35" aria-hidden="true" tabindex="-1"></a></span>
598
+ <span id="cb36-36"><a href="#cb36-36" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> <span class="st">"No recipes found for that query"</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
599
+ </div>
600
+ <p>Create an agent with the tool</p>
601
+ <div class="cell">
602
+ <div class="sourceCode cell-code" id="cb37"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb37-1"><a href="#cb37-1" aria-hidden="true" tabindex="-1"></a>agent <span class="op">=</span> initialize_agent(</span>
603
+ <span id="cb37-2"><a href="#cb37-2" aria-hidden="true" tabindex="-1"></a> tools<span class="op">=</span>[vegan_recipe_serpapi_search],</span>
604
+ <span id="cb37-3"><a href="#cb37-3" aria-hidden="true" tabindex="-1"></a> llm<span class="op">=</span>llm,</span>
605
+ <span id="cb37-4"><a href="#cb37-4" aria-hidden="true" tabindex="-1"></a> agent<span class="op">=</span>AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,</span>
606
+ <span id="cb37-5"><a href="#cb37-5" aria-hidden="true" tabindex="-1"></a> handle_parsing_errors<span class="op">=</span><span class="va">True</span>,</span>
607
+ <span id="cb37-6"><a href="#cb37-6" aria-hidden="true" tabindex="-1"></a> verbose<span class="op">=</span><span class="va">True</span>,</span>
608
+ <span id="cb37-7"><a href="#cb37-7" aria-hidden="true" tabindex="-1"></a>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
609
+ </div>
610
+ <div class="cell">
611
+ <div class="sourceCode cell-code" id="cb38"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb38-1"><a href="#cb38-1" aria-hidden="true" tabindex="-1"></a>agent.run(<span class="st">"Search vegan pad thai recipes"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
612
+ <div class="cell-output cell-output-stdout">
613
+ <pre><code>
614
+
615
+ &gt; Entering new AgentExecutor chain...
616
+ Thought: I can use the `vegan_recipe_serpapi_search` tool to search for vegan pad thai recipes.
617
+
618
+ Action:
619
+ ```
620
+ {
621
+ "action": "vegan_recipe_serpapi_search",
622
+ "action_input": "vegan pad thai"
623
+ }
624
+ ```
625
+
626
+
627
+ Observation: [{'title': 'Vegan Pad Thai', 'link': 'https://www.noracooks.com/vegan-pad-thai/', 'source': 'Nora Cooks', 'rating': 5.0, 'reviews': 53, 'total_time': '30 min', 'ingredients': ['Stir fry rice', 'mung bean sprouts', 'soy sauce', 'maple syrup', 'sriracha hot sauce']}, {'title': 'Easy Tofu Pad Thai', 'link': 'https://minimalistbaker.com/easy-tofu-pad-thai/', 'source': 'Minimalist Baker', 'rating': 4.9, 'reviews': 117, 'total_time': '30 min', 'ingredients': ['Pad thai rice', 'peanut sauce', 'thai red', 'soy sauce', 'bean sprouts']}, {'title': 'Vegan Pad Thai', 'link': 'https://www.pickuplimes.com/recipe/speedy-vegan-pad-thai-116', 'source': 'Pick Up Limes', 'rating': 5.0, 'reviews': 34, 'total_time': '30 min', 'ingredients': ['Brown rice noodles', 'red hot', 'soy sauce', 'bean sprouts', 'sriracha hot sauce']}]
628
+ Thought:Could not parse LLM output: The `vegan_recipe_serpapi_search` tool returned a list of three vegan pad thai recipes with their titles, links, sources, ratings, reviews, total time, and ingredients.
629
+ Observation: Invalid or incomplete response
630
+ Thought:I will try running the `vegan_recipe_serpapi_search` tool again with the input "vegan pad thai".
631
+
632
+ Action:
633
+ ```
634
+ {
635
+ "action": "vegan_recipe_serpapi_search",
636
+ "action_input": "vegan pad thai"
637
+ }
638
+ ```
639
+
640
+
641
+
642
+ Observation: [{'title': 'Vegan Pad Thai', 'link': 'https://www.noracooks.com/vegan-pad-thai/', 'source': 'Nora Cooks', 'rating': 5.0, 'reviews': 53, 'total_time': '30 min', 'ingredients': ['Stir fry rice', 'mung bean sprouts', 'soy sauce', 'maple syrup', 'sriracha hot sauce']}, {'title': 'Easy Tofu Pad Thai', 'link': 'https://minimalistbaker.com/easy-tofu-pad-thai/', 'source': 'Minimalist Baker', 'rating': 4.9, 'reviews': 117, 'total_time': '30 min', 'ingredients': ['Pad thai rice', 'peanut sauce', 'thai red', 'soy sauce', 'bean sprouts']}, {'title': 'Vegan Pad Thai', 'link': 'https://www.pickuplimes.com/recipe/speedy-vegan-pad-thai-116', 'source': 'Pick Up Limes', 'rating': 5.0, 'reviews': 34, 'total_time': '30 min', 'ingredients': ['Brown rice noodles', 'red hot', 'soy sauce', 'bean sprouts', 'sriracha hot sauce']}]
643
+ Thought:Could not parse LLM output: The `vegan_recipe_serpapi_search` tool returned a list of three vegan pad thai recipes with their titles, links, sources, ratings, reviews, total time, and ingredients.
644
+
645
+ Observation: Invalid or incomplete response
646
+ Thought:I will try running the `vegan_recipe_serpapi_search` tool again with the input "vegan pad thai recipes".
647
+
648
+ Action:
649
+ ```
650
+ {
651
+ "action": "vegan_recipe_serpapi_search",
652
+ "action_input": "vegan pad thai recipes"
653
+ }
654
+ ```
655
+
656
+
657
+
658
+ Observation: [{'title': 'Easy Tofu Pad Thai', 'link': 'https://minimalistbaker.com/easy-tofu-pad-thai/', 'source': 'Minimalist Baker', 'rating': 4.9, 'reviews': 117, 'total_time': '30 min', 'ingredients': ['Pad thai rice', 'peanut sauce', 'thai red', 'soy sauce', 'bean sprouts']}, {'title': 'Vegan Pad Thai', 'link': 'https://www.noracooks.com/vegan-pad-thai/', 'source': 'Nora Cooks', 'rating': 5.0, 'reviews': 53, 'total_time': '30 min', 'ingredients': ['Stir fry rice', 'mung bean sprouts', 'soy sauce', 'maple syrup', 'sriracha hot sauce']}, {'title': 'Vegan Pad Thai', 'link': 'https://www.pickuplimes.com/recipe/speedy-vegan-pad-thai-116', 'source': 'Pick Up Limes', 'rating': 5.0, 'reviews': 34, 'total_time': '30 min', 'ingredients': ['Brown rice noodles', 'red hot', 'soy sauce', 'bean sprouts', 'sriracha hot sauce']}]
659
+ Thought:Could not parse LLM output: I have successfully used the `vegan_recipe_serpapi_search` tool to search for vegan pad thai recipes. The tool returned a list of three vegan pad thai recipes with their titles, links, sources, ratings, reviews, total time, and ingredients.
660
+
661
+
662
+ Observation: Invalid or incomplete response
663
+ Thought:I will try running the `vegan_recipe_serpapi_search` tool again with the input "vegan pad thai recipe".
664
+
665
+ Action:
666
+ ```
667
+ {
668
+ "action": "vegan_recipe_serpapi_search",
669
+ "action_input": "vegan pad thai recipe"
670
+ }
671
+ ```
672
+
673
+
674
+
675
+ Observation: [{'title': 'Easy Tofu Pad Thai', 'link': 'https://minimalistbaker.com/easy-tofu-pad-thai/', 'source': 'Minimalist Baker', 'rating': 4.9, 'reviews': 117, 'total_time': '30 min', 'ingredients': ['Pad thai rice', 'peanut sauce', 'thai red', 'soy sauce', 'bean sprouts']}, {'title': 'Vegan Pad Thai', 'link': 'https://www.noracooks.com/vegan-pad-thai/', 'source': 'Nora Cooks', 'rating': 5.0, 'reviews': 53, 'total_time': '30 min', 'ingredients': ['Stir fry rice', 'mung bean sprouts', 'soy sauce', 'maple syrup', 'sriracha hot sauce']}, {'title': 'Vegan Pad Thai', 'link': 'https://www.pickuplimes.com/recipe/speedy-vegan-pad-thai-116', 'source': 'Pick Up Limes', 'rating': 5.0, 'reviews': 34, 'total_time': '30 min', 'ingredients': ['Brown rice noodles', 'red hot', 'soy sauce', 'bean sprouts', 'sriracha hot sauce']}]
676
+ Thought:Could not parse LLM output: I have successfully used the `vegan_recipe_serpapi_search` tool to search for vegan pad thai recipes. The tool returned a list of three vegan pad thai recipes with their titles, links, sources, ratings, reviews, total time, and ingredients.
677
+
678
+ Final Answer: Here are three vegan pad thai recipes:
679
+ 1. Easy Tofu Pad Thai from Minimalist Baker
680
+ 2. Vegan Pad Thai from Nora Cooks
681
+ 3. Vegan Pad Thai from Pick Up Limes.
682
+
683
+ &gt; Finished chain.</code></pre>
684
+ </div>
685
+ <div class="cell-output cell-output-display">
686
+ <pre><code>'Here are three vegan pad thai recipes: \n1. Easy Tofu Pad Thai from Minimalist Baker\n2. Vegan Pad Thai from Nora Cooks\n3. Vegan Pad Thai from Pick Up Limes.'</code></pre>
687
+ </div>
688
+ </div>
689
+ <p>This doc should be corrected <a href="https://python.langchain.com/en/latest/modules/agents/tools/examples/serpapi.html">LangChain serpapi doc could be updated</a></p>
690
+ <div class="cell">
691
+ <div class="sourceCode cell-code" id="cb41"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb41-1"><a href="#cb41-1" aria-hidden="true" tabindex="-1"></a>search <span class="op">=</span> GoogleSerperAPIWrapper(<span class="bu">type</span><span class="op">=</span><span class="st">"search"</span>)</span>
692
+ <span id="cb41-2"><a href="#cb41-2" aria-hidden="true" tabindex="-1"></a>results <span class="op">=</span> search.results(<span class="st">"Lion"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
693
+ </div>
694
+ <p><a href="https://www.edamam.com/">edamam</a></p>
695
+
696
+
697
+ </section>
698
+
699
+ </main> <!-- /main -->
700
+ <script id="quarto-html-after-body" type="application/javascript">
701
+ window.document.addEventListener("DOMContentLoaded", function (event) {
702
+ const toggleBodyColorMode = (bsSheetEl) => {
703
+ const mode = bsSheetEl.getAttribute("data-mode");
704
+ const bodyEl = window.document.querySelector("body");
705
+ if (mode === "dark") {
706
+ bodyEl.classList.add("quarto-dark");
707
+ bodyEl.classList.remove("quarto-light");
708
+ } else {
709
+ bodyEl.classList.add("quarto-light");
710
+ bodyEl.classList.remove("quarto-dark");
711
+ }
712
+ }
713
+ const toggleBodyColorPrimary = () => {
714
+ const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
715
+ if (bsSheetEl) {
716
+ toggleBodyColorMode(bsSheetEl);
717
+ }
718
+ }
719
+ toggleBodyColorPrimary();
720
+ const icon = "";
721
+ const anchorJS = new window.AnchorJS();
722
+ anchorJS.options = {
723
+ placement: 'right',
724
+ icon: icon
725
+ };
726
+ anchorJS.add('.anchored');
727
+ const isCodeAnnotation = (el) => {
728
+ for (const clz of el.classList) {
729
+ if (clz.startsWith('code-annotation-')) {
730
+ return true;
731
+ }
732
+ }
733
+ return false;
734
+ }
735
+ const clipboard = new window.ClipboardJS('.code-copy-button', {
736
+ text: function(trigger) {
737
+ const codeEl = trigger.previousElementSibling.cloneNode(true);
738
+ for (const childEl of codeEl.children) {
739
+ if (isCodeAnnotation(childEl)) {
740
+ childEl.remove();
741
+ }
742
+ }
743
+ return codeEl.innerText;
744
+ }
745
+ });
746
+ clipboard.on('success', function(e) {
747
+ // button target
748
+ const button = e.trigger;
749
+ // don't keep focus
750
+ button.blur();
751
+ // flash "checked"
752
+ button.classList.add('code-copy-button-checked');
753
+ var currentTitle = button.getAttribute("title");
754
+ button.setAttribute("title", "Copied!");
755
+ let tooltip;
756
+ if (window.bootstrap) {
757
+ button.setAttribute("data-bs-toggle", "tooltip");
758
+ button.setAttribute("data-bs-placement", "left");
759
+ button.setAttribute("data-bs-title", "Copied!");
760
+ tooltip = new bootstrap.Tooltip(button,
761
+ { trigger: "manual",
762
+ customClass: "code-copy-button-tooltip",
763
+ offset: [0, -8]});
764
+ tooltip.show();
765
+ }
766
+ setTimeout(function() {
767
+ if (tooltip) {
768
+ tooltip.hide();
769
+ button.removeAttribute("data-bs-title");
770
+ button.removeAttribute("data-bs-toggle");
771
+ button.removeAttribute("data-bs-placement");
772
+ }
773
+ button.setAttribute("title", currentTitle);
774
+ button.classList.remove('code-copy-button-checked');
775
+ }, 1000);
776
+ // clear code selection
777
+ e.clearSelection();
778
+ });
779
+ function tippyHover(el, contentFn) {
780
+ const config = {
781
+ allowHTML: true,
782
+ content: contentFn,
783
+ maxWidth: 500,
784
+ delay: 100,
785
+ arrow: false,
786
+ appendTo: function(el) {
787
+ return el.parentElement;
788
+ },
789
+ interactive: true,
790
+ interactiveBorder: 10,
791
+ theme: 'quarto',
792
+ placement: 'bottom-start'
793
+ };
794
+ window.tippy(el, config);
795
+ }
796
+ const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
797
+ for (var i=0; i<noterefs.length; i++) {
798
+ const ref = noterefs[i];
799
+ tippyHover(ref, function() {
800
+ // use id or data attribute instead here
801
+ let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
802
+ try { href = new URL(href).hash; } catch {}
803
+ const id = href.replace(/^#\/?/, "");
804
+ const note = window.document.getElementById(id);
805
+ return note.innerHTML;
806
+ });
807
+ }
808
+ let selectedAnnoteEl;
809
+ const selectorForAnnotation = ( cell, annotation) => {
810
+ let cellAttr = 'data-code-cell="' + cell + '"';
811
+ let lineAttr = 'data-code-annotation="' + annotation + '"';
812
+ const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
813
+ return selector;
814
+ }
815
+ const selectCodeLines = (annoteEl) => {
816
+ const doc = window.document;
817
+ const targetCell = annoteEl.getAttribute("data-target-cell");
818
+ const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
819
+ const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
820
+ const lines = annoteSpan.getAttribute("data-code-lines").split(",");
821
+ const lineIds = lines.map((line) => {
822
+ return targetCell + "-" + line;
823
+ })
824
+ let top = null;
825
+ let height = null;
826
+ let parent = null;
827
+ if (lineIds.length > 0) {
828
+ //compute the position of the single el (top and bottom and make a div)
829
+ const el = window.document.getElementById(lineIds[0]);
830
+ top = el.offsetTop;
831
+ height = el.offsetHeight;
832
+ parent = el.parentElement.parentElement;
833
+ if (lineIds.length > 1) {
834
+ const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
835
+ const bottom = lastEl.offsetTop + lastEl.offsetHeight;
836
+ height = bottom - top;
837
+ }
838
+ if (top !== null && height !== null && parent !== null) {
839
+ // cook up a div (if necessary) and position it
840
+ let div = window.document.getElementById("code-annotation-line-highlight");
841
+ if (div === null) {
842
+ div = window.document.createElement("div");
843
+ div.setAttribute("id", "code-annotation-line-highlight");
844
+ div.style.position = 'absolute';
845
+ parent.appendChild(div);
846
+ }
847
+ div.style.top = top - 2 + "px";
848
+ div.style.height = height + 4 + "px";
849
+ let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
850
+ if (gutterDiv === null) {
851
+ gutterDiv = window.document.createElement("div");
852
+ gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
853
+ gutterDiv.style.position = 'absolute';
854
+ const codeCell = window.document.getElementById(targetCell);
855
+ const gutter = codeCell.querySelector('.code-annotation-gutter');
856
+ gutter.appendChild(gutterDiv);
857
+ }
858
+ gutterDiv.style.top = top - 2 + "px";
859
+ gutterDiv.style.height = height + 4 + "px";
860
+ }
861
+ selectedAnnoteEl = annoteEl;
862
+ }
863
+ };
864
+ const unselectCodeLines = () => {
865
+ const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
866
+ elementsIds.forEach((elId) => {
867
+ const div = window.document.getElementById(elId);
868
+ if (div) {
869
+ div.remove();
870
+ }
871
+ });
872
+ selectedAnnoteEl = undefined;
873
+ };
874
+ // Attach click handler to the DT
875
+ const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
876
+ for (const annoteDlNode of annoteDls) {
877
+ annoteDlNode.addEventListener('click', (event) => {
878
+ const clickedEl = event.target;
879
+ if (clickedEl !== selectedAnnoteEl) {
880
+ unselectCodeLines();
881
+ const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
882
+ if (activeEl) {
883
+ activeEl.classList.remove('code-annotation-active');
884
+ }
885
+ selectCodeLines(clickedEl);
886
+ clickedEl.classList.add('code-annotation-active');
887
+ } else {
888
+ // Unselect the line
889
+ unselectCodeLines();
890
+ clickedEl.classList.remove('code-annotation-active');
891
+ }
892
+ });
893
+ }
894
+ const findCites = (el) => {
895
+ const parentEl = el.parentElement;
896
+ if (parentEl) {
897
+ const cites = parentEl.dataset.cites;
898
+ if (cites) {
899
+ return {
900
+ el,
901
+ cites: cites.split(' ')
902
+ };
903
+ } else {
904
+ return findCites(el.parentElement)
905
+ }
906
+ } else {
907
+ return undefined;
908
+ }
909
+ };
910
+ var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
911
+ for (var i=0; i<bibliorefs.length; i++) {
912
+ const ref = bibliorefs[i];
913
+ const citeInfo = findCites(ref);
914
+ if (citeInfo) {
915
+ tippyHover(citeInfo.el, function() {
916
+ var popup = window.document.createElement('div');
917
+ citeInfo.cites.forEach(function(cite) {
918
+ var citeDiv = window.document.createElement('div');
919
+ citeDiv.classList.add('hanging-indent');
920
+ citeDiv.classList.add('csl-entry');
921
+ var biblioDiv = window.document.getElementById('ref-' + cite);
922
+ if (biblioDiv) {
923
+ citeDiv.innerHTML = biblioDiv.innerHTML;
924
+ }
925
+ popup.appendChild(citeDiv);
926
+ });
927
+ return popup.innerHTML;
928
+ });
929
+ }
930
+ }
931
+ });
932
+ </script>
933
+ </div> <!-- /content -->
934
+
935
+
936
+
937
+ </body></html>
_proc/_docs/search.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "objectID": "ingredient_vision.html",
4
+ "href": "ingredient_vision.html",
5
+ "title": "ingredient_vision",
6
+ "section": "",
7
+ "text": "Inspiration drawn from TaskMartix aka Visual ChatGPT\n\nsource\n\nformat_image\n\n format_image (image:str)\n\n\n\n\n\nType\nDetails\n\n\n\n\nimage\nstr\nImage file path\n\n\n\n\nsource\n\n\nBlipImageCaptioning\n\n BlipImageCaptioning (device:str)\n\nUseful when you want to know what is inside the photo.\n\nsource\n\n\nBlipImageCaptioning.inference\n\n BlipImageCaptioning.inference\n (image:&lt;module'PIL.Image'from'/home/evylz/\n AnimalEquality/lv-recipe-\n chatbot/env/lib/python3.10/site-\n packages/PIL/Image.py'&gt;)\n\n\n\n\n\nType\nDetails\n\n\n\n\nimage\nPIL.Image\n\n\n\nReturns\nstr\nCaption for the image\n\n\n\n\nsource\n\n\nBlipVQA\n\n BlipVQA (device:str)\n\nBLIP Visual Question Answering Useful when you need an answer for a question based on an image. Examples: what is the background color of this image, how many cats are in this figure, what is in this figure?\n\nsource\n\n\nBlipVQA.inference\n\n BlipVQA.inference\n (image:&lt;module'PIL.Image'from'/home/evylz/AnimalEquali\n ty/lv-recipe-chatbot/env/lib/python3.10/site-\n packages/PIL/Image.py'&gt;, question:str)\n\n\n\n\n\nType\nDetails\n\n\n\n\nimage\nPIL.Image\n\n\n\nquestion\nstr\n\n\n\nReturns\nstr\nAnswer to the query on the image\n\n\n\n\nsample_images = os.listdir(SAMPLE_IMG_DIR)\nsample_images\n\n['veggie-fridge.jpeg',\n 'veg-groceries-table.jpg',\n 'fridge-splendid.jpg',\n 'neat-veg-groceries.jpg',\n 'veg-groceries-table.jpeg',\n 'Fruits-and-vegetables-one-a-table.jpg']\n\n\n\nfor img in sample_images:\n display(format_image(SAMPLE_IMG_DIR / img))\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nThe process:\n\nFormat image\nGet description (caption)\nPass caption and ingredient queries to VQA\n\n\nvqa = BlipVQA(\"cpu\")\nimg_cap = BlipImageCaptioning(\"cpu\")\n\n\nfor img in sample_images:\n img = format_image(SAMPLE_IMG_DIR / img)\n\n display(desc, img.resize((int(img.size[0] * 0.5), int(img.size[1] * 0.5))))\n\nCPU times: user 11.4 s, sys: 7.42 ms, total: 11.4 s\nWall time: 1.19 s\nCPU times: user 13.5 s, sys: 7.5 ms, total: 13.5 s\nWall time: 1.36 s\nCPU times: user 12 s, sys: 0 ns, total: 12 s\nWall time: 1.21 s\nCPU times: user 12.5 s, sys: 0 ns, total: 12.5 s\nWall time: 1.27 s\nCPU times: user 9.25 s, sys: 7.71 ms, total: 9.25 s\nWall time: 936 ms\nCPU times: user 15.7 s, sys: 7.66 ms, total: 15.7 s\nWall time: 1.58 s\n\n\n'a refrigerator with food inside'\n\n\n\n\n\n'a table with a variety of fruits and vegetables'\n\n\n\n\n\n'a refrigerator filled with food and drinks'\n\n\n\n\n\n'a counter with various foods on it'\n\n\n\n\n\n'a wooden table'\n\n\n\n\n\n'a table with a variety of fruits and vegetables'\n\n\n\n\n\n\nfor img in sample_images:\n img = format_image(SAMPLE_IMG_DIR / img)\n desc = img_cap.inference(img)\n\n answer += \"\\n\" + vqa.inference(\n img, f\"What are three of the fruits seen in the image if any?\"\n )\n answer += \"\\n\" + vqa.inference(\n img, f\"What grains and starches are in the image if any?\"\n )\n answer += \"\\n\" + vqa.inference(img, f\"Is there plant-based milk in the image?\")\n print(\n f\"\"\"{desc}\n{answer}\"\"\"\n )\n display(img.resize((int(img.size[0] * 0.75), int(img.size[1] * 0.75))))\n\nCPU times: user 7.67 s, sys: 12.1 ms, total: 7.68 s\nWall time: 779 ms\na refrigerator with food inside\ncabbage lettuce onion\napples\nrice\nyes\nCPU times: user 10.5 s, sys: 8.13 ms, total: 10.5 s\nWall time: 1.06 s\na table with a variety of fruits and vegetables\nbroccoli and tomatoes\nbananas apples oranges\npotatoes\nyes\nCPU times: user 11.7 s, sys: 0 ns, total: 11.7 s\nWall time: 1.18 s\na refrigerator filled with food and drinks\nbroccoli and zucchini\nbananas\nrice\nyes\nCPU times: user 11.5 s, sys: 12.2 ms, total: 11.5 s\nWall time: 1.16 s\na counter with various foods on it\ncarrots and broccoli\napples bananas and tomatoes\nrice\nyes\nCPU times: user 9.62 s, sys: 4.22 ms, total: 9.63 s\nWall time: 973 ms\na wooden table\npotatoes and carrots\napples\npotatoes\nyes\nCPU times: user 11.1 s, sys: 8.23 ms, total: 11.1 s\nWall time: 1.12 s\na table with a variety of fruits and vegetables\npeppers broccoli and squash\nwatermelon limes and pineapple\nrice\nno\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nsource\n\n\nVeganIngredientFinder\n\n VeganIngredientFinder ()\n\nInitialize self. See help(type(self)) for accurate signature.\n\nsource\n\n\nVeganIngredientFinder.list_ingredients\n\n VeganIngredientFinder.list_ingredients (img:str)\n\n\n\n\n\nType\nDetails\n\n\n\n\nimg\nstr\nImage file path\n\n\nReturns\nstr\n\n\n\n\n\nvegan_ingred_finder = VeganIngredientFinder()\nvegan_ingred_finder.list_ingredients(SAMPLE_IMG_DIR / sample_images[0])\n\n'cabbage lettuce onion\\napples\\nrice\\nplant-based milk'"
8
+ },
9
+ {
10
+ "objectID": "app.html",
11
+ "href": "app.html",
12
+ "title": "app",
13
+ "section": "",
14
+ "text": "source\n\nConversationBot\n\n ConversationBot (verbose=True)\n\nInitialize self. See help(type(self)) for accurate signature.\n\nos.listdir(SAMPLE_IMG_DIR)\nSAMPLE_IMG_DIR\n\nPath('/home/evylz/AnimalEquality/lv-recipe-chatbot/assets/images/vegan_ingredients')\n\n\n\nfrom dotenv import load_dotenv\n\n\n#: eval: false\nload_dotenv()\n\nTrue\n\n\n\n\n\nCPU times: user 6.19 s, sys: 1.47 s, total: 7.66 s\nWall time: 4.68 s\n\n\n\n\n\nI uploaded an image that may contain vegan ingredients.\nThe description of the image is: `a refrigerator with food inside`.\nThe extracted ingredients are:\n```\ncabbage lettuce onion\napples\nrice\nplant-based milk\n```\n\nCPU times: user 56.7 s, sys: 63.6 ms, total: 56.8 s\nWall time: 5.95 s\n\n\n\nsource\n\n\ncreate_demo\n\n create_demo (bot=&lt;class '__main__.ConversationBot'&gt;)\n\n\nif \"demo\" in globals():\n demo.close()\ndemo = create_demo(bot)\ndemo.launch()\n\nClosing server running on port: 7860\nRunning on local URL: http://127.0.0.1:7860\n\nTo create a public link, set `share=True` in `launch()`."
15
+ },
16
+ {
17
+ "objectID": "index.html",
18
+ "href": "index.html",
19
+ "title": "lv-recipe-chatbot",
20
+ "section": "",
21
+ "text": "pip install -e '.[dev]'"
22
+ },
23
+ {
24
+ "objectID": "index.html#install",
25
+ "href": "index.html#install",
26
+ "title": "lv-recipe-chatbot",
27
+ "section": "",
28
+ "text": "pip install -e '.[dev]'"
29
+ },
30
+ {
31
+ "objectID": "index.html#how-to-use",
32
+ "href": "index.html#how-to-use",
33
+ "title": "lv-recipe-chatbot",
34
+ "section": "How to use",
35
+ "text": "How to use\n\nfrom dotenv import load_dotenv\n\nload_dotenv() # or load environment vars with different method\n\ndemo = app.create_demo(app.ConversationBot())\ndemo.launch()\n\nRunning on local URL: http://127.0.0.1:7860\n\nTo create a public link, set `share=True` in `launch()`.\n\n\n\n\n\n\n\n\nor\npython3 app.py"
36
+ },
37
+ {
38
+ "objectID": "index.html#dev-quick-start",
39
+ "href": "index.html#dev-quick-start",
40
+ "title": "lv-recipe-chatbot",
41
+ "section": "Dev quick-start",
42
+ "text": "Dev quick-start\ngit clone the repo\ncd lv-recipe-chatbot\nMake sure to use the version of python specified in py_version.txt\nCreate a virtual environment.\npython3 -m venv env\nActivate the env and install dependencies.\nsource env/bin/activate\npip install -r requirements.txt\npip install -r requirements/dev.txt\nTo make the Jupyter environment, git friendly: nbdev_install_hooks\nIf you want to render documentation locally, you will want to install Quarto.\nnbdev_install_quarto\nPut API secrets in .env\ncp .env.example .env\nEdit .env with your secret key(s). Only OPEN_AI_KEY is required.\nThen start the Gradio demo from within the virtual environment.\npython3 app.py\nPreview documentation\nnbdev_preview"
43
+ },
44
+ {
45
+ "objectID": "index.html#dependencies",
46
+ "href": "index.html#dependencies",
47
+ "title": "lv-recipe-chatbot",
48
+ "section": "Dependencies",
49
+ "text": "Dependencies\nIf a new dependency for development is helpful for developers, add it to dev.txt.\nIf it is a dependency for the app that is imported in source code, add it to core.txt.\nThen run:\npipreqs --force\nThis will update our requirements.txt to include the dependency as it should be pinned in the environment."
50
+ },
51
+ {
52
+ "objectID": "index.html#development",
53
+ "href": "index.html#development",
54
+ "title": "lv-recipe-chatbot",
55
+ "section": "Development",
56
+ "text": "Development\nquick nbdev tutorial\nMake changes in /nbs.\nUpdate the package files with nbdev_export then reimport with pip install -e '.[dev]'\nPreview doc nbdev_preview\nBuild docs, test and update README nbdev_prepare"
57
+ },
58
+ {
59
+ "objectID": "index.html#useful-links",
60
+ "href": "index.html#useful-links",
61
+ "title": "lv-recipe-chatbot",
62
+ "section": "Useful links",
63
+ "text": "Useful links\n\nTask Matrix (Formerly Visual ChatGPT)\nLangChain\nLLM Prompt Engineering\nOpenAI best practices for prompts"
64
+ },
65
+ {
66
+ "objectID": "lchain_tool.html",
67
+ "href": "lchain_tool.html",
68
+ "title": "lchain_tool",
69
+ "section": "",
70
+ "text": "from dotenv import load_dotenv\n\n\nload_dotenv()\n\nTrue\n\n\n\nllm = ChatOpenAI(temperature=0)\n\n\ntools = load_tools([\"llm-math\"], llm=llm)\nagent = initialize_agent(\n tools,\n llm,\n agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,\n handle_parsing_errors=True,\n verbose=True,\n)\n\n\nagent(\"What is the 3% of of 300 * 30?\")\n\n\n\n&gt; Entering new AgentExecutor chain...\nWe can calculate this using the Calculator tool.\n\nAction:\n```\n{\n \"action\": \"Calculator\",\n \"action_input\": \"0.03 * 300 * 30\"\n}\n```\n\n\nObservation: Answer: 270.0\nThought:Could not parse LLM output: This is the correct answer to the question.\nObservation: Invalid or incomplete response\nThought:Let me try the same action again.\n\nAction:\n```\n{\n \"action\": \"Calculator\",\n \"action_input\": \"0.03 * 300 * 30\"\n}\n```\n\n\nObservation: Answer: 270.0\nThought:Could not parse LLM output: The tool gave the same answer, so I can be confident that it is correct.\n\nObservation: Invalid or incomplete response\nThought:There seems to be an issue with the LLM response. Let me try a different way to calculate the answer.\n\nAction:\n```\n{\n \"action\": \"Calculator\",\n \"action_input\": \"300 * 30 * 0.03\"\n}\n```\n\n\nObservation: Answer: 270.0\nThought:I have successfully calculated the answer to the question using the calculator tool.\n\nFinal Answer: 270.0\n\n&gt; Finished chain.\n\n\n{'input': 'What is the 3% of of 300 * 30?', 'output': '270.0'}\n\n\nSerpAPI Google Images\n\nparams = {\n \"q\": \"Vegan pad thai recipes\",\n \"location\": \"United States\",\n \"hl\": \"en\",\n \"gl\": \"us\",\n \"api_key\": os.environ[\"SERPAPI_API_KEY\"],\n}\n\nsearch = GoogleSearch(params)\nresults = search.get_dict()\nrecipes_results = results[\"recipes_results\"]\nrecipes_results\n\n[{'title': 'Easy Tofu Pad Thai',\n 'link': 'https://minimalistbaker.com/easy-tofu-pad-thai/',\n 'source': 'Minimalist Baker',\n 'rating': 4.9,\n 'reviews': 117,\n 'total_time': '30 min',\n 'ingredients': ['Pad thai rice',\n 'peanut sauce',\n 'thai red',\n 'soy sauce',\n 'bean sprouts']},\n {'title': 'Vegan Pad Thai',\n 'link': 'https://www.noracooks.com/vegan-pad-thai/',\n 'source': 'Nora Cooks',\n 'rating': 5.0,\n 'reviews': 53,\n 'total_time': '30 min',\n 'ingredients': ['Stir fry rice',\n 'mung bean sprouts',\n 'soy sauce',\n 'maple syrup',\n 'sriracha hot sauce']},\n {'title': 'Vegan Pad Thai',\n 'link': 'https://www.pickuplimes.com/recipe/speedy-vegan-pad-thai-116',\n 'source': 'Pick Up Limes',\n 'rating': 5.0,\n 'reviews': 34,\n 'total_time': '30 min',\n 'ingredients': ['Brown rice noodles',\n 'red hot',\n 'soy sauce',\n 'bean sprouts',\n 'sriracha hot sauce']}]\n\n\n\n\nSerpAPIWrapper\n\n SerpAPIWrapper (search_engine:Any=None, params:dict={'engine': 'google',\n 'google_domain': 'google.com', 'gl': 'us', 'hl': 'en'},\n serpapi_api_key:Optional[str]=None,\n aiosession:Optional[aiohttp.client.ClientSession]=None)\n\nWrapper around SerpAPI.\nTo use, you should have the google-search-results python package installed, and the environment variable SERPAPI_API_KEY set with your API key, or pass serpapi_api_key as a named parameter to the constructor.\nExample: .. code-block:: python\n from langchain import SerpAPIWrapper\n serpapi = SerpAPIWrapper()\n\nsource\n\n\nRecipeSerpAPIWrapper\n\n RecipeSerpAPIWrapper (search_engine:Any=None, params:dict={'engine':\n 'google', 'google_domain': 'google.com', 'gl':\n 'us', 'hl': 'en'},\n serpapi_api_key:Optional[str]=None, aiosession:Opti\n onal[aiohttp.client.ClientSession]=None)\n\nWrapper around SerpAPI.\nTo use, you should have the google-search-results python package installed, and the environment variable SERPAPI_API_KEY set with your API key, or pass serpapi_api_key as a named parameter to the constructor.\nExample: .. code-block:: python\n from langchain import SerpAPIWrapper\n serpapi = SerpAPIWrapper()\n\nparams = {\n \"location\": \"United States\",\n \"hl\": \"en\",\n \"gl\": \"us\",\n}\nsearch = RecipeSerpAPIWrapper(params=params)\n\n\nvegan_recipes = search.run(\"Vegan fried rice recipes\")\nvegan_recipes[0:3]\n\n[{'title': 'Easy Vegan Fried Rice',\n 'link': 'https://minimalistbaker.com/easy-vegan-fried-rice/',\n 'source': 'Minimalist Baker',\n 'rating': 4.8,\n 'reviews': 457,\n 'total_time': '1 hr 15 min',\n 'ingredients': ['Peanut butter',\n 'grain brown rice',\n 'soy sauce',\n 'maple syrup',\n 'chili garlic sauce']},\n {'title': 'The Best Vegan Fried Rice',\n 'link': 'https://shortgirltallorder.com/best-vegan-fried-rice',\n 'source': 'Short Girl Tall Order',\n 'rating': 4.8,\n 'reviews': 65,\n 'total_time': '28 min',\n 'ingredients': ['Soy sauce',\n 'white rice',\n 'rice wine vinegar',\n 'sugar',\n 'fresh peas']},\n {'title': 'Vegan Fried Rice',\n 'link': 'https://www.noracooks.com/vegan-fried-rice/',\n 'source': 'Nora Cooks',\n 'rating': 5.0,\n 'reviews': 15,\n 'total_time': '20 min',\n 'ingredients': ['Gluten free',\n 'nutritional yeast',\n 'toasted sesame oil',\n 'carrots',\n 'olive oil']}]\n\n\n\nparams = {\n \"engine\": \"google_images\",\n \"q\": \"Vegan pad thai recipes\",\n \"location\": \"United States\",\n \"api_key\": os.environ[\"SERPAPI_API_KEY\"],\n}\n\nsearch = GoogleSearch(params)\nresults = search.get_dict()\n\n\nfor r in results[\"images_results\"][0:5]:\n display(r[\"title\"], r[\"link\"], Image(url=r[\"thumbnail\"]))\n\n'Easy Tofu Pad Thai (Vegan) | Minimalist Baker Recipes'\n\n\n'https://minimalistbaker.com/easy-tofu-pad-thai/'\n\n\n\n\n\n'Healthier vegan pad thai - Lazy Cat Kitchen'\n\n\n'https://www.lazycatkitchen.com/healthier-vegan-pad-thai/'\n\n\n\n\n\n'The Best Vegan Pad Thai - Full of Plants'\n\n\n'https://fullofplants.com/the-best-vegan-pad-thai/'\n\n\n\n\n\n'Easy Vegan Pad Thai - Oh My Veggies'\n\n\n'https://ohmyveggies.com/easy-vegan-pad-thai/'\n\n\n\n\n\n'Easy Vegan Pad Thai - My Darling Vegan'\n\n\n'https://www.mydarlingvegan.com/vegan-pad-thai/'\n\n\n\n\n\n\n\n\nload_tools\n\n load_tools (tool_names:List[str],\n llm:Optional[langchain.base_language.BaseLanguageModel]=None,\n callbacks:Union[List[langchain.callbacks.base.BaseCallbackHan\n dler],langchain.callbacks.base.BaseCallbackManager,NoneType]=\n None, **kwargs:Any)\n\nLoad tools based on their name.\nArgs: tool_names: name of tools to load. llm: Optional language model, may be needed to initialize certain tools. callbacks: Optional callback manager or list of callback handlers. If not provided, default global callback manager will be used.\nReturns: List of tools.\nHere is the SerpAPIWrapper tool implementation\n\nfrom langchain.agents.load_tools import _get_serpapi\n\n\n??_get_serpapi\n\n\nSignature: _get_serpapi(**kwargs: Any) -&gt; langchain.tools.base.BaseTool\nDocstring: &lt;no docstring&gt;\nSource: \ndef _get_serpapi(**kwargs: Any) -&gt; BaseTool:\n return Tool(\n name=\"Search\",\n description=\"A search engine. Useful for when you need to answer questions about current events. Input should be a search query.\",\n func=SerpAPIWrapper(**kwargs).run,\n coroutine=SerpAPIWrapper(**kwargs).arun,\n )\nFile: ~/AnimalEquality/lv-recipe-chatbot/env/lib/python3.10/site-packages/langchain/agents/load_tools.py\nType: function\n\n\n\nLet’s use that for inspiration for our recipe version of the tool\n\nparams = {\n \"location\": \"United States\",\n \"hl\": \"en\",\n \"gl\": \"us\",\n}\nsearch = RecipeSerpAPIWrapper(params=params)\nserpapi_recipe_tool = Tool(\n name=\"Vegan Recipe Search\",\n description=\"A search engine. Useful for when you need to fetch existing vetted vegan recipes. Input should be a vegan recipe search query.\",\n func=search.run,\n)\n\n\n@tool\ndef time(text: str) -&gt; str:\n \"\"\"Returns todays date, use this for any\n questions related to knowing todays date.\n The input should always be an empty string,\n and this function will always return todays\n date - any date mathmatics should occur\n outside this function.\"\"\"\n return str(date.today())\n\n\nagent = initialize_agent(\n [time],\n llm,\n agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,\n handle_parsing_errors=True,\n verbose=True,\n)\n\n\n@tool\ndef vegan_recipe_serpapi_search(text: str) -&gt; str:\n \"\"\"Returns a JSON/Python list of dictionaries of recipe data with keys in format:\n ```\n 'title': str,\n 'link': str,\n 'source': str,\n 'rating': int,\n 'reviews': int,\n 'total_time': str,\n 'ingredients': [\n str,\n str,\n ```\n The input must be the name of a vegan recipe \\\n or query parameters such as ingredients to include, prep time, cuisine region. \\\n Only execute the search for vegan recipes and ingredients. \\\n If the SerpAPI request errors or recipes are not found, \\\n an explanation message will be returned instead of the recipe JSON.\"\"\"\n params = {\n \"q\": text,\n \"location\": \"United States\",\n \"hl\": \"en\",\n \"gl\": \"us\",\n \"api_key\": os.environ[\"SERPAPI_API_KEY\"],\n }\n\n search = GoogleSearch(params)\n results = search.get_dict()\n if \"error\" in results.keys():\n return f\"Received an error from SerpAPI: {results['error']}\\n Query: {text}\"\n\n if \"recipes_results\" in results.keys():\n return str(results[\"recipes_results\"])\n\n return \"No recipes found for that query\"\n\nCreate an agent with the tool\n\nagent = initialize_agent(\n tools=[vegan_recipe_serpapi_search],\n llm=llm,\n agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,\n handle_parsing_errors=True,\n verbose=True,\n)\n\n\nagent.run(\"Search vegan pad thai recipes\")\n\n\n\n&gt; Entering new AgentExecutor chain...\nThought: I can use the `vegan_recipe_serpapi_search` tool to search for vegan pad thai recipes.\n\nAction:\n```\n{\n \"action\": \"vegan_recipe_serpapi_search\",\n \"action_input\": \"vegan pad thai\"\n}\n```\n\n\nObservation: [{'title': 'Vegan Pad Thai', 'link': 'https://www.noracooks.com/vegan-pad-thai/', 'source': 'Nora Cooks', 'rating': 5.0, 'reviews': 53, 'total_time': '30 min', 'ingredients': ['Stir fry rice', 'mung bean sprouts', 'soy sauce', 'maple syrup', 'sriracha hot sauce']}, {'title': 'Easy Tofu Pad Thai', 'link': 'https://minimalistbaker.com/easy-tofu-pad-thai/', 'source': 'Minimalist Baker', 'rating': 4.9, 'reviews': 117, 'total_time': '30 min', 'ingredients': ['Pad thai rice', 'peanut sauce', 'thai red', 'soy sauce', 'bean sprouts']}, {'title': 'Vegan Pad Thai', 'link': 'https://www.pickuplimes.com/recipe/speedy-vegan-pad-thai-116', 'source': 'Pick Up Limes', 'rating': 5.0, 'reviews': 34, 'total_time': '30 min', 'ingredients': ['Brown rice noodles', 'red hot', 'soy sauce', 'bean sprouts', 'sriracha hot sauce']}]\nThought:Could not parse LLM output: The `vegan_recipe_serpapi_search` tool returned a list of three vegan pad thai recipes with their titles, links, sources, ratings, reviews, total time, and ingredients.\nObservation: Invalid or incomplete response\nThought:I will try running the `vegan_recipe_serpapi_search` tool again with the input \"vegan pad thai\".\n\nAction:\n```\n{\n \"action\": \"vegan_recipe_serpapi_search\",\n \"action_input\": \"vegan pad thai\"\n}\n```\n\n\n\nObservation: [{'title': 'Vegan Pad Thai', 'link': 'https://www.noracooks.com/vegan-pad-thai/', 'source': 'Nora Cooks', 'rating': 5.0, 'reviews': 53, 'total_time': '30 min', 'ingredients': ['Stir fry rice', 'mung bean sprouts', 'soy sauce', 'maple syrup', 'sriracha hot sauce']}, {'title': 'Easy Tofu Pad Thai', 'link': 'https://minimalistbaker.com/easy-tofu-pad-thai/', 'source': 'Minimalist Baker', 'rating': 4.9, 'reviews': 117, 'total_time': '30 min', 'ingredients': ['Pad thai rice', 'peanut sauce', 'thai red', 'soy sauce', 'bean sprouts']}, {'title': 'Vegan Pad Thai', 'link': 'https://www.pickuplimes.com/recipe/speedy-vegan-pad-thai-116', 'source': 'Pick Up Limes', 'rating': 5.0, 'reviews': 34, 'total_time': '30 min', 'ingredients': ['Brown rice noodles', 'red hot', 'soy sauce', 'bean sprouts', 'sriracha hot sauce']}]\nThought:Could not parse LLM output: The `vegan_recipe_serpapi_search` tool returned a list of three vegan pad thai recipes with their titles, links, sources, ratings, reviews, total time, and ingredients.\n\nObservation: Invalid or incomplete response\nThought:I will try running the `vegan_recipe_serpapi_search` tool again with the input \"vegan pad thai recipes\".\n\nAction:\n```\n{\n \"action\": \"vegan_recipe_serpapi_search\",\n \"action_input\": \"vegan pad thai recipes\"\n}\n```\n\n\n\nObservation: [{'title': 'Easy Tofu Pad Thai', 'link': 'https://minimalistbaker.com/easy-tofu-pad-thai/', 'source': 'Minimalist Baker', 'rating': 4.9, 'reviews': 117, 'total_time': '30 min', 'ingredients': ['Pad thai rice', 'peanut sauce', 'thai red', 'soy sauce', 'bean sprouts']}, {'title': 'Vegan Pad Thai', 'link': 'https://www.noracooks.com/vegan-pad-thai/', 'source': 'Nora Cooks', 'rating': 5.0, 'reviews': 53, 'total_time': '30 min', 'ingredients': ['Stir fry rice', 'mung bean sprouts', 'soy sauce', 'maple syrup', 'sriracha hot sauce']}, {'title': 'Vegan Pad Thai', 'link': 'https://www.pickuplimes.com/recipe/speedy-vegan-pad-thai-116', 'source': 'Pick Up Limes', 'rating': 5.0, 'reviews': 34, 'total_time': '30 min', 'ingredients': ['Brown rice noodles', 'red hot', 'soy sauce', 'bean sprouts', 'sriracha hot sauce']}]\nThought:Could not parse LLM output: I have successfully used the `vegan_recipe_serpapi_search` tool to search for vegan pad thai recipes. The tool returned a list of three vegan pad thai recipes with their titles, links, sources, ratings, reviews, total time, and ingredients.\n\n\nObservation: Invalid or incomplete response\nThought:I will try running the `vegan_recipe_serpapi_search` tool again with the input \"vegan pad thai recipe\".\n\nAction:\n```\n{\n \"action\": \"vegan_recipe_serpapi_search\",\n \"action_input\": \"vegan pad thai recipe\"\n}\n```\n\n\n\nObservation: [{'title': 'Easy Tofu Pad Thai', 'link': 'https://minimalistbaker.com/easy-tofu-pad-thai/', 'source': 'Minimalist Baker', 'rating': 4.9, 'reviews': 117, 'total_time': '30 min', 'ingredients': ['Pad thai rice', 'peanut sauce', 'thai red', 'soy sauce', 'bean sprouts']}, {'title': 'Vegan Pad Thai', 'link': 'https://www.noracooks.com/vegan-pad-thai/', 'source': 'Nora Cooks', 'rating': 5.0, 'reviews': 53, 'total_time': '30 min', 'ingredients': ['Stir fry rice', 'mung bean sprouts', 'soy sauce', 'maple syrup', 'sriracha hot sauce']}, {'title': 'Vegan Pad Thai', 'link': 'https://www.pickuplimes.com/recipe/speedy-vegan-pad-thai-116', 'source': 'Pick Up Limes', 'rating': 5.0, 'reviews': 34, 'total_time': '30 min', 'ingredients': ['Brown rice noodles', 'red hot', 'soy sauce', 'bean sprouts', 'sriracha hot sauce']}]\nThought:Could not parse LLM output: I have successfully used the `vegan_recipe_serpapi_search` tool to search for vegan pad thai recipes. The tool returned a list of three vegan pad thai recipes with their titles, links, sources, ratings, reviews, total time, and ingredients. \n\nFinal Answer: Here are three vegan pad thai recipes: \n1. Easy Tofu Pad Thai from Minimalist Baker\n2. Vegan Pad Thai from Nora Cooks\n3. Vegan Pad Thai from Pick Up Limes.\n\n&gt; Finished chain.\n\n\n'Here are three vegan pad thai recipes: \\n1. Easy Tofu Pad Thai from Minimalist Baker\\n2. Vegan Pad Thai from Nora Cooks\\n3. Vegan Pad Thai from Pick Up Limes.'\n\n\nThis doc should be corrected LangChain serpapi doc could be updated\n\nsearch = GoogleSerperAPIWrapper(type=\"search\")\nresults = search.results(\"Lion\")\n\nedamam"
71
+ },
72
+ {
73
+ "objectID": "engineer_prompt.html",
74
+ "href": "engineer_prompt.html",
75
+ "title": "engineer_prompt",
76
+ "section": "",
77
+ "text": "Setup env\n\nfrom dotenv import load_dotenv\n\n\nload_dotenv()\n\nTrue\n\n\nEvaluate chat backend\n\nchat = PromptLayerChatOpenAI(temperature=1, pl_tags=[\"langchain\"], return_pl_id=True)\nmemory = ConversationBufferMemory(return_messages=True)\nchat_msgs = init_prompt.format_prompt(\n ingredients=\"tofu, pickles, olives, tomatoes, lettuce, bell peppers, carrots, bread\",\n allergies=\"\",\n recipe_freeform_input=\"The preparation time should be less than 30 minutes. I really love Thai food!\",\n)\n\nchat_msgs = chat_msgs.to_messages()\nresults = chat.generate([chat_msgs])\nchat_msgs.extend(\n [\n results.generations[0][0].message,\n MessagesPlaceholder(variable_name=\"history\"),\n HumanMessagePromptTemplate.from_template(\"{input}\"),\n ]\n)\nopen_prompt = ChatPromptTemplate.from_messages(chat_msgs)\nconversation = ConversationChain(\n llm=chat, verbose=True, memory=memory, prompt=open_prompt\n)\n\nresult = conversation.predict(input=\"Recommend a different recipe please.\")\nprint(result)\n\nAnthropic module not found. Install with `pip install anthropic`.\nWARNING: While logging your request PromptLayer had the following error: Invalid API key, please check your PromptLayer API key and try again\nWARNING: While logging your request PromptLayer had the following error: Invalid API key, please check your PromptLayer API key and try again\n\n\n\n\n&gt; Entering new ConversationChain chain...\nPrompt after formatting:\nSystem: The following is a conversation between a human and a friendly AI chef. \nThe AI is compassionate to animals and only recommends vegan recipes based on the ingredients, allergies, and other preferences the human has.\n\nKnowledge: A vegan diet implies a plant-based diet avoiding all animal foods such as meat (including fish, shellfish and insects), dairy, eggs and honey \n\nLet's think step by step.\nIf the human messages are unrelated to vegan recipes, remind them of your purpose to recommend vegan recipes.\nAI: What ingredients do you wish to cook with?\nHuman: Ingredients: tofu, pickles, olives, tomatoes, lettuce, bell peppers, carrots, bread\nAI: Do you have any allergies I should be aware of?\nHuman: Allergies: \nAI: Do you have any preferences I should consider for the recipe such as preparation time, difficulty, or cuisine region?\nHuman: Give me a vegan recipe that includes at least a few of the ingredients provided (if any).\nRespect the human's allergies (if any).\nFollow these other preferences as closely as possible if they are inline with your purpose of recommending vegan recipes:\n\n###\nPreferences: The preparation time should be less than 30 minutes. I really love Thai food!\n###\n\nOutput format:\n\n**Vegan recipe name**\nPreparation time (humanized)\n\nIngredients (List of ingredients with quantities):\n- &lt;quantity and unit&gt; &lt;ingredient&gt;\n\nSteps (detailed):\n1.\n2.\n3.\n...\nAI: Here is a Thai-inspired vegan recipe for you:\n\n**Thai Tofu Lettuce Wraps**\nPreparation time: Less than 30 minutes\n\nIngredients:\n- 1/2 block of firm tofu, crumbled\n- 1/4 cup pickles, chopped\n- 1/4 cup olives, sliced\n- 1/2 bell pepper, sliced\n- 1/2 carrot, finely chopped\n- 4-6 lettuce leaves\n- 2 tablespoons soy sauce\n- 1 tablespoon rice vinegar\n- 1 tablespoon agave nectar\n- 1/2 tablespoon garlic powder\n- 1/2 tablespoon onion powder\n- 1/2 teaspoon dried basil\n- 1/2 teaspoon dried oregano\n- 1/2 teaspoon salt\n- 1/4 teaspoon black pepper\n- 4-6 slices of bread, toasted\n\nSteps:\n1. In a large bowl, combine crumbled tofu, pickles, olives, bell pepper, and carrot.\n2. In a small bowl, whisk together soy sauce, rice vinegar, agave nectar, garlic powder, onion powder, basil, oregano, salt, and black pepper.\n3. Pour the dressing over the tofu mixture, and stir until everything is coated.\n4. Place a spoonful of the tofu mixture into each lettuce leaf, and serve with a slice of toasted bread.\nHuman: Recommend a different recipe please.\n\n&gt; Finished chain.\nSure, how about this recipe that incorporates more of the ingredients you provided?\n\n**Vegan Mediterranean Tofu Sandwich**\nPreparation time: Less than 30 minutes\n\nIngredients:\n- 1/2 block of firm tofu, sliced\n- 2 teaspoons olive oil\n- 1/2 teaspoon dried oregano\n- 1/2 teaspoon dried basil\n- Salt and pepper to taste\n- 2 slices of bread\n- 1/4 cup hummus\n- 2-3 lettuce leaves\n- 1/4 cup sliced tomatoes\n- 1/4 cup sliced bell peppers\n- 1/4 cup grated carrot\n\nSteps:\n1. Preheat the oven to 375°F.\n2. In a small bowl, mix olive oil, oregano, basil, salt, and pepper, and place tofu slices on a baking sheet. Brush tofu with the olive oil mixture, covering both sides.\n3. Place the baking sheet in the oven and bake the tofu for 15 minutes, flipping the slices halfway through.\n4. Toast the bread slices.\n5. Spread the hummus on one slice of bread, and layer lettuce, tomatoes, bell peppers, grated carrot, and baked tofu on top. Top with the other slice of bread.\n6. Slice the sandwich in half, and enjoy!"
78
+ },
79
+ {
80
+ "objectID": "edamam_api.html",
81
+ "href": "edamam_api.html",
82
+ "title": "edamam_api",
83
+ "section": "",
84
+ "text": "source\n\nfoo\n\n foo ()"
85
+ }
86
+ ]
_proc/_docs/site_libs/bootstrap/bootstrap-icons.css ADDED
@@ -0,0 +1,2018 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @font-face {
2
+ font-display: block;
3
+ font-family: "bootstrap-icons";
4
+ src:
5
+ url("./bootstrap-icons.woff?2ab2cbbe07fcebb53bdaa7313bb290f2") format("woff");
6
+ }
7
+
8
+ .bi::before,
9
+ [class^="bi-"]::before,
10
+ [class*=" bi-"]::before {
11
+ display: inline-block;
12
+ font-family: bootstrap-icons !important;
13
+ font-style: normal;
14
+ font-weight: normal !important;
15
+ font-variant: normal;
16
+ text-transform: none;
17
+ line-height: 1;
18
+ vertical-align: -.125em;
19
+ -webkit-font-smoothing: antialiased;
20
+ -moz-osx-font-smoothing: grayscale;
21
+ }
22
+
23
+ .bi-123::before { content: "\f67f"; }
24
+ .bi-alarm-fill::before { content: "\f101"; }
25
+ .bi-alarm::before { content: "\f102"; }
26
+ .bi-align-bottom::before { content: "\f103"; }
27
+ .bi-align-center::before { content: "\f104"; }
28
+ .bi-align-end::before { content: "\f105"; }
29
+ .bi-align-middle::before { content: "\f106"; }
30
+ .bi-align-start::before { content: "\f107"; }
31
+ .bi-align-top::before { content: "\f108"; }
32
+ .bi-alt::before { content: "\f109"; }
33
+ .bi-app-indicator::before { content: "\f10a"; }
34
+ .bi-app::before { content: "\f10b"; }
35
+ .bi-archive-fill::before { content: "\f10c"; }
36
+ .bi-archive::before { content: "\f10d"; }
37
+ .bi-arrow-90deg-down::before { content: "\f10e"; }
38
+ .bi-arrow-90deg-left::before { content: "\f10f"; }
39
+ .bi-arrow-90deg-right::before { content: "\f110"; }
40
+ .bi-arrow-90deg-up::before { content: "\f111"; }
41
+ .bi-arrow-bar-down::before { content: "\f112"; }
42
+ .bi-arrow-bar-left::before { content: "\f113"; }
43
+ .bi-arrow-bar-right::before { content: "\f114"; }
44
+ .bi-arrow-bar-up::before { content: "\f115"; }
45
+ .bi-arrow-clockwise::before { content: "\f116"; }
46
+ .bi-arrow-counterclockwise::before { content: "\f117"; }
47
+ .bi-arrow-down-circle-fill::before { content: "\f118"; }
48
+ .bi-arrow-down-circle::before { content: "\f119"; }
49
+ .bi-arrow-down-left-circle-fill::before { content: "\f11a"; }
50
+ .bi-arrow-down-left-circle::before { content: "\f11b"; }
51
+ .bi-arrow-down-left-square-fill::before { content: "\f11c"; }
52
+ .bi-arrow-down-left-square::before { content: "\f11d"; }
53
+ .bi-arrow-down-left::before { content: "\f11e"; }
54
+ .bi-arrow-down-right-circle-fill::before { content: "\f11f"; }
55
+ .bi-arrow-down-right-circle::before { content: "\f120"; }
56
+ .bi-arrow-down-right-square-fill::before { content: "\f121"; }
57
+ .bi-arrow-down-right-square::before { content: "\f122"; }
58
+ .bi-arrow-down-right::before { content: "\f123"; }
59
+ .bi-arrow-down-short::before { content: "\f124"; }
60
+ .bi-arrow-down-square-fill::before { content: "\f125"; }
61
+ .bi-arrow-down-square::before { content: "\f126"; }
62
+ .bi-arrow-down-up::before { content: "\f127"; }
63
+ .bi-arrow-down::before { content: "\f128"; }
64
+ .bi-arrow-left-circle-fill::before { content: "\f129"; }
65
+ .bi-arrow-left-circle::before { content: "\f12a"; }
66
+ .bi-arrow-left-right::before { content: "\f12b"; }
67
+ .bi-arrow-left-short::before { content: "\f12c"; }
68
+ .bi-arrow-left-square-fill::before { content: "\f12d"; }
69
+ .bi-arrow-left-square::before { content: "\f12e"; }
70
+ .bi-arrow-left::before { content: "\f12f"; }
71
+ .bi-arrow-repeat::before { content: "\f130"; }
72
+ .bi-arrow-return-left::before { content: "\f131"; }
73
+ .bi-arrow-return-right::before { content: "\f132"; }
74
+ .bi-arrow-right-circle-fill::before { content: "\f133"; }
75
+ .bi-arrow-right-circle::before { content: "\f134"; }
76
+ .bi-arrow-right-short::before { content: "\f135"; }
77
+ .bi-arrow-right-square-fill::before { content: "\f136"; }
78
+ .bi-arrow-right-square::before { content: "\f137"; }
79
+ .bi-arrow-right::before { content: "\f138"; }
80
+ .bi-arrow-up-circle-fill::before { content: "\f139"; }
81
+ .bi-arrow-up-circle::before { content: "\f13a"; }
82
+ .bi-arrow-up-left-circle-fill::before { content: "\f13b"; }
83
+ .bi-arrow-up-left-circle::before { content: "\f13c"; }
84
+ .bi-arrow-up-left-square-fill::before { content: "\f13d"; }
85
+ .bi-arrow-up-left-square::before { content: "\f13e"; }
86
+ .bi-arrow-up-left::before { content: "\f13f"; }
87
+ .bi-arrow-up-right-circle-fill::before { content: "\f140"; }
88
+ .bi-arrow-up-right-circle::before { content: "\f141"; }
89
+ .bi-arrow-up-right-square-fill::before { content: "\f142"; }
90
+ .bi-arrow-up-right-square::before { content: "\f143"; }
91
+ .bi-arrow-up-right::before { content: "\f144"; }
92
+ .bi-arrow-up-short::before { content: "\f145"; }
93
+ .bi-arrow-up-square-fill::before { content: "\f146"; }
94
+ .bi-arrow-up-square::before { content: "\f147"; }
95
+ .bi-arrow-up::before { content: "\f148"; }
96
+ .bi-arrows-angle-contract::before { content: "\f149"; }
97
+ .bi-arrows-angle-expand::before { content: "\f14a"; }
98
+ .bi-arrows-collapse::before { content: "\f14b"; }
99
+ .bi-arrows-expand::before { content: "\f14c"; }
100
+ .bi-arrows-fullscreen::before { content: "\f14d"; }
101
+ .bi-arrows-move::before { content: "\f14e"; }
102
+ .bi-aspect-ratio-fill::before { content: "\f14f"; }
103
+ .bi-aspect-ratio::before { content: "\f150"; }
104
+ .bi-asterisk::before { content: "\f151"; }
105
+ .bi-at::before { content: "\f152"; }
106
+ .bi-award-fill::before { content: "\f153"; }
107
+ .bi-award::before { content: "\f154"; }
108
+ .bi-back::before { content: "\f155"; }
109
+ .bi-backspace-fill::before { content: "\f156"; }
110
+ .bi-backspace-reverse-fill::before { content: "\f157"; }
111
+ .bi-backspace-reverse::before { content: "\f158"; }
112
+ .bi-backspace::before { content: "\f159"; }
113
+ .bi-badge-3d-fill::before { content: "\f15a"; }
114
+ .bi-badge-3d::before { content: "\f15b"; }
115
+ .bi-badge-4k-fill::before { content: "\f15c"; }
116
+ .bi-badge-4k::before { content: "\f15d"; }
117
+ .bi-badge-8k-fill::before { content: "\f15e"; }
118
+ .bi-badge-8k::before { content: "\f15f"; }
119
+ .bi-badge-ad-fill::before { content: "\f160"; }
120
+ .bi-badge-ad::before { content: "\f161"; }
121
+ .bi-badge-ar-fill::before { content: "\f162"; }
122
+ .bi-badge-ar::before { content: "\f163"; }
123
+ .bi-badge-cc-fill::before { content: "\f164"; }
124
+ .bi-badge-cc::before { content: "\f165"; }
125
+ .bi-badge-hd-fill::before { content: "\f166"; }
126
+ .bi-badge-hd::before { content: "\f167"; }
127
+ .bi-badge-tm-fill::before { content: "\f168"; }
128
+ .bi-badge-tm::before { content: "\f169"; }
129
+ .bi-badge-vo-fill::before { content: "\f16a"; }
130
+ .bi-badge-vo::before { content: "\f16b"; }
131
+ .bi-badge-vr-fill::before { content: "\f16c"; }
132
+ .bi-badge-vr::before { content: "\f16d"; }
133
+ .bi-badge-wc-fill::before { content: "\f16e"; }
134
+ .bi-badge-wc::before { content: "\f16f"; }
135
+ .bi-bag-check-fill::before { content: "\f170"; }
136
+ .bi-bag-check::before { content: "\f171"; }
137
+ .bi-bag-dash-fill::before { content: "\f172"; }
138
+ .bi-bag-dash::before { content: "\f173"; }
139
+ .bi-bag-fill::before { content: "\f174"; }
140
+ .bi-bag-plus-fill::before { content: "\f175"; }
141
+ .bi-bag-plus::before { content: "\f176"; }
142
+ .bi-bag-x-fill::before { content: "\f177"; }
143
+ .bi-bag-x::before { content: "\f178"; }
144
+ .bi-bag::before { content: "\f179"; }
145
+ .bi-bar-chart-fill::before { content: "\f17a"; }
146
+ .bi-bar-chart-line-fill::before { content: "\f17b"; }
147
+ .bi-bar-chart-line::before { content: "\f17c"; }
148
+ .bi-bar-chart-steps::before { content: "\f17d"; }
149
+ .bi-bar-chart::before { content: "\f17e"; }
150
+ .bi-basket-fill::before { content: "\f17f"; }
151
+ .bi-basket::before { content: "\f180"; }
152
+ .bi-basket2-fill::before { content: "\f181"; }
153
+ .bi-basket2::before { content: "\f182"; }
154
+ .bi-basket3-fill::before { content: "\f183"; }
155
+ .bi-basket3::before { content: "\f184"; }
156
+ .bi-battery-charging::before { content: "\f185"; }
157
+ .bi-battery-full::before { content: "\f186"; }
158
+ .bi-battery-half::before { content: "\f187"; }
159
+ .bi-battery::before { content: "\f188"; }
160
+ .bi-bell-fill::before { content: "\f189"; }
161
+ .bi-bell::before { content: "\f18a"; }
162
+ .bi-bezier::before { content: "\f18b"; }
163
+ .bi-bezier2::before { content: "\f18c"; }
164
+ .bi-bicycle::before { content: "\f18d"; }
165
+ .bi-binoculars-fill::before { content: "\f18e"; }
166
+ .bi-binoculars::before { content: "\f18f"; }
167
+ .bi-blockquote-left::before { content: "\f190"; }
168
+ .bi-blockquote-right::before { content: "\f191"; }
169
+ .bi-book-fill::before { content: "\f192"; }
170
+ .bi-book-half::before { content: "\f193"; }
171
+ .bi-book::before { content: "\f194"; }
172
+ .bi-bookmark-check-fill::before { content: "\f195"; }
173
+ .bi-bookmark-check::before { content: "\f196"; }
174
+ .bi-bookmark-dash-fill::before { content: "\f197"; }
175
+ .bi-bookmark-dash::before { content: "\f198"; }
176
+ .bi-bookmark-fill::before { content: "\f199"; }
177
+ .bi-bookmark-heart-fill::before { content: "\f19a"; }
178
+ .bi-bookmark-heart::before { content: "\f19b"; }
179
+ .bi-bookmark-plus-fill::before { content: "\f19c"; }
180
+ .bi-bookmark-plus::before { content: "\f19d"; }
181
+ .bi-bookmark-star-fill::before { content: "\f19e"; }
182
+ .bi-bookmark-star::before { content: "\f19f"; }
183
+ .bi-bookmark-x-fill::before { content: "\f1a0"; }
184
+ .bi-bookmark-x::before { content: "\f1a1"; }
185
+ .bi-bookmark::before { content: "\f1a2"; }
186
+ .bi-bookmarks-fill::before { content: "\f1a3"; }
187
+ .bi-bookmarks::before { content: "\f1a4"; }
188
+ .bi-bookshelf::before { content: "\f1a5"; }
189
+ .bi-bootstrap-fill::before { content: "\f1a6"; }
190
+ .bi-bootstrap-reboot::before { content: "\f1a7"; }
191
+ .bi-bootstrap::before { content: "\f1a8"; }
192
+ .bi-border-all::before { content: "\f1a9"; }
193
+ .bi-border-bottom::before { content: "\f1aa"; }
194
+ .bi-border-center::before { content: "\f1ab"; }
195
+ .bi-border-inner::before { content: "\f1ac"; }
196
+ .bi-border-left::before { content: "\f1ad"; }
197
+ .bi-border-middle::before { content: "\f1ae"; }
198
+ .bi-border-outer::before { content: "\f1af"; }
199
+ .bi-border-right::before { content: "\f1b0"; }
200
+ .bi-border-style::before { content: "\f1b1"; }
201
+ .bi-border-top::before { content: "\f1b2"; }
202
+ .bi-border-width::before { content: "\f1b3"; }
203
+ .bi-border::before { content: "\f1b4"; }
204
+ .bi-bounding-box-circles::before { content: "\f1b5"; }
205
+ .bi-bounding-box::before { content: "\f1b6"; }
206
+ .bi-box-arrow-down-left::before { content: "\f1b7"; }
207
+ .bi-box-arrow-down-right::before { content: "\f1b8"; }
208
+ .bi-box-arrow-down::before { content: "\f1b9"; }
209
+ .bi-box-arrow-in-down-left::before { content: "\f1ba"; }
210
+ .bi-box-arrow-in-down-right::before { content: "\f1bb"; }
211
+ .bi-box-arrow-in-down::before { content: "\f1bc"; }
212
+ .bi-box-arrow-in-left::before { content: "\f1bd"; }
213
+ .bi-box-arrow-in-right::before { content: "\f1be"; }
214
+ .bi-box-arrow-in-up-left::before { content: "\f1bf"; }
215
+ .bi-box-arrow-in-up-right::before { content: "\f1c0"; }
216
+ .bi-box-arrow-in-up::before { content: "\f1c1"; }
217
+ .bi-box-arrow-left::before { content: "\f1c2"; }
218
+ .bi-box-arrow-right::before { content: "\f1c3"; }
219
+ .bi-box-arrow-up-left::before { content: "\f1c4"; }
220
+ .bi-box-arrow-up-right::before { content: "\f1c5"; }
221
+ .bi-box-arrow-up::before { content: "\f1c6"; }
222
+ .bi-box-seam::before { content: "\f1c7"; }
223
+ .bi-box::before { content: "\f1c8"; }
224
+ .bi-braces::before { content: "\f1c9"; }
225
+ .bi-bricks::before { content: "\f1ca"; }
226
+ .bi-briefcase-fill::before { content: "\f1cb"; }
227
+ .bi-briefcase::before { content: "\f1cc"; }
228
+ .bi-brightness-alt-high-fill::before { content: "\f1cd"; }
229
+ .bi-brightness-alt-high::before { content: "\f1ce"; }
230
+ .bi-brightness-alt-low-fill::before { content: "\f1cf"; }
231
+ .bi-brightness-alt-low::before { content: "\f1d0"; }
232
+ .bi-brightness-high-fill::before { content: "\f1d1"; }
233
+ .bi-brightness-high::before { content: "\f1d2"; }
234
+ .bi-brightness-low-fill::before { content: "\f1d3"; }
235
+ .bi-brightness-low::before { content: "\f1d4"; }
236
+ .bi-broadcast-pin::before { content: "\f1d5"; }
237
+ .bi-broadcast::before { content: "\f1d6"; }
238
+ .bi-brush-fill::before { content: "\f1d7"; }
239
+ .bi-brush::before { content: "\f1d8"; }
240
+ .bi-bucket-fill::before { content: "\f1d9"; }
241
+ .bi-bucket::before { content: "\f1da"; }
242
+ .bi-bug-fill::before { content: "\f1db"; }
243
+ .bi-bug::before { content: "\f1dc"; }
244
+ .bi-building::before { content: "\f1dd"; }
245
+ .bi-bullseye::before { content: "\f1de"; }
246
+ .bi-calculator-fill::before { content: "\f1df"; }
247
+ .bi-calculator::before { content: "\f1e0"; }
248
+ .bi-calendar-check-fill::before { content: "\f1e1"; }
249
+ .bi-calendar-check::before { content: "\f1e2"; }
250
+ .bi-calendar-date-fill::before { content: "\f1e3"; }
251
+ .bi-calendar-date::before { content: "\f1e4"; }
252
+ .bi-calendar-day-fill::before { content: "\f1e5"; }
253
+ .bi-calendar-day::before { content: "\f1e6"; }
254
+ .bi-calendar-event-fill::before { content: "\f1e7"; }
255
+ .bi-calendar-event::before { content: "\f1e8"; }
256
+ .bi-calendar-fill::before { content: "\f1e9"; }
257
+ .bi-calendar-minus-fill::before { content: "\f1ea"; }
258
+ .bi-calendar-minus::before { content: "\f1eb"; }
259
+ .bi-calendar-month-fill::before { content: "\f1ec"; }
260
+ .bi-calendar-month::before { content: "\f1ed"; }
261
+ .bi-calendar-plus-fill::before { content: "\f1ee"; }
262
+ .bi-calendar-plus::before { content: "\f1ef"; }
263
+ .bi-calendar-range-fill::before { content: "\f1f0"; }
264
+ .bi-calendar-range::before { content: "\f1f1"; }
265
+ .bi-calendar-week-fill::before { content: "\f1f2"; }
266
+ .bi-calendar-week::before { content: "\f1f3"; }
267
+ .bi-calendar-x-fill::before { content: "\f1f4"; }
268
+ .bi-calendar-x::before { content: "\f1f5"; }
269
+ .bi-calendar::before { content: "\f1f6"; }
270
+ .bi-calendar2-check-fill::before { content: "\f1f7"; }
271
+ .bi-calendar2-check::before { content: "\f1f8"; }
272
+ .bi-calendar2-date-fill::before { content: "\f1f9"; }
273
+ .bi-calendar2-date::before { content: "\f1fa"; }
274
+ .bi-calendar2-day-fill::before { content: "\f1fb"; }
275
+ .bi-calendar2-day::before { content: "\f1fc"; }
276
+ .bi-calendar2-event-fill::before { content: "\f1fd"; }
277
+ .bi-calendar2-event::before { content: "\f1fe"; }
278
+ .bi-calendar2-fill::before { content: "\f1ff"; }
279
+ .bi-calendar2-minus-fill::before { content: "\f200"; }
280
+ .bi-calendar2-minus::before { content: "\f201"; }
281
+ .bi-calendar2-month-fill::before { content: "\f202"; }
282
+ .bi-calendar2-month::before { content: "\f203"; }
283
+ .bi-calendar2-plus-fill::before { content: "\f204"; }
284
+ .bi-calendar2-plus::before { content: "\f205"; }
285
+ .bi-calendar2-range-fill::before { content: "\f206"; }
286
+ .bi-calendar2-range::before { content: "\f207"; }
287
+ .bi-calendar2-week-fill::before { content: "\f208"; }
288
+ .bi-calendar2-week::before { content: "\f209"; }
289
+ .bi-calendar2-x-fill::before { content: "\f20a"; }
290
+ .bi-calendar2-x::before { content: "\f20b"; }
291
+ .bi-calendar2::before { content: "\f20c"; }
292
+ .bi-calendar3-event-fill::before { content: "\f20d"; }
293
+ .bi-calendar3-event::before { content: "\f20e"; }
294
+ .bi-calendar3-fill::before { content: "\f20f"; }
295
+ .bi-calendar3-range-fill::before { content: "\f210"; }
296
+ .bi-calendar3-range::before { content: "\f211"; }
297
+ .bi-calendar3-week-fill::before { content: "\f212"; }
298
+ .bi-calendar3-week::before { content: "\f213"; }
299
+ .bi-calendar3::before { content: "\f214"; }
300
+ .bi-calendar4-event::before { content: "\f215"; }
301
+ .bi-calendar4-range::before { content: "\f216"; }
302
+ .bi-calendar4-week::before { content: "\f217"; }
303
+ .bi-calendar4::before { content: "\f218"; }
304
+ .bi-camera-fill::before { content: "\f219"; }
305
+ .bi-camera-reels-fill::before { content: "\f21a"; }
306
+ .bi-camera-reels::before { content: "\f21b"; }
307
+ .bi-camera-video-fill::before { content: "\f21c"; }
308
+ .bi-camera-video-off-fill::before { content: "\f21d"; }
309
+ .bi-camera-video-off::before { content: "\f21e"; }
310
+ .bi-camera-video::before { content: "\f21f"; }
311
+ .bi-camera::before { content: "\f220"; }
312
+ .bi-camera2::before { content: "\f221"; }
313
+ .bi-capslock-fill::before { content: "\f222"; }
314
+ .bi-capslock::before { content: "\f223"; }
315
+ .bi-card-checklist::before { content: "\f224"; }
316
+ .bi-card-heading::before { content: "\f225"; }
317
+ .bi-card-image::before { content: "\f226"; }
318
+ .bi-card-list::before { content: "\f227"; }
319
+ .bi-card-text::before { content: "\f228"; }
320
+ .bi-caret-down-fill::before { content: "\f229"; }
321
+ .bi-caret-down-square-fill::before { content: "\f22a"; }
322
+ .bi-caret-down-square::before { content: "\f22b"; }
323
+ .bi-caret-down::before { content: "\f22c"; }
324
+ .bi-caret-left-fill::before { content: "\f22d"; }
325
+ .bi-caret-left-square-fill::before { content: "\f22e"; }
326
+ .bi-caret-left-square::before { content: "\f22f"; }
327
+ .bi-caret-left::before { content: "\f230"; }
328
+ .bi-caret-right-fill::before { content: "\f231"; }
329
+ .bi-caret-right-square-fill::before { content: "\f232"; }
330
+ .bi-caret-right-square::before { content: "\f233"; }
331
+ .bi-caret-right::before { content: "\f234"; }
332
+ .bi-caret-up-fill::before { content: "\f235"; }
333
+ .bi-caret-up-square-fill::before { content: "\f236"; }
334
+ .bi-caret-up-square::before { content: "\f237"; }
335
+ .bi-caret-up::before { content: "\f238"; }
336
+ .bi-cart-check-fill::before { content: "\f239"; }
337
+ .bi-cart-check::before { content: "\f23a"; }
338
+ .bi-cart-dash-fill::before { content: "\f23b"; }
339
+ .bi-cart-dash::before { content: "\f23c"; }
340
+ .bi-cart-fill::before { content: "\f23d"; }
341
+ .bi-cart-plus-fill::before { content: "\f23e"; }
342
+ .bi-cart-plus::before { content: "\f23f"; }
343
+ .bi-cart-x-fill::before { content: "\f240"; }
344
+ .bi-cart-x::before { content: "\f241"; }
345
+ .bi-cart::before { content: "\f242"; }
346
+ .bi-cart2::before { content: "\f243"; }
347
+ .bi-cart3::before { content: "\f244"; }
348
+ .bi-cart4::before { content: "\f245"; }
349
+ .bi-cash-stack::before { content: "\f246"; }
350
+ .bi-cash::before { content: "\f247"; }
351
+ .bi-cast::before { content: "\f248"; }
352
+ .bi-chat-dots-fill::before { content: "\f249"; }
353
+ .bi-chat-dots::before { content: "\f24a"; }
354
+ .bi-chat-fill::before { content: "\f24b"; }
355
+ .bi-chat-left-dots-fill::before { content: "\f24c"; }
356
+ .bi-chat-left-dots::before { content: "\f24d"; }
357
+ .bi-chat-left-fill::before { content: "\f24e"; }
358
+ .bi-chat-left-quote-fill::before { content: "\f24f"; }
359
+ .bi-chat-left-quote::before { content: "\f250"; }
360
+ .bi-chat-left-text-fill::before { content: "\f251"; }
361
+ .bi-chat-left-text::before { content: "\f252"; }
362
+ .bi-chat-left::before { content: "\f253"; }
363
+ .bi-chat-quote-fill::before { content: "\f254"; }
364
+ .bi-chat-quote::before { content: "\f255"; }
365
+ .bi-chat-right-dots-fill::before { content: "\f256"; }
366
+ .bi-chat-right-dots::before { content: "\f257"; }
367
+ .bi-chat-right-fill::before { content: "\f258"; }
368
+ .bi-chat-right-quote-fill::before { content: "\f259"; }
369
+ .bi-chat-right-quote::before { content: "\f25a"; }
370
+ .bi-chat-right-text-fill::before { content: "\f25b"; }
371
+ .bi-chat-right-text::before { content: "\f25c"; }
372
+ .bi-chat-right::before { content: "\f25d"; }
373
+ .bi-chat-square-dots-fill::before { content: "\f25e"; }
374
+ .bi-chat-square-dots::before { content: "\f25f"; }
375
+ .bi-chat-square-fill::before { content: "\f260"; }
376
+ .bi-chat-square-quote-fill::before { content: "\f261"; }
377
+ .bi-chat-square-quote::before { content: "\f262"; }
378
+ .bi-chat-square-text-fill::before { content: "\f263"; }
379
+ .bi-chat-square-text::before { content: "\f264"; }
380
+ .bi-chat-square::before { content: "\f265"; }
381
+ .bi-chat-text-fill::before { content: "\f266"; }
382
+ .bi-chat-text::before { content: "\f267"; }
383
+ .bi-chat::before { content: "\f268"; }
384
+ .bi-check-all::before { content: "\f269"; }
385
+ .bi-check-circle-fill::before { content: "\f26a"; }
386
+ .bi-check-circle::before { content: "\f26b"; }
387
+ .bi-check-square-fill::before { content: "\f26c"; }
388
+ .bi-check-square::before { content: "\f26d"; }
389
+ .bi-check::before { content: "\f26e"; }
390
+ .bi-check2-all::before { content: "\f26f"; }
391
+ .bi-check2-circle::before { content: "\f270"; }
392
+ .bi-check2-square::before { content: "\f271"; }
393
+ .bi-check2::before { content: "\f272"; }
394
+ .bi-chevron-bar-contract::before { content: "\f273"; }
395
+ .bi-chevron-bar-down::before { content: "\f274"; }
396
+ .bi-chevron-bar-expand::before { content: "\f275"; }
397
+ .bi-chevron-bar-left::before { content: "\f276"; }
398
+ .bi-chevron-bar-right::before { content: "\f277"; }
399
+ .bi-chevron-bar-up::before { content: "\f278"; }
400
+ .bi-chevron-compact-down::before { content: "\f279"; }
401
+ .bi-chevron-compact-left::before { content: "\f27a"; }
402
+ .bi-chevron-compact-right::before { content: "\f27b"; }
403
+ .bi-chevron-compact-up::before { content: "\f27c"; }
404
+ .bi-chevron-contract::before { content: "\f27d"; }
405
+ .bi-chevron-double-down::before { content: "\f27e"; }
406
+ .bi-chevron-double-left::before { content: "\f27f"; }
407
+ .bi-chevron-double-right::before { content: "\f280"; }
408
+ .bi-chevron-double-up::before { content: "\f281"; }
409
+ .bi-chevron-down::before { content: "\f282"; }
410
+ .bi-chevron-expand::before { content: "\f283"; }
411
+ .bi-chevron-left::before { content: "\f284"; }
412
+ .bi-chevron-right::before { content: "\f285"; }
413
+ .bi-chevron-up::before { content: "\f286"; }
414
+ .bi-circle-fill::before { content: "\f287"; }
415
+ .bi-circle-half::before { content: "\f288"; }
416
+ .bi-circle-square::before { content: "\f289"; }
417
+ .bi-circle::before { content: "\f28a"; }
418
+ .bi-clipboard-check::before { content: "\f28b"; }
419
+ .bi-clipboard-data::before { content: "\f28c"; }
420
+ .bi-clipboard-minus::before { content: "\f28d"; }
421
+ .bi-clipboard-plus::before { content: "\f28e"; }
422
+ .bi-clipboard-x::before { content: "\f28f"; }
423
+ .bi-clipboard::before { content: "\f290"; }
424
+ .bi-clock-fill::before { content: "\f291"; }
425
+ .bi-clock-history::before { content: "\f292"; }
426
+ .bi-clock::before { content: "\f293"; }
427
+ .bi-cloud-arrow-down-fill::before { content: "\f294"; }
428
+ .bi-cloud-arrow-down::before { content: "\f295"; }
429
+ .bi-cloud-arrow-up-fill::before { content: "\f296"; }
430
+ .bi-cloud-arrow-up::before { content: "\f297"; }
431
+ .bi-cloud-check-fill::before { content: "\f298"; }
432
+ .bi-cloud-check::before { content: "\f299"; }
433
+ .bi-cloud-download-fill::before { content: "\f29a"; }
434
+ .bi-cloud-download::before { content: "\f29b"; }
435
+ .bi-cloud-drizzle-fill::before { content: "\f29c"; }
436
+ .bi-cloud-drizzle::before { content: "\f29d"; }
437
+ .bi-cloud-fill::before { content: "\f29e"; }
438
+ .bi-cloud-fog-fill::before { content: "\f29f"; }
439
+ .bi-cloud-fog::before { content: "\f2a0"; }
440
+ .bi-cloud-fog2-fill::before { content: "\f2a1"; }
441
+ .bi-cloud-fog2::before { content: "\f2a2"; }
442
+ .bi-cloud-hail-fill::before { content: "\f2a3"; }
443
+ .bi-cloud-hail::before { content: "\f2a4"; }
444
+ .bi-cloud-haze-1::before { content: "\f2a5"; }
445
+ .bi-cloud-haze-fill::before { content: "\f2a6"; }
446
+ .bi-cloud-haze::before { content: "\f2a7"; }
447
+ .bi-cloud-haze2-fill::before { content: "\f2a8"; }
448
+ .bi-cloud-lightning-fill::before { content: "\f2a9"; }
449
+ .bi-cloud-lightning-rain-fill::before { content: "\f2aa"; }
450
+ .bi-cloud-lightning-rain::before { content: "\f2ab"; }
451
+ .bi-cloud-lightning::before { content: "\f2ac"; }
452
+ .bi-cloud-minus-fill::before { content: "\f2ad"; }
453
+ .bi-cloud-minus::before { content: "\f2ae"; }
454
+ .bi-cloud-moon-fill::before { content: "\f2af"; }
455
+ .bi-cloud-moon::before { content: "\f2b0"; }
456
+ .bi-cloud-plus-fill::before { content: "\f2b1"; }
457
+ .bi-cloud-plus::before { content: "\f2b2"; }
458
+ .bi-cloud-rain-fill::before { content: "\f2b3"; }
459
+ .bi-cloud-rain-heavy-fill::before { content: "\f2b4"; }
460
+ .bi-cloud-rain-heavy::before { content: "\f2b5"; }
461
+ .bi-cloud-rain::before { content: "\f2b6"; }
462
+ .bi-cloud-slash-fill::before { content: "\f2b7"; }
463
+ .bi-cloud-slash::before { content: "\f2b8"; }
464
+ .bi-cloud-sleet-fill::before { content: "\f2b9"; }
465
+ .bi-cloud-sleet::before { content: "\f2ba"; }
466
+ .bi-cloud-snow-fill::before { content: "\f2bb"; }
467
+ .bi-cloud-snow::before { content: "\f2bc"; }
468
+ .bi-cloud-sun-fill::before { content: "\f2bd"; }
469
+ .bi-cloud-sun::before { content: "\f2be"; }
470
+ .bi-cloud-upload-fill::before { content: "\f2bf"; }
471
+ .bi-cloud-upload::before { content: "\f2c0"; }
472
+ .bi-cloud::before { content: "\f2c1"; }
473
+ .bi-clouds-fill::before { content: "\f2c2"; }
474
+ .bi-clouds::before { content: "\f2c3"; }
475
+ .bi-cloudy-fill::before { content: "\f2c4"; }
476
+ .bi-cloudy::before { content: "\f2c5"; }
477
+ .bi-code-slash::before { content: "\f2c6"; }
478
+ .bi-code-square::before { content: "\f2c7"; }
479
+ .bi-code::before { content: "\f2c8"; }
480
+ .bi-collection-fill::before { content: "\f2c9"; }
481
+ .bi-collection-play-fill::before { content: "\f2ca"; }
482
+ .bi-collection-play::before { content: "\f2cb"; }
483
+ .bi-collection::before { content: "\f2cc"; }
484
+ .bi-columns-gap::before { content: "\f2cd"; }
485
+ .bi-columns::before { content: "\f2ce"; }
486
+ .bi-command::before { content: "\f2cf"; }
487
+ .bi-compass-fill::before { content: "\f2d0"; }
488
+ .bi-compass::before { content: "\f2d1"; }
489
+ .bi-cone-striped::before { content: "\f2d2"; }
490
+ .bi-cone::before { content: "\f2d3"; }
491
+ .bi-controller::before { content: "\f2d4"; }
492
+ .bi-cpu-fill::before { content: "\f2d5"; }
493
+ .bi-cpu::before { content: "\f2d6"; }
494
+ .bi-credit-card-2-back-fill::before { content: "\f2d7"; }
495
+ .bi-credit-card-2-back::before { content: "\f2d8"; }
496
+ .bi-credit-card-2-front-fill::before { content: "\f2d9"; }
497
+ .bi-credit-card-2-front::before { content: "\f2da"; }
498
+ .bi-credit-card-fill::before { content: "\f2db"; }
499
+ .bi-credit-card::before { content: "\f2dc"; }
500
+ .bi-crop::before { content: "\f2dd"; }
501
+ .bi-cup-fill::before { content: "\f2de"; }
502
+ .bi-cup-straw::before { content: "\f2df"; }
503
+ .bi-cup::before { content: "\f2e0"; }
504
+ .bi-cursor-fill::before { content: "\f2e1"; }
505
+ .bi-cursor-text::before { content: "\f2e2"; }
506
+ .bi-cursor::before { content: "\f2e3"; }
507
+ .bi-dash-circle-dotted::before { content: "\f2e4"; }
508
+ .bi-dash-circle-fill::before { content: "\f2e5"; }
509
+ .bi-dash-circle::before { content: "\f2e6"; }
510
+ .bi-dash-square-dotted::before { content: "\f2e7"; }
511
+ .bi-dash-square-fill::before { content: "\f2e8"; }
512
+ .bi-dash-square::before { content: "\f2e9"; }
513
+ .bi-dash::before { content: "\f2ea"; }
514
+ .bi-diagram-2-fill::before { content: "\f2eb"; }
515
+ .bi-diagram-2::before { content: "\f2ec"; }
516
+ .bi-diagram-3-fill::before { content: "\f2ed"; }
517
+ .bi-diagram-3::before { content: "\f2ee"; }
518
+ .bi-diamond-fill::before { content: "\f2ef"; }
519
+ .bi-diamond-half::before { content: "\f2f0"; }
520
+ .bi-diamond::before { content: "\f2f1"; }
521
+ .bi-dice-1-fill::before { content: "\f2f2"; }
522
+ .bi-dice-1::before { content: "\f2f3"; }
523
+ .bi-dice-2-fill::before { content: "\f2f4"; }
524
+ .bi-dice-2::before { content: "\f2f5"; }
525
+ .bi-dice-3-fill::before { content: "\f2f6"; }
526
+ .bi-dice-3::before { content: "\f2f7"; }
527
+ .bi-dice-4-fill::before { content: "\f2f8"; }
528
+ .bi-dice-4::before { content: "\f2f9"; }
529
+ .bi-dice-5-fill::before { content: "\f2fa"; }
530
+ .bi-dice-5::before { content: "\f2fb"; }
531
+ .bi-dice-6-fill::before { content: "\f2fc"; }
532
+ .bi-dice-6::before { content: "\f2fd"; }
533
+ .bi-disc-fill::before { content: "\f2fe"; }
534
+ .bi-disc::before { content: "\f2ff"; }
535
+ .bi-discord::before { content: "\f300"; }
536
+ .bi-display-fill::before { content: "\f301"; }
537
+ .bi-display::before { content: "\f302"; }
538
+ .bi-distribute-horizontal::before { content: "\f303"; }
539
+ .bi-distribute-vertical::before { content: "\f304"; }
540
+ .bi-door-closed-fill::before { content: "\f305"; }
541
+ .bi-door-closed::before { content: "\f306"; }
542
+ .bi-door-open-fill::before { content: "\f307"; }
543
+ .bi-door-open::before { content: "\f308"; }
544
+ .bi-dot::before { content: "\f309"; }
545
+ .bi-download::before { content: "\f30a"; }
546
+ .bi-droplet-fill::before { content: "\f30b"; }
547
+ .bi-droplet-half::before { content: "\f30c"; }
548
+ .bi-droplet::before { content: "\f30d"; }
549
+ .bi-earbuds::before { content: "\f30e"; }
550
+ .bi-easel-fill::before { content: "\f30f"; }
551
+ .bi-easel::before { content: "\f310"; }
552
+ .bi-egg-fill::before { content: "\f311"; }
553
+ .bi-egg-fried::before { content: "\f312"; }
554
+ .bi-egg::before { content: "\f313"; }
555
+ .bi-eject-fill::before { content: "\f314"; }
556
+ .bi-eject::before { content: "\f315"; }
557
+ .bi-emoji-angry-fill::before { content: "\f316"; }
558
+ .bi-emoji-angry::before { content: "\f317"; }
559
+ .bi-emoji-dizzy-fill::before { content: "\f318"; }
560
+ .bi-emoji-dizzy::before { content: "\f319"; }
561
+ .bi-emoji-expressionless-fill::before { content: "\f31a"; }
562
+ .bi-emoji-expressionless::before { content: "\f31b"; }
563
+ .bi-emoji-frown-fill::before { content: "\f31c"; }
564
+ .bi-emoji-frown::before { content: "\f31d"; }
565
+ .bi-emoji-heart-eyes-fill::before { content: "\f31e"; }
566
+ .bi-emoji-heart-eyes::before { content: "\f31f"; }
567
+ .bi-emoji-laughing-fill::before { content: "\f320"; }
568
+ .bi-emoji-laughing::before { content: "\f321"; }
569
+ .bi-emoji-neutral-fill::before { content: "\f322"; }
570
+ .bi-emoji-neutral::before { content: "\f323"; }
571
+ .bi-emoji-smile-fill::before { content: "\f324"; }
572
+ .bi-emoji-smile-upside-down-fill::before { content: "\f325"; }
573
+ .bi-emoji-smile-upside-down::before { content: "\f326"; }
574
+ .bi-emoji-smile::before { content: "\f327"; }
575
+ .bi-emoji-sunglasses-fill::before { content: "\f328"; }
576
+ .bi-emoji-sunglasses::before { content: "\f329"; }
577
+ .bi-emoji-wink-fill::before { content: "\f32a"; }
578
+ .bi-emoji-wink::before { content: "\f32b"; }
579
+ .bi-envelope-fill::before { content: "\f32c"; }
580
+ .bi-envelope-open-fill::before { content: "\f32d"; }
581
+ .bi-envelope-open::before { content: "\f32e"; }
582
+ .bi-envelope::before { content: "\f32f"; }
583
+ .bi-eraser-fill::before { content: "\f330"; }
584
+ .bi-eraser::before { content: "\f331"; }
585
+ .bi-exclamation-circle-fill::before { content: "\f332"; }
586
+ .bi-exclamation-circle::before { content: "\f333"; }
587
+ .bi-exclamation-diamond-fill::before { content: "\f334"; }
588
+ .bi-exclamation-diamond::before { content: "\f335"; }
589
+ .bi-exclamation-octagon-fill::before { content: "\f336"; }
590
+ .bi-exclamation-octagon::before { content: "\f337"; }
591
+ .bi-exclamation-square-fill::before { content: "\f338"; }
592
+ .bi-exclamation-square::before { content: "\f339"; }
593
+ .bi-exclamation-triangle-fill::before { content: "\f33a"; }
594
+ .bi-exclamation-triangle::before { content: "\f33b"; }
595
+ .bi-exclamation::before { content: "\f33c"; }
596
+ .bi-exclude::before { content: "\f33d"; }
597
+ .bi-eye-fill::before { content: "\f33e"; }
598
+ .bi-eye-slash-fill::before { content: "\f33f"; }
599
+ .bi-eye-slash::before { content: "\f340"; }
600
+ .bi-eye::before { content: "\f341"; }
601
+ .bi-eyedropper::before { content: "\f342"; }
602
+ .bi-eyeglasses::before { content: "\f343"; }
603
+ .bi-facebook::before { content: "\f344"; }
604
+ .bi-file-arrow-down-fill::before { content: "\f345"; }
605
+ .bi-file-arrow-down::before { content: "\f346"; }
606
+ .bi-file-arrow-up-fill::before { content: "\f347"; }
607
+ .bi-file-arrow-up::before { content: "\f348"; }
608
+ .bi-file-bar-graph-fill::before { content: "\f349"; }
609
+ .bi-file-bar-graph::before { content: "\f34a"; }
610
+ .bi-file-binary-fill::before { content: "\f34b"; }
611
+ .bi-file-binary::before { content: "\f34c"; }
612
+ .bi-file-break-fill::before { content: "\f34d"; }
613
+ .bi-file-break::before { content: "\f34e"; }
614
+ .bi-file-check-fill::before { content: "\f34f"; }
615
+ .bi-file-check::before { content: "\f350"; }
616
+ .bi-file-code-fill::before { content: "\f351"; }
617
+ .bi-file-code::before { content: "\f352"; }
618
+ .bi-file-diff-fill::before { content: "\f353"; }
619
+ .bi-file-diff::before { content: "\f354"; }
620
+ .bi-file-earmark-arrow-down-fill::before { content: "\f355"; }
621
+ .bi-file-earmark-arrow-down::before { content: "\f356"; }
622
+ .bi-file-earmark-arrow-up-fill::before { content: "\f357"; }
623
+ .bi-file-earmark-arrow-up::before { content: "\f358"; }
624
+ .bi-file-earmark-bar-graph-fill::before { content: "\f359"; }
625
+ .bi-file-earmark-bar-graph::before { content: "\f35a"; }
626
+ .bi-file-earmark-binary-fill::before { content: "\f35b"; }
627
+ .bi-file-earmark-binary::before { content: "\f35c"; }
628
+ .bi-file-earmark-break-fill::before { content: "\f35d"; }
629
+ .bi-file-earmark-break::before { content: "\f35e"; }
630
+ .bi-file-earmark-check-fill::before { content: "\f35f"; }
631
+ .bi-file-earmark-check::before { content: "\f360"; }
632
+ .bi-file-earmark-code-fill::before { content: "\f361"; }
633
+ .bi-file-earmark-code::before { content: "\f362"; }
634
+ .bi-file-earmark-diff-fill::before { content: "\f363"; }
635
+ .bi-file-earmark-diff::before { content: "\f364"; }
636
+ .bi-file-earmark-easel-fill::before { content: "\f365"; }
637
+ .bi-file-earmark-easel::before { content: "\f366"; }
638
+ .bi-file-earmark-excel-fill::before { content: "\f367"; }
639
+ .bi-file-earmark-excel::before { content: "\f368"; }
640
+ .bi-file-earmark-fill::before { content: "\f369"; }
641
+ .bi-file-earmark-font-fill::before { content: "\f36a"; }
642
+ .bi-file-earmark-font::before { content: "\f36b"; }
643
+ .bi-file-earmark-image-fill::before { content: "\f36c"; }
644
+ .bi-file-earmark-image::before { content: "\f36d"; }
645
+ .bi-file-earmark-lock-fill::before { content: "\f36e"; }
646
+ .bi-file-earmark-lock::before { content: "\f36f"; }
647
+ .bi-file-earmark-lock2-fill::before { content: "\f370"; }
648
+ .bi-file-earmark-lock2::before { content: "\f371"; }
649
+ .bi-file-earmark-medical-fill::before { content: "\f372"; }
650
+ .bi-file-earmark-medical::before { content: "\f373"; }
651
+ .bi-file-earmark-minus-fill::before { content: "\f374"; }
652
+ .bi-file-earmark-minus::before { content: "\f375"; }
653
+ .bi-file-earmark-music-fill::before { content: "\f376"; }
654
+ .bi-file-earmark-music::before { content: "\f377"; }
655
+ .bi-file-earmark-person-fill::before { content: "\f378"; }
656
+ .bi-file-earmark-person::before { content: "\f379"; }
657
+ .bi-file-earmark-play-fill::before { content: "\f37a"; }
658
+ .bi-file-earmark-play::before { content: "\f37b"; }
659
+ .bi-file-earmark-plus-fill::before { content: "\f37c"; }
660
+ .bi-file-earmark-plus::before { content: "\f37d"; }
661
+ .bi-file-earmark-post-fill::before { content: "\f37e"; }
662
+ .bi-file-earmark-post::before { content: "\f37f"; }
663
+ .bi-file-earmark-ppt-fill::before { content: "\f380"; }
664
+ .bi-file-earmark-ppt::before { content: "\f381"; }
665
+ .bi-file-earmark-richtext-fill::before { content: "\f382"; }
666
+ .bi-file-earmark-richtext::before { content: "\f383"; }
667
+ .bi-file-earmark-ruled-fill::before { content: "\f384"; }
668
+ .bi-file-earmark-ruled::before { content: "\f385"; }
669
+ .bi-file-earmark-slides-fill::before { content: "\f386"; }
670
+ .bi-file-earmark-slides::before { content: "\f387"; }
671
+ .bi-file-earmark-spreadsheet-fill::before { content: "\f388"; }
672
+ .bi-file-earmark-spreadsheet::before { content: "\f389"; }
673
+ .bi-file-earmark-text-fill::before { content: "\f38a"; }
674
+ .bi-file-earmark-text::before { content: "\f38b"; }
675
+ .bi-file-earmark-word-fill::before { content: "\f38c"; }
676
+ .bi-file-earmark-word::before { content: "\f38d"; }
677
+ .bi-file-earmark-x-fill::before { content: "\f38e"; }
678
+ .bi-file-earmark-x::before { content: "\f38f"; }
679
+ .bi-file-earmark-zip-fill::before { content: "\f390"; }
680
+ .bi-file-earmark-zip::before { content: "\f391"; }
681
+ .bi-file-earmark::before { content: "\f392"; }
682
+ .bi-file-easel-fill::before { content: "\f393"; }
683
+ .bi-file-easel::before { content: "\f394"; }
684
+ .bi-file-excel-fill::before { content: "\f395"; }
685
+ .bi-file-excel::before { content: "\f396"; }
686
+ .bi-file-fill::before { content: "\f397"; }
687
+ .bi-file-font-fill::before { content: "\f398"; }
688
+ .bi-file-font::before { content: "\f399"; }
689
+ .bi-file-image-fill::before { content: "\f39a"; }
690
+ .bi-file-image::before { content: "\f39b"; }
691
+ .bi-file-lock-fill::before { content: "\f39c"; }
692
+ .bi-file-lock::before { content: "\f39d"; }
693
+ .bi-file-lock2-fill::before { content: "\f39e"; }
694
+ .bi-file-lock2::before { content: "\f39f"; }
695
+ .bi-file-medical-fill::before { content: "\f3a0"; }
696
+ .bi-file-medical::before { content: "\f3a1"; }
697
+ .bi-file-minus-fill::before { content: "\f3a2"; }
698
+ .bi-file-minus::before { content: "\f3a3"; }
699
+ .bi-file-music-fill::before { content: "\f3a4"; }
700
+ .bi-file-music::before { content: "\f3a5"; }
701
+ .bi-file-person-fill::before { content: "\f3a6"; }
702
+ .bi-file-person::before { content: "\f3a7"; }
703
+ .bi-file-play-fill::before { content: "\f3a8"; }
704
+ .bi-file-play::before { content: "\f3a9"; }
705
+ .bi-file-plus-fill::before { content: "\f3aa"; }
706
+ .bi-file-plus::before { content: "\f3ab"; }
707
+ .bi-file-post-fill::before { content: "\f3ac"; }
708
+ .bi-file-post::before { content: "\f3ad"; }
709
+ .bi-file-ppt-fill::before { content: "\f3ae"; }
710
+ .bi-file-ppt::before { content: "\f3af"; }
711
+ .bi-file-richtext-fill::before { content: "\f3b0"; }
712
+ .bi-file-richtext::before { content: "\f3b1"; }
713
+ .bi-file-ruled-fill::before { content: "\f3b2"; }
714
+ .bi-file-ruled::before { content: "\f3b3"; }
715
+ .bi-file-slides-fill::before { content: "\f3b4"; }
716
+ .bi-file-slides::before { content: "\f3b5"; }
717
+ .bi-file-spreadsheet-fill::before { content: "\f3b6"; }
718
+ .bi-file-spreadsheet::before { content: "\f3b7"; }
719
+ .bi-file-text-fill::before { content: "\f3b8"; }
720
+ .bi-file-text::before { content: "\f3b9"; }
721
+ .bi-file-word-fill::before { content: "\f3ba"; }
722
+ .bi-file-word::before { content: "\f3bb"; }
723
+ .bi-file-x-fill::before { content: "\f3bc"; }
724
+ .bi-file-x::before { content: "\f3bd"; }
725
+ .bi-file-zip-fill::before { content: "\f3be"; }
726
+ .bi-file-zip::before { content: "\f3bf"; }
727
+ .bi-file::before { content: "\f3c0"; }
728
+ .bi-files-alt::before { content: "\f3c1"; }
729
+ .bi-files::before { content: "\f3c2"; }
730
+ .bi-film::before { content: "\f3c3"; }
731
+ .bi-filter-circle-fill::before { content: "\f3c4"; }
732
+ .bi-filter-circle::before { content: "\f3c5"; }
733
+ .bi-filter-left::before { content: "\f3c6"; }
734
+ .bi-filter-right::before { content: "\f3c7"; }
735
+ .bi-filter-square-fill::before { content: "\f3c8"; }
736
+ .bi-filter-square::before { content: "\f3c9"; }
737
+ .bi-filter::before { content: "\f3ca"; }
738
+ .bi-flag-fill::before { content: "\f3cb"; }
739
+ .bi-flag::before { content: "\f3cc"; }
740
+ .bi-flower1::before { content: "\f3cd"; }
741
+ .bi-flower2::before { content: "\f3ce"; }
742
+ .bi-flower3::before { content: "\f3cf"; }
743
+ .bi-folder-check::before { content: "\f3d0"; }
744
+ .bi-folder-fill::before { content: "\f3d1"; }
745
+ .bi-folder-minus::before { content: "\f3d2"; }
746
+ .bi-folder-plus::before { content: "\f3d3"; }
747
+ .bi-folder-symlink-fill::before { content: "\f3d4"; }
748
+ .bi-folder-symlink::before { content: "\f3d5"; }
749
+ .bi-folder-x::before { content: "\f3d6"; }
750
+ .bi-folder::before { content: "\f3d7"; }
751
+ .bi-folder2-open::before { content: "\f3d8"; }
752
+ .bi-folder2::before { content: "\f3d9"; }
753
+ .bi-fonts::before { content: "\f3da"; }
754
+ .bi-forward-fill::before { content: "\f3db"; }
755
+ .bi-forward::before { content: "\f3dc"; }
756
+ .bi-front::before { content: "\f3dd"; }
757
+ .bi-fullscreen-exit::before { content: "\f3de"; }
758
+ .bi-fullscreen::before { content: "\f3df"; }
759
+ .bi-funnel-fill::before { content: "\f3e0"; }
760
+ .bi-funnel::before { content: "\f3e1"; }
761
+ .bi-gear-fill::before { content: "\f3e2"; }
762
+ .bi-gear-wide-connected::before { content: "\f3e3"; }
763
+ .bi-gear-wide::before { content: "\f3e4"; }
764
+ .bi-gear::before { content: "\f3e5"; }
765
+ .bi-gem::before { content: "\f3e6"; }
766
+ .bi-geo-alt-fill::before { content: "\f3e7"; }
767
+ .bi-geo-alt::before { content: "\f3e8"; }
768
+ .bi-geo-fill::before { content: "\f3e9"; }
769
+ .bi-geo::before { content: "\f3ea"; }
770
+ .bi-gift-fill::before { content: "\f3eb"; }
771
+ .bi-gift::before { content: "\f3ec"; }
772
+ .bi-github::before { content: "\f3ed"; }
773
+ .bi-globe::before { content: "\f3ee"; }
774
+ .bi-globe2::before { content: "\f3ef"; }
775
+ .bi-google::before { content: "\f3f0"; }
776
+ .bi-graph-down::before { content: "\f3f1"; }
777
+ .bi-graph-up::before { content: "\f3f2"; }
778
+ .bi-grid-1x2-fill::before { content: "\f3f3"; }
779
+ .bi-grid-1x2::before { content: "\f3f4"; }
780
+ .bi-grid-3x2-gap-fill::before { content: "\f3f5"; }
781
+ .bi-grid-3x2-gap::before { content: "\f3f6"; }
782
+ .bi-grid-3x2::before { content: "\f3f7"; }
783
+ .bi-grid-3x3-gap-fill::before { content: "\f3f8"; }
784
+ .bi-grid-3x3-gap::before { content: "\f3f9"; }
785
+ .bi-grid-3x3::before { content: "\f3fa"; }
786
+ .bi-grid-fill::before { content: "\f3fb"; }
787
+ .bi-grid::before { content: "\f3fc"; }
788
+ .bi-grip-horizontal::before { content: "\f3fd"; }
789
+ .bi-grip-vertical::before { content: "\f3fe"; }
790
+ .bi-hammer::before { content: "\f3ff"; }
791
+ .bi-hand-index-fill::before { content: "\f400"; }
792
+ .bi-hand-index-thumb-fill::before { content: "\f401"; }
793
+ .bi-hand-index-thumb::before { content: "\f402"; }
794
+ .bi-hand-index::before { content: "\f403"; }
795
+ .bi-hand-thumbs-down-fill::before { content: "\f404"; }
796
+ .bi-hand-thumbs-down::before { content: "\f405"; }
797
+ .bi-hand-thumbs-up-fill::before { content: "\f406"; }
798
+ .bi-hand-thumbs-up::before { content: "\f407"; }
799
+ .bi-handbag-fill::before { content: "\f408"; }
800
+ .bi-handbag::before { content: "\f409"; }
801
+ .bi-hash::before { content: "\f40a"; }
802
+ .bi-hdd-fill::before { content: "\f40b"; }
803
+ .bi-hdd-network-fill::before { content: "\f40c"; }
804
+ .bi-hdd-network::before { content: "\f40d"; }
805
+ .bi-hdd-rack-fill::before { content: "\f40e"; }
806
+ .bi-hdd-rack::before { content: "\f40f"; }
807
+ .bi-hdd-stack-fill::before { content: "\f410"; }
808
+ .bi-hdd-stack::before { content: "\f411"; }
809
+ .bi-hdd::before { content: "\f412"; }
810
+ .bi-headphones::before { content: "\f413"; }
811
+ .bi-headset::before { content: "\f414"; }
812
+ .bi-heart-fill::before { content: "\f415"; }
813
+ .bi-heart-half::before { content: "\f416"; }
814
+ .bi-heart::before { content: "\f417"; }
815
+ .bi-heptagon-fill::before { content: "\f418"; }
816
+ .bi-heptagon-half::before { content: "\f419"; }
817
+ .bi-heptagon::before { content: "\f41a"; }
818
+ .bi-hexagon-fill::before { content: "\f41b"; }
819
+ .bi-hexagon-half::before { content: "\f41c"; }
820
+ .bi-hexagon::before { content: "\f41d"; }
821
+ .bi-hourglass-bottom::before { content: "\f41e"; }
822
+ .bi-hourglass-split::before { content: "\f41f"; }
823
+ .bi-hourglass-top::before { content: "\f420"; }
824
+ .bi-hourglass::before { content: "\f421"; }
825
+ .bi-house-door-fill::before { content: "\f422"; }
826
+ .bi-house-door::before { content: "\f423"; }
827
+ .bi-house-fill::before { content: "\f424"; }
828
+ .bi-house::before { content: "\f425"; }
829
+ .bi-hr::before { content: "\f426"; }
830
+ .bi-hurricane::before { content: "\f427"; }
831
+ .bi-image-alt::before { content: "\f428"; }
832
+ .bi-image-fill::before { content: "\f429"; }
833
+ .bi-image::before { content: "\f42a"; }
834
+ .bi-images::before { content: "\f42b"; }
835
+ .bi-inbox-fill::before { content: "\f42c"; }
836
+ .bi-inbox::before { content: "\f42d"; }
837
+ .bi-inboxes-fill::before { content: "\f42e"; }
838
+ .bi-inboxes::before { content: "\f42f"; }
839
+ .bi-info-circle-fill::before { content: "\f430"; }
840
+ .bi-info-circle::before { content: "\f431"; }
841
+ .bi-info-square-fill::before { content: "\f432"; }
842
+ .bi-info-square::before { content: "\f433"; }
843
+ .bi-info::before { content: "\f434"; }
844
+ .bi-input-cursor-text::before { content: "\f435"; }
845
+ .bi-input-cursor::before { content: "\f436"; }
846
+ .bi-instagram::before { content: "\f437"; }
847
+ .bi-intersect::before { content: "\f438"; }
848
+ .bi-journal-album::before { content: "\f439"; }
849
+ .bi-journal-arrow-down::before { content: "\f43a"; }
850
+ .bi-journal-arrow-up::before { content: "\f43b"; }
851
+ .bi-journal-bookmark-fill::before { content: "\f43c"; }
852
+ .bi-journal-bookmark::before { content: "\f43d"; }
853
+ .bi-journal-check::before { content: "\f43e"; }
854
+ .bi-journal-code::before { content: "\f43f"; }
855
+ .bi-journal-medical::before { content: "\f440"; }
856
+ .bi-journal-minus::before { content: "\f441"; }
857
+ .bi-journal-plus::before { content: "\f442"; }
858
+ .bi-journal-richtext::before { content: "\f443"; }
859
+ .bi-journal-text::before { content: "\f444"; }
860
+ .bi-journal-x::before { content: "\f445"; }
861
+ .bi-journal::before { content: "\f446"; }
862
+ .bi-journals::before { content: "\f447"; }
863
+ .bi-joystick::before { content: "\f448"; }
864
+ .bi-justify-left::before { content: "\f449"; }
865
+ .bi-justify-right::before { content: "\f44a"; }
866
+ .bi-justify::before { content: "\f44b"; }
867
+ .bi-kanban-fill::before { content: "\f44c"; }
868
+ .bi-kanban::before { content: "\f44d"; }
869
+ .bi-key-fill::before { content: "\f44e"; }
870
+ .bi-key::before { content: "\f44f"; }
871
+ .bi-keyboard-fill::before { content: "\f450"; }
872
+ .bi-keyboard::before { content: "\f451"; }
873
+ .bi-ladder::before { content: "\f452"; }
874
+ .bi-lamp-fill::before { content: "\f453"; }
875
+ .bi-lamp::before { content: "\f454"; }
876
+ .bi-laptop-fill::before { content: "\f455"; }
877
+ .bi-laptop::before { content: "\f456"; }
878
+ .bi-layer-backward::before { content: "\f457"; }
879
+ .bi-layer-forward::before { content: "\f458"; }
880
+ .bi-layers-fill::before { content: "\f459"; }
881
+ .bi-layers-half::before { content: "\f45a"; }
882
+ .bi-layers::before { content: "\f45b"; }
883
+ .bi-layout-sidebar-inset-reverse::before { content: "\f45c"; }
884
+ .bi-layout-sidebar-inset::before { content: "\f45d"; }
885
+ .bi-layout-sidebar-reverse::before { content: "\f45e"; }
886
+ .bi-layout-sidebar::before { content: "\f45f"; }
887
+ .bi-layout-split::before { content: "\f460"; }
888
+ .bi-layout-text-sidebar-reverse::before { content: "\f461"; }
889
+ .bi-layout-text-sidebar::before { content: "\f462"; }
890
+ .bi-layout-text-window-reverse::before { content: "\f463"; }
891
+ .bi-layout-text-window::before { content: "\f464"; }
892
+ .bi-layout-three-columns::before { content: "\f465"; }
893
+ .bi-layout-wtf::before { content: "\f466"; }
894
+ .bi-life-preserver::before { content: "\f467"; }
895
+ .bi-lightbulb-fill::before { content: "\f468"; }
896
+ .bi-lightbulb-off-fill::before { content: "\f469"; }
897
+ .bi-lightbulb-off::before { content: "\f46a"; }
898
+ .bi-lightbulb::before { content: "\f46b"; }
899
+ .bi-lightning-charge-fill::before { content: "\f46c"; }
900
+ .bi-lightning-charge::before { content: "\f46d"; }
901
+ .bi-lightning-fill::before { content: "\f46e"; }
902
+ .bi-lightning::before { content: "\f46f"; }
903
+ .bi-link-45deg::before { content: "\f470"; }
904
+ .bi-link::before { content: "\f471"; }
905
+ .bi-linkedin::before { content: "\f472"; }
906
+ .bi-list-check::before { content: "\f473"; }
907
+ .bi-list-nested::before { content: "\f474"; }
908
+ .bi-list-ol::before { content: "\f475"; }
909
+ .bi-list-stars::before { content: "\f476"; }
910
+ .bi-list-task::before { content: "\f477"; }
911
+ .bi-list-ul::before { content: "\f478"; }
912
+ .bi-list::before { content: "\f479"; }
913
+ .bi-lock-fill::before { content: "\f47a"; }
914
+ .bi-lock::before { content: "\f47b"; }
915
+ .bi-mailbox::before { content: "\f47c"; }
916
+ .bi-mailbox2::before { content: "\f47d"; }
917
+ .bi-map-fill::before { content: "\f47e"; }
918
+ .bi-map::before { content: "\f47f"; }
919
+ .bi-markdown-fill::before { content: "\f480"; }
920
+ .bi-markdown::before { content: "\f481"; }
921
+ .bi-mask::before { content: "\f482"; }
922
+ .bi-megaphone-fill::before { content: "\f483"; }
923
+ .bi-megaphone::before { content: "\f484"; }
924
+ .bi-menu-app-fill::before { content: "\f485"; }
925
+ .bi-menu-app::before { content: "\f486"; }
926
+ .bi-menu-button-fill::before { content: "\f487"; }
927
+ .bi-menu-button-wide-fill::before { content: "\f488"; }
928
+ .bi-menu-button-wide::before { content: "\f489"; }
929
+ .bi-menu-button::before { content: "\f48a"; }
930
+ .bi-menu-down::before { content: "\f48b"; }
931
+ .bi-menu-up::before { content: "\f48c"; }
932
+ .bi-mic-fill::before { content: "\f48d"; }
933
+ .bi-mic-mute-fill::before { content: "\f48e"; }
934
+ .bi-mic-mute::before { content: "\f48f"; }
935
+ .bi-mic::before { content: "\f490"; }
936
+ .bi-minecart-loaded::before { content: "\f491"; }
937
+ .bi-minecart::before { content: "\f492"; }
938
+ .bi-moisture::before { content: "\f493"; }
939
+ .bi-moon-fill::before { content: "\f494"; }
940
+ .bi-moon-stars-fill::before { content: "\f495"; }
941
+ .bi-moon-stars::before { content: "\f496"; }
942
+ .bi-moon::before { content: "\f497"; }
943
+ .bi-mouse-fill::before { content: "\f498"; }
944
+ .bi-mouse::before { content: "\f499"; }
945
+ .bi-mouse2-fill::before { content: "\f49a"; }
946
+ .bi-mouse2::before { content: "\f49b"; }
947
+ .bi-mouse3-fill::before { content: "\f49c"; }
948
+ .bi-mouse3::before { content: "\f49d"; }
949
+ .bi-music-note-beamed::before { content: "\f49e"; }
950
+ .bi-music-note-list::before { content: "\f49f"; }
951
+ .bi-music-note::before { content: "\f4a0"; }
952
+ .bi-music-player-fill::before { content: "\f4a1"; }
953
+ .bi-music-player::before { content: "\f4a2"; }
954
+ .bi-newspaper::before { content: "\f4a3"; }
955
+ .bi-node-minus-fill::before { content: "\f4a4"; }
956
+ .bi-node-minus::before { content: "\f4a5"; }
957
+ .bi-node-plus-fill::before { content: "\f4a6"; }
958
+ .bi-node-plus::before { content: "\f4a7"; }
959
+ .bi-nut-fill::before { content: "\f4a8"; }
960
+ .bi-nut::before { content: "\f4a9"; }
961
+ .bi-octagon-fill::before { content: "\f4aa"; }
962
+ .bi-octagon-half::before { content: "\f4ab"; }
963
+ .bi-octagon::before { content: "\f4ac"; }
964
+ .bi-option::before { content: "\f4ad"; }
965
+ .bi-outlet::before { content: "\f4ae"; }
966
+ .bi-paint-bucket::before { content: "\f4af"; }
967
+ .bi-palette-fill::before { content: "\f4b0"; }
968
+ .bi-palette::before { content: "\f4b1"; }
969
+ .bi-palette2::before { content: "\f4b2"; }
970
+ .bi-paperclip::before { content: "\f4b3"; }
971
+ .bi-paragraph::before { content: "\f4b4"; }
972
+ .bi-patch-check-fill::before { content: "\f4b5"; }
973
+ .bi-patch-check::before { content: "\f4b6"; }
974
+ .bi-patch-exclamation-fill::before { content: "\f4b7"; }
975
+ .bi-patch-exclamation::before { content: "\f4b8"; }
976
+ .bi-patch-minus-fill::before { content: "\f4b9"; }
977
+ .bi-patch-minus::before { content: "\f4ba"; }
978
+ .bi-patch-plus-fill::before { content: "\f4bb"; }
979
+ .bi-patch-plus::before { content: "\f4bc"; }
980
+ .bi-patch-question-fill::before { content: "\f4bd"; }
981
+ .bi-patch-question::before { content: "\f4be"; }
982
+ .bi-pause-btn-fill::before { content: "\f4bf"; }
983
+ .bi-pause-btn::before { content: "\f4c0"; }
984
+ .bi-pause-circle-fill::before { content: "\f4c1"; }
985
+ .bi-pause-circle::before { content: "\f4c2"; }
986
+ .bi-pause-fill::before { content: "\f4c3"; }
987
+ .bi-pause::before { content: "\f4c4"; }
988
+ .bi-peace-fill::before { content: "\f4c5"; }
989
+ .bi-peace::before { content: "\f4c6"; }
990
+ .bi-pen-fill::before { content: "\f4c7"; }
991
+ .bi-pen::before { content: "\f4c8"; }
992
+ .bi-pencil-fill::before { content: "\f4c9"; }
993
+ .bi-pencil-square::before { content: "\f4ca"; }
994
+ .bi-pencil::before { content: "\f4cb"; }
995
+ .bi-pentagon-fill::before { content: "\f4cc"; }
996
+ .bi-pentagon-half::before { content: "\f4cd"; }
997
+ .bi-pentagon::before { content: "\f4ce"; }
998
+ .bi-people-fill::before { content: "\f4cf"; }
999
+ .bi-people::before { content: "\f4d0"; }
1000
+ .bi-percent::before { content: "\f4d1"; }
1001
+ .bi-person-badge-fill::before { content: "\f4d2"; }
1002
+ .bi-person-badge::before { content: "\f4d3"; }
1003
+ .bi-person-bounding-box::before { content: "\f4d4"; }
1004
+ .bi-person-check-fill::before { content: "\f4d5"; }
1005
+ .bi-person-check::before { content: "\f4d6"; }
1006
+ .bi-person-circle::before { content: "\f4d7"; }
1007
+ .bi-person-dash-fill::before { content: "\f4d8"; }
1008
+ .bi-person-dash::before { content: "\f4d9"; }
1009
+ .bi-person-fill::before { content: "\f4da"; }
1010
+ .bi-person-lines-fill::before { content: "\f4db"; }
1011
+ .bi-person-plus-fill::before { content: "\f4dc"; }
1012
+ .bi-person-plus::before { content: "\f4dd"; }
1013
+ .bi-person-square::before { content: "\f4de"; }
1014
+ .bi-person-x-fill::before { content: "\f4df"; }
1015
+ .bi-person-x::before { content: "\f4e0"; }
1016
+ .bi-person::before { content: "\f4e1"; }
1017
+ .bi-phone-fill::before { content: "\f4e2"; }
1018
+ .bi-phone-landscape-fill::before { content: "\f4e3"; }
1019
+ .bi-phone-landscape::before { content: "\f4e4"; }
1020
+ .bi-phone-vibrate-fill::before { content: "\f4e5"; }
1021
+ .bi-phone-vibrate::before { content: "\f4e6"; }
1022
+ .bi-phone::before { content: "\f4e7"; }
1023
+ .bi-pie-chart-fill::before { content: "\f4e8"; }
1024
+ .bi-pie-chart::before { content: "\f4e9"; }
1025
+ .bi-pin-angle-fill::before { content: "\f4ea"; }
1026
+ .bi-pin-angle::before { content: "\f4eb"; }
1027
+ .bi-pin-fill::before { content: "\f4ec"; }
1028
+ .bi-pin::before { content: "\f4ed"; }
1029
+ .bi-pip-fill::before { content: "\f4ee"; }
1030
+ .bi-pip::before { content: "\f4ef"; }
1031
+ .bi-play-btn-fill::before { content: "\f4f0"; }
1032
+ .bi-play-btn::before { content: "\f4f1"; }
1033
+ .bi-play-circle-fill::before { content: "\f4f2"; }
1034
+ .bi-play-circle::before { content: "\f4f3"; }
1035
+ .bi-play-fill::before { content: "\f4f4"; }
1036
+ .bi-play::before { content: "\f4f5"; }
1037
+ .bi-plug-fill::before { content: "\f4f6"; }
1038
+ .bi-plug::before { content: "\f4f7"; }
1039
+ .bi-plus-circle-dotted::before { content: "\f4f8"; }
1040
+ .bi-plus-circle-fill::before { content: "\f4f9"; }
1041
+ .bi-plus-circle::before { content: "\f4fa"; }
1042
+ .bi-plus-square-dotted::before { content: "\f4fb"; }
1043
+ .bi-plus-square-fill::before { content: "\f4fc"; }
1044
+ .bi-plus-square::before { content: "\f4fd"; }
1045
+ .bi-plus::before { content: "\f4fe"; }
1046
+ .bi-power::before { content: "\f4ff"; }
1047
+ .bi-printer-fill::before { content: "\f500"; }
1048
+ .bi-printer::before { content: "\f501"; }
1049
+ .bi-puzzle-fill::before { content: "\f502"; }
1050
+ .bi-puzzle::before { content: "\f503"; }
1051
+ .bi-question-circle-fill::before { content: "\f504"; }
1052
+ .bi-question-circle::before { content: "\f505"; }
1053
+ .bi-question-diamond-fill::before { content: "\f506"; }
1054
+ .bi-question-diamond::before { content: "\f507"; }
1055
+ .bi-question-octagon-fill::before { content: "\f508"; }
1056
+ .bi-question-octagon::before { content: "\f509"; }
1057
+ .bi-question-square-fill::before { content: "\f50a"; }
1058
+ .bi-question-square::before { content: "\f50b"; }
1059
+ .bi-question::before { content: "\f50c"; }
1060
+ .bi-rainbow::before { content: "\f50d"; }
1061
+ .bi-receipt-cutoff::before { content: "\f50e"; }
1062
+ .bi-receipt::before { content: "\f50f"; }
1063
+ .bi-reception-0::before { content: "\f510"; }
1064
+ .bi-reception-1::before { content: "\f511"; }
1065
+ .bi-reception-2::before { content: "\f512"; }
1066
+ .bi-reception-3::before { content: "\f513"; }
1067
+ .bi-reception-4::before { content: "\f514"; }
1068
+ .bi-record-btn-fill::before { content: "\f515"; }
1069
+ .bi-record-btn::before { content: "\f516"; }
1070
+ .bi-record-circle-fill::before { content: "\f517"; }
1071
+ .bi-record-circle::before { content: "\f518"; }
1072
+ .bi-record-fill::before { content: "\f519"; }
1073
+ .bi-record::before { content: "\f51a"; }
1074
+ .bi-record2-fill::before { content: "\f51b"; }
1075
+ .bi-record2::before { content: "\f51c"; }
1076
+ .bi-reply-all-fill::before { content: "\f51d"; }
1077
+ .bi-reply-all::before { content: "\f51e"; }
1078
+ .bi-reply-fill::before { content: "\f51f"; }
1079
+ .bi-reply::before { content: "\f520"; }
1080
+ .bi-rss-fill::before { content: "\f521"; }
1081
+ .bi-rss::before { content: "\f522"; }
1082
+ .bi-rulers::before { content: "\f523"; }
1083
+ .bi-save-fill::before { content: "\f524"; }
1084
+ .bi-save::before { content: "\f525"; }
1085
+ .bi-save2-fill::before { content: "\f526"; }
1086
+ .bi-save2::before { content: "\f527"; }
1087
+ .bi-scissors::before { content: "\f528"; }
1088
+ .bi-screwdriver::before { content: "\f529"; }
1089
+ .bi-search::before { content: "\f52a"; }
1090
+ .bi-segmented-nav::before { content: "\f52b"; }
1091
+ .bi-server::before { content: "\f52c"; }
1092
+ .bi-share-fill::before { content: "\f52d"; }
1093
+ .bi-share::before { content: "\f52e"; }
1094
+ .bi-shield-check::before { content: "\f52f"; }
1095
+ .bi-shield-exclamation::before { content: "\f530"; }
1096
+ .bi-shield-fill-check::before { content: "\f531"; }
1097
+ .bi-shield-fill-exclamation::before { content: "\f532"; }
1098
+ .bi-shield-fill-minus::before { content: "\f533"; }
1099
+ .bi-shield-fill-plus::before { content: "\f534"; }
1100
+ .bi-shield-fill-x::before { content: "\f535"; }
1101
+ .bi-shield-fill::before { content: "\f536"; }
1102
+ .bi-shield-lock-fill::before { content: "\f537"; }
1103
+ .bi-shield-lock::before { content: "\f538"; }
1104
+ .bi-shield-minus::before { content: "\f539"; }
1105
+ .bi-shield-plus::before { content: "\f53a"; }
1106
+ .bi-shield-shaded::before { content: "\f53b"; }
1107
+ .bi-shield-slash-fill::before { content: "\f53c"; }
1108
+ .bi-shield-slash::before { content: "\f53d"; }
1109
+ .bi-shield-x::before { content: "\f53e"; }
1110
+ .bi-shield::before { content: "\f53f"; }
1111
+ .bi-shift-fill::before { content: "\f540"; }
1112
+ .bi-shift::before { content: "\f541"; }
1113
+ .bi-shop-window::before { content: "\f542"; }
1114
+ .bi-shop::before { content: "\f543"; }
1115
+ .bi-shuffle::before { content: "\f544"; }
1116
+ .bi-signpost-2-fill::before { content: "\f545"; }
1117
+ .bi-signpost-2::before { content: "\f546"; }
1118
+ .bi-signpost-fill::before { content: "\f547"; }
1119
+ .bi-signpost-split-fill::before { content: "\f548"; }
1120
+ .bi-signpost-split::before { content: "\f549"; }
1121
+ .bi-signpost::before { content: "\f54a"; }
1122
+ .bi-sim-fill::before { content: "\f54b"; }
1123
+ .bi-sim::before { content: "\f54c"; }
1124
+ .bi-skip-backward-btn-fill::before { content: "\f54d"; }
1125
+ .bi-skip-backward-btn::before { content: "\f54e"; }
1126
+ .bi-skip-backward-circle-fill::before { content: "\f54f"; }
1127
+ .bi-skip-backward-circle::before { content: "\f550"; }
1128
+ .bi-skip-backward-fill::before { content: "\f551"; }
1129
+ .bi-skip-backward::before { content: "\f552"; }
1130
+ .bi-skip-end-btn-fill::before { content: "\f553"; }
1131
+ .bi-skip-end-btn::before { content: "\f554"; }
1132
+ .bi-skip-end-circle-fill::before { content: "\f555"; }
1133
+ .bi-skip-end-circle::before { content: "\f556"; }
1134
+ .bi-skip-end-fill::before { content: "\f557"; }
1135
+ .bi-skip-end::before { content: "\f558"; }
1136
+ .bi-skip-forward-btn-fill::before { content: "\f559"; }
1137
+ .bi-skip-forward-btn::before { content: "\f55a"; }
1138
+ .bi-skip-forward-circle-fill::before { content: "\f55b"; }
1139
+ .bi-skip-forward-circle::before { content: "\f55c"; }
1140
+ .bi-skip-forward-fill::before { content: "\f55d"; }
1141
+ .bi-skip-forward::before { content: "\f55e"; }
1142
+ .bi-skip-start-btn-fill::before { content: "\f55f"; }
1143
+ .bi-skip-start-btn::before { content: "\f560"; }
1144
+ .bi-skip-start-circle-fill::before { content: "\f561"; }
1145
+ .bi-skip-start-circle::before { content: "\f562"; }
1146
+ .bi-skip-start-fill::before { content: "\f563"; }
1147
+ .bi-skip-start::before { content: "\f564"; }
1148
+ .bi-slack::before { content: "\f565"; }
1149
+ .bi-slash-circle-fill::before { content: "\f566"; }
1150
+ .bi-slash-circle::before { content: "\f567"; }
1151
+ .bi-slash-square-fill::before { content: "\f568"; }
1152
+ .bi-slash-square::before { content: "\f569"; }
1153
+ .bi-slash::before { content: "\f56a"; }
1154
+ .bi-sliders::before { content: "\f56b"; }
1155
+ .bi-smartwatch::before { content: "\f56c"; }
1156
+ .bi-snow::before { content: "\f56d"; }
1157
+ .bi-snow2::before { content: "\f56e"; }
1158
+ .bi-snow3::before { content: "\f56f"; }
1159
+ .bi-sort-alpha-down-alt::before { content: "\f570"; }
1160
+ .bi-sort-alpha-down::before { content: "\f571"; }
1161
+ .bi-sort-alpha-up-alt::before { content: "\f572"; }
1162
+ .bi-sort-alpha-up::before { content: "\f573"; }
1163
+ .bi-sort-down-alt::before { content: "\f574"; }
1164
+ .bi-sort-down::before { content: "\f575"; }
1165
+ .bi-sort-numeric-down-alt::before { content: "\f576"; }
1166
+ .bi-sort-numeric-down::before { content: "\f577"; }
1167
+ .bi-sort-numeric-up-alt::before { content: "\f578"; }
1168
+ .bi-sort-numeric-up::before { content: "\f579"; }
1169
+ .bi-sort-up-alt::before { content: "\f57a"; }
1170
+ .bi-sort-up::before { content: "\f57b"; }
1171
+ .bi-soundwave::before { content: "\f57c"; }
1172
+ .bi-speaker-fill::before { content: "\f57d"; }
1173
+ .bi-speaker::before { content: "\f57e"; }
1174
+ .bi-speedometer::before { content: "\f57f"; }
1175
+ .bi-speedometer2::before { content: "\f580"; }
1176
+ .bi-spellcheck::before { content: "\f581"; }
1177
+ .bi-square-fill::before { content: "\f582"; }
1178
+ .bi-square-half::before { content: "\f583"; }
1179
+ .bi-square::before { content: "\f584"; }
1180
+ .bi-stack::before { content: "\f585"; }
1181
+ .bi-star-fill::before { content: "\f586"; }
1182
+ .bi-star-half::before { content: "\f587"; }
1183
+ .bi-star::before { content: "\f588"; }
1184
+ .bi-stars::before { content: "\f589"; }
1185
+ .bi-stickies-fill::before { content: "\f58a"; }
1186
+ .bi-stickies::before { content: "\f58b"; }
1187
+ .bi-sticky-fill::before { content: "\f58c"; }
1188
+ .bi-sticky::before { content: "\f58d"; }
1189
+ .bi-stop-btn-fill::before { content: "\f58e"; }
1190
+ .bi-stop-btn::before { content: "\f58f"; }
1191
+ .bi-stop-circle-fill::before { content: "\f590"; }
1192
+ .bi-stop-circle::before { content: "\f591"; }
1193
+ .bi-stop-fill::before { content: "\f592"; }
1194
+ .bi-stop::before { content: "\f593"; }
1195
+ .bi-stoplights-fill::before { content: "\f594"; }
1196
+ .bi-stoplights::before { content: "\f595"; }
1197
+ .bi-stopwatch-fill::before { content: "\f596"; }
1198
+ .bi-stopwatch::before { content: "\f597"; }
1199
+ .bi-subtract::before { content: "\f598"; }
1200
+ .bi-suit-club-fill::before { content: "\f599"; }
1201
+ .bi-suit-club::before { content: "\f59a"; }
1202
+ .bi-suit-diamond-fill::before { content: "\f59b"; }
1203
+ .bi-suit-diamond::before { content: "\f59c"; }
1204
+ .bi-suit-heart-fill::before { content: "\f59d"; }
1205
+ .bi-suit-heart::before { content: "\f59e"; }
1206
+ .bi-suit-spade-fill::before { content: "\f59f"; }
1207
+ .bi-suit-spade::before { content: "\f5a0"; }
1208
+ .bi-sun-fill::before { content: "\f5a1"; }
1209
+ .bi-sun::before { content: "\f5a2"; }
1210
+ .bi-sunglasses::before { content: "\f5a3"; }
1211
+ .bi-sunrise-fill::before { content: "\f5a4"; }
1212
+ .bi-sunrise::before { content: "\f5a5"; }
1213
+ .bi-sunset-fill::before { content: "\f5a6"; }
1214
+ .bi-sunset::before { content: "\f5a7"; }
1215
+ .bi-symmetry-horizontal::before { content: "\f5a8"; }
1216
+ .bi-symmetry-vertical::before { content: "\f5a9"; }
1217
+ .bi-table::before { content: "\f5aa"; }
1218
+ .bi-tablet-fill::before { content: "\f5ab"; }
1219
+ .bi-tablet-landscape-fill::before { content: "\f5ac"; }
1220
+ .bi-tablet-landscape::before { content: "\f5ad"; }
1221
+ .bi-tablet::before { content: "\f5ae"; }
1222
+ .bi-tag-fill::before { content: "\f5af"; }
1223
+ .bi-tag::before { content: "\f5b0"; }
1224
+ .bi-tags-fill::before { content: "\f5b1"; }
1225
+ .bi-tags::before { content: "\f5b2"; }
1226
+ .bi-telegram::before { content: "\f5b3"; }
1227
+ .bi-telephone-fill::before { content: "\f5b4"; }
1228
+ .bi-telephone-forward-fill::before { content: "\f5b5"; }
1229
+ .bi-telephone-forward::before { content: "\f5b6"; }
1230
+ .bi-telephone-inbound-fill::before { content: "\f5b7"; }
1231
+ .bi-telephone-inbound::before { content: "\f5b8"; }
1232
+ .bi-telephone-minus-fill::before { content: "\f5b9"; }
1233
+ .bi-telephone-minus::before { content: "\f5ba"; }
1234
+ .bi-telephone-outbound-fill::before { content: "\f5bb"; }
1235
+ .bi-telephone-outbound::before { content: "\f5bc"; }
1236
+ .bi-telephone-plus-fill::before { content: "\f5bd"; }
1237
+ .bi-telephone-plus::before { content: "\f5be"; }
1238
+ .bi-telephone-x-fill::before { content: "\f5bf"; }
1239
+ .bi-telephone-x::before { content: "\f5c0"; }
1240
+ .bi-telephone::before { content: "\f5c1"; }
1241
+ .bi-terminal-fill::before { content: "\f5c2"; }
1242
+ .bi-terminal::before { content: "\f5c3"; }
1243
+ .bi-text-center::before { content: "\f5c4"; }
1244
+ .bi-text-indent-left::before { content: "\f5c5"; }
1245
+ .bi-text-indent-right::before { content: "\f5c6"; }
1246
+ .bi-text-left::before { content: "\f5c7"; }
1247
+ .bi-text-paragraph::before { content: "\f5c8"; }
1248
+ .bi-text-right::before { content: "\f5c9"; }
1249
+ .bi-textarea-resize::before { content: "\f5ca"; }
1250
+ .bi-textarea-t::before { content: "\f5cb"; }
1251
+ .bi-textarea::before { content: "\f5cc"; }
1252
+ .bi-thermometer-half::before { content: "\f5cd"; }
1253
+ .bi-thermometer-high::before { content: "\f5ce"; }
1254
+ .bi-thermometer-low::before { content: "\f5cf"; }
1255
+ .bi-thermometer-snow::before { content: "\f5d0"; }
1256
+ .bi-thermometer-sun::before { content: "\f5d1"; }
1257
+ .bi-thermometer::before { content: "\f5d2"; }
1258
+ .bi-three-dots-vertical::before { content: "\f5d3"; }
1259
+ .bi-three-dots::before { content: "\f5d4"; }
1260
+ .bi-toggle-off::before { content: "\f5d5"; }
1261
+ .bi-toggle-on::before { content: "\f5d6"; }
1262
+ .bi-toggle2-off::before { content: "\f5d7"; }
1263
+ .bi-toggle2-on::before { content: "\f5d8"; }
1264
+ .bi-toggles::before { content: "\f5d9"; }
1265
+ .bi-toggles2::before { content: "\f5da"; }
1266
+ .bi-tools::before { content: "\f5db"; }
1267
+ .bi-tornado::before { content: "\f5dc"; }
1268
+ .bi-trash-fill::before { content: "\f5dd"; }
1269
+ .bi-trash::before { content: "\f5de"; }
1270
+ .bi-trash2-fill::before { content: "\f5df"; }
1271
+ .bi-trash2::before { content: "\f5e0"; }
1272
+ .bi-tree-fill::before { content: "\f5e1"; }
1273
+ .bi-tree::before { content: "\f5e2"; }
1274
+ .bi-triangle-fill::before { content: "\f5e3"; }
1275
+ .bi-triangle-half::before { content: "\f5e4"; }
1276
+ .bi-triangle::before { content: "\f5e5"; }
1277
+ .bi-trophy-fill::before { content: "\f5e6"; }
1278
+ .bi-trophy::before { content: "\f5e7"; }
1279
+ .bi-tropical-storm::before { content: "\f5e8"; }
1280
+ .bi-truck-flatbed::before { content: "\f5e9"; }
1281
+ .bi-truck::before { content: "\f5ea"; }
1282
+ .bi-tsunami::before { content: "\f5eb"; }
1283
+ .bi-tv-fill::before { content: "\f5ec"; }
1284
+ .bi-tv::before { content: "\f5ed"; }
1285
+ .bi-twitch::before { content: "\f5ee"; }
1286
+ .bi-twitter::before { content: "\f5ef"; }
1287
+ .bi-type-bold::before { content: "\f5f0"; }
1288
+ .bi-type-h1::before { content: "\f5f1"; }
1289
+ .bi-type-h2::before { content: "\f5f2"; }
1290
+ .bi-type-h3::before { content: "\f5f3"; }
1291
+ .bi-type-italic::before { content: "\f5f4"; }
1292
+ .bi-type-strikethrough::before { content: "\f5f5"; }
1293
+ .bi-type-underline::before { content: "\f5f6"; }
1294
+ .bi-type::before { content: "\f5f7"; }
1295
+ .bi-ui-checks-grid::before { content: "\f5f8"; }
1296
+ .bi-ui-checks::before { content: "\f5f9"; }
1297
+ .bi-ui-radios-grid::before { content: "\f5fa"; }
1298
+ .bi-ui-radios::before { content: "\f5fb"; }
1299
+ .bi-umbrella-fill::before { content: "\f5fc"; }
1300
+ .bi-umbrella::before { content: "\f5fd"; }
1301
+ .bi-union::before { content: "\f5fe"; }
1302
+ .bi-unlock-fill::before { content: "\f5ff"; }
1303
+ .bi-unlock::before { content: "\f600"; }
1304
+ .bi-upc-scan::before { content: "\f601"; }
1305
+ .bi-upc::before { content: "\f602"; }
1306
+ .bi-upload::before { content: "\f603"; }
1307
+ .bi-vector-pen::before { content: "\f604"; }
1308
+ .bi-view-list::before { content: "\f605"; }
1309
+ .bi-view-stacked::before { content: "\f606"; }
1310
+ .bi-vinyl-fill::before { content: "\f607"; }
1311
+ .bi-vinyl::before { content: "\f608"; }
1312
+ .bi-voicemail::before { content: "\f609"; }
1313
+ .bi-volume-down-fill::before { content: "\f60a"; }
1314
+ .bi-volume-down::before { content: "\f60b"; }
1315
+ .bi-volume-mute-fill::before { content: "\f60c"; }
1316
+ .bi-volume-mute::before { content: "\f60d"; }
1317
+ .bi-volume-off-fill::before { content: "\f60e"; }
1318
+ .bi-volume-off::before { content: "\f60f"; }
1319
+ .bi-volume-up-fill::before { content: "\f610"; }
1320
+ .bi-volume-up::before { content: "\f611"; }
1321
+ .bi-vr::before { content: "\f612"; }
1322
+ .bi-wallet-fill::before { content: "\f613"; }
1323
+ .bi-wallet::before { content: "\f614"; }
1324
+ .bi-wallet2::before { content: "\f615"; }
1325
+ .bi-watch::before { content: "\f616"; }
1326
+ .bi-water::before { content: "\f617"; }
1327
+ .bi-whatsapp::before { content: "\f618"; }
1328
+ .bi-wifi-1::before { content: "\f619"; }
1329
+ .bi-wifi-2::before { content: "\f61a"; }
1330
+ .bi-wifi-off::before { content: "\f61b"; }
1331
+ .bi-wifi::before { content: "\f61c"; }
1332
+ .bi-wind::before { content: "\f61d"; }
1333
+ .bi-window-dock::before { content: "\f61e"; }
1334
+ .bi-window-sidebar::before { content: "\f61f"; }
1335
+ .bi-window::before { content: "\f620"; }
1336
+ .bi-wrench::before { content: "\f621"; }
1337
+ .bi-x-circle-fill::before { content: "\f622"; }
1338
+ .bi-x-circle::before { content: "\f623"; }
1339
+ .bi-x-diamond-fill::before { content: "\f624"; }
1340
+ .bi-x-diamond::before { content: "\f625"; }
1341
+ .bi-x-octagon-fill::before { content: "\f626"; }
1342
+ .bi-x-octagon::before { content: "\f627"; }
1343
+ .bi-x-square-fill::before { content: "\f628"; }
1344
+ .bi-x-square::before { content: "\f629"; }
1345
+ .bi-x::before { content: "\f62a"; }
1346
+ .bi-youtube::before { content: "\f62b"; }
1347
+ .bi-zoom-in::before { content: "\f62c"; }
1348
+ .bi-zoom-out::before { content: "\f62d"; }
1349
+ .bi-bank::before { content: "\f62e"; }
1350
+ .bi-bank2::before { content: "\f62f"; }
1351
+ .bi-bell-slash-fill::before { content: "\f630"; }
1352
+ .bi-bell-slash::before { content: "\f631"; }
1353
+ .bi-cash-coin::before { content: "\f632"; }
1354
+ .bi-check-lg::before { content: "\f633"; }
1355
+ .bi-coin::before { content: "\f634"; }
1356
+ .bi-currency-bitcoin::before { content: "\f635"; }
1357
+ .bi-currency-dollar::before { content: "\f636"; }
1358
+ .bi-currency-euro::before { content: "\f637"; }
1359
+ .bi-currency-exchange::before { content: "\f638"; }
1360
+ .bi-currency-pound::before { content: "\f639"; }
1361
+ .bi-currency-yen::before { content: "\f63a"; }
1362
+ .bi-dash-lg::before { content: "\f63b"; }
1363
+ .bi-exclamation-lg::before { content: "\f63c"; }
1364
+ .bi-file-earmark-pdf-fill::before { content: "\f63d"; }
1365
+ .bi-file-earmark-pdf::before { content: "\f63e"; }
1366
+ .bi-file-pdf-fill::before { content: "\f63f"; }
1367
+ .bi-file-pdf::before { content: "\f640"; }
1368
+ .bi-gender-ambiguous::before { content: "\f641"; }
1369
+ .bi-gender-female::before { content: "\f642"; }
1370
+ .bi-gender-male::before { content: "\f643"; }
1371
+ .bi-gender-trans::before { content: "\f644"; }
1372
+ .bi-headset-vr::before { content: "\f645"; }
1373
+ .bi-info-lg::before { content: "\f646"; }
1374
+ .bi-mastodon::before { content: "\f647"; }
1375
+ .bi-messenger::before { content: "\f648"; }
1376
+ .bi-piggy-bank-fill::before { content: "\f649"; }
1377
+ .bi-piggy-bank::before { content: "\f64a"; }
1378
+ .bi-pin-map-fill::before { content: "\f64b"; }
1379
+ .bi-pin-map::before { content: "\f64c"; }
1380
+ .bi-plus-lg::before { content: "\f64d"; }
1381
+ .bi-question-lg::before { content: "\f64e"; }
1382
+ .bi-recycle::before { content: "\f64f"; }
1383
+ .bi-reddit::before { content: "\f650"; }
1384
+ .bi-safe-fill::before { content: "\f651"; }
1385
+ .bi-safe2-fill::before { content: "\f652"; }
1386
+ .bi-safe2::before { content: "\f653"; }
1387
+ .bi-sd-card-fill::before { content: "\f654"; }
1388
+ .bi-sd-card::before { content: "\f655"; }
1389
+ .bi-skype::before { content: "\f656"; }
1390
+ .bi-slash-lg::before { content: "\f657"; }
1391
+ .bi-translate::before { content: "\f658"; }
1392
+ .bi-x-lg::before { content: "\f659"; }
1393
+ .bi-safe::before { content: "\f65a"; }
1394
+ .bi-apple::before { content: "\f65b"; }
1395
+ .bi-microsoft::before { content: "\f65d"; }
1396
+ .bi-windows::before { content: "\f65e"; }
1397
+ .bi-behance::before { content: "\f65c"; }
1398
+ .bi-dribbble::before { content: "\f65f"; }
1399
+ .bi-line::before { content: "\f660"; }
1400
+ .bi-medium::before { content: "\f661"; }
1401
+ .bi-paypal::before { content: "\f662"; }
1402
+ .bi-pinterest::before { content: "\f663"; }
1403
+ .bi-signal::before { content: "\f664"; }
1404
+ .bi-snapchat::before { content: "\f665"; }
1405
+ .bi-spotify::before { content: "\f666"; }
1406
+ .bi-stack-overflow::before { content: "\f667"; }
1407
+ .bi-strava::before { content: "\f668"; }
1408
+ .bi-wordpress::before { content: "\f669"; }
1409
+ .bi-vimeo::before { content: "\f66a"; }
1410
+ .bi-activity::before { content: "\f66b"; }
1411
+ .bi-easel2-fill::before { content: "\f66c"; }
1412
+ .bi-easel2::before { content: "\f66d"; }
1413
+ .bi-easel3-fill::before { content: "\f66e"; }
1414
+ .bi-easel3::before { content: "\f66f"; }
1415
+ .bi-fan::before { content: "\f670"; }
1416
+ .bi-fingerprint::before { content: "\f671"; }
1417
+ .bi-graph-down-arrow::before { content: "\f672"; }
1418
+ .bi-graph-up-arrow::before { content: "\f673"; }
1419
+ .bi-hypnotize::before { content: "\f674"; }
1420
+ .bi-magic::before { content: "\f675"; }
1421
+ .bi-person-rolodex::before { content: "\f676"; }
1422
+ .bi-person-video::before { content: "\f677"; }
1423
+ .bi-person-video2::before { content: "\f678"; }
1424
+ .bi-person-video3::before { content: "\f679"; }
1425
+ .bi-person-workspace::before { content: "\f67a"; }
1426
+ .bi-radioactive::before { content: "\f67b"; }
1427
+ .bi-webcam-fill::before { content: "\f67c"; }
1428
+ .bi-webcam::before { content: "\f67d"; }
1429
+ .bi-yin-yang::before { content: "\f67e"; }
1430
+ .bi-bandaid-fill::before { content: "\f680"; }
1431
+ .bi-bandaid::before { content: "\f681"; }
1432
+ .bi-bluetooth::before { content: "\f682"; }
1433
+ .bi-body-text::before { content: "\f683"; }
1434
+ .bi-boombox::before { content: "\f684"; }
1435
+ .bi-boxes::before { content: "\f685"; }
1436
+ .bi-dpad-fill::before { content: "\f686"; }
1437
+ .bi-dpad::before { content: "\f687"; }
1438
+ .bi-ear-fill::before { content: "\f688"; }
1439
+ .bi-ear::before { content: "\f689"; }
1440
+ .bi-envelope-check-1::before { content: "\f68a"; }
1441
+ .bi-envelope-check-fill::before { content: "\f68b"; }
1442
+ .bi-envelope-check::before { content: "\f68c"; }
1443
+ .bi-envelope-dash-1::before { content: "\f68d"; }
1444
+ .bi-envelope-dash-fill::before { content: "\f68e"; }
1445
+ .bi-envelope-dash::before { content: "\f68f"; }
1446
+ .bi-envelope-exclamation-1::before { content: "\f690"; }
1447
+ .bi-envelope-exclamation-fill::before { content: "\f691"; }
1448
+ .bi-envelope-exclamation::before { content: "\f692"; }
1449
+ .bi-envelope-plus-fill::before { content: "\f693"; }
1450
+ .bi-envelope-plus::before { content: "\f694"; }
1451
+ .bi-envelope-slash-1::before { content: "\f695"; }
1452
+ .bi-envelope-slash-fill::before { content: "\f696"; }
1453
+ .bi-envelope-slash::before { content: "\f697"; }
1454
+ .bi-envelope-x-1::before { content: "\f698"; }
1455
+ .bi-envelope-x-fill::before { content: "\f699"; }
1456
+ .bi-envelope-x::before { content: "\f69a"; }
1457
+ .bi-explicit-fill::before { content: "\f69b"; }
1458
+ .bi-explicit::before { content: "\f69c"; }
1459
+ .bi-git::before { content: "\f69d"; }
1460
+ .bi-infinity::before { content: "\f69e"; }
1461
+ .bi-list-columns-reverse::before { content: "\f69f"; }
1462
+ .bi-list-columns::before { content: "\f6a0"; }
1463
+ .bi-meta::before { content: "\f6a1"; }
1464
+ .bi-mortorboard-fill::before { content: "\f6a2"; }
1465
+ .bi-mortorboard::before { content: "\f6a3"; }
1466
+ .bi-nintendo-switch::before { content: "\f6a4"; }
1467
+ .bi-pc-display-horizontal::before { content: "\f6a5"; }
1468
+ .bi-pc-display::before { content: "\f6a6"; }
1469
+ .bi-pc-horizontal::before { content: "\f6a7"; }
1470
+ .bi-pc::before { content: "\f6a8"; }
1471
+ .bi-playstation::before { content: "\f6a9"; }
1472
+ .bi-plus-slash-minus::before { content: "\f6aa"; }
1473
+ .bi-projector-fill::before { content: "\f6ab"; }
1474
+ .bi-projector::before { content: "\f6ac"; }
1475
+ .bi-qr-code-scan::before { content: "\f6ad"; }
1476
+ .bi-qr-code::before { content: "\f6ae"; }
1477
+ .bi-quora::before { content: "\f6af"; }
1478
+ .bi-quote::before { content: "\f6b0"; }
1479
+ .bi-robot::before { content: "\f6b1"; }
1480
+ .bi-send-check-fill::before { content: "\f6b2"; }
1481
+ .bi-send-check::before { content: "\f6b3"; }
1482
+ .bi-send-dash-fill::before { content: "\f6b4"; }
1483
+ .bi-send-dash::before { content: "\f6b5"; }
1484
+ .bi-send-exclamation-1::before { content: "\f6b6"; }
1485
+ .bi-send-exclamation-fill::before { content: "\f6b7"; }
1486
+ .bi-send-exclamation::before { content: "\f6b8"; }
1487
+ .bi-send-fill::before { content: "\f6b9"; }
1488
+ .bi-send-plus-fill::before { content: "\f6ba"; }
1489
+ .bi-send-plus::before { content: "\f6bb"; }
1490
+ .bi-send-slash-fill::before { content: "\f6bc"; }
1491
+ .bi-send-slash::before { content: "\f6bd"; }
1492
+ .bi-send-x-fill::before { content: "\f6be"; }
1493
+ .bi-send-x::before { content: "\f6bf"; }
1494
+ .bi-send::before { content: "\f6c0"; }
1495
+ .bi-steam::before { content: "\f6c1"; }
1496
+ .bi-terminal-dash-1::before { content: "\f6c2"; }
1497
+ .bi-terminal-dash::before { content: "\f6c3"; }
1498
+ .bi-terminal-plus::before { content: "\f6c4"; }
1499
+ .bi-terminal-split::before { content: "\f6c5"; }
1500
+ .bi-ticket-detailed-fill::before { content: "\f6c6"; }
1501
+ .bi-ticket-detailed::before { content: "\f6c7"; }
1502
+ .bi-ticket-fill::before { content: "\f6c8"; }
1503
+ .bi-ticket-perforated-fill::before { content: "\f6c9"; }
1504
+ .bi-ticket-perforated::before { content: "\f6ca"; }
1505
+ .bi-ticket::before { content: "\f6cb"; }
1506
+ .bi-tiktok::before { content: "\f6cc"; }
1507
+ .bi-window-dash::before { content: "\f6cd"; }
1508
+ .bi-window-desktop::before { content: "\f6ce"; }
1509
+ .bi-window-fullscreen::before { content: "\f6cf"; }
1510
+ .bi-window-plus::before { content: "\f6d0"; }
1511
+ .bi-window-split::before { content: "\f6d1"; }
1512
+ .bi-window-stack::before { content: "\f6d2"; }
1513
+ .bi-window-x::before { content: "\f6d3"; }
1514
+ .bi-xbox::before { content: "\f6d4"; }
1515
+ .bi-ethernet::before { content: "\f6d5"; }
1516
+ .bi-hdmi-fill::before { content: "\f6d6"; }
1517
+ .bi-hdmi::before { content: "\f6d7"; }
1518
+ .bi-usb-c-fill::before { content: "\f6d8"; }
1519
+ .bi-usb-c::before { content: "\f6d9"; }
1520
+ .bi-usb-fill::before { content: "\f6da"; }
1521
+ .bi-usb-plug-fill::before { content: "\f6db"; }
1522
+ .bi-usb-plug::before { content: "\f6dc"; }
1523
+ .bi-usb-symbol::before { content: "\f6dd"; }
1524
+ .bi-usb::before { content: "\f6de"; }
1525
+ .bi-boombox-fill::before { content: "\f6df"; }
1526
+ .bi-displayport-1::before { content: "\f6e0"; }
1527
+ .bi-displayport::before { content: "\f6e1"; }
1528
+ .bi-gpu-card::before { content: "\f6e2"; }
1529
+ .bi-memory::before { content: "\f6e3"; }
1530
+ .bi-modem-fill::before { content: "\f6e4"; }
1531
+ .bi-modem::before { content: "\f6e5"; }
1532
+ .bi-motherboard-fill::before { content: "\f6e6"; }
1533
+ .bi-motherboard::before { content: "\f6e7"; }
1534
+ .bi-optical-audio-fill::before { content: "\f6e8"; }
1535
+ .bi-optical-audio::before { content: "\f6e9"; }
1536
+ .bi-pci-card::before { content: "\f6ea"; }
1537
+ .bi-router-fill::before { content: "\f6eb"; }
1538
+ .bi-router::before { content: "\f6ec"; }
1539
+ .bi-ssd-fill::before { content: "\f6ed"; }
1540
+ .bi-ssd::before { content: "\f6ee"; }
1541
+ .bi-thunderbolt-fill::before { content: "\f6ef"; }
1542
+ .bi-thunderbolt::before { content: "\f6f0"; }
1543
+ .bi-usb-drive-fill::before { content: "\f6f1"; }
1544
+ .bi-usb-drive::before { content: "\f6f2"; }
1545
+ .bi-usb-micro-fill::before { content: "\f6f3"; }
1546
+ .bi-usb-micro::before { content: "\f6f4"; }
1547
+ .bi-usb-mini-fill::before { content: "\f6f5"; }
1548
+ .bi-usb-mini::before { content: "\f6f6"; }
1549
+ .bi-cloud-haze2::before { content: "\f6f7"; }
1550
+ .bi-device-hdd-fill::before { content: "\f6f8"; }
1551
+ .bi-device-hdd::before { content: "\f6f9"; }
1552
+ .bi-device-ssd-fill::before { content: "\f6fa"; }
1553
+ .bi-device-ssd::before { content: "\f6fb"; }
1554
+ .bi-displayport-fill::before { content: "\f6fc"; }
1555
+ .bi-mortarboard-fill::before { content: "\f6fd"; }
1556
+ .bi-mortarboard::before { content: "\f6fe"; }
1557
+ .bi-terminal-x::before { content: "\f6ff"; }
1558
+ .bi-arrow-through-heart-fill::before { content: "\f700"; }
1559
+ .bi-arrow-through-heart::before { content: "\f701"; }
1560
+ .bi-badge-sd-fill::before { content: "\f702"; }
1561
+ .bi-badge-sd::before { content: "\f703"; }
1562
+ .bi-bag-heart-fill::before { content: "\f704"; }
1563
+ .bi-bag-heart::before { content: "\f705"; }
1564
+ .bi-balloon-fill::before { content: "\f706"; }
1565
+ .bi-balloon-heart-fill::before { content: "\f707"; }
1566
+ .bi-balloon-heart::before { content: "\f708"; }
1567
+ .bi-balloon::before { content: "\f709"; }
1568
+ .bi-box2-fill::before { content: "\f70a"; }
1569
+ .bi-box2-heart-fill::before { content: "\f70b"; }
1570
+ .bi-box2-heart::before { content: "\f70c"; }
1571
+ .bi-box2::before { content: "\f70d"; }
1572
+ .bi-braces-asterisk::before { content: "\f70e"; }
1573
+ .bi-calendar-heart-fill::before { content: "\f70f"; }
1574
+ .bi-calendar-heart::before { content: "\f710"; }
1575
+ .bi-calendar2-heart-fill::before { content: "\f711"; }
1576
+ .bi-calendar2-heart::before { content: "\f712"; }
1577
+ .bi-chat-heart-fill::before { content: "\f713"; }
1578
+ .bi-chat-heart::before { content: "\f714"; }
1579
+ .bi-chat-left-heart-fill::before { content: "\f715"; }
1580
+ .bi-chat-left-heart::before { content: "\f716"; }
1581
+ .bi-chat-right-heart-fill::before { content: "\f717"; }
1582
+ .bi-chat-right-heart::before { content: "\f718"; }
1583
+ .bi-chat-square-heart-fill::before { content: "\f719"; }
1584
+ .bi-chat-square-heart::before { content: "\f71a"; }
1585
+ .bi-clipboard-check-fill::before { content: "\f71b"; }
1586
+ .bi-clipboard-data-fill::before { content: "\f71c"; }
1587
+ .bi-clipboard-fill::before { content: "\f71d"; }
1588
+ .bi-clipboard-heart-fill::before { content: "\f71e"; }
1589
+ .bi-clipboard-heart::before { content: "\f71f"; }
1590
+ .bi-clipboard-minus-fill::before { content: "\f720"; }
1591
+ .bi-clipboard-plus-fill::before { content: "\f721"; }
1592
+ .bi-clipboard-pulse::before { content: "\f722"; }
1593
+ .bi-clipboard-x-fill::before { content: "\f723"; }
1594
+ .bi-clipboard2-check-fill::before { content: "\f724"; }
1595
+ .bi-clipboard2-check::before { content: "\f725"; }
1596
+ .bi-clipboard2-data-fill::before { content: "\f726"; }
1597
+ .bi-clipboard2-data::before { content: "\f727"; }
1598
+ .bi-clipboard2-fill::before { content: "\f728"; }
1599
+ .bi-clipboard2-heart-fill::before { content: "\f729"; }
1600
+ .bi-clipboard2-heart::before { content: "\f72a"; }
1601
+ .bi-clipboard2-minus-fill::before { content: "\f72b"; }
1602
+ .bi-clipboard2-minus::before { content: "\f72c"; }
1603
+ .bi-clipboard2-plus-fill::before { content: "\f72d"; }
1604
+ .bi-clipboard2-plus::before { content: "\f72e"; }
1605
+ .bi-clipboard2-pulse-fill::before { content: "\f72f"; }
1606
+ .bi-clipboard2-pulse::before { content: "\f730"; }
1607
+ .bi-clipboard2-x-fill::before { content: "\f731"; }
1608
+ .bi-clipboard2-x::before { content: "\f732"; }
1609
+ .bi-clipboard2::before { content: "\f733"; }
1610
+ .bi-emoji-kiss-fill::before { content: "\f734"; }
1611
+ .bi-emoji-kiss::before { content: "\f735"; }
1612
+ .bi-envelope-heart-fill::before { content: "\f736"; }
1613
+ .bi-envelope-heart::before { content: "\f737"; }
1614
+ .bi-envelope-open-heart-fill::before { content: "\f738"; }
1615
+ .bi-envelope-open-heart::before { content: "\f739"; }
1616
+ .bi-envelope-paper-fill::before { content: "\f73a"; }
1617
+ .bi-envelope-paper-heart-fill::before { content: "\f73b"; }
1618
+ .bi-envelope-paper-heart::before { content: "\f73c"; }
1619
+ .bi-envelope-paper::before { content: "\f73d"; }
1620
+ .bi-filetype-aac::before { content: "\f73e"; }
1621
+ .bi-filetype-ai::before { content: "\f73f"; }
1622
+ .bi-filetype-bmp::before { content: "\f740"; }
1623
+ .bi-filetype-cs::before { content: "\f741"; }
1624
+ .bi-filetype-css::before { content: "\f742"; }
1625
+ .bi-filetype-csv::before { content: "\f743"; }
1626
+ .bi-filetype-doc::before { content: "\f744"; }
1627
+ .bi-filetype-docx::before { content: "\f745"; }
1628
+ .bi-filetype-exe::before { content: "\f746"; }
1629
+ .bi-filetype-gif::before { content: "\f747"; }
1630
+ .bi-filetype-heic::before { content: "\f748"; }
1631
+ .bi-filetype-html::before { content: "\f749"; }
1632
+ .bi-filetype-java::before { content: "\f74a"; }
1633
+ .bi-filetype-jpg::before { content: "\f74b"; }
1634
+ .bi-filetype-js::before { content: "\f74c"; }
1635
+ .bi-filetype-jsx::before { content: "\f74d"; }
1636
+ .bi-filetype-key::before { content: "\f74e"; }
1637
+ .bi-filetype-m4p::before { content: "\f74f"; }
1638
+ .bi-filetype-md::before { content: "\f750"; }
1639
+ .bi-filetype-mdx::before { content: "\f751"; }
1640
+ .bi-filetype-mov::before { content: "\f752"; }
1641
+ .bi-filetype-mp3::before { content: "\f753"; }
1642
+ .bi-filetype-mp4::before { content: "\f754"; }
1643
+ .bi-filetype-otf::before { content: "\f755"; }
1644
+ .bi-filetype-pdf::before { content: "\f756"; }
1645
+ .bi-filetype-php::before { content: "\f757"; }
1646
+ .bi-filetype-png::before { content: "\f758"; }
1647
+ .bi-filetype-ppt-1::before { content: "\f759"; }
1648
+ .bi-filetype-ppt::before { content: "\f75a"; }
1649
+ .bi-filetype-psd::before { content: "\f75b"; }
1650
+ .bi-filetype-py::before { content: "\f75c"; }
1651
+ .bi-filetype-raw::before { content: "\f75d"; }
1652
+ .bi-filetype-rb::before { content: "\f75e"; }
1653
+ .bi-filetype-sass::before { content: "\f75f"; }
1654
+ .bi-filetype-scss::before { content: "\f760"; }
1655
+ .bi-filetype-sh::before { content: "\f761"; }
1656
+ .bi-filetype-svg::before { content: "\f762"; }
1657
+ .bi-filetype-tiff::before { content: "\f763"; }
1658
+ .bi-filetype-tsx::before { content: "\f764"; }
1659
+ .bi-filetype-ttf::before { content: "\f765"; }
1660
+ .bi-filetype-txt::before { content: "\f766"; }
1661
+ .bi-filetype-wav::before { content: "\f767"; }
1662
+ .bi-filetype-woff::before { content: "\f768"; }
1663
+ .bi-filetype-xls-1::before { content: "\f769"; }
1664
+ .bi-filetype-xls::before { content: "\f76a"; }
1665
+ .bi-filetype-xml::before { content: "\f76b"; }
1666
+ .bi-filetype-yml::before { content: "\f76c"; }
1667
+ .bi-heart-arrow::before { content: "\f76d"; }
1668
+ .bi-heart-pulse-fill::before { content: "\f76e"; }
1669
+ .bi-heart-pulse::before { content: "\f76f"; }
1670
+ .bi-heartbreak-fill::before { content: "\f770"; }
1671
+ .bi-heartbreak::before { content: "\f771"; }
1672
+ .bi-hearts::before { content: "\f772"; }
1673
+ .bi-hospital-fill::before { content: "\f773"; }
1674
+ .bi-hospital::before { content: "\f774"; }
1675
+ .bi-house-heart-fill::before { content: "\f775"; }
1676
+ .bi-house-heart::before { content: "\f776"; }
1677
+ .bi-incognito::before { content: "\f777"; }
1678
+ .bi-magnet-fill::before { content: "\f778"; }
1679
+ .bi-magnet::before { content: "\f779"; }
1680
+ .bi-person-heart::before { content: "\f77a"; }
1681
+ .bi-person-hearts::before { content: "\f77b"; }
1682
+ .bi-phone-flip::before { content: "\f77c"; }
1683
+ .bi-plugin::before { content: "\f77d"; }
1684
+ .bi-postage-fill::before { content: "\f77e"; }
1685
+ .bi-postage-heart-fill::before { content: "\f77f"; }
1686
+ .bi-postage-heart::before { content: "\f780"; }
1687
+ .bi-postage::before { content: "\f781"; }
1688
+ .bi-postcard-fill::before { content: "\f782"; }
1689
+ .bi-postcard-heart-fill::before { content: "\f783"; }
1690
+ .bi-postcard-heart::before { content: "\f784"; }
1691
+ .bi-postcard::before { content: "\f785"; }
1692
+ .bi-search-heart-fill::before { content: "\f786"; }
1693
+ .bi-search-heart::before { content: "\f787"; }
1694
+ .bi-sliders2-vertical::before { content: "\f788"; }
1695
+ .bi-sliders2::before { content: "\f789"; }
1696
+ .bi-trash3-fill::before { content: "\f78a"; }
1697
+ .bi-trash3::before { content: "\f78b"; }
1698
+ .bi-valentine::before { content: "\f78c"; }
1699
+ .bi-valentine2::before { content: "\f78d"; }
1700
+ .bi-wrench-adjustable-circle-fill::before { content: "\f78e"; }
1701
+ .bi-wrench-adjustable-circle::before { content: "\f78f"; }
1702
+ .bi-wrench-adjustable::before { content: "\f790"; }
1703
+ .bi-filetype-json::before { content: "\f791"; }
1704
+ .bi-filetype-pptx::before { content: "\f792"; }
1705
+ .bi-filetype-xlsx::before { content: "\f793"; }
1706
+ .bi-1-circle-1::before { content: "\f794"; }
1707
+ .bi-1-circle-fill-1::before { content: "\f795"; }
1708
+ .bi-1-circle-fill::before { content: "\f796"; }
1709
+ .bi-1-circle::before { content: "\f797"; }
1710
+ .bi-1-square-fill::before { content: "\f798"; }
1711
+ .bi-1-square::before { content: "\f799"; }
1712
+ .bi-2-circle-1::before { content: "\f79a"; }
1713
+ .bi-2-circle-fill-1::before { content: "\f79b"; }
1714
+ .bi-2-circle-fill::before { content: "\f79c"; }
1715
+ .bi-2-circle::before { content: "\f79d"; }
1716
+ .bi-2-square-fill::before { content: "\f79e"; }
1717
+ .bi-2-square::before { content: "\f79f"; }
1718
+ .bi-3-circle-1::before { content: "\f7a0"; }
1719
+ .bi-3-circle-fill-1::before { content: "\f7a1"; }
1720
+ .bi-3-circle-fill::before { content: "\f7a2"; }
1721
+ .bi-3-circle::before { content: "\f7a3"; }
1722
+ .bi-3-square-fill::before { content: "\f7a4"; }
1723
+ .bi-3-square::before { content: "\f7a5"; }
1724
+ .bi-4-circle-1::before { content: "\f7a6"; }
1725
+ .bi-4-circle-fill-1::before { content: "\f7a7"; }
1726
+ .bi-4-circle-fill::before { content: "\f7a8"; }
1727
+ .bi-4-circle::before { content: "\f7a9"; }
1728
+ .bi-4-square-fill::before { content: "\f7aa"; }
1729
+ .bi-4-square::before { content: "\f7ab"; }
1730
+ .bi-5-circle-1::before { content: "\f7ac"; }
1731
+ .bi-5-circle-fill-1::before { content: "\f7ad"; }
1732
+ .bi-5-circle-fill::before { content: "\f7ae"; }
1733
+ .bi-5-circle::before { content: "\f7af"; }
1734
+ .bi-5-square-fill::before { content: "\f7b0"; }
1735
+ .bi-5-square::before { content: "\f7b1"; }
1736
+ .bi-6-circle-1::before { content: "\f7b2"; }
1737
+ .bi-6-circle-fill-1::before { content: "\f7b3"; }
1738
+ .bi-6-circle-fill::before { content: "\f7b4"; }
1739
+ .bi-6-circle::before { content: "\f7b5"; }
1740
+ .bi-6-square-fill::before { content: "\f7b6"; }
1741
+ .bi-6-square::before { content: "\f7b7"; }
1742
+ .bi-7-circle-1::before { content: "\f7b8"; }
1743
+ .bi-7-circle-fill-1::before { content: "\f7b9"; }
1744
+ .bi-7-circle-fill::before { content: "\f7ba"; }
1745
+ .bi-7-circle::before { content: "\f7bb"; }
1746
+ .bi-7-square-fill::before { content: "\f7bc"; }
1747
+ .bi-7-square::before { content: "\f7bd"; }
1748
+ .bi-8-circle-1::before { content: "\f7be"; }
1749
+ .bi-8-circle-fill-1::before { content: "\f7bf"; }
1750
+ .bi-8-circle-fill::before { content: "\f7c0"; }
1751
+ .bi-8-circle::before { content: "\f7c1"; }
1752
+ .bi-8-square-fill::before { content: "\f7c2"; }
1753
+ .bi-8-square::before { content: "\f7c3"; }
1754
+ .bi-9-circle-1::before { content: "\f7c4"; }
1755
+ .bi-9-circle-fill-1::before { content: "\f7c5"; }
1756
+ .bi-9-circle-fill::before { content: "\f7c6"; }
1757
+ .bi-9-circle::before { content: "\f7c7"; }
1758
+ .bi-9-square-fill::before { content: "\f7c8"; }
1759
+ .bi-9-square::before { content: "\f7c9"; }
1760
+ .bi-airplane-engines-fill::before { content: "\f7ca"; }
1761
+ .bi-airplane-engines::before { content: "\f7cb"; }
1762
+ .bi-airplane-fill::before { content: "\f7cc"; }
1763
+ .bi-airplane::before { content: "\f7cd"; }
1764
+ .bi-alexa::before { content: "\f7ce"; }
1765
+ .bi-alipay::before { content: "\f7cf"; }
1766
+ .bi-android::before { content: "\f7d0"; }
1767
+ .bi-android2::before { content: "\f7d1"; }
1768
+ .bi-box-fill::before { content: "\f7d2"; }
1769
+ .bi-box-seam-fill::before { content: "\f7d3"; }
1770
+ .bi-browser-chrome::before { content: "\f7d4"; }
1771
+ .bi-browser-edge::before { content: "\f7d5"; }
1772
+ .bi-browser-firefox::before { content: "\f7d6"; }
1773
+ .bi-browser-safari::before { content: "\f7d7"; }
1774
+ .bi-c-circle-1::before { content: "\f7d8"; }
1775
+ .bi-c-circle-fill-1::before { content: "\f7d9"; }
1776
+ .bi-c-circle-fill::before { content: "\f7da"; }
1777
+ .bi-c-circle::before { content: "\f7db"; }
1778
+ .bi-c-square-fill::before { content: "\f7dc"; }
1779
+ .bi-c-square::before { content: "\f7dd"; }
1780
+ .bi-capsule-pill::before { content: "\f7de"; }
1781
+ .bi-capsule::before { content: "\f7df"; }
1782
+ .bi-car-front-fill::before { content: "\f7e0"; }
1783
+ .bi-car-front::before { content: "\f7e1"; }
1784
+ .bi-cassette-fill::before { content: "\f7e2"; }
1785
+ .bi-cassette::before { content: "\f7e3"; }
1786
+ .bi-cc-circle-1::before { content: "\f7e4"; }
1787
+ .bi-cc-circle-fill-1::before { content: "\f7e5"; }
1788
+ .bi-cc-circle-fill::before { content: "\f7e6"; }
1789
+ .bi-cc-circle::before { content: "\f7e7"; }
1790
+ .bi-cc-square-fill::before { content: "\f7e8"; }
1791
+ .bi-cc-square::before { content: "\f7e9"; }
1792
+ .bi-cup-hot-fill::before { content: "\f7ea"; }
1793
+ .bi-cup-hot::before { content: "\f7eb"; }
1794
+ .bi-currency-rupee::before { content: "\f7ec"; }
1795
+ .bi-dropbox::before { content: "\f7ed"; }
1796
+ .bi-escape::before { content: "\f7ee"; }
1797
+ .bi-fast-forward-btn-fill::before { content: "\f7ef"; }
1798
+ .bi-fast-forward-btn::before { content: "\f7f0"; }
1799
+ .bi-fast-forward-circle-fill::before { content: "\f7f1"; }
1800
+ .bi-fast-forward-circle::before { content: "\f7f2"; }
1801
+ .bi-fast-forward-fill::before { content: "\f7f3"; }
1802
+ .bi-fast-forward::before { content: "\f7f4"; }
1803
+ .bi-filetype-sql::before { content: "\f7f5"; }
1804
+ .bi-fire::before { content: "\f7f6"; }
1805
+ .bi-google-play::before { content: "\f7f7"; }
1806
+ .bi-h-circle-1::before { content: "\f7f8"; }
1807
+ .bi-h-circle-fill-1::before { content: "\f7f9"; }
1808
+ .bi-h-circle-fill::before { content: "\f7fa"; }
1809
+ .bi-h-circle::before { content: "\f7fb"; }
1810
+ .bi-h-square-fill::before { content: "\f7fc"; }
1811
+ .bi-h-square::before { content: "\f7fd"; }
1812
+ .bi-indent::before { content: "\f7fe"; }
1813
+ .bi-lungs-fill::before { content: "\f7ff"; }
1814
+ .bi-lungs::before { content: "\f800"; }
1815
+ .bi-microsoft-teams::before { content: "\f801"; }
1816
+ .bi-p-circle-1::before { content: "\f802"; }
1817
+ .bi-p-circle-fill-1::before { content: "\f803"; }
1818
+ .bi-p-circle-fill::before { content: "\f804"; }
1819
+ .bi-p-circle::before { content: "\f805"; }
1820
+ .bi-p-square-fill::before { content: "\f806"; }
1821
+ .bi-p-square::before { content: "\f807"; }
1822
+ .bi-pass-fill::before { content: "\f808"; }
1823
+ .bi-pass::before { content: "\f809"; }
1824
+ .bi-prescription::before { content: "\f80a"; }
1825
+ .bi-prescription2::before { content: "\f80b"; }
1826
+ .bi-r-circle-1::before { content: "\f80c"; }
1827
+ .bi-r-circle-fill-1::before { content: "\f80d"; }
1828
+ .bi-r-circle-fill::before { content: "\f80e"; }
1829
+ .bi-r-circle::before { content: "\f80f"; }
1830
+ .bi-r-square-fill::before { content: "\f810"; }
1831
+ .bi-r-square::before { content: "\f811"; }
1832
+ .bi-repeat-1::before { content: "\f812"; }
1833
+ .bi-repeat::before { content: "\f813"; }
1834
+ .bi-rewind-btn-fill::before { content: "\f814"; }
1835
+ .bi-rewind-btn::before { content: "\f815"; }
1836
+ .bi-rewind-circle-fill::before { content: "\f816"; }
1837
+ .bi-rewind-circle::before { content: "\f817"; }
1838
+ .bi-rewind-fill::before { content: "\f818"; }
1839
+ .bi-rewind::before { content: "\f819"; }
1840
+ .bi-train-freight-front-fill::before { content: "\f81a"; }
1841
+ .bi-train-freight-front::before { content: "\f81b"; }
1842
+ .bi-train-front-fill::before { content: "\f81c"; }
1843
+ .bi-train-front::before { content: "\f81d"; }
1844
+ .bi-train-lightrail-front-fill::before { content: "\f81e"; }
1845
+ .bi-train-lightrail-front::before { content: "\f81f"; }
1846
+ .bi-truck-front-fill::before { content: "\f820"; }
1847
+ .bi-truck-front::before { content: "\f821"; }
1848
+ .bi-ubuntu::before { content: "\f822"; }
1849
+ .bi-unindent::before { content: "\f823"; }
1850
+ .bi-unity::before { content: "\f824"; }
1851
+ .bi-universal-access-circle::before { content: "\f825"; }
1852
+ .bi-universal-access::before { content: "\f826"; }
1853
+ .bi-virus::before { content: "\f827"; }
1854
+ .bi-virus2::before { content: "\f828"; }
1855
+ .bi-wechat::before { content: "\f829"; }
1856
+ .bi-yelp::before { content: "\f82a"; }
1857
+ .bi-sign-stop-fill::before { content: "\f82b"; }
1858
+ .bi-sign-stop-lights-fill::before { content: "\f82c"; }
1859
+ .bi-sign-stop-lights::before { content: "\f82d"; }
1860
+ .bi-sign-stop::before { content: "\f82e"; }
1861
+ .bi-sign-turn-left-fill::before { content: "\f82f"; }
1862
+ .bi-sign-turn-left::before { content: "\f830"; }
1863
+ .bi-sign-turn-right-fill::before { content: "\f831"; }
1864
+ .bi-sign-turn-right::before { content: "\f832"; }
1865
+ .bi-sign-turn-slight-left-fill::before { content: "\f833"; }
1866
+ .bi-sign-turn-slight-left::before { content: "\f834"; }
1867
+ .bi-sign-turn-slight-right-fill::before { content: "\f835"; }
1868
+ .bi-sign-turn-slight-right::before { content: "\f836"; }
1869
+ .bi-sign-yield-fill::before { content: "\f837"; }
1870
+ .bi-sign-yield::before { content: "\f838"; }
1871
+ .bi-ev-station-fill::before { content: "\f839"; }
1872
+ .bi-ev-station::before { content: "\f83a"; }
1873
+ .bi-fuel-pump-diesel-fill::before { content: "\f83b"; }
1874
+ .bi-fuel-pump-diesel::before { content: "\f83c"; }
1875
+ .bi-fuel-pump-fill::before { content: "\f83d"; }
1876
+ .bi-fuel-pump::before { content: "\f83e"; }
1877
+ .bi-0-circle-fill::before { content: "\f83f"; }
1878
+ .bi-0-circle::before { content: "\f840"; }
1879
+ .bi-0-square-fill::before { content: "\f841"; }
1880
+ .bi-0-square::before { content: "\f842"; }
1881
+ .bi-rocket-fill::before { content: "\f843"; }
1882
+ .bi-rocket-takeoff-fill::before { content: "\f844"; }
1883
+ .bi-rocket-takeoff::before { content: "\f845"; }
1884
+ .bi-rocket::before { content: "\f846"; }
1885
+ .bi-stripe::before { content: "\f847"; }
1886
+ .bi-subscript::before { content: "\f848"; }
1887
+ .bi-superscript::before { content: "\f849"; }
1888
+ .bi-trello::before { content: "\f84a"; }
1889
+ .bi-envelope-at-fill::before { content: "\f84b"; }
1890
+ .bi-envelope-at::before { content: "\f84c"; }
1891
+ .bi-regex::before { content: "\f84d"; }
1892
+ .bi-text-wrap::before { content: "\f84e"; }
1893
+ .bi-sign-dead-end-fill::before { content: "\f84f"; }
1894
+ .bi-sign-dead-end::before { content: "\f850"; }
1895
+ .bi-sign-do-not-enter-fill::before { content: "\f851"; }
1896
+ .bi-sign-do-not-enter::before { content: "\f852"; }
1897
+ .bi-sign-intersection-fill::before { content: "\f853"; }
1898
+ .bi-sign-intersection-side-fill::before { content: "\f854"; }
1899
+ .bi-sign-intersection-side::before { content: "\f855"; }
1900
+ .bi-sign-intersection-t-fill::before { content: "\f856"; }
1901
+ .bi-sign-intersection-t::before { content: "\f857"; }
1902
+ .bi-sign-intersection-y-fill::before { content: "\f858"; }
1903
+ .bi-sign-intersection-y::before { content: "\f859"; }
1904
+ .bi-sign-intersection::before { content: "\f85a"; }
1905
+ .bi-sign-merge-left-fill::before { content: "\f85b"; }
1906
+ .bi-sign-merge-left::before { content: "\f85c"; }
1907
+ .bi-sign-merge-right-fill::before { content: "\f85d"; }
1908
+ .bi-sign-merge-right::before { content: "\f85e"; }
1909
+ .bi-sign-no-left-turn-fill::before { content: "\f85f"; }
1910
+ .bi-sign-no-left-turn::before { content: "\f860"; }
1911
+ .bi-sign-no-parking-fill::before { content: "\f861"; }
1912
+ .bi-sign-no-parking::before { content: "\f862"; }
1913
+ .bi-sign-no-right-turn-fill::before { content: "\f863"; }
1914
+ .bi-sign-no-right-turn::before { content: "\f864"; }
1915
+ .bi-sign-railroad-fill::before { content: "\f865"; }
1916
+ .bi-sign-railroad::before { content: "\f866"; }
1917
+ .bi-building-add::before { content: "\f867"; }
1918
+ .bi-building-check::before { content: "\f868"; }
1919
+ .bi-building-dash::before { content: "\f869"; }
1920
+ .bi-building-down::before { content: "\f86a"; }
1921
+ .bi-building-exclamation::before { content: "\f86b"; }
1922
+ .bi-building-fill-add::before { content: "\f86c"; }
1923
+ .bi-building-fill-check::before { content: "\f86d"; }
1924
+ .bi-building-fill-dash::before { content: "\f86e"; }
1925
+ .bi-building-fill-down::before { content: "\f86f"; }
1926
+ .bi-building-fill-exclamation::before { content: "\f870"; }
1927
+ .bi-building-fill-gear::before { content: "\f871"; }
1928
+ .bi-building-fill-lock::before { content: "\f872"; }
1929
+ .bi-building-fill-slash::before { content: "\f873"; }
1930
+ .bi-building-fill-up::before { content: "\f874"; }
1931
+ .bi-building-fill-x::before { content: "\f875"; }
1932
+ .bi-building-fill::before { content: "\f876"; }
1933
+ .bi-building-gear::before { content: "\f877"; }
1934
+ .bi-building-lock::before { content: "\f878"; }
1935
+ .bi-building-slash::before { content: "\f879"; }
1936
+ .bi-building-up::before { content: "\f87a"; }
1937
+ .bi-building-x::before { content: "\f87b"; }
1938
+ .bi-buildings-fill::before { content: "\f87c"; }
1939
+ .bi-buildings::before { content: "\f87d"; }
1940
+ .bi-bus-front-fill::before { content: "\f87e"; }
1941
+ .bi-bus-front::before { content: "\f87f"; }
1942
+ .bi-ev-front-fill::before { content: "\f880"; }
1943
+ .bi-ev-front::before { content: "\f881"; }
1944
+ .bi-globe-americas::before { content: "\f882"; }
1945
+ .bi-globe-asia-australia::before { content: "\f883"; }
1946
+ .bi-globe-central-south-asia::before { content: "\f884"; }
1947
+ .bi-globe-europe-africa::before { content: "\f885"; }
1948
+ .bi-house-add-fill::before { content: "\f886"; }
1949
+ .bi-house-add::before { content: "\f887"; }
1950
+ .bi-house-check-fill::before { content: "\f888"; }
1951
+ .bi-house-check::before { content: "\f889"; }
1952
+ .bi-house-dash-fill::before { content: "\f88a"; }
1953
+ .bi-house-dash::before { content: "\f88b"; }
1954
+ .bi-house-down-fill::before { content: "\f88c"; }
1955
+ .bi-house-down::before { content: "\f88d"; }
1956
+ .bi-house-exclamation-fill::before { content: "\f88e"; }
1957
+ .bi-house-exclamation::before { content: "\f88f"; }
1958
+ .bi-house-gear-fill::before { content: "\f890"; }
1959
+ .bi-house-gear::before { content: "\f891"; }
1960
+ .bi-house-lock-fill::before { content: "\f892"; }
1961
+ .bi-house-lock::before { content: "\f893"; }
1962
+ .bi-house-slash-fill::before { content: "\f894"; }
1963
+ .bi-house-slash::before { content: "\f895"; }
1964
+ .bi-house-up-fill::before { content: "\f896"; }
1965
+ .bi-house-up::before { content: "\f897"; }
1966
+ .bi-house-x-fill::before { content: "\f898"; }
1967
+ .bi-house-x::before { content: "\f899"; }
1968
+ .bi-person-add::before { content: "\f89a"; }
1969
+ .bi-person-down::before { content: "\f89b"; }
1970
+ .bi-person-exclamation::before { content: "\f89c"; }
1971
+ .bi-person-fill-add::before { content: "\f89d"; }
1972
+ .bi-person-fill-check::before { content: "\f89e"; }
1973
+ .bi-person-fill-dash::before { content: "\f89f"; }
1974
+ .bi-person-fill-down::before { content: "\f8a0"; }
1975
+ .bi-person-fill-exclamation::before { content: "\f8a1"; }
1976
+ .bi-person-fill-gear::before { content: "\f8a2"; }
1977
+ .bi-person-fill-lock::before { content: "\f8a3"; }
1978
+ .bi-person-fill-slash::before { content: "\f8a4"; }
1979
+ .bi-person-fill-up::before { content: "\f8a5"; }
1980
+ .bi-person-fill-x::before { content: "\f8a6"; }
1981
+ .bi-person-gear::before { content: "\f8a7"; }
1982
+ .bi-person-lock::before { content: "\f8a8"; }
1983
+ .bi-person-slash::before { content: "\f8a9"; }
1984
+ .bi-person-up::before { content: "\f8aa"; }
1985
+ .bi-scooter::before { content: "\f8ab"; }
1986
+ .bi-taxi-front-fill::before { content: "\f8ac"; }
1987
+ .bi-taxi-front::before { content: "\f8ad"; }
1988
+ .bi-amd::before { content: "\f8ae"; }
1989
+ .bi-database-add::before { content: "\f8af"; }
1990
+ .bi-database-check::before { content: "\f8b0"; }
1991
+ .bi-database-dash::before { content: "\f8b1"; }
1992
+ .bi-database-down::before { content: "\f8b2"; }
1993
+ .bi-database-exclamation::before { content: "\f8b3"; }
1994
+ .bi-database-fill-add::before { content: "\f8b4"; }
1995
+ .bi-database-fill-check::before { content: "\f8b5"; }
1996
+ .bi-database-fill-dash::before { content: "\f8b6"; }
1997
+ .bi-database-fill-down::before { content: "\f8b7"; }
1998
+ .bi-database-fill-exclamation::before { content: "\f8b8"; }
1999
+ .bi-database-fill-gear::before { content: "\f8b9"; }
2000
+ .bi-database-fill-lock::before { content: "\f8ba"; }
2001
+ .bi-database-fill-slash::before { content: "\f8bb"; }
2002
+ .bi-database-fill-up::before { content: "\f8bc"; }
2003
+ .bi-database-fill-x::before { content: "\f8bd"; }
2004
+ .bi-database-fill::before { content: "\f8be"; }
2005
+ .bi-database-gear::before { content: "\f8bf"; }
2006
+ .bi-database-lock::before { content: "\f8c0"; }
2007
+ .bi-database-slash::before { content: "\f8c1"; }
2008
+ .bi-database-up::before { content: "\f8c2"; }
2009
+ .bi-database-x::before { content: "\f8c3"; }
2010
+ .bi-database::before { content: "\f8c4"; }
2011
+ .bi-houses-fill::before { content: "\f8c5"; }
2012
+ .bi-houses::before { content: "\f8c6"; }
2013
+ .bi-nvidia::before { content: "\f8c7"; }
2014
+ .bi-person-vcard-fill::before { content: "\f8c8"; }
2015
+ .bi-person-vcard::before { content: "\f8c9"; }
2016
+ .bi-sina-weibo::before { content: "\f8ca"; }
2017
+ .bi-tencent-qq::before { content: "\f8cb"; }
2018
+ .bi-wikipedia::before { content: "\f8cc"; }
_proc/_docs/site_libs/bootstrap/bootstrap-icons.woff ADDED
Binary file (164 kB). View file
 
_proc/_docs/site_libs/bootstrap/bootstrap.min.css ADDED
The diff for this file is too large to render. See raw diff
 
_proc/_docs/site_libs/bootstrap/bootstrap.min.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Bootstrap v5.1.3 (https://getbootstrap.com/)
3
+ * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
+ */
6
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t="transitionend",e=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},i=t=>{const i=e(t);return i&&document.querySelector(i)?i:null},n=t=>{const i=e(t);return i?document.querySelector(i):null},s=e=>{e.dispatchEvent(new Event(t))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),r=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,a=(t,e,i)=>{Object.keys(i).forEach((n=>{const s=i[n],r=e[n],a=r&&o(r)?"element":null==(l=r)?`${l}`:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(s).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`)}))},l=t=>!(!o(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),c=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),h=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?h(t.parentNode):null},d=()=>{},u=t=>{t.offsetHeight},f=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},p=[],m=()=>"rtl"===document.documentElement.dir,g=t=>{var e;e=()=>{const e=f();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?(p.length||document.addEventListener("DOMContentLoaded",(()=>{p.forEach((t=>t()))})),p.push(e)):e()},_=t=>{"function"==typeof t&&t()},b=(e,i,n=!0)=>{if(!n)return void _(e);const o=(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})(i)+5;let r=!1;const a=({target:n})=>{n===i&&(r=!0,i.removeEventListener(t,a),_(e))};i.addEventListener(t,a),setTimeout((()=>{r||s(i)}),o)},v=(t,e,i,n)=>{let s=t.indexOf(e);if(-1===s)return t[!i&&n?t.length-1:0];const o=t.length;return s+=i?1:-1,n&&(s=(s+o)%o),t[Math.max(0,Math.min(s,o-1))]},y=/[^.]*(?=\..*)\.|.*/,w=/\..*/,E=/::\d+$/,A={};let T=1;const O={mouseenter:"mouseover",mouseleave:"mouseout"},C=/^(mouseenter|mouseleave)/i,k=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 L(t,e){return e&&`${e}::${T++}`||t.uidEvent||T++}function x(t){const e=L(t);return t.uidEvent=e,A[e]=A[e]||{},A[e]}function D(t,e,i=null){const n=Object.keys(t);for(let s=0,o=n.length;s<o;s++){const o=t[n[s]];if(o.originalHandler===e&&o.delegationSelector===i)return o}return null}function S(t,e,i){const n="string"==typeof e,s=n?i:e;let o=P(t);return k.has(o)||(o=t),[n,s,o]}function N(t,e,i,n,s){if("string"!=typeof e||!t)return;if(i||(i=n,n=null),C.test(e)){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};n?n=t(n):i=t(i)}const[o,r,a]=S(e,i,n),l=x(t),c=l[a]||(l[a]={}),h=D(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=L(r,e.replace(y,"")),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(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,n.oneOff&&j.off(t,s.type,e,i),i.apply(r,[s]);return null}}(t,i,n):function(t,e){return function i(n){return n.delegateTarget=t,i.oneOff&&j.off(t,n.type,e),e.apply(t,[n])}}(t,i);u.delegationSelector=o?i:null,u.originalHandler=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function I(t,e,i,n,s){const o=D(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function P(t){return t=t.replace(w,""),O[t]||t}const j={on(t,e,i,n){N(t,e,i,n,!1)},one(t,e,i,n){N(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=S(e,i,n),a=r!==e,l=x(t),c=e.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void I(t,l,r,o,s?i:null)}c&&Object.keys(l).forEach((i=>{!function(t,e,i,n){const s=e[i]||{};Object.keys(s).forEach((o=>{if(o.includes(n)){const n=s[o];I(t,e,i,n.originalHandler,n.delegationSelector)}}))}(t,l,i,e.slice(1))}));const h=l[r]||{};Object.keys(h).forEach((i=>{const n=i.replace(E,"");if(!a||e.includes(n)){const e=h[i];I(t,l,r,e.originalHandler,e.delegationSelector)}}))},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=f(),s=P(e),o=e!==s,r=k.has(s);let a,l=!0,c=!0,h=!1,d=null;return o&&n&&(a=n.Event(e,i),n(t).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),h=a.isDefaultPrevented()),r?(d=document.createEvent("HTMLEvents"),d.initEvent(s,l,!0)):d=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==i&&Object.keys(i).forEach((t=>{Object.defineProperty(d,t,{get:()=>i[t]})})),h&&d.preventDefault(),c&&t.dispatchEvent(d),d.defaultPrevented&&void 0!==a&&a.preventDefault(),d}},M=new Map,H={set(t,e,i){M.has(t)||M.set(t,new Map);const n=M.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>M.has(t)&&M.get(t).get(e)||null,remove(t,e){if(!M.has(t))return;const i=M.get(t);i.delete(e),0===i.size&&M.delete(t)}};class B{constructor(t){(t=r(t))&&(this._element=t,H.set(this._element,this.constructor.DATA_KEY,this))}dispose(){H.remove(this._element,this.constructor.DATA_KEY),j.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((t=>{this[t]=null}))}_queueCallback(t,e,i=!0){b(t,e,i)}static getInstance(t){return H.get(r(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.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const R=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;j.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),c(this))return;const o=n(this)||this.closest(`.${s}`);t.getOrCreateInstance(o)[e]()}))};class W extends B{static get NAME(){return"alert"}close(){if(j.trigger(this._element,"close.bs.alert").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(),j.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=W.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)}}))}}R(W,"close"),g(W);const $='[data-bs-toggle="button"]';class z extends B{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=z.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}function q(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function F(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}j.on(document,"click.bs.button.data-api",$,(t=>{t.preventDefault();const e=t.target.closest($);z.getOrCreateInstance(e).toggle()})),g(z);const U={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${F(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${F(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter((t=>t.startsWith("bs"))).forEach((i=>{let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=q(t.dataset[i])})),e},getDataAttribute:(t,e)=>q(t.getAttribute(`data-bs-${F(e)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},V={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;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(e)&&i.push(n),n=n.parentNode;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=>!c(t)&&l(t)))}},K="carousel",X={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Y={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Q="next",G="prev",Z="left",J="right",tt={ArrowLeft:J,ArrowRight:Z},et="slid.bs.carousel",it="active",nt=".active.carousel-item";class st extends B{constructor(t,e){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=V.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return X}static get NAME(){return K}next(){this._slide(Q)}nextWhenVisible(){!document.hidden&&l(this._element)&&this.next()}prev(){this._slide(G)}pause(t){t||(this._isPaused=!0),V.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(s(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=V.findOne(nt,this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void j.one(this._element,et,(()=>this.to(t)));if(e===t)return this.pause(),void this.cycle();const i=t>e?Q:G;this._slide(i,this._items[t])}_getConfig(t){return t={...X,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}},a(K,t,Y),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?J:Z)}_addEventListeners(){this._config.keyboard&&j.on(this._element,"keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&(j.on(this._element,"mouseenter.bs.carousel",(t=>this.pause(t))),j.on(this._element,"mouseleave.bs.carousel",(t=>this.cycle(t)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>this._pointerEvent&&("pen"===t.pointerType||"touch"===t.pointerType),e=e=>{t(e)?this.touchStartX=e.clientX:this._pointerEvent||(this.touchStartX=e.touches[0].clientX)},i=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},n=e=>{t(e)&&(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((t=>this.cycle(t)),500+this._config.interval))};V.find(".carousel-item img",this._element).forEach((t=>{j.on(t,"dragstart.bs.carousel",(t=>t.preventDefault()))})),this._pointerEvent?(j.on(this._element,"pointerdown.bs.carousel",(t=>e(t))),j.on(this._element,"pointerup.bs.carousel",(t=>n(t))),this._element.classList.add("pointer-event")):(j.on(this._element,"touchstart.bs.carousel",(t=>e(t))),j.on(this._element,"touchmove.bs.carousel",(t=>i(t))),j.on(this._element,"touchend.bs.carousel",(t=>n(t))))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=tt[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?V.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const i=t===Q;return v(this._items,e,i,this._config.wrap)}_triggerSlideEvent(t,e){const i=this._getItemIndex(t),n=this._getItemIndex(V.findOne(nt,this._element));return j.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:n,to:i})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=V.findOne(".active",this._indicatorsElement);e.classList.remove(it),e.removeAttribute("aria-current");const i=V.find("[data-bs-target]",this._indicatorsElement);for(let e=0;e<i.length;e++)if(Number.parseInt(i[e].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){i[e].classList.add(it),i[e].setAttribute("aria-current","true");break}}}_updateInterval(){const t=this._activeElement||V.findOne(nt,this._element);if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){const i=this._directionToOrder(t),n=V.findOne(nt,this._element),s=this._getItemIndex(n),o=e||this._getItemByOrder(i,n),r=this._getItemIndex(o),a=Boolean(this._interval),l=i===Q,c=l?"carousel-item-start":"carousel-item-end",h=l?"carousel-item-next":"carousel-item-prev",d=this._orderToDirection(i);if(o&&o.classList.contains(it))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(o,d).defaultPrevented)return;if(!n||!o)return;this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(o),this._activeElement=o;const f=()=>{j.trigger(this._element,et,{relatedTarget:o,direction:d,from:s,to:r})};if(this._element.classList.contains("slide")){o.classList.add(h),u(o),n.classList.add(c),o.classList.add(c);const t=()=>{o.classList.remove(c,h),o.classList.add(it),n.classList.remove(it,h,c),this._isSliding=!1,setTimeout(f,0)};this._queueCallback(t,n,!0)}else n.classList.remove(it),o.classList.add(it),this._isSliding=!1,f();a&&this.cycle()}_directionToOrder(t){return[J,Z].includes(t)?m()?t===Z?G:Q:t===Z?Q:G:t}_orderToDirection(t){return[Q,G].includes(t)?m()?t===G?Z:J:t===G?J:Z:t}static carouselInterface(t,e){const i=st.getOrCreateInstance(t,e);let{_config:n}=i;"object"==typeof e&&(n={...n,...e});const s="string"==typeof e?e:n.slide;if("number"==typeof e)i.to(e);else if("string"==typeof s){if(void 0===i[s])throw new TypeError(`No method named "${s}"`);i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}static jQueryInterface(t){return this.each((function(){st.carouselInterface(this,t)}))}static dataApiClickHandler(t){const e=n(this);if(!e||!e.classList.contains("carousel"))return;const i={...U.getDataAttributes(e),...U.getDataAttributes(this)},s=this.getAttribute("data-bs-slide-to");s&&(i.interval=!1),st.carouselInterface(e,i),s&&st.getInstance(e).to(s),t.preventDefault()}}j.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",st.dataApiClickHandler),j.on(window,"load.bs.carousel.data-api",(()=>{const t=V.find('[data-bs-ride="carousel"]');for(let e=0,i=t.length;e<i;e++)st.carouselInterface(t[e],st.getInstance(t[e]))})),g(st);const ot="collapse",rt={toggle:!0,parent:null},at={toggle:"boolean",parent:"(null|element)"},lt="show",ct="collapse",ht="collapsing",dt="collapsed",ut=":scope .collapse .collapse",ft='[data-bs-toggle="collapse"]';class pt extends B{constructor(t,e){super(t),this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=[];const n=V.find(ft);for(let t=0,e=n.length;t<e;t++){const e=n[t],s=i(e),o=V.find(s).filter((t=>t===this._element));null!==s&&o.length&&(this._selector=s,this._triggerArray.push(e))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return rt}static get NAME(){return ot}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t,e=[];if(this._config.parent){const t=V.find(ut,this._config.parent);e=V.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((e=>!t.includes(e)))}const i=V.findOne(this._selector);if(e.length){const n=e.find((t=>i!==t));if(t=n?pt.getInstance(n):null,t&&t._isTransitioning)return}if(j.trigger(this._element,"show.bs.collapse").defaultPrevented)return;e.forEach((e=>{i!==e&&pt.getOrCreateInstance(e,{toggle:!1}).hide(),t||H.set(e,"bs.collapse",null)}));const n=this._getDimension();this._element.classList.remove(ct),this._element.classList.add(ht),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ht),this._element.classList.add(ct,lt),this._element.style[n]="",j.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[n]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(j.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,u(this._element),this._element.classList.add(ht),this._element.classList.remove(ct,lt);const e=this._triggerArray.length;for(let t=0;t<e;t++){const e=this._triggerArray[t],i=n(e);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ht),this._element.classList.add(ct),j.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(lt)}_getConfig(t){return(t={...rt,...U.getDataAttributes(this._element),...t}).toggle=Boolean(t.toggle),t.parent=r(t.parent),a(ot,t,at),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=V.find(ut,this._config.parent);V.find(ft,this._config.parent).filter((e=>!t.includes(e))).forEach((t=>{const e=n(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}))}_addAriaAndCollapsedClass(t,e){t.length&&t.forEach((t=>{e?t.classList.remove(dt):t.classList.add(dt),t.setAttribute("aria-expanded",e)}))}static jQueryInterface(t){return this.each((function(){const e={};"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1);const i=pt.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}j.on(document,"click.bs.collapse.data-api",ft,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=i(this);V.find(e).forEach((t=>{pt.getOrCreateInstance(t,{toggle:!1}).toggle()}))})),g(pt);var mt="top",gt="bottom",_t="right",bt="left",vt="auto",yt=[mt,gt,_t,bt],wt="start",Et="end",At="clippingParents",Tt="viewport",Ot="popper",Ct="reference",kt=yt.reduce((function(t,e){return t.concat([e+"-"+wt,e+"-"+Et])}),[]),Lt=[].concat(yt,[vt]).reduce((function(t,e){return t.concat([e,e+"-"+wt,e+"-"+Et])}),[]),xt="beforeRead",Dt="read",St="afterRead",Nt="beforeMain",It="main",Pt="afterMain",jt="beforeWrite",Mt="write",Ht="afterWrite",Bt=[xt,Dt,St,Nt,It,Pt,jt,Mt,Ht];function Rt(t){return t?(t.nodeName||"").toLowerCase():null}function Wt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function $t(t){return t instanceof Wt(t).Element||t instanceof Element}function zt(t){return t instanceof Wt(t).HTMLElement||t instanceof HTMLElement}function qt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Wt(t).ShadowRoot||t instanceof ShadowRoot)}const Ft={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];zt(s)&&Rt(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}),{});zt(n)&&Rt(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function Ut(t){return t.split("-")[0]}function Vt(t,e){var i=t.getBoundingClientRect();return{width:i.width/1,height:i.height/1,top:i.top/1,right:i.right/1,bottom:i.bottom/1,left:i.left/1,x:i.left/1,y:i.top/1}}function Kt(t){var e=Vt(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 Xt(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&qt(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Yt(t){return Wt(t).getComputedStyle(t)}function Qt(t){return["table","td","th"].indexOf(Rt(t))>=0}function Gt(t){return(($t(t)?t.ownerDocument:t.document)||window.document).documentElement}function Zt(t){return"html"===Rt(t)?t:t.assignedSlot||t.parentNode||(qt(t)?t.host:null)||Gt(t)}function Jt(t){return zt(t)&&"fixed"!==Yt(t).position?t.offsetParent:null}function te(t){for(var e=Wt(t),i=Jt(t);i&&Qt(i)&&"static"===Yt(i).position;)i=Jt(i);return i&&("html"===Rt(i)||"body"===Rt(i)&&"static"===Yt(i).position)?e:i||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&zt(t)&&"fixed"===Yt(t).position)return null;for(var i=Zt(t);zt(i)&&["html","body"].indexOf(Rt(i))<0;){var n=Yt(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 ee(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var ie=Math.max,ne=Math.min,se=Math.round;function oe(t,e,i){return ie(t,ne(e,i))}function re(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function ae(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const le={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=Ut(i.placement),l=ee(a),c=[bt,_t].indexOf(a)>=0?"height":"width";if(o&&r){var h=function(t,e){return re("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:ae(t,yt))}(s.padding,i),d=Kt(o),u="y"===l?mt:bt,f="y"===l?gt:_t,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],g=te(o),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=p/2-m/2,v=h[u],y=_-d[c]-h[f],w=_/2-d[c]/2+b,E=oe(v,w,y),A=l;i.modifiersData[n]=((e={})[A]=E,e.centerOffset=E-w,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)))&&Xt(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ce(t){return t.split("-")[1]}var he={top:"auto",right:"auto",bottom:"auto",left:"auto"};function de(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,d=!0===h?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:se(se(e*n)/n)||0,y:se(se(i*n)/n)||0}}(r):"function"==typeof h?h(r):r,u=d.x,f=void 0===u?0:u,p=d.y,m=void 0===p?0:p,g=r.hasOwnProperty("x"),_=r.hasOwnProperty("y"),b=bt,v=mt,y=window;if(c){var w=te(i),E="clientHeight",A="clientWidth";w===Wt(i)&&"static"!==Yt(w=Gt(i)).position&&"absolute"===a&&(E="scrollHeight",A="scrollWidth"),w=w,s!==mt&&(s!==bt&&s!==_t||o!==Et)||(v=gt,m-=w[E]-n.height,m*=l?1:-1),s!==bt&&(s!==mt&&s!==gt||o!==Et)||(b=_t,f-=w[A]-n.width,f*=l?1:-1)}var T,O=Object.assign({position:a},c&&he);return l?Object.assign({},O,((T={})[v]=_?"0":"",T[b]=g?"0":"",T.transform=(y.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",T)):Object.assign({},O,((e={})[v]=_?m+"px":"",e[b]=g?f+"px":"",e.transform="",e))}const ue={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:Ut(e.placement),variation:ce(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,de(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,de(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 fe={passive:!0};const pe={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=Wt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,fe)})),a&&l.addEventListener("resize",i.update,fe),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,fe)})),a&&l.removeEventListener("resize",i.update,fe)}},data:{}};var me={left:"right",right:"left",bottom:"top",top:"bottom"};function ge(t){return t.replace(/left|right|bottom|top/g,(function(t){return me[t]}))}var _e={start:"end",end:"start"};function be(t){return t.replace(/start|end/g,(function(t){return _e[t]}))}function ve(t){var e=Wt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ye(t){return Vt(Gt(t)).left+ve(t).scrollLeft}function we(t){var e=Yt(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Ee(t){return["html","body","#document"].indexOf(Rt(t))>=0?t.ownerDocument.body:zt(t)&&we(t)?t:Ee(Zt(t))}function Ae(t,e){var i;void 0===e&&(e=[]);var n=Ee(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=Wt(n),r=s?[o].concat(o.visualViewport||[],we(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(Ae(Zt(r)))}function Te(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Oe(t,e){return e===Tt?Te(function(t){var e=Wt(t),i=Gt(t),n=e.visualViewport,s=i.clientWidth,o=i.clientHeight,r=0,a=0;return n&&(s=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,a=n.offsetTop)),{width:s,height:o,x:r+ye(t),y:a}}(t)):zt(e)?function(t){var e=Vt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Te(function(t){var e,i=Gt(t),n=ve(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=ie(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=ie(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+ye(t),l=-n.scrollTop;return"rtl"===Yt(s||i).direction&&(a+=ie(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(Gt(t)))}function Ce(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?Ut(s):null,r=s?ce(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case mt:e={x:a,y:i.y-n.height};break;case gt:e={x:a,y:i.y+i.height};break;case _t:e={x:i.x+i.width,y:l};break;case bt:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?ee(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case wt:e[c]=e[c]-(i[h]/2-n[h]/2);break;case Et:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function ke(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.boundary,r=void 0===o?At:o,a=i.rootBoundary,l=void 0===a?Tt:a,c=i.elementContext,h=void 0===c?Ot:c,d=i.altBoundary,u=void 0!==d&&d,f=i.padding,p=void 0===f?0:f,m=re("number"!=typeof p?p:ae(p,yt)),g=h===Ot?Ct:Ot,_=t.rects.popper,b=t.elements[u?g:h],v=function(t,e,i){var n="clippingParents"===e?function(t){var e=Ae(Zt(t)),i=["absolute","fixed"].indexOf(Yt(t).position)>=0&&zt(t)?te(t):t;return $t(i)?e.filter((function(t){return $t(t)&&Xt(t,i)&&"body"!==Rt(t)})):[]}(t):[].concat(e),s=[].concat(n,[i]),o=s[0],r=s.reduce((function(e,i){var n=Oe(t,i);return e.top=ie(n.top,e.top),e.right=ne(n.right,e.right),e.bottom=ne(n.bottom,e.bottom),e.left=ie(n.left,e.left),e}),Oe(t,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}($t(b)?b:b.contextElement||Gt(t.elements.popper),r,l),y=Vt(t.elements.reference),w=Ce({reference:y,element:_,strategy:"absolute",placement:s}),E=Te(Object.assign({},_,w)),A=h===Ot?E:y,T={top:v.top-A.top+m.top,bottom:A.bottom-v.bottom+m.bottom,left:v.left-A.left+m.left,right:A.right-v.right+m.right},O=t.modifiersData.offset;if(h===Ot&&O){var C=O[s];Object.keys(T).forEach((function(t){var e=[_t,gt].indexOf(t)>=0?1:-1,i=[mt,gt].indexOf(t)>=0?"y":"x";T[t]+=C[i]*e}))}return T}function Le(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Lt:l,h=ce(n),d=h?a?kt:kt.filter((function(t){return ce(t)===h})):yt,u=d.filter((function(t){return c.indexOf(t)>=0}));0===u.length&&(u=d);var f=u.reduce((function(e,i){return e[i]=ke(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[Ut(i)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}const xe={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=e.options.placement,_=Ut(g),b=l||(_!==g&&p?function(t){if(Ut(t)===vt)return[];var e=ge(t);return[be(t),e,be(e)]}(g):[ge(g)]),v=[g].concat(b).reduce((function(t,i){return t.concat(Ut(i)===vt?Le(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),y=e.rects.reference,w=e.rects.popper,E=new Map,A=!0,T=v[0],O=0;O<v.length;O++){var C=v[O],k=Ut(C),L=ce(C)===wt,x=[mt,gt].indexOf(k)>=0,D=x?"width":"height",S=ke(e,{placement:C,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),N=x?L?_t:bt:L?gt:mt;y[D]>w[D]&&(N=ge(N));var I=ge(N),P=[];if(o&&P.push(S[k]<=0),a&&P.push(S[N]<=0,S[I]<=0),P.every((function(t){return t}))){T=C,A=!1;break}E.set(C,P)}if(A)for(var j=function(t){var e=v.find((function(e){var i=E.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return T=e,"break"},M=p?3:1;M>0&&"break"!==j(M);M--);e.placement!==T&&(e.modifiersData[n]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function De(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 Se(t){return[mt,_t,gt,bt].some((function(e){return t[e]>=0}))}const Ne={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=ke(e,{elementContext:"reference"}),a=ke(e,{altBoundary:!0}),l=De(r,n),c=De(a,s,o),h=Se(l),d=Se(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})}},Ie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=Lt.reduce((function(t,i){return t[i]=function(t,e,i){var n=Ut(t),s=[bt,mt].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[bt,_t].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t}),{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}},Pe={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Ce({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},je={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,g=ke(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),_=Ut(e.placement),b=ce(e.placement),v=!b,y=ee(_),w="x"===y?"y":"x",E=e.modifiersData.popperOffsets,A=e.rects.reference,T=e.rects.popper,O="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,C={x:0,y:0};if(E){if(o||a){var k="y"===y?mt:bt,L="y"===y?gt:_t,x="y"===y?"height":"width",D=E[y],S=E[y]+g[k],N=E[y]-g[L],I=f?-T[x]/2:0,P=b===wt?A[x]:T[x],j=b===wt?-T[x]:-A[x],M=e.elements.arrow,H=f&&M?Kt(M):{width:0,height:0},B=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},R=B[k],W=B[L],$=oe(0,A[x],H[x]),z=v?A[x]/2-I-$-R-O:P-$-R-O,q=v?-A[x]/2+I+$+W+O:j+$+W+O,F=e.elements.arrow&&te(e.elements.arrow),U=F?"y"===y?F.clientTop||0:F.clientLeft||0:0,V=e.modifiersData.offset?e.modifiersData.offset[e.placement][y]:0,K=E[y]+z-V-U,X=E[y]+q-V;if(o){var Y=oe(f?ne(S,K):S,D,f?ie(N,X):N);E[y]=Y,C[y]=Y-D}if(a){var Q="x"===y?mt:bt,G="x"===y?gt:_t,Z=E[w],J=Z+g[Q],tt=Z-g[G],et=oe(f?ne(J,K):J,Z,f?ie(tt,X):tt);E[w]=et,C[w]=et-Z}}e.modifiersData[n]=C}},requiresIfExists:["offset"]};function Me(t,e,i){void 0===i&&(i=!1);var n=zt(e);zt(e)&&function(t){var e=t.getBoundingClientRect();e.width,t.offsetWidth,e.height,t.offsetHeight}(e);var s,o,r=Gt(e),a=Vt(t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!i)&&(("body"!==Rt(e)||we(r))&&(l=(s=e)!==Wt(s)&&zt(s)?{scrollLeft:(o=s).scrollLeft,scrollTop:o.scrollTop}:ve(s)),zt(e)?((c=Vt(e)).x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=ye(r))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function He(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 Be={placement:"bottom",modifiers:[],strategy:"absolute"};function Re(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function We(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,o=void 0===s?Be:s;return function(t,e,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Be,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,h={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;d(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:$t(t)?Ae(t):t.contextElement?Ae(t.contextElement):[],popper:Ae(e)};var r,c,u=function(t){var e=He(t);return Bt.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((r=[].concat(n,a.options.modifiers),c=r.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=u.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var o=s({state:a,name:e,instance:h,options:n});l.push(o||function(){})}})),h.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(Re(e,i)){a.rects={reference:Me(e,te(i),"fixed"===a.options.strategy),popper:Kt(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],o=s.fn,r=s.options,l=void 0===r?{}:r,d=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:h})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(t){h.forceUpdate(),t(a)}))},function(){return r||(r=new Promise((function(t){Promise.resolve().then((function(){r=void 0,t(s())}))}))),r}),destroy:function(){d(),c=!0}};if(!Re(t,e))return h;function d(){l.forEach((function(t){return t()})),l=[]}return h.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),h}}var $e=We(),ze=We({defaultModifiers:[pe,Pe,ue,Ft]}),qe=We({defaultModifiers:[pe,Pe,ue,Ft,Ie,xe,je,le,Ne]});const Fe=Object.freeze({__proto__:null,popperGenerator:We,detectOverflow:ke,createPopperBase:$e,createPopper:qe,createPopperLite:ze,top:mt,bottom:gt,right:_t,left:bt,auto:vt,basePlacements:yt,start:wt,end:Et,clippingParents:At,viewport:Tt,popper:Ot,reference:Ct,variationPlacements:kt,placements:Lt,beforeRead:xt,read:Dt,afterRead:St,beforeMain:Nt,main:It,afterMain:Pt,beforeWrite:jt,write:Mt,afterWrite:Ht,modifierPhases:Bt,applyStyles:Ft,arrow:le,computeStyles:ue,eventListeners:pe,flip:xe,hide:Ne,offset:Ie,popperOffsets:Pe,preventOverflow:je}),Ue="dropdown",Ve="Escape",Ke="Space",Xe="ArrowUp",Ye="ArrowDown",Qe=new RegExp("ArrowUp|ArrowDown|Escape"),Ge="click.bs.dropdown.data-api",Ze="keydown.bs.dropdown.data-api",Je="show",ti='[data-bs-toggle="dropdown"]',ei=".dropdown-menu",ii=m()?"top-end":"top-start",ni=m()?"top-start":"top-end",si=m()?"bottom-end":"bottom-start",oi=m()?"bottom-start":"bottom-end",ri=m()?"left-start":"right-start",ai=m()?"right-start":"left-start",li={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},ci={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class hi extends B{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return li}static get DefaultType(){return ci}static get NAME(){return Ue}toggle(){return this._isShown()?this.hide():this.show()}show(){if(c(this._element)||this._isShown(this._menu))return;const t={relatedTarget:this._element};if(j.trigger(this._element,"show.bs.dropdown",t).defaultPrevented)return;const e=hi.getParentFromElement(this._element);this._inNavbar?U.setDataAttribute(this._menu,"popper","none"):this._createPopper(e),"ontouchstart"in document.documentElement&&!e.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((t=>j.on(t,"mouseover",d))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Je),this._element.classList.add(Je),j.trigger(this._element,"shown.bs.dropdown",t)}hide(){if(c(this._element)||!this._isShown(this._menu))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){j.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>j.off(t,"mouseover",d))),this._popper&&this._popper.destroy(),this._menu.classList.remove(Je),this._element.classList.remove(Je),this._element.setAttribute("aria-expanded","false"),U.removeDataAttribute(this._menu,"popper"),j.trigger(this._element,"hidden.bs.dropdown",t))}_getConfig(t){if(t={...this.constructor.Default,...U.getDataAttributes(this._element),...t},a(Ue,t,this.constructor.DefaultType),"object"==typeof t.reference&&!o(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Ue.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(t){if(void 0===Fe)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:o(this._config.reference)?e=r(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const i=this._getPopperConfig(),n=i.modifiers.find((t=>"applyStyles"===t.name&&!1===t.enabled));this._popper=qe(e,this._menu,i),n&&U.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.classList.contains(Je)}_getMenuElement(){return V.next(this._element,ei)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return ri;if(t.classList.contains("dropstart"))return ai;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?ni:ii:e?oi:si}_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"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const i=V.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(l);i.length&&v(i,e,t===Ye,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=hi.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(t&&(2===t.button||"keyup"===t.type&&"Tab"!==t.key))return;const e=V.find(ti);for(let i=0,n=e.length;i<n;i++){const n=hi.getInstance(e[i]);if(!n||!1===n._config.autoClose)continue;if(!n._isShown())continue;const s={relatedTarget:n._element};if(t){const e=t.composedPath(),i=e.includes(n._menu);if(e.includes(n._element)||"inside"===n._config.autoClose&&!i||"outside"===n._config.autoClose&&i)continue;if(n._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;"click"===t.type&&(s.clickEvent=t)}n._completeHide(s)}}static getParentFromElement(t){return n(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.key===Ke||t.key!==Ve&&(t.key!==Ye&&t.key!==Xe||t.target.closest(ei)):!Qe.test(t.key))return;const e=this.classList.contains(Je);if(!e&&t.key===Ve)return;if(t.preventDefault(),t.stopPropagation(),c(this))return;const i=this.matches(ti)?this:V.prev(this,ti)[0],n=hi.getOrCreateInstance(i);if(t.key!==Ve)return t.key===Xe||t.key===Ye?(e||n.show(),void n._selectMenuItem(t)):void(e&&t.key!==Ke||hi.clearMenus());n.hide()}}j.on(document,Ze,ti,hi.dataApiKeydownHandler),j.on(document,Ze,ei,hi.dataApiKeydownHandler),j.on(document,Ge,hi.clearMenus),j.on(document,"keyup.bs.dropdown.data-api",hi.clearMenus),j.on(document,Ge,ti,(function(t){t.preventDefault(),hi.getOrCreateInstance(this).toggle()})),g(hi);const di=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ui=".sticky-top";class fi{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,"paddingRight",(e=>e+t)),this._setElementAttributes(di,"paddingRight",(e=>e+t)),this._setElementAttributes(ui,"marginRight",(e=>e-t))}_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)[e];t.style[e]=`${i(Number.parseFloat(s))}px`}))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(di,"paddingRight"),this._resetElementAttributes(ui,"marginRight")}_saveInitialAttribute(t,e){const i=t.style[e];i&&U.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=U.getDataAttribute(t,e);void 0===i?t.style.removeProperty(e):(U.removeDataAttribute(t,e),t.style[e]=i)}))}_applyManipulationCallback(t,e){o(t)?e(t):V.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const pi={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},mi={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},gi="show",_i="mousedown.bs.backdrop";class bi{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&u(this._getElement()),this._getElement().classList.add(gi),this._emulateAnimation((()=>{_(t)}))):_(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(gi),this._emulateAnimation((()=>{this.dispose(),_(t)}))):_(t)}_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}_getConfig(t){return(t={...pi,..."object"==typeof t?t:{}}).rootElement=r(t.rootElement),a("backdrop",t,mi),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),j.on(this._getElement(),_i,(()=>{_(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(j.off(this._element,_i),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){b(t,this._getElement(),this._config.isAnimated)}}const vi={trapElement:null,autofocus:!0},yi={trapElement:"element",autofocus:"boolean"},wi=".bs.focustrap",Ei="backward";class Ai{constructor(t){this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:t,autofocus:e}=this._config;this._isActive||(e&&t.focus(),j.off(document,wi),j.on(document,"focusin.bs.focustrap",(t=>this._handleFocusin(t))),j.on(document,"keydown.tab.bs.focustrap",(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,j.off(document,wi))}_handleFocusin(t){const{target:e}=t,{trapElement:i}=this._config;if(e===document||e===i||i.contains(e))return;const n=V.focusableChildren(i);0===n.length?i.focus():this._lastTabNavDirection===Ei?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Ei:"forward")}_getConfig(t){return t={...vi,..."object"==typeof t?t:{}},a("focustrap",t,yi),t}}const Ti="modal",Oi="Escape",Ci={backdrop:!0,keyboard:!0,focus:!0},ki={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Li="hidden.bs.modal",xi="show.bs.modal",Di="resize.bs.modal",Si="click.dismiss.bs.modal",Ni="keydown.dismiss.bs.modal",Ii="mousedown.dismiss.bs.modal",Pi="modal-open",ji="show",Mi="modal-static";class Hi extends B{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=V.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new fi}static get Default(){return Ci}static get NAME(){return Ti}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||j.trigger(this._element,xi,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Pi),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),j.on(this._dialog,Ii,(()=>{j.one(this._element,"mouseup.dismiss.bs.modal",(t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(t))))}hide(){if(!this._isShown||this._isTransitioning)return;if(j.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(ji),j.off(this._element,Si),j.off(this._dialog,Ii),this._queueCallback((()=>this._hideModal()),this._element,t)}dispose(){[window,this._dialog].forEach((t=>j.off(t,".bs.modal"))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new bi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ai({trapElement:this._element})}_getConfig(t){return t={...Ci,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}},a(Ti,t,ki),t}_showElement(t){const e=this._isAnimated(),i=V.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||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,i&&(i.scrollTop=0),e&&u(this._element),this._element.classList.add(ji),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,j.trigger(this._element,"shown.bs.modal",{relatedTarget:t})}),this._dialog,e)}_setEscapeEvent(){this._isShown?j.on(this._element,Ni,(t=>{this._config.keyboard&&t.key===Oi?(t.preventDefault(),this.hide()):this._config.keyboard||t.key!==Oi||this._triggerBackdropTransition()})):j.off(this._element,Ni)}_setResizeEvent(){this._isShown?j.on(window,Di,(()=>this._adjustDialog())):j.off(window,Di)}_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(Pi),this._resetAdjustments(),this._scrollBar.reset(),j.trigger(this._element,Li)}))}_showBackdrop(t){j.on(this._element,Si,(t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(j.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:t,scrollHeight:e,style:i}=this._element,n=e>document.documentElement.clientHeight;!n&&"hidden"===i.overflowY||t.contains(Mi)||(n||(i.overflowY="hidden"),t.add(Mi),this._queueCallback((()=>{t.remove(Mi),n||this._queueCallback((()=>{i.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;(!i&&t&&!m()||i&&!t&&m())&&(this._element.style.paddingLeft=`${e}px`),(i&&!t&&!m()||!i&&t&&m())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=Hi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}j.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=n(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),j.one(e,xi,(t=>{t.defaultPrevented||j.one(e,Li,(()=>{l(this)&&this.focus()}))}));const i=V.findOne(".modal.show");i&&Hi.getInstance(i).hide(),Hi.getOrCreateInstance(e).toggle(this)})),R(Hi),g(Hi);const Bi="offcanvas",Ri={backdrop:!0,keyboard:!0,scroll:!1},Wi={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},$i="show",zi=".offcanvas.show",qi="hidden.bs.offcanvas";class Fi extends B{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Bi}static get Default(){return Ri}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||j.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new fi).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add($i),this._queueCallback((()=>{this._config.scroll||this._focustrap.activate(),j.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(j.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove($i),this._backdrop.hide(),this._queueCallback((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new fi).reset(),j.trigger(this._element,qi)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(t){return t={...Ri,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}},a(Bi,t,Wi),t}_initializeBackDrop(){return new bi({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Ai({trapElement:this._element})}_addEventListeners(){j.on(this._element,"keydown.dismiss.bs.offcanvas",(t=>{this._config.keyboard&&"Escape"===t.key&&this.hide()}))}static jQueryInterface(t){return this.each((function(){const e=Fi.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)}}))}}j.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=n(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),c(this))return;j.one(e,qi,(()=>{l(this)&&this.focus()}));const i=V.findOne(zi);i&&i!==e&&Fi.getInstance(i).hide(),Fi.getOrCreateInstance(e).toggle(this)})),j.on(window,"load.bs.offcanvas.data-api",(()=>V.find(zi).forEach((t=>Fi.getOrCreateInstance(t).show())))),R(Fi),g(Fi);const Ui=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Vi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Ki=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Xi=(t,e)=>{const i=t.nodeName.toLowerCase();if(e.includes(i))return!Ui.has(i)||Boolean(Vi.test(t.nodeValue)||Ki.test(t.nodeValue));const n=e.filter((t=>t instanceof RegExp));for(let t=0,e=n.length;t<e;t++)if(n[t].test(i))return!0;return!1};function Yi(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(let t=0,i=s.length;t<i;t++){const i=s[t],n=i.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){i.remove();continue}const o=[].concat(...i.attributes),r=[].concat(e["*"]||[],e[n]||[]);o.forEach((t=>{Xi(t,r)||i.removeAttribute(t.nodeName)}))}return n.body.innerHTML}const Qi="tooltip",Gi=new Set(["sanitize","allowList","sanitizeFn"]),Zi={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Ji={AUTO:"auto",TOP:"top",RIGHT:m()?"left":"right",BOTTOM:"bottom",LEFT:m()?"right":"left"},tn={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["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:[]},popperConfig:null},en={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},nn="fade",sn="show",on="show",rn="out",an=".tooltip-inner",ln=".modal",cn="hide.bs.modal",hn="hover",dn="focus";class un extends B{constructor(t,e){if(void 0===Fe)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return tn}static get NAME(){return Qi}static get Event(){return en}static get DefaultType(){return Zi}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(sn))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),j.off(this._element.closest(ln),cn,this._hideModalHandler),this.tip&&this.tip.remove(),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=j.trigger(this._element,this.constructor.Event.SHOW),e=h(this._element),i=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!i)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(an).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const n=this.getTipElement(),s=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME);n.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this._config.animation&&n.classList.add(nn);const o="function"==typeof this._config.placement?this._config.placement.call(this,n,this._element):this._config.placement,r=this._getAttachment(o);this._addAttachmentClass(r);const{container:a}=this._config;H.set(n,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(n),j.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=qe(this._element,n,this._getPopperConfig(r)),n.classList.add(sn);const l=this._resolvePossibleFunction(this._config.customClass);l&&n.classList.add(...l.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>{j.on(t,"mouseover",d)}));const c=this.tip.classList.contains(nn);this._queueCallback((()=>{const t=this._hoverState;this._hoverState=null,j.trigger(this._element,this.constructor.Event.SHOWN),t===rn&&this._leave(null,this)}),this.tip,c)}hide(){if(!this._popper)return;const t=this.getTipElement();if(j.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(sn),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>j.off(t,"mouseover",d))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const e=this.tip.classList.contains(nn);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==on&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),j.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())}),this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const e=t.children[0];return this.setContent(e),e.classList.remove(nn,sn),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),an)}_sanitizeAndSetContent(t,e,i){const n=V.findOne(i,t);e||!n?this.setElementContent(n,e):n.remove()}setElementContent(t,e){if(null!==t)return o(e)?(e=r(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=Yi(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){const t=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_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"function"==typeof t?t.call(this._element):t}_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:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return Ji[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((t=>{if("click"===t)j.on(this._element,this.constructor.Event.CLICK,this._config.selector,(t=>this.toggle(t)));else if("manual"!==t){const e=t===hn?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=t===hn?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;j.on(this._element,e,this._config.selector,(t=>this._enter(t))),j.on(this._element,i,this._config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},j.on(this._element.closest(ln),cn,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?dn:hn]=!0),e.getTipElement().classList.contains(sn)||e._hoverState===on?e._hoverState=on:(clearTimeout(e._timeout),e._hoverState=on,e._config.delay&&e._config.delay.show?e._timeout=setTimeout((()=>{e._hoverState===on&&e.show()}),e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?dn:hn]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=rn,e._config.delay&&e._config.delay.hide?e._timeout=setTimeout((()=>{e._hoverState===rn&&e.hide()}),e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=U.getDataAttributes(this._element);return Object.keys(e).forEach((t=>{Gi.has(t)&&delete e[t]})),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:r(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()),a(Qi,t,this.constructor.DefaultType),t.sanitize&&(t.template=Yi(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),i=t.getAttribute("class").match(e);null!==i&&i.length>0&&i.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each((function(){const e=un.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}g(un);const fn={...un.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},pn={...un.DefaultType,content:"(string|element|function)"},mn={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class gn extends un{static get Default(){return fn}static get NAME(){return"popover"}static get Event(){return mn}static get DefaultType(){return pn}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(t,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(t){return this.each((function(){const e=gn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}g(gn);const _n="scrollspy",bn={offset:10,method:"auto",target:""},vn={offset:"number",method:"string",target:"(string|element)"},yn="active",wn=".nav-link, .list-group-item, .dropdown-item",En="position";class An extends B{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,j.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return bn}static get NAME(){return _n}refresh(){const t=this._scrollElement===this._scrollElement.window?"offset":En,e="auto"===this._config.method?t:this._config.method,n=e===En?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),V.find(wn,this._config.target).map((t=>{const s=i(t),o=s?V.findOne(s):null;if(o){const t=o.getBoundingClientRect();if(t.width||t.height)return[U[e](o).top+n,s]}return null})).filter((t=>t)).sort(((t,e)=>t[0]-e[0])).forEach((t=>{this._offsets.push(t[0]),this._targets.push(t[1])}))}dispose(){j.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(t){return(t={...bn,...U.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target=r(t.target)||document.documentElement,a(_n,t,vn),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}_activate(t){this._activeTarget=t,this._clear();const e=wn.split(",").map((e=>`${e}[data-bs-target="${t}"],${e}[href="${t}"]`)),i=V.findOne(e.join(","),this._config.target);i.classList.add(yn),i.classList.contains("dropdown-item")?V.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(yn):V.parents(i,".nav, .list-group").forEach((t=>{V.prev(t,".nav-link, .list-group-item").forEach((t=>t.classList.add(yn))),V.prev(t,".nav-item").forEach((t=>{V.children(t,".nav-link").forEach((t=>t.classList.add(yn)))}))})),j.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:t})}_clear(){V.find(wn,this._config.target).filter((t=>t.classList.contains(yn))).forEach((t=>t.classList.remove(yn)))}static jQueryInterface(t){return this.each((function(){const e=An.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}j.on(window,"load.bs.scrollspy.data-api",(()=>{V.find('[data-bs-spy="scroll"]').forEach((t=>new An(t)))})),g(An);const Tn="active",On="fade",Cn="show",kn=".active",Ln=":scope > li > .active";class xn extends B{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Tn))return;let t;const e=n(this._element),i=this._element.closest(".nav, .list-group");if(i){const e="UL"===i.nodeName||"OL"===i.nodeName?Ln:kn;t=V.find(e,i),t=t[t.length-1]}const s=t?j.trigger(t,"hide.bs.tab",{relatedTarget:this._element}):null;if(j.trigger(this._element,"show.bs.tab",{relatedTarget:t}).defaultPrevented||null!==s&&s.defaultPrevented)return;this._activate(this._element,i);const o=()=>{j.trigger(t,"hidden.bs.tab",{relatedTarget:this._element}),j.trigger(this._element,"shown.bs.tab",{relatedTarget:t})};e?this._activate(e,e.parentNode,o):o()}_activate(t,e,i){const n=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?V.children(e,kn):V.find(Ln,e))[0],s=i&&n&&n.classList.contains(On),o=()=>this._transitionComplete(t,n,i);n&&s?(n.classList.remove(Cn),this._queueCallback(o,t,!0)):o()}_transitionComplete(t,e,i){if(e){e.classList.remove(Tn);const t=V.findOne(":scope > .dropdown-menu .active",e.parentNode);t&&t.classList.remove(Tn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(Tn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),u(t),t.classList.contains(On)&&t.classList.add(Cn);let n=t.parentNode;if(n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains("dropdown-menu")){const e=t.closest(".dropdown");e&&V.find(".dropdown-toggle",e).forEach((t=>t.classList.add(Tn))),t.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(t){return this.each((function(){const e=xn.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}j.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),c(this)||xn.getOrCreateInstance(this).show()})),g(xn);const Dn="toast",Sn="hide",Nn="show",In="showing",Pn={animation:"boolean",autohide:"boolean",delay:"number"},jn={animation:!0,autohide:!0,delay:5e3};class Mn extends B{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Pn}static get Default(){return jn}static get NAME(){return Dn}show(){j.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Sn),u(this._element),this._element.classList.add(Nn),this._element.classList.add(In),this._queueCallback((()=>{this._element.classList.remove(In),j.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this._element.classList.contains(Nn)&&(j.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(In),this._queueCallback((()=>{this._element.classList.add(Sn),this._element.classList.remove(In),this._element.classList.remove(Nn),j.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(Nn)&&this._element.classList.remove(Nn),super.dispose()}_getConfig(t){return t={...jn,...U.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},a(Dn,t,this.constructor.DefaultType),t}_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(){j.on(this._element,"mouseover.bs.toast",(t=>this._onInteraction(t,!0))),j.on(this._element,"mouseout.bs.toast",(t=>this._onInteraction(t,!1))),j.on(this._element,"focusin.bs.toast",(t=>this._onInteraction(t,!0))),j.on(this._element,"focusout.bs.toast",(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Mn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}return R(Mn),g(Mn),{Alert:W,Button:z,Carousel:st,Collapse:pt,Dropdown:hi,Modal:Hi,Offcanvas:Fi,Popover:gn,ScrollSpy:An,Tab:xn,Toast:Mn,Tooltip:un}}));
7
+ //# sourceMappingURL=bootstrap.bundle.min.js.map
_proc/_docs/site_libs/clipboard/clipboard.min.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * clipboard.js v2.0.11
3
+ * https://clipboardjs.com/
4
+ *
5
+ * Licensed MIT © Zeno Rocha
6
+ */
7
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return n={686:function(t,e,n){"use strict";n.d(e,{default:function(){return b}});var e=n(279),i=n.n(e),e=n(370),u=n.n(e),e=n(817),r=n.n(e);function c(t){try{return document.execCommand(t)}catch(t){return}}var a=function(t){t=r()(t);return c("cut"),t};function o(t,e){var n,o,t=(n=t,o="rtl"===document.documentElement.getAttribute("dir"),(t=document.createElement("textarea")).style.fontSize="12pt",t.style.border="0",t.style.padding="0",t.style.margin="0",t.style.position="absolute",t.style[o?"right":"left"]="-9999px",o=window.pageYOffset||document.documentElement.scrollTop,t.style.top="".concat(o,"px"),t.setAttribute("readonly",""),t.value=n,t);return e.container.appendChild(t),e=r()(t),c("copy"),t.remove(),e}var f=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=o(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=o(t.value,e):(n=r()(t),c("copy")),n};function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,o=t.container,e=t.target,t=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==e){if(!e||"object"!==l(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return t?f(t,{container:o}):e?"cut"===n?a(e):f(e,{container:o}):void 0};function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(n){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=v(n);return t=o?(t=v(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),e=this,!(t=t)||"object"!==p(t)&&"function"!=typeof t?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){t="data-clipboard-".concat(t);if(e.hasAttribute(t))return e.getAttribute(t)}var b=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(r,i());var t,e,n,o=h(r);function r(t,e){var n;return function(t){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this),(n=o.call(this)).resolveOptions(e),n.listenClick(t),n}return t=r,n=[{key:"copy",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return f(t,e)}},{key:"cut",value:function(t){return a(t)}},{key:"isSupported",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof t?[t]:t,e=!!document.queryCommandSupported;return t.forEach(function(t){e=e&&!!document.queryCommandSupported(t)}),e}}],(e=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===p(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=u()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",t=s({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(t?"success":"error",{action:n,text:t,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return m("action",t)}},{key:"defaultTarget",value:function(t){t=m("target",t);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(t){return m("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&d(t.prototype,e),n&&d(t,n),r}()},828:function(t){var e;"undefined"==typeof Element||Element.prototype.matches||((e=Element.prototype).matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector),t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var u=n(828);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=u(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},879:function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var f=n(879),l=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!f.string(e))throw new TypeError("Second argument must be a String");if(!f.fn(n))throw new TypeError("Third argument must be a Function");if(f.node(t))return c=e,a=n,(u=t).addEventListener(c,a),{destroy:function(){u.removeEventListener(c,a)}};if(f.nodeList(t))return o=t,r=e,i=n,Array.prototype.forEach.call(o,function(t){t.addEventListener(r,i)}),{destroy:function(){Array.prototype.forEach.call(o,function(t){t.removeEventListener(r,i)})}};if(f.string(t))return t=t,e=e,n=n,l(document.body,t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,u,c,a}},817:function(t){t.exports=function(t){var e,n="SELECT"===t.nodeName?(t.focus(),t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?((e=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),e||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),n=window.getSelection(),(e=document.createRange()).selectNodeContents(t),n.removeAllRanges(),n.addRange(e),n.toString());return n}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,u=o.length;i<u;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},r={},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o(686).default;function o(t){if(r[t])return r[t].exports;var e=r[t]={exports:{}};return n[t](e,e.exports,o),e.exports}var n,r});
_proc/_docs/site_libs/quarto-html/anchor.min.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ // @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
2
+ //
3
+ // AnchorJS - v4.3.1 - 2021-04-17
4
+ // https://www.bryanbraun.com/anchorjs/
5
+ // Copyright (c) 2021 Bryan Braun; Licensed MIT
6
+ //
7
+ // @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
8
+ !function(A,e){"use strict";"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():(A.AnchorJS=e(),A.anchors=new A.AnchorJS)}(this,function(){"use strict";return function(A){function d(A){A.icon=Object.prototype.hasOwnProperty.call(A,"icon")?A.icon:"",A.visible=Object.prototype.hasOwnProperty.call(A,"visible")?A.visible:"hover",A.placement=Object.prototype.hasOwnProperty.call(A,"placement")?A.placement:"right",A.ariaLabel=Object.prototype.hasOwnProperty.call(A,"ariaLabel")?A.ariaLabel:"Anchor",A.class=Object.prototype.hasOwnProperty.call(A,"class")?A.class:"",A.base=Object.prototype.hasOwnProperty.call(A,"base")?A.base:"",A.truncate=Object.prototype.hasOwnProperty.call(A,"truncate")?Math.floor(A.truncate):64,A.titleText=Object.prototype.hasOwnProperty.call(A,"titleText")?A.titleText:""}function w(A){var e;if("string"==typeof A||A instanceof String)e=[].slice.call(document.querySelectorAll(A));else{if(!(Array.isArray(A)||A instanceof NodeList))throw new TypeError("The selector provided to AnchorJS was invalid.");e=[].slice.call(A)}return e}this.options=A||{},this.elements=[],d(this.options),this.isTouchDevice=function(){return Boolean("ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch)},this.add=function(A){var e,t,o,i,n,s,a,c,r,l,h,u,p=[];if(d(this.options),"touch"===(l=this.options.visible)&&(l=this.isTouchDevice()?"always":"hover"),0===(e=w(A=A||"h2, h3, h4, h5, h6")).length)return this;for(null===document.head.querySelector("style.anchorjs")&&((u=document.createElement("style")).className="anchorjs",u.appendChild(document.createTextNode("")),void 0===(A=document.head.querySelector('[rel="stylesheet"],style'))?document.head.appendChild(u):document.head.insertBefore(u,A),u.sheet.insertRule(".anchorjs-link{opacity:0;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",u.sheet.cssRules.length),u.sheet.insertRule(":hover>.anchorjs-link,.anchorjs-link:focus{opacity:1}",u.sheet.cssRules.length),u.sheet.insertRule("[data-anchorjs-icon]::after{content:attr(data-anchorjs-icon)}",u.sheet.cssRules.length),u.sheet.insertRule('@font-face{font-family:anchorjs-icons;src:url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype")}',u.sheet.cssRules.length)),u=document.querySelectorAll("[id]"),t=[].map.call(u,function(A){return A.id}),i=0;i<e.length;i++)if(this.hasAnchorJSLink(e[i]))p.push(i);else{if(e[i].hasAttribute("id"))o=e[i].getAttribute("id");else if(e[i].hasAttribute("data-anchor-id"))o=e[i].getAttribute("data-anchor-id");else{for(c=a=this.urlify(e[i].textContent),s=0;n=t.indexOf(c=void 0!==n?a+"-"+s:c),s+=1,-1!==n;);n=void 0,t.push(c),e[i].setAttribute("id",c),o=c}(r=document.createElement("a")).className="anchorjs-link "+this.options.class,r.setAttribute("aria-label",this.options.ariaLabel),r.setAttribute("data-anchorjs-icon",this.options.icon),this.options.titleText&&(r.title=this.options.titleText),h=document.querySelector("base")?window.location.pathname+window.location.search:"",h=this.options.base||h,r.href=h+"#"+o,"always"===l&&(r.style.opacity="1"),""===this.options.icon&&(r.style.font="1em/1 anchorjs-icons","left"===this.options.placement&&(r.style.lineHeight="inherit")),"left"===this.options.placement?(r.style.position="absolute",r.style.marginLeft="-1em",r.style.paddingRight=".5em",e[i].insertBefore(r,e[i].firstChild)):(r.style.paddingLeft=".375em",e[i].appendChild(r))}for(i=0;i<p.length;i++)e.splice(p[i]-i,1);return this.elements=this.elements.concat(e),this},this.remove=function(A){for(var e,t,o=w(A),i=0;i<o.length;i++)(t=o[i].querySelector(".anchorjs-link"))&&(-1!==(e=this.elements.indexOf(o[i]))&&this.elements.splice(e,1),o[i].removeChild(t));return this},this.removeAll=function(){this.remove(this.elements)},this.urlify=function(A){var e=document.createElement("textarea");return e.innerHTML=A,A=e.value,this.options.truncate||d(this.options),A.trim().replace(/'/gi,"").replace(/[& +$,:;=?@"#{}|^~[`%!'<>\]./()*\\\n\t\b\v\u00A0]/g,"-").replace(/-{2,}/g,"-").substring(0,this.options.truncate).replace(/^-+|-+$/gm,"").toLowerCase()},this.hasAnchorJSLink=function(A){var e=A.firstChild&&-1<(" "+A.firstChild.className+" ").indexOf(" anchorjs-link "),A=A.lastChild&&-1<(" "+A.lastChild.className+" ").indexOf(" anchorjs-link ");return e||A||!1}}});
9
+ // @license-end
_proc/_docs/site_libs/quarto-html/popper.min.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ /**
2
+ * @popperjs/core v2.11.4 - MIT License
3
+ */
4
+
5
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,(function(e){"use strict";function t(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function n(e){return e instanceof t(e).Element||e instanceof Element}function r(e){return e instanceof t(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof t(e).ShadowRoot||e instanceof ShadowRoot)}var i=Math.max,a=Math.min,s=Math.round;function f(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),o=1,i=1;if(r(e)&&t){var a=e.offsetHeight,f=e.offsetWidth;f>0&&(o=s(n.width)/f||1),a>0&&(i=s(n.height)/a||1)}return{width:n.width/o,height:n.height/i,top:n.top/i,right:n.right/o,bottom:n.bottom/i,left:n.left/o,x:n.left/o,y:n.top/i}}function c(e){var n=t(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function p(e){return e?(e.nodeName||"").toLowerCase():null}function u(e){return((n(e)?e.ownerDocument:e.document)||window.document).documentElement}function l(e){return f(u(e)).left+c(e).scrollLeft}function d(e){return t(e).getComputedStyle(e)}function h(e){var t=d(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function m(e,n,o){void 0===o&&(o=!1);var i,a,d=r(n),m=r(n)&&function(e){var t=e.getBoundingClientRect(),n=s(t.width)/e.offsetWidth||1,r=s(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(n),v=u(n),g=f(e,m),y={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(d||!d&&!o)&&(("body"!==p(n)||h(v))&&(y=(i=n)!==t(i)&&r(i)?{scrollLeft:(a=i).scrollLeft,scrollTop:a.scrollTop}:c(i)),r(n)?((b=f(n,!0)).x+=n.clientLeft,b.y+=n.clientTop):v&&(b.x=l(v))),{x:g.left+y.scrollLeft-b.x,y:g.top+y.scrollTop-b.y,width:g.width,height:g.height}}function v(e){var t=f(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function g(e){return"html"===p(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||u(e)}function y(e){return["html","body","#document"].indexOf(p(e))>=0?e.ownerDocument.body:r(e)&&h(e)?e:y(g(e))}function b(e,n){var r;void 0===n&&(n=[]);var o=y(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=t(o),s=i?[a].concat(a.visualViewport||[],h(o)?o:[]):o,f=n.concat(s);return i?f:f.concat(b(g(s)))}function x(e){return["table","td","th"].indexOf(p(e))>=0}function w(e){return r(e)&&"fixed"!==d(e).position?e.offsetParent:null}function O(e){for(var n=t(e),i=w(e);i&&x(i)&&"static"===d(i).position;)i=w(i);return i&&("html"===p(i)||"body"===p(i)&&"static"===d(i).position)?n:i||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&r(e)&&"fixed"===d(e).position)return null;var n=g(e);for(o(n)&&(n=n.host);r(n)&&["html","body"].indexOf(p(n))<0;){var i=d(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||n}var j="top",E="bottom",D="right",A="left",L="auto",P=[j,E,D,A],M="start",k="end",W="viewport",B="popper",H=P.reduce((function(e,t){return e.concat([t+"-"+M,t+"-"+k])}),[]),T=[].concat(P,[L]).reduce((function(e,t){return e.concat([t,t+"-"+M,t+"-"+k])}),[]),R=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function S(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function C(e){return e.split("-")[0]}function q(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function V(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function N(e,r){return r===W?V(function(e){var n=t(e),r=u(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,f=0;return o&&(i=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,f=o.offsetTop)),{width:i,height:a,x:s+l(e),y:f}}(e)):n(r)?function(e){var t=f(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(r):V(function(e){var t,n=u(e),r=c(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=i(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=i(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+l(e),p=-r.scrollTop;return"rtl"===d(o||n).direction&&(f+=i(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:f,y:p}}(u(e)))}function I(e,t,o){var s="clippingParents"===t?function(e){var t=b(g(e)),o=["absolute","fixed"].indexOf(d(e).position)>=0&&r(e)?O(e):e;return n(o)?t.filter((function(e){return n(e)&&q(e,o)&&"body"!==p(e)})):[]}(e):[].concat(t),f=[].concat(s,[o]),c=f[0],u=f.reduce((function(t,n){var r=N(e,n);return t.top=i(r.top,t.top),t.right=a(r.right,t.right),t.bottom=a(r.bottom,t.bottom),t.left=i(r.left,t.left),t}),N(e,c));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function _(e){return e.split("-")[1]}function F(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function U(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?C(o):null,a=o?_(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case j:t={x:s,y:n.y-r.height};break;case E:t={x:s,y:n.y+n.height};break;case D:t={x:n.x+n.width,y:f};break;case A:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var c=i?F(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case M:t[c]=t[c]-(n[p]/2-r[p]/2);break;case k:t[c]=t[c]+(n[p]/2-r[p]/2)}}return t}function z(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function X(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Y(e,t){void 0===t&&(t={});var r=t,o=r.placement,i=void 0===o?e.placement:o,a=r.boundary,s=void 0===a?"clippingParents":a,c=r.rootBoundary,p=void 0===c?W:c,l=r.elementContext,d=void 0===l?B:l,h=r.altBoundary,m=void 0!==h&&h,v=r.padding,g=void 0===v?0:v,y=z("number"!=typeof g?g:X(g,P)),b=d===B?"reference":B,x=e.rects.popper,w=e.elements[m?b:d],O=I(n(w)?w:w.contextElement||u(e.elements.popper),s,p),A=f(e.elements.reference),L=U({reference:A,element:x,strategy:"absolute",placement:i}),M=V(Object.assign({},x,L)),k=d===B?M:A,H={top:O.top-k.top+y.top,bottom:k.bottom-O.bottom+y.bottom,left:O.left-k.left+y.left,right:k.right-O.right+y.right},T=e.modifiersData.offset;if(d===B&&T){var R=T[i];Object.keys(H).forEach((function(e){var t=[D,E].indexOf(e)>=0?1:-1,n=[j,E].indexOf(e)>=0?"y":"x";H[e]+=R[n]*t}))}return H}var G={placement:"bottom",modifiers:[],strategy:"absolute"};function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function K(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,o=void 0===r?[]:r,i=t.defaultOptions,a=void 0===i?G:i;return function(e,t,r){void 0===r&&(r=a);var i,s,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},G,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],p=!1,u={state:f,setOptions:function(r){var i="function"==typeof r?r(f.options):r;l(),f.options=Object.assign({},a,f.options,i),f.scrollParents={reference:n(e)?b(e):e.contextElement?b(e.contextElement):[],popper:b(t)};var s,p,d=function(e){var t=S(e);return R.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(o,f.options.modifiers),p=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(p).map((function(e){return p[e]}))));return f.orderedModifiers=d.filter((function(e){return e.enabled})),f.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:f,name:t,instance:u,options:r}),a=function(){};c.push(i||a)}})),u.update()},forceUpdate:function(){if(!p){var e=f.elements,t=e.reference,n=e.popper;if(J(t,n)){f.rects={reference:m(t,O(n),"fixed"===f.options.strategy),popper:v(n)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach((function(e){return f.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<f.orderedModifiers.length;r++)if(!0!==f.reset){var o=f.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,c=o.name;"function"==typeof i&&(f=i({state:f,options:s,name:c,instance:u})||f)}else f.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){u.forceUpdate(),e(f)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){l(),p=!0}};if(!J(e,t))return u;function l(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(r).then((function(e){!p&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var Q={passive:!0};var Z={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var n=e.state,r=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,f=void 0===s||s,c=t(n.elements.popper),p=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&p.forEach((function(e){e.addEventListener("scroll",r.update,Q)})),f&&c.addEventListener("resize",r.update,Q),function(){a&&p.forEach((function(e){e.removeEventListener("scroll",r.update,Q)})),f&&c.removeEventListener("resize",r.update,Q)}},data:{}};var $={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=U({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var n,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,f=e.offsets,c=e.position,p=e.gpuAcceleration,l=e.adaptive,h=e.roundOffsets,m=e.isFixed,v=f.x,g=void 0===v?0:v,y=f.y,b=void 0===y?0:y,x="function"==typeof h?h({x:g,y:b}):{x:g,y:b};g=x.x,b=x.y;var w=f.hasOwnProperty("x"),L=f.hasOwnProperty("y"),P=A,M=j,W=window;if(l){var B=O(r),H="clientHeight",T="clientWidth";if(B===t(r)&&"static"!==d(B=u(r)).position&&"absolute"===c&&(H="scrollHeight",T="scrollWidth"),B=B,i===j||(i===A||i===D)&&a===k)M=E,b-=(m&&B===W&&W.visualViewport?W.visualViewport.height:B[H])-o.height,b*=p?1:-1;if(i===A||(i===j||i===E)&&a===k)P=D,g-=(m&&B===W&&W.visualViewport?W.visualViewport.width:B[T])-o.width,g*=p?1:-1}var R,S=Object.assign({position:c},l&&ee),C=!0===h?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:s(t*r)/r||0,y:s(n*r)/r||0}}({x:g,y:b}):{x:g,y:b};return g=C.x,b=C.y,p?Object.assign({},S,((R={})[M]=L?"0":"",R[P]=w?"0":"",R.transform=(W.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",R)):Object.assign({},S,((n={})[M]=L?b+"px":"",n[P]=w?g+"px":"",n.transform="",n))}var ne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,c={placement:C(t.placement),variation:_(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var re={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];r(i)&&p(i)&&(Object.assign(i.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});r(o)&&p(o)&&(Object.assign(o.style,a),Object.keys(i).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};var oe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=T.reduce((function(e,n){return e[n]=function(e,t,n){var r=C(e),o=[A,j].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[A,D].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],f=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},ie={left:"right",right:"left",bottom:"top",top:"bottom"};function ae(e){return e.replace(/left|right|bottom|top/g,(function(e){return ie[e]}))}var se={start:"end",end:"start"};function fe(e){return e.replace(/start|end/g,(function(e){return se[e]}))}function ce(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=void 0===f?T:f,p=_(r),u=p?s?H:H.filter((function(e){return _(e)===p})):P,l=u.filter((function(e){return c.indexOf(e)>=0}));0===l.length&&(l=u);var d=l.reduce((function(t,n){return t[n]=Y(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[C(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var pe={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,p=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,v=t.options.placement,g=C(v),y=f||(g===v||!h?[ae(v)]:function(e){if(C(e)===L)return[];var t=ae(e);return[fe(e),t,fe(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(C(n)===L?ce(t,{placement:n,boundary:p,rootBoundary:u,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,P=!0,k=b[0],W=0;W<b.length;W++){var B=b[W],H=C(B),T=_(B)===M,R=[j,E].indexOf(H)>=0,S=R?"width":"height",q=Y(t,{placement:B,boundary:p,rootBoundary:u,altBoundary:l,padding:c}),V=R?T?D:A:T?E:j;x[S]>w[S]&&(V=ae(V));var N=ae(V),I=[];if(i&&I.push(q[H]<=0),s&&I.push(q[V]<=0,q[N]<=0),I.every((function(e){return e}))){k=B,P=!1;break}O.set(B,I)}if(P)for(var F=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},U=h?3:1;U>0;U--){if("break"===F(U))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ue(e,t,n){return i(e,a(t,n))}var le={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=void 0===o||o,f=n.altAxis,c=void 0!==f&&f,p=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,y=void 0===g?0:g,b=Y(t,{boundary:p,rootBoundary:u,padding:d,altBoundary:l}),x=C(t.placement),w=_(t.placement),L=!w,P=F(x),k="x"===P?"y":"x",W=t.modifiersData.popperOffsets,B=t.rects.reference,H=t.rects.popper,T="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,R="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(W){if(s){var V,N="y"===P?j:A,I="y"===P?E:D,U="y"===P?"height":"width",z=W[P],X=z+b[N],G=z-b[I],J=m?-H[U]/2:0,K=w===M?B[U]:H[U],Q=w===M?-H[U]:-B[U],Z=t.elements.arrow,$=m&&Z?v(Z):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[N],ne=ee[I],re=ue(0,B[U],$[U]),oe=L?B[U]/2-J-re-te-R.mainAxis:K-re-te-R.mainAxis,ie=L?-B[U]/2+J+re+ne+R.mainAxis:Q+re+ne+R.mainAxis,ae=t.elements.arrow&&O(t.elements.arrow),se=ae?"y"===P?ae.clientTop||0:ae.clientLeft||0:0,fe=null!=(V=null==S?void 0:S[P])?V:0,ce=z+ie-fe,pe=ue(m?a(X,z+oe-fe-se):X,z,m?i(G,ce):G);W[P]=pe,q[P]=pe-z}if(c){var le,de="x"===P?j:A,he="x"===P?E:D,me=W[k],ve="y"===k?"height":"width",ge=me+b[de],ye=me-b[he],be=-1!==[j,A].indexOf(x),xe=null!=(le=null==S?void 0:S[k])?le:0,we=be?ge:me-B[ve]-H[ve]-xe+R.altAxis,Oe=be?me+B[ve]+H[ve]-xe-R.altAxis:ye,je=m&&be?function(e,t,n){var r=ue(e,t,n);return r>n?n:r}(we,me,Oe):ue(m?we:ge,me,m?Oe:ye);W[k]=je,q[k]=je-me}t.modifiersData[r]=q}},requiresIfExists:["offset"]};var de={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=C(n.placement),f=F(s),c=[A,D].indexOf(s)>=0?"height":"width";if(i&&a){var p=function(e,t){return z("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:X(e,P))}(o.padding,n),u=v(i),l="y"===f?j:A,d="y"===f?E:D,h=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],m=a[f]-n.rects.reference[f],g=O(i),y=g?"y"===f?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,x=p[l],w=y-u[c]-p[d],L=y/2-u[c]/2+b,M=ue(x,L,w),k=f;n.modifiersData[r]=((t={})[k]=M,t.centerOffset=M-L,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&q(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function he(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function me(e){return[j,D,E,A].some((function(t){return e[t]>=0}))}var ve={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Y(t,{elementContext:"reference"}),s=Y(t,{altBoundary:!0}),f=he(a,r),c=he(s,o,i),p=me(f),u=me(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}},ge=K({defaultModifiers:[Z,$,ne,re]}),ye=[Z,$,ne,re,oe,pe,le,de,ve],be=K({defaultModifiers:ye});e.applyStyles=re,e.arrow=de,e.computeStyles=ne,e.createPopper=be,e.createPopperLite=ge,e.defaultModifiers=ye,e.detectOverflow=Y,e.eventListeners=Z,e.flip=pe,e.hide=ve,e.offset=oe,e.popperGenerator=K,e.popperOffsets=$,e.preventOverflow=le,Object.defineProperty(e,"__esModule",{value:!0})}));
6
+
_proc/_docs/site_libs/quarto-html/quarto-syntax-highlighting.css ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* quarto syntax highlight colors */
2
+ :root {
3
+ --quarto-hl-ot-color: #003B4F;
4
+ --quarto-hl-at-color: #657422;
5
+ --quarto-hl-ss-color: #20794D;
6
+ --quarto-hl-an-color: #5E5E5E;
7
+ --quarto-hl-fu-color: #4758AB;
8
+ --quarto-hl-st-color: #20794D;
9
+ --quarto-hl-cf-color: #003B4F;
10
+ --quarto-hl-op-color: #5E5E5E;
11
+ --quarto-hl-er-color: #AD0000;
12
+ --quarto-hl-bn-color: #AD0000;
13
+ --quarto-hl-al-color: #AD0000;
14
+ --quarto-hl-va-color: #111111;
15
+ --quarto-hl-bu-color: inherit;
16
+ --quarto-hl-ex-color: inherit;
17
+ --quarto-hl-pp-color: #AD0000;
18
+ --quarto-hl-in-color: #5E5E5E;
19
+ --quarto-hl-vs-color: #20794D;
20
+ --quarto-hl-wa-color: #5E5E5E;
21
+ --quarto-hl-do-color: #5E5E5E;
22
+ --quarto-hl-im-color: #00769E;
23
+ --quarto-hl-ch-color: #20794D;
24
+ --quarto-hl-dt-color: #AD0000;
25
+ --quarto-hl-fl-color: #AD0000;
26
+ --quarto-hl-co-color: #5E5E5E;
27
+ --quarto-hl-cv-color: #5E5E5E;
28
+ --quarto-hl-cn-color: #8f5902;
29
+ --quarto-hl-sc-color: #5E5E5E;
30
+ --quarto-hl-dv-color: #AD0000;
31
+ --quarto-hl-kw-color: #003B4F;
32
+ }
33
+
34
+ /* other quarto variables */
35
+ :root {
36
+ --quarto-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
37
+ }
38
+
39
+ pre > code.sourceCode > span {
40
+ color: #003B4F;
41
+ }
42
+
43
+ code span {
44
+ color: #003B4F;
45
+ }
46
+
47
+ code.sourceCode > span {
48
+ color: #003B4F;
49
+ }
50
+
51
+ div.sourceCode,
52
+ div.sourceCode pre.sourceCode {
53
+ color: #003B4F;
54
+ }
55
+
56
+ code span.ot {
57
+ color: #003B4F;
58
+ font-style: inherit;
59
+ }
60
+
61
+ code span.at {
62
+ color: #657422;
63
+ font-style: inherit;
64
+ }
65
+
66
+ code span.ss {
67
+ color: #20794D;
68
+ font-style: inherit;
69
+ }
70
+
71
+ code span.an {
72
+ color: #5E5E5E;
73
+ font-style: inherit;
74
+ }
75
+
76
+ code span.fu {
77
+ color: #4758AB;
78
+ font-style: inherit;
79
+ }
80
+
81
+ code span.st {
82
+ color: #20794D;
83
+ font-style: inherit;
84
+ }
85
+
86
+ code span.cf {
87
+ color: #003B4F;
88
+ font-style: inherit;
89
+ }
90
+
91
+ code span.op {
92
+ color: #5E5E5E;
93
+ font-style: inherit;
94
+ }
95
+
96
+ code span.er {
97
+ color: #AD0000;
98
+ font-style: inherit;
99
+ }
100
+
101
+ code span.bn {
102
+ color: #AD0000;
103
+ font-style: inherit;
104
+ }
105
+
106
+ code span.al {
107
+ color: #AD0000;
108
+ font-style: inherit;
109
+ }
110
+
111
+ code span.va {
112
+ color: #111111;
113
+ font-style: inherit;
114
+ }
115
+
116
+ code span.bu {
117
+ font-style: inherit;
118
+ }
119
+
120
+ code span.ex {
121
+ font-style: inherit;
122
+ }
123
+
124
+ code span.pp {
125
+ color: #AD0000;
126
+ font-style: inherit;
127
+ }
128
+
129
+ code span.in {
130
+ color: #5E5E5E;
131
+ font-style: inherit;
132
+ }
133
+
134
+ code span.vs {
135
+ color: #20794D;
136
+ font-style: inherit;
137
+ }
138
+
139
+ code span.wa {
140
+ color: #5E5E5E;
141
+ font-style: italic;
142
+ }
143
+
144
+ code span.do {
145
+ color: #5E5E5E;
146
+ font-style: italic;
147
+ }
148
+
149
+ code span.im {
150
+ color: #00769E;
151
+ font-style: inherit;
152
+ }
153
+
154
+ code span.ch {
155
+ color: #20794D;
156
+ font-style: inherit;
157
+ }
158
+
159
+ code span.dt {
160
+ color: #AD0000;
161
+ font-style: inherit;
162
+ }
163
+
164
+ code span.fl {
165
+ color: #AD0000;
166
+ font-style: inherit;
167
+ }
168
+
169
+ code span.co {
170
+ color: #5E5E5E;
171
+ font-style: inherit;
172
+ }
173
+
174
+ code span.cv {
175
+ color: #5E5E5E;
176
+ font-style: italic;
177
+ }
178
+
179
+ code span.cn {
180
+ color: #8f5902;
181
+ font-style: inherit;
182
+ }
183
+
184
+ code span.sc {
185
+ color: #5E5E5E;
186
+ font-style: inherit;
187
+ }
188
+
189
+ code span.dv {
190
+ color: #AD0000;
191
+ font-style: inherit;
192
+ }
193
+
194
+ code span.kw {
195
+ color: #003B4F;
196
+ font-style: inherit;
197
+ }
198
+
199
+ .prevent-inlining {
200
+ content: "</";
201
+ }
202
+
203
+ /*# sourceMappingURL=debc5d5d77c3f9108843748ff7464032.css.map */
_proc/_docs/site_libs/quarto-html/quarto.js ADDED
@@ -0,0 +1,902 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const sectionChanged = new CustomEvent("quarto-sectionChanged", {
2
+ detail: {},
3
+ bubbles: true,
4
+ cancelable: false,
5
+ composed: false,
6
+ });
7
+
8
+ const layoutMarginEls = () => {
9
+ // Find any conflicting margin elements and add margins to the
10
+ // top to prevent overlap
11
+ const marginChildren = window.document.querySelectorAll(
12
+ ".column-margin.column-container > * "
13
+ );
14
+
15
+ let lastBottom = 0;
16
+ for (const marginChild of marginChildren) {
17
+ if (marginChild.offsetParent !== null) {
18
+ // clear the top margin so we recompute it
19
+ marginChild.style.marginTop = null;
20
+ const top = marginChild.getBoundingClientRect().top + window.scrollY;
21
+ console.log({
22
+ childtop: marginChild.getBoundingClientRect().top,
23
+ scroll: window.scrollY,
24
+ top,
25
+ lastBottom,
26
+ });
27
+ if (top < lastBottom) {
28
+ const margin = lastBottom - top;
29
+ marginChild.style.marginTop = `${margin}px`;
30
+ }
31
+ const styles = window.getComputedStyle(marginChild);
32
+ const marginTop = parseFloat(styles["marginTop"]);
33
+
34
+ console.log({
35
+ top,
36
+ height: marginChild.getBoundingClientRect().height,
37
+ marginTop,
38
+ total: top + marginChild.getBoundingClientRect().height + marginTop,
39
+ });
40
+ lastBottom = top + marginChild.getBoundingClientRect().height + marginTop;
41
+ }
42
+ }
43
+ };
44
+
45
+ window.document.addEventListener("DOMContentLoaded", function (_event) {
46
+ // Recompute the position of margin elements anytime the body size changes
47
+ if (window.ResizeObserver) {
48
+ const resizeObserver = new window.ResizeObserver(
49
+ throttle(layoutMarginEls, 50)
50
+ );
51
+ resizeObserver.observe(window.document.body);
52
+ }
53
+
54
+ const tocEl = window.document.querySelector('nav.toc-active[role="doc-toc"]');
55
+ const sidebarEl = window.document.getElementById("quarto-sidebar");
56
+ const leftTocEl = window.document.getElementById("quarto-sidebar-toc-left");
57
+ const marginSidebarEl = window.document.getElementById(
58
+ "quarto-margin-sidebar"
59
+ );
60
+ // function to determine whether the element has a previous sibling that is active
61
+ const prevSiblingIsActiveLink = (el) => {
62
+ const sibling = el.previousElementSibling;
63
+ if (sibling && sibling.tagName === "A") {
64
+ return sibling.classList.contains("active");
65
+ } else {
66
+ return false;
67
+ }
68
+ };
69
+
70
+ // fire slideEnter for bootstrap tab activations (for htmlwidget resize behavior)
71
+ function fireSlideEnter(e) {
72
+ const event = window.document.createEvent("Event");
73
+ event.initEvent("slideenter", true, true);
74
+ window.document.dispatchEvent(event);
75
+ }
76
+ const tabs = window.document.querySelectorAll('a[data-bs-toggle="tab"]');
77
+ tabs.forEach((tab) => {
78
+ tab.addEventListener("shown.bs.tab", fireSlideEnter);
79
+ });
80
+
81
+ // fire slideEnter for tabby tab activations (for htmlwidget resize behavior)
82
+ document.addEventListener("tabby", fireSlideEnter, false);
83
+
84
+ // Track scrolling and mark TOC links as active
85
+ // get table of contents and sidebar (bail if we don't have at least one)
86
+ const tocLinks = tocEl
87
+ ? [...tocEl.querySelectorAll("a[data-scroll-target]")]
88
+ : [];
89
+ const makeActive = (link) => tocLinks[link].classList.add("active");
90
+ const removeActive = (link) => tocLinks[link].classList.remove("active");
91
+ const removeAllActive = () =>
92
+ [...Array(tocLinks.length).keys()].forEach((link) => removeActive(link));
93
+
94
+ // activate the anchor for a section associated with this TOC entry
95
+ tocLinks.forEach((link) => {
96
+ link.addEventListener("click", () => {
97
+ if (link.href.indexOf("#") !== -1) {
98
+ const anchor = link.href.split("#")[1];
99
+ const heading = window.document.querySelector(
100
+ `[data-anchor-id=${anchor}]`
101
+ );
102
+ if (heading) {
103
+ // Add the class
104
+ heading.classList.add("reveal-anchorjs-link");
105
+
106
+ // function to show the anchor
107
+ const handleMouseout = () => {
108
+ heading.classList.remove("reveal-anchorjs-link");
109
+ heading.removeEventListener("mouseout", handleMouseout);
110
+ };
111
+
112
+ // add a function to clear the anchor when the user mouses out of it
113
+ heading.addEventListener("mouseout", handleMouseout);
114
+ }
115
+ }
116
+ });
117
+ });
118
+
119
+ const sections = tocLinks.map((link) => {
120
+ const target = link.getAttribute("data-scroll-target");
121
+ if (target.startsWith("#")) {
122
+ return window.document.getElementById(decodeURI(`${target.slice(1)}`));
123
+ } else {
124
+ return window.document.querySelector(decodeURI(`${target}`));
125
+ }
126
+ });
127
+
128
+ const sectionMargin = 200;
129
+ let currentActive = 0;
130
+ // track whether we've initialized state the first time
131
+ let init = false;
132
+
133
+ const updateActiveLink = () => {
134
+ // The index from bottom to top (e.g. reversed list)
135
+ let sectionIndex = -1;
136
+ if (
137
+ window.innerHeight + window.pageYOffset >=
138
+ window.document.body.offsetHeight
139
+ ) {
140
+ sectionIndex = 0;
141
+ } else {
142
+ sectionIndex = [...sections].reverse().findIndex((section) => {
143
+ if (section) {
144
+ return window.pageYOffset >= section.offsetTop - sectionMargin;
145
+ } else {
146
+ return false;
147
+ }
148
+ });
149
+ }
150
+ if (sectionIndex > -1) {
151
+ const current = sections.length - sectionIndex - 1;
152
+ if (current !== currentActive) {
153
+ removeAllActive();
154
+ currentActive = current;
155
+ makeActive(current);
156
+ if (init) {
157
+ window.dispatchEvent(sectionChanged);
158
+ }
159
+ init = true;
160
+ }
161
+ }
162
+ };
163
+
164
+ const inHiddenRegion = (top, bottom, hiddenRegions) => {
165
+ for (const region of hiddenRegions) {
166
+ if (top <= region.bottom && bottom >= region.top) {
167
+ return true;
168
+ }
169
+ }
170
+ return false;
171
+ };
172
+
173
+ const categorySelector = "header.quarto-title-block .quarto-category";
174
+ const activateCategories = (href) => {
175
+ // Find any categories
176
+ // Surround them with a link pointing back to:
177
+ // #category=Authoring
178
+ try {
179
+ const categoryEls = window.document.querySelectorAll(categorySelector);
180
+ for (const categoryEl of categoryEls) {
181
+ const categoryText = categoryEl.textContent;
182
+ if (categoryText) {
183
+ const link = `${href}#category=${encodeURIComponent(categoryText)}`;
184
+ const linkEl = window.document.createElement("a");
185
+ linkEl.setAttribute("href", link);
186
+ for (const child of categoryEl.childNodes) {
187
+ linkEl.append(child);
188
+ }
189
+ categoryEl.appendChild(linkEl);
190
+ }
191
+ }
192
+ } catch {
193
+ // Ignore errors
194
+ }
195
+ };
196
+ function hasTitleCategories() {
197
+ return window.document.querySelector(categorySelector) !== null;
198
+ }
199
+
200
+ function offsetRelativeUrl(url) {
201
+ const offset = getMeta("quarto:offset");
202
+ return offset ? offset + url : url;
203
+ }
204
+
205
+ function offsetAbsoluteUrl(url) {
206
+ const offset = getMeta("quarto:offset");
207
+ const baseUrl = new URL(offset, window.location);
208
+
209
+ const projRelativeUrl = url.replace(baseUrl, "");
210
+ if (projRelativeUrl.startsWith("/")) {
211
+ return projRelativeUrl;
212
+ } else {
213
+ return "/" + projRelativeUrl;
214
+ }
215
+ }
216
+
217
+ // read a meta tag value
218
+ function getMeta(metaName) {
219
+ const metas = window.document.getElementsByTagName("meta");
220
+ for (let i = 0; i < metas.length; i++) {
221
+ if (metas[i].getAttribute("name") === metaName) {
222
+ return metas[i].getAttribute("content");
223
+ }
224
+ }
225
+ return "";
226
+ }
227
+
228
+ async function findAndActivateCategories() {
229
+ const currentPagePath = offsetAbsoluteUrl(window.location.href);
230
+ const response = await fetch(offsetRelativeUrl("listings.json"));
231
+ if (response.status == 200) {
232
+ return response.json().then(function (listingPaths) {
233
+ const listingHrefs = [];
234
+ for (const listingPath of listingPaths) {
235
+ const pathWithoutLeadingSlash = listingPath.listing.substring(1);
236
+ for (const item of listingPath.items) {
237
+ if (
238
+ item === currentPagePath ||
239
+ item === currentPagePath + "index.html"
240
+ ) {
241
+ // Resolve this path against the offset to be sure
242
+ // we already are using the correct path to the listing
243
+ // (this adjusts the listing urls to be rooted against
244
+ // whatever root the page is actually running against)
245
+ const relative = offsetRelativeUrl(pathWithoutLeadingSlash);
246
+ const baseUrl = window.location;
247
+ const resolvedPath = new URL(relative, baseUrl);
248
+ listingHrefs.push(resolvedPath.pathname);
249
+ break;
250
+ }
251
+ }
252
+ }
253
+
254
+ // Look up the tree for a nearby linting and use that if we find one
255
+ const nearestListing = findNearestParentListing(
256
+ offsetAbsoluteUrl(window.location.pathname),
257
+ listingHrefs
258
+ );
259
+ if (nearestListing) {
260
+ activateCategories(nearestListing);
261
+ } else {
262
+ // See if the referrer is a listing page for this item
263
+ const referredRelativePath = offsetAbsoluteUrl(document.referrer);
264
+ const referrerListing = listingHrefs.find((listingHref) => {
265
+ const isListingReferrer =
266
+ listingHref === referredRelativePath ||
267
+ listingHref === referredRelativePath + "index.html";
268
+ return isListingReferrer;
269
+ });
270
+
271
+ if (referrerListing) {
272
+ // Try to use the referrer if possible
273
+ activateCategories(referrerListing);
274
+ } else if (listingHrefs.length > 0) {
275
+ // Otherwise, just fall back to the first listing
276
+ activateCategories(listingHrefs[0]);
277
+ }
278
+ }
279
+ });
280
+ }
281
+ }
282
+ if (hasTitleCategories()) {
283
+ findAndActivateCategories();
284
+ }
285
+
286
+ const findNearestParentListing = (href, listingHrefs) => {
287
+ if (!href || !listingHrefs) {
288
+ return undefined;
289
+ }
290
+ // Look up the tree for a nearby linting and use that if we find one
291
+ const relativeParts = href.substring(1).split("/");
292
+ while (relativeParts.length > 0) {
293
+ const path = relativeParts.join("/");
294
+ for (const listingHref of listingHrefs) {
295
+ if (listingHref.startsWith(path)) {
296
+ return listingHref;
297
+ }
298
+ }
299
+ relativeParts.pop();
300
+ }
301
+
302
+ return undefined;
303
+ };
304
+
305
+ const manageSidebarVisiblity = (el, placeholderDescriptor) => {
306
+ let isVisible = true;
307
+ let elRect;
308
+
309
+ return (hiddenRegions) => {
310
+ if (el === null) {
311
+ return;
312
+ }
313
+
314
+ // Find the last element of the TOC
315
+ const lastChildEl = el.lastElementChild;
316
+
317
+ if (lastChildEl) {
318
+ // Converts the sidebar to a menu
319
+ const convertToMenu = () => {
320
+ for (const child of el.children) {
321
+ child.style.opacity = 0;
322
+ child.style.overflow = "hidden";
323
+ }
324
+
325
+ nexttick(() => {
326
+ const toggleContainer = window.document.createElement("div");
327
+ toggleContainer.style.width = "100%";
328
+ toggleContainer.classList.add("zindex-over-content");
329
+ toggleContainer.classList.add("quarto-sidebar-toggle");
330
+ toggleContainer.classList.add("headroom-target"); // Marks this to be managed by headeroom
331
+ toggleContainer.id = placeholderDescriptor.id;
332
+ toggleContainer.style.position = "fixed";
333
+
334
+ const toggleIcon = window.document.createElement("i");
335
+ toggleIcon.classList.add("quarto-sidebar-toggle-icon");
336
+ toggleIcon.classList.add("bi");
337
+ toggleIcon.classList.add("bi-caret-down-fill");
338
+
339
+ const toggleTitle = window.document.createElement("div");
340
+ const titleEl = window.document.body.querySelector(
341
+ placeholderDescriptor.titleSelector
342
+ );
343
+ if (titleEl) {
344
+ toggleTitle.append(
345
+ titleEl.textContent || titleEl.innerText,
346
+ toggleIcon
347
+ );
348
+ }
349
+ toggleTitle.classList.add("zindex-over-content");
350
+ toggleTitle.classList.add("quarto-sidebar-toggle-title");
351
+ toggleContainer.append(toggleTitle);
352
+
353
+ const toggleContents = window.document.createElement("div");
354
+ toggleContents.classList = el.classList;
355
+ toggleContents.classList.add("zindex-over-content");
356
+ toggleContents.classList.add("quarto-sidebar-toggle-contents");
357
+ for (const child of el.children) {
358
+ if (child.id === "toc-title") {
359
+ continue;
360
+ }
361
+
362
+ const clone = child.cloneNode(true);
363
+ clone.style.opacity = 1;
364
+ clone.style.display = null;
365
+ toggleContents.append(clone);
366
+ }
367
+ toggleContents.style.height = "0px";
368
+ const positionToggle = () => {
369
+ // position the element (top left of parent, same width as parent)
370
+ if (!elRect) {
371
+ elRect = el.getBoundingClientRect();
372
+ }
373
+ toggleContainer.style.left = `${elRect.left}px`;
374
+ toggleContainer.style.top = `${elRect.top}px`;
375
+ toggleContainer.style.width = `${elRect.width}px`;
376
+ };
377
+ positionToggle();
378
+
379
+ toggleContainer.append(toggleContents);
380
+ el.parentElement.prepend(toggleContainer);
381
+
382
+ // Process clicks
383
+ let tocShowing = false;
384
+ // Allow the caller to control whether this is dismissed
385
+ // when it is clicked (e.g. sidebar navigation supports
386
+ // opening and closing the nav tree, so don't dismiss on click)
387
+ const clickEl = placeholderDescriptor.dismissOnClick
388
+ ? toggleContainer
389
+ : toggleTitle;
390
+
391
+ const closeToggle = () => {
392
+ if (tocShowing) {
393
+ toggleContainer.classList.remove("expanded");
394
+ toggleContents.style.height = "0px";
395
+ tocShowing = false;
396
+ }
397
+ };
398
+
399
+ // Get rid of any expanded toggle if the user scrolls
400
+ window.document.addEventListener(
401
+ "scroll",
402
+ throttle(() => {
403
+ closeToggle();
404
+ }, 50)
405
+ );
406
+
407
+ // Handle positioning of the toggle
408
+ window.addEventListener(
409
+ "resize",
410
+ throttle(() => {
411
+ elRect = undefined;
412
+ positionToggle();
413
+ }, 50)
414
+ );
415
+
416
+ window.addEventListener("quarto-hrChanged", () => {
417
+ elRect = undefined;
418
+ });
419
+
420
+ // Process the click
421
+ clickEl.onclick = () => {
422
+ if (!tocShowing) {
423
+ toggleContainer.classList.add("expanded");
424
+ toggleContents.style.height = null;
425
+ tocShowing = true;
426
+ } else {
427
+ closeToggle();
428
+ }
429
+ };
430
+ });
431
+ };
432
+
433
+ // Converts a sidebar from a menu back to a sidebar
434
+ const convertToSidebar = () => {
435
+ for (const child of el.children) {
436
+ child.style.opacity = 1;
437
+ child.style.overflow = null;
438
+ }
439
+
440
+ const placeholderEl = window.document.getElementById(
441
+ placeholderDescriptor.id
442
+ );
443
+ if (placeholderEl) {
444
+ placeholderEl.remove();
445
+ }
446
+
447
+ el.classList.remove("rollup");
448
+ };
449
+
450
+ if (isReaderMode()) {
451
+ convertToMenu();
452
+ isVisible = false;
453
+ } else {
454
+ // Find the top and bottom o the element that is being managed
455
+ const elTop = el.offsetTop;
456
+ const elBottom =
457
+ elTop + lastChildEl.offsetTop + lastChildEl.offsetHeight;
458
+
459
+ if (!isVisible) {
460
+ // If the element is current not visible reveal if there are
461
+ // no conflicts with overlay regions
462
+ if (!inHiddenRegion(elTop, elBottom, hiddenRegions)) {
463
+ convertToSidebar();
464
+ isVisible = true;
465
+ }
466
+ } else {
467
+ // If the element is visible, hide it if it conflicts with overlay regions
468
+ // and insert a placeholder toggle (or if we're in reader mode)
469
+ if (inHiddenRegion(elTop, elBottom, hiddenRegions)) {
470
+ convertToMenu();
471
+ isVisible = false;
472
+ }
473
+ }
474
+ }
475
+ }
476
+ };
477
+ };
478
+
479
+ const tabEls = document.querySelectorAll('a[data-bs-toggle="tab"]');
480
+ for (const tabEl of tabEls) {
481
+ const id = tabEl.getAttribute("data-bs-target");
482
+ if (id) {
483
+ const columnEl = document.querySelector(
484
+ `${id} .column-margin, .tabset-margin-content`
485
+ );
486
+ if (columnEl)
487
+ tabEl.addEventListener("shown.bs.tab", function (event) {
488
+ const el = event.srcElement;
489
+ if (el) {
490
+ const visibleCls = `${el.id}-margin-content`;
491
+ // walk up until we find a parent tabset
492
+ let panelTabsetEl = el.parentElement;
493
+ while (panelTabsetEl) {
494
+ if (panelTabsetEl.classList.contains("panel-tabset")) {
495
+ break;
496
+ }
497
+ panelTabsetEl = panelTabsetEl.parentElement;
498
+ }
499
+
500
+ if (panelTabsetEl) {
501
+ const prevSib = panelTabsetEl.previousElementSibling;
502
+ if (
503
+ prevSib &&
504
+ prevSib.classList.contains("tabset-margin-container")
505
+ ) {
506
+ const childNodes = prevSib.querySelectorAll(
507
+ ".tabset-margin-content"
508
+ );
509
+ for (const childEl of childNodes) {
510
+ if (childEl.classList.contains(visibleCls)) {
511
+ childEl.classList.remove("collapse");
512
+ } else {
513
+ childEl.classList.add("collapse");
514
+ }
515
+ }
516
+ }
517
+ }
518
+ }
519
+
520
+ layoutMarginEls();
521
+ });
522
+ }
523
+ }
524
+
525
+ // Manage the visibility of the toc and the sidebar
526
+ const marginScrollVisibility = manageSidebarVisiblity(marginSidebarEl, {
527
+ id: "quarto-toc-toggle",
528
+ titleSelector: "#toc-title",
529
+ dismissOnClick: true,
530
+ });
531
+ const sidebarScrollVisiblity = manageSidebarVisiblity(sidebarEl, {
532
+ id: "quarto-sidebarnav-toggle",
533
+ titleSelector: ".title",
534
+ dismissOnClick: false,
535
+ });
536
+ let tocLeftScrollVisibility;
537
+ if (leftTocEl) {
538
+ tocLeftScrollVisibility = manageSidebarVisiblity(leftTocEl, {
539
+ id: "quarto-lefttoc-toggle",
540
+ titleSelector: "#toc-title",
541
+ dismissOnClick: true,
542
+ });
543
+ }
544
+
545
+ // Find the first element that uses formatting in special columns
546
+ const conflictingEls = window.document.body.querySelectorAll(
547
+ '[class^="column-"], [class*=" column-"], aside, [class*="margin-caption"], [class*=" margin-caption"], [class*="margin-ref"], [class*=" margin-ref"]'
548
+ );
549
+
550
+ // Filter all the possibly conflicting elements into ones
551
+ // the do conflict on the left or ride side
552
+ const arrConflictingEls = Array.from(conflictingEls);
553
+ const leftSideConflictEls = arrConflictingEls.filter((el) => {
554
+ if (el.tagName === "ASIDE") {
555
+ return false;
556
+ }
557
+ return Array.from(el.classList).find((className) => {
558
+ return (
559
+ className !== "column-body" &&
560
+ className.startsWith("column-") &&
561
+ !className.endsWith("right") &&
562
+ !className.endsWith("container") &&
563
+ className !== "column-margin"
564
+ );
565
+ });
566
+ });
567
+ const rightSideConflictEls = arrConflictingEls.filter((el) => {
568
+ if (el.tagName === "ASIDE") {
569
+ return true;
570
+ }
571
+
572
+ const hasMarginCaption = Array.from(el.classList).find((className) => {
573
+ return className == "margin-caption";
574
+ });
575
+ if (hasMarginCaption) {
576
+ return true;
577
+ }
578
+
579
+ return Array.from(el.classList).find((className) => {
580
+ return (
581
+ className !== "column-body" &&
582
+ !className.endsWith("container") &&
583
+ className.startsWith("column-") &&
584
+ !className.endsWith("left")
585
+ );
586
+ });
587
+ });
588
+
589
+ const kOverlapPaddingSize = 10;
590
+ function toRegions(els) {
591
+ return els.map((el) => {
592
+ const boundRect = el.getBoundingClientRect();
593
+ const top =
594
+ boundRect.top +
595
+ document.documentElement.scrollTop -
596
+ kOverlapPaddingSize;
597
+ return {
598
+ top,
599
+ bottom: top + el.scrollHeight + 2 * kOverlapPaddingSize,
600
+ };
601
+ });
602
+ }
603
+
604
+ let hasObserved = false;
605
+ const visibleItemObserver = (els) => {
606
+ let visibleElements = [...els];
607
+ const intersectionObserver = new IntersectionObserver(
608
+ (entries, _observer) => {
609
+ entries.forEach((entry) => {
610
+ if (entry.isIntersecting) {
611
+ if (visibleElements.indexOf(entry.target) === -1) {
612
+ visibleElements.push(entry.target);
613
+ }
614
+ } else {
615
+ visibleElements = visibleElements.filter((visibleEntry) => {
616
+ return visibleEntry !== entry;
617
+ });
618
+ }
619
+ });
620
+
621
+ if (!hasObserved) {
622
+ hideOverlappedSidebars();
623
+ }
624
+ hasObserved = true;
625
+ },
626
+ {}
627
+ );
628
+ els.forEach((el) => {
629
+ intersectionObserver.observe(el);
630
+ });
631
+
632
+ return {
633
+ getVisibleEntries: () => {
634
+ return visibleElements;
635
+ },
636
+ };
637
+ };
638
+
639
+ const rightElementObserver = visibleItemObserver(rightSideConflictEls);
640
+ const leftElementObserver = visibleItemObserver(leftSideConflictEls);
641
+
642
+ const hideOverlappedSidebars = () => {
643
+ marginScrollVisibility(toRegions(rightElementObserver.getVisibleEntries()));
644
+ sidebarScrollVisiblity(toRegions(leftElementObserver.getVisibleEntries()));
645
+ if (tocLeftScrollVisibility) {
646
+ tocLeftScrollVisibility(
647
+ toRegions(leftElementObserver.getVisibleEntries())
648
+ );
649
+ }
650
+ };
651
+
652
+ window.quartoToggleReader = () => {
653
+ // Applies a slow class (or removes it)
654
+ // to update the transition speed
655
+ const slowTransition = (slow) => {
656
+ const manageTransition = (id, slow) => {
657
+ const el = document.getElementById(id);
658
+ if (el) {
659
+ if (slow) {
660
+ el.classList.add("slow");
661
+ } else {
662
+ el.classList.remove("slow");
663
+ }
664
+ }
665
+ };
666
+
667
+ manageTransition("TOC", slow);
668
+ manageTransition("quarto-sidebar", slow);
669
+ };
670
+ const readerMode = !isReaderMode();
671
+ setReaderModeValue(readerMode);
672
+
673
+ // If we're entering reader mode, slow the transition
674
+ if (readerMode) {
675
+ slowTransition(readerMode);
676
+ }
677
+ highlightReaderToggle(readerMode);
678
+ hideOverlappedSidebars();
679
+
680
+ // If we're exiting reader mode, restore the non-slow transition
681
+ if (!readerMode) {
682
+ slowTransition(!readerMode);
683
+ }
684
+ };
685
+
686
+ const highlightReaderToggle = (readerMode) => {
687
+ const els = document.querySelectorAll(".quarto-reader-toggle");
688
+ if (els) {
689
+ els.forEach((el) => {
690
+ if (readerMode) {
691
+ el.classList.add("reader");
692
+ } else {
693
+ el.classList.remove("reader");
694
+ }
695
+ });
696
+ }
697
+ };
698
+
699
+ const setReaderModeValue = (val) => {
700
+ if (window.location.protocol !== "file:") {
701
+ window.localStorage.setItem("quarto-reader-mode", val);
702
+ } else {
703
+ localReaderMode = val;
704
+ }
705
+ };
706
+
707
+ const isReaderMode = () => {
708
+ if (window.location.protocol !== "file:") {
709
+ return window.localStorage.getItem("quarto-reader-mode") === "true";
710
+ } else {
711
+ return localReaderMode;
712
+ }
713
+ };
714
+ let localReaderMode = null;
715
+
716
+ const tocOpenDepthStr = tocEl?.getAttribute("data-toc-expanded");
717
+ const tocOpenDepth = tocOpenDepthStr ? Number(tocOpenDepthStr) : 1;
718
+
719
+ // Walk the TOC and collapse/expand nodes
720
+ // Nodes are expanded if:
721
+ // - they are top level
722
+ // - they have children that are 'active' links
723
+ // - they are directly below an link that is 'active'
724
+ const walk = (el, depth) => {
725
+ // Tick depth when we enter a UL
726
+ if (el.tagName === "UL") {
727
+ depth = depth + 1;
728
+ }
729
+
730
+ // It this is active link
731
+ let isActiveNode = false;
732
+ if (el.tagName === "A" && el.classList.contains("active")) {
733
+ isActiveNode = true;
734
+ }
735
+
736
+ // See if there is an active child to this element
737
+ let hasActiveChild = false;
738
+ for (child of el.children) {
739
+ hasActiveChild = walk(child, depth) || hasActiveChild;
740
+ }
741
+
742
+ // Process the collapse state if this is an UL
743
+ if (el.tagName === "UL") {
744
+ if (tocOpenDepth === -1 && depth > 1) {
745
+ el.classList.add("collapse");
746
+ } else if (
747
+ depth <= tocOpenDepth ||
748
+ hasActiveChild ||
749
+ prevSiblingIsActiveLink(el)
750
+ ) {
751
+ el.classList.remove("collapse");
752
+ } else {
753
+ el.classList.add("collapse");
754
+ }
755
+
756
+ // untick depth when we leave a UL
757
+ depth = depth - 1;
758
+ }
759
+ return hasActiveChild || isActiveNode;
760
+ };
761
+
762
+ // walk the TOC and expand / collapse any items that should be shown
763
+
764
+ if (tocEl) {
765
+ walk(tocEl, 0);
766
+ updateActiveLink();
767
+ }
768
+
769
+ // Throttle the scroll event and walk peridiocally
770
+ window.document.addEventListener(
771
+ "scroll",
772
+ throttle(() => {
773
+ if (tocEl) {
774
+ updateActiveLink();
775
+ walk(tocEl, 0);
776
+ }
777
+ if (!isReaderMode()) {
778
+ hideOverlappedSidebars();
779
+ }
780
+ }, 5)
781
+ );
782
+ window.addEventListener(
783
+ "resize",
784
+ throttle(() => {
785
+ if (!isReaderMode()) {
786
+ hideOverlappedSidebars();
787
+ }
788
+ }, 10)
789
+ );
790
+ hideOverlappedSidebars();
791
+ highlightReaderToggle(isReaderMode());
792
+ });
793
+
794
+ // grouped tabsets
795
+ window.addEventListener("pageshow", (_event) => {
796
+ function getTabSettings() {
797
+ const data = localStorage.getItem("quarto-persistent-tabsets-data");
798
+ if (!data) {
799
+ localStorage.setItem("quarto-persistent-tabsets-data", "{}");
800
+ return {};
801
+ }
802
+ if (data) {
803
+ return JSON.parse(data);
804
+ }
805
+ }
806
+
807
+ function setTabSettings(data) {
808
+ localStorage.setItem(
809
+ "quarto-persistent-tabsets-data",
810
+ JSON.stringify(data)
811
+ );
812
+ }
813
+
814
+ function setTabState(groupName, groupValue) {
815
+ const data = getTabSettings();
816
+ data[groupName] = groupValue;
817
+ setTabSettings(data);
818
+ }
819
+
820
+ function toggleTab(tab, active) {
821
+ const tabPanelId = tab.getAttribute("aria-controls");
822
+ const tabPanel = document.getElementById(tabPanelId);
823
+ if (active) {
824
+ tab.classList.add("active");
825
+ tabPanel.classList.add("active");
826
+ } else {
827
+ tab.classList.remove("active");
828
+ tabPanel.classList.remove("active");
829
+ }
830
+ }
831
+
832
+ function toggleAll(selectedGroup, selectorsToSync) {
833
+ for (const [thisGroup, tabs] of Object.entries(selectorsToSync)) {
834
+ const active = selectedGroup === thisGroup;
835
+ for (const tab of tabs) {
836
+ toggleTab(tab, active);
837
+ }
838
+ }
839
+ }
840
+
841
+ function findSelectorsToSyncByLanguage() {
842
+ const result = {};
843
+ const tabs = Array.from(
844
+ document.querySelectorAll(`div[data-group] a[id^='tabset-']`)
845
+ );
846
+ for (const item of tabs) {
847
+ const div = item.parentElement.parentElement.parentElement;
848
+ const group = div.getAttribute("data-group");
849
+ if (!result[group]) {
850
+ result[group] = {};
851
+ }
852
+ const selectorsToSync = result[group];
853
+ const value = item.innerHTML;
854
+ if (!selectorsToSync[value]) {
855
+ selectorsToSync[value] = [];
856
+ }
857
+ selectorsToSync[value].push(item);
858
+ }
859
+ return result;
860
+ }
861
+
862
+ function setupSelectorSync() {
863
+ const selectorsToSync = findSelectorsToSyncByLanguage();
864
+ Object.entries(selectorsToSync).forEach(([group, tabSetsByValue]) => {
865
+ Object.entries(tabSetsByValue).forEach(([value, items]) => {
866
+ items.forEach((item) => {
867
+ item.addEventListener("click", (_event) => {
868
+ setTabState(group, value);
869
+ toggleAll(value, selectorsToSync[group]);
870
+ });
871
+ });
872
+ });
873
+ });
874
+ return selectorsToSync;
875
+ }
876
+
877
+ const selectorsToSync = setupSelectorSync();
878
+ for (const [group, selectedName] of Object.entries(getTabSettings())) {
879
+ const selectors = selectorsToSync[group];
880
+ // it's possible that stale state gives us empty selections, so we explicitly check here.
881
+ if (selectors) {
882
+ toggleAll(selectedName, selectors);
883
+ }
884
+ }
885
+ });
886
+
887
+ function throttle(func, wait) {
888
+ let waiting = false;
889
+ return function () {
890
+ if (!waiting) {
891
+ func.apply(this, arguments);
892
+ waiting = true;
893
+ setTimeout(function () {
894
+ waiting = false;
895
+ }, wait);
896
+ }
897
+ };
898
+ }
899
+
900
+ function nexttick(func) {
901
+ return setTimeout(func, 0);
902
+ }
_proc/_docs/site_libs/quarto-html/tippy.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}
_proc/_docs/site_libs/quarto-html/tippy.umd.min.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e=e||self).tippy=t(e.Popper)}(this,(function(e){"use strict";var t={passive:!0,capture:!0},n=function(){return document.body};function r(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function o(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function i(e,t){return"function"==typeof e?e.apply(void 0,t):e}function a(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function s(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function u(e){return[].concat(e)}function c(e,t){-1===e.indexOf(t)&&e.push(t)}function p(e){return e.split("-")[0]}function f(e){return[].slice.call(e)}function l(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function d(){return document.createElement("div")}function v(e){return["Element","Fragment"].some((function(t){return o(e,t)}))}function m(e){return o(e,"MouseEvent")}function g(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function h(e){return v(e)?[e]:function(e){return o(e,"NodeList")}(e)?f(e):Array.isArray(e)?e:f(document.querySelectorAll(e))}function b(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function y(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function w(e){var t,n=u(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function E(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function O(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var x={isTouch:!1},C=0;function T(){x.isTouch||(x.isTouch=!0,window.performance&&document.addEventListener("mousemove",A))}function A(){var e=performance.now();e-C<20&&(x.isTouch=!1,document.removeEventListener("mousemove",A)),C=e}function L(){var e=document.activeElement;if(g(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var D=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,R=Object.assign({appendTo:n,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),k=Object.keys(R);function P(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=R[o])?r:i);return t}),{});return Object.assign({},e,t)}function j(e,t){var n=Object.assign({},t,{content:i(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(P(Object.assign({},R,{plugins:t}))):k).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},R.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function M(e,t){e.innerHTML=t}function V(e){var t=d();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",v(e)?t.appendChild(e):M(t,e)),t}function I(e,t){v(t.content)?(M(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?M(e,t.content):e.textContent=t.content)}function S(e){var t=e.firstElementChild,n=f(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function N(e){var t=d(),n=d();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=d();function o(n,r){var o=S(t),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||I(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(V(r.arrow))):i.appendChild(V(r.arrow)):s&&i.removeChild(s)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),I(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}N.$$tippy=!0;var B=1,H=[],U=[];function _(o,s){var v,g,h,C,T,A,L,k,M=j(o,Object.assign({},R,P(l(s)))),V=!1,I=!1,N=!1,_=!1,F=[],W=a(we,M.interactiveDebounce),X=B++,Y=(k=M.plugins).filter((function(e,t){return k.indexOf(e)===t})),$={id:X,reference:o,popper:d(),popperInstance:null,props:M,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:Y,clearDelayTimeouts:function(){clearTimeout(v),clearTimeout(g),cancelAnimationFrame(h)},setProps:function(e){if($.state.isDestroyed)return;ae("onBeforeUpdate",[$,e]),be();var t=$.props,n=j(o,Object.assign({},t,l(e),{ignoreAttributes:!0}));$.props=n,he(),t.interactiveDebounce!==n.interactiveDebounce&&(ce(),W=a(we,n.interactiveDebounce));t.triggerTarget&&!n.triggerTarget?u(t.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&o.removeAttribute("aria-expanded");ue(),ie(),J&&J(t,n);$.popperInstance&&(Ce(),Ae().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));ae("onAfterUpdate",[$,e])},setContent:function(e){$.setProps({content:e})},show:function(){var e=$.state.isVisible,t=$.state.isDestroyed,o=!$.state.isEnabled,a=x.isTouch&&!$.props.touch,s=r($.props.duration,0,R.duration);if(e||t||o||a)return;if(te().hasAttribute("disabled"))return;if(ae("onShow",[$],!1),!1===$.props.onShow($))return;$.state.isVisible=!0,ee()&&(z.style.visibility="visible");ie(),de(),$.state.isMounted||(z.style.transition="none");if(ee()){var u=re(),p=u.box,f=u.content;b([p,f],0)}A=function(){var e;if($.state.isVisible&&!_){if(_=!0,z.offsetHeight,z.style.transition=$.props.moveTransition,ee()&&$.props.animation){var t=re(),n=t.box,r=t.content;b([n,r],s),y([n,r],"visible")}se(),ue(),c(U,$),null==(e=$.popperInstance)||e.forceUpdate(),ae("onMount",[$]),$.props.animation&&ee()&&function(e,t){me(e,t)}(s,(function(){$.state.isShown=!0,ae("onShown",[$])}))}},function(){var e,t=$.props.appendTo,r=te();e=$.props.interactive&&t===n||"parent"===t?r.parentNode:i(t,[r]);e.contains(z)||e.appendChild(z);$.state.isMounted=!0,Ce()}()},hide:function(){var e=!$.state.isVisible,t=$.state.isDestroyed,n=!$.state.isEnabled,o=r($.props.duration,1,R.duration);if(e||t||n)return;if(ae("onHide",[$],!1),!1===$.props.onHide($))return;$.state.isVisible=!1,$.state.isShown=!1,_=!1,V=!1,ee()&&(z.style.visibility="hidden");if(ce(),ve(),ie(!0),ee()){var i=re(),a=i.box,s=i.content;$.props.animation&&(b([a,s],o),y([a,s],"hidden"))}se(),ue(),$.props.animation?ee()&&function(e,t){me(e,(function(){!$.state.isVisible&&z.parentNode&&z.parentNode.contains(z)&&t()}))}(o,$.unmount):$.unmount()},hideWithInteractivity:function(e){ne().addEventListener("mousemove",W),c(H,W),W(e)},enable:function(){$.state.isEnabled=!0},disable:function(){$.hide(),$.state.isEnabled=!1},unmount:function(){$.state.isVisible&&$.hide();if(!$.state.isMounted)return;Te(),Ae().forEach((function(e){e._tippy.unmount()})),z.parentNode&&z.parentNode.removeChild(z);U=U.filter((function(e){return e!==$})),$.state.isMounted=!1,ae("onHidden",[$])},destroy:function(){if($.state.isDestroyed)return;$.clearDelayTimeouts(),$.unmount(),be(),delete o._tippy,$.state.isDestroyed=!0,ae("onDestroy",[$])}};if(!M.render)return $;var q=M.render($),z=q.popper,J=q.onUpdate;z.setAttribute("data-tippy-root",""),z.id="tippy-"+$.id,$.popper=z,o._tippy=$,z._tippy=$;var G=Y.map((function(e){return e.fn($)})),K=o.hasAttribute("aria-expanded");return he(),ue(),ie(),ae("onCreate",[$]),M.showOnCreate&&Le(),z.addEventListener("mouseenter",(function(){$.props.interactive&&$.state.isVisible&&$.clearDelayTimeouts()})),z.addEventListener("mouseleave",(function(){$.props.interactive&&$.props.trigger.indexOf("mouseenter")>=0&&ne().addEventListener("mousemove",W)})),$;function Q(){var e=$.props.touch;return Array.isArray(e)?e:[e,0]}function Z(){return"hold"===Q()[0]}function ee(){var e;return!(null==(e=$.props.render)||!e.$$tippy)}function te(){return L||o}function ne(){var e=te().parentNode;return e?w(e):document}function re(){return S(z)}function oe(e){return $.state.isMounted&&!$.state.isVisible||x.isTouch||C&&"focus"===C.type?0:r($.props.delay,e?0:1,R.delay)}function ie(e){void 0===e&&(e=!1),z.style.pointerEvents=$.props.interactive&&!e?"":"none",z.style.zIndex=""+$.props.zIndex}function ae(e,t,n){var r;(void 0===n&&(n=!0),G.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=$.props)[e].apply(r,t)}function se(){var e=$.props.aria;if(e.content){var t="aria-"+e.content,n=z.id;u($.props.triggerTarget||o).forEach((function(e){var r=e.getAttribute(t);if($.state.isVisible)e.setAttribute(t,r?r+" "+n:n);else{var o=r&&r.replace(n,"").trim();o?e.setAttribute(t,o):e.removeAttribute(t)}}))}}function ue(){!K&&$.props.aria.expanded&&u($.props.triggerTarget||o).forEach((function(e){$.props.interactive?e.setAttribute("aria-expanded",$.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")}))}function ce(){ne().removeEventListener("mousemove",W),H=H.filter((function(e){return e!==W}))}function pe(e){if(!x.isTouch||!N&&"mousedown"!==e.type){var t=e.composedPath&&e.composedPath()[0]||e.target;if(!$.props.interactive||!O(z,t)){if(u($.props.triggerTarget||o).some((function(e){return O(e,t)}))){if(x.isTouch)return;if($.state.isVisible&&$.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[$,e]);!0===$.props.hideOnClick&&($.clearDelayTimeouts(),$.hide(),I=!0,setTimeout((function(){I=!1})),$.state.isMounted||ve())}}}function fe(){N=!0}function le(){N=!1}function de(){var e=ne();e.addEventListener("mousedown",pe,!0),e.addEventListener("touchend",pe,t),e.addEventListener("touchstart",le,t),e.addEventListener("touchmove",fe,t)}function ve(){var e=ne();e.removeEventListener("mousedown",pe,!0),e.removeEventListener("touchend",pe,t),e.removeEventListener("touchstart",le,t),e.removeEventListener("touchmove",fe,t)}function me(e,t){var n=re().box;function r(e){e.target===n&&(E(n,"remove",r),t())}if(0===e)return t();E(n,"remove",T),E(n,"add",r),T=r}function ge(e,t,n){void 0===n&&(n=!1),u($.props.triggerTarget||o).forEach((function(r){r.addEventListener(e,t,n),F.push({node:r,eventType:e,handler:t,options:n})}))}function he(){var e;Z()&&(ge("touchstart",ye,{passive:!0}),ge("touchend",Ee,{passive:!0})),(e=$.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ge(e,ye),e){case"mouseenter":ge("mouseleave",Ee);break;case"focus":ge(D?"focusout":"blur",Oe);break;case"focusin":ge("focusout",Oe)}}))}function be(){F.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),F=[]}function ye(e){var t,n=!1;if($.state.isEnabled&&!xe(e)&&!I){var r="focus"===(null==(t=C)?void 0:t.type);C=e,L=e.currentTarget,ue(),!$.state.isVisible&&m(e)&&H.forEach((function(t){return t(e)})),"click"===e.type&&($.props.trigger.indexOf("mouseenter")<0||V)&&!1!==$.props.hideOnClick&&$.state.isVisible?n=!0:Le(e),"click"===e.type&&(V=!n),n&&!r&&De(e)}}function we(e){var t=e.target,n=te().contains(t)||z.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=p(o.placement),s=o.modifiersData.offset;if(!s)return!0;var u="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,f="right"===a?s.left.x:0,l="left"===a?s.right.x:0,d=t.top-r+u>i,v=r-t.bottom-c>i,m=t.left-n+f>i,g=n-t.right-l>i;return d||v||m||g}))}(Ae().concat(z).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:M}:null})).filter(Boolean),e)&&(ce(),De(e))}function Ee(e){xe(e)||$.props.trigger.indexOf("click")>=0&&V||($.props.interactive?$.hideWithInteractivity(e):De(e))}function Oe(e){$.props.trigger.indexOf("focusin")<0&&e.target!==te()||$.props.interactive&&e.relatedTarget&&z.contains(e.relatedTarget)||De(e)}function xe(e){return!!x.isTouch&&Z()!==e.type.indexOf("touch")>=0}function Ce(){Te();var t=$.props,n=t.popperOptions,r=t.placement,i=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,u=ee()?S(z).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||te()}:o,p=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var n=re().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];ee()&&u&&p.push({name:"arrow",options:{element:u,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),$.popperInstance=e.createPopper(c,z,Object.assign({},n,{placement:r,onFirstUpdate:A,modifiers:p}))}function Te(){$.popperInstance&&($.popperInstance.destroy(),$.popperInstance=null)}function Ae(){return f(z.querySelectorAll("[data-tippy-root]"))}function Le(e){$.clearDelayTimeouts(),e&&ae("onTrigger",[$,e]),de();var t=oe(!0),n=Q(),r=n[0],o=n[1];x.isTouch&&"hold"===r&&o&&(t=o),t?v=setTimeout((function(){$.show()}),t):$.show()}function De(e){if($.clearDelayTimeouts(),ae("onUntrigger",[$,e]),$.state.isVisible){if(!($.props.trigger.indexOf("mouseenter")>=0&&$.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&V)){var t=oe(!1);t?g=setTimeout((function(){$.state.isVisible&&$.hide()}),t):h=requestAnimationFrame((function(){$.hide()}))}}else ve()}}function F(e,n){void 0===n&&(n={});var r=R.plugins.concat(n.plugins||[]);document.addEventListener("touchstart",T,t),window.addEventListener("blur",L);var o=Object.assign({},n,{plugins:r}),i=h(e).reduce((function(e,t){var n=t&&_(t,o);return n&&e.push(n),e}),[]);return v(e)?i[0]:i}F.defaultProps=R,F.setDefaultProps=function(e){Object.keys(e).forEach((function(t){R[t]=e[t]}))},F.currentInput=x;var W=Object.assign({},e.applyStyles,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),X={mouseover:"mouseenter",focusin:"focus",click:"click"};var Y={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return{};var n=S(e.popper),r=n.box,o=n.content,i=e.props.animateFill?function(){var e=d();return e.className="tippy-backdrop",y([e],"hidden"),e}():null;return{onCreate:function(){i&&(r.insertBefore(i,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var e=r.style.transitionDuration,t=Number(e.replace("ms",""));o.style.transitionDelay=Math.round(t/10)+"ms",i.style.transitionDuration=e,y([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&y([i],"hidden")}}}};var $={clientX:0,clientY:0},q=[];function z(e){var t=e.clientX,n=e.clientY;$={clientX:t,clientY:n}}var J={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=w(e.props.triggerTarget||t),r=!1,o=!1,i=!0,a=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function u(){n.addEventListener("mousemove",f)}function c(){n.removeEventListener("mousemove",f)}function p(){r=!0,e.setProps({getReferenceClientRect:null}),r=!1}function f(n){var r=!n.target||t.contains(n.target),o=e.props.followCursor,i=n.clientX,a=n.clientY,s=t.getBoundingClientRect(),u=i-s.left,c=a-s.top;!r&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=i,r=a;"initial"===o&&(n=e.left+u,r=e.top+c);var s="horizontal"===o?e.top:r,p="vertical"===o?e.right:n,f="horizontal"===o?e.bottom:r,l="vertical"===o?e.left:n;return{width:p-l,height:f-s,top:s,right:p,bottom:f,left:l}}})}function l(){e.props.followCursor&&(q.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",z)}(n))}function d(){0===(q=q.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",z)}(n)}return{onCreate:l,onDestroy:d,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var i=n.followCursor;r||void 0!==i&&a.followCursor!==i&&(d(),i?(l(),!e.state.isMounted||o||s()||u()):(c(),p()))},onMount:function(){e.props.followCursor&&!o&&(i&&(f($),i=!1),s()||u())},onTrigger:function(e,t){m(t)&&($={clientX:t.clientX,clientY:t.clientY}),o="focus"===t.type},onHidden:function(){e.props.followCursor&&(p(),c(),i=!0)}}}};var G={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference;var r=-1,o=!1,i=[],a={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(o){var a=o.state;e.props.inlinePositioning&&(-1!==i.indexOf(a.placement)&&(i=[]),t!==a.placement&&-1===i.indexOf(a.placement)&&(i.push(a.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,r){if(n.length<2||null===e)return t;if(2===n.length&&r>=0&&n[0].left>n[1].right)return n[r]||t;switch(e){case"top":case"bottom":var o=n[0],i=n[n.length-1],a="top"===e,s=o.top,u=i.bottom,c=a?o.left:i.left,p=a?o.right:i.right;return{top:s,bottom:u,left:c,right:p,width:p-c,height:u-s};case"left":case"right":var f=Math.min.apply(Math,n.map((function(e){return e.left}))),l=Math.max.apply(Math,n.map((function(e){return e.right}))),d=n.filter((function(t){return"left"===e?t.left===f:t.right===l})),v=d[0].top,m=d[d.length-1].bottom;return{top:v,bottom:m,left:f,right:l,width:l-f,height:m-v};default:return t}}(p(e),n.getBoundingClientRect(),f(n.getClientRects()),r)}(a.placement)}})),t=a.placement)}};function s(){var t;o||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,a),o=!0,e.setProps(t),o=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(t,n){if(m(n)){var o=f(e.reference.getClientRects()),i=o.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY})),a=o.indexOf(i);r=a>-1?a:r}},onHidden:function(){r=-1}}}};var K={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function r(t){return!0===e.props.sticky||e.props.sticky===t}var o=null,i=null;function a(){var s=r("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,u=r("popper")?n.getBoundingClientRect():null;(s&&Q(o,s)||u&&Q(i,u))&&e.popperInstance&&e.popperInstance.update(),o=s,i=u,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function Q(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}return F.setDefaultProps({plugins:[Y,J,G,K],render:N}),F.createSingleton=function(e,t){var n;void 0===t&&(t={});var r,o=e,i=[],a=[],c=t.overrides,p=[],f=!1;function l(){a=o.map((function(e){return u(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function v(){i=o.map((function(e){return e.reference}))}function m(e){o.forEach((function(t){e?t.enable():t.disable()}))}function g(e){return o.map((function(t){var n=t.setProps;return t.setProps=function(o){n(o),t.reference===r&&e.setProps(o)},function(){t.setProps=n}}))}function h(e,t){var n=a.indexOf(t);if(t!==r){r=t;var s=(c||[]).concat("content").reduce((function(e,t){return e[t]=o[n].props[t],e}),{});e.setProps(Object.assign({},s,{getReferenceClientRect:"function"==typeof s.getReferenceClientRect?s.getReferenceClientRect:function(){var e;return null==(e=i[n])?void 0:e.getBoundingClientRect()}}))}}m(!1),v(),l();var b={fn:function(){return{onDestroy:function(){m(!0)},onHidden:function(){r=null},onClickOutside:function(e){e.props.showOnCreate&&!f&&(f=!0,r=null)},onShow:function(e){e.props.showOnCreate&&!f&&(f=!0,h(e,i[0]))},onTrigger:function(e,t){h(e,t.currentTarget)}}}},y=F(d(),Object.assign({},s(t,["overrides"]),{plugins:[b].concat(t.plugins||[]),triggerTarget:a,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[W])})})),w=y.show;y.show=function(e){if(w(),!r&&null==e)return h(y,i[0]);if(!r||null!=e){if("number"==typeof e)return i[e]&&h(y,i[e]);if(o.indexOf(e)>=0){var t=e.reference;return h(y,t)}return i.indexOf(e)>=0?h(y,e):void 0}},y.showNext=function(){var e=i[0];if(!r)return y.show(0);var t=i.indexOf(r);y.show(i[t+1]||e)},y.showPrevious=function(){var e=i[i.length-1];if(!r)return y.show(e);var t=i.indexOf(r),n=i[t-1]||e;y.show(n)};var E=y.setProps;return y.setProps=function(e){c=e.overrides||c,E(e)},y.setInstances=function(e){m(!0),p.forEach((function(e){return e()})),o=e,m(!1),v(),l(),p=g(y),y.setProps({triggerTarget:a})},p=g(y),y},F.delegate=function(e,n){var r=[],o=[],i=!1,a=n.target,c=s(n,["target"]),p=Object.assign({},c,{trigger:"manual",touch:!1}),f=Object.assign({touch:R.touch},c,{showOnCreate:!0}),l=F(e,p);function d(e){if(e.target&&!i){var t=e.target.closest(a);if(t){var r=t.getAttribute("data-tippy-trigger")||n.trigger||R.trigger;if(!t._tippy&&!("touchstart"===e.type&&"boolean"==typeof f.touch||"touchstart"!==e.type&&r.indexOf(X[e.type])<0)){var s=F(t,f);s&&(o=o.concat(s))}}}}function v(e,t,n,o){void 0===o&&(o=!1),e.addEventListener(t,n,o),r.push({node:e,eventType:t,handler:n,options:o})}return u(l).forEach((function(e){var n=e.destroy,a=e.enable,s=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&o.forEach((function(e){e.destroy()})),o=[],r.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),r=[],n()},e.enable=function(){a(),o.forEach((function(e){return e.enable()})),i=!1},e.disable=function(){s(),o.forEach((function(e){return e.disable()})),i=!0},function(e){var n=e.reference;v(n,"touchstart",d,t),v(n,"mouseover",d),v(n,"focusin",d),v(n,"click",d)}(e)})),l},F.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;U.forEach((function(e){var t=!1;if(n&&(t=g(n)?e.reference===n:e.popper===n.popper),!t){var o=e.props.duration;e.setProps({duration:r}),e.hide(),e.state.isDestroyed||e.setProps({duration:o})}}))},F.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',F}));
2
+
_proc/_docs/site_libs/quarto-nav/headroom.min.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * headroom.js v0.12.0 - Give your page some headroom. Hide your header until you need it
3
+ * Copyright (c) 2020 Nick Williams - http://wicky.nillia.ms/headroom.js
4
+ * License: MIT
5
+ */
6
+
7
+ !function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self).Headroom=n()}(this,function(){"use strict";function t(){return"undefined"!=typeof window}function d(t){return function(t){return t&&t.document&&function(t){return 9===t.nodeType}(t.document)}(t)?function(t){var n=t.document,o=n.body,s=n.documentElement;return{scrollHeight:function(){return Math.max(o.scrollHeight,s.scrollHeight,o.offsetHeight,s.offsetHeight,o.clientHeight,s.clientHeight)},height:function(){return t.innerHeight||s.clientHeight||o.clientHeight},scrollY:function(){return void 0!==t.pageYOffset?t.pageYOffset:(s||o.parentNode||o).scrollTop}}}(t):function(t){return{scrollHeight:function(){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},height:function(){return Math.max(t.offsetHeight,t.clientHeight)},scrollY:function(){return t.scrollTop}}}(t)}function n(t,s,e){var n,o=function(){var n=!1;try{var t={get passive(){n=!0}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){n=!1}return n}(),i=!1,r=d(t),l=r.scrollY(),a={};function c(){var t=Math.round(r.scrollY()),n=r.height(),o=r.scrollHeight();a.scrollY=t,a.lastScrollY=l,a.direction=l<t?"down":"up",a.distance=Math.abs(t-l),a.isOutOfBounds=t<0||o<t+n,a.top=t<=s.offset[a.direction],a.bottom=o<=t+n,a.toleranceExceeded=a.distance>s.tolerance[a.direction],e(a),l=t,i=!1}function h(){i||(i=!0,n=requestAnimationFrame(c))}var u=!!o&&{passive:!0,capture:!1};return t.addEventListener("scroll",h,u),c(),{destroy:function(){cancelAnimationFrame(n),t.removeEventListener("scroll",h,u)}}}function o(t){return t===Object(t)?t:{down:t,up:t}}function s(t,n){n=n||{},Object.assign(this,s.options,n),this.classes=Object.assign({},s.options.classes,n.classes),this.elem=t,this.tolerance=o(this.tolerance),this.offset=o(this.offset),this.initialised=!1,this.frozen=!1}return s.prototype={constructor:s,init:function(){return s.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout(function(t){t.scrollTracker=n(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))},100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(t){return"down"===t.direction&&!t.top&&t.toleranceExceeded},shouldPin:function(t){return"up"===t.direction&&t.toleranceExceeded||t.top},addClass:function(t){this.elem.classList.add.apply(this.elem.classList,this.classes[t].split(" "))},removeClass:function(t){this.elem.classList.remove.apply(this.elem.classList,this.classes[t].split(" "))},hasClass:function(t){return this.classes[t].split(" ").every(function(t){return this.classList.contains(t)},this.elem)},update:function(t){t.isOutOfBounds||!0!==this.frozen&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin())}},s.options={tolerance:{up:0,down:0},offset:0,scroller:t()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},s.cutsTheMustard=!!(t()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame),s});
_proc/_docs/site_libs/quarto-nav/quarto-nav.js ADDED
@@ -0,0 +1,277 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const headroomChanged = new CustomEvent("quarto-hrChanged", {
2
+ detail: {},
3
+ bubbles: true,
4
+ cancelable: false,
5
+ composed: false,
6
+ });
7
+
8
+ window.document.addEventListener("DOMContentLoaded", function () {
9
+ let init = false;
10
+
11
+ // Manage the back to top button, if one is present.
12
+ let lastScrollTop = window.pageYOffset || document.documentElement.scrollTop;
13
+ const scrollDownBuffer = 5;
14
+ const scrollUpBuffer = 35;
15
+ const btn = document.getElementById("quarto-back-to-top");
16
+ const hideBackToTop = () => {
17
+ btn.style.display = "none";
18
+ };
19
+ const showBackToTop = () => {
20
+ btn.style.display = "inline-block";
21
+ };
22
+ if (btn) {
23
+ window.document.addEventListener(
24
+ "scroll",
25
+ function () {
26
+ const currentScrollTop =
27
+ window.pageYOffset || document.documentElement.scrollTop;
28
+
29
+ // Shows and hides the button 'intelligently' as the user scrolls
30
+ if (currentScrollTop - scrollDownBuffer > lastScrollTop) {
31
+ hideBackToTop();
32
+ lastScrollTop = currentScrollTop <= 0 ? 0 : currentScrollTop;
33
+ } else if (currentScrollTop < lastScrollTop - scrollUpBuffer) {
34
+ showBackToTop();
35
+ lastScrollTop = currentScrollTop <= 0 ? 0 : currentScrollTop;
36
+ }
37
+
38
+ // Show the button at the bottom, hides it at the top
39
+ if (currentScrollTop <= 0) {
40
+ hideBackToTop();
41
+ } else if (
42
+ window.innerHeight + currentScrollTop >=
43
+ document.body.offsetHeight
44
+ ) {
45
+ showBackToTop();
46
+ }
47
+ },
48
+ false
49
+ );
50
+ }
51
+
52
+ function throttle(func, wait) {
53
+ var timeout;
54
+ return function () {
55
+ const context = this;
56
+ const args = arguments;
57
+ const later = function () {
58
+ clearTimeout(timeout);
59
+ timeout = null;
60
+ func.apply(context, args);
61
+ };
62
+
63
+ if (!timeout) {
64
+ timeout = setTimeout(later, wait);
65
+ }
66
+ };
67
+ }
68
+
69
+ function headerOffset() {
70
+ // Set an offset if there is are fixed top navbar
71
+ const headerEl = window.document.querySelector("header.fixed-top");
72
+ if (headerEl) {
73
+ return headerEl.clientHeight;
74
+ } else {
75
+ return 0;
76
+ }
77
+ }
78
+
79
+ function footerOffset() {
80
+ const footerEl = window.document.querySelector("footer.footer");
81
+ if (footerEl) {
82
+ return footerEl.clientHeight;
83
+ } else {
84
+ return 0;
85
+ }
86
+ }
87
+
88
+ function updateDocumentOffsetWithoutAnimation() {
89
+ updateDocumentOffset(false);
90
+ }
91
+
92
+ function updateDocumentOffset(animated) {
93
+ // set body offset
94
+ const topOffset = headerOffset();
95
+ const bodyOffset = topOffset + footerOffset();
96
+ const bodyEl = window.document.body;
97
+ bodyEl.setAttribute("data-bs-offset", topOffset);
98
+ bodyEl.style.paddingTop = topOffset + "px";
99
+
100
+ // deal with sidebar offsets
101
+ const sidebars = window.document.querySelectorAll(
102
+ ".sidebar, .headroom-target"
103
+ );
104
+ sidebars.forEach((sidebar) => {
105
+ if (!animated) {
106
+ sidebar.classList.add("notransition");
107
+ // Remove the no transition class after the animation has time to complete
108
+ setTimeout(function () {
109
+ sidebar.classList.remove("notransition");
110
+ }, 201);
111
+ }
112
+
113
+ if (window.Headroom && sidebar.classList.contains("sidebar-unpinned")) {
114
+ sidebar.style.top = "0";
115
+ sidebar.style.maxHeight = "100vh";
116
+ } else {
117
+ sidebar.style.top = topOffset + "px";
118
+ sidebar.style.maxHeight = "calc(100vh - " + topOffset + "px)";
119
+ }
120
+ });
121
+
122
+ // allow space for footer
123
+ const mainContainer = window.document.querySelector(".quarto-container");
124
+ if (mainContainer) {
125
+ mainContainer.style.minHeight = "calc(100vh - " + bodyOffset + "px)";
126
+ }
127
+
128
+ // link offset
129
+ let linkStyle = window.document.querySelector("#quarto-target-style");
130
+ if (!linkStyle) {
131
+ linkStyle = window.document.createElement("style");
132
+ linkStyle.setAttribute("id", "quarto-target-style");
133
+ window.document.head.appendChild(linkStyle);
134
+ }
135
+ while (linkStyle.firstChild) {
136
+ linkStyle.removeChild(linkStyle.firstChild);
137
+ }
138
+ if (topOffset > 0) {
139
+ linkStyle.appendChild(
140
+ window.document.createTextNode(`
141
+ section:target::before {
142
+ content: "";
143
+ display: block;
144
+ height: ${topOffset}px;
145
+ margin: -${topOffset}px 0 0;
146
+ }`)
147
+ );
148
+ }
149
+ if (init) {
150
+ window.dispatchEvent(headroomChanged);
151
+ }
152
+ init = true;
153
+ }
154
+
155
+ // initialize headroom
156
+ var header = window.document.querySelector("#quarto-header");
157
+ if (header && window.Headroom) {
158
+ const headroom = new window.Headroom(header, {
159
+ tolerance: 5,
160
+ onPin: function () {
161
+ const sidebars = window.document.querySelectorAll(
162
+ ".sidebar, .headroom-target"
163
+ );
164
+ sidebars.forEach((sidebar) => {
165
+ sidebar.classList.remove("sidebar-unpinned");
166
+ });
167
+ updateDocumentOffset();
168
+ },
169
+ onUnpin: function () {
170
+ const sidebars = window.document.querySelectorAll(
171
+ ".sidebar, .headroom-target"
172
+ );
173
+ sidebars.forEach((sidebar) => {
174
+ sidebar.classList.add("sidebar-unpinned");
175
+ });
176
+ updateDocumentOffset();
177
+ },
178
+ });
179
+ headroom.init();
180
+
181
+ let frozen = false;
182
+ window.quartoToggleHeadroom = function () {
183
+ if (frozen) {
184
+ headroom.unfreeze();
185
+ frozen = false;
186
+ } else {
187
+ headroom.freeze();
188
+ frozen = true;
189
+ }
190
+ };
191
+ }
192
+
193
+ window.addEventListener(
194
+ "hashchange",
195
+ function (e) {
196
+ if (
197
+ getComputedStyle(document.documentElement).scrollBehavior !== "smooth"
198
+ ) {
199
+ window.scrollTo(0, window.pageYOffset - headerOffset());
200
+ }
201
+ },
202
+ false
203
+ );
204
+
205
+ // Observe size changed for the header
206
+ const headerEl = window.document.querySelector("header.fixed-top");
207
+ if (headerEl && window.ResizeObserver) {
208
+ const observer = new window.ResizeObserver(
209
+ updateDocumentOffsetWithoutAnimation
210
+ );
211
+ observer.observe(headerEl, {
212
+ attributes: true,
213
+ childList: true,
214
+ characterData: true,
215
+ });
216
+ } else {
217
+ window.addEventListener(
218
+ "resize",
219
+ throttle(updateDocumentOffsetWithoutAnimation, 50)
220
+ );
221
+ }
222
+ setTimeout(updateDocumentOffsetWithoutAnimation, 250);
223
+
224
+ // fixup index.html links if we aren't on the filesystem
225
+ if (window.location.protocol !== "file:") {
226
+ const links = window.document.querySelectorAll("a");
227
+ for (let i = 0; i < links.length; i++) {
228
+ if (links[i].href) {
229
+ links[i].href = links[i].href.replace(/\/index\.html/, "/");
230
+ }
231
+ }
232
+
233
+ // Fixup any sharing links that require urls
234
+ // Append url to any sharing urls
235
+ const sharingLinks = window.document.querySelectorAll(
236
+ "a.sidebar-tools-main-item"
237
+ );
238
+ for (let i = 0; i < sharingLinks.length; i++) {
239
+ const sharingLink = sharingLinks[i];
240
+ const href = sharingLink.getAttribute("href");
241
+ if (href) {
242
+ sharingLink.setAttribute(
243
+ "href",
244
+ href.replace("|url|", window.location.href)
245
+ );
246
+ }
247
+ }
248
+
249
+ // Scroll the active navigation item into view, if necessary
250
+ const navSidebar = window.document.querySelector("nav#quarto-sidebar");
251
+ if (navSidebar) {
252
+ // Find the active item
253
+ const activeItem = navSidebar.querySelector("li.sidebar-item a.active");
254
+ if (activeItem) {
255
+ // Wait for the scroll height and height to resolve by observing size changes on the
256
+ // nav element that is scrollable
257
+ const resizeObserver = new ResizeObserver((_entries) => {
258
+ // The bottom of the element
259
+ const elBottom = activeItem.offsetTop;
260
+ const viewBottom = navSidebar.scrollTop + navSidebar.clientHeight;
261
+
262
+ // The element height and scroll height are the same, then we are still loading
263
+ if (viewBottom !== navSidebar.scrollHeight) {
264
+ // Determine if the item isn't visible and scroll to it
265
+ if (elBottom >= viewBottom) {
266
+ navSidebar.scrollTop = elBottom;
267
+ }
268
+
269
+ // stop observing now since we've completed the scroll
270
+ resizeObserver.unobserve(navSidebar);
271
+ }
272
+ });
273
+ resizeObserver.observe(navSidebar);
274
+ }
275
+ }
276
+ }
277
+ });
_proc/_docs/site_libs/quarto-search/autocomplete.umd.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ /*! @algolia/autocomplete-js 1.7.3 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/autocomplete-js"]={})}(this,(function(e){"use strict";function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?t(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,a=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);u=!0);}catch(e){a=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){return{current:e}}function f(e,t){var n=void 0;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];n&&clearTimeout(n),n=setTimeout((function(){return e.apply(void 0,o)}),t)}}function d(e){return e.reduce((function(e,t){return e.concat(t)}),[])}var m=0;function v(){return"autocomplete-".concat(m++)}function h(e,t){return t.reduce((function(e,t){return e&&e[t]}),e)}function g(e){return 0===e.collections.length?0:e.collections.reduce((function(e,t){return e+t.items.length}),0)}var y=function(){},b="1.7.3",O=[{segment:"autocomplete-core",version:b}];function _(e,t){var n=t;return{then:function(t,r){return _(e.then(j(t,n,e),j(r,n,e)),n)},catch:function(t){return _(e.catch(j(t,n,e)),n)},finally:function(t){return t&&n.onCancelList.push(t),_(e.finally(j(t&&function(){return n.onCancelList=[],t()},n,e)),n)},cancel:function(){n.isCanceled=!0;var e=n.onCancelList;n.onCancelList=[],e.forEach((function(e){e()}))},isCanceled:function(){return!0===n.isCanceled}}}function P(e){return _(e,{isCanceled:!1,onCancelList:[]})}function j(e,t,n){return e?function(n){return t.isCanceled?n:e(n)}:n}function w(e,t,n,r){if(!n)return null;if(e<0&&(null===t||null!==r&&0===t))return n+e;var o=(null===t?-1:t)+e;return o<=-1||o>=n?null===r?null:0:o}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){var n=[];return Promise.resolve(e(t)).then((function(e){return Promise.all(e.filter((function(e){return Boolean(e)})).map((function(e){if(e.sourceId,n.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({getItemInputValue:function(e){return e.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:y},e);return Promise.resolve(t)})))}))}function A(e){var t=function(e){var t=e.collections.map((function(e){return e.items.length})).reduce((function(e,t,n){var r=(e[n-1]||0)+t;return e.push(r),e}),[]).reduce((function(t,n){return n<=e.activeItemId?t+1:t}),0);return e.collections[t]}(e);if(!t)return null;var n=t.items[function(e){for(var t=e.state,n=e.collection,r=!1,o=0,i=0;!1===r;){var u=t.collections[o];if(u===n){r=!0;break}i+=u.items.length,o++}return t.activeItemId-i}({state:e,collection:t})],r=t.source;return{item:n,itemInputValue:r.getItemInputValue({item:n,state:e}),itemUrl:r.getItemUrl({item:n,state:e}),source:r}}var C=/((gt|sm)-|galaxy nexus)|samsung[- ]/i;function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t,n){var r,o=t.initialState;return{getState:function(){return o},dispatch:function(r,i){var u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o);o=e(o,{type:r,props:t,payload:i}),n({state:o,prevState:u})},pendingRequests:(r=[],{add:function(e){return r.push(e),e.finally((function(){r=r.filter((function(t){return t!==e}))}))},cancelAll:function(){r.forEach((function(e){return e.cancel()}))},isEmpty:function(){return 0===r.length}})}}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X(e){return Boolean(e.execute)}function Z(e,t){return n=e,Boolean(null==n?void 0:n.execute)?J(J({},e),{},{requests:e.queries.map((function(n){return{query:n,sourceId:t,transformResponse:e.transformResponse}}))}):{items:e,sourceId:t};var n}function ee(e){var t=e.reduce((function(e,t){if(!X(t))return e.push(t),e;var n=t.searchClient,r=t.execute,o=t.requesterId,i=t.requests,u=e.find((function(e){return X(t)&&X(e)&&e.searchClient===n&&Boolean(o)&&e.requesterId===o}));if(u){var a;(a=u.items).push.apply(a,z(i))}else{var c={execute:r,requesterId:o,items:i,searchClient:n};e.push(c)}return e}),[]).map((function(e){if(!X(e))return Promise.resolve(e);var t=e,n=t.execute,r=t.items;return n({searchClient:t.searchClient,requests:r})}));return Promise.all(t).then((function(e){return d(e)}))}function te(e,t){return t.map((function(t){var n=e.filter((function(e){return e.sourceId===t.sourceId})),r=n.map((function(e){return e.items})),o=n[0].transformResponse,i=o?o(function(e){var t=e.map((function(e){var t;return k(k({},e),{},{hits:null===(t=e.hits)||void 0===t?void 0:t.map((function(t){return k(k({},t),{},{__autocomplete_indexName:e.index,__autocomplete_queryID:e.queryID})}))})}));return{results:t,hits:t.map((function(e){return e.hits})).filter(Boolean),facetHits:t.map((function(e){var t;return null===(t=e.facetHits)||void 0===t?void 0:t.map((function(e){return{label:e.value,count:e.count,_highlightResult:{label:{value:e.highlighted}}}}))})).filter(Boolean)}}(r)):r;return i.every(Boolean),'The `getItems` function from source "'.concat(t.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),".\n\nDid you forget to return items?\n\nSee: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems"),{source:t,items:i}}))}var ne=["event","nextState","props","query","refresh","store"];function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ae,ce,le,se=null,pe=(ae=-1,ce=-1,le=void 0,function(e){var t=++ae;return Promise.resolve(e).then((function(e){return le&&t<ce?le:(ce=t,le=e,e)}))});function fe(e){var t=e.event,n=e.nextState,r=void 0===n?{}:n,o=e.props,i=e.query,u=e.refresh,a=e.store,c=ue(e,ne);se&&o.environment.clearTimeout(se);var l=c.setCollections,s=c.setIsOpen,p=c.setQuery,f=c.setActiveItemId,m=c.setStatus;if(p(i),f(o.defaultActiveItemId),!i&&!1===o.openOnFocus){var v,h=a.getState().collections.map((function(e){return oe(oe({},e),{},{items:[]})}));m("idle"),l(h),s(null!==(v=r.isOpen)&&void 0!==v?v:o.shouldPanelOpen({state:a.getState()}));var g=P(pe(h).then((function(){return Promise.resolve()})));return a.pendingRequests.add(g)}m("loading"),se=o.environment.setTimeout((function(){m("stalled")}),o.stallThreshold);var y=P(pe(o.getSources(oe({query:i,refresh:u,state:a.getState()},c)).then((function(e){return Promise.all(e.map((function(e){return Promise.resolve(e.getItems(oe({query:i,refresh:u,state:a.getState()},c))).then((function(t){return Z(t,e.sourceId)}))}))).then(ee).then((function(t){return te(t,e)})).then((function(e){return function(e){var t=e.collections,n=e.props,r=e.state,o=t.reduce((function(e,t){return Q(Q({},e),{},$({},t.source.sourceId,Q(Q({},t.source),{},{getItems:function(){return d(t.items)}})))}),{});return d(n.reshape({sources:Object.values(o),sourcesBySourceId:o,state:r})).filter(Boolean).map((function(e){return{source:e,items:e.getItems()}}))}({collections:e,props:o,state:a.getState()})}))})))).then((function(e){var n;m("idle"),l(e);var p=o.shouldPanelOpen({state:a.getState()});s(null!==(n=r.isOpen)&&void 0!==n?n:o.openOnFocus&&!i&&p||p);var f=A(a.getState());if(null!==a.getState().activeItemId&&f){var d=f.item,v=f.itemInputValue,h=f.itemUrl,g=f.source;g.onActive(oe({event:t,item:d,itemInputValue:v,itemUrl:h,refresh:u,source:g,state:a.getState()},c))}})).finally((function(){m("idle"),se&&o.environment.clearTimeout(se)}));return a.pendingRequests.add(y)}var de=["event","props","refresh","store"];function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ye=["props","refresh","store"],be=["inputElement","formElement","panelElement"],Oe=["inputElement"],_e=["inputElement","maxLength"],Pe=["item","source"];function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ie(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ee(e){var t=e.props,n=e.refresh,r=e.store,o=Ie(e,ye);return{getEnvironmentProps:function(e){var n=e.inputElement,o=e.formElement,i=e.panelElement;function u(e){!r.getState().isOpen&&r.pendingRequests.isEmpty()||e.target===n||!1===[o,i].some((function(t){return n=t,r=e.target,n===r||n.contains(r);var n,r}))&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return we({onTouchStart:u,onMouseDown:u,onTouchMove:function(e){!1!==r.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},Ie(e,be))},getRootProps:function(e){return we({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},e)},getFormProps:function(e){return e.inputElement,we({action:"",noValidate:!0,role:"search",onSubmit:function(i){var u;i.preventDefault(),t.onSubmit(we({event:i,refresh:n,state:r.getState()},o)),r.dispatch("submit",null),null===(u=e.inputElement)||void 0===u||u.blur()},onReset:function(i){var u;i.preventDefault(),t.onReset(we({event:i,refresh:n,state:r.getState()},o)),r.dispatch("reset",null),null===(u=e.inputElement)||void 0===u||u.focus()}},Ie(e,Oe))},getLabelProps:function(e){return we({htmlFor:"".concat(t.id,"-input"),id:"".concat(t.id,"-label")},e)},getInputProps:function(e){var i;function u(e){(t.openOnFocus||Boolean(r.getState().query))&&fe(we({event:e,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},o)),r.dispatch("focus",null)}var a=e||{};a.inputElement;var c=a.maxLength,l=void 0===c?512:c,s=Ie(a,_e),p=A(r.getState()),f=function(e){return Boolean(e&&e.match(C))}((null===(i=t.environment.navigator)||void 0===i?void 0:i.userAgent)||""),d=null!=p&&p.itemUrl&&!f?"go":"search";return we({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&null!==r.getState().activeItemId?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:d,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:l,type:"search",onChange:function(e){fe(we({event:e,props:t,query:e.currentTarget.value.slice(0,l),refresh:n,store:r},o))},onKeyDown:function(e){!function(e){var t=e.event,n=e.props,r=e.refresh,o=e.store,i=ge(e,de);if("ArrowUp"===t.key||"ArrowDown"===t.key){var u=function(){var e=n.environment.document.getElementById("".concat(n.id,"-item-").concat(o.getState().activeItemId));e&&(e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView(!1))},a=function(){var e=A(o.getState());if(null!==o.getState().activeItemId&&e){var n=e.item,u=e.itemInputValue,a=e.itemUrl,c=e.source;c.onActive(ve({event:t,item:n,itemInputValue:u,itemUrl:a,refresh:r,source:c,state:o.getState()},i))}};t.preventDefault(),!1===o.getState().isOpen&&(n.openOnFocus||Boolean(o.getState().query))?fe(ve({event:t,props:n,query:o.getState().query,refresh:r,store:o},i)).then((function(){o.dispatch(t.key,{nextActiveItemId:n.defaultActiveItemId}),a(),setTimeout(u,0)})):(o.dispatch(t.key,{}),a(),u())}else if("Escape"===t.key)t.preventDefault(),o.dispatch(t.key,null),o.pendingRequests.cancelAll();else if("Tab"===t.key)o.dispatch("blur",null),o.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===o.getState().activeItemId||o.getState().collections.every((function(e){return 0===e.items.length})))return void(n.debug||o.pendingRequests.cancelAll());t.preventDefault();var c=A(o.getState()),l=c.item,s=c.itemInputValue,p=c.itemUrl,f=c.source;if(t.metaKey||t.ctrlKey)void 0!==p&&(f.onSelect(ve({event:t,item:l,itemInputValue:s,itemUrl:p,refresh:r,source:f,state:o.getState()},i)),n.navigator.navigateNewTab({itemUrl:p,item:l,state:o.getState()}));else if(t.shiftKey)void 0!==p&&(f.onSelect(ve({event:t,item:l,itemInputValue:s,itemUrl:p,refresh:r,source:f,state:o.getState()},i)),n.navigator.navigateNewWindow({itemUrl:p,item:l,state:o.getState()}));else if(t.altKey);else{if(void 0!==p)return f.onSelect(ve({event:t,item:l,itemInputValue:s,itemUrl:p,refresh:r,source:f,state:o.getState()},i)),void n.navigator.navigate({itemUrl:p,item:l,state:o.getState()});fe(ve({event:t,nextState:{isOpen:!1},props:n,query:s,refresh:r,store:o},i)).then((function(){f.onSelect(ve({event:t,item:l,itemInputValue:s,itemUrl:p,refresh:r,source:f,state:o.getState()},i))}))}}}(we({event:e,props:t,refresh:n,store:r},o))},onFocus:u,onBlur:y,onClick:function(n){e.inputElement!==t.environment.document.activeElement||r.getState().isOpen||u(n)}},s)},getPanelProps:function(e){return we({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},e)},getListProps:function(e){return we({role:"listbox","aria-labelledby":"".concat(t.id,"-label"),id:"".concat(t.id,"-list")},e)},getItemProps:function(e){var i=e.item,u=e.source,a=Ie(e,Pe);return we({id:"".concat(t.id,"-item-").concat(i.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===i.__autocomplete_id,onMouseMove:function(e){if(i.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",i.__autocomplete_id);var t=A(r.getState());if(null!==r.getState().activeItemId&&t){var u=t.item,a=t.itemInputValue,c=t.itemUrl,l=t.source;l.onActive(we({event:e,item:u,itemInputValue:a,itemUrl:c,refresh:n,source:l,state:r.getState()},o))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var a=u.getItemInputValue({item:i,state:r.getState()}),c=u.getItemUrl({item:i,state:r.getState()});(c?Promise.resolve():fe(we({event:e,nextState:{isOpen:!1},props:t,query:a,refresh:n,store:r},o))).then((function(){u.onSelect(we({event:e,item:i,itemInputValue:a,itemUrl:c,refresh:n,source:u,state:r.getState()},o))}))}},a)}}}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){De(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e){var t,n,r,o,i=e.plugins,u=e.options,a=null===(t=((null===(n=u.__autocomplete_metadata)||void 0===n?void 0:n.userAgents)||[])[0])||void 0===t?void 0:t.segment,c=a?De({},a,Object.keys((null===(r=u.__autocomplete_metadata)||void 0===r?void 0:r.options)||{})):{};return{plugins:i.map((function(e){return{name:e.name,options:Object.keys(e.__autocomplete_pluginOptions||[])}})),options:Ce({"autocomplete-core":Object.keys(u)},c),ua:O.concat((null===(o=u.__autocomplete_metadata)||void 0===o?void 0:o.userAgents)||[])}}function xe(e){var t,n=e.state;return!1===n.isOpen||null===n.activeItemId?null:(null===(t=A(n))||void 0===t?void 0:t.itemInputValue)||null}function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te=function(e,t){switch(t.type){case"setActiveItemId":case"mousemove":return qe(qe({},e),{},{activeItemId:t.payload});case"setQuery":return qe(qe({},e),{},{query:t.payload,completion:null});case"setCollections":return qe(qe({},e),{},{collections:t.payload});case"setIsOpen":return qe(qe({},e),{},{isOpen:t.payload});case"setStatus":return qe(qe({},e),{},{status:t.payload});case"setContext":return qe(qe({},e),{},{context:qe(qe({},e.context),t.payload)});case"ArrowDown":var n=qe(qe({},e),{},{activeItemId:t.payload.hasOwnProperty("nextActiveItemId")?t.payload.nextActiveItemId:w(1,e.activeItemId,g(e),t.props.defaultActiveItemId)});return qe(qe({},n),{},{completion:xe({state:n})});case"ArrowUp":var r=qe(qe({},e),{},{activeItemId:w(-1,e.activeItemId,g(e),t.props.defaultActiveItemId)});return qe(qe({},r),{},{completion:xe({state:r})});case"Escape":return e.isOpen?qe(qe({},e),{},{activeItemId:null,isOpen:!1,completion:null}):qe(qe({},e),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":return qe(qe({},e),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":return qe(qe({},e),{},{activeItemId:!0===t.props.openOnFocus?t.props.defaultActiveItemId:null,status:"idle",query:""});case"focus":return qe(qe({},e),{},{activeItemId:t.props.defaultActiveItemId,isOpen:(t.props.openOnFocus||Boolean(e.query))&&t.props.shouldPanelOpen({state:e})});case"blur":return t.props.debug?e:qe(qe({},e),{},{isOpen:!1,activeItemId:null});case"mouseleave":return qe(qe({},e),{},{activeItemId:t.props.defaultActiveItemId});default:return"The reducer action ".concat(JSON.stringify(t.type)," is not supported."),e}};function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Me(e){var t=[],n=function(e,t){var n,r="undefined"!=typeof window?window:{},o=e.plugins||[];return H(H({debug:!1,openOnFocus:!1,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,environment:r,shouldPanelOpen:function(e){return g(e.state)>0},reshape:function(e){return e.sources}},e),{},{id:null!==(n=e.id)&&void 0!==n?n:v(),plugins:o,initialState:H({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)}))},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)}))},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)}))},getSources:function(n){return Promise.all([].concat(F(o.map((function(e){return e.getSources}))),[e.getSources]).filter(Boolean).map((function(e){return E(e,n)}))).then((function(e){return d(e)})).then((function(e){return e.map((function(e){return H(H({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach((function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,n)}))},onActive:function(n){e.onActive(n),t.forEach((function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,n)}))}})}))}))},navigator:H({navigate:function(e){var t=e.itemUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=r.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;r.open(t,"_blank","noopener")}},e.navigator)})}(e,t),r=R(Te,n,(function(e){var t=e.prevState,r=e.state;n.onStateChange(Be({prevState:t,state:r,refresh:u},o))})),o=function(e){var t=e.store;return{setActiveItemId:function(e){t.dispatch("setActiveItemId",e)},setQuery:function(e){t.dispatch("setQuery",e)},setCollections:function(e){var n=0,r=e.map((function(e){return L(L({},e),{},{items:d(e.items).map((function(e){return L(L({},e),{},{__autocomplete_id:n++})}))})}));t.dispatch("setCollections",r)},setIsOpen:function(e){t.dispatch("setIsOpen",e)},setStatus:function(e){t.dispatch("setStatus",e)},setContext:function(e){t.dispatch("setContext",e)}}}({store:r}),i=Ee(Be({props:n,refresh:u,store:r},o));function u(){return fe(Be({event:new Event("input"),nextState:{isOpen:r.getState().isOpen},props:n,query:r.getState().query,refresh:u,store:r},o))}return n.plugins.forEach((function(e){var n;return null===(n=e.subscribe)||void 0===n?void 0:n.call(e,Be(Be({},o),{},{refresh:u,onSelect:function(e){t.push({onSelect:e})},onActive:function(e){t.push({onActive:e})}}))})),function(e){var t,n,r=e.metadata,o=e.environment;if(null===(t=o.navigator)||void 0===t||null===(n=t.userAgent)||void 0===n?void 0:n.includes("Algolia Crawler")){var i=o.document.createElement("meta"),u=o.document.querySelector("head");i.name="algolia:metadata",setTimeout((function(){i.content=JSON.stringify(r),u.appendChild(i)}),0)}}({metadata:ke({plugins:n.plugins,options:e}),environment:n.environment}),Be(Be({refresh:u},i),o)}var Ue=function(e,t,n,r){var o;t[0]=0;for(var i=1;i<t.length;i++){var u=t[i++],a=t[i]?(t[0]|=u?1:2,n[t[i++]]):t[++i];3===u?r[0]=a:4===u?r[1]=Object.assign(r[1]||{},a):5===u?(r[1]=r[1]||{})[t[++i]]=a:6===u?r[1][t[++i]]+=a+"":u?(o=e.apply(a,Ue(e,a,n,["",null])),r.push(o),a[0]?t[0]|=2:(t[i-2]=0,t[i]=o)):r.push(a)}return r},He=new Map;function Ve(e){var t=He.get(this);return t||(t=new Map,He.set(this,t)),(t=Ue(this,t.get(e)||(t.set(e,t=function(e){for(var t,n,r=1,o="",i="",u=[0],a=function(e){1===r&&(e||(o=o.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?u.push(0,e,o):3===r&&(e||o)?(u.push(3,e,o),r=2):2===r&&"..."===o&&e?u.push(4,e,0):2===r&&o&&!e?u.push(5,0,!0,o):r>=5&&((o||!e&&5===r)&&(u.push(r,0,o,n),r=6),e&&(u.push(r,e,0,n),r=6)),o=""},c=0;c<e.length;c++){c&&(1===r&&a(),a(c));for(var l=0;l<e[c].length;l++)t=e[c][l],1===r?"<"===t?(a(),u=[u],r=3):o+=t:4===r?"--"===o&&">"===t?(r=1,o=""):o=t+o[0]:i?t===i?i="":o+=t:'"'===t||"'"===t?i=t:">"===t?(a(),r=1):r&&("="===t?(r=5,n=o,o=""):"/"===t&&(r<5||">"===e[c][l+1])?(a(),3===r&&(u=u[0]),r=u,(u=u[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(a(),r=2):o+=t),3===r&&"!--"===o&&(r=4,u=u[0])}return a(),u}(e)),t),arguments,[])).length>1?t:t[0]}var We=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-ClearIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","18"),n.setAttribute("height","18"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"),n.appendChild(r),n};function Qe(e,t){if("string"==typeof t){var n=e.document.querySelector(t);return"The element ".concat(JSON.stringify(t)," is not in the document."),n}return t}function $e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return Object.keys(t).forEach((function(n){var r=e[n],o=t[n];r!==o&&(e[n]=[r,o].filter(Boolean).join(" "))})),e}),{})}var ze=function(e){return e&&"object"===r(e)&&"[object Object]"===Object.prototype.toString.call(e)};function Ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return Object.keys(t).forEach((function(n){var r=e[n],o=t[n];Array.isArray(r)&&Array.isArray(o)?e[n]=r.concat.apply(r,c(o)):ze(r)&&ze(o)?e[n]=Ge(r,o):e[n]=o})),e}),{})}function Ke(e,t){return Object.entries(e).reduce((function(e,r){var i=a(r,2),u=i[0],c=i[1];return t({key:u,value:c})?n(n({},e),{},o({},u,c)):e}),{})}var Je=["ontouchstart","ontouchend","ontouchmove","ontouchcancel"];function Ye(e,t,n){e[t]=null===n?"":"number"!=typeof n?n:n+"px"}function Xe(e){this._listeners[e.type](e)}function Ze(e,t,n){var r,o,i=e[t];if("style"===t)if("string"==typeof n)e.style=n;else if(null===n)e.style="";else for(t in n)i&&n[t]===i[t]||Ye(e.style,t,n[t]);else"o"===t[0]&&"n"===t[1]?(r=t!==(t=t.replace(/Capture$/,"")),((o=t.toLowerCase())in e||Je.includes(o))&&(t=o),t=t.slice(2),e._listeners||(e._listeners={}),e._listeners[t]=n,n?i||e.addEventListener(t,Xe,r):e.removeEventListener(t,Xe,r)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&"download"!==t&&"href"!==t&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function et(e){return"onChange"===e?"onInput":e}function tt(e,t){for(var n in t)Ze(e,et(n),t[n])}function nt(e,t){for(var n in t)"o"===n[0]&&"n"===n[1]||Ze(e,et(n),t[n])}var rt=["children"];function ot(e){return function(t,n){var r=n.children,o=void 0===r?[]:r,i=u(n,rt),a=e.document.createElement(t);return tt(a,i),a.append.apply(a,c(o)),a}}var it=["autocompleteScopeApi","environment","classNames","getInputProps","getInputPropsCore","isDetached","state"],ut=function(e){var t=e.environment.document.createElementNS("http://www.w3.org/2000/svg","svg");return t.setAttribute("class","aa-LoadingIcon"),t.setAttribute("viewBox","0 0 100 100"),t.setAttribute("width","20"),t.setAttribute("height","20"),t.innerHTML='<circle\n cx="50"\n cy="50"\n fill="none"\n r="35"\n stroke="currentColor"\n stroke-dasharray="164.93361431346415 56.97787143782138"\n stroke-width="6"\n>\n <animateTransform\n attributeName="transform"\n type="rotate"\n repeatCount="indefinite"\n dur="1s"\n values="0 50 50;90 50 50;180 50 50;360 50 50"\n keyTimes="0;0.40;0.65;1"\n />\n</circle>',t},at=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(r),n};function ct(e){var t=e.autocomplete,r=e.autocompleteScopeApi,o=e.classNames,i=e.environment,a=e.isDetached,c=e.placeholder,l=void 0===c?"Search":c,s=e.propGetters,p=e.setIsModalOpen,f=e.state,d=e.translations,m=ot(i),v=s.getRootProps(n({state:f,props:t.getRootProps({})},r)),h=m("div",n({class:o.root},v)),g=m("div",{class:o.detachedContainer,onMouseDown:function(e){e.stopPropagation()}}),y=m("div",{class:o.detachedOverlay,children:[g],onMouseDown:function(){p(!1),t.setIsOpen(!1)}}),b=s.getLabelProps(n({state:f,props:t.getLabelProps({})},r)),O=m("button",{class:o.submitButton,type:"submit",title:d.submitButtonTitle,children:[at({environment:i})]}),_=m("label",n({class:o.label,children:[O]},b)),P=m("button",{class:o.clearButton,type:"reset",title:d.clearButtonTitle,children:[We({environment:i})]}),j=m("div",{class:o.loadingIndicator,children:[ut({environment:i})]}),w=function(e){var t=e.autocompleteScopeApi,r=e.environment;e.classNames;var o=e.getInputProps,i=e.getInputPropsCore,a=e.isDetached,c=e.state,l=u(e,it),s=ot(r)("input",l),p=o(n({state:c,props:i({inputElement:s}),inputElement:s},t));return tt(s,n(n({},p),{},{onKeyDown:function(e){a&&"Tab"===e.key||p.onKeyDown(e)}})),s}({class:o.input,environment:i,state:f,getInputProps:s.getInputProps,getInputPropsCore:t.getInputProps,autocompleteScopeApi:r,isDetached:a}),S=m("div",{class:o.inputWrapperPrefix,children:[_,j]}),I=m("div",{class:o.inputWrapperSuffix,children:[P]}),E=m("div",{class:o.inputWrapper,children:[w]}),A=s.getFormProps(n({state:f,props:t.getFormProps({inputElement:w})},r)),C=m("form",n({class:o.form,children:[S,E,I]},A)),D=s.getPanelProps(n({state:f,props:t.getPanelProps({})},r)),k=m("div",n({class:o.panel},D));if(a){var x=m("div",{class:o.detachedSearchButtonIcon,children:[at({environment:i})]}),N=m("div",{class:o.detachedSearchButtonPlaceholder,textContent:l}),q=m("button",{type:"button",class:o.detachedSearchButton,onClick:function(){p(!0)},children:[x,N]}),R=m("button",{type:"button",class:o.detachedCancelButton,textContent:d.detachedCancelButtonText,onTouchStart:function(e){e.stopPropagation()},onClick:function(){t.setIsOpen(!1),p(!1)}}),T=m("div",{class:o.detachedFormContainer,children:[C,R]});g.appendChild(T),h.appendChild(q)}else h.appendChild(C);return{detachedContainer:g,detachedOverlay:y,inputWrapper:E,input:w,root:h,form:C,label:_,submitButton:O,clearButton:P,loadingIndicator:j,panel:k}}var lt,st,pt,ft,dt,mt,vt={},ht=[],gt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function yt(e,t){for(var n in t)e[n]=t[n];return e}function bt(e){var t=e.parentNode;t&&t.removeChild(e)}function Ot(e,t,n){var r,o,i,u={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:u[i]=t[i];if(arguments.length>2&&(u.children=arguments.length>3?lt.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===u[i]&&(u[i]=e.defaultProps[i]);return _t(e,u,r,o,null)}function _t(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++pt:o};return null==o&&null!=st.vnode&&st.vnode(i),i}function Pt(e){return e.children}function jt(e,t){this.props=e,this.context=t}function wt(e,t){if(null==t)return e.__?wt(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?wt(e):null}function St(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return St(e)}}function It(e){(!e.__d&&(e.__d=!0)&&ft.push(e)&&!Et.__r++||mt!==st.debounceRendering)&&((mt=st.debounceRendering)||dt)(Et)}function Et(){for(var e;Et.__r=ft.length;)e=ft.sort((function(e,t){return e.__v.__b-t.__v.__b})),ft=[],e.some((function(e){var t,n,r,o,i,u;e.__d&&(i=(o=(t=e).__v).__e,(u=t.__P)&&(n=[],(r=yt({},o)).__v=o.__v+1,Rt(u,o,r,t.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?wt(o):i,o.__h),Tt(n,o),o.__e!=i&&St(o)))}))}function At(e,t,n,r,o,i,u,a,c,l){var s,p,f,d,m,v,h,g=r&&r.__k||ht,y=g.length;for(n.__k=[],s=0;s<t.length;s++)if(null!=(d=n.__k[s]=null==(d=t[s])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?_t(null,d,null,null,d):Array.isArray(d)?_t(Pt,{children:d},null,null,null):d.__b>0?_t(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(f=g[s])||f&&d.key==f.key&&d.type===f.type)g[s]=void 0;else for(p=0;p<y;p++){if((f=g[p])&&d.key==f.key&&d.type===f.type){g[p]=void 0;break}f=null}Rt(e,d,f=f||vt,o,i,u,a,c,l),m=d.__e,(p=d.ref)&&f.ref!=p&&(h||(h=[]),f.ref&&h.push(f.ref,null,d),h.push(p,d.__c||m,d)),null!=m?(null==v&&(v=m),"function"==typeof d.type&&d.__k===f.__k?d.__d=c=Ct(d,c,e):c=Dt(e,d,f,g,m,c),"function"==typeof n.type&&(n.__d=c)):c&&f.__e==c&&c.parentNode!=e&&(c=wt(f))}for(n.__e=v,s=y;s--;)null!=g[s]&&("function"==typeof n.type&&null!=g[s].__e&&g[s].__e==n.__d&&(n.__d=wt(r,s+1)),Ft(g[s],g[s]));if(h)for(s=0;s<h.length;s++)Bt(h[s],h[++s],h[++s])}function Ct(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?Ct(r,t,n):Dt(n,r,r,o,r.__e,t));return t}function Dt(e,t,n,r,o,i){var u,a,c;if(void 0!==t.__d)u=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),u=null;else{for(a=i,c=0;(a=a.nextSibling)&&c<r.length;c+=2)if(a==o)break e;e.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function kt(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||gt.test(t)?n:n+"px"}function xt(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||kt(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||kt(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?qt:Nt,i):e.removeEventListener(t,i?qt:Nt,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function Nt(e){this.l[e.type+!1](st.event?st.event(e):e)}function qt(e){this.l[e.type+!0](st.event?st.event(e):e)}function Rt(e,t,n,r,o,i,u,a,c){var l,s,p,f,d,m,v,h,g,y,b,O=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,a=t.__e=n.__e,t.__h=null,i=[a]),(l=st.__b)&&l(t);try{e:if("function"==typeof O){if(h=t.props,g=(l=O.contextType)&&r[l.__c],y=l?g?g.props.value:l.__:r,n.__c?v=(s=t.__c=n.__c).__=s.__E:("prototype"in O&&O.prototype.render?t.__c=s=new O(h,y):(t.__c=s=new jt(h,y),s.constructor=O,s.render=Mt),g&&g.sub(s),s.props=h,s.state||(s.state={}),s.context=y,s.__n=r,p=s.__d=!0,s.__h=[]),null==s.__s&&(s.__s=s.state),null!=O.getDerivedStateFromProps&&(s.__s==s.state&&(s.__s=yt({},s.__s)),yt(s.__s,O.getDerivedStateFromProps(h,s.__s))),f=s.props,d=s.state,p)null==O.getDerivedStateFromProps&&null!=s.componentWillMount&&s.componentWillMount(),null!=s.componentDidMount&&s.__h.push(s.componentDidMount);else{if(null==O.getDerivedStateFromProps&&h!==f&&null!=s.componentWillReceiveProps&&s.componentWillReceiveProps(h,y),!s.__e&&null!=s.shouldComponentUpdate&&!1===s.shouldComponentUpdate(h,s.__s,y)||t.__v===n.__v){s.props=h,s.state=s.__s,t.__v!==n.__v&&(s.__d=!1),s.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),s.__h.length&&u.push(s);break e}null!=s.componentWillUpdate&&s.componentWillUpdate(h,s.__s,y),null!=s.componentDidUpdate&&s.__h.push((function(){s.componentDidUpdate(f,d,m)}))}s.context=y,s.props=h,s.state=s.__s,(l=st.__r)&&l(t),s.__d=!1,s.__v=t,s.__P=e,l=s.render(s.props,s.state,s.context),s.state=s.__s,null!=s.getChildContext&&(r=yt(yt({},r),s.getChildContext())),p||null==s.getSnapshotBeforeUpdate||(m=s.getSnapshotBeforeUpdate(f,d)),b=null!=l&&l.type===Pt&&null==l.key?l.props.children:l,At(e,Array.isArray(b)?b:[b],t,n,r,o,i,u,a,c),s.base=t.__e,t.__h=null,s.__h.length&&u.push(s),v&&(s.__E=s.__=null),s.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Lt(n.__e,t,n,r,o,i,u,c);(l=st.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=i)&&(t.__e=a,t.__h=!!c,i[i.indexOf(a)]=null),st.__e(e,t,n)}}function Tt(e,t){st.__c&&st.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){st.__e(e,t.__v)}}))}function Lt(e,t,n,r,o,i,u,a){var c,l,s,p=n.props,f=t.props,d=t.type,m=0;if("svg"===d&&(o=!0),null!=i)for(;m<i.length;m++)if((c=i[m])&&"setAttribute"in c==!!d&&(d?c.localName===d:3===c.nodeType)){e=c,i[m]=null;break}if(null==e){if(null===d)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),i=null,a=!1}if(null===d)p===f||a&&e.data===f||(e.data=f);else{if(i=i&&lt.call(e.childNodes),l=(p=n.props||vt).dangerouslySetInnerHTML,s=f.dangerouslySetInnerHTML,!a){if(null!=i)for(p={},m=0;m<e.attributes.length;m++)p[e.attributes[m].name]=e.attributes[m].value;(s||l)&&(s&&(l&&s.__html==l.__html||s.__html===e.innerHTML)||(e.innerHTML=s&&s.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||xt(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||xt(e,i,t[i],n[i],r)}(e,f,p,o,a),s)t.__k=[];else if(m=t.props.children,At(e,Array.isArray(m)?m:[m],t,n,r,o&&"foreignObject"!==d,i,u,i?i[0]:n.__k&&wt(n,0),a),null!=i)for(m=i.length;m--;)null!=i[m]&&bt(i[m]);a||("value"in f&&void 0!==(m=f.value)&&(m!==p.value||m!==e.value||"progress"===d&&!m)&&xt(e,"value",m,p.value,!1),"checked"in f&&void 0!==(m=f.checked)&&m!==e.checked&&xt(e,"checked",m,p.checked,!1))}return e}function Bt(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){st.__e(e,n)}}function Ft(e,t,n){var r,o;if(st.unmount&&st.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Bt(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){st.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ft(r[o],t,"function"!=typeof e.type);n||null==e.__e||bt(e.__e),e.__e=e.__d=void 0}function Mt(e,t,n){return this.constructor(e,n)}lt=ht.slice,st={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},pt=0,jt.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=yt({},this.state),"function"==typeof e&&(e=e(yt({},n),this.props)),e&&yt(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),It(this))},jt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),It(this))},jt.prototype.render=Pt,ft=[],dt="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Et.__r=0;var Ut="__aa-highlight__",Ht="__/aa-highlight__";function Vt(e){var t=e.highlightedValue.split(Ut),n=t.shift(),r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{get:function(){return e},add:function(t){var n=e[e.length-1];(null==n?void 0:n.isHighlighted)===t.isHighlighted?e[e.length-1]={value:n.value+t.value,isHighlighted:n.isHighlighted}:e.push(t)}}}(n?[{value:n,isHighlighted:!1}]:[]);return t.forEach((function(e){var t=e.split(Ht);r.add({value:t[0],isHighlighted:!0}),""!==t[1]&&r.add({value:t[1],isHighlighted:!1})})),r.get()}function Wt(e){return function(e){if(Array.isArray(e))return Qt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $t(e){var t=e.hit,n=e.attribute,r=Array.isArray(n)?n:[n],o=h(t,["_highlightResult"].concat(Wt(r),["value"]));return"string"!=typeof o&&(o=h(t,r)||""),Vt({highlightedValue:o})}var zt={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Gt=new RegExp(/\w/i),Kt=/&(amp|quot|lt|gt|#39);/g,Jt=RegExp(Kt.source);function Yt(e,t){var n,r,o,i=e[t],u=(null===(n=e[t+1])||void 0===n?void 0:n.isHighlighted)||!0,a=(null===(r=e[t-1])||void 0===r?void 0:r.isHighlighted)||!0;return Gt.test((o=i.value)&&Jt.test(o)?o.replace(Kt,(function(e){return zt[e]})):o)||a!==u?i.isHighlighted:a}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){en(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function en(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tn(e){return e.some((function(e){return e.isHighlighted}))?e.map((function(t,n){return Zt(Zt({},t),{},{isHighlighted:!Yt(e,n)})})):e.map((function(e){return Zt(Zt({},e),{},{isHighlighted:!1})}))}function nn(e){return function(e){if(Array.isArray(e))return rn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return rn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function on(e){var t=e.hit,n=e.attribute,r=Array.isArray(n)?n:[n],o=h(t,["_snippetResult"].concat(nn(r),["value"]));return"string"!=typeof o&&(o=h(t,r)||""),Vt({highlightedValue:o})}function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach((function(t){cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ln=["params"];function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){fn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mn(e){return function(e){if(Array.isArray(e))return vn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return vn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hn(e){var t=e.createElement,n=e.Fragment;function r(e){var r=e.hit,o=e.attribute,i=e.tagName,u=void 0===i?"mark":i;return t(n,{},$t({hit:r,attribute:o}).map((function(e,n){return e.isHighlighted?t(u,{key:n},e.value):e.value})))}return r.__autocomplete_componentName="Highlight",r}function gn(e){var t=e.createElement,n=e.Fragment;function r(e){var r,o=e.hit,i=e.attribute,u=e.tagName,a=void 0===u?"mark":u;return t(n,{},(r={hit:o,attribute:i},tn($t(r))).map((function(e,n){return e.isHighlighted?t(a,{key:n},e.value):e.value})))}return r.__autocomplete_componentName="ReverseHighlight",r}function yn(e){var t=e.createElement,n=e.Fragment;function r(e){var r,o=e.hit,i=e.attribute,u=e.tagName,a=void 0===u?"mark":u;return t(n,{},(r={hit:o,attribute:i},tn(on(r))).map((function(e,n){return e.isHighlighted?t(a,{key:n},e.value):e.value})))}return r.__autocomplete_componentName="ReverseSnippet",r}function bn(e){var t=e.createElement,n=e.Fragment;function r(e){var r=e.hit,o=e.attribute,i=e.tagName,u=void 0===i?"mark":i;return t(n,{},on({hit:r,attribute:o}).map((function(e,n){return e.isHighlighted?t(u,{key:n},e.value):e.value})))}return r.__autocomplete_componentName="Snippet",r}var On=["classNames","container","getEnvironmentProps","getFormProps","getInputProps","getItemProps","getLabelProps","getListProps","getPanelProps","getRootProps","panelContainer","panelPlacement","render","renderNoResults","renderer","detachedMediaQuery","components","translations"],_n={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout aa-Panel--scrollable",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},Pn=function(e,t){var n=e.children;(0,e.render)(n,t)},jn={createElement:Ot,Fragment:Pt,render:function(e,t,n){var r,o,i;st.__&&st.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],Rt(t,e=(!r&&n||t).__k=Ot(Pt,null,[e]),o||vt,vt,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?lt.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),Tt(i,e)}};function wn(e){var t=e.panelPlacement,n=e.container,r=e.form,o=e.environment,i=n.getBoundingClientRect(),u=(o.pageYOffset||o.document.documentElement.scrollTop||o.document.body.scrollTop||0)+i.top+i.height;switch(t){case"start":return{top:u,left:i.left};case"end":return{top:u,right:o.document.documentElement.clientWidth-(i.left+i.width)};case"full-width":return{top:u,left:0,right:0,width:"unset",maxWidth:"unset"};case"input-wrapper-width":var a=r.getBoundingClientRect();return{top:u,left:a.left,right:o.document.documentElement.clientWidth-(a.left+a.width),width:"unset",maxWidth:"unset"};default:throw new Error("[Autocomplete] The `panelPlacement` value ".concat(JSON.stringify(t)," is not valid."))}}var Sn=[{segment:"autocomplete-js",version:b}],In=["components"];var En=function(e,t){function n(t){return e({searchClient:t.searchClient,queries:t.requests.map((function(e){return e.query}))}).then((function(e){return e.map((function(e,n){var r=t.requests[n];return{items:e,sourceId:r.sourceId,transformResponse:r.transformResponse}}))}))}return function(e){return function(r){return an(an({requesterId:t,execute:n},e),r)}}}((function(e){return function(e){var t=e.searchClient,n=e.queries,r=e.userAgents,o=void 0===r?[]:r;return"function"==typeof t.addAlgoliaAgent&&[].concat(mn(O),mn(o)).forEach((function(e){var n=e.segment,r=e.version;t.addAlgoliaAgent(n,r)})),t.search(n.map((function(e){var t=e.params;return pn(pn({},dn(e,ln)),{},{params:pn({hitsPerPage:5,highlightPreTag:Ut,highlightPostTag:Ht},t)})}))).then((function(e){return e.results}))}(n(n({},e),{},{userAgents:Sn}))}),"algolia");var An=En({transformResponse:function(e){return e.hits}});e.autocomplete=function(e){var t,r=function(){var e=[],t=[];function n(n){e.push(n);var r=n();t.push(r)}return{runEffect:n,cleanupEffects:function(){var e=t;t=[],e.forEach((function(e){e()}))},runEffects:function(){var t=e;e=[],t.forEach((function(e){n(e)}))}}}(),a=r.runEffect,c=r.cleanupEffects,l=r.runEffects,s=(t=[],{reactive:function(e){var n=e(),r={_fn:e,_ref:{current:n},get value(){return this._ref.current},set value(e){this._ref.current=e}};return t.push(r),r},runReactives:function(){t.forEach((function(e){e._ref.current=e._fn()}))}}),d=s.reactive,m=s.runReactives,h=p(!1),y=p(e),b=p(void 0),O=d((function(){return function(e){var t,r=e.classNames,o=e.container,i=e.getEnvironmentProps,a=e.getFormProps,c=e.getInputProps,l=e.getItemProps,s=e.getLabelProps,p=e.getListProps,f=e.getPanelProps,d=e.getRootProps,m=e.panelContainer,h=e.panelPlacement,g=e.render,y=e.renderNoResults,b=e.renderer,O=e.detachedMediaQuery,_=e.components,P=e.translations,j=u(e,On),w="undefined"!=typeof window?window:{},S=Qe(w,o);S.tagName;var I=n(n({},jn),b),E={Highlight:hn(I),ReverseHighlight:gn(I),ReverseSnippet:yn(I),Snippet:bn(I)};return{renderer:{classNames:$e(_n,null!=r?r:{}),container:S,getEnvironmentProps:null!=i?i:function(e){return e.props},getFormProps:null!=a?a:function(e){return e.props},getInputProps:null!=c?c:function(e){return e.props},getItemProps:null!=l?l:function(e){return e.props},getLabelProps:null!=s?s:function(e){return e.props},getListProps:null!=p?p:function(e){return e.props},getPanelProps:null!=f?f:function(e){return e.props},getRootProps:null!=d?d:function(e){return e.props},panelContainer:m?Qe(w,m):w.document.body,panelPlacement:null!=h?h:"input-wrapper-width",render:null!=g?g:Pn,renderNoResults:y,renderer:I,detachedMediaQuery:null!=O?O:getComputedStyle(w.document.documentElement).getPropertyValue("--aa-detached-media-query"),components:n(n({},E),_),translations:n(n({},{clearButtonTitle:"Clear",detachedCancelButtonText:"Cancel",submitButtonTitle:"Submit"}),P)},core:n(n({},j),{},{id:null!==(t=j.id)&&void 0!==t?t:v(),environment:w})}}(y.current)})),_=d((function(){return O.value.core.environment.matchMedia(O.value.renderer.detachedMediaQuery).matches})),P=d((function(){return Me(n(n({},O.value.core),{},{onStateChange:function(e){var t,n,r;h.current=e.state.collections.some((function(e){return e.source.templates.noResults})),null===(t=b.current)||void 0===t||t.call(b,e),null===(n=(r=O.value.core).onStateChange)||void 0===n||n.call(r,e)},shouldPanelOpen:y.current.shouldPanelOpen||function(e){var t=e.state;if(_.value)return!0;var n=g(t)>0;if(!O.value.core.openOnFocus&&!t.query)return n;var r=Boolean(h.current||O.value.renderer.renderNoResults);return!n&&r||n},__autocomplete_metadata:{userAgents:Sn,options:e}}))})),j=p(n({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},O.value.core.initialState)),w={getEnvironmentProps:O.value.renderer.getEnvironmentProps,getFormProps:O.value.renderer.getFormProps,getInputProps:O.value.renderer.getInputProps,getItemProps:O.value.renderer.getItemProps,getLabelProps:O.value.renderer.getLabelProps,getListProps:O.value.renderer.getListProps,getPanelProps:O.value.renderer.getPanelProps,getRootProps:O.value.renderer.getRootProps},S={setActiveItemId:P.value.setActiveItemId,setQuery:P.value.setQuery,setCollections:P.value.setCollections,setIsOpen:P.value.setIsOpen,setStatus:P.value.setStatus,setContext:P.value.setContext,refresh:P.value.refresh},I=d((function(){return Ve.bind(O.value.renderer.renderer.createElement)})),E=d((function(){return ct({autocomplete:P.value,autocompleteScopeApi:S,classNames:O.value.renderer.classNames,environment:O.value.core.environment,isDetached:_.value,placeholder:O.value.core.placeholder,propGetters:w,setIsModalOpen:k,state:j.current,translations:O.value.renderer.translations})}));function A(){tt(E.value.panel,{style:_.value?{}:wn({panelPlacement:O.value.renderer.panelPlacement,container:E.value.root,form:E.value.form,environment:O.value.core.environment})})}function C(e){j.current=e;var t={autocomplete:P.value,autocompleteScopeApi:S,classNames:O.value.renderer.classNames,components:O.value.renderer.components,container:O.value.renderer.container,html:I.value,dom:E.value,panelContainer:_.value?E.value.detachedContainer:O.value.renderer.panelContainer,propGetters:w,state:j.current,renderer:O.value.renderer.renderer},r=!g(e)&&!h.current&&O.value.renderer.renderNoResults||O.value.renderer.render;!function(e){var t=e.autocomplete,r=e.autocompleteScopeApi,o=e.dom,i=e.propGetters,u=e.state;nt(o.root,i.getRootProps(n({state:u,props:t.getRootProps({})},r))),nt(o.input,i.getInputProps(n({state:u,props:t.getInputProps({inputElement:o.input}),inputElement:o.input},r))),tt(o.label,{hidden:"stalled"===u.status}),tt(o.loadingIndicator,{hidden:"stalled"!==u.status}),tt(o.clearButton,{hidden:!u.query})}(t),function(e,t){var r=t.autocomplete,o=t.autocompleteScopeApi,u=t.classNames,a=t.html,c=t.dom,l=t.panelContainer,s=t.propGetters,p=t.state,f=t.components,d=t.renderer;if(p.isOpen){l.contains(c.panel)||"loading"===p.status||l.appendChild(c.panel),c.panel.classList.toggle("aa-Panel--stalled","stalled"===p.status);var m=p.collections.filter((function(e){var t=e.source,n=e.items;return t.templates.noResults||n.length>0})).map((function(e,t){var c=e.source,l=e.items;return d.createElement("section",{key:t,className:u.source,"data-autocomplete-source-id":c.sourceId},c.templates.header&&d.createElement("div",{className:u.sourceHeader},c.templates.header({components:f,createElement:d.createElement,Fragment:d.Fragment,items:l,source:c,state:p,html:a})),c.templates.noResults&&0===l.length?d.createElement("div",{className:u.sourceNoResults},c.templates.noResults({components:f,createElement:d.createElement,Fragment:d.Fragment,source:c,state:p,html:a})):d.createElement("ul",i({className:u.list},s.getListProps(n({state:p,props:r.getListProps({})},o))),l.map((function(e){var t=r.getItemProps({item:e,source:c});return d.createElement("li",i({key:t.id,className:u.item},s.getItemProps(n({state:p,props:t},o))),c.templates.item({components:f,createElement:d.createElement,Fragment:d.Fragment,item:e,state:p,html:a}))}))),c.templates.footer&&d.createElement("div",{className:u.sourceFooter},c.templates.footer({components:f,createElement:d.createElement,Fragment:d.Fragment,items:l,source:c,state:p,html:a})))})),v=d.createElement(d.Fragment,null,d.createElement("div",{className:u.panelLayout},m),d.createElement("div",{className:"aa-GradientBottom"})),h=m.reduce((function(e,t){return e[t.props["data-autocomplete-source-id"]]=t,e}),{});e(n(n({children:v,state:p,sections:m,elements:h},d),{},{components:f,html:a},o),c.panel)}else l.contains(c.panel)&&l.removeChild(c.panel)}(r,t)}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c();var t=O.value.renderer,n=t.components,r=u(t,In);y.current=Ge(r,O.value.core,{components:Ke(n,(function(e){return!e.value.hasOwnProperty("__autocomplete_componentName")})),initialState:j.current},e),m(),l(),P.value.refresh().then((function(){C(j.current)}))}function k(e){requestAnimationFrame((function(){var t=O.value.core.environment.document.body.contains(E.value.detachedOverlay);e!==t&&(e?(O.value.core.environment.document.body.appendChild(E.value.detachedOverlay),O.value.core.environment.document.body.classList.add("aa-Detached"),E.value.input.focus()):(O.value.core.environment.document.body.removeChild(E.value.detachedOverlay),O.value.core.environment.document.body.classList.remove("aa-Detached"),P.value.setQuery(""),P.value.refresh()))}))}return a((function(){var e=P.value.getEnvironmentProps({formElement:E.value.form,panelElement:E.value.panel,inputElement:E.value.input});return tt(O.value.core.environment,e),function(){tt(O.value.core.environment,Object.keys(e).reduce((function(e,t){return n(n({},e),{},o({},t,void 0))}),{}))}})),a((function(){var e=_.value?O.value.core.environment.document.body:O.value.renderer.panelContainer,t=_.value?E.value.detachedOverlay:E.value.panel;return _.value&&j.current.isOpen&&k(!0),C(j.current),function(){e.contains(t)&&e.removeChild(t)}})),a((function(){var e=O.value.renderer.container;return e.appendChild(E.value.root),function(){e.removeChild(E.value.root)}})),a((function(){var e=f((function(e){C(e.state)}),0);return b.current=function(t){var n=t.state,r=t.prevState;(_.value&&r.isOpen!==n.isOpen&&k(n.isOpen),_.value||!n.isOpen||r.isOpen||A(),n.query!==r.query)&&O.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable").forEach((function(e){0!==e.scrollTop&&(e.scrollTop=0)}));e({state:n})},function(){b.current=void 0}})),a((function(){var e=f((function(){var e=_.value;_.value=O.value.core.environment.matchMedia(O.value.renderer.detachedMediaQuery).matches,e!==_.value?D({}):requestAnimationFrame(A)}),20);return O.value.core.environment.addEventListener("resize",e),function(){O.value.core.environment.removeEventListener("resize",e)}})),a((function(){if(!_.value)return function(){};function e(e){E.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",e)}function t(t){e(t.matches)}var n=O.value.core.environment.matchMedia(getComputedStyle(O.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));e(n.matches);var r=Boolean(n.addEventListener);return r?n.addEventListener("change",t):n.addListener(t),function(){r?n.removeEventListener("change",t):n.removeListener(t)}})),a((function(){return requestAnimationFrame(A),function(){}})),n(n({},S),{},{update:D,destroy:function(){c()}})},e.getAlgoliaFacets=function(e){var t=En({transformResponse:function(e){return e.facetHits}}),r=e.queries.map((function(e){return n(n({},e),{},{type:"facet"})}));return t(n(n({},e),{},{queries:r}))},e.getAlgoliaResults=An,Object.defineProperty(e,"__esModule",{value:!0})}));
3
+
_proc/_docs/site_libs/quarto-search/fuse.min.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Fuse.js v6.6.2 - Lightweight fuzzy-search (http://fusejs.io)
3
+ *
4
+ * Copyright (c) 2022 Kiro Risk (http://kiro.me)
5
+ * All Rights Reserved. Apache Software License 2.0
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ */
9
+ var e,t;e=this,t=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&u(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e){return Array.isArray?Array.isArray(e):"[object Array]"===b(e)}function g(e){return"string"==typeof e}function y(e){return"number"==typeof e}function p(e){return!0===e||!1===e||function(e){return m(e)&&null!==e}(e)&&"[object Boolean]"==b(e)}function m(e){return"object"===n(e)}function k(e){return null!=e}function M(e){return!e.trim().length}function b(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var x=function(e){return"Invalid value for key ".concat(e)},w=function(e){return"Pattern length exceeds max of ".concat(e,".")},L=Object.prototype.hasOwnProperty,S=function(){function e(t){var n=this;r(this,e),this._keys=[],this._keyMap={};var i=0;t.forEach((function(e){var t=_(e);i+=t.weight,n._keys.push(t),n._keyMap[t.id]=t,i+=t.weight})),this._keys.forEach((function(e){e.weight/=i}))}return o(e,[{key:"get",value:function(e){return this._keyMap[e]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function _(e){var t=null,n=null,r=null,i=1,o=null;if(g(e)||v(e))r=e,t=O(e),n=j(e);else{if(!L.call(e,"name"))throw new Error(function(e){return"Missing ".concat(e," property in key")}("name"));var c=e.name;if(r=c,L.call(e,"weight")&&(i=e.weight)<=0)throw new Error(function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")}(c));t=O(c),n=j(c),o=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:o}}function O(e){return v(e)?e:e.split(".")}function j(e){return v(e)?e.join("."):e}var A={useExtendedSearch:!1,getFn:function(e,t){var n=[],r=!1;return function e(t,i,o){if(k(t))if(i[o]){var c=t[i[o]];if(!k(c))return;if(o===i.length-1&&(g(c)||y(c)||p(c)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(c));else if(v(c)){r=!0;for(var a=0,s=c.length;a<s;a+=1)e(c[a],i,o+1)}else i.length&&e(c,i,o+1)}else n.push(t)}(e,g(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},I=t(t(t(t({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){return e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}}),{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1}),{location:0,threshold:.6,distance:100}),A),C=/[^ ]+/g;function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=new Map,r=Math.pow(10,t);return{get:function(t){var i=t.match(C).length;if(n.has(i))return n.get(i);var o=1/Math.pow(i,.5*e),c=parseFloat(Math.round(o*r)/r);return n.set(i,c),c},clear:function(){n.clear()}}}var $=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,i=void 0===n?I.getFn:n,o=t.fieldNormWeight,c=void 0===o?I.fieldNormWeight:o;r(this,e),this.norm=E(c,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return o(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,g(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();g(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}},{key:"getValueForItemAtKeyId",value:function(e,t){return e[this._keysMap[t]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(e,t){if(k(e)&&!M(e)){var n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}}},{key:"_addObject",value:function(e,t){var n=this,r={i:t,$:{}};this.keys.forEach((function(t,i){var o=t.getFn?t.getFn(e):n.getFn(e,t.path);if(k(o))if(v(o))!function(){for(var e=[],t=[{nestedArrIndex:-1,value:o}];t.length;){var c=t.pop(),a=c.nestedArrIndex,s=c.value;if(k(s))if(g(s)&&!M(s)){var u={v:s,i:a,n:n.norm.get(s)};e.push(u)}else v(s)&&s.forEach((function(e,n){t.push({nestedArrIndex:n,value:e})}))}r.$[i]=e}();else if(g(o)&&!M(o)){var c={v:o,n:n.norm.get(o)};r.$[i]=c}})),this.records.push(r)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function F(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?I.getFn:r,o=n.fieldNormWeight,c=void 0===o?I.fieldNormWeight:o,a=new $({getFn:i,fieldNormWeight:c});return a.setKeys(e.map(_)),a.setSources(t),a.create(),a}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,i=t.currentLocation,o=void 0===i?0:i,c=t.expectedLocation,a=void 0===c?0:c,s=t.distance,u=void 0===s?I.distance:s,h=t.ignoreLocation,l=void 0===h?I.ignoreLocation:h,f=r/e.length;if(l)return f;var d=Math.abs(a-o);return u?f+d/u:d?1:f}function N(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.minMatchCharLength,n=[],r=-1,i=-1,o=0,c=e.length;o<c;o+=1){var a=e[o];a&&-1===r?r=o:a||-1===r||((i=o-1)-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}var P=32;function W(e){for(var t={},n=0,r=e.length;n<r;n+=1){var i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}var T=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.location,c=void 0===o?I.location:o,a=i.threshold,s=void 0===a?I.threshold:a,u=i.distance,h=void 0===u?I.distance:u,l=i.includeMatches,f=void 0===l?I.includeMatches:l,d=i.findAllMatches,v=void 0===d?I.findAllMatches:d,g=i.minMatchCharLength,y=void 0===g?I.minMatchCharLength:g,p=i.isCaseSensitive,m=void 0===p?I.isCaseSensitive:p,k=i.ignoreLocation,M=void 0===k?I.ignoreLocation:k;if(r(this,e),this.options={location:c,threshold:s,distance:h,includeMatches:f,findAllMatches:v,minMatchCharLength:y,isCaseSensitive:m,ignoreLocation:M},this.pattern=m?t:t.toLowerCase(),this.chunks=[],this.pattern.length){var b=function(e,t){n.chunks.push({pattern:e,alphabet:W(e),startIndex:t})},x=this.pattern.length;if(x>P){for(var w=0,L=x%P,S=x-L;w<S;)b(this.pattern.substr(w,P),w),w+=P;if(L){var _=x-P;b(this.pattern.substr(_),_)}}else b(this.pattern,0)}}return o(e,[{key:"searchIn",value:function(e){var t=this.options,n=t.isCaseSensitive,r=t.includeMatches;if(n||(e=e.toLowerCase()),this.pattern===e){var i={isMatch:!0,score:0};return r&&(i.indices=[[0,e.length-1]]),i}var o=this.options,c=o.location,a=o.distance,s=o.threshold,u=o.findAllMatches,h=o.minMatchCharLength,l=o.ignoreLocation,d=[],v=0,g=!1;this.chunks.forEach((function(t){var n=t.pattern,i=t.alphabet,o=t.startIndex,y=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?I.location:i,c=r.distance,a=void 0===c?I.distance:c,s=r.threshold,u=void 0===s?I.threshold:s,h=r.findAllMatches,l=void 0===h?I.findAllMatches:h,f=r.minMatchCharLength,d=void 0===f?I.minMatchCharLength:f,v=r.includeMatches,g=void 0===v?I.includeMatches:v,y=r.ignoreLocation,p=void 0===y?I.ignoreLocation:y;if(t.length>P)throw new Error(w(P));for(var m,k=t.length,M=e.length,b=Math.max(0,Math.min(o,M)),x=u,L=b,S=d>1||g,_=S?Array(M):[];(m=e.indexOf(t,L))>-1;){var O=R(t,{currentLocation:m,expectedLocation:b,distance:a,ignoreLocation:p});if(x=Math.min(O,x),L=m+k,S)for(var j=0;j<k;)_[m+j]=1,j+=1}L=-1;for(var A=[],C=1,E=k+M,$=1<<k-1,F=0;F<k;F+=1){for(var W=0,T=E;W<T;)R(t,{errors:F,currentLocation:b+T,expectedLocation:b,distance:a,ignoreLocation:p})<=x?W=T:E=T,T=Math.floor((E-W)/2+W);E=T;var z=Math.max(1,b-T+1),D=l?M:Math.min(b+T,M)+k,K=Array(D+2);K[D+1]=(1<<F)-1;for(var q=D;q>=z;q-=1){var B=q-1,J=n[e.charAt(B)];if(S&&(_[B]=+!!J),K[q]=(K[q+1]<<1|1)&J,F&&(K[q]|=(A[q+1]|A[q])<<1|1|A[q+1]),K[q]&$&&(C=R(t,{errors:F,currentLocation:B,expectedLocation:b,distance:a,ignoreLocation:p}))<=x){if(x=C,(L=B)<=b)break;z=Math.max(1,2*b-L)}}if(R(t,{errors:F+1,currentLocation:b,expectedLocation:b,distance:a,ignoreLocation:p})>x)break;A=K}var U={isMatch:L>=0,score:Math.max(.001,C)};if(S){var V=N(_,d);V.length?g&&(U.indices=V):U.isMatch=!1}return U}(e,n,i,{location:c+o,distance:a,threshold:s,findAllMatches:u,minMatchCharLength:h,includeMatches:r,ignoreLocation:l}),p=y.isMatch,m=y.score,k=y.indices;p&&(g=!0),v+=m,p&&k&&(d=[].concat(f(d),f(k)))}));var y={isMatch:g,score:g?v/this.chunks.length:1};return g&&r&&(y.indices=d),y}}]),e}(),z=function(){function e(t){r(this,e),this.pattern=t}return o(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return D(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return D(e,this.singleRegex)}}]),e}();function D(e,t){var n=e.match(t);return n?n[1]:null}var K=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),n}(z),q=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),n}(z),B=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),n}(z),J=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),n}(z),U=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),n}(z),V=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),n}(z),G=function(e){a(n,e);var t=l(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=o.location,a=void 0===c?I.location:c,s=o.threshold,u=void 0===s?I.threshold:s,h=o.distance,l=void 0===h?I.distance:h,f=o.includeMatches,d=void 0===f?I.includeMatches:f,v=o.findAllMatches,g=void 0===v?I.findAllMatches:v,y=o.minMatchCharLength,p=void 0===y?I.minMatchCharLength:y,m=o.isCaseSensitive,k=void 0===m?I.isCaseSensitive:m,M=o.ignoreLocation,b=void 0===M?I.ignoreLocation:M;return r(this,n),(i=t.call(this,e))._bitapSearch=new T(e,{location:a,threshold:u,distance:l,includeMatches:d,findAllMatches:g,minMatchCharLength:p,isCaseSensitive:k,ignoreLocation:b}),i}return o(n,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),n}(z),H=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){for(var t,n=0,r=[],i=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);var o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),n}(z),Q=[K,H,B,J,V,U,q,G],X=Q.length,Y=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(Y).filter((function(e){return e&&!!e.trim()})),r=[],i=0,o=n.length;i<o;i+=1){for(var c=n[i],a=!1,s=-1;!a&&++s<X;){var u=Q[s],h=u.isMultiMatch(c);h&&(r.push(new u(h,t)),a=!0)}if(!a)for(s=-1;++s<X;){var l=Q[s],f=l.isSingleMatch(c);if(f){r.push(new l(f,t));break}}}return r}))}var ee=new Set([G.type,H.type]),te=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.isCaseSensitive,o=void 0===i?I.isCaseSensitive:i,c=n.includeMatches,a=void 0===c?I.includeMatches:c,s=n.minMatchCharLength,u=void 0===s?I.minMatchCharLength:s,h=n.ignoreLocation,l=void 0===h?I.ignoreLocation:h,f=n.findAllMatches,d=void 0===f?I.findAllMatches:f,v=n.location,g=void 0===v?I.location:v,y=n.threshold,p=void 0===y?I.threshold:y,m=n.distance,k=void 0===m?I.distance:m;r(this,e),this.query=null,this.options={isCaseSensitive:o,includeMatches:a,minMatchCharLength:u,findAllMatches:d,ignoreLocation:l,location:g,threshold:p,distance:k},this.pattern=o?t:t.toLowerCase(),this.query=Z(this.pattern,this.options)}return o(e,[{key:"searchIn",value:function(e){var t=this.query;if(!t)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;e=n.isCaseSensitive?e:e.toLowerCase();for(var i=0,o=[],c=0,a=0,s=t.length;a<s;a+=1){var u=t[a];o.length=0,i=0;for(var h=0,l=u.length;h<l;h+=1){var d=u[h],v=d.search(e),g=v.isMatch,y=v.indices,p=v.score;if(!g){c=0,i=0,o.length=0;break}if(i+=1,c+=p,r){var m=d.constructor.type;ee.has(m)?o=[].concat(f(o),f(y)):o.push(y)}}if(i){var k={isMatch:!0,score:c/i};return r&&(k.indices=o),k}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(e,t){return t.useExtendedSearch}}]),e}(),ne=[];function re(e,t){for(var n=0,r=ne.length;n<r;n+=1){var i=ne[n];if(i.condition(e,t))return new i(e,t)}return new T(e,t)}var ie="$and",oe="$or",ce="$path",ae="$val",se=function(e){return!(!e[ie]&&!e[oe])},ue=function(e){return!!e[ce]},he=function(e){return!v(e)&&m(e)&&!se(e)},le=function(e){return c({},ie,Object.keys(e).map((function(t){return c({},t,e[t])})))};function fe(e,t){var n=t.ignoreFieldNorm,r=void 0===n?I.ignoreFieldNorm:n;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var n=e.key,i=e.norm,o=e.score,c=n?n.weight:null;t*=Math.pow(0===o&&c?Number.EPSILON:o,(c||1)*(r?1:i))})),e.score=t}))}function de(e,t){var n=e.matches;t.matches=[],k(n)&&n.forEach((function(e){if(k(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function ve(e,t){t.score=e.score}function ge(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?I.includeMatches:r,o=n.includeScore,c=void 0===o?I.includeScore:o,a=[];return i&&a.push(de),c&&a.push(ve),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return a.length&&a.forEach((function(t){t(e,r)})),r}))}var ye=function(){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;r(this,e),this.options=t(t({},I),i),this.options.useExtendedSearch,this._keyStore=new S(this.options.keys),this.setCollection(n,o)}return o(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof $))throw new Error("Incorrect 'index' type");this._myIndex=t||F(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){k(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n<r;n+=1){var i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,r-=1,t.push(i))}return t}},{key:"removeAt",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?-1:n,i=this.options,o=i.includeMatches,c=i.includeScore,a=i.shouldSort,s=i.sortFn,u=i.ignoreFieldNorm,h=g(e)?g(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return fe(h,{ignoreFieldNorm:u}),a&&h.sort(s),y(r)&&r>-1&&(h=h.slice(0,r)),ge(h,this._docs,{includeMatches:o,includeScore:c})}},{key:"_searchStringList",value:function(e){var t=re(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,i=e.i,o=e.n;if(k(n)){var c=t.searchIn(n),a=c.isMatch,s=c.score,u=c.indices;a&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:u}]})}})),r}},{key:"_searchLogical",value:function(e){var t=this,n=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).auto,r=void 0===n||n,i=function e(n){var i=Object.keys(n),o=ue(n);if(!o&&i.length>1&&!se(n))return e(le(n));if(he(n)){var c=o?n[ce]:i[0],a=o?n[ae]:n[c];if(!g(a))throw new Error(x(c));var s={keyId:j(c),pattern:a};return r&&(s.searcher=re(a,t)),s}var u={children:[],operator:i[0]};return i.forEach((function(t){var r=n[t];v(r)&&r.forEach((function(t){u.children.push(e(t))}))})),u};return se(e)||(e=le(e)),i(e)}(e,this.options),r=function e(n,r,i){if(!n.children){var o=n.keyId,c=n.searcher,a=t._findMatches({key:t._keyStore.get(o),value:t._myIndex.getValueForItemAtKeyId(r,o),searcher:c});return a&&a.length?[{idx:i,item:r,matches:a}]:[]}for(var s=[],u=0,h=n.children.length;u<h;u+=1){var l=e(n.children[u],r,i);if(l.length)s.push.apply(s,f(l));else if(n.operator===ie)return[]}return s},i=this._myIndex.records,o={},c=[];return i.forEach((function(e){var t=e.$,i=e.i;if(k(t)){var a=r(n,t,i);a.length&&(o[i]||(o[i]={idx:i,item:t,matches:[]},c.push(o[i])),a.forEach((function(e){var t,n=e.matches;(t=o[i].matches).push.apply(t,f(n))})))}})),c}},{key:"_searchObjectList",value:function(e){var t=this,n=re(e,this.options),r=this._myIndex,i=r.keys,o=r.records,c=[];return o.forEach((function(e){var r=e.$,o=e.i;if(k(r)){var a=[];i.forEach((function(e,i){a.push.apply(a,f(t._findMatches({key:e,value:r[i],searcher:n})))})),a.length&&c.push({idx:o,item:r,matches:a})}})),c}},{key:"_findMatches",value:function(e){var t=e.key,n=e.value,r=e.searcher;if(!k(n))return[];var i=[];if(v(n))n.forEach((function(e){var n=e.v,o=e.i,c=e.n;if(k(n)){var a=r.searchIn(n),s=a.isMatch,u=a.score,h=a.indices;s&&i.push({score:u,key:t,value:n,idx:o,norm:c,indices:h})}}));else{var o=n.v,c=n.n,a=r.searchIn(o),s=a.isMatch,u=a.score,h=a.indices;s&&i.push({score:u,key:t,value:o,norm:c,indices:h})}return i}}]),e}();return ye.version="6.6.2",ye.createIndex=F,ye.parseIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?I.getFn:n,i=t.fieldNormWeight,o=void 0===i?I.fieldNormWeight:i,c=e.keys,a=e.records,s=new $({getFn:r,fieldNormWeight:o});return s.setKeys(c),s.setIndexRecords(a),s},ye.config=I,function(){ne.push.apply(ne,arguments)}(te),ye},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Fuse=t();
_proc/_docs/site_libs/quarto-search/quarto-search.js ADDED
@@ -0,0 +1,1140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const kQueryArg = "q";
2
+ const kResultsArg = "show-results";
3
+
4
+ // If items don't provide a URL, then both the navigator and the onSelect
5
+ // function aren't called (and therefore, the default implementation is used)
6
+ //
7
+ // We're using this sentinel URL to signal to those handlers that this
8
+ // item is a more item (along with the type) and can be handled appropriately
9
+ const kItemTypeMoreHref = "0767FDFD-0422-4E5A-BC8A-3BE11E5BBA05";
10
+
11
+ window.document.addEventListener("DOMContentLoaded", function (_event) {
12
+ // Ensure that search is available on this page. If it isn't,
13
+ // should return early and not do anything
14
+ var searchEl = window.document.getElementById("quarto-search");
15
+ if (!searchEl) return;
16
+
17
+ const { autocomplete } = window["@algolia/autocomplete-js"];
18
+
19
+ let quartoSearchOptions = {};
20
+ let language = {};
21
+ const searchOptionEl = window.document.getElementById(
22
+ "quarto-search-options"
23
+ );
24
+ if (searchOptionEl) {
25
+ const jsonStr = searchOptionEl.textContent;
26
+ quartoSearchOptions = JSON.parse(jsonStr);
27
+ language = quartoSearchOptions.language;
28
+ }
29
+
30
+ // note the search mode
31
+ if (quartoSearchOptions.type === "overlay") {
32
+ searchEl.classList.add("type-overlay");
33
+ } else {
34
+ searchEl.classList.add("type-textbox");
35
+ }
36
+
37
+ // Used to determine highlighting behavior for this page
38
+ // A `q` query param is expected when the user follows a search
39
+ // to this page
40
+ const currentUrl = new URL(window.location);
41
+ const query = currentUrl.searchParams.get(kQueryArg);
42
+ const showSearchResults = currentUrl.searchParams.get(kResultsArg);
43
+ const mainEl = window.document.querySelector("main");
44
+
45
+ // highlight matches on the page
46
+ if (query !== null && mainEl) {
47
+ // perform any highlighting
48
+ highlight(escapeRegExp(query), mainEl);
49
+
50
+ // fix up the URL to remove the q query param
51
+ const replacementUrl = new URL(window.location);
52
+ replacementUrl.searchParams.delete(kQueryArg);
53
+ window.history.replaceState({}, "", replacementUrl);
54
+ }
55
+
56
+ // function to clear highlighting on the page when the search query changes
57
+ // (e.g. if the user edits the query or clears it)
58
+ let highlighting = true;
59
+ const resetHighlighting = (searchTerm) => {
60
+ if (mainEl && highlighting && query !== null && searchTerm !== query) {
61
+ clearHighlight(query, mainEl);
62
+ highlighting = false;
63
+ }
64
+ };
65
+
66
+ // Clear search highlighting when the user scrolls sufficiently
67
+ const resetFn = () => {
68
+ resetHighlighting("");
69
+ window.removeEventListener("quarto-hrChanged", resetFn);
70
+ window.removeEventListener("quarto-sectionChanged", resetFn);
71
+ };
72
+
73
+ // Register this event after the initial scrolling and settling of events
74
+ // on the page
75
+ window.addEventListener("quarto-hrChanged", resetFn);
76
+ window.addEventListener("quarto-sectionChanged", resetFn);
77
+
78
+ // Responsively switch to overlay mode if the search is present on the navbar
79
+ // Note that switching the sidebar to overlay mode requires more coordinate (not just
80
+ // the media query since we generate different HTML for sidebar overlays than we do
81
+ // for sidebar input UI)
82
+ const detachedMediaQuery =
83
+ quartoSearchOptions.type === "overlay" ? "all" : "(max-width: 991px)";
84
+
85
+ // If configured, include the analytics client to send insights
86
+ const plugins = configurePlugins(quartoSearchOptions);
87
+
88
+ let lastState = null;
89
+ const { setIsOpen, setQuery, setCollections } = autocomplete({
90
+ container: searchEl,
91
+ detachedMediaQuery: detachedMediaQuery,
92
+ defaultActiveItemId: 0,
93
+ panelContainer: "#quarto-search-results",
94
+ panelPlacement: quartoSearchOptions["panel-placement"],
95
+ debug: false,
96
+ openOnFocus: true,
97
+ plugins,
98
+ classNames: {
99
+ form: "d-flex",
100
+ },
101
+ translations: {
102
+ clearButtonTitle: language["search-clear-button-title"],
103
+ detachedCancelButtonText: language["search-detached-cancel-button-title"],
104
+ submitButtonTitle: language["search-submit-button-title"],
105
+ },
106
+ initialState: {
107
+ query,
108
+ },
109
+ getItemUrl({ item }) {
110
+ return item.href;
111
+ },
112
+ onStateChange({ state }) {
113
+ // Perhaps reset highlighting
114
+ resetHighlighting(state.query);
115
+
116
+ // If the panel just opened, ensure the panel is positioned properly
117
+ if (state.isOpen) {
118
+ if (lastState && !lastState.isOpen) {
119
+ setTimeout(() => {
120
+ positionPanel(quartoSearchOptions["panel-placement"]);
121
+ }, 150);
122
+ }
123
+ }
124
+
125
+ // Perhaps show the copy link
126
+ showCopyLink(state.query, quartoSearchOptions);
127
+
128
+ lastState = state;
129
+ },
130
+ reshape({ sources, state }) {
131
+ return sources.map((source) => {
132
+ try {
133
+ const items = source.getItems();
134
+
135
+ // Validate the items
136
+ validateItems(items);
137
+
138
+ // group the items by document
139
+ const groupedItems = new Map();
140
+ items.forEach((item) => {
141
+ const hrefParts = item.href.split("#");
142
+ const baseHref = hrefParts[0];
143
+ const isDocumentItem = hrefParts.length === 1;
144
+
145
+ const items = groupedItems.get(baseHref);
146
+ if (!items) {
147
+ groupedItems.set(baseHref, [item]);
148
+ } else {
149
+ // If the href for this item matches the document
150
+ // exactly, place this item first as it is the item that represents
151
+ // the document itself
152
+ if (isDocumentItem) {
153
+ items.unshift(item);
154
+ } else {
155
+ items.push(item);
156
+ }
157
+ groupedItems.set(baseHref, items);
158
+ }
159
+ });
160
+
161
+ const reshapedItems = [];
162
+ let count = 1;
163
+ for (const [_key, value] of groupedItems) {
164
+ const firstItem = value[0];
165
+ reshapedItems.push({
166
+ ...firstItem,
167
+ type: kItemTypeDoc,
168
+ });
169
+
170
+ const collapseMatches = quartoSearchOptions["collapse-after"];
171
+ const collapseCount =
172
+ typeof collapseMatches === "number" ? collapseMatches : 1;
173
+
174
+ if (value.length > 1) {
175
+ const target = `search-more-${count}`;
176
+ const isExpanded =
177
+ state.context.expanded &&
178
+ state.context.expanded.includes(target);
179
+
180
+ const remainingCount = value.length - collapseCount;
181
+
182
+ for (let i = 1; i < value.length; i++) {
183
+ if (collapseMatches && i === collapseCount) {
184
+ reshapedItems.push({
185
+ target,
186
+ title: isExpanded
187
+ ? language["search-hide-matches-text"]
188
+ : remainingCount === 1
189
+ ? `${remainingCount} ${language["search-more-match-text"]}`
190
+ : `${remainingCount} ${language["search-more-matches-text"]}`,
191
+ type: kItemTypeMore,
192
+ href: kItemTypeMoreHref,
193
+ });
194
+ }
195
+
196
+ if (isExpanded || !collapseMatches || i < collapseCount) {
197
+ reshapedItems.push({
198
+ ...value[i],
199
+ type: kItemTypeItem,
200
+ target,
201
+ });
202
+ }
203
+ }
204
+ }
205
+ count += 1;
206
+ }
207
+
208
+ return {
209
+ ...source,
210
+ getItems() {
211
+ return reshapedItems;
212
+ },
213
+ };
214
+ } catch (error) {
215
+ // Some form of error occurred
216
+ return {
217
+ ...source,
218
+ getItems() {
219
+ return [
220
+ {
221
+ title: error.name || "An Error Occurred While Searching",
222
+ text:
223
+ error.message ||
224
+ "An unknown error occurred while attempting to perform the requested search.",
225
+ type: kItemTypeError,
226
+ },
227
+ ];
228
+ },
229
+ };
230
+ }
231
+ });
232
+ },
233
+ navigator: {
234
+ navigate({ itemUrl }) {
235
+ if (itemUrl !== offsetURL(kItemTypeMoreHref)) {
236
+ window.location.assign(itemUrl);
237
+ }
238
+ },
239
+ navigateNewTab({ itemUrl }) {
240
+ if (itemUrl !== offsetURL(kItemTypeMoreHref)) {
241
+ const windowReference = window.open(itemUrl, "_blank", "noopener");
242
+ if (windowReference) {
243
+ windowReference.focus();
244
+ }
245
+ }
246
+ },
247
+ navigateNewWindow({ itemUrl }) {
248
+ if (itemUrl !== offsetURL(kItemTypeMoreHref)) {
249
+ window.open(itemUrl, "_blank", "noopener");
250
+ }
251
+ },
252
+ },
253
+ getSources({ state, setContext, setActiveItemId, refresh }) {
254
+ return [
255
+ {
256
+ sourceId: "documents",
257
+ getItemUrl({ item }) {
258
+ if (item.href) {
259
+ return offsetURL(item.href);
260
+ } else {
261
+ return undefined;
262
+ }
263
+ },
264
+ onSelect({
265
+ item,
266
+ state,
267
+ setContext,
268
+ setIsOpen,
269
+ setActiveItemId,
270
+ refresh,
271
+ }) {
272
+ if (item.type === kItemTypeMore) {
273
+ toggleExpanded(item, state, setContext, setActiveItemId, refresh);
274
+
275
+ // Toggle more
276
+ setIsOpen(true);
277
+ }
278
+ },
279
+ getItems({ query }) {
280
+ if (query === null || query === "") {
281
+ return [];
282
+ }
283
+
284
+ const limit = quartoSearchOptions.limit;
285
+ if (quartoSearchOptions.algolia) {
286
+ return algoliaSearch(query, limit, quartoSearchOptions.algolia);
287
+ } else {
288
+ // Fuse search options
289
+ const fuseSearchOptions = {
290
+ isCaseSensitive: false,
291
+ shouldSort: true,
292
+ minMatchCharLength: 2,
293
+ limit: limit,
294
+ };
295
+
296
+ return readSearchData().then(function (fuse) {
297
+ return fuseSearch(query, fuse, fuseSearchOptions);
298
+ });
299
+ }
300
+ },
301
+ templates: {
302
+ noResults({ createElement }) {
303
+ const hasQuery = lastState.query;
304
+
305
+ return createElement(
306
+ "div",
307
+ {
308
+ class: `quarto-search-no-results${
309
+ hasQuery ? "" : " no-query"
310
+ }`,
311
+ },
312
+ language["search-no-results-text"]
313
+ );
314
+ },
315
+ header({ items, createElement }) {
316
+ // count the documents
317
+ const count = items.filter((item) => {
318
+ return item.type === kItemTypeDoc;
319
+ }).length;
320
+
321
+ if (count > 0) {
322
+ return createElement(
323
+ "div",
324
+ { class: "search-result-header" },
325
+ `${count} ${language["search-matching-documents-text"]}`
326
+ );
327
+ } else {
328
+ return createElement(
329
+ "div",
330
+ { class: "search-result-header-no-results" },
331
+ ``
332
+ );
333
+ }
334
+ },
335
+ footer({ _items, createElement }) {
336
+ if (
337
+ quartoSearchOptions.algolia &&
338
+ quartoSearchOptions.algolia["show-logo"]
339
+ ) {
340
+ const libDir = quartoSearchOptions.algolia["libDir"];
341
+ const logo = createElement("img", {
342
+ src: offsetURL(
343
+ `${libDir}/quarto-search/search-by-algolia.svg`
344
+ ),
345
+ class: "algolia-search-logo",
346
+ });
347
+ return createElement(
348
+ "a",
349
+ { href: "http://www.algolia.com/" },
350
+ logo
351
+ );
352
+ }
353
+ },
354
+
355
+ item({ item, createElement }) {
356
+ return renderItem(
357
+ item,
358
+ createElement,
359
+ state,
360
+ setActiveItemId,
361
+ setContext,
362
+ refresh
363
+ );
364
+ },
365
+ },
366
+ },
367
+ ];
368
+ },
369
+ });
370
+
371
+ window.quartoOpenSearch = () => {
372
+ setIsOpen(false);
373
+ setIsOpen(true);
374
+ focusSearchInput();
375
+ };
376
+
377
+ // Remove the labeleledby attribute since it is pointing
378
+ // to a non-existent label
379
+ if (quartoSearchOptions.type === "overlay") {
380
+ const inputEl = window.document.querySelector(
381
+ "#quarto-search .aa-Autocomplete"
382
+ );
383
+ if (inputEl) {
384
+ inputEl.removeAttribute("aria-labelledby");
385
+ }
386
+ }
387
+
388
+ // If the main document scrolls dismiss the search results
389
+ // (otherwise, since they're floating in the document they can scroll with the document)
390
+ window.document.body.onscroll = () => {
391
+ setIsOpen(false);
392
+ };
393
+
394
+ if (showSearchResults) {
395
+ setIsOpen(true);
396
+ focusSearchInput();
397
+ }
398
+ });
399
+
400
+ function configurePlugins(quartoSearchOptions) {
401
+ const autocompletePlugins = [];
402
+ const algoliaOptions = quartoSearchOptions.algolia;
403
+ if (
404
+ algoliaOptions &&
405
+ algoliaOptions["analytics-events"] &&
406
+ algoliaOptions["search-only-api-key"] &&
407
+ algoliaOptions["application-id"]
408
+ ) {
409
+ const apiKey = algoliaOptions["search-only-api-key"];
410
+ const appId = algoliaOptions["application-id"];
411
+
412
+ // Aloglia insights may not be loaded because they require cookie consent
413
+ // Use deferred loading so events will start being recorded when/if consent
414
+ // is granted.
415
+ const algoliaInsightsDeferredPlugin = deferredLoadPlugin(() => {
416
+ if (
417
+ window.aa &&
418
+ window["@algolia/autocomplete-plugin-algolia-insights"]
419
+ ) {
420
+ window.aa("init", {
421
+ appId,
422
+ apiKey,
423
+ useCookie: true,
424
+ });
425
+
426
+ const { createAlgoliaInsightsPlugin } =
427
+ window["@algolia/autocomplete-plugin-algolia-insights"];
428
+ // Register the insights client
429
+ const algoliaInsightsPlugin = createAlgoliaInsightsPlugin({
430
+ insightsClient: window.aa,
431
+ onItemsChange({ insights, insightsEvents }) {
432
+ const events = insightsEvents.map((event) => {
433
+ const maxEvents = event.objectIDs.slice(0, 20);
434
+ return {
435
+ ...event,
436
+ objectIDs: maxEvents,
437
+ };
438
+ });
439
+
440
+ insights.viewedObjectIDs(...events);
441
+ },
442
+ });
443
+ return algoliaInsightsPlugin;
444
+ }
445
+ });
446
+
447
+ // Add the plugin
448
+ autocompletePlugins.push(algoliaInsightsDeferredPlugin);
449
+ return autocompletePlugins;
450
+ }
451
+ }
452
+
453
+ // For plugins that may not load immediately, create a wrapper
454
+ // plugin and forward events and plugin data once the plugin
455
+ // is initialized. This is useful for cases like cookie consent
456
+ // which may prevent the analytics insights event plugin from initializing
457
+ // immediately.
458
+ function deferredLoadPlugin(createPlugin) {
459
+ let plugin = undefined;
460
+ let subscribeObj = undefined;
461
+ const wrappedPlugin = () => {
462
+ if (!plugin && subscribeObj) {
463
+ plugin = createPlugin();
464
+ if (plugin && plugin.subscribe) {
465
+ plugin.subscribe(subscribeObj);
466
+ }
467
+ }
468
+ return plugin;
469
+ };
470
+
471
+ return {
472
+ subscribe: (obj) => {
473
+ subscribeObj = obj;
474
+ },
475
+ onStateChange: (obj) => {
476
+ const plugin = wrappedPlugin();
477
+ if (plugin && plugin.onStateChange) {
478
+ plugin.onStateChange(obj);
479
+ }
480
+ },
481
+ onSubmit: (obj) => {
482
+ const plugin = wrappedPlugin();
483
+ if (plugin && plugin.onSubmit) {
484
+ plugin.onSubmit(obj);
485
+ }
486
+ },
487
+ onReset: (obj) => {
488
+ const plugin = wrappedPlugin();
489
+ if (plugin && plugin.onReset) {
490
+ plugin.onReset(obj);
491
+ }
492
+ },
493
+ getSources: (obj) => {
494
+ const plugin = wrappedPlugin();
495
+ if (plugin && plugin.getSources) {
496
+ return plugin.getSources(obj);
497
+ } else {
498
+ return Promise.resolve([]);
499
+ }
500
+ },
501
+ data: (obj) => {
502
+ const plugin = wrappedPlugin();
503
+ if (plugin && plugin.data) {
504
+ plugin.data(obj);
505
+ }
506
+ },
507
+ };
508
+ }
509
+
510
+ function validateItems(items) {
511
+ // Validate the first item
512
+ if (items.length > 0) {
513
+ const item = items[0];
514
+ const missingFields = [];
515
+ if (item.href == undefined) {
516
+ missingFields.push("href");
517
+ }
518
+ if (!item.title == undefined) {
519
+ missingFields.push("title");
520
+ }
521
+ if (!item.text == undefined) {
522
+ missingFields.push("text");
523
+ }
524
+
525
+ if (missingFields.length === 1) {
526
+ throw {
527
+ name: `Error: Search index is missing the <code>${missingFields[0]}</code> field.`,
528
+ message: `The items being returned for this search do not include all the required fields. Please ensure that your index items include the <code>${missingFields[0]}</code> field or use <code>index-fields</code> in your <code>_quarto.yml</code> file to specify the field names.`,
529
+ };
530
+ } else if (missingFields.length > 1) {
531
+ const missingFieldList = missingFields
532
+ .map((field) => {
533
+ return `<code>${field}</code>`;
534
+ })
535
+ .join(", ");
536
+
537
+ throw {
538
+ name: `Error: Search index is missing the following fields: ${missingFieldList}.`,
539
+ message: `The items being returned for this search do not include all the required fields. Please ensure that your index items includes the following fields: ${missingFieldList}, or use <code>index-fields</code> in your <code>_quarto.yml</code> file to specify the field names.`,
540
+ };
541
+ }
542
+ }
543
+ }
544
+
545
+ let lastQuery = null;
546
+ function showCopyLink(query, options) {
547
+ const language = options.language;
548
+ lastQuery = query;
549
+ // Insert share icon
550
+ const inputSuffixEl = window.document.body.querySelector(
551
+ ".aa-Form .aa-InputWrapperSuffix"
552
+ );
553
+
554
+ if (inputSuffixEl) {
555
+ let copyButtonEl = window.document.body.querySelector(
556
+ ".aa-Form .aa-InputWrapperSuffix .aa-CopyButton"
557
+ );
558
+
559
+ if (copyButtonEl === null) {
560
+ copyButtonEl = window.document.createElement("button");
561
+ copyButtonEl.setAttribute("class", "aa-CopyButton");
562
+ copyButtonEl.setAttribute("type", "button");
563
+ copyButtonEl.setAttribute("title", language["search-copy-link-title"]);
564
+ copyButtonEl.onmousedown = (e) => {
565
+ e.preventDefault();
566
+ e.stopPropagation();
567
+ };
568
+
569
+ const linkIcon = "bi-clipboard";
570
+ const checkIcon = "bi-check2";
571
+
572
+ const shareIconEl = window.document.createElement("i");
573
+ shareIconEl.setAttribute("class", `bi ${linkIcon}`);
574
+ copyButtonEl.appendChild(shareIconEl);
575
+ inputSuffixEl.prepend(copyButtonEl);
576
+
577
+ const clipboard = new window.ClipboardJS(".aa-CopyButton", {
578
+ text: function (_trigger) {
579
+ const copyUrl = new URL(window.location);
580
+ copyUrl.searchParams.set(kQueryArg, lastQuery);
581
+ copyUrl.searchParams.set(kResultsArg, "1");
582
+ return copyUrl.toString();
583
+ },
584
+ });
585
+ clipboard.on("success", function (e) {
586
+ // Focus the input
587
+
588
+ // button target
589
+ const button = e.trigger;
590
+ const icon = button.querySelector("i.bi");
591
+
592
+ // flash "checked"
593
+ icon.classList.add(checkIcon);
594
+ icon.classList.remove(linkIcon);
595
+ setTimeout(function () {
596
+ icon.classList.remove(checkIcon);
597
+ icon.classList.add(linkIcon);
598
+ }, 1000);
599
+ });
600
+ }
601
+
602
+ // If there is a query, show the link icon
603
+ if (copyButtonEl) {
604
+ if (lastQuery && options["copy-button"]) {
605
+ copyButtonEl.style.display = "flex";
606
+ } else {
607
+ copyButtonEl.style.display = "none";
608
+ }
609
+ }
610
+ }
611
+ }
612
+
613
+ /* Search Index Handling */
614
+ // create the index
615
+ var fuseIndex = undefined;
616
+ async function readSearchData() {
617
+ // Initialize the search index on demand
618
+ if (fuseIndex === undefined) {
619
+ // create fuse index
620
+ const options = {
621
+ keys: [
622
+ { name: "title", weight: 20 },
623
+ { name: "section", weight: 20 },
624
+ { name: "text", weight: 10 },
625
+ ],
626
+ ignoreLocation: true,
627
+ threshold: 0.1,
628
+ };
629
+ const fuse = new window.Fuse([], options);
630
+
631
+ // fetch the main search.json
632
+ const response = await fetch(offsetURL("search.json"));
633
+ if (response.status == 200) {
634
+ return response.json().then(function (searchDocs) {
635
+ searchDocs.forEach(function (searchDoc) {
636
+ fuse.add(searchDoc);
637
+ });
638
+ fuseIndex = fuse;
639
+ return fuseIndex;
640
+ });
641
+ } else {
642
+ return Promise.reject(
643
+ new Error(
644
+ "Unexpected status from search index request: " + response.status
645
+ )
646
+ );
647
+ }
648
+ }
649
+ return fuseIndex;
650
+ }
651
+
652
+ function inputElement() {
653
+ return window.document.body.querySelector(".aa-Form .aa-Input");
654
+ }
655
+
656
+ function focusSearchInput() {
657
+ setTimeout(() => {
658
+ const inputEl = inputElement();
659
+ if (inputEl) {
660
+ inputEl.focus();
661
+ }
662
+ }, 50);
663
+ }
664
+
665
+ /* Panels */
666
+ const kItemTypeDoc = "document";
667
+ const kItemTypeMore = "document-more";
668
+ const kItemTypeItem = "document-item";
669
+ const kItemTypeError = "error";
670
+
671
+ function renderItem(
672
+ item,
673
+ createElement,
674
+ state,
675
+ setActiveItemId,
676
+ setContext,
677
+ refresh
678
+ ) {
679
+ switch (item.type) {
680
+ case kItemTypeDoc:
681
+ return createDocumentCard(
682
+ createElement,
683
+ "file-richtext",
684
+ item.title,
685
+ item.section,
686
+ item.text,
687
+ item.href
688
+ );
689
+ case kItemTypeMore:
690
+ return createMoreCard(
691
+ createElement,
692
+ item,
693
+ state,
694
+ setActiveItemId,
695
+ setContext,
696
+ refresh
697
+ );
698
+ case kItemTypeItem:
699
+ return createSectionCard(
700
+ createElement,
701
+ item.section,
702
+ item.text,
703
+ item.href
704
+ );
705
+ case kItemTypeError:
706
+ return createErrorCard(createElement, item.title, item.text);
707
+ default:
708
+ return undefined;
709
+ }
710
+ }
711
+
712
+ function createDocumentCard(createElement, icon, title, section, text, href) {
713
+ const iconEl = createElement("i", {
714
+ class: `bi bi-${icon} search-result-icon`,
715
+ });
716
+ const titleEl = createElement("p", { class: "search-result-title" }, title);
717
+ const titleContainerEl = createElement(
718
+ "div",
719
+ { class: "search-result-title-container" },
720
+ [iconEl, titleEl]
721
+ );
722
+
723
+ const textEls = [];
724
+ if (section) {
725
+ const sectionEl = createElement(
726
+ "p",
727
+ { class: "search-result-section" },
728
+ section
729
+ );
730
+ textEls.push(sectionEl);
731
+ }
732
+ const descEl = createElement("p", {
733
+ class: "search-result-text",
734
+ dangerouslySetInnerHTML: {
735
+ __html: text,
736
+ },
737
+ });
738
+ textEls.push(descEl);
739
+
740
+ const textContainerEl = createElement(
741
+ "div",
742
+ { class: "search-result-text-container" },
743
+ textEls
744
+ );
745
+
746
+ const containerEl = createElement(
747
+ "div",
748
+ {
749
+ class: "search-result-container",
750
+ },
751
+ [titleContainerEl, textContainerEl]
752
+ );
753
+
754
+ const linkEl = createElement(
755
+ "a",
756
+ {
757
+ href: offsetURL(href),
758
+ class: "search-result-link",
759
+ },
760
+ containerEl
761
+ );
762
+
763
+ const classes = ["search-result-doc", "search-item"];
764
+ if (!section) {
765
+ classes.push("document-selectable");
766
+ }
767
+
768
+ return createElement(
769
+ "div",
770
+ {
771
+ class: classes.join(" "),
772
+ },
773
+ linkEl
774
+ );
775
+ }
776
+
777
+ function createMoreCard(
778
+ createElement,
779
+ item,
780
+ state,
781
+ setActiveItemId,
782
+ setContext,
783
+ refresh
784
+ ) {
785
+ const moreCardEl = createElement(
786
+ "div",
787
+ {
788
+ class: "search-result-more search-item",
789
+ onClick: (e) => {
790
+ // Handle expanding the sections by adding the expanded
791
+ // section to the list of expanded sections
792
+ toggleExpanded(item, state, setContext, setActiveItemId, refresh);
793
+ e.stopPropagation();
794
+ },
795
+ },
796
+ item.title
797
+ );
798
+
799
+ return moreCardEl;
800
+ }
801
+
802
+ function toggleExpanded(item, state, setContext, setActiveItemId, refresh) {
803
+ const expanded = state.context.expanded || [];
804
+ if (expanded.includes(item.target)) {
805
+ setContext({
806
+ expanded: expanded.filter((target) => target !== item.target),
807
+ });
808
+ } else {
809
+ setContext({ expanded: [...expanded, item.target] });
810
+ }
811
+
812
+ refresh();
813
+ setActiveItemId(item.__autocomplete_id);
814
+ }
815
+
816
+ function createSectionCard(createElement, section, text, href) {
817
+ const sectionEl = createSection(createElement, section, text, href);
818
+ return createElement(
819
+ "div",
820
+ {
821
+ class: "search-result-doc-section search-item",
822
+ },
823
+ sectionEl
824
+ );
825
+ }
826
+
827
+ function createSection(createElement, title, text, href) {
828
+ const descEl = createElement("p", {
829
+ class: "search-result-text",
830
+ dangerouslySetInnerHTML: {
831
+ __html: text,
832
+ },
833
+ });
834
+
835
+ const titleEl = createElement("p", { class: "search-result-section" }, title);
836
+ const linkEl = createElement(
837
+ "a",
838
+ {
839
+ href: offsetURL(href),
840
+ class: "search-result-link",
841
+ },
842
+ [titleEl, descEl]
843
+ );
844
+ return linkEl;
845
+ }
846
+
847
+ function createErrorCard(createElement, title, text) {
848
+ const descEl = createElement("p", {
849
+ class: "search-error-text",
850
+ dangerouslySetInnerHTML: {
851
+ __html: text,
852
+ },
853
+ });
854
+
855
+ const titleEl = createElement("p", {
856
+ class: "search-error-title",
857
+ dangerouslySetInnerHTML: {
858
+ __html: `<i class="bi bi-exclamation-circle search-error-icon"></i> ${title}`,
859
+ },
860
+ });
861
+ const errorEl = createElement("div", { class: "search-error" }, [
862
+ titleEl,
863
+ descEl,
864
+ ]);
865
+ return errorEl;
866
+ }
867
+
868
+ function positionPanel(pos) {
869
+ const panelEl = window.document.querySelector(
870
+ "#quarto-search-results .aa-Panel"
871
+ );
872
+ const inputEl = window.document.querySelector(
873
+ "#quarto-search .aa-Autocomplete"
874
+ );
875
+
876
+ if (panelEl && inputEl) {
877
+ panelEl.style.top = `${Math.round(panelEl.offsetTop)}px`;
878
+ if (pos === "start") {
879
+ panelEl.style.left = `${Math.round(inputEl.left)}px`;
880
+ } else {
881
+ panelEl.style.right = `${Math.round(inputEl.offsetRight)}px`;
882
+ }
883
+ }
884
+ }
885
+
886
+ /* Highlighting */
887
+ // highlighting functions
888
+ function highlightMatch(query, text) {
889
+ if (text) {
890
+ const start = text.toLowerCase().indexOf(query.toLowerCase());
891
+ if (start !== -1) {
892
+ const startMark = "<mark class='search-match'>";
893
+ const endMark = "</mark>";
894
+
895
+ const end = start + query.length;
896
+ text =
897
+ text.slice(0, start) +
898
+ startMark +
899
+ text.slice(start, end) +
900
+ endMark +
901
+ text.slice(end);
902
+ const startInfo = clipStart(text, start);
903
+ const endInfo = clipEnd(
904
+ text,
905
+ startInfo.position + startMark.length + endMark.length
906
+ );
907
+ text =
908
+ startInfo.prefix +
909
+ text.slice(startInfo.position, endInfo.position) +
910
+ endInfo.suffix;
911
+
912
+ return text;
913
+ } else {
914
+ return text;
915
+ }
916
+ } else {
917
+ return text;
918
+ }
919
+ }
920
+
921
+ function clipStart(text, pos) {
922
+ const clipStart = pos - 50;
923
+ if (clipStart < 0) {
924
+ // This will just return the start of the string
925
+ return {
926
+ position: 0,
927
+ prefix: "",
928
+ };
929
+ } else {
930
+ // We're clipping before the start of the string, walk backwards to the first space.
931
+ const spacePos = findSpace(text, pos, -1);
932
+ return {
933
+ position: spacePos.position,
934
+ prefix: "",
935
+ };
936
+ }
937
+ }
938
+
939
+ function clipEnd(text, pos) {
940
+ const clipEnd = pos + 200;
941
+ if (clipEnd > text.length) {
942
+ return {
943
+ position: text.length,
944
+ suffix: "",
945
+ };
946
+ } else {
947
+ const spacePos = findSpace(text, clipEnd, 1);
948
+ return {
949
+ position: spacePos.position,
950
+ suffix: spacePos.clipped ? "…" : "",
951
+ };
952
+ }
953
+ }
954
+
955
+ function findSpace(text, start, step) {
956
+ let stepPos = start;
957
+ while (stepPos > -1 && stepPos < text.length) {
958
+ const char = text[stepPos];
959
+ if (char === " " || char === "," || char === ":") {
960
+ return {
961
+ position: step === 1 ? stepPos : stepPos - step,
962
+ clipped: stepPos > 1 && stepPos < text.length,
963
+ };
964
+ }
965
+ stepPos = stepPos + step;
966
+ }
967
+
968
+ return {
969
+ position: stepPos - step,
970
+ clipped: false,
971
+ };
972
+ }
973
+
974
+ // removes highlighting as implemented by the mark tag
975
+ function clearHighlight(searchterm, el) {
976
+ const childNodes = el.childNodes;
977
+ for (let i = childNodes.length - 1; i >= 0; i--) {
978
+ const node = childNodes[i];
979
+ if (node.nodeType === Node.ELEMENT_NODE) {
980
+ if (
981
+ node.tagName === "MARK" &&
982
+ node.innerText.toLowerCase() === searchterm.toLowerCase()
983
+ ) {
984
+ el.replaceChild(document.createTextNode(node.innerText), node);
985
+ } else {
986
+ clearHighlight(searchterm, node);
987
+ }
988
+ }
989
+ }
990
+ }
991
+
992
+ function escapeRegExp(string) {
993
+ return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string
994
+ }
995
+
996
+ // highlight matches
997
+ function highlight(term, el) {
998
+ const termRegex = new RegExp(term, "ig");
999
+ const childNodes = el.childNodes;
1000
+
1001
+ // walk back to front avoid mutating elements in front of us
1002
+ for (let i = childNodes.length - 1; i >= 0; i--) {
1003
+ const node = childNodes[i];
1004
+
1005
+ if (node.nodeType === Node.TEXT_NODE) {
1006
+ // Search text nodes for text to highlight
1007
+ const text = node.nodeValue;
1008
+
1009
+ let startIndex = 0;
1010
+ let matchIndex = text.search(termRegex);
1011
+ if (matchIndex > -1) {
1012
+ const markFragment = document.createDocumentFragment();
1013
+ while (matchIndex > -1) {
1014
+ const prefix = text.slice(startIndex, matchIndex);
1015
+ markFragment.appendChild(document.createTextNode(prefix));
1016
+
1017
+ const mark = document.createElement("mark");
1018
+ mark.appendChild(
1019
+ document.createTextNode(
1020
+ text.slice(matchIndex, matchIndex + term.length)
1021
+ )
1022
+ );
1023
+ markFragment.appendChild(mark);
1024
+
1025
+ startIndex = matchIndex + term.length;
1026
+ matchIndex = text.slice(startIndex).search(new RegExp(term, "ig"));
1027
+ if (matchIndex > -1) {
1028
+ matchIndex = startIndex + matchIndex;
1029
+ }
1030
+ }
1031
+ if (startIndex < text.length) {
1032
+ markFragment.appendChild(
1033
+ document.createTextNode(text.slice(startIndex, text.length))
1034
+ );
1035
+ }
1036
+
1037
+ el.replaceChild(markFragment, node);
1038
+ }
1039
+ } else if (node.nodeType === Node.ELEMENT_NODE) {
1040
+ // recurse through elements
1041
+ highlight(term, node);
1042
+ }
1043
+ }
1044
+ }
1045
+
1046
+ /* Link Handling */
1047
+ // get the offset from this page for a given site root relative url
1048
+ function offsetURL(url) {
1049
+ var offset = getMeta("quarto:offset");
1050
+ return offset ? offset + url : url;
1051
+ }
1052
+
1053
+ // read a meta tag value
1054
+ function getMeta(metaName) {
1055
+ var metas = window.document.getElementsByTagName("meta");
1056
+ for (let i = 0; i < metas.length; i++) {
1057
+ if (metas[i].getAttribute("name") === metaName) {
1058
+ return metas[i].getAttribute("content");
1059
+ }
1060
+ }
1061
+ return "";
1062
+ }
1063
+
1064
+ function algoliaSearch(query, limit, algoliaOptions) {
1065
+ const { getAlgoliaResults } = window["@algolia/autocomplete-preset-algolia"];
1066
+
1067
+ const applicationId = algoliaOptions["application-id"];
1068
+ const searchOnlyApiKey = algoliaOptions["search-only-api-key"];
1069
+ const indexName = algoliaOptions["index-name"];
1070
+ const indexFields = algoliaOptions["index-fields"];
1071
+ const searchClient = window.algoliasearch(applicationId, searchOnlyApiKey);
1072
+ const searchParams = algoliaOptions["params"];
1073
+ const searchAnalytics = !!algoliaOptions["analytics-events"];
1074
+
1075
+ return getAlgoliaResults({
1076
+ searchClient,
1077
+ queries: [
1078
+ {
1079
+ indexName: indexName,
1080
+ query,
1081
+ params: {
1082
+ hitsPerPage: limit,
1083
+ clickAnalytics: searchAnalytics,
1084
+ ...searchParams,
1085
+ },
1086
+ },
1087
+ ],
1088
+ transformResponse: (response) => {
1089
+ if (!indexFields) {
1090
+ return response.hits.map((hit) => {
1091
+ return hit.map((item) => {
1092
+ return {
1093
+ ...item,
1094
+ text: highlightMatch(query, item.text),
1095
+ };
1096
+ });
1097
+ });
1098
+ } else {
1099
+ const remappedHits = response.hits.map((hit) => {
1100
+ return hit.map((item) => {
1101
+ const newItem = { ...item };
1102
+ ["href", "section", "title", "text"].forEach((keyName) => {
1103
+ const mappedName = indexFields[keyName];
1104
+ if (
1105
+ mappedName &&
1106
+ item[mappedName] !== undefined &&
1107
+ mappedName !== keyName
1108
+ ) {
1109
+ newItem[keyName] = item[mappedName];
1110
+ delete newItem[mappedName];
1111
+ }
1112
+ });
1113
+ newItem.text = highlightMatch(query, newItem.text);
1114
+ return newItem;
1115
+ });
1116
+ });
1117
+ return remappedHits;
1118
+ }
1119
+ },
1120
+ });
1121
+ }
1122
+
1123
+ function fuseSearch(query, fuse, fuseOptions) {
1124
+ return fuse.search(query, fuseOptions).map((result) => {
1125
+ const addParam = (url, name, value) => {
1126
+ const anchorParts = url.split("#");
1127
+ const baseUrl = anchorParts[0];
1128
+ const sep = baseUrl.search("\\?") > 0 ? "&" : "?";
1129
+ anchorParts[0] = baseUrl + sep + name + "=" + value;
1130
+ return anchorParts.join("#");
1131
+ };
1132
+
1133
+ return {
1134
+ title: result.item.title,
1135
+ section: result.item.section,
1136
+ href: addParam(result.item.href, kQueryArg, query),
1137
+ text: highlightMatch(query, result.item.text),
1138
+ };
1139
+ });
1140
+ }
_proc/_docs/sitemap.xml CHANGED
@@ -1,3 +1,27 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  </urlset>
 
1
  <?xml version="1.0" encoding="UTF-8"?>
2
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3
+ <url>
4
+ <loc>https://animalequality.github.io/lv-recipe-chatbot/ingredient_vision.html</loc>
5
+ <lastmod>2023-06-12T18:18:15.258Z</lastmod>
6
+ </url>
7
+ <url>
8
+ <loc>https://animalequality.github.io/lv-recipe-chatbot/app.html</loc>
9
+ <lastmod>2023-06-12T18:13:05.828Z</lastmod>
10
+ </url>
11
+ <url>
12
+ <loc>https://animalequality.github.io/lv-recipe-chatbot/index.html</loc>
13
+ <lastmod>2023-06-12T18:23:01.803Z</lastmod>
14
+ </url>
15
+ <url>
16
+ <loc>https://animalequality.github.io/lv-recipe-chatbot/lchain_tool.html</loc>
17
+ <lastmod>2023-06-12T18:08:38.475Z</lastmod>
18
+ </url>
19
+ <url>
20
+ <loc>https://animalequality.github.io/lv-recipe-chatbot/engineer_prompt.html</loc>
21
+ <lastmod>2023-06-12T18:14:11.620Z</lastmod>
22
+ </url>
23
+ <url>
24
+ <loc>https://animalequality.github.io/lv-recipe-chatbot/edamam_api.html</loc>
25
+ <lastmod>2023-06-12T17:36:54.115Z</lastmod>
26
+ </url>
27
  </urlset>
_proc/_docs/styles.css ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .cell {
2
+ margin-bottom: 1rem;
3
+ }
4
+
5
+ .cell > .sourceCode {
6
+ margin-bottom: 0;
7
+ }
8
+
9
+ .cell-output > pre {
10
+ margin-bottom: 0;
11
+ }
12
+
13
+ .cell-output > pre, .cell-output > .sourceCode > pre, .cell-output-stdout > pre {
14
+ margin-left: 0.8rem;
15
+ margin-top: 0;
16
+ background: none;
17
+ border-left: 2px solid lightsalmon;
18
+ border-top-left-radius: 0;
19
+ border-top-right-radius: 0;
20
+ }
21
+
22
+ .cell-output > .sourceCode {
23
+ border: none;
24
+ }
25
+
26
+ .cell-output > .sourceCode {
27
+ background: none;
28
+ margin-top: 0;
29
+ }
30
+
31
+ div.description {
32
+ padding-left: 2px;
33
+ padding-top: 5px;
34
+ font-style: italic;
35
+ font-size: 135%;
36
+ opacity: 70%;
37
+ }
_proc/constants DELETED
@@ -1,3 +0,0 @@
1
- from pathlib import Path
2
-
3
- ROOT_DIR = Path(__file__).parents[1]